| Abhay Kumar | a2ae599 | 2025-11-10 14:02:24 +0000 | [diff] [blame^] | 1 | // Code generated by protoc-gen-gogo. DO NOT EDIT. |
| 2 | // source: rpc.proto |
| 3 | |
| 4 | package etcdserverpb |
| 5 | |
| 6 | import ( |
| 7 | context "context" |
| 8 | fmt "fmt" |
| 9 | io "io" |
| 10 | math "math" |
| 11 | math_bits "math/bits" |
| 12 | |
| 13 | _ "github.com/gogo/protobuf/gogoproto" |
| 14 | proto "github.com/golang/protobuf/proto" |
| 15 | _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" |
| 16 | authpb "go.etcd.io/etcd/api/v3/authpb" |
| 17 | mvccpb "go.etcd.io/etcd/api/v3/mvccpb" |
| 18 | _ "go.etcd.io/etcd/api/v3/versionpb" |
| 19 | _ "google.golang.org/genproto/googleapis/api/annotations" |
| 20 | grpc "google.golang.org/grpc" |
| 21 | codes "google.golang.org/grpc/codes" |
| 22 | status "google.golang.org/grpc/status" |
| 23 | ) |
| 24 | |
| 25 | // Reference imports to suppress errors if they are not otherwise used. |
| 26 | var _ = proto.Marshal |
| 27 | var _ = fmt.Errorf |
| 28 | var _ = math.Inf |
| 29 | |
| 30 | // This is a compile-time assertion to ensure that this generated file |
| 31 | // is compatible with the proto package it is being compiled against. |
| 32 | // A compilation error at this line likely means your copy of the |
| 33 | // proto package needs to be updated. |
| 34 | const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package |
| 35 | |
| 36 | type AlarmType int32 |
| 37 | |
| 38 | const ( |
| 39 | AlarmType_NONE AlarmType = 0 |
| 40 | AlarmType_NOSPACE AlarmType = 1 |
| 41 | AlarmType_CORRUPT AlarmType = 2 |
| 42 | ) |
| 43 | |
| 44 | var AlarmType_name = map[int32]string{ |
| 45 | 0: "NONE", |
| 46 | 1: "NOSPACE", |
| 47 | 2: "CORRUPT", |
| 48 | } |
| 49 | |
| 50 | var AlarmType_value = map[string]int32{ |
| 51 | "NONE": 0, |
| 52 | "NOSPACE": 1, |
| 53 | "CORRUPT": 2, |
| 54 | } |
| 55 | |
| 56 | func (x AlarmType) String() string { |
| 57 | return proto.EnumName(AlarmType_name, int32(x)) |
| 58 | } |
| 59 | |
| 60 | func (AlarmType) EnumDescriptor() ([]byte, []int) { |
| 61 | return fileDescriptor_77a6da22d6a3feb1, []int{0} |
| 62 | } |
| 63 | |
| 64 | type RangeRequest_SortOrder int32 |
| 65 | |
| 66 | const ( |
| 67 | RangeRequest_NONE RangeRequest_SortOrder = 0 |
| 68 | RangeRequest_ASCEND RangeRequest_SortOrder = 1 |
| 69 | RangeRequest_DESCEND RangeRequest_SortOrder = 2 |
| 70 | ) |
| 71 | |
| 72 | var RangeRequest_SortOrder_name = map[int32]string{ |
| 73 | 0: "NONE", |
| 74 | 1: "ASCEND", |
| 75 | 2: "DESCEND", |
| 76 | } |
| 77 | |
| 78 | var RangeRequest_SortOrder_value = map[string]int32{ |
| 79 | "NONE": 0, |
| 80 | "ASCEND": 1, |
| 81 | "DESCEND": 2, |
| 82 | } |
| 83 | |
| 84 | func (x RangeRequest_SortOrder) String() string { |
| 85 | return proto.EnumName(RangeRequest_SortOrder_name, int32(x)) |
| 86 | } |
| 87 | |
| 88 | func (RangeRequest_SortOrder) EnumDescriptor() ([]byte, []int) { |
| 89 | return fileDescriptor_77a6da22d6a3feb1, []int{1, 0} |
| 90 | } |
| 91 | |
| 92 | type RangeRequest_SortTarget int32 |
| 93 | |
| 94 | const ( |
| 95 | RangeRequest_KEY RangeRequest_SortTarget = 0 |
| 96 | RangeRequest_VERSION RangeRequest_SortTarget = 1 |
| 97 | RangeRequest_CREATE RangeRequest_SortTarget = 2 |
| 98 | RangeRequest_MOD RangeRequest_SortTarget = 3 |
| 99 | RangeRequest_VALUE RangeRequest_SortTarget = 4 |
| 100 | ) |
| 101 | |
| 102 | var RangeRequest_SortTarget_name = map[int32]string{ |
| 103 | 0: "KEY", |
| 104 | 1: "VERSION", |
| 105 | 2: "CREATE", |
| 106 | 3: "MOD", |
| 107 | 4: "VALUE", |
| 108 | } |
| 109 | |
| 110 | var RangeRequest_SortTarget_value = map[string]int32{ |
| 111 | "KEY": 0, |
| 112 | "VERSION": 1, |
| 113 | "CREATE": 2, |
| 114 | "MOD": 3, |
| 115 | "VALUE": 4, |
| 116 | } |
| 117 | |
| 118 | func (x RangeRequest_SortTarget) String() string { |
| 119 | return proto.EnumName(RangeRequest_SortTarget_name, int32(x)) |
| 120 | } |
| 121 | |
| 122 | func (RangeRequest_SortTarget) EnumDescriptor() ([]byte, []int) { |
| 123 | return fileDescriptor_77a6da22d6a3feb1, []int{1, 1} |
| 124 | } |
| 125 | |
| 126 | type Compare_CompareResult int32 |
| 127 | |
| 128 | const ( |
| 129 | Compare_EQUAL Compare_CompareResult = 0 |
| 130 | Compare_GREATER Compare_CompareResult = 1 |
| 131 | Compare_LESS Compare_CompareResult = 2 |
| 132 | Compare_NOT_EQUAL Compare_CompareResult = 3 |
| 133 | ) |
| 134 | |
| 135 | var Compare_CompareResult_name = map[int32]string{ |
| 136 | 0: "EQUAL", |
| 137 | 1: "GREATER", |
| 138 | 2: "LESS", |
| 139 | 3: "NOT_EQUAL", |
| 140 | } |
| 141 | |
| 142 | var Compare_CompareResult_value = map[string]int32{ |
| 143 | "EQUAL": 0, |
| 144 | "GREATER": 1, |
| 145 | "LESS": 2, |
| 146 | "NOT_EQUAL": 3, |
| 147 | } |
| 148 | |
| 149 | func (x Compare_CompareResult) String() string { |
| 150 | return proto.EnumName(Compare_CompareResult_name, int32(x)) |
| 151 | } |
| 152 | |
| 153 | func (Compare_CompareResult) EnumDescriptor() ([]byte, []int) { |
| 154 | return fileDescriptor_77a6da22d6a3feb1, []int{9, 0} |
| 155 | } |
| 156 | |
| 157 | type Compare_CompareTarget int32 |
| 158 | |
| 159 | const ( |
| 160 | Compare_VERSION Compare_CompareTarget = 0 |
| 161 | Compare_CREATE Compare_CompareTarget = 1 |
| 162 | Compare_MOD Compare_CompareTarget = 2 |
| 163 | Compare_VALUE Compare_CompareTarget = 3 |
| 164 | Compare_LEASE Compare_CompareTarget = 4 |
| 165 | ) |
| 166 | |
| 167 | var Compare_CompareTarget_name = map[int32]string{ |
| 168 | 0: "VERSION", |
| 169 | 1: "CREATE", |
| 170 | 2: "MOD", |
| 171 | 3: "VALUE", |
| 172 | 4: "LEASE", |
| 173 | } |
| 174 | |
| 175 | var Compare_CompareTarget_value = map[string]int32{ |
| 176 | "VERSION": 0, |
| 177 | "CREATE": 1, |
| 178 | "MOD": 2, |
| 179 | "VALUE": 3, |
| 180 | "LEASE": 4, |
| 181 | } |
| 182 | |
| 183 | func (x Compare_CompareTarget) String() string { |
| 184 | return proto.EnumName(Compare_CompareTarget_name, int32(x)) |
| 185 | } |
| 186 | |
| 187 | func (Compare_CompareTarget) EnumDescriptor() ([]byte, []int) { |
| 188 | return fileDescriptor_77a6da22d6a3feb1, []int{9, 1} |
| 189 | } |
| 190 | |
| 191 | type WatchCreateRequest_FilterType int32 |
| 192 | |
| 193 | const ( |
| 194 | // filter out put event. |
| 195 | WatchCreateRequest_NOPUT WatchCreateRequest_FilterType = 0 |
| 196 | // filter out delete event. |
| 197 | WatchCreateRequest_NODELETE WatchCreateRequest_FilterType = 1 |
| 198 | ) |
| 199 | |
| 200 | var WatchCreateRequest_FilterType_name = map[int32]string{ |
| 201 | 0: "NOPUT", |
| 202 | 1: "NODELETE", |
| 203 | } |
| 204 | |
| 205 | var WatchCreateRequest_FilterType_value = map[string]int32{ |
| 206 | "NOPUT": 0, |
| 207 | "NODELETE": 1, |
| 208 | } |
| 209 | |
| 210 | func (x WatchCreateRequest_FilterType) String() string { |
| 211 | return proto.EnumName(WatchCreateRequest_FilterType_name, int32(x)) |
| 212 | } |
| 213 | |
| 214 | func (WatchCreateRequest_FilterType) EnumDescriptor() ([]byte, []int) { |
| 215 | return fileDescriptor_77a6da22d6a3feb1, []int{21, 0} |
| 216 | } |
| 217 | |
| 218 | type AlarmRequest_AlarmAction int32 |
| 219 | |
| 220 | const ( |
| 221 | AlarmRequest_GET AlarmRequest_AlarmAction = 0 |
| 222 | AlarmRequest_ACTIVATE AlarmRequest_AlarmAction = 1 |
| 223 | AlarmRequest_DEACTIVATE AlarmRequest_AlarmAction = 2 |
| 224 | ) |
| 225 | |
| 226 | var AlarmRequest_AlarmAction_name = map[int32]string{ |
| 227 | 0: "GET", |
| 228 | 1: "ACTIVATE", |
| 229 | 2: "DEACTIVATE", |
| 230 | } |
| 231 | |
| 232 | var AlarmRequest_AlarmAction_value = map[string]int32{ |
| 233 | "GET": 0, |
| 234 | "ACTIVATE": 1, |
| 235 | "DEACTIVATE": 2, |
| 236 | } |
| 237 | |
| 238 | func (x AlarmRequest_AlarmAction) String() string { |
| 239 | return proto.EnumName(AlarmRequest_AlarmAction_name, int32(x)) |
| 240 | } |
| 241 | |
| 242 | func (AlarmRequest_AlarmAction) EnumDescriptor() ([]byte, []int) { |
| 243 | return fileDescriptor_77a6da22d6a3feb1, []int{54, 0} |
| 244 | } |
| 245 | |
| 246 | type DowngradeRequest_DowngradeAction int32 |
| 247 | |
| 248 | const ( |
| 249 | DowngradeRequest_VALIDATE DowngradeRequest_DowngradeAction = 0 |
| 250 | DowngradeRequest_ENABLE DowngradeRequest_DowngradeAction = 1 |
| 251 | DowngradeRequest_CANCEL DowngradeRequest_DowngradeAction = 2 |
| 252 | ) |
| 253 | |
| 254 | var DowngradeRequest_DowngradeAction_name = map[int32]string{ |
| 255 | 0: "VALIDATE", |
| 256 | 1: "ENABLE", |
| 257 | 2: "CANCEL", |
| 258 | } |
| 259 | |
| 260 | var DowngradeRequest_DowngradeAction_value = map[string]int32{ |
| 261 | "VALIDATE": 0, |
| 262 | "ENABLE": 1, |
| 263 | "CANCEL": 2, |
| 264 | } |
| 265 | |
| 266 | func (x DowngradeRequest_DowngradeAction) String() string { |
| 267 | return proto.EnumName(DowngradeRequest_DowngradeAction_name, int32(x)) |
| 268 | } |
| 269 | |
| 270 | func (DowngradeRequest_DowngradeAction) EnumDescriptor() ([]byte, []int) { |
| 271 | return fileDescriptor_77a6da22d6a3feb1, []int{57, 0} |
| 272 | } |
| 273 | |
| 274 | type ResponseHeader struct { |
| 275 | // cluster_id is the ID of the cluster which sent the response. |
| 276 | ClusterId uint64 `protobuf:"varint,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` |
| 277 | // member_id is the ID of the member which sent the response. |
| 278 | MemberId uint64 `protobuf:"varint,2,opt,name=member_id,json=memberId,proto3" json:"member_id,omitempty"` |
| 279 | // revision is the key-value store revision when the request was applied, and it's |
| 280 | // unset (so 0) in case of calls not interacting with key-value store. |
| 281 | // For watch progress responses, the header.revision indicates progress. All future events |
| 282 | // received in this stream are guaranteed to have a higher revision number than the |
| 283 | // header.revision number. |
| 284 | Revision int64 `protobuf:"varint,3,opt,name=revision,proto3" json:"revision,omitempty"` |
| 285 | // raft_term is the raft term when the request was applied. |
| 286 | RaftTerm uint64 `protobuf:"varint,4,opt,name=raft_term,json=raftTerm,proto3" json:"raft_term,omitempty"` |
| 287 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 288 | XXX_unrecognized []byte `json:"-"` |
| 289 | XXX_sizecache int32 `json:"-"` |
| 290 | } |
| 291 | |
| 292 | func (m *ResponseHeader) Reset() { *m = ResponseHeader{} } |
| 293 | func (m *ResponseHeader) String() string { return proto.CompactTextString(m) } |
| 294 | func (*ResponseHeader) ProtoMessage() {} |
| 295 | func (*ResponseHeader) Descriptor() ([]byte, []int) { |
| 296 | return fileDescriptor_77a6da22d6a3feb1, []int{0} |
| 297 | } |
| 298 | func (m *ResponseHeader) XXX_Unmarshal(b []byte) error { |
| 299 | return m.Unmarshal(b) |
| 300 | } |
| 301 | func (m *ResponseHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 302 | if deterministic { |
| 303 | return xxx_messageInfo_ResponseHeader.Marshal(b, m, deterministic) |
| 304 | } else { |
| 305 | b = b[:cap(b)] |
| 306 | n, err := m.MarshalToSizedBuffer(b) |
| 307 | if err != nil { |
| 308 | return nil, err |
| 309 | } |
| 310 | return b[:n], nil |
| 311 | } |
| 312 | } |
| 313 | func (m *ResponseHeader) XXX_Merge(src proto.Message) { |
| 314 | xxx_messageInfo_ResponseHeader.Merge(m, src) |
| 315 | } |
| 316 | func (m *ResponseHeader) XXX_Size() int { |
| 317 | return m.Size() |
| 318 | } |
| 319 | func (m *ResponseHeader) XXX_DiscardUnknown() { |
| 320 | xxx_messageInfo_ResponseHeader.DiscardUnknown(m) |
| 321 | } |
| 322 | |
| 323 | var xxx_messageInfo_ResponseHeader proto.InternalMessageInfo |
| 324 | |
| 325 | func (m *ResponseHeader) GetClusterId() uint64 { |
| 326 | if m != nil { |
| 327 | return m.ClusterId |
| 328 | } |
| 329 | return 0 |
| 330 | } |
| 331 | |
| 332 | func (m *ResponseHeader) GetMemberId() uint64 { |
| 333 | if m != nil { |
| 334 | return m.MemberId |
| 335 | } |
| 336 | return 0 |
| 337 | } |
| 338 | |
| 339 | func (m *ResponseHeader) GetRevision() int64 { |
| 340 | if m != nil { |
| 341 | return m.Revision |
| 342 | } |
| 343 | return 0 |
| 344 | } |
| 345 | |
| 346 | func (m *ResponseHeader) GetRaftTerm() uint64 { |
| 347 | if m != nil { |
| 348 | return m.RaftTerm |
| 349 | } |
| 350 | return 0 |
| 351 | } |
| 352 | |
| 353 | type RangeRequest struct { |
| 354 | // key is the first key for the range. If range_end is not given, the request only looks up key. |
| 355 | Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` |
| 356 | // range_end is the upper bound on the requested range [key, range_end). |
| 357 | // If range_end is '\0', the range is all keys >= key. |
| 358 | // If range_end is key plus one (e.g., "aa"+1 == "ab", "a\xff"+1 == "b"), |
| 359 | // then the range request gets all keys prefixed with key. |
| 360 | // If both key and range_end are '\0', then the range request returns all keys. |
| 361 | RangeEnd []byte `protobuf:"bytes,2,opt,name=range_end,json=rangeEnd,proto3" json:"range_end,omitempty"` |
| 362 | // limit is a limit on the number of keys returned for the request. When limit is set to 0, |
| 363 | // it is treated as no limit. |
| 364 | Limit int64 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` |
| 365 | // revision is the point-in-time of the key-value store to use for the range. |
| 366 | // If revision is less or equal to zero, the range is over the newest key-value store. |
| 367 | // If the revision has been compacted, ErrCompacted is returned as a response. |
| 368 | Revision int64 `protobuf:"varint,4,opt,name=revision,proto3" json:"revision,omitempty"` |
| 369 | // sort_order is the order for returned sorted results. |
| 370 | SortOrder RangeRequest_SortOrder `protobuf:"varint,5,opt,name=sort_order,json=sortOrder,proto3,enum=etcdserverpb.RangeRequest_SortOrder" json:"sort_order,omitempty"` |
| 371 | // sort_target is the key-value field to use for sorting. |
| 372 | SortTarget RangeRequest_SortTarget `protobuf:"varint,6,opt,name=sort_target,json=sortTarget,proto3,enum=etcdserverpb.RangeRequest_SortTarget" json:"sort_target,omitempty"` |
| 373 | // serializable sets the range request to use serializable member-local reads. |
| 374 | // Range requests are linearizable by default; linearizable requests have higher |
| 375 | // latency and lower throughput than serializable requests but reflect the current |
| 376 | // consensus of the cluster. For better performance, in exchange for possible stale reads, |
| 377 | // a serializable range request is served locally without needing to reach consensus |
| 378 | // with other nodes in the cluster. |
| 379 | Serializable bool `protobuf:"varint,7,opt,name=serializable,proto3" json:"serializable,omitempty"` |
| 380 | // keys_only when set returns only the keys and not the values. |
| 381 | KeysOnly bool `protobuf:"varint,8,opt,name=keys_only,json=keysOnly,proto3" json:"keys_only,omitempty"` |
| 382 | // count_only when set returns only the count of the keys in the range. |
| 383 | CountOnly bool `protobuf:"varint,9,opt,name=count_only,json=countOnly,proto3" json:"count_only,omitempty"` |
| 384 | // min_mod_revision is the lower bound for returned key mod revisions; all keys with |
| 385 | // lesser mod revisions will be filtered away. |
| 386 | MinModRevision int64 `protobuf:"varint,10,opt,name=min_mod_revision,json=minModRevision,proto3" json:"min_mod_revision,omitempty"` |
| 387 | // max_mod_revision is the upper bound for returned key mod revisions; all keys with |
| 388 | // greater mod revisions will be filtered away. |
| 389 | MaxModRevision int64 `protobuf:"varint,11,opt,name=max_mod_revision,json=maxModRevision,proto3" json:"max_mod_revision,omitempty"` |
| 390 | // min_create_revision is the lower bound for returned key create revisions; all keys with |
| 391 | // lesser create revisions will be filtered away. |
| 392 | MinCreateRevision int64 `protobuf:"varint,12,opt,name=min_create_revision,json=minCreateRevision,proto3" json:"min_create_revision,omitempty"` |
| 393 | // max_create_revision is the upper bound for returned key create revisions; all keys with |
| 394 | // greater create revisions will be filtered away. |
| 395 | MaxCreateRevision int64 `protobuf:"varint,13,opt,name=max_create_revision,json=maxCreateRevision,proto3" json:"max_create_revision,omitempty"` |
| 396 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 397 | XXX_unrecognized []byte `json:"-"` |
| 398 | XXX_sizecache int32 `json:"-"` |
| 399 | } |
| 400 | |
| 401 | func (m *RangeRequest) Reset() { *m = RangeRequest{} } |
| 402 | func (m *RangeRequest) String() string { return proto.CompactTextString(m) } |
| 403 | func (*RangeRequest) ProtoMessage() {} |
| 404 | func (*RangeRequest) Descriptor() ([]byte, []int) { |
| 405 | return fileDescriptor_77a6da22d6a3feb1, []int{1} |
| 406 | } |
| 407 | func (m *RangeRequest) XXX_Unmarshal(b []byte) error { |
| 408 | return m.Unmarshal(b) |
| 409 | } |
| 410 | func (m *RangeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 411 | if deterministic { |
| 412 | return xxx_messageInfo_RangeRequest.Marshal(b, m, deterministic) |
| 413 | } else { |
| 414 | b = b[:cap(b)] |
| 415 | n, err := m.MarshalToSizedBuffer(b) |
| 416 | if err != nil { |
| 417 | return nil, err |
| 418 | } |
| 419 | return b[:n], nil |
| 420 | } |
| 421 | } |
| 422 | func (m *RangeRequest) XXX_Merge(src proto.Message) { |
| 423 | xxx_messageInfo_RangeRequest.Merge(m, src) |
| 424 | } |
| 425 | func (m *RangeRequest) XXX_Size() int { |
| 426 | return m.Size() |
| 427 | } |
| 428 | func (m *RangeRequest) XXX_DiscardUnknown() { |
| 429 | xxx_messageInfo_RangeRequest.DiscardUnknown(m) |
| 430 | } |
| 431 | |
| 432 | var xxx_messageInfo_RangeRequest proto.InternalMessageInfo |
| 433 | |
| 434 | func (m *RangeRequest) GetKey() []byte { |
| 435 | if m != nil { |
| 436 | return m.Key |
| 437 | } |
| 438 | return nil |
| 439 | } |
| 440 | |
| 441 | func (m *RangeRequest) GetRangeEnd() []byte { |
| 442 | if m != nil { |
| 443 | return m.RangeEnd |
| 444 | } |
| 445 | return nil |
| 446 | } |
| 447 | |
| 448 | func (m *RangeRequest) GetLimit() int64 { |
| 449 | if m != nil { |
| 450 | return m.Limit |
| 451 | } |
| 452 | return 0 |
| 453 | } |
| 454 | |
| 455 | func (m *RangeRequest) GetRevision() int64 { |
| 456 | if m != nil { |
| 457 | return m.Revision |
| 458 | } |
| 459 | return 0 |
| 460 | } |
| 461 | |
| 462 | func (m *RangeRequest) GetSortOrder() RangeRequest_SortOrder { |
| 463 | if m != nil { |
| 464 | return m.SortOrder |
| 465 | } |
| 466 | return RangeRequest_NONE |
| 467 | } |
| 468 | |
| 469 | func (m *RangeRequest) GetSortTarget() RangeRequest_SortTarget { |
| 470 | if m != nil { |
| 471 | return m.SortTarget |
| 472 | } |
| 473 | return RangeRequest_KEY |
| 474 | } |
| 475 | |
| 476 | func (m *RangeRequest) GetSerializable() bool { |
| 477 | if m != nil { |
| 478 | return m.Serializable |
| 479 | } |
| 480 | return false |
| 481 | } |
| 482 | |
| 483 | func (m *RangeRequest) GetKeysOnly() bool { |
| 484 | if m != nil { |
| 485 | return m.KeysOnly |
| 486 | } |
| 487 | return false |
| 488 | } |
| 489 | |
| 490 | func (m *RangeRequest) GetCountOnly() bool { |
| 491 | if m != nil { |
| 492 | return m.CountOnly |
| 493 | } |
| 494 | return false |
| 495 | } |
| 496 | |
| 497 | func (m *RangeRequest) GetMinModRevision() int64 { |
| 498 | if m != nil { |
| 499 | return m.MinModRevision |
| 500 | } |
| 501 | return 0 |
| 502 | } |
| 503 | |
| 504 | func (m *RangeRequest) GetMaxModRevision() int64 { |
| 505 | if m != nil { |
| 506 | return m.MaxModRevision |
| 507 | } |
| 508 | return 0 |
| 509 | } |
| 510 | |
| 511 | func (m *RangeRequest) GetMinCreateRevision() int64 { |
| 512 | if m != nil { |
| 513 | return m.MinCreateRevision |
| 514 | } |
| 515 | return 0 |
| 516 | } |
| 517 | |
| 518 | func (m *RangeRequest) GetMaxCreateRevision() int64 { |
| 519 | if m != nil { |
| 520 | return m.MaxCreateRevision |
| 521 | } |
| 522 | return 0 |
| 523 | } |
| 524 | |
| 525 | type RangeResponse struct { |
| 526 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` |
| 527 | // kvs is the list of key-value pairs matched by the range request. |
| 528 | // kvs is empty when count is requested. |
| 529 | Kvs []*mvccpb.KeyValue `protobuf:"bytes,2,rep,name=kvs,proto3" json:"kvs,omitempty"` |
| 530 | // more indicates if there are more keys to return in the requested range. |
| 531 | More bool `protobuf:"varint,3,opt,name=more,proto3" json:"more,omitempty"` |
| 532 | // count is set to the actual number of keys within the range when requested. |
| 533 | // Unlike Kvs, it is unaffected by limits and filters (e.g., Min/Max, Create/Modify, Revisions) |
| 534 | // and reflects the full count within the specified range. |
| 535 | Count int64 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"` |
| 536 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 537 | XXX_unrecognized []byte `json:"-"` |
| 538 | XXX_sizecache int32 `json:"-"` |
| 539 | } |
| 540 | |
| 541 | func (m *RangeResponse) Reset() { *m = RangeResponse{} } |
| 542 | func (m *RangeResponse) String() string { return proto.CompactTextString(m) } |
| 543 | func (*RangeResponse) ProtoMessage() {} |
| 544 | func (*RangeResponse) Descriptor() ([]byte, []int) { |
| 545 | return fileDescriptor_77a6da22d6a3feb1, []int{2} |
| 546 | } |
| 547 | func (m *RangeResponse) XXX_Unmarshal(b []byte) error { |
| 548 | return m.Unmarshal(b) |
| 549 | } |
| 550 | func (m *RangeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 551 | if deterministic { |
| 552 | return xxx_messageInfo_RangeResponse.Marshal(b, m, deterministic) |
| 553 | } else { |
| 554 | b = b[:cap(b)] |
| 555 | n, err := m.MarshalToSizedBuffer(b) |
| 556 | if err != nil { |
| 557 | return nil, err |
| 558 | } |
| 559 | return b[:n], nil |
| 560 | } |
| 561 | } |
| 562 | func (m *RangeResponse) XXX_Merge(src proto.Message) { |
| 563 | xxx_messageInfo_RangeResponse.Merge(m, src) |
| 564 | } |
| 565 | func (m *RangeResponse) XXX_Size() int { |
| 566 | return m.Size() |
| 567 | } |
| 568 | func (m *RangeResponse) XXX_DiscardUnknown() { |
| 569 | xxx_messageInfo_RangeResponse.DiscardUnknown(m) |
| 570 | } |
| 571 | |
| 572 | var xxx_messageInfo_RangeResponse proto.InternalMessageInfo |
| 573 | |
| 574 | func (m *RangeResponse) GetHeader() *ResponseHeader { |
| 575 | if m != nil { |
| 576 | return m.Header |
| 577 | } |
| 578 | return nil |
| 579 | } |
| 580 | |
| 581 | func (m *RangeResponse) GetKvs() []*mvccpb.KeyValue { |
| 582 | if m != nil { |
| 583 | return m.Kvs |
| 584 | } |
| 585 | return nil |
| 586 | } |
| 587 | |
| 588 | func (m *RangeResponse) GetMore() bool { |
| 589 | if m != nil { |
| 590 | return m.More |
| 591 | } |
| 592 | return false |
| 593 | } |
| 594 | |
| 595 | func (m *RangeResponse) GetCount() int64 { |
| 596 | if m != nil { |
| 597 | return m.Count |
| 598 | } |
| 599 | return 0 |
| 600 | } |
| 601 | |
| 602 | type PutRequest struct { |
| 603 | // key is the key, in bytes, to put into the key-value store. |
| 604 | Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` |
| 605 | // value is the value, in bytes, to associate with the key in the key-value store. |
| 606 | Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` |
| 607 | // lease is the lease ID to associate with the key in the key-value store. A lease |
| 608 | // value of 0 indicates no lease. |
| 609 | Lease int64 `protobuf:"varint,3,opt,name=lease,proto3" json:"lease,omitempty"` |
| 610 | // If prev_kv is set, etcd gets the previous key-value pair before changing it. |
| 611 | // The previous key-value pair will be returned in the put response. |
| 612 | PrevKv bool `protobuf:"varint,4,opt,name=prev_kv,json=prevKv,proto3" json:"prev_kv,omitempty"` |
| 613 | // If ignore_value is set, etcd updates the key using its current value. |
| 614 | // Returns an error if the key does not exist. |
| 615 | IgnoreValue bool `protobuf:"varint,5,opt,name=ignore_value,json=ignoreValue,proto3" json:"ignore_value,omitempty"` |
| 616 | // If ignore_lease is set, etcd updates the key using its current lease. |
| 617 | // Returns an error if the key does not exist. |
| 618 | IgnoreLease bool `protobuf:"varint,6,opt,name=ignore_lease,json=ignoreLease,proto3" json:"ignore_lease,omitempty"` |
| 619 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 620 | XXX_unrecognized []byte `json:"-"` |
| 621 | XXX_sizecache int32 `json:"-"` |
| 622 | } |
| 623 | |
| 624 | func (m *PutRequest) Reset() { *m = PutRequest{} } |
| 625 | func (m *PutRequest) String() string { return proto.CompactTextString(m) } |
| 626 | func (*PutRequest) ProtoMessage() {} |
| 627 | func (*PutRequest) Descriptor() ([]byte, []int) { |
| 628 | return fileDescriptor_77a6da22d6a3feb1, []int{3} |
| 629 | } |
| 630 | func (m *PutRequest) XXX_Unmarshal(b []byte) error { |
| 631 | return m.Unmarshal(b) |
| 632 | } |
| 633 | func (m *PutRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 634 | if deterministic { |
| 635 | return xxx_messageInfo_PutRequest.Marshal(b, m, deterministic) |
| 636 | } else { |
| 637 | b = b[:cap(b)] |
| 638 | n, err := m.MarshalToSizedBuffer(b) |
| 639 | if err != nil { |
| 640 | return nil, err |
| 641 | } |
| 642 | return b[:n], nil |
| 643 | } |
| 644 | } |
| 645 | func (m *PutRequest) XXX_Merge(src proto.Message) { |
| 646 | xxx_messageInfo_PutRequest.Merge(m, src) |
| 647 | } |
| 648 | func (m *PutRequest) XXX_Size() int { |
| 649 | return m.Size() |
| 650 | } |
| 651 | func (m *PutRequest) XXX_DiscardUnknown() { |
| 652 | xxx_messageInfo_PutRequest.DiscardUnknown(m) |
| 653 | } |
| 654 | |
| 655 | var xxx_messageInfo_PutRequest proto.InternalMessageInfo |
| 656 | |
| 657 | func (m *PutRequest) GetKey() []byte { |
| 658 | if m != nil { |
| 659 | return m.Key |
| 660 | } |
| 661 | return nil |
| 662 | } |
| 663 | |
| 664 | func (m *PutRequest) GetValue() []byte { |
| 665 | if m != nil { |
| 666 | return m.Value |
| 667 | } |
| 668 | return nil |
| 669 | } |
| 670 | |
| 671 | func (m *PutRequest) GetLease() int64 { |
| 672 | if m != nil { |
| 673 | return m.Lease |
| 674 | } |
| 675 | return 0 |
| 676 | } |
| 677 | |
| 678 | func (m *PutRequest) GetPrevKv() bool { |
| 679 | if m != nil { |
| 680 | return m.PrevKv |
| 681 | } |
| 682 | return false |
| 683 | } |
| 684 | |
| 685 | func (m *PutRequest) GetIgnoreValue() bool { |
| 686 | if m != nil { |
| 687 | return m.IgnoreValue |
| 688 | } |
| 689 | return false |
| 690 | } |
| 691 | |
| 692 | func (m *PutRequest) GetIgnoreLease() bool { |
| 693 | if m != nil { |
| 694 | return m.IgnoreLease |
| 695 | } |
| 696 | return false |
| 697 | } |
| 698 | |
| 699 | type PutResponse struct { |
| 700 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` |
| 701 | // if prev_kv is set in the request, the previous key-value pair will be returned. |
| 702 | PrevKv *mvccpb.KeyValue `protobuf:"bytes,2,opt,name=prev_kv,json=prevKv,proto3" json:"prev_kv,omitempty"` |
| 703 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 704 | XXX_unrecognized []byte `json:"-"` |
| 705 | XXX_sizecache int32 `json:"-"` |
| 706 | } |
| 707 | |
| 708 | func (m *PutResponse) Reset() { *m = PutResponse{} } |
| 709 | func (m *PutResponse) String() string { return proto.CompactTextString(m) } |
| 710 | func (*PutResponse) ProtoMessage() {} |
| 711 | func (*PutResponse) Descriptor() ([]byte, []int) { |
| 712 | return fileDescriptor_77a6da22d6a3feb1, []int{4} |
| 713 | } |
| 714 | func (m *PutResponse) XXX_Unmarshal(b []byte) error { |
| 715 | return m.Unmarshal(b) |
| 716 | } |
| 717 | func (m *PutResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 718 | if deterministic { |
| 719 | return xxx_messageInfo_PutResponse.Marshal(b, m, deterministic) |
| 720 | } else { |
| 721 | b = b[:cap(b)] |
| 722 | n, err := m.MarshalToSizedBuffer(b) |
| 723 | if err != nil { |
| 724 | return nil, err |
| 725 | } |
| 726 | return b[:n], nil |
| 727 | } |
| 728 | } |
| 729 | func (m *PutResponse) XXX_Merge(src proto.Message) { |
| 730 | xxx_messageInfo_PutResponse.Merge(m, src) |
| 731 | } |
| 732 | func (m *PutResponse) XXX_Size() int { |
| 733 | return m.Size() |
| 734 | } |
| 735 | func (m *PutResponse) XXX_DiscardUnknown() { |
| 736 | xxx_messageInfo_PutResponse.DiscardUnknown(m) |
| 737 | } |
| 738 | |
| 739 | var xxx_messageInfo_PutResponse proto.InternalMessageInfo |
| 740 | |
| 741 | func (m *PutResponse) GetHeader() *ResponseHeader { |
| 742 | if m != nil { |
| 743 | return m.Header |
| 744 | } |
| 745 | return nil |
| 746 | } |
| 747 | |
| 748 | func (m *PutResponse) GetPrevKv() *mvccpb.KeyValue { |
| 749 | if m != nil { |
| 750 | return m.PrevKv |
| 751 | } |
| 752 | return nil |
| 753 | } |
| 754 | |
| 755 | type DeleteRangeRequest struct { |
| 756 | // key is the first key to delete in the range. |
| 757 | Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` |
| 758 | // range_end is the key following the last key to delete for the range [key, range_end). |
| 759 | // If range_end is not given, the range is defined to contain only the key argument. |
| 760 | // If range_end is one bit larger than the given key, then the range is all the keys |
| 761 | // with the prefix (the given key). |
| 762 | // If range_end is '\0', the range is all keys greater than or equal to the key argument. |
| 763 | RangeEnd []byte `protobuf:"bytes,2,opt,name=range_end,json=rangeEnd,proto3" json:"range_end,omitempty"` |
| 764 | // If prev_kv is set, etcd gets the previous key-value pairs before deleting it. |
| 765 | // The previous key-value pairs will be returned in the delete response. |
| 766 | PrevKv bool `protobuf:"varint,3,opt,name=prev_kv,json=prevKv,proto3" json:"prev_kv,omitempty"` |
| 767 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 768 | XXX_unrecognized []byte `json:"-"` |
| 769 | XXX_sizecache int32 `json:"-"` |
| 770 | } |
| 771 | |
| 772 | func (m *DeleteRangeRequest) Reset() { *m = DeleteRangeRequest{} } |
| 773 | func (m *DeleteRangeRequest) String() string { return proto.CompactTextString(m) } |
| 774 | func (*DeleteRangeRequest) ProtoMessage() {} |
| 775 | func (*DeleteRangeRequest) Descriptor() ([]byte, []int) { |
| 776 | return fileDescriptor_77a6da22d6a3feb1, []int{5} |
| 777 | } |
| 778 | func (m *DeleteRangeRequest) XXX_Unmarshal(b []byte) error { |
| 779 | return m.Unmarshal(b) |
| 780 | } |
| 781 | func (m *DeleteRangeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 782 | if deterministic { |
| 783 | return xxx_messageInfo_DeleteRangeRequest.Marshal(b, m, deterministic) |
| 784 | } else { |
| 785 | b = b[:cap(b)] |
| 786 | n, err := m.MarshalToSizedBuffer(b) |
| 787 | if err != nil { |
| 788 | return nil, err |
| 789 | } |
| 790 | return b[:n], nil |
| 791 | } |
| 792 | } |
| 793 | func (m *DeleteRangeRequest) XXX_Merge(src proto.Message) { |
| 794 | xxx_messageInfo_DeleteRangeRequest.Merge(m, src) |
| 795 | } |
| 796 | func (m *DeleteRangeRequest) XXX_Size() int { |
| 797 | return m.Size() |
| 798 | } |
| 799 | func (m *DeleteRangeRequest) XXX_DiscardUnknown() { |
| 800 | xxx_messageInfo_DeleteRangeRequest.DiscardUnknown(m) |
| 801 | } |
| 802 | |
| 803 | var xxx_messageInfo_DeleteRangeRequest proto.InternalMessageInfo |
| 804 | |
| 805 | func (m *DeleteRangeRequest) GetKey() []byte { |
| 806 | if m != nil { |
| 807 | return m.Key |
| 808 | } |
| 809 | return nil |
| 810 | } |
| 811 | |
| 812 | func (m *DeleteRangeRequest) GetRangeEnd() []byte { |
| 813 | if m != nil { |
| 814 | return m.RangeEnd |
| 815 | } |
| 816 | return nil |
| 817 | } |
| 818 | |
| 819 | func (m *DeleteRangeRequest) GetPrevKv() bool { |
| 820 | if m != nil { |
| 821 | return m.PrevKv |
| 822 | } |
| 823 | return false |
| 824 | } |
| 825 | |
| 826 | type DeleteRangeResponse struct { |
| 827 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` |
| 828 | // deleted is the number of keys deleted by the delete range request. |
| 829 | Deleted int64 `protobuf:"varint,2,opt,name=deleted,proto3" json:"deleted,omitempty"` |
| 830 | // if prev_kv is set in the request, the previous key-value pairs will be returned. |
| 831 | PrevKvs []*mvccpb.KeyValue `protobuf:"bytes,3,rep,name=prev_kvs,json=prevKvs,proto3" json:"prev_kvs,omitempty"` |
| 832 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 833 | XXX_unrecognized []byte `json:"-"` |
| 834 | XXX_sizecache int32 `json:"-"` |
| 835 | } |
| 836 | |
| 837 | func (m *DeleteRangeResponse) Reset() { *m = DeleteRangeResponse{} } |
| 838 | func (m *DeleteRangeResponse) String() string { return proto.CompactTextString(m) } |
| 839 | func (*DeleteRangeResponse) ProtoMessage() {} |
| 840 | func (*DeleteRangeResponse) Descriptor() ([]byte, []int) { |
| 841 | return fileDescriptor_77a6da22d6a3feb1, []int{6} |
| 842 | } |
| 843 | func (m *DeleteRangeResponse) XXX_Unmarshal(b []byte) error { |
| 844 | return m.Unmarshal(b) |
| 845 | } |
| 846 | func (m *DeleteRangeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 847 | if deterministic { |
| 848 | return xxx_messageInfo_DeleteRangeResponse.Marshal(b, m, deterministic) |
| 849 | } else { |
| 850 | b = b[:cap(b)] |
| 851 | n, err := m.MarshalToSizedBuffer(b) |
| 852 | if err != nil { |
| 853 | return nil, err |
| 854 | } |
| 855 | return b[:n], nil |
| 856 | } |
| 857 | } |
| 858 | func (m *DeleteRangeResponse) XXX_Merge(src proto.Message) { |
| 859 | xxx_messageInfo_DeleteRangeResponse.Merge(m, src) |
| 860 | } |
| 861 | func (m *DeleteRangeResponse) XXX_Size() int { |
| 862 | return m.Size() |
| 863 | } |
| 864 | func (m *DeleteRangeResponse) XXX_DiscardUnknown() { |
| 865 | xxx_messageInfo_DeleteRangeResponse.DiscardUnknown(m) |
| 866 | } |
| 867 | |
| 868 | var xxx_messageInfo_DeleteRangeResponse proto.InternalMessageInfo |
| 869 | |
| 870 | func (m *DeleteRangeResponse) GetHeader() *ResponseHeader { |
| 871 | if m != nil { |
| 872 | return m.Header |
| 873 | } |
| 874 | return nil |
| 875 | } |
| 876 | |
| 877 | func (m *DeleteRangeResponse) GetDeleted() int64 { |
| 878 | if m != nil { |
| 879 | return m.Deleted |
| 880 | } |
| 881 | return 0 |
| 882 | } |
| 883 | |
| 884 | func (m *DeleteRangeResponse) GetPrevKvs() []*mvccpb.KeyValue { |
| 885 | if m != nil { |
| 886 | return m.PrevKvs |
| 887 | } |
| 888 | return nil |
| 889 | } |
| 890 | |
| 891 | type RequestOp struct { |
| 892 | // request is a union of request types accepted by a transaction. |
| 893 | // |
| 894 | // Types that are valid to be assigned to Request: |
| 895 | // *RequestOp_RequestRange |
| 896 | // *RequestOp_RequestPut |
| 897 | // *RequestOp_RequestDeleteRange |
| 898 | // *RequestOp_RequestTxn |
| 899 | Request isRequestOp_Request `protobuf_oneof:"request"` |
| 900 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 901 | XXX_unrecognized []byte `json:"-"` |
| 902 | XXX_sizecache int32 `json:"-"` |
| 903 | } |
| 904 | |
| 905 | func (m *RequestOp) Reset() { *m = RequestOp{} } |
| 906 | func (m *RequestOp) String() string { return proto.CompactTextString(m) } |
| 907 | func (*RequestOp) ProtoMessage() {} |
| 908 | func (*RequestOp) Descriptor() ([]byte, []int) { |
| 909 | return fileDescriptor_77a6da22d6a3feb1, []int{7} |
| 910 | } |
| 911 | func (m *RequestOp) XXX_Unmarshal(b []byte) error { |
| 912 | return m.Unmarshal(b) |
| 913 | } |
| 914 | func (m *RequestOp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 915 | if deterministic { |
| 916 | return xxx_messageInfo_RequestOp.Marshal(b, m, deterministic) |
| 917 | } else { |
| 918 | b = b[:cap(b)] |
| 919 | n, err := m.MarshalToSizedBuffer(b) |
| 920 | if err != nil { |
| 921 | return nil, err |
| 922 | } |
| 923 | return b[:n], nil |
| 924 | } |
| 925 | } |
| 926 | func (m *RequestOp) XXX_Merge(src proto.Message) { |
| 927 | xxx_messageInfo_RequestOp.Merge(m, src) |
| 928 | } |
| 929 | func (m *RequestOp) XXX_Size() int { |
| 930 | return m.Size() |
| 931 | } |
| 932 | func (m *RequestOp) XXX_DiscardUnknown() { |
| 933 | xxx_messageInfo_RequestOp.DiscardUnknown(m) |
| 934 | } |
| 935 | |
| 936 | var xxx_messageInfo_RequestOp proto.InternalMessageInfo |
| 937 | |
| 938 | type isRequestOp_Request interface { |
| 939 | isRequestOp_Request() |
| 940 | MarshalTo([]byte) (int, error) |
| 941 | Size() int |
| 942 | } |
| 943 | |
| 944 | type RequestOp_RequestRange struct { |
| 945 | RequestRange *RangeRequest `protobuf:"bytes,1,opt,name=request_range,json=requestRange,proto3,oneof" json:"request_range,omitempty"` |
| 946 | } |
| 947 | type RequestOp_RequestPut struct { |
| 948 | RequestPut *PutRequest `protobuf:"bytes,2,opt,name=request_put,json=requestPut,proto3,oneof" json:"request_put,omitempty"` |
| 949 | } |
| 950 | type RequestOp_RequestDeleteRange struct { |
| 951 | RequestDeleteRange *DeleteRangeRequest `protobuf:"bytes,3,opt,name=request_delete_range,json=requestDeleteRange,proto3,oneof" json:"request_delete_range,omitempty"` |
| 952 | } |
| 953 | type RequestOp_RequestTxn struct { |
| 954 | RequestTxn *TxnRequest `protobuf:"bytes,4,opt,name=request_txn,json=requestTxn,proto3,oneof" json:"request_txn,omitempty"` |
| 955 | } |
| 956 | |
| 957 | func (*RequestOp_RequestRange) isRequestOp_Request() {} |
| 958 | func (*RequestOp_RequestPut) isRequestOp_Request() {} |
| 959 | func (*RequestOp_RequestDeleteRange) isRequestOp_Request() {} |
| 960 | func (*RequestOp_RequestTxn) isRequestOp_Request() {} |
| 961 | |
| 962 | func (m *RequestOp) GetRequest() isRequestOp_Request { |
| 963 | if m != nil { |
| 964 | return m.Request |
| 965 | } |
| 966 | return nil |
| 967 | } |
| 968 | |
| 969 | func (m *RequestOp) GetRequestRange() *RangeRequest { |
| 970 | if x, ok := m.GetRequest().(*RequestOp_RequestRange); ok { |
| 971 | return x.RequestRange |
| 972 | } |
| 973 | return nil |
| 974 | } |
| 975 | |
| 976 | func (m *RequestOp) GetRequestPut() *PutRequest { |
| 977 | if x, ok := m.GetRequest().(*RequestOp_RequestPut); ok { |
| 978 | return x.RequestPut |
| 979 | } |
| 980 | return nil |
| 981 | } |
| 982 | |
| 983 | func (m *RequestOp) GetRequestDeleteRange() *DeleteRangeRequest { |
| 984 | if x, ok := m.GetRequest().(*RequestOp_RequestDeleteRange); ok { |
| 985 | return x.RequestDeleteRange |
| 986 | } |
| 987 | return nil |
| 988 | } |
| 989 | |
| 990 | func (m *RequestOp) GetRequestTxn() *TxnRequest { |
| 991 | if x, ok := m.GetRequest().(*RequestOp_RequestTxn); ok { |
| 992 | return x.RequestTxn |
| 993 | } |
| 994 | return nil |
| 995 | } |
| 996 | |
| 997 | // XXX_OneofWrappers is for the internal use of the proto package. |
| 998 | func (*RequestOp) XXX_OneofWrappers() []interface{} { |
| 999 | return []interface{}{ |
| 1000 | (*RequestOp_RequestRange)(nil), |
| 1001 | (*RequestOp_RequestPut)(nil), |
| 1002 | (*RequestOp_RequestDeleteRange)(nil), |
| 1003 | (*RequestOp_RequestTxn)(nil), |
| 1004 | } |
| 1005 | } |
| 1006 | |
| 1007 | type ResponseOp struct { |
| 1008 | // response is a union of response types returned by a transaction. |
| 1009 | // |
| 1010 | // Types that are valid to be assigned to Response: |
| 1011 | // *ResponseOp_ResponseRange |
| 1012 | // *ResponseOp_ResponsePut |
| 1013 | // *ResponseOp_ResponseDeleteRange |
| 1014 | // *ResponseOp_ResponseTxn |
| 1015 | Response isResponseOp_Response `protobuf_oneof:"response"` |
| 1016 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 1017 | XXX_unrecognized []byte `json:"-"` |
| 1018 | XXX_sizecache int32 `json:"-"` |
| 1019 | } |
| 1020 | |
| 1021 | func (m *ResponseOp) Reset() { *m = ResponseOp{} } |
| 1022 | func (m *ResponseOp) String() string { return proto.CompactTextString(m) } |
| 1023 | func (*ResponseOp) ProtoMessage() {} |
| 1024 | func (*ResponseOp) Descriptor() ([]byte, []int) { |
| 1025 | return fileDescriptor_77a6da22d6a3feb1, []int{8} |
| 1026 | } |
| 1027 | func (m *ResponseOp) XXX_Unmarshal(b []byte) error { |
| 1028 | return m.Unmarshal(b) |
| 1029 | } |
| 1030 | func (m *ResponseOp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 1031 | if deterministic { |
| 1032 | return xxx_messageInfo_ResponseOp.Marshal(b, m, deterministic) |
| 1033 | } else { |
| 1034 | b = b[:cap(b)] |
| 1035 | n, err := m.MarshalToSizedBuffer(b) |
| 1036 | if err != nil { |
| 1037 | return nil, err |
| 1038 | } |
| 1039 | return b[:n], nil |
| 1040 | } |
| 1041 | } |
| 1042 | func (m *ResponseOp) XXX_Merge(src proto.Message) { |
| 1043 | xxx_messageInfo_ResponseOp.Merge(m, src) |
| 1044 | } |
| 1045 | func (m *ResponseOp) XXX_Size() int { |
| 1046 | return m.Size() |
| 1047 | } |
| 1048 | func (m *ResponseOp) XXX_DiscardUnknown() { |
| 1049 | xxx_messageInfo_ResponseOp.DiscardUnknown(m) |
| 1050 | } |
| 1051 | |
| 1052 | var xxx_messageInfo_ResponseOp proto.InternalMessageInfo |
| 1053 | |
| 1054 | type isResponseOp_Response interface { |
| 1055 | isResponseOp_Response() |
| 1056 | MarshalTo([]byte) (int, error) |
| 1057 | Size() int |
| 1058 | } |
| 1059 | |
| 1060 | type ResponseOp_ResponseRange struct { |
| 1061 | ResponseRange *RangeResponse `protobuf:"bytes,1,opt,name=response_range,json=responseRange,proto3,oneof" json:"response_range,omitempty"` |
| 1062 | } |
| 1063 | type ResponseOp_ResponsePut struct { |
| 1064 | ResponsePut *PutResponse `protobuf:"bytes,2,opt,name=response_put,json=responsePut,proto3,oneof" json:"response_put,omitempty"` |
| 1065 | } |
| 1066 | type ResponseOp_ResponseDeleteRange struct { |
| 1067 | ResponseDeleteRange *DeleteRangeResponse `protobuf:"bytes,3,opt,name=response_delete_range,json=responseDeleteRange,proto3,oneof" json:"response_delete_range,omitempty"` |
| 1068 | } |
| 1069 | type ResponseOp_ResponseTxn struct { |
| 1070 | ResponseTxn *TxnResponse `protobuf:"bytes,4,opt,name=response_txn,json=responseTxn,proto3,oneof" json:"response_txn,omitempty"` |
| 1071 | } |
| 1072 | |
| 1073 | func (*ResponseOp_ResponseRange) isResponseOp_Response() {} |
| 1074 | func (*ResponseOp_ResponsePut) isResponseOp_Response() {} |
| 1075 | func (*ResponseOp_ResponseDeleteRange) isResponseOp_Response() {} |
| 1076 | func (*ResponseOp_ResponseTxn) isResponseOp_Response() {} |
| 1077 | |
| 1078 | func (m *ResponseOp) GetResponse() isResponseOp_Response { |
| 1079 | if m != nil { |
| 1080 | return m.Response |
| 1081 | } |
| 1082 | return nil |
| 1083 | } |
| 1084 | |
| 1085 | func (m *ResponseOp) GetResponseRange() *RangeResponse { |
| 1086 | if x, ok := m.GetResponse().(*ResponseOp_ResponseRange); ok { |
| 1087 | return x.ResponseRange |
| 1088 | } |
| 1089 | return nil |
| 1090 | } |
| 1091 | |
| 1092 | func (m *ResponseOp) GetResponsePut() *PutResponse { |
| 1093 | if x, ok := m.GetResponse().(*ResponseOp_ResponsePut); ok { |
| 1094 | return x.ResponsePut |
| 1095 | } |
| 1096 | return nil |
| 1097 | } |
| 1098 | |
| 1099 | func (m *ResponseOp) GetResponseDeleteRange() *DeleteRangeResponse { |
| 1100 | if x, ok := m.GetResponse().(*ResponseOp_ResponseDeleteRange); ok { |
| 1101 | return x.ResponseDeleteRange |
| 1102 | } |
| 1103 | return nil |
| 1104 | } |
| 1105 | |
| 1106 | func (m *ResponseOp) GetResponseTxn() *TxnResponse { |
| 1107 | if x, ok := m.GetResponse().(*ResponseOp_ResponseTxn); ok { |
| 1108 | return x.ResponseTxn |
| 1109 | } |
| 1110 | return nil |
| 1111 | } |
| 1112 | |
| 1113 | // XXX_OneofWrappers is for the internal use of the proto package. |
| 1114 | func (*ResponseOp) XXX_OneofWrappers() []interface{} { |
| 1115 | return []interface{}{ |
| 1116 | (*ResponseOp_ResponseRange)(nil), |
| 1117 | (*ResponseOp_ResponsePut)(nil), |
| 1118 | (*ResponseOp_ResponseDeleteRange)(nil), |
| 1119 | (*ResponseOp_ResponseTxn)(nil), |
| 1120 | } |
| 1121 | } |
| 1122 | |
| 1123 | type Compare struct { |
| 1124 | // result is logical comparison operation for this comparison. |
| 1125 | Result Compare_CompareResult `protobuf:"varint,1,opt,name=result,proto3,enum=etcdserverpb.Compare_CompareResult" json:"result,omitempty"` |
| 1126 | // target is the key-value field to inspect for the comparison. |
| 1127 | Target Compare_CompareTarget `protobuf:"varint,2,opt,name=target,proto3,enum=etcdserverpb.Compare_CompareTarget" json:"target,omitempty"` |
| 1128 | // key is the subject key for the comparison operation. |
| 1129 | Key []byte `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` |
| 1130 | // Types that are valid to be assigned to TargetUnion: |
| 1131 | // *Compare_Version |
| 1132 | // *Compare_CreateRevision |
| 1133 | // *Compare_ModRevision |
| 1134 | // *Compare_Value |
| 1135 | // *Compare_Lease |
| 1136 | TargetUnion isCompare_TargetUnion `protobuf_oneof:"target_union"` |
| 1137 | // range_end compares the given target to all keys in the range [key, range_end). |
| 1138 | // See RangeRequest for more details on key ranges. |
| 1139 | RangeEnd []byte `protobuf:"bytes,64,opt,name=range_end,json=rangeEnd,proto3" json:"range_end,omitempty"` |
| 1140 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 1141 | XXX_unrecognized []byte `json:"-"` |
| 1142 | XXX_sizecache int32 `json:"-"` |
| 1143 | } |
| 1144 | |
| 1145 | func (m *Compare) Reset() { *m = Compare{} } |
| 1146 | func (m *Compare) String() string { return proto.CompactTextString(m) } |
| 1147 | func (*Compare) ProtoMessage() {} |
| 1148 | func (*Compare) Descriptor() ([]byte, []int) { |
| 1149 | return fileDescriptor_77a6da22d6a3feb1, []int{9} |
| 1150 | } |
| 1151 | func (m *Compare) XXX_Unmarshal(b []byte) error { |
| 1152 | return m.Unmarshal(b) |
| 1153 | } |
| 1154 | func (m *Compare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 1155 | if deterministic { |
| 1156 | return xxx_messageInfo_Compare.Marshal(b, m, deterministic) |
| 1157 | } else { |
| 1158 | b = b[:cap(b)] |
| 1159 | n, err := m.MarshalToSizedBuffer(b) |
| 1160 | if err != nil { |
| 1161 | return nil, err |
| 1162 | } |
| 1163 | return b[:n], nil |
| 1164 | } |
| 1165 | } |
| 1166 | func (m *Compare) XXX_Merge(src proto.Message) { |
| 1167 | xxx_messageInfo_Compare.Merge(m, src) |
| 1168 | } |
| 1169 | func (m *Compare) XXX_Size() int { |
| 1170 | return m.Size() |
| 1171 | } |
| 1172 | func (m *Compare) XXX_DiscardUnknown() { |
| 1173 | xxx_messageInfo_Compare.DiscardUnknown(m) |
| 1174 | } |
| 1175 | |
| 1176 | var xxx_messageInfo_Compare proto.InternalMessageInfo |
| 1177 | |
| 1178 | type isCompare_TargetUnion interface { |
| 1179 | isCompare_TargetUnion() |
| 1180 | MarshalTo([]byte) (int, error) |
| 1181 | Size() int |
| 1182 | } |
| 1183 | |
| 1184 | type Compare_Version struct { |
| 1185 | Version int64 `protobuf:"varint,4,opt,name=version,proto3,oneof" json:"version,omitempty"` |
| 1186 | } |
| 1187 | type Compare_CreateRevision struct { |
| 1188 | CreateRevision int64 `protobuf:"varint,5,opt,name=create_revision,json=createRevision,proto3,oneof" json:"create_revision,omitempty"` |
| 1189 | } |
| 1190 | type Compare_ModRevision struct { |
| 1191 | ModRevision int64 `protobuf:"varint,6,opt,name=mod_revision,json=modRevision,proto3,oneof" json:"mod_revision,omitempty"` |
| 1192 | } |
| 1193 | type Compare_Value struct { |
| 1194 | Value []byte `protobuf:"bytes,7,opt,name=value,proto3,oneof" json:"value,omitempty"` |
| 1195 | } |
| 1196 | type Compare_Lease struct { |
| 1197 | Lease int64 `protobuf:"varint,8,opt,name=lease,proto3,oneof" json:"lease,omitempty"` |
| 1198 | } |
| 1199 | |
| 1200 | func (*Compare_Version) isCompare_TargetUnion() {} |
| 1201 | func (*Compare_CreateRevision) isCompare_TargetUnion() {} |
| 1202 | func (*Compare_ModRevision) isCompare_TargetUnion() {} |
| 1203 | func (*Compare_Value) isCompare_TargetUnion() {} |
| 1204 | func (*Compare_Lease) isCompare_TargetUnion() {} |
| 1205 | |
| 1206 | func (m *Compare) GetTargetUnion() isCompare_TargetUnion { |
| 1207 | if m != nil { |
| 1208 | return m.TargetUnion |
| 1209 | } |
| 1210 | return nil |
| 1211 | } |
| 1212 | |
| 1213 | func (m *Compare) GetResult() Compare_CompareResult { |
| 1214 | if m != nil { |
| 1215 | return m.Result |
| 1216 | } |
| 1217 | return Compare_EQUAL |
| 1218 | } |
| 1219 | |
| 1220 | func (m *Compare) GetTarget() Compare_CompareTarget { |
| 1221 | if m != nil { |
| 1222 | return m.Target |
| 1223 | } |
| 1224 | return Compare_VERSION |
| 1225 | } |
| 1226 | |
| 1227 | func (m *Compare) GetKey() []byte { |
| 1228 | if m != nil { |
| 1229 | return m.Key |
| 1230 | } |
| 1231 | return nil |
| 1232 | } |
| 1233 | |
| 1234 | func (m *Compare) GetVersion() int64 { |
| 1235 | if x, ok := m.GetTargetUnion().(*Compare_Version); ok { |
| 1236 | return x.Version |
| 1237 | } |
| 1238 | return 0 |
| 1239 | } |
| 1240 | |
| 1241 | func (m *Compare) GetCreateRevision() int64 { |
| 1242 | if x, ok := m.GetTargetUnion().(*Compare_CreateRevision); ok { |
| 1243 | return x.CreateRevision |
| 1244 | } |
| 1245 | return 0 |
| 1246 | } |
| 1247 | |
| 1248 | func (m *Compare) GetModRevision() int64 { |
| 1249 | if x, ok := m.GetTargetUnion().(*Compare_ModRevision); ok { |
| 1250 | return x.ModRevision |
| 1251 | } |
| 1252 | return 0 |
| 1253 | } |
| 1254 | |
| 1255 | func (m *Compare) GetValue() []byte { |
| 1256 | if x, ok := m.GetTargetUnion().(*Compare_Value); ok { |
| 1257 | return x.Value |
| 1258 | } |
| 1259 | return nil |
| 1260 | } |
| 1261 | |
| 1262 | func (m *Compare) GetLease() int64 { |
| 1263 | if x, ok := m.GetTargetUnion().(*Compare_Lease); ok { |
| 1264 | return x.Lease |
| 1265 | } |
| 1266 | return 0 |
| 1267 | } |
| 1268 | |
| 1269 | func (m *Compare) GetRangeEnd() []byte { |
| 1270 | if m != nil { |
| 1271 | return m.RangeEnd |
| 1272 | } |
| 1273 | return nil |
| 1274 | } |
| 1275 | |
| 1276 | // XXX_OneofWrappers is for the internal use of the proto package. |
| 1277 | func (*Compare) XXX_OneofWrappers() []interface{} { |
| 1278 | return []interface{}{ |
| 1279 | (*Compare_Version)(nil), |
| 1280 | (*Compare_CreateRevision)(nil), |
| 1281 | (*Compare_ModRevision)(nil), |
| 1282 | (*Compare_Value)(nil), |
| 1283 | (*Compare_Lease)(nil), |
| 1284 | } |
| 1285 | } |
| 1286 | |
| 1287 | // From google paxosdb paper: |
| 1288 | // Our implementation hinges around a powerful primitive which we call MultiOp. All other database |
| 1289 | // operations except for iteration are implemented as a single call to MultiOp. A MultiOp is applied atomically |
| 1290 | // and consists of three components: |
| 1291 | // 1. A list of tests called guard. Each test in guard checks a single entry in the database. It may check |
| 1292 | // for the absence or presence of a value, or compare with a given value. Two different tests in the guard |
| 1293 | // may apply to the same or different entries in the database. All tests in the guard are applied and |
| 1294 | // MultiOp returns the results. If all tests are true, MultiOp executes t op (see item 2 below), otherwise |
| 1295 | // it executes f op (see item 3 below). |
| 1296 | // 2. A list of database operations called t op. Each operation in the list is either an insert, delete, or |
| 1297 | // lookup operation, and applies to a single database entry. Two different operations in the list may apply |
| 1298 | // to the same or different entries in the database. These operations are executed |
| 1299 | // if guard evaluates to |
| 1300 | // true. |
| 1301 | // 3. A list of database operations called f op. Like t op, but executed if guard evaluates to false. |
| 1302 | type TxnRequest struct { |
| 1303 | // compare is a list of predicates representing a conjunction of terms. |
| 1304 | // If the comparisons succeed, then the success requests will be processed in order, |
| 1305 | // and the response will contain their respective responses in order. |
| 1306 | // If the comparisons fail, then the failure requests will be processed in order, |
| 1307 | // and the response will contain their respective responses in order. |
| 1308 | Compare []*Compare `protobuf:"bytes,1,rep,name=compare,proto3" json:"compare,omitempty"` |
| 1309 | // success is a list of requests which will be applied when compare evaluates to true. |
| 1310 | Success []*RequestOp `protobuf:"bytes,2,rep,name=success,proto3" json:"success,omitempty"` |
| 1311 | // failure is a list of requests which will be applied when compare evaluates to false. |
| 1312 | Failure []*RequestOp `protobuf:"bytes,3,rep,name=failure,proto3" json:"failure,omitempty"` |
| 1313 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 1314 | XXX_unrecognized []byte `json:"-"` |
| 1315 | XXX_sizecache int32 `json:"-"` |
| 1316 | } |
| 1317 | |
| 1318 | func (m *TxnRequest) Reset() { *m = TxnRequest{} } |
| 1319 | func (m *TxnRequest) String() string { return proto.CompactTextString(m) } |
| 1320 | func (*TxnRequest) ProtoMessage() {} |
| 1321 | func (*TxnRequest) Descriptor() ([]byte, []int) { |
| 1322 | return fileDescriptor_77a6da22d6a3feb1, []int{10} |
| 1323 | } |
| 1324 | func (m *TxnRequest) XXX_Unmarshal(b []byte) error { |
| 1325 | return m.Unmarshal(b) |
| 1326 | } |
| 1327 | func (m *TxnRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 1328 | if deterministic { |
| 1329 | return xxx_messageInfo_TxnRequest.Marshal(b, m, deterministic) |
| 1330 | } else { |
| 1331 | b = b[:cap(b)] |
| 1332 | n, err := m.MarshalToSizedBuffer(b) |
| 1333 | if err != nil { |
| 1334 | return nil, err |
| 1335 | } |
| 1336 | return b[:n], nil |
| 1337 | } |
| 1338 | } |
| 1339 | func (m *TxnRequest) XXX_Merge(src proto.Message) { |
| 1340 | xxx_messageInfo_TxnRequest.Merge(m, src) |
| 1341 | } |
| 1342 | func (m *TxnRequest) XXX_Size() int { |
| 1343 | return m.Size() |
| 1344 | } |
| 1345 | func (m *TxnRequest) XXX_DiscardUnknown() { |
| 1346 | xxx_messageInfo_TxnRequest.DiscardUnknown(m) |
| 1347 | } |
| 1348 | |
| 1349 | var xxx_messageInfo_TxnRequest proto.InternalMessageInfo |
| 1350 | |
| 1351 | func (m *TxnRequest) GetCompare() []*Compare { |
| 1352 | if m != nil { |
| 1353 | return m.Compare |
| 1354 | } |
| 1355 | return nil |
| 1356 | } |
| 1357 | |
| 1358 | func (m *TxnRequest) GetSuccess() []*RequestOp { |
| 1359 | if m != nil { |
| 1360 | return m.Success |
| 1361 | } |
| 1362 | return nil |
| 1363 | } |
| 1364 | |
| 1365 | func (m *TxnRequest) GetFailure() []*RequestOp { |
| 1366 | if m != nil { |
| 1367 | return m.Failure |
| 1368 | } |
| 1369 | return nil |
| 1370 | } |
| 1371 | |
| 1372 | type TxnResponse struct { |
| 1373 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` |
| 1374 | // succeeded is set to true if the compare evaluated to true or false otherwise. |
| 1375 | Succeeded bool `protobuf:"varint,2,opt,name=succeeded,proto3" json:"succeeded,omitempty"` |
| 1376 | // responses is a list of responses corresponding to the results from applying |
| 1377 | // success if succeeded is true or failure if succeeded is false. |
| 1378 | Responses []*ResponseOp `protobuf:"bytes,3,rep,name=responses,proto3" json:"responses,omitempty"` |
| 1379 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 1380 | XXX_unrecognized []byte `json:"-"` |
| 1381 | XXX_sizecache int32 `json:"-"` |
| 1382 | } |
| 1383 | |
| 1384 | func (m *TxnResponse) Reset() { *m = TxnResponse{} } |
| 1385 | func (m *TxnResponse) String() string { return proto.CompactTextString(m) } |
| 1386 | func (*TxnResponse) ProtoMessage() {} |
| 1387 | func (*TxnResponse) Descriptor() ([]byte, []int) { |
| 1388 | return fileDescriptor_77a6da22d6a3feb1, []int{11} |
| 1389 | } |
| 1390 | func (m *TxnResponse) XXX_Unmarshal(b []byte) error { |
| 1391 | return m.Unmarshal(b) |
| 1392 | } |
| 1393 | func (m *TxnResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 1394 | if deterministic { |
| 1395 | return xxx_messageInfo_TxnResponse.Marshal(b, m, deterministic) |
| 1396 | } else { |
| 1397 | b = b[:cap(b)] |
| 1398 | n, err := m.MarshalToSizedBuffer(b) |
| 1399 | if err != nil { |
| 1400 | return nil, err |
| 1401 | } |
| 1402 | return b[:n], nil |
| 1403 | } |
| 1404 | } |
| 1405 | func (m *TxnResponse) XXX_Merge(src proto.Message) { |
| 1406 | xxx_messageInfo_TxnResponse.Merge(m, src) |
| 1407 | } |
| 1408 | func (m *TxnResponse) XXX_Size() int { |
| 1409 | return m.Size() |
| 1410 | } |
| 1411 | func (m *TxnResponse) XXX_DiscardUnknown() { |
| 1412 | xxx_messageInfo_TxnResponse.DiscardUnknown(m) |
| 1413 | } |
| 1414 | |
| 1415 | var xxx_messageInfo_TxnResponse proto.InternalMessageInfo |
| 1416 | |
| 1417 | func (m *TxnResponse) GetHeader() *ResponseHeader { |
| 1418 | if m != nil { |
| 1419 | return m.Header |
| 1420 | } |
| 1421 | return nil |
| 1422 | } |
| 1423 | |
| 1424 | func (m *TxnResponse) GetSucceeded() bool { |
| 1425 | if m != nil { |
| 1426 | return m.Succeeded |
| 1427 | } |
| 1428 | return false |
| 1429 | } |
| 1430 | |
| 1431 | func (m *TxnResponse) GetResponses() []*ResponseOp { |
| 1432 | if m != nil { |
| 1433 | return m.Responses |
| 1434 | } |
| 1435 | return nil |
| 1436 | } |
| 1437 | |
| 1438 | // CompactionRequest compacts the key-value store up to a given revision. All superseded keys |
| 1439 | // with a revision less than the compaction revision will be removed. |
| 1440 | type CompactionRequest struct { |
| 1441 | // revision is the key-value store revision for the compaction operation. |
| 1442 | Revision int64 `protobuf:"varint,1,opt,name=revision,proto3" json:"revision,omitempty"` |
| 1443 | // physical is set so the RPC will wait until the compaction is physically |
| 1444 | // applied to the local database such that compacted entries are totally |
| 1445 | // removed from the backend database. |
| 1446 | Physical bool `protobuf:"varint,2,opt,name=physical,proto3" json:"physical,omitempty"` |
| 1447 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 1448 | XXX_unrecognized []byte `json:"-"` |
| 1449 | XXX_sizecache int32 `json:"-"` |
| 1450 | } |
| 1451 | |
| 1452 | func (m *CompactionRequest) Reset() { *m = CompactionRequest{} } |
| 1453 | func (m *CompactionRequest) String() string { return proto.CompactTextString(m) } |
| 1454 | func (*CompactionRequest) ProtoMessage() {} |
| 1455 | func (*CompactionRequest) Descriptor() ([]byte, []int) { |
| 1456 | return fileDescriptor_77a6da22d6a3feb1, []int{12} |
| 1457 | } |
| 1458 | func (m *CompactionRequest) XXX_Unmarshal(b []byte) error { |
| 1459 | return m.Unmarshal(b) |
| 1460 | } |
| 1461 | func (m *CompactionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 1462 | if deterministic { |
| 1463 | return xxx_messageInfo_CompactionRequest.Marshal(b, m, deterministic) |
| 1464 | } else { |
| 1465 | b = b[:cap(b)] |
| 1466 | n, err := m.MarshalToSizedBuffer(b) |
| 1467 | if err != nil { |
| 1468 | return nil, err |
| 1469 | } |
| 1470 | return b[:n], nil |
| 1471 | } |
| 1472 | } |
| 1473 | func (m *CompactionRequest) XXX_Merge(src proto.Message) { |
| 1474 | xxx_messageInfo_CompactionRequest.Merge(m, src) |
| 1475 | } |
| 1476 | func (m *CompactionRequest) XXX_Size() int { |
| 1477 | return m.Size() |
| 1478 | } |
| 1479 | func (m *CompactionRequest) XXX_DiscardUnknown() { |
| 1480 | xxx_messageInfo_CompactionRequest.DiscardUnknown(m) |
| 1481 | } |
| 1482 | |
| 1483 | var xxx_messageInfo_CompactionRequest proto.InternalMessageInfo |
| 1484 | |
| 1485 | func (m *CompactionRequest) GetRevision() int64 { |
| 1486 | if m != nil { |
| 1487 | return m.Revision |
| 1488 | } |
| 1489 | return 0 |
| 1490 | } |
| 1491 | |
| 1492 | func (m *CompactionRequest) GetPhysical() bool { |
| 1493 | if m != nil { |
| 1494 | return m.Physical |
| 1495 | } |
| 1496 | return false |
| 1497 | } |
| 1498 | |
| 1499 | type CompactionResponse struct { |
| 1500 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` |
| 1501 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 1502 | XXX_unrecognized []byte `json:"-"` |
| 1503 | XXX_sizecache int32 `json:"-"` |
| 1504 | } |
| 1505 | |
| 1506 | func (m *CompactionResponse) Reset() { *m = CompactionResponse{} } |
| 1507 | func (m *CompactionResponse) String() string { return proto.CompactTextString(m) } |
| 1508 | func (*CompactionResponse) ProtoMessage() {} |
| 1509 | func (*CompactionResponse) Descriptor() ([]byte, []int) { |
| 1510 | return fileDescriptor_77a6da22d6a3feb1, []int{13} |
| 1511 | } |
| 1512 | func (m *CompactionResponse) XXX_Unmarshal(b []byte) error { |
| 1513 | return m.Unmarshal(b) |
| 1514 | } |
| 1515 | func (m *CompactionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 1516 | if deterministic { |
| 1517 | return xxx_messageInfo_CompactionResponse.Marshal(b, m, deterministic) |
| 1518 | } else { |
| 1519 | b = b[:cap(b)] |
| 1520 | n, err := m.MarshalToSizedBuffer(b) |
| 1521 | if err != nil { |
| 1522 | return nil, err |
| 1523 | } |
| 1524 | return b[:n], nil |
| 1525 | } |
| 1526 | } |
| 1527 | func (m *CompactionResponse) XXX_Merge(src proto.Message) { |
| 1528 | xxx_messageInfo_CompactionResponse.Merge(m, src) |
| 1529 | } |
| 1530 | func (m *CompactionResponse) XXX_Size() int { |
| 1531 | return m.Size() |
| 1532 | } |
| 1533 | func (m *CompactionResponse) XXX_DiscardUnknown() { |
| 1534 | xxx_messageInfo_CompactionResponse.DiscardUnknown(m) |
| 1535 | } |
| 1536 | |
| 1537 | var xxx_messageInfo_CompactionResponse proto.InternalMessageInfo |
| 1538 | |
| 1539 | func (m *CompactionResponse) GetHeader() *ResponseHeader { |
| 1540 | if m != nil { |
| 1541 | return m.Header |
| 1542 | } |
| 1543 | return nil |
| 1544 | } |
| 1545 | |
| 1546 | type HashRequest struct { |
| 1547 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 1548 | XXX_unrecognized []byte `json:"-"` |
| 1549 | XXX_sizecache int32 `json:"-"` |
| 1550 | } |
| 1551 | |
| 1552 | func (m *HashRequest) Reset() { *m = HashRequest{} } |
| 1553 | func (m *HashRequest) String() string { return proto.CompactTextString(m) } |
| 1554 | func (*HashRequest) ProtoMessage() {} |
| 1555 | func (*HashRequest) Descriptor() ([]byte, []int) { |
| 1556 | return fileDescriptor_77a6da22d6a3feb1, []int{14} |
| 1557 | } |
| 1558 | func (m *HashRequest) XXX_Unmarshal(b []byte) error { |
| 1559 | return m.Unmarshal(b) |
| 1560 | } |
| 1561 | func (m *HashRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 1562 | if deterministic { |
| 1563 | return xxx_messageInfo_HashRequest.Marshal(b, m, deterministic) |
| 1564 | } else { |
| 1565 | b = b[:cap(b)] |
| 1566 | n, err := m.MarshalToSizedBuffer(b) |
| 1567 | if err != nil { |
| 1568 | return nil, err |
| 1569 | } |
| 1570 | return b[:n], nil |
| 1571 | } |
| 1572 | } |
| 1573 | func (m *HashRequest) XXX_Merge(src proto.Message) { |
| 1574 | xxx_messageInfo_HashRequest.Merge(m, src) |
| 1575 | } |
| 1576 | func (m *HashRequest) XXX_Size() int { |
| 1577 | return m.Size() |
| 1578 | } |
| 1579 | func (m *HashRequest) XXX_DiscardUnknown() { |
| 1580 | xxx_messageInfo_HashRequest.DiscardUnknown(m) |
| 1581 | } |
| 1582 | |
| 1583 | var xxx_messageInfo_HashRequest proto.InternalMessageInfo |
| 1584 | |
| 1585 | type HashKVRequest struct { |
| 1586 | // revision is the key-value store revision for the hash operation. |
| 1587 | Revision int64 `protobuf:"varint,1,opt,name=revision,proto3" json:"revision,omitempty"` |
| 1588 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 1589 | XXX_unrecognized []byte `json:"-"` |
| 1590 | XXX_sizecache int32 `json:"-"` |
| 1591 | } |
| 1592 | |
| 1593 | func (m *HashKVRequest) Reset() { *m = HashKVRequest{} } |
| 1594 | func (m *HashKVRequest) String() string { return proto.CompactTextString(m) } |
| 1595 | func (*HashKVRequest) ProtoMessage() {} |
| 1596 | func (*HashKVRequest) Descriptor() ([]byte, []int) { |
| 1597 | return fileDescriptor_77a6da22d6a3feb1, []int{15} |
| 1598 | } |
| 1599 | func (m *HashKVRequest) XXX_Unmarshal(b []byte) error { |
| 1600 | return m.Unmarshal(b) |
| 1601 | } |
| 1602 | func (m *HashKVRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 1603 | if deterministic { |
| 1604 | return xxx_messageInfo_HashKVRequest.Marshal(b, m, deterministic) |
| 1605 | } else { |
| 1606 | b = b[:cap(b)] |
| 1607 | n, err := m.MarshalToSizedBuffer(b) |
| 1608 | if err != nil { |
| 1609 | return nil, err |
| 1610 | } |
| 1611 | return b[:n], nil |
| 1612 | } |
| 1613 | } |
| 1614 | func (m *HashKVRequest) XXX_Merge(src proto.Message) { |
| 1615 | xxx_messageInfo_HashKVRequest.Merge(m, src) |
| 1616 | } |
| 1617 | func (m *HashKVRequest) XXX_Size() int { |
| 1618 | return m.Size() |
| 1619 | } |
| 1620 | func (m *HashKVRequest) XXX_DiscardUnknown() { |
| 1621 | xxx_messageInfo_HashKVRequest.DiscardUnknown(m) |
| 1622 | } |
| 1623 | |
| 1624 | var xxx_messageInfo_HashKVRequest proto.InternalMessageInfo |
| 1625 | |
| 1626 | func (m *HashKVRequest) GetRevision() int64 { |
| 1627 | if m != nil { |
| 1628 | return m.Revision |
| 1629 | } |
| 1630 | return 0 |
| 1631 | } |
| 1632 | |
| 1633 | type HashKVResponse struct { |
| 1634 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` |
| 1635 | // hash is the hash value computed from the responding member's MVCC keys up to a given revision. |
| 1636 | Hash uint32 `protobuf:"varint,2,opt,name=hash,proto3" json:"hash,omitempty"` |
| 1637 | // compact_revision is the compacted revision of key-value store when hash begins. |
| 1638 | CompactRevision int64 `protobuf:"varint,3,opt,name=compact_revision,json=compactRevision,proto3" json:"compact_revision,omitempty"` |
| 1639 | // hash_revision is the revision up to which the hash is calculated. |
| 1640 | HashRevision int64 `protobuf:"varint,4,opt,name=hash_revision,json=hashRevision,proto3" json:"hash_revision,omitempty"` |
| 1641 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 1642 | XXX_unrecognized []byte `json:"-"` |
| 1643 | XXX_sizecache int32 `json:"-"` |
| 1644 | } |
| 1645 | |
| 1646 | func (m *HashKVResponse) Reset() { *m = HashKVResponse{} } |
| 1647 | func (m *HashKVResponse) String() string { return proto.CompactTextString(m) } |
| 1648 | func (*HashKVResponse) ProtoMessage() {} |
| 1649 | func (*HashKVResponse) Descriptor() ([]byte, []int) { |
| 1650 | return fileDescriptor_77a6da22d6a3feb1, []int{16} |
| 1651 | } |
| 1652 | func (m *HashKVResponse) XXX_Unmarshal(b []byte) error { |
| 1653 | return m.Unmarshal(b) |
| 1654 | } |
| 1655 | func (m *HashKVResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 1656 | if deterministic { |
| 1657 | return xxx_messageInfo_HashKVResponse.Marshal(b, m, deterministic) |
| 1658 | } else { |
| 1659 | b = b[:cap(b)] |
| 1660 | n, err := m.MarshalToSizedBuffer(b) |
| 1661 | if err != nil { |
| 1662 | return nil, err |
| 1663 | } |
| 1664 | return b[:n], nil |
| 1665 | } |
| 1666 | } |
| 1667 | func (m *HashKVResponse) XXX_Merge(src proto.Message) { |
| 1668 | xxx_messageInfo_HashKVResponse.Merge(m, src) |
| 1669 | } |
| 1670 | func (m *HashKVResponse) XXX_Size() int { |
| 1671 | return m.Size() |
| 1672 | } |
| 1673 | func (m *HashKVResponse) XXX_DiscardUnknown() { |
| 1674 | xxx_messageInfo_HashKVResponse.DiscardUnknown(m) |
| 1675 | } |
| 1676 | |
| 1677 | var xxx_messageInfo_HashKVResponse proto.InternalMessageInfo |
| 1678 | |
| 1679 | func (m *HashKVResponse) GetHeader() *ResponseHeader { |
| 1680 | if m != nil { |
| 1681 | return m.Header |
| 1682 | } |
| 1683 | return nil |
| 1684 | } |
| 1685 | |
| 1686 | func (m *HashKVResponse) GetHash() uint32 { |
| 1687 | if m != nil { |
| 1688 | return m.Hash |
| 1689 | } |
| 1690 | return 0 |
| 1691 | } |
| 1692 | |
| 1693 | func (m *HashKVResponse) GetCompactRevision() int64 { |
| 1694 | if m != nil { |
| 1695 | return m.CompactRevision |
| 1696 | } |
| 1697 | return 0 |
| 1698 | } |
| 1699 | |
| 1700 | func (m *HashKVResponse) GetHashRevision() int64 { |
| 1701 | if m != nil { |
| 1702 | return m.HashRevision |
| 1703 | } |
| 1704 | return 0 |
| 1705 | } |
| 1706 | |
| 1707 | type HashResponse struct { |
| 1708 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` |
| 1709 | // hash is the hash value computed from the responding member's KV's backend. |
| 1710 | Hash uint32 `protobuf:"varint,2,opt,name=hash,proto3" json:"hash,omitempty"` |
| 1711 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 1712 | XXX_unrecognized []byte `json:"-"` |
| 1713 | XXX_sizecache int32 `json:"-"` |
| 1714 | } |
| 1715 | |
| 1716 | func (m *HashResponse) Reset() { *m = HashResponse{} } |
| 1717 | func (m *HashResponse) String() string { return proto.CompactTextString(m) } |
| 1718 | func (*HashResponse) ProtoMessage() {} |
| 1719 | func (*HashResponse) Descriptor() ([]byte, []int) { |
| 1720 | return fileDescriptor_77a6da22d6a3feb1, []int{17} |
| 1721 | } |
| 1722 | func (m *HashResponse) XXX_Unmarshal(b []byte) error { |
| 1723 | return m.Unmarshal(b) |
| 1724 | } |
| 1725 | func (m *HashResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 1726 | if deterministic { |
| 1727 | return xxx_messageInfo_HashResponse.Marshal(b, m, deterministic) |
| 1728 | } else { |
| 1729 | b = b[:cap(b)] |
| 1730 | n, err := m.MarshalToSizedBuffer(b) |
| 1731 | if err != nil { |
| 1732 | return nil, err |
| 1733 | } |
| 1734 | return b[:n], nil |
| 1735 | } |
| 1736 | } |
| 1737 | func (m *HashResponse) XXX_Merge(src proto.Message) { |
| 1738 | xxx_messageInfo_HashResponse.Merge(m, src) |
| 1739 | } |
| 1740 | func (m *HashResponse) XXX_Size() int { |
| 1741 | return m.Size() |
| 1742 | } |
| 1743 | func (m *HashResponse) XXX_DiscardUnknown() { |
| 1744 | xxx_messageInfo_HashResponse.DiscardUnknown(m) |
| 1745 | } |
| 1746 | |
| 1747 | var xxx_messageInfo_HashResponse proto.InternalMessageInfo |
| 1748 | |
| 1749 | func (m *HashResponse) GetHeader() *ResponseHeader { |
| 1750 | if m != nil { |
| 1751 | return m.Header |
| 1752 | } |
| 1753 | return nil |
| 1754 | } |
| 1755 | |
| 1756 | func (m *HashResponse) GetHash() uint32 { |
| 1757 | if m != nil { |
| 1758 | return m.Hash |
| 1759 | } |
| 1760 | return 0 |
| 1761 | } |
| 1762 | |
| 1763 | type SnapshotRequest struct { |
| 1764 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 1765 | XXX_unrecognized []byte `json:"-"` |
| 1766 | XXX_sizecache int32 `json:"-"` |
| 1767 | } |
| 1768 | |
| 1769 | func (m *SnapshotRequest) Reset() { *m = SnapshotRequest{} } |
| 1770 | func (m *SnapshotRequest) String() string { return proto.CompactTextString(m) } |
| 1771 | func (*SnapshotRequest) ProtoMessage() {} |
| 1772 | func (*SnapshotRequest) Descriptor() ([]byte, []int) { |
| 1773 | return fileDescriptor_77a6da22d6a3feb1, []int{18} |
| 1774 | } |
| 1775 | func (m *SnapshotRequest) XXX_Unmarshal(b []byte) error { |
| 1776 | return m.Unmarshal(b) |
| 1777 | } |
| 1778 | func (m *SnapshotRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 1779 | if deterministic { |
| 1780 | return xxx_messageInfo_SnapshotRequest.Marshal(b, m, deterministic) |
| 1781 | } else { |
| 1782 | b = b[:cap(b)] |
| 1783 | n, err := m.MarshalToSizedBuffer(b) |
| 1784 | if err != nil { |
| 1785 | return nil, err |
| 1786 | } |
| 1787 | return b[:n], nil |
| 1788 | } |
| 1789 | } |
| 1790 | func (m *SnapshotRequest) XXX_Merge(src proto.Message) { |
| 1791 | xxx_messageInfo_SnapshotRequest.Merge(m, src) |
| 1792 | } |
| 1793 | func (m *SnapshotRequest) XXX_Size() int { |
| 1794 | return m.Size() |
| 1795 | } |
| 1796 | func (m *SnapshotRequest) XXX_DiscardUnknown() { |
| 1797 | xxx_messageInfo_SnapshotRequest.DiscardUnknown(m) |
| 1798 | } |
| 1799 | |
| 1800 | var xxx_messageInfo_SnapshotRequest proto.InternalMessageInfo |
| 1801 | |
| 1802 | type SnapshotResponse struct { |
| 1803 | // header has the current key-value store information. The first header in the snapshot |
| 1804 | // stream indicates the point in time of the snapshot. |
| 1805 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` |
| 1806 | // remaining_bytes is the number of blob bytes to be sent after this message |
| 1807 | RemainingBytes uint64 `protobuf:"varint,2,opt,name=remaining_bytes,json=remainingBytes,proto3" json:"remaining_bytes,omitempty"` |
| 1808 | // blob contains the next chunk of the snapshot in the snapshot stream. |
| 1809 | Blob []byte `protobuf:"bytes,3,opt,name=blob,proto3" json:"blob,omitempty"` |
| 1810 | // local version of server that created the snapshot. |
| 1811 | // In cluster with binaries with different version, each cluster can return different result. |
| 1812 | // Informs which etcd server version should be used when restoring the snapshot. |
| 1813 | Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` |
| 1814 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 1815 | XXX_unrecognized []byte `json:"-"` |
| 1816 | XXX_sizecache int32 `json:"-"` |
| 1817 | } |
| 1818 | |
| 1819 | func (m *SnapshotResponse) Reset() { *m = SnapshotResponse{} } |
| 1820 | func (m *SnapshotResponse) String() string { return proto.CompactTextString(m) } |
| 1821 | func (*SnapshotResponse) ProtoMessage() {} |
| 1822 | func (*SnapshotResponse) Descriptor() ([]byte, []int) { |
| 1823 | return fileDescriptor_77a6da22d6a3feb1, []int{19} |
| 1824 | } |
| 1825 | func (m *SnapshotResponse) XXX_Unmarshal(b []byte) error { |
| 1826 | return m.Unmarshal(b) |
| 1827 | } |
| 1828 | func (m *SnapshotResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 1829 | if deterministic { |
| 1830 | return xxx_messageInfo_SnapshotResponse.Marshal(b, m, deterministic) |
| 1831 | } else { |
| 1832 | b = b[:cap(b)] |
| 1833 | n, err := m.MarshalToSizedBuffer(b) |
| 1834 | if err != nil { |
| 1835 | return nil, err |
| 1836 | } |
| 1837 | return b[:n], nil |
| 1838 | } |
| 1839 | } |
| 1840 | func (m *SnapshotResponse) XXX_Merge(src proto.Message) { |
| 1841 | xxx_messageInfo_SnapshotResponse.Merge(m, src) |
| 1842 | } |
| 1843 | func (m *SnapshotResponse) XXX_Size() int { |
| 1844 | return m.Size() |
| 1845 | } |
| 1846 | func (m *SnapshotResponse) XXX_DiscardUnknown() { |
| 1847 | xxx_messageInfo_SnapshotResponse.DiscardUnknown(m) |
| 1848 | } |
| 1849 | |
| 1850 | var xxx_messageInfo_SnapshotResponse proto.InternalMessageInfo |
| 1851 | |
| 1852 | func (m *SnapshotResponse) GetHeader() *ResponseHeader { |
| 1853 | if m != nil { |
| 1854 | return m.Header |
| 1855 | } |
| 1856 | return nil |
| 1857 | } |
| 1858 | |
| 1859 | func (m *SnapshotResponse) GetRemainingBytes() uint64 { |
| 1860 | if m != nil { |
| 1861 | return m.RemainingBytes |
| 1862 | } |
| 1863 | return 0 |
| 1864 | } |
| 1865 | |
| 1866 | func (m *SnapshotResponse) GetBlob() []byte { |
| 1867 | if m != nil { |
| 1868 | return m.Blob |
| 1869 | } |
| 1870 | return nil |
| 1871 | } |
| 1872 | |
| 1873 | func (m *SnapshotResponse) GetVersion() string { |
| 1874 | if m != nil { |
| 1875 | return m.Version |
| 1876 | } |
| 1877 | return "" |
| 1878 | } |
| 1879 | |
| 1880 | type WatchRequest struct { |
| 1881 | // request_union is a request to either create a new watcher or cancel an existing watcher. |
| 1882 | // |
| 1883 | // Types that are valid to be assigned to RequestUnion: |
| 1884 | // *WatchRequest_CreateRequest |
| 1885 | // *WatchRequest_CancelRequest |
| 1886 | // *WatchRequest_ProgressRequest |
| 1887 | RequestUnion isWatchRequest_RequestUnion `protobuf_oneof:"request_union"` |
| 1888 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 1889 | XXX_unrecognized []byte `json:"-"` |
| 1890 | XXX_sizecache int32 `json:"-"` |
| 1891 | } |
| 1892 | |
| 1893 | func (m *WatchRequest) Reset() { *m = WatchRequest{} } |
| 1894 | func (m *WatchRequest) String() string { return proto.CompactTextString(m) } |
| 1895 | func (*WatchRequest) ProtoMessage() {} |
| 1896 | func (*WatchRequest) Descriptor() ([]byte, []int) { |
| 1897 | return fileDescriptor_77a6da22d6a3feb1, []int{20} |
| 1898 | } |
| 1899 | func (m *WatchRequest) XXX_Unmarshal(b []byte) error { |
| 1900 | return m.Unmarshal(b) |
| 1901 | } |
| 1902 | func (m *WatchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 1903 | if deterministic { |
| 1904 | return xxx_messageInfo_WatchRequest.Marshal(b, m, deterministic) |
| 1905 | } else { |
| 1906 | b = b[:cap(b)] |
| 1907 | n, err := m.MarshalToSizedBuffer(b) |
| 1908 | if err != nil { |
| 1909 | return nil, err |
| 1910 | } |
| 1911 | return b[:n], nil |
| 1912 | } |
| 1913 | } |
| 1914 | func (m *WatchRequest) XXX_Merge(src proto.Message) { |
| 1915 | xxx_messageInfo_WatchRequest.Merge(m, src) |
| 1916 | } |
| 1917 | func (m *WatchRequest) XXX_Size() int { |
| 1918 | return m.Size() |
| 1919 | } |
| 1920 | func (m *WatchRequest) XXX_DiscardUnknown() { |
| 1921 | xxx_messageInfo_WatchRequest.DiscardUnknown(m) |
| 1922 | } |
| 1923 | |
| 1924 | var xxx_messageInfo_WatchRequest proto.InternalMessageInfo |
| 1925 | |
| 1926 | type isWatchRequest_RequestUnion interface { |
| 1927 | isWatchRequest_RequestUnion() |
| 1928 | MarshalTo([]byte) (int, error) |
| 1929 | Size() int |
| 1930 | } |
| 1931 | |
| 1932 | type WatchRequest_CreateRequest struct { |
| 1933 | CreateRequest *WatchCreateRequest `protobuf:"bytes,1,opt,name=create_request,json=createRequest,proto3,oneof" json:"create_request,omitempty"` |
| 1934 | } |
| 1935 | type WatchRequest_CancelRequest struct { |
| 1936 | CancelRequest *WatchCancelRequest `protobuf:"bytes,2,opt,name=cancel_request,json=cancelRequest,proto3,oneof" json:"cancel_request,omitempty"` |
| 1937 | } |
| 1938 | type WatchRequest_ProgressRequest struct { |
| 1939 | ProgressRequest *WatchProgressRequest `protobuf:"bytes,3,opt,name=progress_request,json=progressRequest,proto3,oneof" json:"progress_request,omitempty"` |
| 1940 | } |
| 1941 | |
| 1942 | func (*WatchRequest_CreateRequest) isWatchRequest_RequestUnion() {} |
| 1943 | func (*WatchRequest_CancelRequest) isWatchRequest_RequestUnion() {} |
| 1944 | func (*WatchRequest_ProgressRequest) isWatchRequest_RequestUnion() {} |
| 1945 | |
| 1946 | func (m *WatchRequest) GetRequestUnion() isWatchRequest_RequestUnion { |
| 1947 | if m != nil { |
| 1948 | return m.RequestUnion |
| 1949 | } |
| 1950 | return nil |
| 1951 | } |
| 1952 | |
| 1953 | func (m *WatchRequest) GetCreateRequest() *WatchCreateRequest { |
| 1954 | if x, ok := m.GetRequestUnion().(*WatchRequest_CreateRequest); ok { |
| 1955 | return x.CreateRequest |
| 1956 | } |
| 1957 | return nil |
| 1958 | } |
| 1959 | |
| 1960 | func (m *WatchRequest) GetCancelRequest() *WatchCancelRequest { |
| 1961 | if x, ok := m.GetRequestUnion().(*WatchRequest_CancelRequest); ok { |
| 1962 | return x.CancelRequest |
| 1963 | } |
| 1964 | return nil |
| 1965 | } |
| 1966 | |
| 1967 | func (m *WatchRequest) GetProgressRequest() *WatchProgressRequest { |
| 1968 | if x, ok := m.GetRequestUnion().(*WatchRequest_ProgressRequest); ok { |
| 1969 | return x.ProgressRequest |
| 1970 | } |
| 1971 | return nil |
| 1972 | } |
| 1973 | |
| 1974 | // XXX_OneofWrappers is for the internal use of the proto package. |
| 1975 | func (*WatchRequest) XXX_OneofWrappers() []interface{} { |
| 1976 | return []interface{}{ |
| 1977 | (*WatchRequest_CreateRequest)(nil), |
| 1978 | (*WatchRequest_CancelRequest)(nil), |
| 1979 | (*WatchRequest_ProgressRequest)(nil), |
| 1980 | } |
| 1981 | } |
| 1982 | |
| 1983 | type WatchCreateRequest struct { |
| 1984 | // key is the key to register for watching. |
| 1985 | Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` |
| 1986 | // range_end is the end of the range [key, range_end) to watch. If range_end is not given, |
| 1987 | // only the key argument is watched. If range_end is equal to '\0', all keys greater than |
| 1988 | // or equal to the key argument are watched. |
| 1989 | // If the range_end is one bit larger than the given key, |
| 1990 | // then all keys with the prefix (the given key) will be watched. |
| 1991 | RangeEnd []byte `protobuf:"bytes,2,opt,name=range_end,json=rangeEnd,proto3" json:"range_end,omitempty"` |
| 1992 | // start_revision is an optional revision to watch from (inclusive). No start_revision is "now". |
| 1993 | StartRevision int64 `protobuf:"varint,3,opt,name=start_revision,json=startRevision,proto3" json:"start_revision,omitempty"` |
| 1994 | // progress_notify is set so that the etcd server will periodically send a WatchResponse with |
| 1995 | // no events to the new watcher if there are no recent events. It is useful when clients |
| 1996 | // wish to recover a disconnected watcher starting from a recent known revision. |
| 1997 | // The etcd server may decide how often it will send notifications based on current load. |
| 1998 | ProgressNotify bool `protobuf:"varint,4,opt,name=progress_notify,json=progressNotify,proto3" json:"progress_notify,omitempty"` |
| 1999 | // filters filter the events at server side before it sends back to the watcher. |
| 2000 | Filters []WatchCreateRequest_FilterType `protobuf:"varint,5,rep,packed,name=filters,proto3,enum=etcdserverpb.WatchCreateRequest_FilterType" json:"filters,omitempty"` |
| 2001 | // If prev_kv is set, created watcher gets the previous KV before the event happens. |
| 2002 | // If the previous KV is already compacted, nothing will be returned. |
| 2003 | PrevKv bool `protobuf:"varint,6,opt,name=prev_kv,json=prevKv,proto3" json:"prev_kv,omitempty"` |
| 2004 | // If watch_id is provided and non-zero, it will be assigned to this watcher. |
| 2005 | // Since creating a watcher in etcd is not a synchronous operation, |
| 2006 | // this can be used ensure that ordering is correct when creating multiple |
| 2007 | // watchers on the same stream. Creating a watcher with an ID already in |
| 2008 | // use on the stream will cause an error to be returned. |
| 2009 | WatchId int64 `protobuf:"varint,7,opt,name=watch_id,json=watchId,proto3" json:"watch_id,omitempty"` |
| 2010 | // fragment enables splitting large revisions into multiple watch responses. |
| 2011 | Fragment bool `protobuf:"varint,8,opt,name=fragment,proto3" json:"fragment,omitempty"` |
| 2012 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 2013 | XXX_unrecognized []byte `json:"-"` |
| 2014 | XXX_sizecache int32 `json:"-"` |
| 2015 | } |
| 2016 | |
| 2017 | func (m *WatchCreateRequest) Reset() { *m = WatchCreateRequest{} } |
| 2018 | func (m *WatchCreateRequest) String() string { return proto.CompactTextString(m) } |
| 2019 | func (*WatchCreateRequest) ProtoMessage() {} |
| 2020 | func (*WatchCreateRequest) Descriptor() ([]byte, []int) { |
| 2021 | return fileDescriptor_77a6da22d6a3feb1, []int{21} |
| 2022 | } |
| 2023 | func (m *WatchCreateRequest) XXX_Unmarshal(b []byte) error { |
| 2024 | return m.Unmarshal(b) |
| 2025 | } |
| 2026 | func (m *WatchCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 2027 | if deterministic { |
| 2028 | return xxx_messageInfo_WatchCreateRequest.Marshal(b, m, deterministic) |
| 2029 | } else { |
| 2030 | b = b[:cap(b)] |
| 2031 | n, err := m.MarshalToSizedBuffer(b) |
| 2032 | if err != nil { |
| 2033 | return nil, err |
| 2034 | } |
| 2035 | return b[:n], nil |
| 2036 | } |
| 2037 | } |
| 2038 | func (m *WatchCreateRequest) XXX_Merge(src proto.Message) { |
| 2039 | xxx_messageInfo_WatchCreateRequest.Merge(m, src) |
| 2040 | } |
| 2041 | func (m *WatchCreateRequest) XXX_Size() int { |
| 2042 | return m.Size() |
| 2043 | } |
| 2044 | func (m *WatchCreateRequest) XXX_DiscardUnknown() { |
| 2045 | xxx_messageInfo_WatchCreateRequest.DiscardUnknown(m) |
| 2046 | } |
| 2047 | |
| 2048 | var xxx_messageInfo_WatchCreateRequest proto.InternalMessageInfo |
| 2049 | |
| 2050 | func (m *WatchCreateRequest) GetKey() []byte { |
| 2051 | if m != nil { |
| 2052 | return m.Key |
| 2053 | } |
| 2054 | return nil |
| 2055 | } |
| 2056 | |
| 2057 | func (m *WatchCreateRequest) GetRangeEnd() []byte { |
| 2058 | if m != nil { |
| 2059 | return m.RangeEnd |
| 2060 | } |
| 2061 | return nil |
| 2062 | } |
| 2063 | |
| 2064 | func (m *WatchCreateRequest) GetStartRevision() int64 { |
| 2065 | if m != nil { |
| 2066 | return m.StartRevision |
| 2067 | } |
| 2068 | return 0 |
| 2069 | } |
| 2070 | |
| 2071 | func (m *WatchCreateRequest) GetProgressNotify() bool { |
| 2072 | if m != nil { |
| 2073 | return m.ProgressNotify |
| 2074 | } |
| 2075 | return false |
| 2076 | } |
| 2077 | |
| 2078 | func (m *WatchCreateRequest) GetFilters() []WatchCreateRequest_FilterType { |
| 2079 | if m != nil { |
| 2080 | return m.Filters |
| 2081 | } |
| 2082 | return nil |
| 2083 | } |
| 2084 | |
| 2085 | func (m *WatchCreateRequest) GetPrevKv() bool { |
| 2086 | if m != nil { |
| 2087 | return m.PrevKv |
| 2088 | } |
| 2089 | return false |
| 2090 | } |
| 2091 | |
| 2092 | func (m *WatchCreateRequest) GetWatchId() int64 { |
| 2093 | if m != nil { |
| 2094 | return m.WatchId |
| 2095 | } |
| 2096 | return 0 |
| 2097 | } |
| 2098 | |
| 2099 | func (m *WatchCreateRequest) GetFragment() bool { |
| 2100 | if m != nil { |
| 2101 | return m.Fragment |
| 2102 | } |
| 2103 | return false |
| 2104 | } |
| 2105 | |
| 2106 | type WatchCancelRequest struct { |
| 2107 | // watch_id is the watcher id to cancel so that no more events are transmitted. |
| 2108 | WatchId int64 `protobuf:"varint,1,opt,name=watch_id,json=watchId,proto3" json:"watch_id,omitempty"` |
| 2109 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 2110 | XXX_unrecognized []byte `json:"-"` |
| 2111 | XXX_sizecache int32 `json:"-"` |
| 2112 | } |
| 2113 | |
| 2114 | func (m *WatchCancelRequest) Reset() { *m = WatchCancelRequest{} } |
| 2115 | func (m *WatchCancelRequest) String() string { return proto.CompactTextString(m) } |
| 2116 | func (*WatchCancelRequest) ProtoMessage() {} |
| 2117 | func (*WatchCancelRequest) Descriptor() ([]byte, []int) { |
| 2118 | return fileDescriptor_77a6da22d6a3feb1, []int{22} |
| 2119 | } |
| 2120 | func (m *WatchCancelRequest) XXX_Unmarshal(b []byte) error { |
| 2121 | return m.Unmarshal(b) |
| 2122 | } |
| 2123 | func (m *WatchCancelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 2124 | if deterministic { |
| 2125 | return xxx_messageInfo_WatchCancelRequest.Marshal(b, m, deterministic) |
| 2126 | } else { |
| 2127 | b = b[:cap(b)] |
| 2128 | n, err := m.MarshalToSizedBuffer(b) |
| 2129 | if err != nil { |
| 2130 | return nil, err |
| 2131 | } |
| 2132 | return b[:n], nil |
| 2133 | } |
| 2134 | } |
| 2135 | func (m *WatchCancelRequest) XXX_Merge(src proto.Message) { |
| 2136 | xxx_messageInfo_WatchCancelRequest.Merge(m, src) |
| 2137 | } |
| 2138 | func (m *WatchCancelRequest) XXX_Size() int { |
| 2139 | return m.Size() |
| 2140 | } |
| 2141 | func (m *WatchCancelRequest) XXX_DiscardUnknown() { |
| 2142 | xxx_messageInfo_WatchCancelRequest.DiscardUnknown(m) |
| 2143 | } |
| 2144 | |
| 2145 | var xxx_messageInfo_WatchCancelRequest proto.InternalMessageInfo |
| 2146 | |
| 2147 | func (m *WatchCancelRequest) GetWatchId() int64 { |
| 2148 | if m != nil { |
| 2149 | return m.WatchId |
| 2150 | } |
| 2151 | return 0 |
| 2152 | } |
| 2153 | |
| 2154 | // Requests the a watch stream progress status be sent in the watch response stream as soon as |
| 2155 | // possible. |
| 2156 | type WatchProgressRequest struct { |
| 2157 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 2158 | XXX_unrecognized []byte `json:"-"` |
| 2159 | XXX_sizecache int32 `json:"-"` |
| 2160 | } |
| 2161 | |
| 2162 | func (m *WatchProgressRequest) Reset() { *m = WatchProgressRequest{} } |
| 2163 | func (m *WatchProgressRequest) String() string { return proto.CompactTextString(m) } |
| 2164 | func (*WatchProgressRequest) ProtoMessage() {} |
| 2165 | func (*WatchProgressRequest) Descriptor() ([]byte, []int) { |
| 2166 | return fileDescriptor_77a6da22d6a3feb1, []int{23} |
| 2167 | } |
| 2168 | func (m *WatchProgressRequest) XXX_Unmarshal(b []byte) error { |
| 2169 | return m.Unmarshal(b) |
| 2170 | } |
| 2171 | func (m *WatchProgressRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 2172 | if deterministic { |
| 2173 | return xxx_messageInfo_WatchProgressRequest.Marshal(b, m, deterministic) |
| 2174 | } else { |
| 2175 | b = b[:cap(b)] |
| 2176 | n, err := m.MarshalToSizedBuffer(b) |
| 2177 | if err != nil { |
| 2178 | return nil, err |
| 2179 | } |
| 2180 | return b[:n], nil |
| 2181 | } |
| 2182 | } |
| 2183 | func (m *WatchProgressRequest) XXX_Merge(src proto.Message) { |
| 2184 | xxx_messageInfo_WatchProgressRequest.Merge(m, src) |
| 2185 | } |
| 2186 | func (m *WatchProgressRequest) XXX_Size() int { |
| 2187 | return m.Size() |
| 2188 | } |
| 2189 | func (m *WatchProgressRequest) XXX_DiscardUnknown() { |
| 2190 | xxx_messageInfo_WatchProgressRequest.DiscardUnknown(m) |
| 2191 | } |
| 2192 | |
| 2193 | var xxx_messageInfo_WatchProgressRequest proto.InternalMessageInfo |
| 2194 | |
| 2195 | type WatchResponse struct { |
| 2196 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` |
| 2197 | // watch_id is the ID of the watcher that corresponds to the response. |
| 2198 | WatchId int64 `protobuf:"varint,2,opt,name=watch_id,json=watchId,proto3" json:"watch_id,omitempty"` |
| 2199 | // created is set to true if the response is for a create watch request. |
| 2200 | // The client should record the watch_id and expect to receive events for |
| 2201 | // the created watcher from the same stream. |
| 2202 | // All events sent to the created watcher will attach with the same watch_id. |
| 2203 | Created bool `protobuf:"varint,3,opt,name=created,proto3" json:"created,omitempty"` |
| 2204 | // canceled is set to true if the response is for a cancel watch request |
| 2205 | // or if the start_revision has already been compacted. |
| 2206 | // No further events will be sent to the canceled watcher. |
| 2207 | Canceled bool `protobuf:"varint,4,opt,name=canceled,proto3" json:"canceled,omitempty"` |
| 2208 | // compact_revision is set to the minimum index if a watcher tries to watch |
| 2209 | // at a compacted index. |
| 2210 | // |
| 2211 | // This happens when creating a watcher at a compacted revision or the watcher cannot |
| 2212 | // catch up with the progress of the key-value store. |
| 2213 | // |
| 2214 | // The client should treat the watcher as canceled and should not try to create any |
| 2215 | // watcher with the same start_revision again. |
| 2216 | CompactRevision int64 `protobuf:"varint,5,opt,name=compact_revision,json=compactRevision,proto3" json:"compact_revision,omitempty"` |
| 2217 | // cancel_reason indicates the reason for canceling the watcher. |
| 2218 | CancelReason string `protobuf:"bytes,6,opt,name=cancel_reason,json=cancelReason,proto3" json:"cancel_reason,omitempty"` |
| 2219 | // framgment is true if large watch response was split over multiple responses. |
| 2220 | Fragment bool `protobuf:"varint,7,opt,name=fragment,proto3" json:"fragment,omitempty"` |
| 2221 | Events []*mvccpb.Event `protobuf:"bytes,11,rep,name=events,proto3" json:"events,omitempty"` |
| 2222 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 2223 | XXX_unrecognized []byte `json:"-"` |
| 2224 | XXX_sizecache int32 `json:"-"` |
| 2225 | } |
| 2226 | |
| 2227 | func (m *WatchResponse) Reset() { *m = WatchResponse{} } |
| 2228 | func (m *WatchResponse) String() string { return proto.CompactTextString(m) } |
| 2229 | func (*WatchResponse) ProtoMessage() {} |
| 2230 | func (*WatchResponse) Descriptor() ([]byte, []int) { |
| 2231 | return fileDescriptor_77a6da22d6a3feb1, []int{24} |
| 2232 | } |
| 2233 | func (m *WatchResponse) XXX_Unmarshal(b []byte) error { |
| 2234 | return m.Unmarshal(b) |
| 2235 | } |
| 2236 | func (m *WatchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 2237 | if deterministic { |
| 2238 | return xxx_messageInfo_WatchResponse.Marshal(b, m, deterministic) |
| 2239 | } else { |
| 2240 | b = b[:cap(b)] |
| 2241 | n, err := m.MarshalToSizedBuffer(b) |
| 2242 | if err != nil { |
| 2243 | return nil, err |
| 2244 | } |
| 2245 | return b[:n], nil |
| 2246 | } |
| 2247 | } |
| 2248 | func (m *WatchResponse) XXX_Merge(src proto.Message) { |
| 2249 | xxx_messageInfo_WatchResponse.Merge(m, src) |
| 2250 | } |
| 2251 | func (m *WatchResponse) XXX_Size() int { |
| 2252 | return m.Size() |
| 2253 | } |
| 2254 | func (m *WatchResponse) XXX_DiscardUnknown() { |
| 2255 | xxx_messageInfo_WatchResponse.DiscardUnknown(m) |
| 2256 | } |
| 2257 | |
| 2258 | var xxx_messageInfo_WatchResponse proto.InternalMessageInfo |
| 2259 | |
| 2260 | func (m *WatchResponse) GetHeader() *ResponseHeader { |
| 2261 | if m != nil { |
| 2262 | return m.Header |
| 2263 | } |
| 2264 | return nil |
| 2265 | } |
| 2266 | |
| 2267 | func (m *WatchResponse) GetWatchId() int64 { |
| 2268 | if m != nil { |
| 2269 | return m.WatchId |
| 2270 | } |
| 2271 | return 0 |
| 2272 | } |
| 2273 | |
| 2274 | func (m *WatchResponse) GetCreated() bool { |
| 2275 | if m != nil { |
| 2276 | return m.Created |
| 2277 | } |
| 2278 | return false |
| 2279 | } |
| 2280 | |
| 2281 | func (m *WatchResponse) GetCanceled() bool { |
| 2282 | if m != nil { |
| 2283 | return m.Canceled |
| 2284 | } |
| 2285 | return false |
| 2286 | } |
| 2287 | |
| 2288 | func (m *WatchResponse) GetCompactRevision() int64 { |
| 2289 | if m != nil { |
| 2290 | return m.CompactRevision |
| 2291 | } |
| 2292 | return 0 |
| 2293 | } |
| 2294 | |
| 2295 | func (m *WatchResponse) GetCancelReason() string { |
| 2296 | if m != nil { |
| 2297 | return m.CancelReason |
| 2298 | } |
| 2299 | return "" |
| 2300 | } |
| 2301 | |
| 2302 | func (m *WatchResponse) GetFragment() bool { |
| 2303 | if m != nil { |
| 2304 | return m.Fragment |
| 2305 | } |
| 2306 | return false |
| 2307 | } |
| 2308 | |
| 2309 | func (m *WatchResponse) GetEvents() []*mvccpb.Event { |
| 2310 | if m != nil { |
| 2311 | return m.Events |
| 2312 | } |
| 2313 | return nil |
| 2314 | } |
| 2315 | |
| 2316 | type LeaseGrantRequest struct { |
| 2317 | // TTL is the advisory time-to-live in seconds. Expired lease will return -1. |
| 2318 | TTL int64 `protobuf:"varint,1,opt,name=TTL,proto3" json:"TTL,omitempty"` |
| 2319 | // ID is the requested ID for the lease. If ID is set to 0, the lessor chooses an ID. |
| 2320 | ID int64 `protobuf:"varint,2,opt,name=ID,proto3" json:"ID,omitempty"` |
| 2321 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 2322 | XXX_unrecognized []byte `json:"-"` |
| 2323 | XXX_sizecache int32 `json:"-"` |
| 2324 | } |
| 2325 | |
| 2326 | func (m *LeaseGrantRequest) Reset() { *m = LeaseGrantRequest{} } |
| 2327 | func (m *LeaseGrantRequest) String() string { return proto.CompactTextString(m) } |
| 2328 | func (*LeaseGrantRequest) ProtoMessage() {} |
| 2329 | func (*LeaseGrantRequest) Descriptor() ([]byte, []int) { |
| 2330 | return fileDescriptor_77a6da22d6a3feb1, []int{25} |
| 2331 | } |
| 2332 | func (m *LeaseGrantRequest) XXX_Unmarshal(b []byte) error { |
| 2333 | return m.Unmarshal(b) |
| 2334 | } |
| 2335 | func (m *LeaseGrantRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 2336 | if deterministic { |
| 2337 | return xxx_messageInfo_LeaseGrantRequest.Marshal(b, m, deterministic) |
| 2338 | } else { |
| 2339 | b = b[:cap(b)] |
| 2340 | n, err := m.MarshalToSizedBuffer(b) |
| 2341 | if err != nil { |
| 2342 | return nil, err |
| 2343 | } |
| 2344 | return b[:n], nil |
| 2345 | } |
| 2346 | } |
| 2347 | func (m *LeaseGrantRequest) XXX_Merge(src proto.Message) { |
| 2348 | xxx_messageInfo_LeaseGrantRequest.Merge(m, src) |
| 2349 | } |
| 2350 | func (m *LeaseGrantRequest) XXX_Size() int { |
| 2351 | return m.Size() |
| 2352 | } |
| 2353 | func (m *LeaseGrantRequest) XXX_DiscardUnknown() { |
| 2354 | xxx_messageInfo_LeaseGrantRequest.DiscardUnknown(m) |
| 2355 | } |
| 2356 | |
| 2357 | var xxx_messageInfo_LeaseGrantRequest proto.InternalMessageInfo |
| 2358 | |
| 2359 | func (m *LeaseGrantRequest) GetTTL() int64 { |
| 2360 | if m != nil { |
| 2361 | return m.TTL |
| 2362 | } |
| 2363 | return 0 |
| 2364 | } |
| 2365 | |
| 2366 | func (m *LeaseGrantRequest) GetID() int64 { |
| 2367 | if m != nil { |
| 2368 | return m.ID |
| 2369 | } |
| 2370 | return 0 |
| 2371 | } |
| 2372 | |
| 2373 | type LeaseGrantResponse struct { |
| 2374 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` |
| 2375 | // ID is the lease ID for the granted lease. |
| 2376 | ID int64 `protobuf:"varint,2,opt,name=ID,proto3" json:"ID,omitempty"` |
| 2377 | // TTL is the server chosen lease time-to-live in seconds. |
| 2378 | TTL int64 `protobuf:"varint,3,opt,name=TTL,proto3" json:"TTL,omitempty"` |
| 2379 | Error string `protobuf:"bytes,4,opt,name=error,proto3" json:"error,omitempty"` |
| 2380 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 2381 | XXX_unrecognized []byte `json:"-"` |
| 2382 | XXX_sizecache int32 `json:"-"` |
| 2383 | } |
| 2384 | |
| 2385 | func (m *LeaseGrantResponse) Reset() { *m = LeaseGrantResponse{} } |
| 2386 | func (m *LeaseGrantResponse) String() string { return proto.CompactTextString(m) } |
| 2387 | func (*LeaseGrantResponse) ProtoMessage() {} |
| 2388 | func (*LeaseGrantResponse) Descriptor() ([]byte, []int) { |
| 2389 | return fileDescriptor_77a6da22d6a3feb1, []int{26} |
| 2390 | } |
| 2391 | func (m *LeaseGrantResponse) XXX_Unmarshal(b []byte) error { |
| 2392 | return m.Unmarshal(b) |
| 2393 | } |
| 2394 | func (m *LeaseGrantResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 2395 | if deterministic { |
| 2396 | return xxx_messageInfo_LeaseGrantResponse.Marshal(b, m, deterministic) |
| 2397 | } else { |
| 2398 | b = b[:cap(b)] |
| 2399 | n, err := m.MarshalToSizedBuffer(b) |
| 2400 | if err != nil { |
| 2401 | return nil, err |
| 2402 | } |
| 2403 | return b[:n], nil |
| 2404 | } |
| 2405 | } |
| 2406 | func (m *LeaseGrantResponse) XXX_Merge(src proto.Message) { |
| 2407 | xxx_messageInfo_LeaseGrantResponse.Merge(m, src) |
| 2408 | } |
| 2409 | func (m *LeaseGrantResponse) XXX_Size() int { |
| 2410 | return m.Size() |
| 2411 | } |
| 2412 | func (m *LeaseGrantResponse) XXX_DiscardUnknown() { |
| 2413 | xxx_messageInfo_LeaseGrantResponse.DiscardUnknown(m) |
| 2414 | } |
| 2415 | |
| 2416 | var xxx_messageInfo_LeaseGrantResponse proto.InternalMessageInfo |
| 2417 | |
| 2418 | func (m *LeaseGrantResponse) GetHeader() *ResponseHeader { |
| 2419 | if m != nil { |
| 2420 | return m.Header |
| 2421 | } |
| 2422 | return nil |
| 2423 | } |
| 2424 | |
| 2425 | func (m *LeaseGrantResponse) GetID() int64 { |
| 2426 | if m != nil { |
| 2427 | return m.ID |
| 2428 | } |
| 2429 | return 0 |
| 2430 | } |
| 2431 | |
| 2432 | func (m *LeaseGrantResponse) GetTTL() int64 { |
| 2433 | if m != nil { |
| 2434 | return m.TTL |
| 2435 | } |
| 2436 | return 0 |
| 2437 | } |
| 2438 | |
| 2439 | func (m *LeaseGrantResponse) GetError() string { |
| 2440 | if m != nil { |
| 2441 | return m.Error |
| 2442 | } |
| 2443 | return "" |
| 2444 | } |
| 2445 | |
| 2446 | type LeaseRevokeRequest struct { |
| 2447 | // ID is the lease ID to revoke. When the ID is revoked, all associated keys will be deleted. |
| 2448 | ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` |
| 2449 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 2450 | XXX_unrecognized []byte `json:"-"` |
| 2451 | XXX_sizecache int32 `json:"-"` |
| 2452 | } |
| 2453 | |
| 2454 | func (m *LeaseRevokeRequest) Reset() { *m = LeaseRevokeRequest{} } |
| 2455 | func (m *LeaseRevokeRequest) String() string { return proto.CompactTextString(m) } |
| 2456 | func (*LeaseRevokeRequest) ProtoMessage() {} |
| 2457 | func (*LeaseRevokeRequest) Descriptor() ([]byte, []int) { |
| 2458 | return fileDescriptor_77a6da22d6a3feb1, []int{27} |
| 2459 | } |
| 2460 | func (m *LeaseRevokeRequest) XXX_Unmarshal(b []byte) error { |
| 2461 | return m.Unmarshal(b) |
| 2462 | } |
| 2463 | func (m *LeaseRevokeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 2464 | if deterministic { |
| 2465 | return xxx_messageInfo_LeaseRevokeRequest.Marshal(b, m, deterministic) |
| 2466 | } else { |
| 2467 | b = b[:cap(b)] |
| 2468 | n, err := m.MarshalToSizedBuffer(b) |
| 2469 | if err != nil { |
| 2470 | return nil, err |
| 2471 | } |
| 2472 | return b[:n], nil |
| 2473 | } |
| 2474 | } |
| 2475 | func (m *LeaseRevokeRequest) XXX_Merge(src proto.Message) { |
| 2476 | xxx_messageInfo_LeaseRevokeRequest.Merge(m, src) |
| 2477 | } |
| 2478 | func (m *LeaseRevokeRequest) XXX_Size() int { |
| 2479 | return m.Size() |
| 2480 | } |
| 2481 | func (m *LeaseRevokeRequest) XXX_DiscardUnknown() { |
| 2482 | xxx_messageInfo_LeaseRevokeRequest.DiscardUnknown(m) |
| 2483 | } |
| 2484 | |
| 2485 | var xxx_messageInfo_LeaseRevokeRequest proto.InternalMessageInfo |
| 2486 | |
| 2487 | func (m *LeaseRevokeRequest) GetID() int64 { |
| 2488 | if m != nil { |
| 2489 | return m.ID |
| 2490 | } |
| 2491 | return 0 |
| 2492 | } |
| 2493 | |
| 2494 | type LeaseRevokeResponse struct { |
| 2495 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` |
| 2496 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 2497 | XXX_unrecognized []byte `json:"-"` |
| 2498 | XXX_sizecache int32 `json:"-"` |
| 2499 | } |
| 2500 | |
| 2501 | func (m *LeaseRevokeResponse) Reset() { *m = LeaseRevokeResponse{} } |
| 2502 | func (m *LeaseRevokeResponse) String() string { return proto.CompactTextString(m) } |
| 2503 | func (*LeaseRevokeResponse) ProtoMessage() {} |
| 2504 | func (*LeaseRevokeResponse) Descriptor() ([]byte, []int) { |
| 2505 | return fileDescriptor_77a6da22d6a3feb1, []int{28} |
| 2506 | } |
| 2507 | func (m *LeaseRevokeResponse) XXX_Unmarshal(b []byte) error { |
| 2508 | return m.Unmarshal(b) |
| 2509 | } |
| 2510 | func (m *LeaseRevokeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 2511 | if deterministic { |
| 2512 | return xxx_messageInfo_LeaseRevokeResponse.Marshal(b, m, deterministic) |
| 2513 | } else { |
| 2514 | b = b[:cap(b)] |
| 2515 | n, err := m.MarshalToSizedBuffer(b) |
| 2516 | if err != nil { |
| 2517 | return nil, err |
| 2518 | } |
| 2519 | return b[:n], nil |
| 2520 | } |
| 2521 | } |
| 2522 | func (m *LeaseRevokeResponse) XXX_Merge(src proto.Message) { |
| 2523 | xxx_messageInfo_LeaseRevokeResponse.Merge(m, src) |
| 2524 | } |
| 2525 | func (m *LeaseRevokeResponse) XXX_Size() int { |
| 2526 | return m.Size() |
| 2527 | } |
| 2528 | func (m *LeaseRevokeResponse) XXX_DiscardUnknown() { |
| 2529 | xxx_messageInfo_LeaseRevokeResponse.DiscardUnknown(m) |
| 2530 | } |
| 2531 | |
| 2532 | var xxx_messageInfo_LeaseRevokeResponse proto.InternalMessageInfo |
| 2533 | |
| 2534 | func (m *LeaseRevokeResponse) GetHeader() *ResponseHeader { |
| 2535 | if m != nil { |
| 2536 | return m.Header |
| 2537 | } |
| 2538 | return nil |
| 2539 | } |
| 2540 | |
| 2541 | type LeaseCheckpoint struct { |
| 2542 | // ID is the lease ID to checkpoint. |
| 2543 | ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` |
| 2544 | // Remaining_TTL is the remaining time until expiry of the lease. |
| 2545 | Remaining_TTL int64 `protobuf:"varint,2,opt,name=remaining_TTL,json=remainingTTL,proto3" json:"remaining_TTL,omitempty"` |
| 2546 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 2547 | XXX_unrecognized []byte `json:"-"` |
| 2548 | XXX_sizecache int32 `json:"-"` |
| 2549 | } |
| 2550 | |
| 2551 | func (m *LeaseCheckpoint) Reset() { *m = LeaseCheckpoint{} } |
| 2552 | func (m *LeaseCheckpoint) String() string { return proto.CompactTextString(m) } |
| 2553 | func (*LeaseCheckpoint) ProtoMessage() {} |
| 2554 | func (*LeaseCheckpoint) Descriptor() ([]byte, []int) { |
| 2555 | return fileDescriptor_77a6da22d6a3feb1, []int{29} |
| 2556 | } |
| 2557 | func (m *LeaseCheckpoint) XXX_Unmarshal(b []byte) error { |
| 2558 | return m.Unmarshal(b) |
| 2559 | } |
| 2560 | func (m *LeaseCheckpoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 2561 | if deterministic { |
| 2562 | return xxx_messageInfo_LeaseCheckpoint.Marshal(b, m, deterministic) |
| 2563 | } else { |
| 2564 | b = b[:cap(b)] |
| 2565 | n, err := m.MarshalToSizedBuffer(b) |
| 2566 | if err != nil { |
| 2567 | return nil, err |
| 2568 | } |
| 2569 | return b[:n], nil |
| 2570 | } |
| 2571 | } |
| 2572 | func (m *LeaseCheckpoint) XXX_Merge(src proto.Message) { |
| 2573 | xxx_messageInfo_LeaseCheckpoint.Merge(m, src) |
| 2574 | } |
| 2575 | func (m *LeaseCheckpoint) XXX_Size() int { |
| 2576 | return m.Size() |
| 2577 | } |
| 2578 | func (m *LeaseCheckpoint) XXX_DiscardUnknown() { |
| 2579 | xxx_messageInfo_LeaseCheckpoint.DiscardUnknown(m) |
| 2580 | } |
| 2581 | |
| 2582 | var xxx_messageInfo_LeaseCheckpoint proto.InternalMessageInfo |
| 2583 | |
| 2584 | func (m *LeaseCheckpoint) GetID() int64 { |
| 2585 | if m != nil { |
| 2586 | return m.ID |
| 2587 | } |
| 2588 | return 0 |
| 2589 | } |
| 2590 | |
| 2591 | func (m *LeaseCheckpoint) GetRemaining_TTL() int64 { |
| 2592 | if m != nil { |
| 2593 | return m.Remaining_TTL |
| 2594 | } |
| 2595 | return 0 |
| 2596 | } |
| 2597 | |
| 2598 | type LeaseCheckpointRequest struct { |
| 2599 | Checkpoints []*LeaseCheckpoint `protobuf:"bytes,1,rep,name=checkpoints,proto3" json:"checkpoints,omitempty"` |
| 2600 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 2601 | XXX_unrecognized []byte `json:"-"` |
| 2602 | XXX_sizecache int32 `json:"-"` |
| 2603 | } |
| 2604 | |
| 2605 | func (m *LeaseCheckpointRequest) Reset() { *m = LeaseCheckpointRequest{} } |
| 2606 | func (m *LeaseCheckpointRequest) String() string { return proto.CompactTextString(m) } |
| 2607 | func (*LeaseCheckpointRequest) ProtoMessage() {} |
| 2608 | func (*LeaseCheckpointRequest) Descriptor() ([]byte, []int) { |
| 2609 | return fileDescriptor_77a6da22d6a3feb1, []int{30} |
| 2610 | } |
| 2611 | func (m *LeaseCheckpointRequest) XXX_Unmarshal(b []byte) error { |
| 2612 | return m.Unmarshal(b) |
| 2613 | } |
| 2614 | func (m *LeaseCheckpointRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 2615 | if deterministic { |
| 2616 | return xxx_messageInfo_LeaseCheckpointRequest.Marshal(b, m, deterministic) |
| 2617 | } else { |
| 2618 | b = b[:cap(b)] |
| 2619 | n, err := m.MarshalToSizedBuffer(b) |
| 2620 | if err != nil { |
| 2621 | return nil, err |
| 2622 | } |
| 2623 | return b[:n], nil |
| 2624 | } |
| 2625 | } |
| 2626 | func (m *LeaseCheckpointRequest) XXX_Merge(src proto.Message) { |
| 2627 | xxx_messageInfo_LeaseCheckpointRequest.Merge(m, src) |
| 2628 | } |
| 2629 | func (m *LeaseCheckpointRequest) XXX_Size() int { |
| 2630 | return m.Size() |
| 2631 | } |
| 2632 | func (m *LeaseCheckpointRequest) XXX_DiscardUnknown() { |
| 2633 | xxx_messageInfo_LeaseCheckpointRequest.DiscardUnknown(m) |
| 2634 | } |
| 2635 | |
| 2636 | var xxx_messageInfo_LeaseCheckpointRequest proto.InternalMessageInfo |
| 2637 | |
| 2638 | func (m *LeaseCheckpointRequest) GetCheckpoints() []*LeaseCheckpoint { |
| 2639 | if m != nil { |
| 2640 | return m.Checkpoints |
| 2641 | } |
| 2642 | return nil |
| 2643 | } |
| 2644 | |
| 2645 | type LeaseCheckpointResponse struct { |
| 2646 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` |
| 2647 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 2648 | XXX_unrecognized []byte `json:"-"` |
| 2649 | XXX_sizecache int32 `json:"-"` |
| 2650 | } |
| 2651 | |
| 2652 | func (m *LeaseCheckpointResponse) Reset() { *m = LeaseCheckpointResponse{} } |
| 2653 | func (m *LeaseCheckpointResponse) String() string { return proto.CompactTextString(m) } |
| 2654 | func (*LeaseCheckpointResponse) ProtoMessage() {} |
| 2655 | func (*LeaseCheckpointResponse) Descriptor() ([]byte, []int) { |
| 2656 | return fileDescriptor_77a6da22d6a3feb1, []int{31} |
| 2657 | } |
| 2658 | func (m *LeaseCheckpointResponse) XXX_Unmarshal(b []byte) error { |
| 2659 | return m.Unmarshal(b) |
| 2660 | } |
| 2661 | func (m *LeaseCheckpointResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 2662 | if deterministic { |
| 2663 | return xxx_messageInfo_LeaseCheckpointResponse.Marshal(b, m, deterministic) |
| 2664 | } else { |
| 2665 | b = b[:cap(b)] |
| 2666 | n, err := m.MarshalToSizedBuffer(b) |
| 2667 | if err != nil { |
| 2668 | return nil, err |
| 2669 | } |
| 2670 | return b[:n], nil |
| 2671 | } |
| 2672 | } |
| 2673 | func (m *LeaseCheckpointResponse) XXX_Merge(src proto.Message) { |
| 2674 | xxx_messageInfo_LeaseCheckpointResponse.Merge(m, src) |
| 2675 | } |
| 2676 | func (m *LeaseCheckpointResponse) XXX_Size() int { |
| 2677 | return m.Size() |
| 2678 | } |
| 2679 | func (m *LeaseCheckpointResponse) XXX_DiscardUnknown() { |
| 2680 | xxx_messageInfo_LeaseCheckpointResponse.DiscardUnknown(m) |
| 2681 | } |
| 2682 | |
| 2683 | var xxx_messageInfo_LeaseCheckpointResponse proto.InternalMessageInfo |
| 2684 | |
| 2685 | func (m *LeaseCheckpointResponse) GetHeader() *ResponseHeader { |
| 2686 | if m != nil { |
| 2687 | return m.Header |
| 2688 | } |
| 2689 | return nil |
| 2690 | } |
| 2691 | |
| 2692 | type LeaseKeepAliveRequest struct { |
| 2693 | // ID is the lease ID for the lease to keep alive. |
| 2694 | ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` |
| 2695 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 2696 | XXX_unrecognized []byte `json:"-"` |
| 2697 | XXX_sizecache int32 `json:"-"` |
| 2698 | } |
| 2699 | |
| 2700 | func (m *LeaseKeepAliveRequest) Reset() { *m = LeaseKeepAliveRequest{} } |
| 2701 | func (m *LeaseKeepAliveRequest) String() string { return proto.CompactTextString(m) } |
| 2702 | func (*LeaseKeepAliveRequest) ProtoMessage() {} |
| 2703 | func (*LeaseKeepAliveRequest) Descriptor() ([]byte, []int) { |
| 2704 | return fileDescriptor_77a6da22d6a3feb1, []int{32} |
| 2705 | } |
| 2706 | func (m *LeaseKeepAliveRequest) XXX_Unmarshal(b []byte) error { |
| 2707 | return m.Unmarshal(b) |
| 2708 | } |
| 2709 | func (m *LeaseKeepAliveRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 2710 | if deterministic { |
| 2711 | return xxx_messageInfo_LeaseKeepAliveRequest.Marshal(b, m, deterministic) |
| 2712 | } else { |
| 2713 | b = b[:cap(b)] |
| 2714 | n, err := m.MarshalToSizedBuffer(b) |
| 2715 | if err != nil { |
| 2716 | return nil, err |
| 2717 | } |
| 2718 | return b[:n], nil |
| 2719 | } |
| 2720 | } |
| 2721 | func (m *LeaseKeepAliveRequest) XXX_Merge(src proto.Message) { |
| 2722 | xxx_messageInfo_LeaseKeepAliveRequest.Merge(m, src) |
| 2723 | } |
| 2724 | func (m *LeaseKeepAliveRequest) XXX_Size() int { |
| 2725 | return m.Size() |
| 2726 | } |
| 2727 | func (m *LeaseKeepAliveRequest) XXX_DiscardUnknown() { |
| 2728 | xxx_messageInfo_LeaseKeepAliveRequest.DiscardUnknown(m) |
| 2729 | } |
| 2730 | |
| 2731 | var xxx_messageInfo_LeaseKeepAliveRequest proto.InternalMessageInfo |
| 2732 | |
| 2733 | func (m *LeaseKeepAliveRequest) GetID() int64 { |
| 2734 | if m != nil { |
| 2735 | return m.ID |
| 2736 | } |
| 2737 | return 0 |
| 2738 | } |
| 2739 | |
| 2740 | type LeaseKeepAliveResponse struct { |
| 2741 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` |
| 2742 | // ID is the lease ID from the keep alive request. |
| 2743 | ID int64 `protobuf:"varint,2,opt,name=ID,proto3" json:"ID,omitempty"` |
| 2744 | // TTL is the new time-to-live for the lease. |
| 2745 | TTL int64 `protobuf:"varint,3,opt,name=TTL,proto3" json:"TTL,omitempty"` |
| 2746 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 2747 | XXX_unrecognized []byte `json:"-"` |
| 2748 | XXX_sizecache int32 `json:"-"` |
| 2749 | } |
| 2750 | |
| 2751 | func (m *LeaseKeepAliveResponse) Reset() { *m = LeaseKeepAliveResponse{} } |
| 2752 | func (m *LeaseKeepAliveResponse) String() string { return proto.CompactTextString(m) } |
| 2753 | func (*LeaseKeepAliveResponse) ProtoMessage() {} |
| 2754 | func (*LeaseKeepAliveResponse) Descriptor() ([]byte, []int) { |
| 2755 | return fileDescriptor_77a6da22d6a3feb1, []int{33} |
| 2756 | } |
| 2757 | func (m *LeaseKeepAliveResponse) XXX_Unmarshal(b []byte) error { |
| 2758 | return m.Unmarshal(b) |
| 2759 | } |
| 2760 | func (m *LeaseKeepAliveResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 2761 | if deterministic { |
| 2762 | return xxx_messageInfo_LeaseKeepAliveResponse.Marshal(b, m, deterministic) |
| 2763 | } else { |
| 2764 | b = b[:cap(b)] |
| 2765 | n, err := m.MarshalToSizedBuffer(b) |
| 2766 | if err != nil { |
| 2767 | return nil, err |
| 2768 | } |
| 2769 | return b[:n], nil |
| 2770 | } |
| 2771 | } |
| 2772 | func (m *LeaseKeepAliveResponse) XXX_Merge(src proto.Message) { |
| 2773 | xxx_messageInfo_LeaseKeepAliveResponse.Merge(m, src) |
| 2774 | } |
| 2775 | func (m *LeaseKeepAliveResponse) XXX_Size() int { |
| 2776 | return m.Size() |
| 2777 | } |
| 2778 | func (m *LeaseKeepAliveResponse) XXX_DiscardUnknown() { |
| 2779 | xxx_messageInfo_LeaseKeepAliveResponse.DiscardUnknown(m) |
| 2780 | } |
| 2781 | |
| 2782 | var xxx_messageInfo_LeaseKeepAliveResponse proto.InternalMessageInfo |
| 2783 | |
| 2784 | func (m *LeaseKeepAliveResponse) GetHeader() *ResponseHeader { |
| 2785 | if m != nil { |
| 2786 | return m.Header |
| 2787 | } |
| 2788 | return nil |
| 2789 | } |
| 2790 | |
| 2791 | func (m *LeaseKeepAliveResponse) GetID() int64 { |
| 2792 | if m != nil { |
| 2793 | return m.ID |
| 2794 | } |
| 2795 | return 0 |
| 2796 | } |
| 2797 | |
| 2798 | func (m *LeaseKeepAliveResponse) GetTTL() int64 { |
| 2799 | if m != nil { |
| 2800 | return m.TTL |
| 2801 | } |
| 2802 | return 0 |
| 2803 | } |
| 2804 | |
| 2805 | type LeaseTimeToLiveRequest struct { |
| 2806 | // ID is the lease ID for the lease. |
| 2807 | ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` |
| 2808 | // keys is true to query all the keys attached to this lease. |
| 2809 | Keys bool `protobuf:"varint,2,opt,name=keys,proto3" json:"keys,omitempty"` |
| 2810 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 2811 | XXX_unrecognized []byte `json:"-"` |
| 2812 | XXX_sizecache int32 `json:"-"` |
| 2813 | } |
| 2814 | |
| 2815 | func (m *LeaseTimeToLiveRequest) Reset() { *m = LeaseTimeToLiveRequest{} } |
| 2816 | func (m *LeaseTimeToLiveRequest) String() string { return proto.CompactTextString(m) } |
| 2817 | func (*LeaseTimeToLiveRequest) ProtoMessage() {} |
| 2818 | func (*LeaseTimeToLiveRequest) Descriptor() ([]byte, []int) { |
| 2819 | return fileDescriptor_77a6da22d6a3feb1, []int{34} |
| 2820 | } |
| 2821 | func (m *LeaseTimeToLiveRequest) XXX_Unmarshal(b []byte) error { |
| 2822 | return m.Unmarshal(b) |
| 2823 | } |
| 2824 | func (m *LeaseTimeToLiveRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 2825 | if deterministic { |
| 2826 | return xxx_messageInfo_LeaseTimeToLiveRequest.Marshal(b, m, deterministic) |
| 2827 | } else { |
| 2828 | b = b[:cap(b)] |
| 2829 | n, err := m.MarshalToSizedBuffer(b) |
| 2830 | if err != nil { |
| 2831 | return nil, err |
| 2832 | } |
| 2833 | return b[:n], nil |
| 2834 | } |
| 2835 | } |
| 2836 | func (m *LeaseTimeToLiveRequest) XXX_Merge(src proto.Message) { |
| 2837 | xxx_messageInfo_LeaseTimeToLiveRequest.Merge(m, src) |
| 2838 | } |
| 2839 | func (m *LeaseTimeToLiveRequest) XXX_Size() int { |
| 2840 | return m.Size() |
| 2841 | } |
| 2842 | func (m *LeaseTimeToLiveRequest) XXX_DiscardUnknown() { |
| 2843 | xxx_messageInfo_LeaseTimeToLiveRequest.DiscardUnknown(m) |
| 2844 | } |
| 2845 | |
| 2846 | var xxx_messageInfo_LeaseTimeToLiveRequest proto.InternalMessageInfo |
| 2847 | |
| 2848 | func (m *LeaseTimeToLiveRequest) GetID() int64 { |
| 2849 | if m != nil { |
| 2850 | return m.ID |
| 2851 | } |
| 2852 | return 0 |
| 2853 | } |
| 2854 | |
| 2855 | func (m *LeaseTimeToLiveRequest) GetKeys() bool { |
| 2856 | if m != nil { |
| 2857 | return m.Keys |
| 2858 | } |
| 2859 | return false |
| 2860 | } |
| 2861 | |
| 2862 | type LeaseTimeToLiveResponse struct { |
| 2863 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` |
| 2864 | // ID is the lease ID from the keep alive request. |
| 2865 | ID int64 `protobuf:"varint,2,opt,name=ID,proto3" json:"ID,omitempty"` |
| 2866 | // TTL is the remaining TTL in seconds for the lease; the lease will expire in under TTL+1 seconds. |
| 2867 | TTL int64 `protobuf:"varint,3,opt,name=TTL,proto3" json:"TTL,omitempty"` |
| 2868 | // GrantedTTL is the initial granted time in seconds upon lease creation/renewal. |
| 2869 | GrantedTTL int64 `protobuf:"varint,4,opt,name=grantedTTL,proto3" json:"grantedTTL,omitempty"` |
| 2870 | // Keys is the list of keys attached to this lease. |
| 2871 | Keys [][]byte `protobuf:"bytes,5,rep,name=keys,proto3" json:"keys,omitempty"` |
| 2872 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 2873 | XXX_unrecognized []byte `json:"-"` |
| 2874 | XXX_sizecache int32 `json:"-"` |
| 2875 | } |
| 2876 | |
| 2877 | func (m *LeaseTimeToLiveResponse) Reset() { *m = LeaseTimeToLiveResponse{} } |
| 2878 | func (m *LeaseTimeToLiveResponse) String() string { return proto.CompactTextString(m) } |
| 2879 | func (*LeaseTimeToLiveResponse) ProtoMessage() {} |
| 2880 | func (*LeaseTimeToLiveResponse) Descriptor() ([]byte, []int) { |
| 2881 | return fileDescriptor_77a6da22d6a3feb1, []int{35} |
| 2882 | } |
| 2883 | func (m *LeaseTimeToLiveResponse) XXX_Unmarshal(b []byte) error { |
| 2884 | return m.Unmarshal(b) |
| 2885 | } |
| 2886 | func (m *LeaseTimeToLiveResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 2887 | if deterministic { |
| 2888 | return xxx_messageInfo_LeaseTimeToLiveResponse.Marshal(b, m, deterministic) |
| 2889 | } else { |
| 2890 | b = b[:cap(b)] |
| 2891 | n, err := m.MarshalToSizedBuffer(b) |
| 2892 | if err != nil { |
| 2893 | return nil, err |
| 2894 | } |
| 2895 | return b[:n], nil |
| 2896 | } |
| 2897 | } |
| 2898 | func (m *LeaseTimeToLiveResponse) XXX_Merge(src proto.Message) { |
| 2899 | xxx_messageInfo_LeaseTimeToLiveResponse.Merge(m, src) |
| 2900 | } |
| 2901 | func (m *LeaseTimeToLiveResponse) XXX_Size() int { |
| 2902 | return m.Size() |
| 2903 | } |
| 2904 | func (m *LeaseTimeToLiveResponse) XXX_DiscardUnknown() { |
| 2905 | xxx_messageInfo_LeaseTimeToLiveResponse.DiscardUnknown(m) |
| 2906 | } |
| 2907 | |
| 2908 | var xxx_messageInfo_LeaseTimeToLiveResponse proto.InternalMessageInfo |
| 2909 | |
| 2910 | func (m *LeaseTimeToLiveResponse) GetHeader() *ResponseHeader { |
| 2911 | if m != nil { |
| 2912 | return m.Header |
| 2913 | } |
| 2914 | return nil |
| 2915 | } |
| 2916 | |
| 2917 | func (m *LeaseTimeToLiveResponse) GetID() int64 { |
| 2918 | if m != nil { |
| 2919 | return m.ID |
| 2920 | } |
| 2921 | return 0 |
| 2922 | } |
| 2923 | |
| 2924 | func (m *LeaseTimeToLiveResponse) GetTTL() int64 { |
| 2925 | if m != nil { |
| 2926 | return m.TTL |
| 2927 | } |
| 2928 | return 0 |
| 2929 | } |
| 2930 | |
| 2931 | func (m *LeaseTimeToLiveResponse) GetGrantedTTL() int64 { |
| 2932 | if m != nil { |
| 2933 | return m.GrantedTTL |
| 2934 | } |
| 2935 | return 0 |
| 2936 | } |
| 2937 | |
| 2938 | func (m *LeaseTimeToLiveResponse) GetKeys() [][]byte { |
| 2939 | if m != nil { |
| 2940 | return m.Keys |
| 2941 | } |
| 2942 | return nil |
| 2943 | } |
| 2944 | |
| 2945 | type LeaseLeasesRequest struct { |
| 2946 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 2947 | XXX_unrecognized []byte `json:"-"` |
| 2948 | XXX_sizecache int32 `json:"-"` |
| 2949 | } |
| 2950 | |
| 2951 | func (m *LeaseLeasesRequest) Reset() { *m = LeaseLeasesRequest{} } |
| 2952 | func (m *LeaseLeasesRequest) String() string { return proto.CompactTextString(m) } |
| 2953 | func (*LeaseLeasesRequest) ProtoMessage() {} |
| 2954 | func (*LeaseLeasesRequest) Descriptor() ([]byte, []int) { |
| 2955 | return fileDescriptor_77a6da22d6a3feb1, []int{36} |
| 2956 | } |
| 2957 | func (m *LeaseLeasesRequest) XXX_Unmarshal(b []byte) error { |
| 2958 | return m.Unmarshal(b) |
| 2959 | } |
| 2960 | func (m *LeaseLeasesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 2961 | if deterministic { |
| 2962 | return xxx_messageInfo_LeaseLeasesRequest.Marshal(b, m, deterministic) |
| 2963 | } else { |
| 2964 | b = b[:cap(b)] |
| 2965 | n, err := m.MarshalToSizedBuffer(b) |
| 2966 | if err != nil { |
| 2967 | return nil, err |
| 2968 | } |
| 2969 | return b[:n], nil |
| 2970 | } |
| 2971 | } |
| 2972 | func (m *LeaseLeasesRequest) XXX_Merge(src proto.Message) { |
| 2973 | xxx_messageInfo_LeaseLeasesRequest.Merge(m, src) |
| 2974 | } |
| 2975 | func (m *LeaseLeasesRequest) XXX_Size() int { |
| 2976 | return m.Size() |
| 2977 | } |
| 2978 | func (m *LeaseLeasesRequest) XXX_DiscardUnknown() { |
| 2979 | xxx_messageInfo_LeaseLeasesRequest.DiscardUnknown(m) |
| 2980 | } |
| 2981 | |
| 2982 | var xxx_messageInfo_LeaseLeasesRequest proto.InternalMessageInfo |
| 2983 | |
| 2984 | type LeaseStatus struct { |
| 2985 | ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` |
| 2986 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 2987 | XXX_unrecognized []byte `json:"-"` |
| 2988 | XXX_sizecache int32 `json:"-"` |
| 2989 | } |
| 2990 | |
| 2991 | func (m *LeaseStatus) Reset() { *m = LeaseStatus{} } |
| 2992 | func (m *LeaseStatus) String() string { return proto.CompactTextString(m) } |
| 2993 | func (*LeaseStatus) ProtoMessage() {} |
| 2994 | func (*LeaseStatus) Descriptor() ([]byte, []int) { |
| 2995 | return fileDescriptor_77a6da22d6a3feb1, []int{37} |
| 2996 | } |
| 2997 | func (m *LeaseStatus) XXX_Unmarshal(b []byte) error { |
| 2998 | return m.Unmarshal(b) |
| 2999 | } |
| 3000 | func (m *LeaseStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 3001 | if deterministic { |
| 3002 | return xxx_messageInfo_LeaseStatus.Marshal(b, m, deterministic) |
| 3003 | } else { |
| 3004 | b = b[:cap(b)] |
| 3005 | n, err := m.MarshalToSizedBuffer(b) |
| 3006 | if err != nil { |
| 3007 | return nil, err |
| 3008 | } |
| 3009 | return b[:n], nil |
| 3010 | } |
| 3011 | } |
| 3012 | func (m *LeaseStatus) XXX_Merge(src proto.Message) { |
| 3013 | xxx_messageInfo_LeaseStatus.Merge(m, src) |
| 3014 | } |
| 3015 | func (m *LeaseStatus) XXX_Size() int { |
| 3016 | return m.Size() |
| 3017 | } |
| 3018 | func (m *LeaseStatus) XXX_DiscardUnknown() { |
| 3019 | xxx_messageInfo_LeaseStatus.DiscardUnknown(m) |
| 3020 | } |
| 3021 | |
| 3022 | var xxx_messageInfo_LeaseStatus proto.InternalMessageInfo |
| 3023 | |
| 3024 | func (m *LeaseStatus) GetID() int64 { |
| 3025 | if m != nil { |
| 3026 | return m.ID |
| 3027 | } |
| 3028 | return 0 |
| 3029 | } |
| 3030 | |
| 3031 | type LeaseLeasesResponse struct { |
| 3032 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` |
| 3033 | Leases []*LeaseStatus `protobuf:"bytes,2,rep,name=leases,proto3" json:"leases,omitempty"` |
| 3034 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 3035 | XXX_unrecognized []byte `json:"-"` |
| 3036 | XXX_sizecache int32 `json:"-"` |
| 3037 | } |
| 3038 | |
| 3039 | func (m *LeaseLeasesResponse) Reset() { *m = LeaseLeasesResponse{} } |
| 3040 | func (m *LeaseLeasesResponse) String() string { return proto.CompactTextString(m) } |
| 3041 | func (*LeaseLeasesResponse) ProtoMessage() {} |
| 3042 | func (*LeaseLeasesResponse) Descriptor() ([]byte, []int) { |
| 3043 | return fileDescriptor_77a6da22d6a3feb1, []int{38} |
| 3044 | } |
| 3045 | func (m *LeaseLeasesResponse) XXX_Unmarshal(b []byte) error { |
| 3046 | return m.Unmarshal(b) |
| 3047 | } |
| 3048 | func (m *LeaseLeasesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 3049 | if deterministic { |
| 3050 | return xxx_messageInfo_LeaseLeasesResponse.Marshal(b, m, deterministic) |
| 3051 | } else { |
| 3052 | b = b[:cap(b)] |
| 3053 | n, err := m.MarshalToSizedBuffer(b) |
| 3054 | if err != nil { |
| 3055 | return nil, err |
| 3056 | } |
| 3057 | return b[:n], nil |
| 3058 | } |
| 3059 | } |
| 3060 | func (m *LeaseLeasesResponse) XXX_Merge(src proto.Message) { |
| 3061 | xxx_messageInfo_LeaseLeasesResponse.Merge(m, src) |
| 3062 | } |
| 3063 | func (m *LeaseLeasesResponse) XXX_Size() int { |
| 3064 | return m.Size() |
| 3065 | } |
| 3066 | func (m *LeaseLeasesResponse) XXX_DiscardUnknown() { |
| 3067 | xxx_messageInfo_LeaseLeasesResponse.DiscardUnknown(m) |
| 3068 | } |
| 3069 | |
| 3070 | var xxx_messageInfo_LeaseLeasesResponse proto.InternalMessageInfo |
| 3071 | |
| 3072 | func (m *LeaseLeasesResponse) GetHeader() *ResponseHeader { |
| 3073 | if m != nil { |
| 3074 | return m.Header |
| 3075 | } |
| 3076 | return nil |
| 3077 | } |
| 3078 | |
| 3079 | func (m *LeaseLeasesResponse) GetLeases() []*LeaseStatus { |
| 3080 | if m != nil { |
| 3081 | return m.Leases |
| 3082 | } |
| 3083 | return nil |
| 3084 | } |
| 3085 | |
| 3086 | type Member struct { |
| 3087 | // ID is the member ID for this member. |
| 3088 | ID uint64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` |
| 3089 | // name is the human-readable name of the member. If the member is not started, the name will be an empty string. |
| 3090 | Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` |
| 3091 | // peerURLs is the list of URLs the member exposes to the cluster for communication. |
| 3092 | PeerURLs []string `protobuf:"bytes,3,rep,name=peerURLs,proto3" json:"peerURLs,omitempty"` |
| 3093 | // clientURLs is the list of URLs the member exposes to clients for communication. If the member is not started, clientURLs will be empty. |
| 3094 | ClientURLs []string `protobuf:"bytes,4,rep,name=clientURLs,proto3" json:"clientURLs,omitempty"` |
| 3095 | // isLearner indicates if the member is raft learner. |
| 3096 | IsLearner bool `protobuf:"varint,5,opt,name=isLearner,proto3" json:"isLearner,omitempty"` |
| 3097 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 3098 | XXX_unrecognized []byte `json:"-"` |
| 3099 | XXX_sizecache int32 `json:"-"` |
| 3100 | } |
| 3101 | |
| 3102 | func (m *Member) Reset() { *m = Member{} } |
| 3103 | func (m *Member) String() string { return proto.CompactTextString(m) } |
| 3104 | func (*Member) ProtoMessage() {} |
| 3105 | func (*Member) Descriptor() ([]byte, []int) { |
| 3106 | return fileDescriptor_77a6da22d6a3feb1, []int{39} |
| 3107 | } |
| 3108 | func (m *Member) XXX_Unmarshal(b []byte) error { |
| 3109 | return m.Unmarshal(b) |
| 3110 | } |
| 3111 | func (m *Member) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 3112 | if deterministic { |
| 3113 | return xxx_messageInfo_Member.Marshal(b, m, deterministic) |
| 3114 | } else { |
| 3115 | b = b[:cap(b)] |
| 3116 | n, err := m.MarshalToSizedBuffer(b) |
| 3117 | if err != nil { |
| 3118 | return nil, err |
| 3119 | } |
| 3120 | return b[:n], nil |
| 3121 | } |
| 3122 | } |
| 3123 | func (m *Member) XXX_Merge(src proto.Message) { |
| 3124 | xxx_messageInfo_Member.Merge(m, src) |
| 3125 | } |
| 3126 | func (m *Member) XXX_Size() int { |
| 3127 | return m.Size() |
| 3128 | } |
| 3129 | func (m *Member) XXX_DiscardUnknown() { |
| 3130 | xxx_messageInfo_Member.DiscardUnknown(m) |
| 3131 | } |
| 3132 | |
| 3133 | var xxx_messageInfo_Member proto.InternalMessageInfo |
| 3134 | |
| 3135 | func (m *Member) GetID() uint64 { |
| 3136 | if m != nil { |
| 3137 | return m.ID |
| 3138 | } |
| 3139 | return 0 |
| 3140 | } |
| 3141 | |
| 3142 | func (m *Member) GetName() string { |
| 3143 | if m != nil { |
| 3144 | return m.Name |
| 3145 | } |
| 3146 | return "" |
| 3147 | } |
| 3148 | |
| 3149 | func (m *Member) GetPeerURLs() []string { |
| 3150 | if m != nil { |
| 3151 | return m.PeerURLs |
| 3152 | } |
| 3153 | return nil |
| 3154 | } |
| 3155 | |
| 3156 | func (m *Member) GetClientURLs() []string { |
| 3157 | if m != nil { |
| 3158 | return m.ClientURLs |
| 3159 | } |
| 3160 | return nil |
| 3161 | } |
| 3162 | |
| 3163 | func (m *Member) GetIsLearner() bool { |
| 3164 | if m != nil { |
| 3165 | return m.IsLearner |
| 3166 | } |
| 3167 | return false |
| 3168 | } |
| 3169 | |
| 3170 | type MemberAddRequest struct { |
| 3171 | // peerURLs is the list of URLs the added member will use to communicate with the cluster. |
| 3172 | PeerURLs []string `protobuf:"bytes,1,rep,name=peerURLs,proto3" json:"peerURLs,omitempty"` |
| 3173 | // isLearner indicates if the added member is raft learner. |
| 3174 | IsLearner bool `protobuf:"varint,2,opt,name=isLearner,proto3" json:"isLearner,omitempty"` |
| 3175 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 3176 | XXX_unrecognized []byte `json:"-"` |
| 3177 | XXX_sizecache int32 `json:"-"` |
| 3178 | } |
| 3179 | |
| 3180 | func (m *MemberAddRequest) Reset() { *m = MemberAddRequest{} } |
| 3181 | func (m *MemberAddRequest) String() string { return proto.CompactTextString(m) } |
| 3182 | func (*MemberAddRequest) ProtoMessage() {} |
| 3183 | func (*MemberAddRequest) Descriptor() ([]byte, []int) { |
| 3184 | return fileDescriptor_77a6da22d6a3feb1, []int{40} |
| 3185 | } |
| 3186 | func (m *MemberAddRequest) XXX_Unmarshal(b []byte) error { |
| 3187 | return m.Unmarshal(b) |
| 3188 | } |
| 3189 | func (m *MemberAddRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 3190 | if deterministic { |
| 3191 | return xxx_messageInfo_MemberAddRequest.Marshal(b, m, deterministic) |
| 3192 | } else { |
| 3193 | b = b[:cap(b)] |
| 3194 | n, err := m.MarshalToSizedBuffer(b) |
| 3195 | if err != nil { |
| 3196 | return nil, err |
| 3197 | } |
| 3198 | return b[:n], nil |
| 3199 | } |
| 3200 | } |
| 3201 | func (m *MemberAddRequest) XXX_Merge(src proto.Message) { |
| 3202 | xxx_messageInfo_MemberAddRequest.Merge(m, src) |
| 3203 | } |
| 3204 | func (m *MemberAddRequest) XXX_Size() int { |
| 3205 | return m.Size() |
| 3206 | } |
| 3207 | func (m *MemberAddRequest) XXX_DiscardUnknown() { |
| 3208 | xxx_messageInfo_MemberAddRequest.DiscardUnknown(m) |
| 3209 | } |
| 3210 | |
| 3211 | var xxx_messageInfo_MemberAddRequest proto.InternalMessageInfo |
| 3212 | |
| 3213 | func (m *MemberAddRequest) GetPeerURLs() []string { |
| 3214 | if m != nil { |
| 3215 | return m.PeerURLs |
| 3216 | } |
| 3217 | return nil |
| 3218 | } |
| 3219 | |
| 3220 | func (m *MemberAddRequest) GetIsLearner() bool { |
| 3221 | if m != nil { |
| 3222 | return m.IsLearner |
| 3223 | } |
| 3224 | return false |
| 3225 | } |
| 3226 | |
| 3227 | type MemberAddResponse struct { |
| 3228 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` |
| 3229 | // member is the member information for the added member. |
| 3230 | Member *Member `protobuf:"bytes,2,opt,name=member,proto3" json:"member,omitempty"` |
| 3231 | // members is a list of all members after adding the new member. |
| 3232 | Members []*Member `protobuf:"bytes,3,rep,name=members,proto3" json:"members,omitempty"` |
| 3233 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 3234 | XXX_unrecognized []byte `json:"-"` |
| 3235 | XXX_sizecache int32 `json:"-"` |
| 3236 | } |
| 3237 | |
| 3238 | func (m *MemberAddResponse) Reset() { *m = MemberAddResponse{} } |
| 3239 | func (m *MemberAddResponse) String() string { return proto.CompactTextString(m) } |
| 3240 | func (*MemberAddResponse) ProtoMessage() {} |
| 3241 | func (*MemberAddResponse) Descriptor() ([]byte, []int) { |
| 3242 | return fileDescriptor_77a6da22d6a3feb1, []int{41} |
| 3243 | } |
| 3244 | func (m *MemberAddResponse) XXX_Unmarshal(b []byte) error { |
| 3245 | return m.Unmarshal(b) |
| 3246 | } |
| 3247 | func (m *MemberAddResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 3248 | if deterministic { |
| 3249 | return xxx_messageInfo_MemberAddResponse.Marshal(b, m, deterministic) |
| 3250 | } else { |
| 3251 | b = b[:cap(b)] |
| 3252 | n, err := m.MarshalToSizedBuffer(b) |
| 3253 | if err != nil { |
| 3254 | return nil, err |
| 3255 | } |
| 3256 | return b[:n], nil |
| 3257 | } |
| 3258 | } |
| 3259 | func (m *MemberAddResponse) XXX_Merge(src proto.Message) { |
| 3260 | xxx_messageInfo_MemberAddResponse.Merge(m, src) |
| 3261 | } |
| 3262 | func (m *MemberAddResponse) XXX_Size() int { |
| 3263 | return m.Size() |
| 3264 | } |
| 3265 | func (m *MemberAddResponse) XXX_DiscardUnknown() { |
| 3266 | xxx_messageInfo_MemberAddResponse.DiscardUnknown(m) |
| 3267 | } |
| 3268 | |
| 3269 | var xxx_messageInfo_MemberAddResponse proto.InternalMessageInfo |
| 3270 | |
| 3271 | func (m *MemberAddResponse) GetHeader() *ResponseHeader { |
| 3272 | if m != nil { |
| 3273 | return m.Header |
| 3274 | } |
| 3275 | return nil |
| 3276 | } |
| 3277 | |
| 3278 | func (m *MemberAddResponse) GetMember() *Member { |
| 3279 | if m != nil { |
| 3280 | return m.Member |
| 3281 | } |
| 3282 | return nil |
| 3283 | } |
| 3284 | |
| 3285 | func (m *MemberAddResponse) GetMembers() []*Member { |
| 3286 | if m != nil { |
| 3287 | return m.Members |
| 3288 | } |
| 3289 | return nil |
| 3290 | } |
| 3291 | |
| 3292 | type MemberRemoveRequest struct { |
| 3293 | // ID is the member ID of the member to remove. |
| 3294 | ID uint64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` |
| 3295 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 3296 | XXX_unrecognized []byte `json:"-"` |
| 3297 | XXX_sizecache int32 `json:"-"` |
| 3298 | } |
| 3299 | |
| 3300 | func (m *MemberRemoveRequest) Reset() { *m = MemberRemoveRequest{} } |
| 3301 | func (m *MemberRemoveRequest) String() string { return proto.CompactTextString(m) } |
| 3302 | func (*MemberRemoveRequest) ProtoMessage() {} |
| 3303 | func (*MemberRemoveRequest) Descriptor() ([]byte, []int) { |
| 3304 | return fileDescriptor_77a6da22d6a3feb1, []int{42} |
| 3305 | } |
| 3306 | func (m *MemberRemoveRequest) XXX_Unmarshal(b []byte) error { |
| 3307 | return m.Unmarshal(b) |
| 3308 | } |
| 3309 | func (m *MemberRemoveRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 3310 | if deterministic { |
| 3311 | return xxx_messageInfo_MemberRemoveRequest.Marshal(b, m, deterministic) |
| 3312 | } else { |
| 3313 | b = b[:cap(b)] |
| 3314 | n, err := m.MarshalToSizedBuffer(b) |
| 3315 | if err != nil { |
| 3316 | return nil, err |
| 3317 | } |
| 3318 | return b[:n], nil |
| 3319 | } |
| 3320 | } |
| 3321 | func (m *MemberRemoveRequest) XXX_Merge(src proto.Message) { |
| 3322 | xxx_messageInfo_MemberRemoveRequest.Merge(m, src) |
| 3323 | } |
| 3324 | func (m *MemberRemoveRequest) XXX_Size() int { |
| 3325 | return m.Size() |
| 3326 | } |
| 3327 | func (m *MemberRemoveRequest) XXX_DiscardUnknown() { |
| 3328 | xxx_messageInfo_MemberRemoveRequest.DiscardUnknown(m) |
| 3329 | } |
| 3330 | |
| 3331 | var xxx_messageInfo_MemberRemoveRequest proto.InternalMessageInfo |
| 3332 | |
| 3333 | func (m *MemberRemoveRequest) GetID() uint64 { |
| 3334 | if m != nil { |
| 3335 | return m.ID |
| 3336 | } |
| 3337 | return 0 |
| 3338 | } |
| 3339 | |
| 3340 | type MemberRemoveResponse struct { |
| 3341 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` |
| 3342 | // members is a list of all members after removing the member. |
| 3343 | Members []*Member `protobuf:"bytes,2,rep,name=members,proto3" json:"members,omitempty"` |
| 3344 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 3345 | XXX_unrecognized []byte `json:"-"` |
| 3346 | XXX_sizecache int32 `json:"-"` |
| 3347 | } |
| 3348 | |
| 3349 | func (m *MemberRemoveResponse) Reset() { *m = MemberRemoveResponse{} } |
| 3350 | func (m *MemberRemoveResponse) String() string { return proto.CompactTextString(m) } |
| 3351 | func (*MemberRemoveResponse) ProtoMessage() {} |
| 3352 | func (*MemberRemoveResponse) Descriptor() ([]byte, []int) { |
| 3353 | return fileDescriptor_77a6da22d6a3feb1, []int{43} |
| 3354 | } |
| 3355 | func (m *MemberRemoveResponse) XXX_Unmarshal(b []byte) error { |
| 3356 | return m.Unmarshal(b) |
| 3357 | } |
| 3358 | func (m *MemberRemoveResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 3359 | if deterministic { |
| 3360 | return xxx_messageInfo_MemberRemoveResponse.Marshal(b, m, deterministic) |
| 3361 | } else { |
| 3362 | b = b[:cap(b)] |
| 3363 | n, err := m.MarshalToSizedBuffer(b) |
| 3364 | if err != nil { |
| 3365 | return nil, err |
| 3366 | } |
| 3367 | return b[:n], nil |
| 3368 | } |
| 3369 | } |
| 3370 | func (m *MemberRemoveResponse) XXX_Merge(src proto.Message) { |
| 3371 | xxx_messageInfo_MemberRemoveResponse.Merge(m, src) |
| 3372 | } |
| 3373 | func (m *MemberRemoveResponse) XXX_Size() int { |
| 3374 | return m.Size() |
| 3375 | } |
| 3376 | func (m *MemberRemoveResponse) XXX_DiscardUnknown() { |
| 3377 | xxx_messageInfo_MemberRemoveResponse.DiscardUnknown(m) |
| 3378 | } |
| 3379 | |
| 3380 | var xxx_messageInfo_MemberRemoveResponse proto.InternalMessageInfo |
| 3381 | |
| 3382 | func (m *MemberRemoveResponse) GetHeader() *ResponseHeader { |
| 3383 | if m != nil { |
| 3384 | return m.Header |
| 3385 | } |
| 3386 | return nil |
| 3387 | } |
| 3388 | |
| 3389 | func (m *MemberRemoveResponse) GetMembers() []*Member { |
| 3390 | if m != nil { |
| 3391 | return m.Members |
| 3392 | } |
| 3393 | return nil |
| 3394 | } |
| 3395 | |
| 3396 | type MemberUpdateRequest struct { |
| 3397 | // ID is the member ID of the member to update. |
| 3398 | ID uint64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` |
| 3399 | // peerURLs is the new list of URLs the member will use to communicate with the cluster. |
| 3400 | PeerURLs []string `protobuf:"bytes,2,rep,name=peerURLs,proto3" json:"peerURLs,omitempty"` |
| 3401 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 3402 | XXX_unrecognized []byte `json:"-"` |
| 3403 | XXX_sizecache int32 `json:"-"` |
| 3404 | } |
| 3405 | |
| 3406 | func (m *MemberUpdateRequest) Reset() { *m = MemberUpdateRequest{} } |
| 3407 | func (m *MemberUpdateRequest) String() string { return proto.CompactTextString(m) } |
| 3408 | func (*MemberUpdateRequest) ProtoMessage() {} |
| 3409 | func (*MemberUpdateRequest) Descriptor() ([]byte, []int) { |
| 3410 | return fileDescriptor_77a6da22d6a3feb1, []int{44} |
| 3411 | } |
| 3412 | func (m *MemberUpdateRequest) XXX_Unmarshal(b []byte) error { |
| 3413 | return m.Unmarshal(b) |
| 3414 | } |
| 3415 | func (m *MemberUpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 3416 | if deterministic { |
| 3417 | return xxx_messageInfo_MemberUpdateRequest.Marshal(b, m, deterministic) |
| 3418 | } else { |
| 3419 | b = b[:cap(b)] |
| 3420 | n, err := m.MarshalToSizedBuffer(b) |
| 3421 | if err != nil { |
| 3422 | return nil, err |
| 3423 | } |
| 3424 | return b[:n], nil |
| 3425 | } |
| 3426 | } |
| 3427 | func (m *MemberUpdateRequest) XXX_Merge(src proto.Message) { |
| 3428 | xxx_messageInfo_MemberUpdateRequest.Merge(m, src) |
| 3429 | } |
| 3430 | func (m *MemberUpdateRequest) XXX_Size() int { |
| 3431 | return m.Size() |
| 3432 | } |
| 3433 | func (m *MemberUpdateRequest) XXX_DiscardUnknown() { |
| 3434 | xxx_messageInfo_MemberUpdateRequest.DiscardUnknown(m) |
| 3435 | } |
| 3436 | |
| 3437 | var xxx_messageInfo_MemberUpdateRequest proto.InternalMessageInfo |
| 3438 | |
| 3439 | func (m *MemberUpdateRequest) GetID() uint64 { |
| 3440 | if m != nil { |
| 3441 | return m.ID |
| 3442 | } |
| 3443 | return 0 |
| 3444 | } |
| 3445 | |
| 3446 | func (m *MemberUpdateRequest) GetPeerURLs() []string { |
| 3447 | if m != nil { |
| 3448 | return m.PeerURLs |
| 3449 | } |
| 3450 | return nil |
| 3451 | } |
| 3452 | |
| 3453 | type MemberUpdateResponse struct { |
| 3454 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` |
| 3455 | // members is a list of all members after updating the member. |
| 3456 | Members []*Member `protobuf:"bytes,2,rep,name=members,proto3" json:"members,omitempty"` |
| 3457 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 3458 | XXX_unrecognized []byte `json:"-"` |
| 3459 | XXX_sizecache int32 `json:"-"` |
| 3460 | } |
| 3461 | |
| 3462 | func (m *MemberUpdateResponse) Reset() { *m = MemberUpdateResponse{} } |
| 3463 | func (m *MemberUpdateResponse) String() string { return proto.CompactTextString(m) } |
| 3464 | func (*MemberUpdateResponse) ProtoMessage() {} |
| 3465 | func (*MemberUpdateResponse) Descriptor() ([]byte, []int) { |
| 3466 | return fileDescriptor_77a6da22d6a3feb1, []int{45} |
| 3467 | } |
| 3468 | func (m *MemberUpdateResponse) XXX_Unmarshal(b []byte) error { |
| 3469 | return m.Unmarshal(b) |
| 3470 | } |
| 3471 | func (m *MemberUpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 3472 | if deterministic { |
| 3473 | return xxx_messageInfo_MemberUpdateResponse.Marshal(b, m, deterministic) |
| 3474 | } else { |
| 3475 | b = b[:cap(b)] |
| 3476 | n, err := m.MarshalToSizedBuffer(b) |
| 3477 | if err != nil { |
| 3478 | return nil, err |
| 3479 | } |
| 3480 | return b[:n], nil |
| 3481 | } |
| 3482 | } |
| 3483 | func (m *MemberUpdateResponse) XXX_Merge(src proto.Message) { |
| 3484 | xxx_messageInfo_MemberUpdateResponse.Merge(m, src) |
| 3485 | } |
| 3486 | func (m *MemberUpdateResponse) XXX_Size() int { |
| 3487 | return m.Size() |
| 3488 | } |
| 3489 | func (m *MemberUpdateResponse) XXX_DiscardUnknown() { |
| 3490 | xxx_messageInfo_MemberUpdateResponse.DiscardUnknown(m) |
| 3491 | } |
| 3492 | |
| 3493 | var xxx_messageInfo_MemberUpdateResponse proto.InternalMessageInfo |
| 3494 | |
| 3495 | func (m *MemberUpdateResponse) GetHeader() *ResponseHeader { |
| 3496 | if m != nil { |
| 3497 | return m.Header |
| 3498 | } |
| 3499 | return nil |
| 3500 | } |
| 3501 | |
| 3502 | func (m *MemberUpdateResponse) GetMembers() []*Member { |
| 3503 | if m != nil { |
| 3504 | return m.Members |
| 3505 | } |
| 3506 | return nil |
| 3507 | } |
| 3508 | |
| 3509 | type MemberListRequest struct { |
| 3510 | Linearizable bool `protobuf:"varint,1,opt,name=linearizable,proto3" json:"linearizable,omitempty"` |
| 3511 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 3512 | XXX_unrecognized []byte `json:"-"` |
| 3513 | XXX_sizecache int32 `json:"-"` |
| 3514 | } |
| 3515 | |
| 3516 | func (m *MemberListRequest) Reset() { *m = MemberListRequest{} } |
| 3517 | func (m *MemberListRequest) String() string { return proto.CompactTextString(m) } |
| 3518 | func (*MemberListRequest) ProtoMessage() {} |
| 3519 | func (*MemberListRequest) Descriptor() ([]byte, []int) { |
| 3520 | return fileDescriptor_77a6da22d6a3feb1, []int{46} |
| 3521 | } |
| 3522 | func (m *MemberListRequest) XXX_Unmarshal(b []byte) error { |
| 3523 | return m.Unmarshal(b) |
| 3524 | } |
| 3525 | func (m *MemberListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 3526 | if deterministic { |
| 3527 | return xxx_messageInfo_MemberListRequest.Marshal(b, m, deterministic) |
| 3528 | } else { |
| 3529 | b = b[:cap(b)] |
| 3530 | n, err := m.MarshalToSizedBuffer(b) |
| 3531 | if err != nil { |
| 3532 | return nil, err |
| 3533 | } |
| 3534 | return b[:n], nil |
| 3535 | } |
| 3536 | } |
| 3537 | func (m *MemberListRequest) XXX_Merge(src proto.Message) { |
| 3538 | xxx_messageInfo_MemberListRequest.Merge(m, src) |
| 3539 | } |
| 3540 | func (m *MemberListRequest) XXX_Size() int { |
| 3541 | return m.Size() |
| 3542 | } |
| 3543 | func (m *MemberListRequest) XXX_DiscardUnknown() { |
| 3544 | xxx_messageInfo_MemberListRequest.DiscardUnknown(m) |
| 3545 | } |
| 3546 | |
| 3547 | var xxx_messageInfo_MemberListRequest proto.InternalMessageInfo |
| 3548 | |
| 3549 | func (m *MemberListRequest) GetLinearizable() bool { |
| 3550 | if m != nil { |
| 3551 | return m.Linearizable |
| 3552 | } |
| 3553 | return false |
| 3554 | } |
| 3555 | |
| 3556 | type MemberListResponse struct { |
| 3557 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` |
| 3558 | // members is a list of all members associated with the cluster. |
| 3559 | Members []*Member `protobuf:"bytes,2,rep,name=members,proto3" json:"members,omitempty"` |
| 3560 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 3561 | XXX_unrecognized []byte `json:"-"` |
| 3562 | XXX_sizecache int32 `json:"-"` |
| 3563 | } |
| 3564 | |
| 3565 | func (m *MemberListResponse) Reset() { *m = MemberListResponse{} } |
| 3566 | func (m *MemberListResponse) String() string { return proto.CompactTextString(m) } |
| 3567 | func (*MemberListResponse) ProtoMessage() {} |
| 3568 | func (*MemberListResponse) Descriptor() ([]byte, []int) { |
| 3569 | return fileDescriptor_77a6da22d6a3feb1, []int{47} |
| 3570 | } |
| 3571 | func (m *MemberListResponse) XXX_Unmarshal(b []byte) error { |
| 3572 | return m.Unmarshal(b) |
| 3573 | } |
| 3574 | func (m *MemberListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 3575 | if deterministic { |
| 3576 | return xxx_messageInfo_MemberListResponse.Marshal(b, m, deterministic) |
| 3577 | } else { |
| 3578 | b = b[:cap(b)] |
| 3579 | n, err := m.MarshalToSizedBuffer(b) |
| 3580 | if err != nil { |
| 3581 | return nil, err |
| 3582 | } |
| 3583 | return b[:n], nil |
| 3584 | } |
| 3585 | } |
| 3586 | func (m *MemberListResponse) XXX_Merge(src proto.Message) { |
| 3587 | xxx_messageInfo_MemberListResponse.Merge(m, src) |
| 3588 | } |
| 3589 | func (m *MemberListResponse) XXX_Size() int { |
| 3590 | return m.Size() |
| 3591 | } |
| 3592 | func (m *MemberListResponse) XXX_DiscardUnknown() { |
| 3593 | xxx_messageInfo_MemberListResponse.DiscardUnknown(m) |
| 3594 | } |
| 3595 | |
| 3596 | var xxx_messageInfo_MemberListResponse proto.InternalMessageInfo |
| 3597 | |
| 3598 | func (m *MemberListResponse) GetHeader() *ResponseHeader { |
| 3599 | if m != nil { |
| 3600 | return m.Header |
| 3601 | } |
| 3602 | return nil |
| 3603 | } |
| 3604 | |
| 3605 | func (m *MemberListResponse) GetMembers() []*Member { |
| 3606 | if m != nil { |
| 3607 | return m.Members |
| 3608 | } |
| 3609 | return nil |
| 3610 | } |
| 3611 | |
| 3612 | type MemberPromoteRequest struct { |
| 3613 | // ID is the member ID of the member to promote. |
| 3614 | ID uint64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` |
| 3615 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 3616 | XXX_unrecognized []byte `json:"-"` |
| 3617 | XXX_sizecache int32 `json:"-"` |
| 3618 | } |
| 3619 | |
| 3620 | func (m *MemberPromoteRequest) Reset() { *m = MemberPromoteRequest{} } |
| 3621 | func (m *MemberPromoteRequest) String() string { return proto.CompactTextString(m) } |
| 3622 | func (*MemberPromoteRequest) ProtoMessage() {} |
| 3623 | func (*MemberPromoteRequest) Descriptor() ([]byte, []int) { |
| 3624 | return fileDescriptor_77a6da22d6a3feb1, []int{48} |
| 3625 | } |
| 3626 | func (m *MemberPromoteRequest) XXX_Unmarshal(b []byte) error { |
| 3627 | return m.Unmarshal(b) |
| 3628 | } |
| 3629 | func (m *MemberPromoteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 3630 | if deterministic { |
| 3631 | return xxx_messageInfo_MemberPromoteRequest.Marshal(b, m, deterministic) |
| 3632 | } else { |
| 3633 | b = b[:cap(b)] |
| 3634 | n, err := m.MarshalToSizedBuffer(b) |
| 3635 | if err != nil { |
| 3636 | return nil, err |
| 3637 | } |
| 3638 | return b[:n], nil |
| 3639 | } |
| 3640 | } |
| 3641 | func (m *MemberPromoteRequest) XXX_Merge(src proto.Message) { |
| 3642 | xxx_messageInfo_MemberPromoteRequest.Merge(m, src) |
| 3643 | } |
| 3644 | func (m *MemberPromoteRequest) XXX_Size() int { |
| 3645 | return m.Size() |
| 3646 | } |
| 3647 | func (m *MemberPromoteRequest) XXX_DiscardUnknown() { |
| 3648 | xxx_messageInfo_MemberPromoteRequest.DiscardUnknown(m) |
| 3649 | } |
| 3650 | |
| 3651 | var xxx_messageInfo_MemberPromoteRequest proto.InternalMessageInfo |
| 3652 | |
| 3653 | func (m *MemberPromoteRequest) GetID() uint64 { |
| 3654 | if m != nil { |
| 3655 | return m.ID |
| 3656 | } |
| 3657 | return 0 |
| 3658 | } |
| 3659 | |
| 3660 | type MemberPromoteResponse struct { |
| 3661 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` |
| 3662 | // members is a list of all members after promoting the member. |
| 3663 | Members []*Member `protobuf:"bytes,2,rep,name=members,proto3" json:"members,omitempty"` |
| 3664 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 3665 | XXX_unrecognized []byte `json:"-"` |
| 3666 | XXX_sizecache int32 `json:"-"` |
| 3667 | } |
| 3668 | |
| 3669 | func (m *MemberPromoteResponse) Reset() { *m = MemberPromoteResponse{} } |
| 3670 | func (m *MemberPromoteResponse) String() string { return proto.CompactTextString(m) } |
| 3671 | func (*MemberPromoteResponse) ProtoMessage() {} |
| 3672 | func (*MemberPromoteResponse) Descriptor() ([]byte, []int) { |
| 3673 | return fileDescriptor_77a6da22d6a3feb1, []int{49} |
| 3674 | } |
| 3675 | func (m *MemberPromoteResponse) XXX_Unmarshal(b []byte) error { |
| 3676 | return m.Unmarshal(b) |
| 3677 | } |
| 3678 | func (m *MemberPromoteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 3679 | if deterministic { |
| 3680 | return xxx_messageInfo_MemberPromoteResponse.Marshal(b, m, deterministic) |
| 3681 | } else { |
| 3682 | b = b[:cap(b)] |
| 3683 | n, err := m.MarshalToSizedBuffer(b) |
| 3684 | if err != nil { |
| 3685 | return nil, err |
| 3686 | } |
| 3687 | return b[:n], nil |
| 3688 | } |
| 3689 | } |
| 3690 | func (m *MemberPromoteResponse) XXX_Merge(src proto.Message) { |
| 3691 | xxx_messageInfo_MemberPromoteResponse.Merge(m, src) |
| 3692 | } |
| 3693 | func (m *MemberPromoteResponse) XXX_Size() int { |
| 3694 | return m.Size() |
| 3695 | } |
| 3696 | func (m *MemberPromoteResponse) XXX_DiscardUnknown() { |
| 3697 | xxx_messageInfo_MemberPromoteResponse.DiscardUnknown(m) |
| 3698 | } |
| 3699 | |
| 3700 | var xxx_messageInfo_MemberPromoteResponse proto.InternalMessageInfo |
| 3701 | |
| 3702 | func (m *MemberPromoteResponse) GetHeader() *ResponseHeader { |
| 3703 | if m != nil { |
| 3704 | return m.Header |
| 3705 | } |
| 3706 | return nil |
| 3707 | } |
| 3708 | |
| 3709 | func (m *MemberPromoteResponse) GetMembers() []*Member { |
| 3710 | if m != nil { |
| 3711 | return m.Members |
| 3712 | } |
| 3713 | return nil |
| 3714 | } |
| 3715 | |
| 3716 | type DefragmentRequest struct { |
| 3717 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 3718 | XXX_unrecognized []byte `json:"-"` |
| 3719 | XXX_sizecache int32 `json:"-"` |
| 3720 | } |
| 3721 | |
| 3722 | func (m *DefragmentRequest) Reset() { *m = DefragmentRequest{} } |
| 3723 | func (m *DefragmentRequest) String() string { return proto.CompactTextString(m) } |
| 3724 | func (*DefragmentRequest) ProtoMessage() {} |
| 3725 | func (*DefragmentRequest) Descriptor() ([]byte, []int) { |
| 3726 | return fileDescriptor_77a6da22d6a3feb1, []int{50} |
| 3727 | } |
| 3728 | func (m *DefragmentRequest) XXX_Unmarshal(b []byte) error { |
| 3729 | return m.Unmarshal(b) |
| 3730 | } |
| 3731 | func (m *DefragmentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 3732 | if deterministic { |
| 3733 | return xxx_messageInfo_DefragmentRequest.Marshal(b, m, deterministic) |
| 3734 | } else { |
| 3735 | b = b[:cap(b)] |
| 3736 | n, err := m.MarshalToSizedBuffer(b) |
| 3737 | if err != nil { |
| 3738 | return nil, err |
| 3739 | } |
| 3740 | return b[:n], nil |
| 3741 | } |
| 3742 | } |
| 3743 | func (m *DefragmentRequest) XXX_Merge(src proto.Message) { |
| 3744 | xxx_messageInfo_DefragmentRequest.Merge(m, src) |
| 3745 | } |
| 3746 | func (m *DefragmentRequest) XXX_Size() int { |
| 3747 | return m.Size() |
| 3748 | } |
| 3749 | func (m *DefragmentRequest) XXX_DiscardUnknown() { |
| 3750 | xxx_messageInfo_DefragmentRequest.DiscardUnknown(m) |
| 3751 | } |
| 3752 | |
| 3753 | var xxx_messageInfo_DefragmentRequest proto.InternalMessageInfo |
| 3754 | |
| 3755 | type DefragmentResponse struct { |
| 3756 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` |
| 3757 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 3758 | XXX_unrecognized []byte `json:"-"` |
| 3759 | XXX_sizecache int32 `json:"-"` |
| 3760 | } |
| 3761 | |
| 3762 | func (m *DefragmentResponse) Reset() { *m = DefragmentResponse{} } |
| 3763 | func (m *DefragmentResponse) String() string { return proto.CompactTextString(m) } |
| 3764 | func (*DefragmentResponse) ProtoMessage() {} |
| 3765 | func (*DefragmentResponse) Descriptor() ([]byte, []int) { |
| 3766 | return fileDescriptor_77a6da22d6a3feb1, []int{51} |
| 3767 | } |
| 3768 | func (m *DefragmentResponse) XXX_Unmarshal(b []byte) error { |
| 3769 | return m.Unmarshal(b) |
| 3770 | } |
| 3771 | func (m *DefragmentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 3772 | if deterministic { |
| 3773 | return xxx_messageInfo_DefragmentResponse.Marshal(b, m, deterministic) |
| 3774 | } else { |
| 3775 | b = b[:cap(b)] |
| 3776 | n, err := m.MarshalToSizedBuffer(b) |
| 3777 | if err != nil { |
| 3778 | return nil, err |
| 3779 | } |
| 3780 | return b[:n], nil |
| 3781 | } |
| 3782 | } |
| 3783 | func (m *DefragmentResponse) XXX_Merge(src proto.Message) { |
| 3784 | xxx_messageInfo_DefragmentResponse.Merge(m, src) |
| 3785 | } |
| 3786 | func (m *DefragmentResponse) XXX_Size() int { |
| 3787 | return m.Size() |
| 3788 | } |
| 3789 | func (m *DefragmentResponse) XXX_DiscardUnknown() { |
| 3790 | xxx_messageInfo_DefragmentResponse.DiscardUnknown(m) |
| 3791 | } |
| 3792 | |
| 3793 | var xxx_messageInfo_DefragmentResponse proto.InternalMessageInfo |
| 3794 | |
| 3795 | func (m *DefragmentResponse) GetHeader() *ResponseHeader { |
| 3796 | if m != nil { |
| 3797 | return m.Header |
| 3798 | } |
| 3799 | return nil |
| 3800 | } |
| 3801 | |
| 3802 | type MoveLeaderRequest struct { |
| 3803 | // targetID is the node ID for the new leader. |
| 3804 | TargetID uint64 `protobuf:"varint,1,opt,name=targetID,proto3" json:"targetID,omitempty"` |
| 3805 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 3806 | XXX_unrecognized []byte `json:"-"` |
| 3807 | XXX_sizecache int32 `json:"-"` |
| 3808 | } |
| 3809 | |
| 3810 | func (m *MoveLeaderRequest) Reset() { *m = MoveLeaderRequest{} } |
| 3811 | func (m *MoveLeaderRequest) String() string { return proto.CompactTextString(m) } |
| 3812 | func (*MoveLeaderRequest) ProtoMessage() {} |
| 3813 | func (*MoveLeaderRequest) Descriptor() ([]byte, []int) { |
| 3814 | return fileDescriptor_77a6da22d6a3feb1, []int{52} |
| 3815 | } |
| 3816 | func (m *MoveLeaderRequest) XXX_Unmarshal(b []byte) error { |
| 3817 | return m.Unmarshal(b) |
| 3818 | } |
| 3819 | func (m *MoveLeaderRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 3820 | if deterministic { |
| 3821 | return xxx_messageInfo_MoveLeaderRequest.Marshal(b, m, deterministic) |
| 3822 | } else { |
| 3823 | b = b[:cap(b)] |
| 3824 | n, err := m.MarshalToSizedBuffer(b) |
| 3825 | if err != nil { |
| 3826 | return nil, err |
| 3827 | } |
| 3828 | return b[:n], nil |
| 3829 | } |
| 3830 | } |
| 3831 | func (m *MoveLeaderRequest) XXX_Merge(src proto.Message) { |
| 3832 | xxx_messageInfo_MoveLeaderRequest.Merge(m, src) |
| 3833 | } |
| 3834 | func (m *MoveLeaderRequest) XXX_Size() int { |
| 3835 | return m.Size() |
| 3836 | } |
| 3837 | func (m *MoveLeaderRequest) XXX_DiscardUnknown() { |
| 3838 | xxx_messageInfo_MoveLeaderRequest.DiscardUnknown(m) |
| 3839 | } |
| 3840 | |
| 3841 | var xxx_messageInfo_MoveLeaderRequest proto.InternalMessageInfo |
| 3842 | |
| 3843 | func (m *MoveLeaderRequest) GetTargetID() uint64 { |
| 3844 | if m != nil { |
| 3845 | return m.TargetID |
| 3846 | } |
| 3847 | return 0 |
| 3848 | } |
| 3849 | |
| 3850 | type MoveLeaderResponse struct { |
| 3851 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` |
| 3852 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 3853 | XXX_unrecognized []byte `json:"-"` |
| 3854 | XXX_sizecache int32 `json:"-"` |
| 3855 | } |
| 3856 | |
| 3857 | func (m *MoveLeaderResponse) Reset() { *m = MoveLeaderResponse{} } |
| 3858 | func (m *MoveLeaderResponse) String() string { return proto.CompactTextString(m) } |
| 3859 | func (*MoveLeaderResponse) ProtoMessage() {} |
| 3860 | func (*MoveLeaderResponse) Descriptor() ([]byte, []int) { |
| 3861 | return fileDescriptor_77a6da22d6a3feb1, []int{53} |
| 3862 | } |
| 3863 | func (m *MoveLeaderResponse) XXX_Unmarshal(b []byte) error { |
| 3864 | return m.Unmarshal(b) |
| 3865 | } |
| 3866 | func (m *MoveLeaderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 3867 | if deterministic { |
| 3868 | return xxx_messageInfo_MoveLeaderResponse.Marshal(b, m, deterministic) |
| 3869 | } else { |
| 3870 | b = b[:cap(b)] |
| 3871 | n, err := m.MarshalToSizedBuffer(b) |
| 3872 | if err != nil { |
| 3873 | return nil, err |
| 3874 | } |
| 3875 | return b[:n], nil |
| 3876 | } |
| 3877 | } |
| 3878 | func (m *MoveLeaderResponse) XXX_Merge(src proto.Message) { |
| 3879 | xxx_messageInfo_MoveLeaderResponse.Merge(m, src) |
| 3880 | } |
| 3881 | func (m *MoveLeaderResponse) XXX_Size() int { |
| 3882 | return m.Size() |
| 3883 | } |
| 3884 | func (m *MoveLeaderResponse) XXX_DiscardUnknown() { |
| 3885 | xxx_messageInfo_MoveLeaderResponse.DiscardUnknown(m) |
| 3886 | } |
| 3887 | |
| 3888 | var xxx_messageInfo_MoveLeaderResponse proto.InternalMessageInfo |
| 3889 | |
| 3890 | func (m *MoveLeaderResponse) GetHeader() *ResponseHeader { |
| 3891 | if m != nil { |
| 3892 | return m.Header |
| 3893 | } |
| 3894 | return nil |
| 3895 | } |
| 3896 | |
| 3897 | type AlarmRequest struct { |
| 3898 | // action is the kind of alarm request to issue. The action |
| 3899 | // may GET alarm statuses, ACTIVATE an alarm, or DEACTIVATE a |
| 3900 | // raised alarm. |
| 3901 | Action AlarmRequest_AlarmAction `protobuf:"varint,1,opt,name=action,proto3,enum=etcdserverpb.AlarmRequest_AlarmAction" json:"action,omitempty"` |
| 3902 | // memberID is the ID of the member associated with the alarm. If memberID is 0, the |
| 3903 | // alarm request covers all members. |
| 3904 | MemberID uint64 `protobuf:"varint,2,opt,name=memberID,proto3" json:"memberID,omitempty"` |
| 3905 | // alarm is the type of alarm to consider for this request. |
| 3906 | Alarm AlarmType `protobuf:"varint,3,opt,name=alarm,proto3,enum=etcdserverpb.AlarmType" json:"alarm,omitempty"` |
| 3907 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 3908 | XXX_unrecognized []byte `json:"-"` |
| 3909 | XXX_sizecache int32 `json:"-"` |
| 3910 | } |
| 3911 | |
| 3912 | func (m *AlarmRequest) Reset() { *m = AlarmRequest{} } |
| 3913 | func (m *AlarmRequest) String() string { return proto.CompactTextString(m) } |
| 3914 | func (*AlarmRequest) ProtoMessage() {} |
| 3915 | func (*AlarmRequest) Descriptor() ([]byte, []int) { |
| 3916 | return fileDescriptor_77a6da22d6a3feb1, []int{54} |
| 3917 | } |
| 3918 | func (m *AlarmRequest) XXX_Unmarshal(b []byte) error { |
| 3919 | return m.Unmarshal(b) |
| 3920 | } |
| 3921 | func (m *AlarmRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 3922 | if deterministic { |
| 3923 | return xxx_messageInfo_AlarmRequest.Marshal(b, m, deterministic) |
| 3924 | } else { |
| 3925 | b = b[:cap(b)] |
| 3926 | n, err := m.MarshalToSizedBuffer(b) |
| 3927 | if err != nil { |
| 3928 | return nil, err |
| 3929 | } |
| 3930 | return b[:n], nil |
| 3931 | } |
| 3932 | } |
| 3933 | func (m *AlarmRequest) XXX_Merge(src proto.Message) { |
| 3934 | xxx_messageInfo_AlarmRequest.Merge(m, src) |
| 3935 | } |
| 3936 | func (m *AlarmRequest) XXX_Size() int { |
| 3937 | return m.Size() |
| 3938 | } |
| 3939 | func (m *AlarmRequest) XXX_DiscardUnknown() { |
| 3940 | xxx_messageInfo_AlarmRequest.DiscardUnknown(m) |
| 3941 | } |
| 3942 | |
| 3943 | var xxx_messageInfo_AlarmRequest proto.InternalMessageInfo |
| 3944 | |
| 3945 | func (m *AlarmRequest) GetAction() AlarmRequest_AlarmAction { |
| 3946 | if m != nil { |
| 3947 | return m.Action |
| 3948 | } |
| 3949 | return AlarmRequest_GET |
| 3950 | } |
| 3951 | |
| 3952 | func (m *AlarmRequest) GetMemberID() uint64 { |
| 3953 | if m != nil { |
| 3954 | return m.MemberID |
| 3955 | } |
| 3956 | return 0 |
| 3957 | } |
| 3958 | |
| 3959 | func (m *AlarmRequest) GetAlarm() AlarmType { |
| 3960 | if m != nil { |
| 3961 | return m.Alarm |
| 3962 | } |
| 3963 | return AlarmType_NONE |
| 3964 | } |
| 3965 | |
| 3966 | type AlarmMember struct { |
| 3967 | // memberID is the ID of the member associated with the raised alarm. |
| 3968 | MemberID uint64 `protobuf:"varint,1,opt,name=memberID,proto3" json:"memberID,omitempty"` |
| 3969 | // alarm is the type of alarm which has been raised. |
| 3970 | Alarm AlarmType `protobuf:"varint,2,opt,name=alarm,proto3,enum=etcdserverpb.AlarmType" json:"alarm,omitempty"` |
| 3971 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 3972 | XXX_unrecognized []byte `json:"-"` |
| 3973 | XXX_sizecache int32 `json:"-"` |
| 3974 | } |
| 3975 | |
| 3976 | func (m *AlarmMember) Reset() { *m = AlarmMember{} } |
| 3977 | func (m *AlarmMember) String() string { return proto.CompactTextString(m) } |
| 3978 | func (*AlarmMember) ProtoMessage() {} |
| 3979 | func (*AlarmMember) Descriptor() ([]byte, []int) { |
| 3980 | return fileDescriptor_77a6da22d6a3feb1, []int{55} |
| 3981 | } |
| 3982 | func (m *AlarmMember) XXX_Unmarshal(b []byte) error { |
| 3983 | return m.Unmarshal(b) |
| 3984 | } |
| 3985 | func (m *AlarmMember) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 3986 | if deterministic { |
| 3987 | return xxx_messageInfo_AlarmMember.Marshal(b, m, deterministic) |
| 3988 | } else { |
| 3989 | b = b[:cap(b)] |
| 3990 | n, err := m.MarshalToSizedBuffer(b) |
| 3991 | if err != nil { |
| 3992 | return nil, err |
| 3993 | } |
| 3994 | return b[:n], nil |
| 3995 | } |
| 3996 | } |
| 3997 | func (m *AlarmMember) XXX_Merge(src proto.Message) { |
| 3998 | xxx_messageInfo_AlarmMember.Merge(m, src) |
| 3999 | } |
| 4000 | func (m *AlarmMember) XXX_Size() int { |
| 4001 | return m.Size() |
| 4002 | } |
| 4003 | func (m *AlarmMember) XXX_DiscardUnknown() { |
| 4004 | xxx_messageInfo_AlarmMember.DiscardUnknown(m) |
| 4005 | } |
| 4006 | |
| 4007 | var xxx_messageInfo_AlarmMember proto.InternalMessageInfo |
| 4008 | |
| 4009 | func (m *AlarmMember) GetMemberID() uint64 { |
| 4010 | if m != nil { |
| 4011 | return m.MemberID |
| 4012 | } |
| 4013 | return 0 |
| 4014 | } |
| 4015 | |
| 4016 | func (m *AlarmMember) GetAlarm() AlarmType { |
| 4017 | if m != nil { |
| 4018 | return m.Alarm |
| 4019 | } |
| 4020 | return AlarmType_NONE |
| 4021 | } |
| 4022 | |
| 4023 | type AlarmResponse struct { |
| 4024 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` |
| 4025 | // alarms is a list of alarms associated with the alarm request. |
| 4026 | Alarms []*AlarmMember `protobuf:"bytes,2,rep,name=alarms,proto3" json:"alarms,omitempty"` |
| 4027 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 4028 | XXX_unrecognized []byte `json:"-"` |
| 4029 | XXX_sizecache int32 `json:"-"` |
| 4030 | } |
| 4031 | |
| 4032 | func (m *AlarmResponse) Reset() { *m = AlarmResponse{} } |
| 4033 | func (m *AlarmResponse) String() string { return proto.CompactTextString(m) } |
| 4034 | func (*AlarmResponse) ProtoMessage() {} |
| 4035 | func (*AlarmResponse) Descriptor() ([]byte, []int) { |
| 4036 | return fileDescriptor_77a6da22d6a3feb1, []int{56} |
| 4037 | } |
| 4038 | func (m *AlarmResponse) XXX_Unmarshal(b []byte) error { |
| 4039 | return m.Unmarshal(b) |
| 4040 | } |
| 4041 | func (m *AlarmResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 4042 | if deterministic { |
| 4043 | return xxx_messageInfo_AlarmResponse.Marshal(b, m, deterministic) |
| 4044 | } else { |
| 4045 | b = b[:cap(b)] |
| 4046 | n, err := m.MarshalToSizedBuffer(b) |
| 4047 | if err != nil { |
| 4048 | return nil, err |
| 4049 | } |
| 4050 | return b[:n], nil |
| 4051 | } |
| 4052 | } |
| 4053 | func (m *AlarmResponse) XXX_Merge(src proto.Message) { |
| 4054 | xxx_messageInfo_AlarmResponse.Merge(m, src) |
| 4055 | } |
| 4056 | func (m *AlarmResponse) XXX_Size() int { |
| 4057 | return m.Size() |
| 4058 | } |
| 4059 | func (m *AlarmResponse) XXX_DiscardUnknown() { |
| 4060 | xxx_messageInfo_AlarmResponse.DiscardUnknown(m) |
| 4061 | } |
| 4062 | |
| 4063 | var xxx_messageInfo_AlarmResponse proto.InternalMessageInfo |
| 4064 | |
| 4065 | func (m *AlarmResponse) GetHeader() *ResponseHeader { |
| 4066 | if m != nil { |
| 4067 | return m.Header |
| 4068 | } |
| 4069 | return nil |
| 4070 | } |
| 4071 | |
| 4072 | func (m *AlarmResponse) GetAlarms() []*AlarmMember { |
| 4073 | if m != nil { |
| 4074 | return m.Alarms |
| 4075 | } |
| 4076 | return nil |
| 4077 | } |
| 4078 | |
| 4079 | type DowngradeRequest struct { |
| 4080 | // action is the kind of downgrade request to issue. The action may |
| 4081 | // VALIDATE the target version, DOWNGRADE the cluster version, |
| 4082 | // or CANCEL the current downgrading job. |
| 4083 | Action DowngradeRequest_DowngradeAction `protobuf:"varint,1,opt,name=action,proto3,enum=etcdserverpb.DowngradeRequest_DowngradeAction" json:"action,omitempty"` |
| 4084 | // version is the target version to downgrade. |
| 4085 | Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` |
| 4086 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 4087 | XXX_unrecognized []byte `json:"-"` |
| 4088 | XXX_sizecache int32 `json:"-"` |
| 4089 | } |
| 4090 | |
| 4091 | func (m *DowngradeRequest) Reset() { *m = DowngradeRequest{} } |
| 4092 | func (m *DowngradeRequest) String() string { return proto.CompactTextString(m) } |
| 4093 | func (*DowngradeRequest) ProtoMessage() {} |
| 4094 | func (*DowngradeRequest) Descriptor() ([]byte, []int) { |
| 4095 | return fileDescriptor_77a6da22d6a3feb1, []int{57} |
| 4096 | } |
| 4097 | func (m *DowngradeRequest) XXX_Unmarshal(b []byte) error { |
| 4098 | return m.Unmarshal(b) |
| 4099 | } |
| 4100 | func (m *DowngradeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 4101 | if deterministic { |
| 4102 | return xxx_messageInfo_DowngradeRequest.Marshal(b, m, deterministic) |
| 4103 | } else { |
| 4104 | b = b[:cap(b)] |
| 4105 | n, err := m.MarshalToSizedBuffer(b) |
| 4106 | if err != nil { |
| 4107 | return nil, err |
| 4108 | } |
| 4109 | return b[:n], nil |
| 4110 | } |
| 4111 | } |
| 4112 | func (m *DowngradeRequest) XXX_Merge(src proto.Message) { |
| 4113 | xxx_messageInfo_DowngradeRequest.Merge(m, src) |
| 4114 | } |
| 4115 | func (m *DowngradeRequest) XXX_Size() int { |
| 4116 | return m.Size() |
| 4117 | } |
| 4118 | func (m *DowngradeRequest) XXX_DiscardUnknown() { |
| 4119 | xxx_messageInfo_DowngradeRequest.DiscardUnknown(m) |
| 4120 | } |
| 4121 | |
| 4122 | var xxx_messageInfo_DowngradeRequest proto.InternalMessageInfo |
| 4123 | |
| 4124 | func (m *DowngradeRequest) GetAction() DowngradeRequest_DowngradeAction { |
| 4125 | if m != nil { |
| 4126 | return m.Action |
| 4127 | } |
| 4128 | return DowngradeRequest_VALIDATE |
| 4129 | } |
| 4130 | |
| 4131 | func (m *DowngradeRequest) GetVersion() string { |
| 4132 | if m != nil { |
| 4133 | return m.Version |
| 4134 | } |
| 4135 | return "" |
| 4136 | } |
| 4137 | |
| 4138 | type DowngradeResponse struct { |
| 4139 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` |
| 4140 | // version is the current cluster version. |
| 4141 | Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` |
| 4142 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 4143 | XXX_unrecognized []byte `json:"-"` |
| 4144 | XXX_sizecache int32 `json:"-"` |
| 4145 | } |
| 4146 | |
| 4147 | func (m *DowngradeResponse) Reset() { *m = DowngradeResponse{} } |
| 4148 | func (m *DowngradeResponse) String() string { return proto.CompactTextString(m) } |
| 4149 | func (*DowngradeResponse) ProtoMessage() {} |
| 4150 | func (*DowngradeResponse) Descriptor() ([]byte, []int) { |
| 4151 | return fileDescriptor_77a6da22d6a3feb1, []int{58} |
| 4152 | } |
| 4153 | func (m *DowngradeResponse) XXX_Unmarshal(b []byte) error { |
| 4154 | return m.Unmarshal(b) |
| 4155 | } |
| 4156 | func (m *DowngradeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 4157 | if deterministic { |
| 4158 | return xxx_messageInfo_DowngradeResponse.Marshal(b, m, deterministic) |
| 4159 | } else { |
| 4160 | b = b[:cap(b)] |
| 4161 | n, err := m.MarshalToSizedBuffer(b) |
| 4162 | if err != nil { |
| 4163 | return nil, err |
| 4164 | } |
| 4165 | return b[:n], nil |
| 4166 | } |
| 4167 | } |
| 4168 | func (m *DowngradeResponse) XXX_Merge(src proto.Message) { |
| 4169 | xxx_messageInfo_DowngradeResponse.Merge(m, src) |
| 4170 | } |
| 4171 | func (m *DowngradeResponse) XXX_Size() int { |
| 4172 | return m.Size() |
| 4173 | } |
| 4174 | func (m *DowngradeResponse) XXX_DiscardUnknown() { |
| 4175 | xxx_messageInfo_DowngradeResponse.DiscardUnknown(m) |
| 4176 | } |
| 4177 | |
| 4178 | var xxx_messageInfo_DowngradeResponse proto.InternalMessageInfo |
| 4179 | |
| 4180 | func (m *DowngradeResponse) GetHeader() *ResponseHeader { |
| 4181 | if m != nil { |
| 4182 | return m.Header |
| 4183 | } |
| 4184 | return nil |
| 4185 | } |
| 4186 | |
| 4187 | func (m *DowngradeResponse) GetVersion() string { |
| 4188 | if m != nil { |
| 4189 | return m.Version |
| 4190 | } |
| 4191 | return "" |
| 4192 | } |
| 4193 | |
| 4194 | // DowngradeVersionTestRequest is used for test only. The version in |
| 4195 | // this request will be read as the WAL record version.If the downgrade |
| 4196 | // target version is less than this version, then the downgrade(online) |
| 4197 | // or migration(offline) isn't safe, so shouldn't be allowed. |
| 4198 | type DowngradeVersionTestRequest struct { |
| 4199 | Ver string `protobuf:"bytes,1,opt,name=ver,proto3" json:"ver,omitempty"` |
| 4200 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 4201 | XXX_unrecognized []byte `json:"-"` |
| 4202 | XXX_sizecache int32 `json:"-"` |
| 4203 | } |
| 4204 | |
| 4205 | func (m *DowngradeVersionTestRequest) Reset() { *m = DowngradeVersionTestRequest{} } |
| 4206 | func (m *DowngradeVersionTestRequest) String() string { return proto.CompactTextString(m) } |
| 4207 | func (*DowngradeVersionTestRequest) ProtoMessage() {} |
| 4208 | func (*DowngradeVersionTestRequest) Descriptor() ([]byte, []int) { |
| 4209 | return fileDescriptor_77a6da22d6a3feb1, []int{59} |
| 4210 | } |
| 4211 | func (m *DowngradeVersionTestRequest) XXX_Unmarshal(b []byte) error { |
| 4212 | return m.Unmarshal(b) |
| 4213 | } |
| 4214 | func (m *DowngradeVersionTestRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 4215 | if deterministic { |
| 4216 | return xxx_messageInfo_DowngradeVersionTestRequest.Marshal(b, m, deterministic) |
| 4217 | } else { |
| 4218 | b = b[:cap(b)] |
| 4219 | n, err := m.MarshalToSizedBuffer(b) |
| 4220 | if err != nil { |
| 4221 | return nil, err |
| 4222 | } |
| 4223 | return b[:n], nil |
| 4224 | } |
| 4225 | } |
| 4226 | func (m *DowngradeVersionTestRequest) XXX_Merge(src proto.Message) { |
| 4227 | xxx_messageInfo_DowngradeVersionTestRequest.Merge(m, src) |
| 4228 | } |
| 4229 | func (m *DowngradeVersionTestRequest) XXX_Size() int { |
| 4230 | return m.Size() |
| 4231 | } |
| 4232 | func (m *DowngradeVersionTestRequest) XXX_DiscardUnknown() { |
| 4233 | xxx_messageInfo_DowngradeVersionTestRequest.DiscardUnknown(m) |
| 4234 | } |
| 4235 | |
| 4236 | var xxx_messageInfo_DowngradeVersionTestRequest proto.InternalMessageInfo |
| 4237 | |
| 4238 | func (m *DowngradeVersionTestRequest) GetVer() string { |
| 4239 | if m != nil { |
| 4240 | return m.Ver |
| 4241 | } |
| 4242 | return "" |
| 4243 | } |
| 4244 | |
| 4245 | type StatusRequest struct { |
| 4246 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 4247 | XXX_unrecognized []byte `json:"-"` |
| 4248 | XXX_sizecache int32 `json:"-"` |
| 4249 | } |
| 4250 | |
| 4251 | func (m *StatusRequest) Reset() { *m = StatusRequest{} } |
| 4252 | func (m *StatusRequest) String() string { return proto.CompactTextString(m) } |
| 4253 | func (*StatusRequest) ProtoMessage() {} |
| 4254 | func (*StatusRequest) Descriptor() ([]byte, []int) { |
| 4255 | return fileDescriptor_77a6da22d6a3feb1, []int{60} |
| 4256 | } |
| 4257 | func (m *StatusRequest) XXX_Unmarshal(b []byte) error { |
| 4258 | return m.Unmarshal(b) |
| 4259 | } |
| 4260 | func (m *StatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 4261 | if deterministic { |
| 4262 | return xxx_messageInfo_StatusRequest.Marshal(b, m, deterministic) |
| 4263 | } else { |
| 4264 | b = b[:cap(b)] |
| 4265 | n, err := m.MarshalToSizedBuffer(b) |
| 4266 | if err != nil { |
| 4267 | return nil, err |
| 4268 | } |
| 4269 | return b[:n], nil |
| 4270 | } |
| 4271 | } |
| 4272 | func (m *StatusRequest) XXX_Merge(src proto.Message) { |
| 4273 | xxx_messageInfo_StatusRequest.Merge(m, src) |
| 4274 | } |
| 4275 | func (m *StatusRequest) XXX_Size() int { |
| 4276 | return m.Size() |
| 4277 | } |
| 4278 | func (m *StatusRequest) XXX_DiscardUnknown() { |
| 4279 | xxx_messageInfo_StatusRequest.DiscardUnknown(m) |
| 4280 | } |
| 4281 | |
| 4282 | var xxx_messageInfo_StatusRequest proto.InternalMessageInfo |
| 4283 | |
| 4284 | type StatusResponse struct { |
| 4285 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` |
| 4286 | // version is the cluster protocol version used by the responding member. |
| 4287 | Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` |
| 4288 | // dbSize is the size of the backend database physically allocated, in bytes, of the responding member. |
| 4289 | DbSize int64 `protobuf:"varint,3,opt,name=dbSize,proto3" json:"dbSize,omitempty"` |
| 4290 | // leader is the member ID which the responding member believes is the current leader. |
| 4291 | Leader uint64 `protobuf:"varint,4,opt,name=leader,proto3" json:"leader,omitempty"` |
| 4292 | // raftIndex is the current raft committed index of the responding member. |
| 4293 | RaftIndex uint64 `protobuf:"varint,5,opt,name=raftIndex,proto3" json:"raftIndex,omitempty"` |
| 4294 | // raftTerm is the current raft term of the responding member. |
| 4295 | RaftTerm uint64 `protobuf:"varint,6,opt,name=raftTerm,proto3" json:"raftTerm,omitempty"` |
| 4296 | // raftAppliedIndex is the current raft applied index of the responding member. |
| 4297 | RaftAppliedIndex uint64 `protobuf:"varint,7,opt,name=raftAppliedIndex,proto3" json:"raftAppliedIndex,omitempty"` |
| 4298 | // errors contains alarm/health information and status. |
| 4299 | Errors []string `protobuf:"bytes,8,rep,name=errors,proto3" json:"errors,omitempty"` |
| 4300 | // dbSizeInUse is the size of the backend database logically in use, in bytes, of the responding member. |
| 4301 | DbSizeInUse int64 `protobuf:"varint,9,opt,name=dbSizeInUse,proto3" json:"dbSizeInUse,omitempty"` |
| 4302 | // isLearner indicates if the member is raft learner. |
| 4303 | IsLearner bool `protobuf:"varint,10,opt,name=isLearner,proto3" json:"isLearner,omitempty"` |
| 4304 | // storageVersion is the version of the db file. It might be updated with delay in relationship to the target cluster version. |
| 4305 | StorageVersion string `protobuf:"bytes,11,opt,name=storageVersion,proto3" json:"storageVersion,omitempty"` |
| 4306 | // dbSizeQuota is the configured etcd storage quota in bytes (the value passed to etcd instance by flag --quota-backend-bytes) |
| 4307 | DbSizeQuota int64 `protobuf:"varint,12,opt,name=dbSizeQuota,proto3" json:"dbSizeQuota,omitempty"` |
| 4308 | // downgradeInfo indicates if there is downgrade process. |
| 4309 | DowngradeInfo *DowngradeInfo `protobuf:"bytes,13,opt,name=downgradeInfo,proto3" json:"downgradeInfo,omitempty"` |
| 4310 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 4311 | XXX_unrecognized []byte `json:"-"` |
| 4312 | XXX_sizecache int32 `json:"-"` |
| 4313 | } |
| 4314 | |
| 4315 | func (m *StatusResponse) Reset() { *m = StatusResponse{} } |
| 4316 | func (m *StatusResponse) String() string { return proto.CompactTextString(m) } |
| 4317 | func (*StatusResponse) ProtoMessage() {} |
| 4318 | func (*StatusResponse) Descriptor() ([]byte, []int) { |
| 4319 | return fileDescriptor_77a6da22d6a3feb1, []int{61} |
| 4320 | } |
| 4321 | func (m *StatusResponse) XXX_Unmarshal(b []byte) error { |
| 4322 | return m.Unmarshal(b) |
| 4323 | } |
| 4324 | func (m *StatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 4325 | if deterministic { |
| 4326 | return xxx_messageInfo_StatusResponse.Marshal(b, m, deterministic) |
| 4327 | } else { |
| 4328 | b = b[:cap(b)] |
| 4329 | n, err := m.MarshalToSizedBuffer(b) |
| 4330 | if err != nil { |
| 4331 | return nil, err |
| 4332 | } |
| 4333 | return b[:n], nil |
| 4334 | } |
| 4335 | } |
| 4336 | func (m *StatusResponse) XXX_Merge(src proto.Message) { |
| 4337 | xxx_messageInfo_StatusResponse.Merge(m, src) |
| 4338 | } |
| 4339 | func (m *StatusResponse) XXX_Size() int { |
| 4340 | return m.Size() |
| 4341 | } |
| 4342 | func (m *StatusResponse) XXX_DiscardUnknown() { |
| 4343 | xxx_messageInfo_StatusResponse.DiscardUnknown(m) |
| 4344 | } |
| 4345 | |
| 4346 | var xxx_messageInfo_StatusResponse proto.InternalMessageInfo |
| 4347 | |
| 4348 | func (m *StatusResponse) GetHeader() *ResponseHeader { |
| 4349 | if m != nil { |
| 4350 | return m.Header |
| 4351 | } |
| 4352 | return nil |
| 4353 | } |
| 4354 | |
| 4355 | func (m *StatusResponse) GetVersion() string { |
| 4356 | if m != nil { |
| 4357 | return m.Version |
| 4358 | } |
| 4359 | return "" |
| 4360 | } |
| 4361 | |
| 4362 | func (m *StatusResponse) GetDbSize() int64 { |
| 4363 | if m != nil { |
| 4364 | return m.DbSize |
| 4365 | } |
| 4366 | return 0 |
| 4367 | } |
| 4368 | |
| 4369 | func (m *StatusResponse) GetLeader() uint64 { |
| 4370 | if m != nil { |
| 4371 | return m.Leader |
| 4372 | } |
| 4373 | return 0 |
| 4374 | } |
| 4375 | |
| 4376 | func (m *StatusResponse) GetRaftIndex() uint64 { |
| 4377 | if m != nil { |
| 4378 | return m.RaftIndex |
| 4379 | } |
| 4380 | return 0 |
| 4381 | } |
| 4382 | |
| 4383 | func (m *StatusResponse) GetRaftTerm() uint64 { |
| 4384 | if m != nil { |
| 4385 | return m.RaftTerm |
| 4386 | } |
| 4387 | return 0 |
| 4388 | } |
| 4389 | |
| 4390 | func (m *StatusResponse) GetRaftAppliedIndex() uint64 { |
| 4391 | if m != nil { |
| 4392 | return m.RaftAppliedIndex |
| 4393 | } |
| 4394 | return 0 |
| 4395 | } |
| 4396 | |
| 4397 | func (m *StatusResponse) GetErrors() []string { |
| 4398 | if m != nil { |
| 4399 | return m.Errors |
| 4400 | } |
| 4401 | return nil |
| 4402 | } |
| 4403 | |
| 4404 | func (m *StatusResponse) GetDbSizeInUse() int64 { |
| 4405 | if m != nil { |
| 4406 | return m.DbSizeInUse |
| 4407 | } |
| 4408 | return 0 |
| 4409 | } |
| 4410 | |
| 4411 | func (m *StatusResponse) GetIsLearner() bool { |
| 4412 | if m != nil { |
| 4413 | return m.IsLearner |
| 4414 | } |
| 4415 | return false |
| 4416 | } |
| 4417 | |
| 4418 | func (m *StatusResponse) GetStorageVersion() string { |
| 4419 | if m != nil { |
| 4420 | return m.StorageVersion |
| 4421 | } |
| 4422 | return "" |
| 4423 | } |
| 4424 | |
| 4425 | func (m *StatusResponse) GetDbSizeQuota() int64 { |
| 4426 | if m != nil { |
| 4427 | return m.DbSizeQuota |
| 4428 | } |
| 4429 | return 0 |
| 4430 | } |
| 4431 | |
| 4432 | func (m *StatusResponse) GetDowngradeInfo() *DowngradeInfo { |
| 4433 | if m != nil { |
| 4434 | return m.DowngradeInfo |
| 4435 | } |
| 4436 | return nil |
| 4437 | } |
| 4438 | |
| 4439 | type DowngradeInfo struct { |
| 4440 | // enabled indicates whether the cluster is enabled to downgrade. |
| 4441 | Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` |
| 4442 | // targetVersion is the target downgrade version. |
| 4443 | TargetVersion string `protobuf:"bytes,2,opt,name=targetVersion,proto3" json:"targetVersion,omitempty"` |
| 4444 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 4445 | XXX_unrecognized []byte `json:"-"` |
| 4446 | XXX_sizecache int32 `json:"-"` |
| 4447 | } |
| 4448 | |
| 4449 | func (m *DowngradeInfo) Reset() { *m = DowngradeInfo{} } |
| 4450 | func (m *DowngradeInfo) String() string { return proto.CompactTextString(m) } |
| 4451 | func (*DowngradeInfo) ProtoMessage() {} |
| 4452 | func (*DowngradeInfo) Descriptor() ([]byte, []int) { |
| 4453 | return fileDescriptor_77a6da22d6a3feb1, []int{62} |
| 4454 | } |
| 4455 | func (m *DowngradeInfo) XXX_Unmarshal(b []byte) error { |
| 4456 | return m.Unmarshal(b) |
| 4457 | } |
| 4458 | func (m *DowngradeInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 4459 | if deterministic { |
| 4460 | return xxx_messageInfo_DowngradeInfo.Marshal(b, m, deterministic) |
| 4461 | } else { |
| 4462 | b = b[:cap(b)] |
| 4463 | n, err := m.MarshalToSizedBuffer(b) |
| 4464 | if err != nil { |
| 4465 | return nil, err |
| 4466 | } |
| 4467 | return b[:n], nil |
| 4468 | } |
| 4469 | } |
| 4470 | func (m *DowngradeInfo) XXX_Merge(src proto.Message) { |
| 4471 | xxx_messageInfo_DowngradeInfo.Merge(m, src) |
| 4472 | } |
| 4473 | func (m *DowngradeInfo) XXX_Size() int { |
| 4474 | return m.Size() |
| 4475 | } |
| 4476 | func (m *DowngradeInfo) XXX_DiscardUnknown() { |
| 4477 | xxx_messageInfo_DowngradeInfo.DiscardUnknown(m) |
| 4478 | } |
| 4479 | |
| 4480 | var xxx_messageInfo_DowngradeInfo proto.InternalMessageInfo |
| 4481 | |
| 4482 | func (m *DowngradeInfo) GetEnabled() bool { |
| 4483 | if m != nil { |
| 4484 | return m.Enabled |
| 4485 | } |
| 4486 | return false |
| 4487 | } |
| 4488 | |
| 4489 | func (m *DowngradeInfo) GetTargetVersion() string { |
| 4490 | if m != nil { |
| 4491 | return m.TargetVersion |
| 4492 | } |
| 4493 | return "" |
| 4494 | } |
| 4495 | |
| 4496 | type AuthEnableRequest struct { |
| 4497 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 4498 | XXX_unrecognized []byte `json:"-"` |
| 4499 | XXX_sizecache int32 `json:"-"` |
| 4500 | } |
| 4501 | |
| 4502 | func (m *AuthEnableRequest) Reset() { *m = AuthEnableRequest{} } |
| 4503 | func (m *AuthEnableRequest) String() string { return proto.CompactTextString(m) } |
| 4504 | func (*AuthEnableRequest) ProtoMessage() {} |
| 4505 | func (*AuthEnableRequest) Descriptor() ([]byte, []int) { |
| 4506 | return fileDescriptor_77a6da22d6a3feb1, []int{63} |
| 4507 | } |
| 4508 | func (m *AuthEnableRequest) XXX_Unmarshal(b []byte) error { |
| 4509 | return m.Unmarshal(b) |
| 4510 | } |
| 4511 | func (m *AuthEnableRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 4512 | if deterministic { |
| 4513 | return xxx_messageInfo_AuthEnableRequest.Marshal(b, m, deterministic) |
| 4514 | } else { |
| 4515 | b = b[:cap(b)] |
| 4516 | n, err := m.MarshalToSizedBuffer(b) |
| 4517 | if err != nil { |
| 4518 | return nil, err |
| 4519 | } |
| 4520 | return b[:n], nil |
| 4521 | } |
| 4522 | } |
| 4523 | func (m *AuthEnableRequest) XXX_Merge(src proto.Message) { |
| 4524 | xxx_messageInfo_AuthEnableRequest.Merge(m, src) |
| 4525 | } |
| 4526 | func (m *AuthEnableRequest) XXX_Size() int { |
| 4527 | return m.Size() |
| 4528 | } |
| 4529 | func (m *AuthEnableRequest) XXX_DiscardUnknown() { |
| 4530 | xxx_messageInfo_AuthEnableRequest.DiscardUnknown(m) |
| 4531 | } |
| 4532 | |
| 4533 | var xxx_messageInfo_AuthEnableRequest proto.InternalMessageInfo |
| 4534 | |
| 4535 | type AuthDisableRequest struct { |
| 4536 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 4537 | XXX_unrecognized []byte `json:"-"` |
| 4538 | XXX_sizecache int32 `json:"-"` |
| 4539 | } |
| 4540 | |
| 4541 | func (m *AuthDisableRequest) Reset() { *m = AuthDisableRequest{} } |
| 4542 | func (m *AuthDisableRequest) String() string { return proto.CompactTextString(m) } |
| 4543 | func (*AuthDisableRequest) ProtoMessage() {} |
| 4544 | func (*AuthDisableRequest) Descriptor() ([]byte, []int) { |
| 4545 | return fileDescriptor_77a6da22d6a3feb1, []int{64} |
| 4546 | } |
| 4547 | func (m *AuthDisableRequest) XXX_Unmarshal(b []byte) error { |
| 4548 | return m.Unmarshal(b) |
| 4549 | } |
| 4550 | func (m *AuthDisableRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 4551 | if deterministic { |
| 4552 | return xxx_messageInfo_AuthDisableRequest.Marshal(b, m, deterministic) |
| 4553 | } else { |
| 4554 | b = b[:cap(b)] |
| 4555 | n, err := m.MarshalToSizedBuffer(b) |
| 4556 | if err != nil { |
| 4557 | return nil, err |
| 4558 | } |
| 4559 | return b[:n], nil |
| 4560 | } |
| 4561 | } |
| 4562 | func (m *AuthDisableRequest) XXX_Merge(src proto.Message) { |
| 4563 | xxx_messageInfo_AuthDisableRequest.Merge(m, src) |
| 4564 | } |
| 4565 | func (m *AuthDisableRequest) XXX_Size() int { |
| 4566 | return m.Size() |
| 4567 | } |
| 4568 | func (m *AuthDisableRequest) XXX_DiscardUnknown() { |
| 4569 | xxx_messageInfo_AuthDisableRequest.DiscardUnknown(m) |
| 4570 | } |
| 4571 | |
| 4572 | var xxx_messageInfo_AuthDisableRequest proto.InternalMessageInfo |
| 4573 | |
| 4574 | type AuthStatusRequest struct { |
| 4575 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 4576 | XXX_unrecognized []byte `json:"-"` |
| 4577 | XXX_sizecache int32 `json:"-"` |
| 4578 | } |
| 4579 | |
| 4580 | func (m *AuthStatusRequest) Reset() { *m = AuthStatusRequest{} } |
| 4581 | func (m *AuthStatusRequest) String() string { return proto.CompactTextString(m) } |
| 4582 | func (*AuthStatusRequest) ProtoMessage() {} |
| 4583 | func (*AuthStatusRequest) Descriptor() ([]byte, []int) { |
| 4584 | return fileDescriptor_77a6da22d6a3feb1, []int{65} |
| 4585 | } |
| 4586 | func (m *AuthStatusRequest) XXX_Unmarshal(b []byte) error { |
| 4587 | return m.Unmarshal(b) |
| 4588 | } |
| 4589 | func (m *AuthStatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 4590 | if deterministic { |
| 4591 | return xxx_messageInfo_AuthStatusRequest.Marshal(b, m, deterministic) |
| 4592 | } else { |
| 4593 | b = b[:cap(b)] |
| 4594 | n, err := m.MarshalToSizedBuffer(b) |
| 4595 | if err != nil { |
| 4596 | return nil, err |
| 4597 | } |
| 4598 | return b[:n], nil |
| 4599 | } |
| 4600 | } |
| 4601 | func (m *AuthStatusRequest) XXX_Merge(src proto.Message) { |
| 4602 | xxx_messageInfo_AuthStatusRequest.Merge(m, src) |
| 4603 | } |
| 4604 | func (m *AuthStatusRequest) XXX_Size() int { |
| 4605 | return m.Size() |
| 4606 | } |
| 4607 | func (m *AuthStatusRequest) XXX_DiscardUnknown() { |
| 4608 | xxx_messageInfo_AuthStatusRequest.DiscardUnknown(m) |
| 4609 | } |
| 4610 | |
| 4611 | var xxx_messageInfo_AuthStatusRequest proto.InternalMessageInfo |
| 4612 | |
| 4613 | type AuthenticateRequest struct { |
| 4614 | Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| 4615 | Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` |
| 4616 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 4617 | XXX_unrecognized []byte `json:"-"` |
| 4618 | XXX_sizecache int32 `json:"-"` |
| 4619 | } |
| 4620 | |
| 4621 | func (m *AuthenticateRequest) Reset() { *m = AuthenticateRequest{} } |
| 4622 | func (m *AuthenticateRequest) String() string { return proto.CompactTextString(m) } |
| 4623 | func (*AuthenticateRequest) ProtoMessage() {} |
| 4624 | func (*AuthenticateRequest) Descriptor() ([]byte, []int) { |
| 4625 | return fileDescriptor_77a6da22d6a3feb1, []int{66} |
| 4626 | } |
| 4627 | func (m *AuthenticateRequest) XXX_Unmarshal(b []byte) error { |
| 4628 | return m.Unmarshal(b) |
| 4629 | } |
| 4630 | func (m *AuthenticateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 4631 | if deterministic { |
| 4632 | return xxx_messageInfo_AuthenticateRequest.Marshal(b, m, deterministic) |
| 4633 | } else { |
| 4634 | b = b[:cap(b)] |
| 4635 | n, err := m.MarshalToSizedBuffer(b) |
| 4636 | if err != nil { |
| 4637 | return nil, err |
| 4638 | } |
| 4639 | return b[:n], nil |
| 4640 | } |
| 4641 | } |
| 4642 | func (m *AuthenticateRequest) XXX_Merge(src proto.Message) { |
| 4643 | xxx_messageInfo_AuthenticateRequest.Merge(m, src) |
| 4644 | } |
| 4645 | func (m *AuthenticateRequest) XXX_Size() int { |
| 4646 | return m.Size() |
| 4647 | } |
| 4648 | func (m *AuthenticateRequest) XXX_DiscardUnknown() { |
| 4649 | xxx_messageInfo_AuthenticateRequest.DiscardUnknown(m) |
| 4650 | } |
| 4651 | |
| 4652 | var xxx_messageInfo_AuthenticateRequest proto.InternalMessageInfo |
| 4653 | |
| 4654 | func (m *AuthenticateRequest) GetName() string { |
| 4655 | if m != nil { |
| 4656 | return m.Name |
| 4657 | } |
| 4658 | return "" |
| 4659 | } |
| 4660 | |
| 4661 | func (m *AuthenticateRequest) GetPassword() string { |
| 4662 | if m != nil { |
| 4663 | return m.Password |
| 4664 | } |
| 4665 | return "" |
| 4666 | } |
| 4667 | |
| 4668 | type AuthUserAddRequest struct { |
| 4669 | Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| 4670 | Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` |
| 4671 | Options *authpb.UserAddOptions `protobuf:"bytes,3,opt,name=options,proto3" json:"options,omitempty"` |
| 4672 | HashedPassword string `protobuf:"bytes,4,opt,name=hashedPassword,proto3" json:"hashedPassword,omitempty"` |
| 4673 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 4674 | XXX_unrecognized []byte `json:"-"` |
| 4675 | XXX_sizecache int32 `json:"-"` |
| 4676 | } |
| 4677 | |
| 4678 | func (m *AuthUserAddRequest) Reset() { *m = AuthUserAddRequest{} } |
| 4679 | func (m *AuthUserAddRequest) String() string { return proto.CompactTextString(m) } |
| 4680 | func (*AuthUserAddRequest) ProtoMessage() {} |
| 4681 | func (*AuthUserAddRequest) Descriptor() ([]byte, []int) { |
| 4682 | return fileDescriptor_77a6da22d6a3feb1, []int{67} |
| 4683 | } |
| 4684 | func (m *AuthUserAddRequest) XXX_Unmarshal(b []byte) error { |
| 4685 | return m.Unmarshal(b) |
| 4686 | } |
| 4687 | func (m *AuthUserAddRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 4688 | if deterministic { |
| 4689 | return xxx_messageInfo_AuthUserAddRequest.Marshal(b, m, deterministic) |
| 4690 | } else { |
| 4691 | b = b[:cap(b)] |
| 4692 | n, err := m.MarshalToSizedBuffer(b) |
| 4693 | if err != nil { |
| 4694 | return nil, err |
| 4695 | } |
| 4696 | return b[:n], nil |
| 4697 | } |
| 4698 | } |
| 4699 | func (m *AuthUserAddRequest) XXX_Merge(src proto.Message) { |
| 4700 | xxx_messageInfo_AuthUserAddRequest.Merge(m, src) |
| 4701 | } |
| 4702 | func (m *AuthUserAddRequest) XXX_Size() int { |
| 4703 | return m.Size() |
| 4704 | } |
| 4705 | func (m *AuthUserAddRequest) XXX_DiscardUnknown() { |
| 4706 | xxx_messageInfo_AuthUserAddRequest.DiscardUnknown(m) |
| 4707 | } |
| 4708 | |
| 4709 | var xxx_messageInfo_AuthUserAddRequest proto.InternalMessageInfo |
| 4710 | |
| 4711 | func (m *AuthUserAddRequest) GetName() string { |
| 4712 | if m != nil { |
| 4713 | return m.Name |
| 4714 | } |
| 4715 | return "" |
| 4716 | } |
| 4717 | |
| 4718 | func (m *AuthUserAddRequest) GetPassword() string { |
| 4719 | if m != nil { |
| 4720 | return m.Password |
| 4721 | } |
| 4722 | return "" |
| 4723 | } |
| 4724 | |
| 4725 | func (m *AuthUserAddRequest) GetOptions() *authpb.UserAddOptions { |
| 4726 | if m != nil { |
| 4727 | return m.Options |
| 4728 | } |
| 4729 | return nil |
| 4730 | } |
| 4731 | |
| 4732 | func (m *AuthUserAddRequest) GetHashedPassword() string { |
| 4733 | if m != nil { |
| 4734 | return m.HashedPassword |
| 4735 | } |
| 4736 | return "" |
| 4737 | } |
| 4738 | |
| 4739 | type AuthUserGetRequest struct { |
| 4740 | Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| 4741 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 4742 | XXX_unrecognized []byte `json:"-"` |
| 4743 | XXX_sizecache int32 `json:"-"` |
| 4744 | } |
| 4745 | |
| 4746 | func (m *AuthUserGetRequest) Reset() { *m = AuthUserGetRequest{} } |
| 4747 | func (m *AuthUserGetRequest) String() string { return proto.CompactTextString(m) } |
| 4748 | func (*AuthUserGetRequest) ProtoMessage() {} |
| 4749 | func (*AuthUserGetRequest) Descriptor() ([]byte, []int) { |
| 4750 | return fileDescriptor_77a6da22d6a3feb1, []int{68} |
| 4751 | } |
| 4752 | func (m *AuthUserGetRequest) XXX_Unmarshal(b []byte) error { |
| 4753 | return m.Unmarshal(b) |
| 4754 | } |
| 4755 | func (m *AuthUserGetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 4756 | if deterministic { |
| 4757 | return xxx_messageInfo_AuthUserGetRequest.Marshal(b, m, deterministic) |
| 4758 | } else { |
| 4759 | b = b[:cap(b)] |
| 4760 | n, err := m.MarshalToSizedBuffer(b) |
| 4761 | if err != nil { |
| 4762 | return nil, err |
| 4763 | } |
| 4764 | return b[:n], nil |
| 4765 | } |
| 4766 | } |
| 4767 | func (m *AuthUserGetRequest) XXX_Merge(src proto.Message) { |
| 4768 | xxx_messageInfo_AuthUserGetRequest.Merge(m, src) |
| 4769 | } |
| 4770 | func (m *AuthUserGetRequest) XXX_Size() int { |
| 4771 | return m.Size() |
| 4772 | } |
| 4773 | func (m *AuthUserGetRequest) XXX_DiscardUnknown() { |
| 4774 | xxx_messageInfo_AuthUserGetRequest.DiscardUnknown(m) |
| 4775 | } |
| 4776 | |
| 4777 | var xxx_messageInfo_AuthUserGetRequest proto.InternalMessageInfo |
| 4778 | |
| 4779 | func (m *AuthUserGetRequest) GetName() string { |
| 4780 | if m != nil { |
| 4781 | return m.Name |
| 4782 | } |
| 4783 | return "" |
| 4784 | } |
| 4785 | |
| 4786 | type AuthUserDeleteRequest struct { |
| 4787 | // name is the name of the user to delete. |
| 4788 | Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| 4789 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 4790 | XXX_unrecognized []byte `json:"-"` |
| 4791 | XXX_sizecache int32 `json:"-"` |
| 4792 | } |
| 4793 | |
| 4794 | func (m *AuthUserDeleteRequest) Reset() { *m = AuthUserDeleteRequest{} } |
| 4795 | func (m *AuthUserDeleteRequest) String() string { return proto.CompactTextString(m) } |
| 4796 | func (*AuthUserDeleteRequest) ProtoMessage() {} |
| 4797 | func (*AuthUserDeleteRequest) Descriptor() ([]byte, []int) { |
| 4798 | return fileDescriptor_77a6da22d6a3feb1, []int{69} |
| 4799 | } |
| 4800 | func (m *AuthUserDeleteRequest) XXX_Unmarshal(b []byte) error { |
| 4801 | return m.Unmarshal(b) |
| 4802 | } |
| 4803 | func (m *AuthUserDeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 4804 | if deterministic { |
| 4805 | return xxx_messageInfo_AuthUserDeleteRequest.Marshal(b, m, deterministic) |
| 4806 | } else { |
| 4807 | b = b[:cap(b)] |
| 4808 | n, err := m.MarshalToSizedBuffer(b) |
| 4809 | if err != nil { |
| 4810 | return nil, err |
| 4811 | } |
| 4812 | return b[:n], nil |
| 4813 | } |
| 4814 | } |
| 4815 | func (m *AuthUserDeleteRequest) XXX_Merge(src proto.Message) { |
| 4816 | xxx_messageInfo_AuthUserDeleteRequest.Merge(m, src) |
| 4817 | } |
| 4818 | func (m *AuthUserDeleteRequest) XXX_Size() int { |
| 4819 | return m.Size() |
| 4820 | } |
| 4821 | func (m *AuthUserDeleteRequest) XXX_DiscardUnknown() { |
| 4822 | xxx_messageInfo_AuthUserDeleteRequest.DiscardUnknown(m) |
| 4823 | } |
| 4824 | |
| 4825 | var xxx_messageInfo_AuthUserDeleteRequest proto.InternalMessageInfo |
| 4826 | |
| 4827 | func (m *AuthUserDeleteRequest) GetName() string { |
| 4828 | if m != nil { |
| 4829 | return m.Name |
| 4830 | } |
| 4831 | return "" |
| 4832 | } |
| 4833 | |
| 4834 | type AuthUserChangePasswordRequest struct { |
| 4835 | // name is the name of the user whose password is being changed. |
| 4836 | Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| 4837 | // password is the new password for the user. Note that this field will be removed in the API layer. |
| 4838 | Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` |
| 4839 | // hashedPassword is the new password for the user. Note that this field will be initialized in the API layer. |
| 4840 | HashedPassword string `protobuf:"bytes,3,opt,name=hashedPassword,proto3" json:"hashedPassword,omitempty"` |
| 4841 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 4842 | XXX_unrecognized []byte `json:"-"` |
| 4843 | XXX_sizecache int32 `json:"-"` |
| 4844 | } |
| 4845 | |
| 4846 | func (m *AuthUserChangePasswordRequest) Reset() { *m = AuthUserChangePasswordRequest{} } |
| 4847 | func (m *AuthUserChangePasswordRequest) String() string { return proto.CompactTextString(m) } |
| 4848 | func (*AuthUserChangePasswordRequest) ProtoMessage() {} |
| 4849 | func (*AuthUserChangePasswordRequest) Descriptor() ([]byte, []int) { |
| 4850 | return fileDescriptor_77a6da22d6a3feb1, []int{70} |
| 4851 | } |
| 4852 | func (m *AuthUserChangePasswordRequest) XXX_Unmarshal(b []byte) error { |
| 4853 | return m.Unmarshal(b) |
| 4854 | } |
| 4855 | func (m *AuthUserChangePasswordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 4856 | if deterministic { |
| 4857 | return xxx_messageInfo_AuthUserChangePasswordRequest.Marshal(b, m, deterministic) |
| 4858 | } else { |
| 4859 | b = b[:cap(b)] |
| 4860 | n, err := m.MarshalToSizedBuffer(b) |
| 4861 | if err != nil { |
| 4862 | return nil, err |
| 4863 | } |
| 4864 | return b[:n], nil |
| 4865 | } |
| 4866 | } |
| 4867 | func (m *AuthUserChangePasswordRequest) XXX_Merge(src proto.Message) { |
| 4868 | xxx_messageInfo_AuthUserChangePasswordRequest.Merge(m, src) |
| 4869 | } |
| 4870 | func (m *AuthUserChangePasswordRequest) XXX_Size() int { |
| 4871 | return m.Size() |
| 4872 | } |
| 4873 | func (m *AuthUserChangePasswordRequest) XXX_DiscardUnknown() { |
| 4874 | xxx_messageInfo_AuthUserChangePasswordRequest.DiscardUnknown(m) |
| 4875 | } |
| 4876 | |
| 4877 | var xxx_messageInfo_AuthUserChangePasswordRequest proto.InternalMessageInfo |
| 4878 | |
| 4879 | func (m *AuthUserChangePasswordRequest) GetName() string { |
| 4880 | if m != nil { |
| 4881 | return m.Name |
| 4882 | } |
| 4883 | return "" |
| 4884 | } |
| 4885 | |
| 4886 | func (m *AuthUserChangePasswordRequest) GetPassword() string { |
| 4887 | if m != nil { |
| 4888 | return m.Password |
| 4889 | } |
| 4890 | return "" |
| 4891 | } |
| 4892 | |
| 4893 | func (m *AuthUserChangePasswordRequest) GetHashedPassword() string { |
| 4894 | if m != nil { |
| 4895 | return m.HashedPassword |
| 4896 | } |
| 4897 | return "" |
| 4898 | } |
| 4899 | |
| 4900 | type AuthUserGrantRoleRequest struct { |
| 4901 | // user is the name of the user which should be granted a given role. |
| 4902 | User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` |
| 4903 | // role is the name of the role to grant to the user. |
| 4904 | Role string `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"` |
| 4905 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 4906 | XXX_unrecognized []byte `json:"-"` |
| 4907 | XXX_sizecache int32 `json:"-"` |
| 4908 | } |
| 4909 | |
| 4910 | func (m *AuthUserGrantRoleRequest) Reset() { *m = AuthUserGrantRoleRequest{} } |
| 4911 | func (m *AuthUserGrantRoleRequest) String() string { return proto.CompactTextString(m) } |
| 4912 | func (*AuthUserGrantRoleRequest) ProtoMessage() {} |
| 4913 | func (*AuthUserGrantRoleRequest) Descriptor() ([]byte, []int) { |
| 4914 | return fileDescriptor_77a6da22d6a3feb1, []int{71} |
| 4915 | } |
| 4916 | func (m *AuthUserGrantRoleRequest) XXX_Unmarshal(b []byte) error { |
| 4917 | return m.Unmarshal(b) |
| 4918 | } |
| 4919 | func (m *AuthUserGrantRoleRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 4920 | if deterministic { |
| 4921 | return xxx_messageInfo_AuthUserGrantRoleRequest.Marshal(b, m, deterministic) |
| 4922 | } else { |
| 4923 | b = b[:cap(b)] |
| 4924 | n, err := m.MarshalToSizedBuffer(b) |
| 4925 | if err != nil { |
| 4926 | return nil, err |
| 4927 | } |
| 4928 | return b[:n], nil |
| 4929 | } |
| 4930 | } |
| 4931 | func (m *AuthUserGrantRoleRequest) XXX_Merge(src proto.Message) { |
| 4932 | xxx_messageInfo_AuthUserGrantRoleRequest.Merge(m, src) |
| 4933 | } |
| 4934 | func (m *AuthUserGrantRoleRequest) XXX_Size() int { |
| 4935 | return m.Size() |
| 4936 | } |
| 4937 | func (m *AuthUserGrantRoleRequest) XXX_DiscardUnknown() { |
| 4938 | xxx_messageInfo_AuthUserGrantRoleRequest.DiscardUnknown(m) |
| 4939 | } |
| 4940 | |
| 4941 | var xxx_messageInfo_AuthUserGrantRoleRequest proto.InternalMessageInfo |
| 4942 | |
| 4943 | func (m *AuthUserGrantRoleRequest) GetUser() string { |
| 4944 | if m != nil { |
| 4945 | return m.User |
| 4946 | } |
| 4947 | return "" |
| 4948 | } |
| 4949 | |
| 4950 | func (m *AuthUserGrantRoleRequest) GetRole() string { |
| 4951 | if m != nil { |
| 4952 | return m.Role |
| 4953 | } |
| 4954 | return "" |
| 4955 | } |
| 4956 | |
| 4957 | type AuthUserRevokeRoleRequest struct { |
| 4958 | Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| 4959 | Role string `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"` |
| 4960 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 4961 | XXX_unrecognized []byte `json:"-"` |
| 4962 | XXX_sizecache int32 `json:"-"` |
| 4963 | } |
| 4964 | |
| 4965 | func (m *AuthUserRevokeRoleRequest) Reset() { *m = AuthUserRevokeRoleRequest{} } |
| 4966 | func (m *AuthUserRevokeRoleRequest) String() string { return proto.CompactTextString(m) } |
| 4967 | func (*AuthUserRevokeRoleRequest) ProtoMessage() {} |
| 4968 | func (*AuthUserRevokeRoleRequest) Descriptor() ([]byte, []int) { |
| 4969 | return fileDescriptor_77a6da22d6a3feb1, []int{72} |
| 4970 | } |
| 4971 | func (m *AuthUserRevokeRoleRequest) XXX_Unmarshal(b []byte) error { |
| 4972 | return m.Unmarshal(b) |
| 4973 | } |
| 4974 | func (m *AuthUserRevokeRoleRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 4975 | if deterministic { |
| 4976 | return xxx_messageInfo_AuthUserRevokeRoleRequest.Marshal(b, m, deterministic) |
| 4977 | } else { |
| 4978 | b = b[:cap(b)] |
| 4979 | n, err := m.MarshalToSizedBuffer(b) |
| 4980 | if err != nil { |
| 4981 | return nil, err |
| 4982 | } |
| 4983 | return b[:n], nil |
| 4984 | } |
| 4985 | } |
| 4986 | func (m *AuthUserRevokeRoleRequest) XXX_Merge(src proto.Message) { |
| 4987 | xxx_messageInfo_AuthUserRevokeRoleRequest.Merge(m, src) |
| 4988 | } |
| 4989 | func (m *AuthUserRevokeRoleRequest) XXX_Size() int { |
| 4990 | return m.Size() |
| 4991 | } |
| 4992 | func (m *AuthUserRevokeRoleRequest) XXX_DiscardUnknown() { |
| 4993 | xxx_messageInfo_AuthUserRevokeRoleRequest.DiscardUnknown(m) |
| 4994 | } |
| 4995 | |
| 4996 | var xxx_messageInfo_AuthUserRevokeRoleRequest proto.InternalMessageInfo |
| 4997 | |
| 4998 | func (m *AuthUserRevokeRoleRequest) GetName() string { |
| 4999 | if m != nil { |
| 5000 | return m.Name |
| 5001 | } |
| 5002 | return "" |
| 5003 | } |
| 5004 | |
| 5005 | func (m *AuthUserRevokeRoleRequest) GetRole() string { |
| 5006 | if m != nil { |
| 5007 | return m.Role |
| 5008 | } |
| 5009 | return "" |
| 5010 | } |
| 5011 | |
| 5012 | type AuthRoleAddRequest struct { |
| 5013 | // name is the name of the role to add to the authentication system. |
| 5014 | Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| 5015 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 5016 | XXX_unrecognized []byte `json:"-"` |
| 5017 | XXX_sizecache int32 `json:"-"` |
| 5018 | } |
| 5019 | |
| 5020 | func (m *AuthRoleAddRequest) Reset() { *m = AuthRoleAddRequest{} } |
| 5021 | func (m *AuthRoleAddRequest) String() string { return proto.CompactTextString(m) } |
| 5022 | func (*AuthRoleAddRequest) ProtoMessage() {} |
| 5023 | func (*AuthRoleAddRequest) Descriptor() ([]byte, []int) { |
| 5024 | return fileDescriptor_77a6da22d6a3feb1, []int{73} |
| 5025 | } |
| 5026 | func (m *AuthRoleAddRequest) XXX_Unmarshal(b []byte) error { |
| 5027 | return m.Unmarshal(b) |
| 5028 | } |
| 5029 | func (m *AuthRoleAddRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 5030 | if deterministic { |
| 5031 | return xxx_messageInfo_AuthRoleAddRequest.Marshal(b, m, deterministic) |
| 5032 | } else { |
| 5033 | b = b[:cap(b)] |
| 5034 | n, err := m.MarshalToSizedBuffer(b) |
| 5035 | if err != nil { |
| 5036 | return nil, err |
| 5037 | } |
| 5038 | return b[:n], nil |
| 5039 | } |
| 5040 | } |
| 5041 | func (m *AuthRoleAddRequest) XXX_Merge(src proto.Message) { |
| 5042 | xxx_messageInfo_AuthRoleAddRequest.Merge(m, src) |
| 5043 | } |
| 5044 | func (m *AuthRoleAddRequest) XXX_Size() int { |
| 5045 | return m.Size() |
| 5046 | } |
| 5047 | func (m *AuthRoleAddRequest) XXX_DiscardUnknown() { |
| 5048 | xxx_messageInfo_AuthRoleAddRequest.DiscardUnknown(m) |
| 5049 | } |
| 5050 | |
| 5051 | var xxx_messageInfo_AuthRoleAddRequest proto.InternalMessageInfo |
| 5052 | |
| 5053 | func (m *AuthRoleAddRequest) GetName() string { |
| 5054 | if m != nil { |
| 5055 | return m.Name |
| 5056 | } |
| 5057 | return "" |
| 5058 | } |
| 5059 | |
| 5060 | type AuthRoleGetRequest struct { |
| 5061 | Role string `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"` |
| 5062 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 5063 | XXX_unrecognized []byte `json:"-"` |
| 5064 | XXX_sizecache int32 `json:"-"` |
| 5065 | } |
| 5066 | |
| 5067 | func (m *AuthRoleGetRequest) Reset() { *m = AuthRoleGetRequest{} } |
| 5068 | func (m *AuthRoleGetRequest) String() string { return proto.CompactTextString(m) } |
| 5069 | func (*AuthRoleGetRequest) ProtoMessage() {} |
| 5070 | func (*AuthRoleGetRequest) Descriptor() ([]byte, []int) { |
| 5071 | return fileDescriptor_77a6da22d6a3feb1, []int{74} |
| 5072 | } |
| 5073 | func (m *AuthRoleGetRequest) XXX_Unmarshal(b []byte) error { |
| 5074 | return m.Unmarshal(b) |
| 5075 | } |
| 5076 | func (m *AuthRoleGetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 5077 | if deterministic { |
| 5078 | return xxx_messageInfo_AuthRoleGetRequest.Marshal(b, m, deterministic) |
| 5079 | } else { |
| 5080 | b = b[:cap(b)] |
| 5081 | n, err := m.MarshalToSizedBuffer(b) |
| 5082 | if err != nil { |
| 5083 | return nil, err |
| 5084 | } |
| 5085 | return b[:n], nil |
| 5086 | } |
| 5087 | } |
| 5088 | func (m *AuthRoleGetRequest) XXX_Merge(src proto.Message) { |
| 5089 | xxx_messageInfo_AuthRoleGetRequest.Merge(m, src) |
| 5090 | } |
| 5091 | func (m *AuthRoleGetRequest) XXX_Size() int { |
| 5092 | return m.Size() |
| 5093 | } |
| 5094 | func (m *AuthRoleGetRequest) XXX_DiscardUnknown() { |
| 5095 | xxx_messageInfo_AuthRoleGetRequest.DiscardUnknown(m) |
| 5096 | } |
| 5097 | |
| 5098 | var xxx_messageInfo_AuthRoleGetRequest proto.InternalMessageInfo |
| 5099 | |
| 5100 | func (m *AuthRoleGetRequest) GetRole() string { |
| 5101 | if m != nil { |
| 5102 | return m.Role |
| 5103 | } |
| 5104 | return "" |
| 5105 | } |
| 5106 | |
| 5107 | type AuthUserListRequest struct { |
| 5108 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 5109 | XXX_unrecognized []byte `json:"-"` |
| 5110 | XXX_sizecache int32 `json:"-"` |
| 5111 | } |
| 5112 | |
| 5113 | func (m *AuthUserListRequest) Reset() { *m = AuthUserListRequest{} } |
| 5114 | func (m *AuthUserListRequest) String() string { return proto.CompactTextString(m) } |
| 5115 | func (*AuthUserListRequest) ProtoMessage() {} |
| 5116 | func (*AuthUserListRequest) Descriptor() ([]byte, []int) { |
| 5117 | return fileDescriptor_77a6da22d6a3feb1, []int{75} |
| 5118 | } |
| 5119 | func (m *AuthUserListRequest) XXX_Unmarshal(b []byte) error { |
| 5120 | return m.Unmarshal(b) |
| 5121 | } |
| 5122 | func (m *AuthUserListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 5123 | if deterministic { |
| 5124 | return xxx_messageInfo_AuthUserListRequest.Marshal(b, m, deterministic) |
| 5125 | } else { |
| 5126 | b = b[:cap(b)] |
| 5127 | n, err := m.MarshalToSizedBuffer(b) |
| 5128 | if err != nil { |
| 5129 | return nil, err |
| 5130 | } |
| 5131 | return b[:n], nil |
| 5132 | } |
| 5133 | } |
| 5134 | func (m *AuthUserListRequest) XXX_Merge(src proto.Message) { |
| 5135 | xxx_messageInfo_AuthUserListRequest.Merge(m, src) |
| 5136 | } |
| 5137 | func (m *AuthUserListRequest) XXX_Size() int { |
| 5138 | return m.Size() |
| 5139 | } |
| 5140 | func (m *AuthUserListRequest) XXX_DiscardUnknown() { |
| 5141 | xxx_messageInfo_AuthUserListRequest.DiscardUnknown(m) |
| 5142 | } |
| 5143 | |
| 5144 | var xxx_messageInfo_AuthUserListRequest proto.InternalMessageInfo |
| 5145 | |
| 5146 | type AuthRoleListRequest struct { |
| 5147 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 5148 | XXX_unrecognized []byte `json:"-"` |
| 5149 | XXX_sizecache int32 `json:"-"` |
| 5150 | } |
| 5151 | |
| 5152 | func (m *AuthRoleListRequest) Reset() { *m = AuthRoleListRequest{} } |
| 5153 | func (m *AuthRoleListRequest) String() string { return proto.CompactTextString(m) } |
| 5154 | func (*AuthRoleListRequest) ProtoMessage() {} |
| 5155 | func (*AuthRoleListRequest) Descriptor() ([]byte, []int) { |
| 5156 | return fileDescriptor_77a6da22d6a3feb1, []int{76} |
| 5157 | } |
| 5158 | func (m *AuthRoleListRequest) XXX_Unmarshal(b []byte) error { |
| 5159 | return m.Unmarshal(b) |
| 5160 | } |
| 5161 | func (m *AuthRoleListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 5162 | if deterministic { |
| 5163 | return xxx_messageInfo_AuthRoleListRequest.Marshal(b, m, deterministic) |
| 5164 | } else { |
| 5165 | b = b[:cap(b)] |
| 5166 | n, err := m.MarshalToSizedBuffer(b) |
| 5167 | if err != nil { |
| 5168 | return nil, err |
| 5169 | } |
| 5170 | return b[:n], nil |
| 5171 | } |
| 5172 | } |
| 5173 | func (m *AuthRoleListRequest) XXX_Merge(src proto.Message) { |
| 5174 | xxx_messageInfo_AuthRoleListRequest.Merge(m, src) |
| 5175 | } |
| 5176 | func (m *AuthRoleListRequest) XXX_Size() int { |
| 5177 | return m.Size() |
| 5178 | } |
| 5179 | func (m *AuthRoleListRequest) XXX_DiscardUnknown() { |
| 5180 | xxx_messageInfo_AuthRoleListRequest.DiscardUnknown(m) |
| 5181 | } |
| 5182 | |
| 5183 | var xxx_messageInfo_AuthRoleListRequest proto.InternalMessageInfo |
| 5184 | |
| 5185 | type AuthRoleDeleteRequest struct { |
| 5186 | Role string `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"` |
| 5187 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 5188 | XXX_unrecognized []byte `json:"-"` |
| 5189 | XXX_sizecache int32 `json:"-"` |
| 5190 | } |
| 5191 | |
| 5192 | func (m *AuthRoleDeleteRequest) Reset() { *m = AuthRoleDeleteRequest{} } |
| 5193 | func (m *AuthRoleDeleteRequest) String() string { return proto.CompactTextString(m) } |
| 5194 | func (*AuthRoleDeleteRequest) ProtoMessage() {} |
| 5195 | func (*AuthRoleDeleteRequest) Descriptor() ([]byte, []int) { |
| 5196 | return fileDescriptor_77a6da22d6a3feb1, []int{77} |
| 5197 | } |
| 5198 | func (m *AuthRoleDeleteRequest) XXX_Unmarshal(b []byte) error { |
| 5199 | return m.Unmarshal(b) |
| 5200 | } |
| 5201 | func (m *AuthRoleDeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 5202 | if deterministic { |
| 5203 | return xxx_messageInfo_AuthRoleDeleteRequest.Marshal(b, m, deterministic) |
| 5204 | } else { |
| 5205 | b = b[:cap(b)] |
| 5206 | n, err := m.MarshalToSizedBuffer(b) |
| 5207 | if err != nil { |
| 5208 | return nil, err |
| 5209 | } |
| 5210 | return b[:n], nil |
| 5211 | } |
| 5212 | } |
| 5213 | func (m *AuthRoleDeleteRequest) XXX_Merge(src proto.Message) { |
| 5214 | xxx_messageInfo_AuthRoleDeleteRequest.Merge(m, src) |
| 5215 | } |
| 5216 | func (m *AuthRoleDeleteRequest) XXX_Size() int { |
| 5217 | return m.Size() |
| 5218 | } |
| 5219 | func (m *AuthRoleDeleteRequest) XXX_DiscardUnknown() { |
| 5220 | xxx_messageInfo_AuthRoleDeleteRequest.DiscardUnknown(m) |
| 5221 | } |
| 5222 | |
| 5223 | var xxx_messageInfo_AuthRoleDeleteRequest proto.InternalMessageInfo |
| 5224 | |
| 5225 | func (m *AuthRoleDeleteRequest) GetRole() string { |
| 5226 | if m != nil { |
| 5227 | return m.Role |
| 5228 | } |
| 5229 | return "" |
| 5230 | } |
| 5231 | |
| 5232 | type AuthRoleGrantPermissionRequest struct { |
| 5233 | // name is the name of the role which will be granted the permission. |
| 5234 | Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| 5235 | // perm is the permission to grant to the role. |
| 5236 | Perm *authpb.Permission `protobuf:"bytes,2,opt,name=perm,proto3" json:"perm,omitempty"` |
| 5237 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 5238 | XXX_unrecognized []byte `json:"-"` |
| 5239 | XXX_sizecache int32 `json:"-"` |
| 5240 | } |
| 5241 | |
| 5242 | func (m *AuthRoleGrantPermissionRequest) Reset() { *m = AuthRoleGrantPermissionRequest{} } |
| 5243 | func (m *AuthRoleGrantPermissionRequest) String() string { return proto.CompactTextString(m) } |
| 5244 | func (*AuthRoleGrantPermissionRequest) ProtoMessage() {} |
| 5245 | func (*AuthRoleGrantPermissionRequest) Descriptor() ([]byte, []int) { |
| 5246 | return fileDescriptor_77a6da22d6a3feb1, []int{78} |
| 5247 | } |
| 5248 | func (m *AuthRoleGrantPermissionRequest) XXX_Unmarshal(b []byte) error { |
| 5249 | return m.Unmarshal(b) |
| 5250 | } |
| 5251 | func (m *AuthRoleGrantPermissionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 5252 | if deterministic { |
| 5253 | return xxx_messageInfo_AuthRoleGrantPermissionRequest.Marshal(b, m, deterministic) |
| 5254 | } else { |
| 5255 | b = b[:cap(b)] |
| 5256 | n, err := m.MarshalToSizedBuffer(b) |
| 5257 | if err != nil { |
| 5258 | return nil, err |
| 5259 | } |
| 5260 | return b[:n], nil |
| 5261 | } |
| 5262 | } |
| 5263 | func (m *AuthRoleGrantPermissionRequest) XXX_Merge(src proto.Message) { |
| 5264 | xxx_messageInfo_AuthRoleGrantPermissionRequest.Merge(m, src) |
| 5265 | } |
| 5266 | func (m *AuthRoleGrantPermissionRequest) XXX_Size() int { |
| 5267 | return m.Size() |
| 5268 | } |
| 5269 | func (m *AuthRoleGrantPermissionRequest) XXX_DiscardUnknown() { |
| 5270 | xxx_messageInfo_AuthRoleGrantPermissionRequest.DiscardUnknown(m) |
| 5271 | } |
| 5272 | |
| 5273 | var xxx_messageInfo_AuthRoleGrantPermissionRequest proto.InternalMessageInfo |
| 5274 | |
| 5275 | func (m *AuthRoleGrantPermissionRequest) GetName() string { |
| 5276 | if m != nil { |
| 5277 | return m.Name |
| 5278 | } |
| 5279 | return "" |
| 5280 | } |
| 5281 | |
| 5282 | func (m *AuthRoleGrantPermissionRequest) GetPerm() *authpb.Permission { |
| 5283 | if m != nil { |
| 5284 | return m.Perm |
| 5285 | } |
| 5286 | return nil |
| 5287 | } |
| 5288 | |
| 5289 | type AuthRoleRevokePermissionRequest struct { |
| 5290 | Role string `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"` |
| 5291 | Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` |
| 5292 | RangeEnd []byte `protobuf:"bytes,3,opt,name=range_end,json=rangeEnd,proto3" json:"range_end,omitempty"` |
| 5293 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 5294 | XXX_unrecognized []byte `json:"-"` |
| 5295 | XXX_sizecache int32 `json:"-"` |
| 5296 | } |
| 5297 | |
| 5298 | func (m *AuthRoleRevokePermissionRequest) Reset() { *m = AuthRoleRevokePermissionRequest{} } |
| 5299 | func (m *AuthRoleRevokePermissionRequest) String() string { return proto.CompactTextString(m) } |
| 5300 | func (*AuthRoleRevokePermissionRequest) ProtoMessage() {} |
| 5301 | func (*AuthRoleRevokePermissionRequest) Descriptor() ([]byte, []int) { |
| 5302 | return fileDescriptor_77a6da22d6a3feb1, []int{79} |
| 5303 | } |
| 5304 | func (m *AuthRoleRevokePermissionRequest) XXX_Unmarshal(b []byte) error { |
| 5305 | return m.Unmarshal(b) |
| 5306 | } |
| 5307 | func (m *AuthRoleRevokePermissionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 5308 | if deterministic { |
| 5309 | return xxx_messageInfo_AuthRoleRevokePermissionRequest.Marshal(b, m, deterministic) |
| 5310 | } else { |
| 5311 | b = b[:cap(b)] |
| 5312 | n, err := m.MarshalToSizedBuffer(b) |
| 5313 | if err != nil { |
| 5314 | return nil, err |
| 5315 | } |
| 5316 | return b[:n], nil |
| 5317 | } |
| 5318 | } |
| 5319 | func (m *AuthRoleRevokePermissionRequest) XXX_Merge(src proto.Message) { |
| 5320 | xxx_messageInfo_AuthRoleRevokePermissionRequest.Merge(m, src) |
| 5321 | } |
| 5322 | func (m *AuthRoleRevokePermissionRequest) XXX_Size() int { |
| 5323 | return m.Size() |
| 5324 | } |
| 5325 | func (m *AuthRoleRevokePermissionRequest) XXX_DiscardUnknown() { |
| 5326 | xxx_messageInfo_AuthRoleRevokePermissionRequest.DiscardUnknown(m) |
| 5327 | } |
| 5328 | |
| 5329 | var xxx_messageInfo_AuthRoleRevokePermissionRequest proto.InternalMessageInfo |
| 5330 | |
| 5331 | func (m *AuthRoleRevokePermissionRequest) GetRole() string { |
| 5332 | if m != nil { |
| 5333 | return m.Role |
| 5334 | } |
| 5335 | return "" |
| 5336 | } |
| 5337 | |
| 5338 | func (m *AuthRoleRevokePermissionRequest) GetKey() []byte { |
| 5339 | if m != nil { |
| 5340 | return m.Key |
| 5341 | } |
| 5342 | return nil |
| 5343 | } |
| 5344 | |
| 5345 | func (m *AuthRoleRevokePermissionRequest) GetRangeEnd() []byte { |
| 5346 | if m != nil { |
| 5347 | return m.RangeEnd |
| 5348 | } |
| 5349 | return nil |
| 5350 | } |
| 5351 | |
| 5352 | type AuthEnableResponse struct { |
| 5353 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` |
| 5354 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 5355 | XXX_unrecognized []byte `json:"-"` |
| 5356 | XXX_sizecache int32 `json:"-"` |
| 5357 | } |
| 5358 | |
| 5359 | func (m *AuthEnableResponse) Reset() { *m = AuthEnableResponse{} } |
| 5360 | func (m *AuthEnableResponse) String() string { return proto.CompactTextString(m) } |
| 5361 | func (*AuthEnableResponse) ProtoMessage() {} |
| 5362 | func (*AuthEnableResponse) Descriptor() ([]byte, []int) { |
| 5363 | return fileDescriptor_77a6da22d6a3feb1, []int{80} |
| 5364 | } |
| 5365 | func (m *AuthEnableResponse) XXX_Unmarshal(b []byte) error { |
| 5366 | return m.Unmarshal(b) |
| 5367 | } |
| 5368 | func (m *AuthEnableResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 5369 | if deterministic { |
| 5370 | return xxx_messageInfo_AuthEnableResponse.Marshal(b, m, deterministic) |
| 5371 | } else { |
| 5372 | b = b[:cap(b)] |
| 5373 | n, err := m.MarshalToSizedBuffer(b) |
| 5374 | if err != nil { |
| 5375 | return nil, err |
| 5376 | } |
| 5377 | return b[:n], nil |
| 5378 | } |
| 5379 | } |
| 5380 | func (m *AuthEnableResponse) XXX_Merge(src proto.Message) { |
| 5381 | xxx_messageInfo_AuthEnableResponse.Merge(m, src) |
| 5382 | } |
| 5383 | func (m *AuthEnableResponse) XXX_Size() int { |
| 5384 | return m.Size() |
| 5385 | } |
| 5386 | func (m *AuthEnableResponse) XXX_DiscardUnknown() { |
| 5387 | xxx_messageInfo_AuthEnableResponse.DiscardUnknown(m) |
| 5388 | } |
| 5389 | |
| 5390 | var xxx_messageInfo_AuthEnableResponse proto.InternalMessageInfo |
| 5391 | |
| 5392 | func (m *AuthEnableResponse) GetHeader() *ResponseHeader { |
| 5393 | if m != nil { |
| 5394 | return m.Header |
| 5395 | } |
| 5396 | return nil |
| 5397 | } |
| 5398 | |
| 5399 | type AuthDisableResponse struct { |
| 5400 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` |
| 5401 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 5402 | XXX_unrecognized []byte `json:"-"` |
| 5403 | XXX_sizecache int32 `json:"-"` |
| 5404 | } |
| 5405 | |
| 5406 | func (m *AuthDisableResponse) Reset() { *m = AuthDisableResponse{} } |
| 5407 | func (m *AuthDisableResponse) String() string { return proto.CompactTextString(m) } |
| 5408 | func (*AuthDisableResponse) ProtoMessage() {} |
| 5409 | func (*AuthDisableResponse) Descriptor() ([]byte, []int) { |
| 5410 | return fileDescriptor_77a6da22d6a3feb1, []int{81} |
| 5411 | } |
| 5412 | func (m *AuthDisableResponse) XXX_Unmarshal(b []byte) error { |
| 5413 | return m.Unmarshal(b) |
| 5414 | } |
| 5415 | func (m *AuthDisableResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 5416 | if deterministic { |
| 5417 | return xxx_messageInfo_AuthDisableResponse.Marshal(b, m, deterministic) |
| 5418 | } else { |
| 5419 | b = b[:cap(b)] |
| 5420 | n, err := m.MarshalToSizedBuffer(b) |
| 5421 | if err != nil { |
| 5422 | return nil, err |
| 5423 | } |
| 5424 | return b[:n], nil |
| 5425 | } |
| 5426 | } |
| 5427 | func (m *AuthDisableResponse) XXX_Merge(src proto.Message) { |
| 5428 | xxx_messageInfo_AuthDisableResponse.Merge(m, src) |
| 5429 | } |
| 5430 | func (m *AuthDisableResponse) XXX_Size() int { |
| 5431 | return m.Size() |
| 5432 | } |
| 5433 | func (m *AuthDisableResponse) XXX_DiscardUnknown() { |
| 5434 | xxx_messageInfo_AuthDisableResponse.DiscardUnknown(m) |
| 5435 | } |
| 5436 | |
| 5437 | var xxx_messageInfo_AuthDisableResponse proto.InternalMessageInfo |
| 5438 | |
| 5439 | func (m *AuthDisableResponse) GetHeader() *ResponseHeader { |
| 5440 | if m != nil { |
| 5441 | return m.Header |
| 5442 | } |
| 5443 | return nil |
| 5444 | } |
| 5445 | |
| 5446 | type AuthStatusResponse struct { |
| 5447 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` |
| 5448 | Enabled bool `protobuf:"varint,2,opt,name=enabled,proto3" json:"enabled,omitempty"` |
| 5449 | // authRevision is the current revision of auth store |
| 5450 | AuthRevision uint64 `protobuf:"varint,3,opt,name=authRevision,proto3" json:"authRevision,omitempty"` |
| 5451 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 5452 | XXX_unrecognized []byte `json:"-"` |
| 5453 | XXX_sizecache int32 `json:"-"` |
| 5454 | } |
| 5455 | |
| 5456 | func (m *AuthStatusResponse) Reset() { *m = AuthStatusResponse{} } |
| 5457 | func (m *AuthStatusResponse) String() string { return proto.CompactTextString(m) } |
| 5458 | func (*AuthStatusResponse) ProtoMessage() {} |
| 5459 | func (*AuthStatusResponse) Descriptor() ([]byte, []int) { |
| 5460 | return fileDescriptor_77a6da22d6a3feb1, []int{82} |
| 5461 | } |
| 5462 | func (m *AuthStatusResponse) XXX_Unmarshal(b []byte) error { |
| 5463 | return m.Unmarshal(b) |
| 5464 | } |
| 5465 | func (m *AuthStatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 5466 | if deterministic { |
| 5467 | return xxx_messageInfo_AuthStatusResponse.Marshal(b, m, deterministic) |
| 5468 | } else { |
| 5469 | b = b[:cap(b)] |
| 5470 | n, err := m.MarshalToSizedBuffer(b) |
| 5471 | if err != nil { |
| 5472 | return nil, err |
| 5473 | } |
| 5474 | return b[:n], nil |
| 5475 | } |
| 5476 | } |
| 5477 | func (m *AuthStatusResponse) XXX_Merge(src proto.Message) { |
| 5478 | xxx_messageInfo_AuthStatusResponse.Merge(m, src) |
| 5479 | } |
| 5480 | func (m *AuthStatusResponse) XXX_Size() int { |
| 5481 | return m.Size() |
| 5482 | } |
| 5483 | func (m *AuthStatusResponse) XXX_DiscardUnknown() { |
| 5484 | xxx_messageInfo_AuthStatusResponse.DiscardUnknown(m) |
| 5485 | } |
| 5486 | |
| 5487 | var xxx_messageInfo_AuthStatusResponse proto.InternalMessageInfo |
| 5488 | |
| 5489 | func (m *AuthStatusResponse) GetHeader() *ResponseHeader { |
| 5490 | if m != nil { |
| 5491 | return m.Header |
| 5492 | } |
| 5493 | return nil |
| 5494 | } |
| 5495 | |
| 5496 | func (m *AuthStatusResponse) GetEnabled() bool { |
| 5497 | if m != nil { |
| 5498 | return m.Enabled |
| 5499 | } |
| 5500 | return false |
| 5501 | } |
| 5502 | |
| 5503 | func (m *AuthStatusResponse) GetAuthRevision() uint64 { |
| 5504 | if m != nil { |
| 5505 | return m.AuthRevision |
| 5506 | } |
| 5507 | return 0 |
| 5508 | } |
| 5509 | |
| 5510 | type AuthenticateResponse struct { |
| 5511 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` |
| 5512 | // token is an authorized token that can be used in succeeding RPCs |
| 5513 | Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` |
| 5514 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 5515 | XXX_unrecognized []byte `json:"-"` |
| 5516 | XXX_sizecache int32 `json:"-"` |
| 5517 | } |
| 5518 | |
| 5519 | func (m *AuthenticateResponse) Reset() { *m = AuthenticateResponse{} } |
| 5520 | func (m *AuthenticateResponse) String() string { return proto.CompactTextString(m) } |
| 5521 | func (*AuthenticateResponse) ProtoMessage() {} |
| 5522 | func (*AuthenticateResponse) Descriptor() ([]byte, []int) { |
| 5523 | return fileDescriptor_77a6da22d6a3feb1, []int{83} |
| 5524 | } |
| 5525 | func (m *AuthenticateResponse) XXX_Unmarshal(b []byte) error { |
| 5526 | return m.Unmarshal(b) |
| 5527 | } |
| 5528 | func (m *AuthenticateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 5529 | if deterministic { |
| 5530 | return xxx_messageInfo_AuthenticateResponse.Marshal(b, m, deterministic) |
| 5531 | } else { |
| 5532 | b = b[:cap(b)] |
| 5533 | n, err := m.MarshalToSizedBuffer(b) |
| 5534 | if err != nil { |
| 5535 | return nil, err |
| 5536 | } |
| 5537 | return b[:n], nil |
| 5538 | } |
| 5539 | } |
| 5540 | func (m *AuthenticateResponse) XXX_Merge(src proto.Message) { |
| 5541 | xxx_messageInfo_AuthenticateResponse.Merge(m, src) |
| 5542 | } |
| 5543 | func (m *AuthenticateResponse) XXX_Size() int { |
| 5544 | return m.Size() |
| 5545 | } |
| 5546 | func (m *AuthenticateResponse) XXX_DiscardUnknown() { |
| 5547 | xxx_messageInfo_AuthenticateResponse.DiscardUnknown(m) |
| 5548 | } |
| 5549 | |
| 5550 | var xxx_messageInfo_AuthenticateResponse proto.InternalMessageInfo |
| 5551 | |
| 5552 | func (m *AuthenticateResponse) GetHeader() *ResponseHeader { |
| 5553 | if m != nil { |
| 5554 | return m.Header |
| 5555 | } |
| 5556 | return nil |
| 5557 | } |
| 5558 | |
| 5559 | func (m *AuthenticateResponse) GetToken() string { |
| 5560 | if m != nil { |
| 5561 | return m.Token |
| 5562 | } |
| 5563 | return "" |
| 5564 | } |
| 5565 | |
| 5566 | type AuthUserAddResponse struct { |
| 5567 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` |
| 5568 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 5569 | XXX_unrecognized []byte `json:"-"` |
| 5570 | XXX_sizecache int32 `json:"-"` |
| 5571 | } |
| 5572 | |
| 5573 | func (m *AuthUserAddResponse) Reset() { *m = AuthUserAddResponse{} } |
| 5574 | func (m *AuthUserAddResponse) String() string { return proto.CompactTextString(m) } |
| 5575 | func (*AuthUserAddResponse) ProtoMessage() {} |
| 5576 | func (*AuthUserAddResponse) Descriptor() ([]byte, []int) { |
| 5577 | return fileDescriptor_77a6da22d6a3feb1, []int{84} |
| 5578 | } |
| 5579 | func (m *AuthUserAddResponse) XXX_Unmarshal(b []byte) error { |
| 5580 | return m.Unmarshal(b) |
| 5581 | } |
| 5582 | func (m *AuthUserAddResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 5583 | if deterministic { |
| 5584 | return xxx_messageInfo_AuthUserAddResponse.Marshal(b, m, deterministic) |
| 5585 | } else { |
| 5586 | b = b[:cap(b)] |
| 5587 | n, err := m.MarshalToSizedBuffer(b) |
| 5588 | if err != nil { |
| 5589 | return nil, err |
| 5590 | } |
| 5591 | return b[:n], nil |
| 5592 | } |
| 5593 | } |
| 5594 | func (m *AuthUserAddResponse) XXX_Merge(src proto.Message) { |
| 5595 | xxx_messageInfo_AuthUserAddResponse.Merge(m, src) |
| 5596 | } |
| 5597 | func (m *AuthUserAddResponse) XXX_Size() int { |
| 5598 | return m.Size() |
| 5599 | } |
| 5600 | func (m *AuthUserAddResponse) XXX_DiscardUnknown() { |
| 5601 | xxx_messageInfo_AuthUserAddResponse.DiscardUnknown(m) |
| 5602 | } |
| 5603 | |
| 5604 | var xxx_messageInfo_AuthUserAddResponse proto.InternalMessageInfo |
| 5605 | |
| 5606 | func (m *AuthUserAddResponse) GetHeader() *ResponseHeader { |
| 5607 | if m != nil { |
| 5608 | return m.Header |
| 5609 | } |
| 5610 | return nil |
| 5611 | } |
| 5612 | |
| 5613 | type AuthUserGetResponse struct { |
| 5614 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` |
| 5615 | Roles []string `protobuf:"bytes,2,rep,name=roles,proto3" json:"roles,omitempty"` |
| 5616 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 5617 | XXX_unrecognized []byte `json:"-"` |
| 5618 | XXX_sizecache int32 `json:"-"` |
| 5619 | } |
| 5620 | |
| 5621 | func (m *AuthUserGetResponse) Reset() { *m = AuthUserGetResponse{} } |
| 5622 | func (m *AuthUserGetResponse) String() string { return proto.CompactTextString(m) } |
| 5623 | func (*AuthUserGetResponse) ProtoMessage() {} |
| 5624 | func (*AuthUserGetResponse) Descriptor() ([]byte, []int) { |
| 5625 | return fileDescriptor_77a6da22d6a3feb1, []int{85} |
| 5626 | } |
| 5627 | func (m *AuthUserGetResponse) XXX_Unmarshal(b []byte) error { |
| 5628 | return m.Unmarshal(b) |
| 5629 | } |
| 5630 | func (m *AuthUserGetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 5631 | if deterministic { |
| 5632 | return xxx_messageInfo_AuthUserGetResponse.Marshal(b, m, deterministic) |
| 5633 | } else { |
| 5634 | b = b[:cap(b)] |
| 5635 | n, err := m.MarshalToSizedBuffer(b) |
| 5636 | if err != nil { |
| 5637 | return nil, err |
| 5638 | } |
| 5639 | return b[:n], nil |
| 5640 | } |
| 5641 | } |
| 5642 | func (m *AuthUserGetResponse) XXX_Merge(src proto.Message) { |
| 5643 | xxx_messageInfo_AuthUserGetResponse.Merge(m, src) |
| 5644 | } |
| 5645 | func (m *AuthUserGetResponse) XXX_Size() int { |
| 5646 | return m.Size() |
| 5647 | } |
| 5648 | func (m *AuthUserGetResponse) XXX_DiscardUnknown() { |
| 5649 | xxx_messageInfo_AuthUserGetResponse.DiscardUnknown(m) |
| 5650 | } |
| 5651 | |
| 5652 | var xxx_messageInfo_AuthUserGetResponse proto.InternalMessageInfo |
| 5653 | |
| 5654 | func (m *AuthUserGetResponse) GetHeader() *ResponseHeader { |
| 5655 | if m != nil { |
| 5656 | return m.Header |
| 5657 | } |
| 5658 | return nil |
| 5659 | } |
| 5660 | |
| 5661 | func (m *AuthUserGetResponse) GetRoles() []string { |
| 5662 | if m != nil { |
| 5663 | return m.Roles |
| 5664 | } |
| 5665 | return nil |
| 5666 | } |
| 5667 | |
| 5668 | type AuthUserDeleteResponse struct { |
| 5669 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` |
| 5670 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 5671 | XXX_unrecognized []byte `json:"-"` |
| 5672 | XXX_sizecache int32 `json:"-"` |
| 5673 | } |
| 5674 | |
| 5675 | func (m *AuthUserDeleteResponse) Reset() { *m = AuthUserDeleteResponse{} } |
| 5676 | func (m *AuthUserDeleteResponse) String() string { return proto.CompactTextString(m) } |
| 5677 | func (*AuthUserDeleteResponse) ProtoMessage() {} |
| 5678 | func (*AuthUserDeleteResponse) Descriptor() ([]byte, []int) { |
| 5679 | return fileDescriptor_77a6da22d6a3feb1, []int{86} |
| 5680 | } |
| 5681 | func (m *AuthUserDeleteResponse) XXX_Unmarshal(b []byte) error { |
| 5682 | return m.Unmarshal(b) |
| 5683 | } |
| 5684 | func (m *AuthUserDeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 5685 | if deterministic { |
| 5686 | return xxx_messageInfo_AuthUserDeleteResponse.Marshal(b, m, deterministic) |
| 5687 | } else { |
| 5688 | b = b[:cap(b)] |
| 5689 | n, err := m.MarshalToSizedBuffer(b) |
| 5690 | if err != nil { |
| 5691 | return nil, err |
| 5692 | } |
| 5693 | return b[:n], nil |
| 5694 | } |
| 5695 | } |
| 5696 | func (m *AuthUserDeleteResponse) XXX_Merge(src proto.Message) { |
| 5697 | xxx_messageInfo_AuthUserDeleteResponse.Merge(m, src) |
| 5698 | } |
| 5699 | func (m *AuthUserDeleteResponse) XXX_Size() int { |
| 5700 | return m.Size() |
| 5701 | } |
| 5702 | func (m *AuthUserDeleteResponse) XXX_DiscardUnknown() { |
| 5703 | xxx_messageInfo_AuthUserDeleteResponse.DiscardUnknown(m) |
| 5704 | } |
| 5705 | |
| 5706 | var xxx_messageInfo_AuthUserDeleteResponse proto.InternalMessageInfo |
| 5707 | |
| 5708 | func (m *AuthUserDeleteResponse) GetHeader() *ResponseHeader { |
| 5709 | if m != nil { |
| 5710 | return m.Header |
| 5711 | } |
| 5712 | return nil |
| 5713 | } |
| 5714 | |
| 5715 | type AuthUserChangePasswordResponse struct { |
| 5716 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` |
| 5717 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 5718 | XXX_unrecognized []byte `json:"-"` |
| 5719 | XXX_sizecache int32 `json:"-"` |
| 5720 | } |
| 5721 | |
| 5722 | func (m *AuthUserChangePasswordResponse) Reset() { *m = AuthUserChangePasswordResponse{} } |
| 5723 | func (m *AuthUserChangePasswordResponse) String() string { return proto.CompactTextString(m) } |
| 5724 | func (*AuthUserChangePasswordResponse) ProtoMessage() {} |
| 5725 | func (*AuthUserChangePasswordResponse) Descriptor() ([]byte, []int) { |
| 5726 | return fileDescriptor_77a6da22d6a3feb1, []int{87} |
| 5727 | } |
| 5728 | func (m *AuthUserChangePasswordResponse) XXX_Unmarshal(b []byte) error { |
| 5729 | return m.Unmarshal(b) |
| 5730 | } |
| 5731 | func (m *AuthUserChangePasswordResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 5732 | if deterministic { |
| 5733 | return xxx_messageInfo_AuthUserChangePasswordResponse.Marshal(b, m, deterministic) |
| 5734 | } else { |
| 5735 | b = b[:cap(b)] |
| 5736 | n, err := m.MarshalToSizedBuffer(b) |
| 5737 | if err != nil { |
| 5738 | return nil, err |
| 5739 | } |
| 5740 | return b[:n], nil |
| 5741 | } |
| 5742 | } |
| 5743 | func (m *AuthUserChangePasswordResponse) XXX_Merge(src proto.Message) { |
| 5744 | xxx_messageInfo_AuthUserChangePasswordResponse.Merge(m, src) |
| 5745 | } |
| 5746 | func (m *AuthUserChangePasswordResponse) XXX_Size() int { |
| 5747 | return m.Size() |
| 5748 | } |
| 5749 | func (m *AuthUserChangePasswordResponse) XXX_DiscardUnknown() { |
| 5750 | xxx_messageInfo_AuthUserChangePasswordResponse.DiscardUnknown(m) |
| 5751 | } |
| 5752 | |
| 5753 | var xxx_messageInfo_AuthUserChangePasswordResponse proto.InternalMessageInfo |
| 5754 | |
| 5755 | func (m *AuthUserChangePasswordResponse) GetHeader() *ResponseHeader { |
| 5756 | if m != nil { |
| 5757 | return m.Header |
| 5758 | } |
| 5759 | return nil |
| 5760 | } |
| 5761 | |
| 5762 | type AuthUserGrantRoleResponse struct { |
| 5763 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` |
| 5764 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 5765 | XXX_unrecognized []byte `json:"-"` |
| 5766 | XXX_sizecache int32 `json:"-"` |
| 5767 | } |
| 5768 | |
| 5769 | func (m *AuthUserGrantRoleResponse) Reset() { *m = AuthUserGrantRoleResponse{} } |
| 5770 | func (m *AuthUserGrantRoleResponse) String() string { return proto.CompactTextString(m) } |
| 5771 | func (*AuthUserGrantRoleResponse) ProtoMessage() {} |
| 5772 | func (*AuthUserGrantRoleResponse) Descriptor() ([]byte, []int) { |
| 5773 | return fileDescriptor_77a6da22d6a3feb1, []int{88} |
| 5774 | } |
| 5775 | func (m *AuthUserGrantRoleResponse) XXX_Unmarshal(b []byte) error { |
| 5776 | return m.Unmarshal(b) |
| 5777 | } |
| 5778 | func (m *AuthUserGrantRoleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 5779 | if deterministic { |
| 5780 | return xxx_messageInfo_AuthUserGrantRoleResponse.Marshal(b, m, deterministic) |
| 5781 | } else { |
| 5782 | b = b[:cap(b)] |
| 5783 | n, err := m.MarshalToSizedBuffer(b) |
| 5784 | if err != nil { |
| 5785 | return nil, err |
| 5786 | } |
| 5787 | return b[:n], nil |
| 5788 | } |
| 5789 | } |
| 5790 | func (m *AuthUserGrantRoleResponse) XXX_Merge(src proto.Message) { |
| 5791 | xxx_messageInfo_AuthUserGrantRoleResponse.Merge(m, src) |
| 5792 | } |
| 5793 | func (m *AuthUserGrantRoleResponse) XXX_Size() int { |
| 5794 | return m.Size() |
| 5795 | } |
| 5796 | func (m *AuthUserGrantRoleResponse) XXX_DiscardUnknown() { |
| 5797 | xxx_messageInfo_AuthUserGrantRoleResponse.DiscardUnknown(m) |
| 5798 | } |
| 5799 | |
| 5800 | var xxx_messageInfo_AuthUserGrantRoleResponse proto.InternalMessageInfo |
| 5801 | |
| 5802 | func (m *AuthUserGrantRoleResponse) GetHeader() *ResponseHeader { |
| 5803 | if m != nil { |
| 5804 | return m.Header |
| 5805 | } |
| 5806 | return nil |
| 5807 | } |
| 5808 | |
| 5809 | type AuthUserRevokeRoleResponse struct { |
| 5810 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` |
| 5811 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 5812 | XXX_unrecognized []byte `json:"-"` |
| 5813 | XXX_sizecache int32 `json:"-"` |
| 5814 | } |
| 5815 | |
| 5816 | func (m *AuthUserRevokeRoleResponse) Reset() { *m = AuthUserRevokeRoleResponse{} } |
| 5817 | func (m *AuthUserRevokeRoleResponse) String() string { return proto.CompactTextString(m) } |
| 5818 | func (*AuthUserRevokeRoleResponse) ProtoMessage() {} |
| 5819 | func (*AuthUserRevokeRoleResponse) Descriptor() ([]byte, []int) { |
| 5820 | return fileDescriptor_77a6da22d6a3feb1, []int{89} |
| 5821 | } |
| 5822 | func (m *AuthUserRevokeRoleResponse) XXX_Unmarshal(b []byte) error { |
| 5823 | return m.Unmarshal(b) |
| 5824 | } |
| 5825 | func (m *AuthUserRevokeRoleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 5826 | if deterministic { |
| 5827 | return xxx_messageInfo_AuthUserRevokeRoleResponse.Marshal(b, m, deterministic) |
| 5828 | } else { |
| 5829 | b = b[:cap(b)] |
| 5830 | n, err := m.MarshalToSizedBuffer(b) |
| 5831 | if err != nil { |
| 5832 | return nil, err |
| 5833 | } |
| 5834 | return b[:n], nil |
| 5835 | } |
| 5836 | } |
| 5837 | func (m *AuthUserRevokeRoleResponse) XXX_Merge(src proto.Message) { |
| 5838 | xxx_messageInfo_AuthUserRevokeRoleResponse.Merge(m, src) |
| 5839 | } |
| 5840 | func (m *AuthUserRevokeRoleResponse) XXX_Size() int { |
| 5841 | return m.Size() |
| 5842 | } |
| 5843 | func (m *AuthUserRevokeRoleResponse) XXX_DiscardUnknown() { |
| 5844 | xxx_messageInfo_AuthUserRevokeRoleResponse.DiscardUnknown(m) |
| 5845 | } |
| 5846 | |
| 5847 | var xxx_messageInfo_AuthUserRevokeRoleResponse proto.InternalMessageInfo |
| 5848 | |
| 5849 | func (m *AuthUserRevokeRoleResponse) GetHeader() *ResponseHeader { |
| 5850 | if m != nil { |
| 5851 | return m.Header |
| 5852 | } |
| 5853 | return nil |
| 5854 | } |
| 5855 | |
| 5856 | type AuthRoleAddResponse struct { |
| 5857 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` |
| 5858 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 5859 | XXX_unrecognized []byte `json:"-"` |
| 5860 | XXX_sizecache int32 `json:"-"` |
| 5861 | } |
| 5862 | |
| 5863 | func (m *AuthRoleAddResponse) Reset() { *m = AuthRoleAddResponse{} } |
| 5864 | func (m *AuthRoleAddResponse) String() string { return proto.CompactTextString(m) } |
| 5865 | func (*AuthRoleAddResponse) ProtoMessage() {} |
| 5866 | func (*AuthRoleAddResponse) Descriptor() ([]byte, []int) { |
| 5867 | return fileDescriptor_77a6da22d6a3feb1, []int{90} |
| 5868 | } |
| 5869 | func (m *AuthRoleAddResponse) XXX_Unmarshal(b []byte) error { |
| 5870 | return m.Unmarshal(b) |
| 5871 | } |
| 5872 | func (m *AuthRoleAddResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 5873 | if deterministic { |
| 5874 | return xxx_messageInfo_AuthRoleAddResponse.Marshal(b, m, deterministic) |
| 5875 | } else { |
| 5876 | b = b[:cap(b)] |
| 5877 | n, err := m.MarshalToSizedBuffer(b) |
| 5878 | if err != nil { |
| 5879 | return nil, err |
| 5880 | } |
| 5881 | return b[:n], nil |
| 5882 | } |
| 5883 | } |
| 5884 | func (m *AuthRoleAddResponse) XXX_Merge(src proto.Message) { |
| 5885 | xxx_messageInfo_AuthRoleAddResponse.Merge(m, src) |
| 5886 | } |
| 5887 | func (m *AuthRoleAddResponse) XXX_Size() int { |
| 5888 | return m.Size() |
| 5889 | } |
| 5890 | func (m *AuthRoleAddResponse) XXX_DiscardUnknown() { |
| 5891 | xxx_messageInfo_AuthRoleAddResponse.DiscardUnknown(m) |
| 5892 | } |
| 5893 | |
| 5894 | var xxx_messageInfo_AuthRoleAddResponse proto.InternalMessageInfo |
| 5895 | |
| 5896 | func (m *AuthRoleAddResponse) GetHeader() *ResponseHeader { |
| 5897 | if m != nil { |
| 5898 | return m.Header |
| 5899 | } |
| 5900 | return nil |
| 5901 | } |
| 5902 | |
| 5903 | type AuthRoleGetResponse struct { |
| 5904 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` |
| 5905 | Perm []*authpb.Permission `protobuf:"bytes,2,rep,name=perm,proto3" json:"perm,omitempty"` |
| 5906 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 5907 | XXX_unrecognized []byte `json:"-"` |
| 5908 | XXX_sizecache int32 `json:"-"` |
| 5909 | } |
| 5910 | |
| 5911 | func (m *AuthRoleGetResponse) Reset() { *m = AuthRoleGetResponse{} } |
| 5912 | func (m *AuthRoleGetResponse) String() string { return proto.CompactTextString(m) } |
| 5913 | func (*AuthRoleGetResponse) ProtoMessage() {} |
| 5914 | func (*AuthRoleGetResponse) Descriptor() ([]byte, []int) { |
| 5915 | return fileDescriptor_77a6da22d6a3feb1, []int{91} |
| 5916 | } |
| 5917 | func (m *AuthRoleGetResponse) XXX_Unmarshal(b []byte) error { |
| 5918 | return m.Unmarshal(b) |
| 5919 | } |
| 5920 | func (m *AuthRoleGetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 5921 | if deterministic { |
| 5922 | return xxx_messageInfo_AuthRoleGetResponse.Marshal(b, m, deterministic) |
| 5923 | } else { |
| 5924 | b = b[:cap(b)] |
| 5925 | n, err := m.MarshalToSizedBuffer(b) |
| 5926 | if err != nil { |
| 5927 | return nil, err |
| 5928 | } |
| 5929 | return b[:n], nil |
| 5930 | } |
| 5931 | } |
| 5932 | func (m *AuthRoleGetResponse) XXX_Merge(src proto.Message) { |
| 5933 | xxx_messageInfo_AuthRoleGetResponse.Merge(m, src) |
| 5934 | } |
| 5935 | func (m *AuthRoleGetResponse) XXX_Size() int { |
| 5936 | return m.Size() |
| 5937 | } |
| 5938 | func (m *AuthRoleGetResponse) XXX_DiscardUnknown() { |
| 5939 | xxx_messageInfo_AuthRoleGetResponse.DiscardUnknown(m) |
| 5940 | } |
| 5941 | |
| 5942 | var xxx_messageInfo_AuthRoleGetResponse proto.InternalMessageInfo |
| 5943 | |
| 5944 | func (m *AuthRoleGetResponse) GetHeader() *ResponseHeader { |
| 5945 | if m != nil { |
| 5946 | return m.Header |
| 5947 | } |
| 5948 | return nil |
| 5949 | } |
| 5950 | |
| 5951 | func (m *AuthRoleGetResponse) GetPerm() []*authpb.Permission { |
| 5952 | if m != nil { |
| 5953 | return m.Perm |
| 5954 | } |
| 5955 | return nil |
| 5956 | } |
| 5957 | |
| 5958 | type AuthRoleListResponse struct { |
| 5959 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` |
| 5960 | Roles []string `protobuf:"bytes,2,rep,name=roles,proto3" json:"roles,omitempty"` |
| 5961 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 5962 | XXX_unrecognized []byte `json:"-"` |
| 5963 | XXX_sizecache int32 `json:"-"` |
| 5964 | } |
| 5965 | |
| 5966 | func (m *AuthRoleListResponse) Reset() { *m = AuthRoleListResponse{} } |
| 5967 | func (m *AuthRoleListResponse) String() string { return proto.CompactTextString(m) } |
| 5968 | func (*AuthRoleListResponse) ProtoMessage() {} |
| 5969 | func (*AuthRoleListResponse) Descriptor() ([]byte, []int) { |
| 5970 | return fileDescriptor_77a6da22d6a3feb1, []int{92} |
| 5971 | } |
| 5972 | func (m *AuthRoleListResponse) XXX_Unmarshal(b []byte) error { |
| 5973 | return m.Unmarshal(b) |
| 5974 | } |
| 5975 | func (m *AuthRoleListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 5976 | if deterministic { |
| 5977 | return xxx_messageInfo_AuthRoleListResponse.Marshal(b, m, deterministic) |
| 5978 | } else { |
| 5979 | b = b[:cap(b)] |
| 5980 | n, err := m.MarshalToSizedBuffer(b) |
| 5981 | if err != nil { |
| 5982 | return nil, err |
| 5983 | } |
| 5984 | return b[:n], nil |
| 5985 | } |
| 5986 | } |
| 5987 | func (m *AuthRoleListResponse) XXX_Merge(src proto.Message) { |
| 5988 | xxx_messageInfo_AuthRoleListResponse.Merge(m, src) |
| 5989 | } |
| 5990 | func (m *AuthRoleListResponse) XXX_Size() int { |
| 5991 | return m.Size() |
| 5992 | } |
| 5993 | func (m *AuthRoleListResponse) XXX_DiscardUnknown() { |
| 5994 | xxx_messageInfo_AuthRoleListResponse.DiscardUnknown(m) |
| 5995 | } |
| 5996 | |
| 5997 | var xxx_messageInfo_AuthRoleListResponse proto.InternalMessageInfo |
| 5998 | |
| 5999 | func (m *AuthRoleListResponse) GetHeader() *ResponseHeader { |
| 6000 | if m != nil { |
| 6001 | return m.Header |
| 6002 | } |
| 6003 | return nil |
| 6004 | } |
| 6005 | |
| 6006 | func (m *AuthRoleListResponse) GetRoles() []string { |
| 6007 | if m != nil { |
| 6008 | return m.Roles |
| 6009 | } |
| 6010 | return nil |
| 6011 | } |
| 6012 | |
| 6013 | type AuthUserListResponse struct { |
| 6014 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` |
| 6015 | Users []string `protobuf:"bytes,2,rep,name=users,proto3" json:"users,omitempty"` |
| 6016 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 6017 | XXX_unrecognized []byte `json:"-"` |
| 6018 | XXX_sizecache int32 `json:"-"` |
| 6019 | } |
| 6020 | |
| 6021 | func (m *AuthUserListResponse) Reset() { *m = AuthUserListResponse{} } |
| 6022 | func (m *AuthUserListResponse) String() string { return proto.CompactTextString(m) } |
| 6023 | func (*AuthUserListResponse) ProtoMessage() {} |
| 6024 | func (*AuthUserListResponse) Descriptor() ([]byte, []int) { |
| 6025 | return fileDescriptor_77a6da22d6a3feb1, []int{93} |
| 6026 | } |
| 6027 | func (m *AuthUserListResponse) XXX_Unmarshal(b []byte) error { |
| 6028 | return m.Unmarshal(b) |
| 6029 | } |
| 6030 | func (m *AuthUserListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 6031 | if deterministic { |
| 6032 | return xxx_messageInfo_AuthUserListResponse.Marshal(b, m, deterministic) |
| 6033 | } else { |
| 6034 | b = b[:cap(b)] |
| 6035 | n, err := m.MarshalToSizedBuffer(b) |
| 6036 | if err != nil { |
| 6037 | return nil, err |
| 6038 | } |
| 6039 | return b[:n], nil |
| 6040 | } |
| 6041 | } |
| 6042 | func (m *AuthUserListResponse) XXX_Merge(src proto.Message) { |
| 6043 | xxx_messageInfo_AuthUserListResponse.Merge(m, src) |
| 6044 | } |
| 6045 | func (m *AuthUserListResponse) XXX_Size() int { |
| 6046 | return m.Size() |
| 6047 | } |
| 6048 | func (m *AuthUserListResponse) XXX_DiscardUnknown() { |
| 6049 | xxx_messageInfo_AuthUserListResponse.DiscardUnknown(m) |
| 6050 | } |
| 6051 | |
| 6052 | var xxx_messageInfo_AuthUserListResponse proto.InternalMessageInfo |
| 6053 | |
| 6054 | func (m *AuthUserListResponse) GetHeader() *ResponseHeader { |
| 6055 | if m != nil { |
| 6056 | return m.Header |
| 6057 | } |
| 6058 | return nil |
| 6059 | } |
| 6060 | |
| 6061 | func (m *AuthUserListResponse) GetUsers() []string { |
| 6062 | if m != nil { |
| 6063 | return m.Users |
| 6064 | } |
| 6065 | return nil |
| 6066 | } |
| 6067 | |
| 6068 | type AuthRoleDeleteResponse struct { |
| 6069 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` |
| 6070 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 6071 | XXX_unrecognized []byte `json:"-"` |
| 6072 | XXX_sizecache int32 `json:"-"` |
| 6073 | } |
| 6074 | |
| 6075 | func (m *AuthRoleDeleteResponse) Reset() { *m = AuthRoleDeleteResponse{} } |
| 6076 | func (m *AuthRoleDeleteResponse) String() string { return proto.CompactTextString(m) } |
| 6077 | func (*AuthRoleDeleteResponse) ProtoMessage() {} |
| 6078 | func (*AuthRoleDeleteResponse) Descriptor() ([]byte, []int) { |
| 6079 | return fileDescriptor_77a6da22d6a3feb1, []int{94} |
| 6080 | } |
| 6081 | func (m *AuthRoleDeleteResponse) XXX_Unmarshal(b []byte) error { |
| 6082 | return m.Unmarshal(b) |
| 6083 | } |
| 6084 | func (m *AuthRoleDeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 6085 | if deterministic { |
| 6086 | return xxx_messageInfo_AuthRoleDeleteResponse.Marshal(b, m, deterministic) |
| 6087 | } else { |
| 6088 | b = b[:cap(b)] |
| 6089 | n, err := m.MarshalToSizedBuffer(b) |
| 6090 | if err != nil { |
| 6091 | return nil, err |
| 6092 | } |
| 6093 | return b[:n], nil |
| 6094 | } |
| 6095 | } |
| 6096 | func (m *AuthRoleDeleteResponse) XXX_Merge(src proto.Message) { |
| 6097 | xxx_messageInfo_AuthRoleDeleteResponse.Merge(m, src) |
| 6098 | } |
| 6099 | func (m *AuthRoleDeleteResponse) XXX_Size() int { |
| 6100 | return m.Size() |
| 6101 | } |
| 6102 | func (m *AuthRoleDeleteResponse) XXX_DiscardUnknown() { |
| 6103 | xxx_messageInfo_AuthRoleDeleteResponse.DiscardUnknown(m) |
| 6104 | } |
| 6105 | |
| 6106 | var xxx_messageInfo_AuthRoleDeleteResponse proto.InternalMessageInfo |
| 6107 | |
| 6108 | func (m *AuthRoleDeleteResponse) GetHeader() *ResponseHeader { |
| 6109 | if m != nil { |
| 6110 | return m.Header |
| 6111 | } |
| 6112 | return nil |
| 6113 | } |
| 6114 | |
| 6115 | type AuthRoleGrantPermissionResponse struct { |
| 6116 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` |
| 6117 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 6118 | XXX_unrecognized []byte `json:"-"` |
| 6119 | XXX_sizecache int32 `json:"-"` |
| 6120 | } |
| 6121 | |
| 6122 | func (m *AuthRoleGrantPermissionResponse) Reset() { *m = AuthRoleGrantPermissionResponse{} } |
| 6123 | func (m *AuthRoleGrantPermissionResponse) String() string { return proto.CompactTextString(m) } |
| 6124 | func (*AuthRoleGrantPermissionResponse) ProtoMessage() {} |
| 6125 | func (*AuthRoleGrantPermissionResponse) Descriptor() ([]byte, []int) { |
| 6126 | return fileDescriptor_77a6da22d6a3feb1, []int{95} |
| 6127 | } |
| 6128 | func (m *AuthRoleGrantPermissionResponse) XXX_Unmarshal(b []byte) error { |
| 6129 | return m.Unmarshal(b) |
| 6130 | } |
| 6131 | func (m *AuthRoleGrantPermissionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 6132 | if deterministic { |
| 6133 | return xxx_messageInfo_AuthRoleGrantPermissionResponse.Marshal(b, m, deterministic) |
| 6134 | } else { |
| 6135 | b = b[:cap(b)] |
| 6136 | n, err := m.MarshalToSizedBuffer(b) |
| 6137 | if err != nil { |
| 6138 | return nil, err |
| 6139 | } |
| 6140 | return b[:n], nil |
| 6141 | } |
| 6142 | } |
| 6143 | func (m *AuthRoleGrantPermissionResponse) XXX_Merge(src proto.Message) { |
| 6144 | xxx_messageInfo_AuthRoleGrantPermissionResponse.Merge(m, src) |
| 6145 | } |
| 6146 | func (m *AuthRoleGrantPermissionResponse) XXX_Size() int { |
| 6147 | return m.Size() |
| 6148 | } |
| 6149 | func (m *AuthRoleGrantPermissionResponse) XXX_DiscardUnknown() { |
| 6150 | xxx_messageInfo_AuthRoleGrantPermissionResponse.DiscardUnknown(m) |
| 6151 | } |
| 6152 | |
| 6153 | var xxx_messageInfo_AuthRoleGrantPermissionResponse proto.InternalMessageInfo |
| 6154 | |
| 6155 | func (m *AuthRoleGrantPermissionResponse) GetHeader() *ResponseHeader { |
| 6156 | if m != nil { |
| 6157 | return m.Header |
| 6158 | } |
| 6159 | return nil |
| 6160 | } |
| 6161 | |
| 6162 | type AuthRoleRevokePermissionResponse struct { |
| 6163 | Header *ResponseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` |
| 6164 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 6165 | XXX_unrecognized []byte `json:"-"` |
| 6166 | XXX_sizecache int32 `json:"-"` |
| 6167 | } |
| 6168 | |
| 6169 | func (m *AuthRoleRevokePermissionResponse) Reset() { *m = AuthRoleRevokePermissionResponse{} } |
| 6170 | func (m *AuthRoleRevokePermissionResponse) String() string { return proto.CompactTextString(m) } |
| 6171 | func (*AuthRoleRevokePermissionResponse) ProtoMessage() {} |
| 6172 | func (*AuthRoleRevokePermissionResponse) Descriptor() ([]byte, []int) { |
| 6173 | return fileDescriptor_77a6da22d6a3feb1, []int{96} |
| 6174 | } |
| 6175 | func (m *AuthRoleRevokePermissionResponse) XXX_Unmarshal(b []byte) error { |
| 6176 | return m.Unmarshal(b) |
| 6177 | } |
| 6178 | func (m *AuthRoleRevokePermissionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 6179 | if deterministic { |
| 6180 | return xxx_messageInfo_AuthRoleRevokePermissionResponse.Marshal(b, m, deterministic) |
| 6181 | } else { |
| 6182 | b = b[:cap(b)] |
| 6183 | n, err := m.MarshalToSizedBuffer(b) |
| 6184 | if err != nil { |
| 6185 | return nil, err |
| 6186 | } |
| 6187 | return b[:n], nil |
| 6188 | } |
| 6189 | } |
| 6190 | func (m *AuthRoleRevokePermissionResponse) XXX_Merge(src proto.Message) { |
| 6191 | xxx_messageInfo_AuthRoleRevokePermissionResponse.Merge(m, src) |
| 6192 | } |
| 6193 | func (m *AuthRoleRevokePermissionResponse) XXX_Size() int { |
| 6194 | return m.Size() |
| 6195 | } |
| 6196 | func (m *AuthRoleRevokePermissionResponse) XXX_DiscardUnknown() { |
| 6197 | xxx_messageInfo_AuthRoleRevokePermissionResponse.DiscardUnknown(m) |
| 6198 | } |
| 6199 | |
| 6200 | var xxx_messageInfo_AuthRoleRevokePermissionResponse proto.InternalMessageInfo |
| 6201 | |
| 6202 | func (m *AuthRoleRevokePermissionResponse) GetHeader() *ResponseHeader { |
| 6203 | if m != nil { |
| 6204 | return m.Header |
| 6205 | } |
| 6206 | return nil |
| 6207 | } |
| 6208 | |
| 6209 | func init() { |
| 6210 | proto.RegisterEnum("etcdserverpb.AlarmType", AlarmType_name, AlarmType_value) |
| 6211 | proto.RegisterEnum("etcdserverpb.RangeRequest_SortOrder", RangeRequest_SortOrder_name, RangeRequest_SortOrder_value) |
| 6212 | proto.RegisterEnum("etcdserverpb.RangeRequest_SortTarget", RangeRequest_SortTarget_name, RangeRequest_SortTarget_value) |
| 6213 | proto.RegisterEnum("etcdserverpb.Compare_CompareResult", Compare_CompareResult_name, Compare_CompareResult_value) |
| 6214 | proto.RegisterEnum("etcdserverpb.Compare_CompareTarget", Compare_CompareTarget_name, Compare_CompareTarget_value) |
| 6215 | proto.RegisterEnum("etcdserverpb.WatchCreateRequest_FilterType", WatchCreateRequest_FilterType_name, WatchCreateRequest_FilterType_value) |
| 6216 | proto.RegisterEnum("etcdserverpb.AlarmRequest_AlarmAction", AlarmRequest_AlarmAction_name, AlarmRequest_AlarmAction_value) |
| 6217 | proto.RegisterEnum("etcdserverpb.DowngradeRequest_DowngradeAction", DowngradeRequest_DowngradeAction_name, DowngradeRequest_DowngradeAction_value) |
| 6218 | proto.RegisterType((*ResponseHeader)(nil), "etcdserverpb.ResponseHeader") |
| 6219 | proto.RegisterType((*RangeRequest)(nil), "etcdserverpb.RangeRequest") |
| 6220 | proto.RegisterType((*RangeResponse)(nil), "etcdserverpb.RangeResponse") |
| 6221 | proto.RegisterType((*PutRequest)(nil), "etcdserverpb.PutRequest") |
| 6222 | proto.RegisterType((*PutResponse)(nil), "etcdserverpb.PutResponse") |
| 6223 | proto.RegisterType((*DeleteRangeRequest)(nil), "etcdserverpb.DeleteRangeRequest") |
| 6224 | proto.RegisterType((*DeleteRangeResponse)(nil), "etcdserverpb.DeleteRangeResponse") |
| 6225 | proto.RegisterType((*RequestOp)(nil), "etcdserverpb.RequestOp") |
| 6226 | proto.RegisterType((*ResponseOp)(nil), "etcdserverpb.ResponseOp") |
| 6227 | proto.RegisterType((*Compare)(nil), "etcdserverpb.Compare") |
| 6228 | proto.RegisterType((*TxnRequest)(nil), "etcdserverpb.TxnRequest") |
| 6229 | proto.RegisterType((*TxnResponse)(nil), "etcdserverpb.TxnResponse") |
| 6230 | proto.RegisterType((*CompactionRequest)(nil), "etcdserverpb.CompactionRequest") |
| 6231 | proto.RegisterType((*CompactionResponse)(nil), "etcdserverpb.CompactionResponse") |
| 6232 | proto.RegisterType((*HashRequest)(nil), "etcdserverpb.HashRequest") |
| 6233 | proto.RegisterType((*HashKVRequest)(nil), "etcdserverpb.HashKVRequest") |
| 6234 | proto.RegisterType((*HashKVResponse)(nil), "etcdserverpb.HashKVResponse") |
| 6235 | proto.RegisterType((*HashResponse)(nil), "etcdserverpb.HashResponse") |
| 6236 | proto.RegisterType((*SnapshotRequest)(nil), "etcdserverpb.SnapshotRequest") |
| 6237 | proto.RegisterType((*SnapshotResponse)(nil), "etcdserverpb.SnapshotResponse") |
| 6238 | proto.RegisterType((*WatchRequest)(nil), "etcdserverpb.WatchRequest") |
| 6239 | proto.RegisterType((*WatchCreateRequest)(nil), "etcdserverpb.WatchCreateRequest") |
| 6240 | proto.RegisterType((*WatchCancelRequest)(nil), "etcdserverpb.WatchCancelRequest") |
| 6241 | proto.RegisterType((*WatchProgressRequest)(nil), "etcdserverpb.WatchProgressRequest") |
| 6242 | proto.RegisterType((*WatchResponse)(nil), "etcdserverpb.WatchResponse") |
| 6243 | proto.RegisterType((*LeaseGrantRequest)(nil), "etcdserverpb.LeaseGrantRequest") |
| 6244 | proto.RegisterType((*LeaseGrantResponse)(nil), "etcdserverpb.LeaseGrantResponse") |
| 6245 | proto.RegisterType((*LeaseRevokeRequest)(nil), "etcdserverpb.LeaseRevokeRequest") |
| 6246 | proto.RegisterType((*LeaseRevokeResponse)(nil), "etcdserverpb.LeaseRevokeResponse") |
| 6247 | proto.RegisterType((*LeaseCheckpoint)(nil), "etcdserverpb.LeaseCheckpoint") |
| 6248 | proto.RegisterType((*LeaseCheckpointRequest)(nil), "etcdserverpb.LeaseCheckpointRequest") |
| 6249 | proto.RegisterType((*LeaseCheckpointResponse)(nil), "etcdserverpb.LeaseCheckpointResponse") |
| 6250 | proto.RegisterType((*LeaseKeepAliveRequest)(nil), "etcdserverpb.LeaseKeepAliveRequest") |
| 6251 | proto.RegisterType((*LeaseKeepAliveResponse)(nil), "etcdserverpb.LeaseKeepAliveResponse") |
| 6252 | proto.RegisterType((*LeaseTimeToLiveRequest)(nil), "etcdserverpb.LeaseTimeToLiveRequest") |
| 6253 | proto.RegisterType((*LeaseTimeToLiveResponse)(nil), "etcdserverpb.LeaseTimeToLiveResponse") |
| 6254 | proto.RegisterType((*LeaseLeasesRequest)(nil), "etcdserverpb.LeaseLeasesRequest") |
| 6255 | proto.RegisterType((*LeaseStatus)(nil), "etcdserverpb.LeaseStatus") |
| 6256 | proto.RegisterType((*LeaseLeasesResponse)(nil), "etcdserverpb.LeaseLeasesResponse") |
| 6257 | proto.RegisterType((*Member)(nil), "etcdserverpb.Member") |
| 6258 | proto.RegisterType((*MemberAddRequest)(nil), "etcdserverpb.MemberAddRequest") |
| 6259 | proto.RegisterType((*MemberAddResponse)(nil), "etcdserverpb.MemberAddResponse") |
| 6260 | proto.RegisterType((*MemberRemoveRequest)(nil), "etcdserverpb.MemberRemoveRequest") |
| 6261 | proto.RegisterType((*MemberRemoveResponse)(nil), "etcdserverpb.MemberRemoveResponse") |
| 6262 | proto.RegisterType((*MemberUpdateRequest)(nil), "etcdserverpb.MemberUpdateRequest") |
| 6263 | proto.RegisterType((*MemberUpdateResponse)(nil), "etcdserverpb.MemberUpdateResponse") |
| 6264 | proto.RegisterType((*MemberListRequest)(nil), "etcdserverpb.MemberListRequest") |
| 6265 | proto.RegisterType((*MemberListResponse)(nil), "etcdserverpb.MemberListResponse") |
| 6266 | proto.RegisterType((*MemberPromoteRequest)(nil), "etcdserverpb.MemberPromoteRequest") |
| 6267 | proto.RegisterType((*MemberPromoteResponse)(nil), "etcdserverpb.MemberPromoteResponse") |
| 6268 | proto.RegisterType((*DefragmentRequest)(nil), "etcdserverpb.DefragmentRequest") |
| 6269 | proto.RegisterType((*DefragmentResponse)(nil), "etcdserverpb.DefragmentResponse") |
| 6270 | proto.RegisterType((*MoveLeaderRequest)(nil), "etcdserverpb.MoveLeaderRequest") |
| 6271 | proto.RegisterType((*MoveLeaderResponse)(nil), "etcdserverpb.MoveLeaderResponse") |
| 6272 | proto.RegisterType((*AlarmRequest)(nil), "etcdserverpb.AlarmRequest") |
| 6273 | proto.RegisterType((*AlarmMember)(nil), "etcdserverpb.AlarmMember") |
| 6274 | proto.RegisterType((*AlarmResponse)(nil), "etcdserverpb.AlarmResponse") |
| 6275 | proto.RegisterType((*DowngradeRequest)(nil), "etcdserverpb.DowngradeRequest") |
| 6276 | proto.RegisterType((*DowngradeResponse)(nil), "etcdserverpb.DowngradeResponse") |
| 6277 | proto.RegisterType((*DowngradeVersionTestRequest)(nil), "etcdserverpb.DowngradeVersionTestRequest") |
| 6278 | proto.RegisterType((*StatusRequest)(nil), "etcdserverpb.StatusRequest") |
| 6279 | proto.RegisterType((*StatusResponse)(nil), "etcdserverpb.StatusResponse") |
| 6280 | proto.RegisterType((*DowngradeInfo)(nil), "etcdserverpb.DowngradeInfo") |
| 6281 | proto.RegisterType((*AuthEnableRequest)(nil), "etcdserverpb.AuthEnableRequest") |
| 6282 | proto.RegisterType((*AuthDisableRequest)(nil), "etcdserverpb.AuthDisableRequest") |
| 6283 | proto.RegisterType((*AuthStatusRequest)(nil), "etcdserverpb.AuthStatusRequest") |
| 6284 | proto.RegisterType((*AuthenticateRequest)(nil), "etcdserverpb.AuthenticateRequest") |
| 6285 | proto.RegisterType((*AuthUserAddRequest)(nil), "etcdserverpb.AuthUserAddRequest") |
| 6286 | proto.RegisterType((*AuthUserGetRequest)(nil), "etcdserverpb.AuthUserGetRequest") |
| 6287 | proto.RegisterType((*AuthUserDeleteRequest)(nil), "etcdserverpb.AuthUserDeleteRequest") |
| 6288 | proto.RegisterType((*AuthUserChangePasswordRequest)(nil), "etcdserverpb.AuthUserChangePasswordRequest") |
| 6289 | proto.RegisterType((*AuthUserGrantRoleRequest)(nil), "etcdserverpb.AuthUserGrantRoleRequest") |
| 6290 | proto.RegisterType((*AuthUserRevokeRoleRequest)(nil), "etcdserverpb.AuthUserRevokeRoleRequest") |
| 6291 | proto.RegisterType((*AuthRoleAddRequest)(nil), "etcdserverpb.AuthRoleAddRequest") |
| 6292 | proto.RegisterType((*AuthRoleGetRequest)(nil), "etcdserverpb.AuthRoleGetRequest") |
| 6293 | proto.RegisterType((*AuthUserListRequest)(nil), "etcdserverpb.AuthUserListRequest") |
| 6294 | proto.RegisterType((*AuthRoleListRequest)(nil), "etcdserverpb.AuthRoleListRequest") |
| 6295 | proto.RegisterType((*AuthRoleDeleteRequest)(nil), "etcdserverpb.AuthRoleDeleteRequest") |
| 6296 | proto.RegisterType((*AuthRoleGrantPermissionRequest)(nil), "etcdserverpb.AuthRoleGrantPermissionRequest") |
| 6297 | proto.RegisterType((*AuthRoleRevokePermissionRequest)(nil), "etcdserverpb.AuthRoleRevokePermissionRequest") |
| 6298 | proto.RegisterType((*AuthEnableResponse)(nil), "etcdserverpb.AuthEnableResponse") |
| 6299 | proto.RegisterType((*AuthDisableResponse)(nil), "etcdserverpb.AuthDisableResponse") |
| 6300 | proto.RegisterType((*AuthStatusResponse)(nil), "etcdserverpb.AuthStatusResponse") |
| 6301 | proto.RegisterType((*AuthenticateResponse)(nil), "etcdserverpb.AuthenticateResponse") |
| 6302 | proto.RegisterType((*AuthUserAddResponse)(nil), "etcdserverpb.AuthUserAddResponse") |
| 6303 | proto.RegisterType((*AuthUserGetResponse)(nil), "etcdserverpb.AuthUserGetResponse") |
| 6304 | proto.RegisterType((*AuthUserDeleteResponse)(nil), "etcdserverpb.AuthUserDeleteResponse") |
| 6305 | proto.RegisterType((*AuthUserChangePasswordResponse)(nil), "etcdserverpb.AuthUserChangePasswordResponse") |
| 6306 | proto.RegisterType((*AuthUserGrantRoleResponse)(nil), "etcdserverpb.AuthUserGrantRoleResponse") |
| 6307 | proto.RegisterType((*AuthUserRevokeRoleResponse)(nil), "etcdserverpb.AuthUserRevokeRoleResponse") |
| 6308 | proto.RegisterType((*AuthRoleAddResponse)(nil), "etcdserverpb.AuthRoleAddResponse") |
| 6309 | proto.RegisterType((*AuthRoleGetResponse)(nil), "etcdserverpb.AuthRoleGetResponse") |
| 6310 | proto.RegisterType((*AuthRoleListResponse)(nil), "etcdserverpb.AuthRoleListResponse") |
| 6311 | proto.RegisterType((*AuthUserListResponse)(nil), "etcdserverpb.AuthUserListResponse") |
| 6312 | proto.RegisterType((*AuthRoleDeleteResponse)(nil), "etcdserverpb.AuthRoleDeleteResponse") |
| 6313 | proto.RegisterType((*AuthRoleGrantPermissionResponse)(nil), "etcdserverpb.AuthRoleGrantPermissionResponse") |
| 6314 | proto.RegisterType((*AuthRoleRevokePermissionResponse)(nil), "etcdserverpb.AuthRoleRevokePermissionResponse") |
| 6315 | } |
| 6316 | |
| 6317 | func init() { proto.RegisterFile("rpc.proto", fileDescriptor_77a6da22d6a3feb1) } |
| 6318 | |
| 6319 | var fileDescriptor_77a6da22d6a3feb1 = []byte{ |
| 6320 | // 4574 bytes of a gzipped FileDescriptorProto |
| 6321 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x3c, 0x5d, 0x6f, 0x1b, 0x57, |
| 6322 | 0x76, 0x1a, 0x92, 0x12, 0xc9, 0xc3, 0x0f, 0xd1, 0xd7, 0xb2, 0x4d, 0xd3, 0xb6, 0xac, 0x8c, 0xed, |
| 6323 | 0xc4, 0x71, 0x62, 0xd1, 0x96, 0xec, 0x64, 0xeb, 0x22, 0xe9, 0xd2, 0x12, 0x63, 0x6b, 0x2d, 0x4b, |
| 6324 | 0xca, 0x88, 0x76, 0x36, 0x2e, 0xb0, 0xea, 0x88, 0xbc, 0xa6, 0x66, 0x45, 0xce, 0x70, 0x67, 0x86, |
| 6325 | 0xb4, 0x94, 0x3e, 0x6c, 0xba, 0xed, 0x76, 0xb1, 0x2d, 0xb0, 0x40, 0x53, 0xa0, 0x58, 0x14, 0xed, |
| 6326 | 0x4b, 0x5b, 0xa0, 0x7d, 0x68, 0x8b, 0xf6, 0xa1, 0x0f, 0x45, 0x0b, 0xf4, 0xa1, 0x7d, 0x68, 0x1f, |
| 6327 | 0x0a, 0x14, 0xe8, 0x1f, 0x68, 0xd3, 0x7d, 0xea, 0xaf, 0x58, 0xdc, 0xaf, 0xb9, 0x77, 0xbe, 0x24, |
| 6328 | 0x67, 0xa5, 0x60, 0x5f, 0x62, 0xce, 0x3d, 0x9f, 0xf7, 0x9c, 0x7b, 0xcf, 0xb9, 0xf7, 0x9c, 0x1b, |
| 6329 | 0x41, 0xd1, 0x1d, 0x75, 0x17, 0x47, 0xae, 0xe3, 0x3b, 0xa8, 0x8c, 0xfd, 0x6e, 0xcf, 0xc3, 0xee, |
| 6330 | 0x04, 0xbb, 0xa3, 0xdd, 0xc6, 0x5c, 0xdf, 0xe9, 0x3b, 0x14, 0xd0, 0x24, 0xbf, 0x18, 0x4e, 0xa3, |
| 6331 | 0x4e, 0x70, 0x9a, 0xe6, 0xc8, 0x6a, 0x0e, 0x27, 0xdd, 0xee, 0x68, 0xb7, 0xb9, 0x3f, 0xe1, 0x90, |
| 6332 | 0x46, 0x00, 0x31, 0xc7, 0xfe, 0xde, 0x68, 0x97, 0xfe, 0xc3, 0x61, 0x0b, 0x01, 0x6c, 0x82, 0x5d, |
| 6333 | 0xcf, 0x72, 0xec, 0xd1, 0xae, 0xf8, 0xc5, 0x31, 0x2e, 0xf7, 0x1d, 0xa7, 0x3f, 0xc0, 0x8c, 0xde, |
| 6334 | 0xb6, 0x1d, 0xdf, 0xf4, 0x2d, 0xc7, 0xf6, 0x38, 0x94, 0xfd, 0xd3, 0xbd, 0xdd, 0xc7, 0xf6, 0x6d, |
| 6335 | 0x67, 0x84, 0x6d, 0x73, 0x64, 0x4d, 0x96, 0x9a, 0xce, 0x88, 0xe2, 0xc4, 0xf1, 0xf5, 0x9f, 0x68, |
| 6336 | 0x50, 0x35, 0xb0, 0x37, 0x72, 0x6c, 0x0f, 0x3f, 0xc6, 0x66, 0x0f, 0xbb, 0xe8, 0x0a, 0x40, 0x77, |
| 6337 | 0x30, 0xf6, 0x7c, 0xec, 0xee, 0x58, 0xbd, 0xba, 0xb6, 0xa0, 0xdd, 0xcc, 0x19, 0x45, 0x3e, 0xb2, |
| 6338 | 0xd6, 0x43, 0x97, 0xa0, 0x38, 0xc4, 0xc3, 0x5d, 0x06, 0xcd, 0x50, 0x68, 0x81, 0x0d, 0xac, 0xf5, |
| 6339 | 0x50, 0x03, 0x0a, 0x2e, 0x9e, 0x58, 0x44, 0xdd, 0x7a, 0x76, 0x41, 0xbb, 0x99, 0x35, 0x82, 0x6f, |
| 6340 | 0x42, 0xe8, 0x9a, 0x2f, 0xfd, 0x1d, 0x1f, 0xbb, 0xc3, 0x7a, 0x8e, 0x11, 0x92, 0x81, 0x0e, 0x76, |
| 6341 | 0x87, 0x0f, 0xf2, 0x3f, 0xf8, 0x87, 0x7a, 0x76, 0x79, 0xf1, 0x8e, 0xfe, 0xaf, 0xd3, 0x50, 0x36, |
| 6342 | 0x4c, 0xbb, 0x8f, 0x0d, 0xfc, 0xbd, 0x31, 0xf6, 0x7c, 0x54, 0x83, 0xec, 0x3e, 0x3e, 0xa4, 0x7a, |
| 6343 | 0x94, 0x0d, 0xf2, 0x93, 0x31, 0xb2, 0xfb, 0x78, 0x07, 0xdb, 0x4c, 0x83, 0x32, 0x61, 0x64, 0xf7, |
| 6344 | 0x71, 0xdb, 0xee, 0xa1, 0x39, 0x98, 0x1e, 0x58, 0x43, 0xcb, 0xe7, 0xe2, 0xd9, 0x47, 0x48, 0xaf, |
| 6345 | 0x5c, 0x44, 0xaf, 0x15, 0x00, 0xcf, 0x71, 0xfd, 0x1d, 0xc7, 0xed, 0x61, 0xb7, 0x3e, 0xbd, 0xa0, |
| 6346 | 0xdd, 0xac, 0x2e, 0x5d, 0x5f, 0x54, 0x3d, 0xbc, 0xa8, 0x2a, 0xb4, 0xb8, 0xed, 0xb8, 0xfe, 0x26, |
| 6347 | 0xc1, 0x35, 0x8a, 0x9e, 0xf8, 0x89, 0x3e, 0x82, 0x12, 0x65, 0xe2, 0x9b, 0x6e, 0x1f, 0xfb, 0xf5, |
| 6348 | 0x19, 0xca, 0xe5, 0xc6, 0x31, 0x5c, 0x3a, 0x14, 0xd9, 0xa0, 0xe2, 0xd9, 0x6f, 0xa4, 0x43, 0xd9, |
| 6349 | 0xc3, 0xae, 0x65, 0x0e, 0xac, 0xcf, 0xcc, 0xdd, 0x01, 0xae, 0xe7, 0x17, 0xb4, 0x9b, 0x05, 0x23, |
| 6350 | 0x34, 0x46, 0xe6, 0xbf, 0x8f, 0x0f, 0xbd, 0x1d, 0xc7, 0x1e, 0x1c, 0xd6, 0x0b, 0x14, 0xa1, 0x40, |
| 6351 | 0x06, 0x36, 0xed, 0xc1, 0x21, 0xf5, 0x9e, 0x33, 0xb6, 0x7d, 0x06, 0x2d, 0x52, 0x68, 0x91, 0x8e, |
| 6352 | 0x50, 0xf0, 0x5d, 0xa8, 0x0d, 0x2d, 0x7b, 0x67, 0xe8, 0xf4, 0x76, 0x02, 0x83, 0x00, 0x31, 0xc8, |
| 6353 | 0xc3, 0xfc, 0xef, 0x51, 0x0f, 0xdc, 0x35, 0xaa, 0x43, 0xcb, 0x7e, 0xea, 0xf4, 0x0c, 0x61, 0x1f, |
| 6354 | 0x42, 0x62, 0x1e, 0x84, 0x49, 0x4a, 0x51, 0x12, 0xf3, 0x40, 0x25, 0x79, 0x1f, 0xce, 0x12, 0x29, |
| 6355 | 0x5d, 0x17, 0x9b, 0x3e, 0x96, 0x54, 0xe5, 0x30, 0xd5, 0x99, 0xa1, 0x65, 0xaf, 0x50, 0x94, 0x10, |
| 6356 | 0xa1, 0x79, 0x10, 0x23, 0xac, 0x44, 0x09, 0xcd, 0x83, 0x30, 0xa1, 0xfe, 0x3e, 0x14, 0x03, 0xbf, |
| 6357 | 0xa0, 0x02, 0xe4, 0x36, 0x36, 0x37, 0xda, 0xb5, 0x29, 0x04, 0x30, 0xd3, 0xda, 0x5e, 0x69, 0x6f, |
| 6358 | 0xac, 0xd6, 0x34, 0x54, 0x82, 0xfc, 0x6a, 0x9b, 0x7d, 0x64, 0x1a, 0xf9, 0x2f, 0xf8, 0x7a, 0x7b, |
| 6359 | 0x02, 0x20, 0x5d, 0x81, 0xf2, 0x90, 0x7d, 0xd2, 0xfe, 0xb4, 0x36, 0x45, 0x90, 0x9f, 0xb7, 0x8d, |
| 6360 | 0xed, 0xb5, 0xcd, 0x8d, 0x9a, 0x46, 0xb8, 0xac, 0x18, 0xed, 0x56, 0xa7, 0x5d, 0xcb, 0x10, 0x8c, |
| 6361 | 0xa7, 0x9b, 0xab, 0xb5, 0x2c, 0x2a, 0xc2, 0xf4, 0xf3, 0xd6, 0xfa, 0xb3, 0x76, 0x2d, 0x17, 0x30, |
| 6362 | 0x93, 0xab, 0xf8, 0x4f, 0x34, 0xa8, 0x70, 0x77, 0xb3, 0xbd, 0x85, 0xee, 0xc1, 0xcc, 0x1e, 0xdd, |
| 6363 | 0x5f, 0x74, 0x25, 0x97, 0x96, 0x2e, 0x47, 0xd6, 0x46, 0x68, 0x0f, 0x1a, 0x1c, 0x17, 0xe9, 0x90, |
| 6364 | 0xdd, 0x9f, 0x78, 0xf5, 0xcc, 0x42, 0xf6, 0x66, 0x69, 0xa9, 0xb6, 0xc8, 0x22, 0xc9, 0xe2, 0x13, |
| 6365 | 0x7c, 0xf8, 0xdc, 0x1c, 0x8c, 0xb1, 0x41, 0x80, 0x08, 0x41, 0x6e, 0xe8, 0xb8, 0x98, 0x2e, 0xf8, |
| 6366 | 0x82, 0x41, 0x7f, 0x93, 0x5d, 0x40, 0x7d, 0xce, 0x17, 0x3b, 0xfb, 0x90, 0xea, 0xfd, 0xa7, 0x06, |
| 6367 | 0xb0, 0x35, 0xf6, 0xd3, 0xb7, 0xd8, 0x1c, 0x4c, 0x4f, 0x88, 0x04, 0xbe, 0xbd, 0xd8, 0x07, 0xdd, |
| 6368 | 0x5b, 0xd8, 0xf4, 0x70, 0xb0, 0xb7, 0xc8, 0x07, 0x5a, 0x80, 0xfc, 0xc8, 0xc5, 0x93, 0x9d, 0xfd, |
| 6369 | 0x09, 0x95, 0x56, 0x90, 0x7e, 0x9a, 0x21, 0xe3, 0x4f, 0x26, 0xe8, 0x16, 0x94, 0xad, 0xbe, 0xed, |
| 6370 | 0xb8, 0x78, 0x87, 0x31, 0x9d, 0x56, 0xd1, 0x96, 0x8c, 0x12, 0x03, 0xd2, 0x29, 0x29, 0xb8, 0x4c, |
| 6371 | 0xd4, 0x4c, 0x22, 0xee, 0x3a, 0x81, 0xc9, 0xf9, 0x7c, 0xae, 0x41, 0x89, 0xce, 0xe7, 0x44, 0xc6, |
| 6372 | 0x5e, 0x92, 0x13, 0xc9, 0x50, 0xb2, 0x98, 0xc1, 0x63, 0x53, 0x93, 0x2a, 0xd8, 0x80, 0x56, 0xf1, |
| 6373 | 0x00, 0xfb, 0xf8, 0x24, 0xc1, 0x4b, 0x31, 0x65, 0x36, 0xd1, 0x94, 0x52, 0xde, 0x5f, 0x68, 0x70, |
| 6374 | 0x36, 0x24, 0xf0, 0x44, 0x53, 0xaf, 0x43, 0xbe, 0x47, 0x99, 0x31, 0x9d, 0xb2, 0x86, 0xf8, 0x44, |
| 6375 | 0xf7, 0xa0, 0xc0, 0x55, 0xf2, 0xea, 0xd9, 0xe4, 0x65, 0x28, 0xb5, 0xcc, 0x33, 0x2d, 0x3d, 0xa9, |
| 6376 | 0xe6, 0x3f, 0x65, 0xa0, 0xc8, 0x8d, 0xb1, 0x39, 0x42, 0x2d, 0xa8, 0xb8, 0xec, 0x63, 0x87, 0xce, |
| 6377 | 0x99, 0xeb, 0xd8, 0x48, 0x8f, 0x93, 0x8f, 0xa7, 0x8c, 0x32, 0x27, 0xa1, 0xc3, 0xe8, 0x57, 0xa1, |
| 6378 | 0x24, 0x58, 0x8c, 0xc6, 0x3e, 0x77, 0x54, 0x3d, 0xcc, 0x40, 0x2e, 0xed, 0xc7, 0x53, 0x06, 0x70, |
| 6379 | 0xf4, 0xad, 0xb1, 0x8f, 0x3a, 0x30, 0x27, 0x88, 0xd9, 0xfc, 0xb8, 0x1a, 0x59, 0xca, 0x65, 0x21, |
| 6380 | 0xcc, 0x25, 0xee, 0xce, 0xc7, 0x53, 0x06, 0xe2, 0xf4, 0x0a, 0x10, 0xad, 0x4a, 0x95, 0xfc, 0x03, |
| 6381 | 0x96, 0x5f, 0x62, 0x2a, 0x75, 0x0e, 0x6c, 0xce, 0x44, 0x58, 0x6b, 0x59, 0xd1, 0xad, 0x73, 0x60, |
| 6382 | 0x07, 0x26, 0x7b, 0x58, 0x84, 0x3c, 0x1f, 0xd6, 0xff, 0x23, 0x03, 0x20, 0x3c, 0xb6, 0x39, 0x42, |
| 6383 | 0xab, 0x50, 0x75, 0xf9, 0x57, 0xc8, 0x7e, 0x97, 0x12, 0xed, 0xc7, 0x1d, 0x3d, 0x65, 0x54, 0x04, |
| 6384 | 0x11, 0x53, 0xf7, 0x43, 0x28, 0x07, 0x5c, 0xa4, 0x09, 0x2f, 0x26, 0x98, 0x30, 0xe0, 0x50, 0x12, |
| 6385 | 0x04, 0xc4, 0x88, 0x9f, 0xc0, 0xb9, 0x80, 0x3e, 0xc1, 0x8a, 0x6f, 0x1c, 0x61, 0xc5, 0x80, 0xe1, |
| 6386 | 0x59, 0xc1, 0x41, 0xb5, 0xe3, 0x23, 0x45, 0x31, 0x69, 0xc8, 0x8b, 0x09, 0x86, 0x64, 0x48, 0xaa, |
| 6387 | 0x25, 0x03, 0x0d, 0x43, 0xa6, 0x04, 0x92, 0xf6, 0xd9, 0xb8, 0xfe, 0x57, 0x39, 0xc8, 0xaf, 0x38, |
| 6388 | 0xc3, 0x91, 0xe9, 0x92, 0x45, 0x34, 0xe3, 0x62, 0x6f, 0x3c, 0xf0, 0xa9, 0x01, 0xab, 0x4b, 0xd7, |
| 6389 | 0xc2, 0x32, 0x38, 0x9a, 0xf8, 0xd7, 0xa0, 0xa8, 0x06, 0x27, 0x21, 0xc4, 0x3c, 0xcb, 0x67, 0x5e, |
| 6390 | 0x83, 0x98, 0xe7, 0x78, 0x4e, 0x22, 0x02, 0x42, 0x56, 0x06, 0x84, 0x06, 0xe4, 0xf9, 0x01, 0x8f, |
| 6391 | 0x05, 0xeb, 0xc7, 0x53, 0x86, 0x18, 0x40, 0x6f, 0xc3, 0x6c, 0x34, 0x15, 0x4e, 0x73, 0x9c, 0x6a, |
| 6392 | 0x37, 0x9c, 0x39, 0xaf, 0x41, 0x39, 0x94, 0xa1, 0x67, 0x38, 0x5e, 0x69, 0xa8, 0xe4, 0xe5, 0xf3, |
| 6393 | 0x22, 0xac, 0x93, 0x63, 0x45, 0xf9, 0xf1, 0x94, 0x08, 0xec, 0x57, 0x45, 0x60, 0x2f, 0xa8, 0x89, |
| 6394 | 0x96, 0xd8, 0x95, 0xc7, 0xf8, 0xeb, 0x6a, 0xd4, 0xfa, 0x26, 0x21, 0x0e, 0x90, 0x64, 0xf8, 0xd2, |
| 6395 | 0x0d, 0xa8, 0x84, 0x4c, 0x46, 0x72, 0x64, 0xfb, 0xe3, 0x67, 0xad, 0x75, 0x96, 0x50, 0x1f, 0xd1, |
| 6396 | 0x1c, 0x6a, 0xd4, 0x34, 0x92, 0xa0, 0xd7, 0xdb, 0xdb, 0xdb, 0xb5, 0x0c, 0x3a, 0x0f, 0xc5, 0x8d, |
| 6397 | 0xcd, 0xce, 0x0e, 0xc3, 0xca, 0x36, 0xf2, 0x7f, 0xcc, 0x22, 0x89, 0xcc, 0xcf, 0x9f, 0x06, 0x3c, |
| 6398 | 0x79, 0x8a, 0x56, 0x32, 0xf3, 0x94, 0x92, 0x99, 0x35, 0x91, 0x99, 0x33, 0x32, 0x33, 0x67, 0x11, |
| 6399 | 0x82, 0xe9, 0xf5, 0x76, 0x6b, 0x9b, 0x26, 0x69, 0xc6, 0x7a, 0x39, 0x9e, 0xad, 0x1f, 0x56, 0xa1, |
| 6400 | 0xcc, 0xdc, 0xb3, 0x33, 0xb6, 0xc9, 0x61, 0xe2, 0xaf, 0x35, 0x00, 0xb9, 0x61, 0x51, 0x13, 0xf2, |
| 6401 | 0x5d, 0xa6, 0x42, 0x5d, 0xa3, 0x11, 0xf0, 0x5c, 0xa2, 0xc7, 0x0d, 0x81, 0x85, 0xee, 0x42, 0xde, |
| 6402 | 0x1b, 0x77, 0xbb, 0xd8, 0x13, 0x99, 0xfb, 0x42, 0x34, 0x08, 0xf3, 0x80, 0x68, 0x08, 0x3c, 0x42, |
| 6403 | 0xf2, 0xd2, 0xb4, 0x06, 0x63, 0x9a, 0xc7, 0x8f, 0x26, 0xe1, 0x78, 0x32, 0xc6, 0xfe, 0x99, 0x06, |
| 6404 | 0x25, 0x65, 0x5b, 0xfc, 0x82, 0x29, 0xe0, 0x32, 0x14, 0xa9, 0x32, 0xb8, 0xc7, 0x93, 0x40, 0xc1, |
| 6405 | 0x90, 0x03, 0xe8, 0x3d, 0x28, 0x8a, 0x9d, 0x24, 0xf2, 0x40, 0x3d, 0x99, 0xed, 0xe6, 0xc8, 0x90, |
| 6406 | 0xa8, 0x52, 0xc9, 0x0e, 0x9c, 0xa1, 0x76, 0xea, 0x92, 0xdb, 0x87, 0xb0, 0xac, 0x7a, 0x2c, 0xd7, |
| 6407 | 0x22, 0xc7, 0xf2, 0x06, 0x14, 0x46, 0x7b, 0x87, 0x9e, 0xd5, 0x35, 0x07, 0x5c, 0x9d, 0xe0, 0x5b, |
| 6408 | 0x72, 0xdd, 0x06, 0xa4, 0x72, 0x3d, 0x89, 0x01, 0x24, 0xd3, 0xf3, 0x50, 0x7a, 0x6c, 0x7a, 0x7b, |
| 6409 | 0x5c, 0x49, 0x39, 0x7e, 0x0f, 0x2a, 0x64, 0xfc, 0xc9, 0xf3, 0xd7, 0x50, 0x5f, 0x50, 0x2d, 0xeb, |
| 6410 | 0xff, 0xac, 0x41, 0x55, 0x90, 0x9d, 0xc8, 0x41, 0x08, 0x72, 0x7b, 0xa6, 0xb7, 0x47, 0x8d, 0x51, |
| 6411 | 0x31, 0xe8, 0x6f, 0xf4, 0x36, 0xd4, 0xba, 0x6c, 0xfe, 0x3b, 0x91, 0x7b, 0xd7, 0x2c, 0x1f, 0x0f, |
| 6412 | 0xf6, 0xfe, 0xbb, 0x50, 0x21, 0x24, 0x3b, 0xe1, 0x7b, 0x90, 0xd8, 0xc6, 0xef, 0x19, 0xe5, 0x3d, |
| 6413 | 0x3a, 0xe7, 0xa8, 0xfa, 0x26, 0x94, 0x99, 0x31, 0x4e, 0x5b, 0x77, 0x69, 0xd7, 0x06, 0xcc, 0x6e, |
| 6414 | 0xdb, 0xe6, 0xc8, 0xdb, 0x73, 0xfc, 0x88, 0xcd, 0x97, 0xf5, 0xbf, 0xd7, 0xa0, 0x26, 0x81, 0x27, |
| 6415 | 0xd2, 0xe1, 0x2d, 0x98, 0x75, 0xf1, 0xd0, 0xb4, 0x6c, 0xcb, 0xee, 0xef, 0xec, 0x1e, 0xfa, 0xd8, |
| 6416 | 0xe3, 0xd7, 0xd7, 0x6a, 0x30, 0xfc, 0x90, 0x8c, 0x12, 0x65, 0x77, 0x07, 0xce, 0x2e, 0x0f, 0xd2, |
| 6417 | 0xf4, 0x37, 0x7a, 0x23, 0x1c, 0xa5, 0x8b, 0xd2, 0x6e, 0x62, 0x5c, 0xea, 0xfc, 0xd3, 0x0c, 0x94, |
| 6418 | 0x3f, 0x31, 0xfd, 0xae, 0x58, 0x41, 0x68, 0x0d, 0xaa, 0x41, 0x18, 0xa7, 0x23, 0x5c, 0xef, 0xc8, |
| 6419 | 0x81, 0x83, 0xd2, 0x88, 0x7b, 0x8d, 0x38, 0x70, 0x54, 0xba, 0xea, 0x00, 0x65, 0x65, 0xda, 0x5d, |
| 6420 | 0x3c, 0x08, 0x58, 0x65, 0xd2, 0x59, 0x51, 0x44, 0x95, 0x95, 0x3a, 0x80, 0xbe, 0x0d, 0xb5, 0x91, |
| 6421 | 0xeb, 0xf4, 0x5d, 0xec, 0x79, 0x01, 0x33, 0x96, 0xc2, 0xf5, 0x04, 0x66, 0x5b, 0x1c, 0x35, 0x72, |
| 6422 | 0x8a, 0xb9, 0xf7, 0x78, 0xca, 0x98, 0x1d, 0x85, 0x61, 0x32, 0xb0, 0xce, 0xca, 0xf3, 0x1e, 0x8b, |
| 6423 | 0xac, 0x3f, 0xca, 0x02, 0x8a, 0x4f, 0xf3, 0xab, 0x1e, 0x93, 0x6f, 0x40, 0xd5, 0xf3, 0x4d, 0x37, |
| 6424 | 0xb6, 0xe6, 0x2b, 0x74, 0x34, 0x58, 0xf1, 0x6f, 0x41, 0xa0, 0xd9, 0x8e, 0xed, 0xf8, 0xd6, 0xcb, |
| 6425 | 0x43, 0x76, 0x41, 0x31, 0xaa, 0x62, 0x78, 0x83, 0x8e, 0xa2, 0x0d, 0xc8, 0xbf, 0xb4, 0x06, 0x3e, |
| 6426 | 0x76, 0xbd, 0xfa, 0xf4, 0x42, 0xf6, 0x66, 0x75, 0xe9, 0x9d, 0xe3, 0x1c, 0xb3, 0xf8, 0x11, 0xc5, |
| 6427 | 0xef, 0x1c, 0x8e, 0xd4, 0xd3, 0x2f, 0x67, 0xa2, 0x1e, 0xe3, 0x67, 0x92, 0x6f, 0x44, 0x3a, 0x14, |
| 6428 | 0x5e, 0x11, 0xa6, 0x3b, 0x56, 0x8f, 0xe6, 0xe2, 0x60, 0x1f, 0xde, 0x33, 0xf2, 0x14, 0xb0, 0xd6, |
| 6429 | 0x43, 0xd7, 0xa0, 0xf0, 0xd2, 0x35, 0xfb, 0x43, 0x6c, 0xfb, 0xec, 0x96, 0x2f, 0x71, 0x02, 0x80, |
| 6430 | 0xbe, 0x08, 0x20, 0x55, 0x21, 0x99, 0x6f, 0x63, 0x73, 0xeb, 0x59, 0xa7, 0x36, 0x85, 0xca, 0x50, |
| 6431 | 0xd8, 0xd8, 0x5c, 0x6d, 0xaf, 0xb7, 0x49, 0x6e, 0x14, 0x39, 0xef, 0xae, 0xdc, 0x74, 0x2d, 0xe1, |
| 6432 | 0x88, 0xd0, 0x9a, 0x50, 0xf5, 0xd2, 0xc2, 0x97, 0x6e, 0xa1, 0x97, 0x60, 0x71, 0x57, 0xbf, 0x0a, |
| 6433 | 0x73, 0x49, 0x4b, 0x43, 0x20, 0xdc, 0xd3, 0xff, 0x2d, 0x03, 0x15, 0xbe, 0x11, 0x4e, 0xb4, 0x73, |
| 6434 | 0x2f, 0x2a, 0x5a, 0xf1, 0xeb, 0x89, 0x30, 0x52, 0x1d, 0xf2, 0x6c, 0x83, 0xf4, 0xf8, 0xfd, 0x57, |
| 6435 | 0x7c, 0x92, 0xe0, 0xcc, 0xd6, 0x3b, 0xee, 0x71, 0xb7, 0x07, 0xdf, 0x89, 0x61, 0x73, 0x3a, 0x35, |
| 6436 | 0x6c, 0x06, 0x1b, 0xce, 0xf4, 0xf8, 0xc1, 0xaa, 0x28, 0x5d, 0x51, 0x16, 0x9b, 0x8a, 0x00, 0x43, |
| 6437 | 0x3e, 0xcb, 0xa7, 0xf8, 0x0c, 0xdd, 0x80, 0x19, 0x3c, 0xc1, 0xb6, 0xef, 0xd5, 0x4b, 0x34, 0x91, |
| 6438 | 0x56, 0xc4, 0x85, 0xaa, 0x4d, 0x46, 0x0d, 0x0e, 0x94, 0xae, 0xfa, 0x10, 0xce, 0xd0, 0xfb, 0xee, |
| 6439 | 0x23, 0xd7, 0xb4, 0xd5, 0x3b, 0x7b, 0xa7, 0xb3, 0xce, 0xd3, 0x0e, 0xf9, 0x89, 0xaa, 0x90, 0x59, |
| 6440 | 0x5b, 0xe5, 0xf6, 0xc9, 0xac, 0xad, 0x4a, 0xfa, 0xdf, 0xd7, 0x00, 0xa9, 0x0c, 0x4e, 0xe4, 0x8b, |
| 6441 | 0x88, 0x14, 0xa1, 0x47, 0x56, 0xea, 0x31, 0x07, 0xd3, 0xd8, 0x75, 0x1d, 0x97, 0x05, 0x4a, 0x83, |
| 6442 | 0x7d, 0x48, 0x6d, 0x6e, 0x73, 0x65, 0x0c, 0x3c, 0x71, 0xf6, 0x83, 0x08, 0xc0, 0xd8, 0x6a, 0x71, |
| 6443 | 0xe5, 0x3b, 0x70, 0x36, 0x84, 0x7e, 0x3a, 0x29, 0x7e, 0x13, 0x66, 0x29, 0xd7, 0x95, 0x3d, 0xdc, |
| 6444 | 0xdd, 0x1f, 0x39, 0x96, 0x1d, 0xd3, 0x00, 0x5d, 0x23, 0xb1, 0x4b, 0xa4, 0x0b, 0x32, 0x45, 0x36, |
| 6445 | 0xe7, 0x72, 0x30, 0xd8, 0xe9, 0xac, 0xcb, 0xa5, 0xbe, 0x0b, 0xe7, 0x23, 0x0c, 0xc5, 0xcc, 0x7e, |
| 6446 | 0x0d, 0x4a, 0xdd, 0x60, 0xd0, 0xe3, 0x27, 0xc8, 0x2b, 0x61, 0x75, 0xa3, 0xa4, 0x2a, 0x85, 0x94, |
| 6447 | 0xf1, 0x6d, 0xb8, 0x10, 0x93, 0x71, 0x1a, 0xe6, 0xb8, 0xa7, 0xdf, 0x81, 0x73, 0x94, 0xf3, 0x13, |
| 6448 | 0x8c, 0x47, 0xad, 0x81, 0x35, 0x39, 0xde, 0x2d, 0x87, 0x7c, 0xbe, 0x0a, 0xc5, 0xd7, 0xbb, 0xac, |
| 6449 | 0xa4, 0xe8, 0x36, 0x17, 0xdd, 0xb1, 0x86, 0xb8, 0xe3, 0xac, 0xa7, 0x6b, 0x4b, 0x12, 0xf9, 0x3e, |
| 6450 | 0x3e, 0xf4, 0xf8, 0xf1, 0x91, 0xfe, 0x96, 0xd1, 0xeb, 0x6f, 0x35, 0x6e, 0x4e, 0x95, 0xcf, 0xd7, |
| 6451 | 0xbc, 0x35, 0xe6, 0x01, 0xfa, 0x64, 0x0f, 0xe2, 0x1e, 0x01, 0xb0, 0xda, 0x9c, 0x32, 0x12, 0x28, |
| 6452 | 0x4c, 0xb2, 0x50, 0x39, 0xaa, 0xf0, 0x15, 0xbe, 0x71, 0xe8, 0x7f, 0xbc, 0xd8, 0x49, 0xe9, 0x4d, |
| 6453 | 0x28, 0x51, 0xc8, 0xb6, 0x6f, 0xfa, 0x63, 0x2f, 0xcd, 0x73, 0xcb, 0xfa, 0x8f, 0x34, 0xbe, 0xa3, |
| 6454 | 0x04, 0x9f, 0x13, 0xcd, 0xf9, 0x2e, 0xcc, 0xd0, 0x1b, 0xa2, 0xb8, 0xe9, 0x5c, 0x4c, 0x58, 0xd8, |
| 6455 | 0x4c, 0x23, 0x83, 0x23, 0x2a, 0xe7, 0x24, 0x0d, 0x66, 0x9e, 0xd2, 0xce, 0x81, 0xa2, 0x6d, 0x4e, |
| 6456 | 0x78, 0xce, 0x36, 0x87, 0xac, 0xfc, 0x58, 0x34, 0xe8, 0x6f, 0x7a, 0x21, 0xc0, 0xd8, 0x7d, 0x66, |
| 6457 | 0xac, 0xb3, 0x1b, 0x48, 0xd1, 0x08, 0xbe, 0x89, 0x61, 0xbb, 0x03, 0x0b, 0xdb, 0x3e, 0x85, 0xe6, |
| 6458 | 0x28, 0x54, 0x19, 0x41, 0x37, 0xa0, 0x68, 0x79, 0xeb, 0xd8, 0x74, 0x6d, 0x5e, 0xe2, 0x57, 0x02, |
| 6459 | 0xb3, 0x84, 0xc8, 0x35, 0xf6, 0x1d, 0xa8, 0x31, 0xcd, 0x5a, 0xbd, 0x9e, 0x72, 0xda, 0x0f, 0xe4, |
| 6460 | 0x6b, 0x11, 0xf9, 0x21, 0xfe, 0x99, 0xe3, 0xf9, 0xff, 0x9d, 0x06, 0x67, 0x14, 0x01, 0x27, 0x72, |
| 6461 | 0xc1, 0xbb, 0x30, 0xc3, 0xfa, 0x2f, 0xfc, 0x28, 0x38, 0x17, 0xa6, 0x62, 0x62, 0x0c, 0x8e, 0x83, |
| 6462 | 0x16, 0x21, 0xcf, 0x7e, 0x89, 0x6b, 0x5c, 0x32, 0xba, 0x40, 0x92, 0x2a, 0x2f, 0xc2, 0x59, 0x0e, |
| 6463 | 0xc3, 0x43, 0x27, 0x69, 0xcf, 0xe5, 0xc2, 0x11, 0xe2, 0x87, 0x1a, 0xcc, 0x85, 0x09, 0x4e, 0x34, |
| 6464 | 0x4b, 0x45, 0xef, 0xcc, 0x57, 0xd2, 0xfb, 0x5b, 0x42, 0xef, 0x67, 0xa3, 0x9e, 0x72, 0xe4, 0x8c, |
| 6465 | 0xae, 0x38, 0xd5, 0xbb, 0x99, 0xb0, 0x77, 0x25, 0xaf, 0x9f, 0x04, 0x73, 0x12, 0xcc, 0x4e, 0x34, |
| 6466 | 0xa7, 0xf7, 0x5f, 0x6b, 0x4e, 0xca, 0x11, 0x2c, 0x36, 0xb9, 0x35, 0xb1, 0x8c, 0xd6, 0x2d, 0x2f, |
| 6467 | 0xc8, 0x38, 0xef, 0x40, 0x79, 0x60, 0xd9, 0xd8, 0x74, 0x79, 0x0f, 0x49, 0x53, 0xd7, 0xe3, 0x7d, |
| 6468 | 0x23, 0x04, 0x94, 0xac, 0x7e, 0x5b, 0x03, 0xa4, 0xf2, 0xfa, 0xe5, 0x78, 0xab, 0x29, 0x0c, 0xbc, |
| 6469 | 0xe5, 0x3a, 0x43, 0xc7, 0x3f, 0x6e, 0x99, 0xdd, 0xd3, 0x7f, 0x57, 0x83, 0x73, 0x11, 0x8a, 0x5f, |
| 6470 | 0x86, 0xe6, 0xf7, 0xf4, 0xcb, 0x70, 0x66, 0x15, 0x8b, 0x33, 0x5e, 0xac, 0x76, 0xb0, 0x0d, 0x48, |
| 6471 | 0x85, 0x9e, 0xce, 0x29, 0xe6, 0x1b, 0x70, 0xe6, 0xa9, 0x33, 0x21, 0x81, 0x9c, 0x80, 0x65, 0x98, |
| 6472 | 0x62, 0xc5, 0xac, 0xc0, 0x5e, 0xc1, 0xb7, 0x0c, 0xbd, 0xdb, 0x80, 0x54, 0xca, 0xd3, 0x50, 0x67, |
| 6473 | 0x59, 0xff, 0x5f, 0x0d, 0xca, 0xad, 0x81, 0xe9, 0x0e, 0x85, 0x2a, 0x1f, 0xc2, 0x0c, 0xab, 0xcc, |
| 6474 | 0xf0, 0x32, 0xeb, 0x9b, 0x61, 0x7e, 0x2a, 0x2e, 0xfb, 0x68, 0xb1, 0x3a, 0x0e, 0xa7, 0x22, 0x53, |
| 6475 | 0xe1, 0x9d, 0xe5, 0xd5, 0x48, 0xa7, 0x79, 0x15, 0xdd, 0x86, 0x69, 0x93, 0x90, 0xd0, 0xf4, 0x5a, |
| 6476 | 0x8d, 0x96, 0xcb, 0x28, 0x37, 0x72, 0x25, 0x32, 0x18, 0x96, 0xfe, 0x01, 0x94, 0x14, 0x09, 0x28, |
| 6477 | 0x0f, 0xd9, 0x47, 0x6d, 0x7e, 0x4d, 0x6a, 0xad, 0x74, 0xd6, 0x9e, 0xb3, 0x12, 0x62, 0x15, 0x60, |
| 6478 | 0xb5, 0x1d, 0x7c, 0x67, 0x12, 0x1a, 0x7b, 0x26, 0xe7, 0xc3, 0xf3, 0x96, 0xaa, 0xa1, 0x96, 0xa6, |
| 6479 | 0x61, 0xe6, 0x75, 0x34, 0x94, 0x22, 0x7e, 0x4b, 0x83, 0x0a, 0x37, 0xcd, 0x49, 0x53, 0x33, 0xe5, |
| 6480 | 0x9c, 0x92, 0x9a, 0x95, 0x69, 0x18, 0x1c, 0x51, 0xea, 0xf0, 0x2f, 0x1a, 0xd4, 0x56, 0x9d, 0x57, |
| 6481 | 0x76, 0xdf, 0x35, 0x7b, 0xc1, 0x1e, 0xfc, 0x28, 0xe2, 0xce, 0xc5, 0x48, 0xa5, 0x3f, 0x82, 0x2f, |
| 6482 | 0x07, 0x22, 0x6e, 0xad, 0xcb, 0x5a, 0x0a, 0xcb, 0xef, 0xe2, 0x53, 0xff, 0x26, 0xcc, 0x46, 0x88, |
| 6483 | 0x88, 0x83, 0x9e, 0xb7, 0xd6, 0xd7, 0x56, 0x89, 0x43, 0x68, 0xbd, 0xb7, 0xbd, 0xd1, 0x7a, 0xb8, |
| 6484 | 0xde, 0xe6, 0x5d, 0xd9, 0xd6, 0xc6, 0x4a, 0x7b, 0x5d, 0x3a, 0xea, 0xbe, 0x98, 0xc1, 0x7d, 0x7d, |
| 6485 | 0x00, 0x67, 0x14, 0x85, 0x4e, 0xda, 0x1c, 0x4b, 0xd6, 0x57, 0x4a, 0xfb, 0x06, 0x5c, 0x0a, 0xa4, |
| 6486 | 0x3d, 0x67, 0xc0, 0x0e, 0xf6, 0xd4, 0xcb, 0xda, 0x84, 0x0b, 0x2d, 0x1a, 0xe4, 0xa7, 0xa0, 0x7c, |
| 6487 | 0x4f, 0xaf, 0x43, 0x85, 0x9f, 0x8f, 0xa2, 0x21, 0xe3, 0xcf, 0x73, 0x50, 0x15, 0xa0, 0xaf, 0x47, |
| 6488 | 0x7f, 0x74, 0x1e, 0x66, 0x7a, 0xbb, 0xdb, 0xd6, 0x67, 0xa2, 0xa3, 0xcb, 0xbf, 0xc8, 0xf8, 0x80, |
| 6489 | 0xc9, 0x61, 0xef, 0x34, 0xf8, 0x17, 0xba, 0xcc, 0x9e, 0x70, 0xac, 0xd9, 0x3d, 0x7c, 0x40, 0x8f, |
| 6490 | 0x51, 0x39, 0x43, 0x0e, 0xd0, 0x72, 0x28, 0x7f, 0xcf, 0x41, 0x6f, 0xc9, 0xca, 0xfb, 0x0e, 0xb4, |
| 6491 | 0x0c, 0x35, 0xf2, 0xbb, 0x35, 0x1a, 0x0d, 0x2c, 0xdc, 0x63, 0x0c, 0xc8, 0x05, 0x39, 0x27, 0xcf, |
| 6492 | 0x49, 0x31, 0x04, 0x74, 0x15, 0x66, 0xe8, 0xe5, 0xd1, 0xab, 0x17, 0x48, 0x46, 0x96, 0xa8, 0x7c, |
| 6493 | 0x18, 0xbd, 0x0d, 0x25, 0xa6, 0xf1, 0x9a, 0xfd, 0xcc, 0xc3, 0xf4, 0xb5, 0x83, 0x52, 0x49, 0x51, |
| 6494 | 0x61, 0xe1, 0x13, 0x1a, 0xa4, 0x9d, 0xd0, 0x50, 0x13, 0xaa, 0x9e, 0xef, 0xb8, 0x66, 0x5f, 0xb8, |
| 6495 | 0x91, 0x3e, 0x75, 0x50, 0xca, 0x7d, 0x11, 0xb0, 0x54, 0xe1, 0xe3, 0xb1, 0xe3, 0x9b, 0xe1, 0x27, |
| 6496 | 0x0e, 0xef, 0x19, 0x2a, 0x0c, 0x7d, 0x0b, 0x2a, 0x3d, 0xb1, 0x48, 0xd6, 0xec, 0x97, 0x0e, 0x7d, |
| 6497 | 0xd6, 0x10, 0xeb, 0xde, 0xad, 0xaa, 0x28, 0x92, 0x53, 0x98, 0x54, 0xbd, 0xc9, 0x56, 0x42, 0x14, |
| 6498 | 0xc4, 0xdb, 0xd8, 0x26, 0xa9, 0x9d, 0x55, 0x70, 0x0a, 0x86, 0xf8, 0x44, 0xd7, 0xa1, 0xc2, 0x32, |
| 6499 | 0xc1, 0xf3, 0xd0, 0x6a, 0x08, 0x0f, 0x92, 0x3c, 0xd6, 0x1a, 0xfb, 0x7b, 0x6d, 0x4a, 0x14, 0x5b, |
| 6500 | 0x94, 0x57, 0x00, 0x11, 0xe8, 0xaa, 0xe5, 0x25, 0x82, 0x39, 0x71, 0xe2, 0x8a, 0xbe, 0xaf, 0x6f, |
| 6501 | 0xc0, 0x59, 0x02, 0xc5, 0xb6, 0x6f, 0x75, 0x95, 0xa3, 0x98, 0x38, 0xec, 0x6b, 0x91, 0xc3, 0xbe, |
| 6502 | 0xe9, 0x79, 0xaf, 0x1c, 0xb7, 0xc7, 0xd5, 0x0c, 0xbe, 0xa5, 0xb4, 0x7f, 0xd4, 0x98, 0x36, 0xcf, |
| 6503 | 0xbc, 0xd0, 0x41, 0xfd, 0x2b, 0xf2, 0x43, 0xbf, 0x02, 0x79, 0xfe, 0x40, 0x8a, 0xd7, 0x3f, 0xcf, |
| 6504 | 0x2f, 0xb2, 0x87, 0x59, 0x8b, 0x9c, 0xf1, 0x26, 0x83, 0x2a, 0x35, 0x3a, 0x8e, 0x4f, 0x96, 0xcb, |
| 6505 | 0x9e, 0xe9, 0xed, 0xe1, 0xde, 0x96, 0x60, 0x1e, 0xaa, 0x0e, 0xdf, 0x37, 0x22, 0x60, 0xa9, 0xfb, |
| 6506 | 0x5d, 0xa9, 0xfa, 0x23, 0xec, 0x1f, 0xa1, 0xba, 0xda, 0x7f, 0x38, 0x27, 0x48, 0x78, 0xdb, 0xf4, |
| 6507 | 0x75, 0xa8, 0x7e, 0xac, 0xc1, 0x15, 0x41, 0xb6, 0xb2, 0x67, 0xda, 0x7d, 0x2c, 0x94, 0xf9, 0x45, |
| 6508 | 0xed, 0x15, 0x9f, 0x74, 0xf6, 0x35, 0x27, 0xfd, 0x04, 0xea, 0xc1, 0xa4, 0x69, 0x2d, 0xca, 0x19, |
| 6509 | 0xa8, 0x93, 0x18, 0x7b, 0x41, 0x90, 0xa4, 0xbf, 0xc9, 0x98, 0xeb, 0x0c, 0x82, 0x6b, 0x20, 0xf9, |
| 6510 | 0x2d, 0x99, 0xad, 0xc3, 0x45, 0xc1, 0x8c, 0x17, 0x87, 0xc2, 0xdc, 0x62, 0x73, 0x3a, 0x92, 0x1b, |
| 6511 | 0xf7, 0x07, 0xe1, 0x71, 0xf4, 0x52, 0x4a, 0x24, 0x09, 0xbb, 0x90, 0x4a, 0xd1, 0x92, 0xa4, 0xcc, |
| 6512 | 0xb3, 0x1d, 0x40, 0x74, 0x56, 0x4e, 0xec, 0x31, 0x38, 0x61, 0x99, 0x08, 0xe7, 0x4b, 0x80, 0xc0, |
| 6513 | 0x63, 0x4b, 0x20, 0x5d, 0x2a, 0x86, 0xf9, 0x40, 0x51, 0x62, 0xf6, 0x2d, 0xec, 0x0e, 0x2d, 0xcf, |
| 6514 | 0x53, 0x1a, 0x71, 0x49, 0xe6, 0x7a, 0x13, 0x72, 0x23, 0xcc, 0x8f, 0x2f, 0xa5, 0x25, 0x24, 0xf6, |
| 6515 | 0x84, 0x42, 0x4c, 0xe1, 0x52, 0xcc, 0x10, 0xae, 0x0a, 0x31, 0xcc, 0x21, 0x89, 0x72, 0xa2, 0x6a, |
| 6516 | 0x8a, 0xe2, 0x7f, 0x26, 0xa5, 0xf8, 0x9f, 0x0d, 0x17, 0xff, 0x43, 0x47, 0x6a, 0x35, 0x50, 0x9d, |
| 6517 | 0xce, 0x91, 0xba, 0xc3, 0x1c, 0x10, 0xc4, 0xb7, 0xd3, 0xe1, 0xfa, 0x07, 0x3c, 0x50, 0x9d, 0x56, |
| 6518 | 0x3a, 0x17, 0x01, 0x3e, 0x13, 0x0e, 0xf0, 0x3a, 0x94, 0x89, 0x93, 0x0c, 0xb5, 0x2b, 0x92, 0x33, |
| 6519 | 0x42, 0x63, 0x32, 0x18, 0xef, 0xc3, 0x5c, 0x38, 0x18, 0x9f, 0x48, 0xa9, 0x39, 0x98, 0xf6, 0x9d, |
| 6520 | 0x7d, 0x2c, 0x72, 0x0a, 0xfb, 0x88, 0x99, 0x35, 0x08, 0xd4, 0xa7, 0x63, 0xd6, 0xef, 0x4a, 0xae, |
| 6521 | 0x74, 0x03, 0x9e, 0x74, 0x06, 0x64, 0x39, 0x8a, 0xdb, 0x3f, 0xfb, 0x90, 0xb2, 0x3e, 0x81, 0xf3, |
| 6522 | 0xd1, 0xe0, 0x7b, 0x3a, 0x93, 0xd8, 0x61, 0x9b, 0x33, 0x29, 0x3c, 0x9f, 0x8e, 0x80, 0x17, 0x32, |
| 6523 | 0x4e, 0x2a, 0x41, 0xf7, 0x74, 0x78, 0xff, 0x3a, 0x34, 0x92, 0x62, 0xf0, 0xa9, 0xee, 0xc5, 0x20, |
| 6524 | 0x24, 0x9f, 0x0e, 0xd7, 0x1f, 0x6a, 0x92, 0xad, 0xba, 0x6a, 0x3e, 0xf8, 0x2a, 0x6c, 0x45, 0xae, |
| 6525 | 0xbb, 0x13, 0x2c, 0x9f, 0x66, 0x10, 0x2d, 0xb3, 0xc9, 0xd1, 0x52, 0x92, 0x50, 0x44, 0xb1, 0xff, |
| 6526 | 0x64, 0xa8, 0xff, 0x3a, 0x57, 0x2f, 0x17, 0x26, 0xf3, 0xce, 0x49, 0x85, 0x91, 0xf4, 0x1c, 0x08, |
| 6527 | 0xa3, 0x1f, 0xb1, 0xad, 0xa2, 0x26, 0xa9, 0xd3, 0x71, 0xdd, 0x6f, 0xc8, 0x04, 0x13, 0xcb, 0x63, |
| 6528 | 0xa7, 0x23, 0xc1, 0x84, 0x85, 0xf4, 0x14, 0x76, 0x2a, 0x22, 0x6e, 0xb5, 0xa0, 0x18, 0xdc, 0xfd, |
| 6529 | 0x95, 0x97, 0xca, 0x25, 0xc8, 0x6f, 0x6c, 0x6e, 0x6f, 0xb5, 0x56, 0xc8, 0xd5, 0x76, 0x0e, 0xf2, |
| 6530 | 0x2b, 0x9b, 0x86, 0xf1, 0x6c, 0xab, 0x43, 0xee, 0xb6, 0xd1, 0x87, 0x4b, 0x4b, 0x3f, 0xcb, 0x42, |
| 6531 | 0xe6, 0xc9, 0x73, 0xf4, 0x29, 0x4c, 0xb3, 0x87, 0x73, 0x47, 0xbc, 0x9f, 0x6c, 0x1c, 0xf5, 0x36, |
| 6532 | 0x50, 0xbf, 0xf0, 0x83, 0xff, 0xfe, 0xd9, 0x1f, 0x66, 0xce, 0xe8, 0xe5, 0xe6, 0x64, 0xb9, 0xb9, |
| 6533 | 0x3f, 0x69, 0xd2, 0x24, 0xfb, 0x40, 0xbb, 0x85, 0x3e, 0x86, 0xec, 0xd6, 0xd8, 0x47, 0xa9, 0xef, |
| 6534 | 0x2a, 0x1b, 0xe9, 0xcf, 0x05, 0xf5, 0x73, 0x94, 0xe9, 0xac, 0x0e, 0x9c, 0xe9, 0x68, 0xec, 0x13, |
| 6535 | 0x96, 0xdf, 0x83, 0x92, 0xfa, 0xd8, 0xef, 0xd8, 0xc7, 0x96, 0x8d, 0xe3, 0x1f, 0x12, 0xea, 0x57, |
| 6536 | 0xa8, 0xa8, 0x0b, 0x3a, 0xe2, 0xa2, 0xd8, 0x73, 0x44, 0x75, 0x16, 0x9d, 0x03, 0x1b, 0xa5, 0x3e, |
| 6537 | 0xc5, 0x6c, 0xa4, 0xbf, 0x2d, 0x8c, 0xcd, 0xc2, 0x3f, 0xb0, 0x09, 0xcb, 0xef, 0xf2, 0x47, 0x84, |
| 6538 | 0x5d, 0x1f, 0x5d, 0x4d, 0x78, 0x05, 0xa6, 0xbe, 0x6e, 0x6a, 0x2c, 0xa4, 0x23, 0x70, 0x21, 0x97, |
| 6539 | 0xa9, 0x90, 0xf3, 0xfa, 0x19, 0x2e, 0xa4, 0x1b, 0xa0, 0x3c, 0xd0, 0x6e, 0x2d, 0x75, 0x61, 0x9a, |
| 6540 | 0x76, 0xcf, 0xd1, 0x0b, 0xf1, 0xa3, 0x91, 0xf0, 0x2e, 0x21, 0xc5, 0xd1, 0xa1, 0xbe, 0xbb, 0x3e, |
| 6541 | 0x47, 0x05, 0x55, 0xf5, 0x22, 0x11, 0x44, 0x7b, 0xe7, 0x0f, 0xb4, 0x5b, 0x37, 0xb5, 0x3b, 0xda, |
| 6542 | 0xd2, 0xdf, 0x4c, 0xc3, 0x34, 0xed, 0xd2, 0xa0, 0x7d, 0x00, 0xd9, 0x25, 0x8e, 0xce, 0x2e, 0xd6, |
| 6543 | 0x80, 0x8e, 0xce, 0x2e, 0xde, 0x60, 0xd6, 0x1b, 0x54, 0xe8, 0x9c, 0x3e, 0x4b, 0x84, 0xd2, 0xe6, |
| 6544 | 0x4f, 0x93, 0xf6, 0xba, 0x88, 0x1d, 0x7f, 0xac, 0xf1, 0x76, 0x15, 0xdb, 0x66, 0x28, 0x89, 0x5b, |
| 6545 | 0xa8, 0x43, 0x1c, 0x5d, 0x0e, 0x09, 0x4d, 0x61, 0xfd, 0x3e, 0x15, 0xd8, 0xd4, 0x6b, 0x52, 0xa0, |
| 6546 | 0x4b, 0x31, 0x1e, 0x68, 0xb7, 0x5e, 0xd4, 0xf5, 0xb3, 0xdc, 0xca, 0x11, 0x08, 0xfa, 0x3e, 0x54, |
| 6547 | 0xc3, 0xbd, 0x4c, 0x74, 0x2d, 0x41, 0x56, 0xb4, 0x37, 0xda, 0xb8, 0x7e, 0x34, 0x12, 0xd7, 0x69, |
| 6548 | 0x9e, 0xea, 0xc4, 0x85, 0x33, 0xc9, 0xfb, 0x18, 0x8f, 0x4c, 0x82, 0xc4, 0x7d, 0x80, 0xfe, 0x54, |
| 6549 | 0xe3, 0xed, 0x68, 0xd9, 0x8a, 0x44, 0x49, 0xdc, 0x63, 0x1d, 0xcf, 0xc6, 0x8d, 0x63, 0xb0, 0xb8, |
| 6550 | 0x12, 0x1f, 0x50, 0x25, 0xde, 0xd7, 0xe7, 0xa4, 0x12, 0xbe, 0x35, 0xc4, 0xbe, 0xc3, 0xb5, 0x78, |
| 6551 | 0x71, 0x59, 0xbf, 0x10, 0x32, 0x4e, 0x08, 0x2a, 0x9d, 0xc5, 0x5a, 0x86, 0x89, 0xce, 0x0a, 0x75, |
| 6552 | 0x25, 0x13, 0x9d, 0x15, 0xee, 0x37, 0x26, 0x39, 0x8b, 0x37, 0x08, 0x13, 0x9c, 0x15, 0x40, 0x96, |
| 6553 | 0xfe, 0x3f, 0x07, 0xf9, 0x15, 0xf6, 0x3f, 0x23, 0x21, 0x07, 0x8a, 0x41, 0x13, 0x0d, 0xcd, 0x27, |
| 6554 | 0xd5, 0xe9, 0xe5, 0x55, 0xae, 0x71, 0x35, 0x15, 0xce, 0x15, 0x7a, 0x83, 0x2a, 0x74, 0x49, 0x3f, |
| 6555 | 0x4f, 0x24, 0xf3, 0xff, 0xdf, 0xa9, 0xc9, 0xaa, 0xb9, 0x4d, 0xb3, 0xd7, 0x23, 0x86, 0xf8, 0x4d, |
| 6556 | 0x28, 0xab, 0x2d, 0x2d, 0xf4, 0x46, 0x62, 0x6f, 0x40, 0xed, 0x8f, 0x35, 0xf4, 0xa3, 0x50, 0xb8, |
| 6557 | 0xe4, 0xeb, 0x54, 0xf2, 0xbc, 0x7e, 0x31, 0x41, 0xb2, 0x4b, 0x51, 0x43, 0xc2, 0x59, 0xef, 0x29, |
| 6558 | 0x59, 0x78, 0xa8, 0xc9, 0x95, 0x2c, 0x3c, 0xdc, 0xba, 0x3a, 0x52, 0xf8, 0x98, 0xa2, 0x12, 0xe1, |
| 6559 | 0x1e, 0x80, 0x6c, 0x0e, 0xa1, 0x44, 0x5b, 0x2a, 0x17, 0xd6, 0x68, 0x70, 0x88, 0xf7, 0x95, 0x74, |
| 6560 | 0x9d, 0x8a, 0xe5, 0xeb, 0x2e, 0x22, 0x76, 0x60, 0x79, 0x3e, 0xdb, 0x98, 0x95, 0x50, 0x6b, 0x07, |
| 6561 | 0x25, 0xce, 0x27, 0xdc, 0x29, 0x6a, 0x5c, 0x3b, 0x12, 0x87, 0x4b, 0xbf, 0x41, 0xa5, 0x5f, 0xd5, |
| 6562 | 0x1b, 0x09, 0xd2, 0x47, 0x0c, 0x97, 0x2c, 0xb6, 0xcf, 0xf3, 0x50, 0x7a, 0x6a, 0x5a, 0xb6, 0x8f, |
| 6563 | 0x6d, 0xd3, 0xee, 0x62, 0xb4, 0x0b, 0xd3, 0x34, 0x77, 0x47, 0x03, 0xb1, 0xda, 0xc9, 0x88, 0x06, |
| 6564 | 0xe2, 0x50, 0x29, 0x5f, 0x5f, 0xa0, 0x82, 0x1b, 0xfa, 0x39, 0x22, 0x78, 0x28, 0x59, 0x37, 0x59, |
| 6565 | 0x13, 0x40, 0xbb, 0x85, 0x5e, 0xc2, 0x0c, 0x6f, 0xe1, 0x47, 0x18, 0x85, 0x8a, 0x6a, 0x8d, 0xcb, |
| 6566 | 0xc9, 0xc0, 0xa4, 0xb5, 0xac, 0x8a, 0xf1, 0x28, 0x1e, 0x91, 0x33, 0x01, 0x90, 0x1d, 0xa9, 0xa8, |
| 6567 | 0x47, 0x63, 0x9d, 0xac, 0xc6, 0x42, 0x3a, 0x42, 0x92, 0x4d, 0x55, 0x99, 0xbd, 0x00, 0x97, 0xc8, |
| 6568 | 0xfd, 0x0e, 0xe4, 0x1e, 0x9b, 0xde, 0x1e, 0x8a, 0xe4, 0x5e, 0xe5, 0xc5, 0x6d, 0xa3, 0x91, 0x04, |
| 6569 | 0xe2, 0x52, 0xae, 0x52, 0x29, 0x17, 0x59, 0x28, 0x53, 0xa5, 0xd0, 0x37, 0xa5, 0xcc, 0x7e, 0xec, |
| 6570 | 0xb9, 0x6d, 0xd4, 0x7e, 0xa1, 0xb7, 0xbb, 0x51, 0xfb, 0x85, 0x5f, 0xe8, 0xa6, 0xdb, 0x8f, 0x48, |
| 6571 | 0xd9, 0x9f, 0x10, 0x39, 0x23, 0x28, 0x88, 0x87, 0xa9, 0x28, 0xf2, 0x9c, 0x27, 0xf2, 0x9a, 0xb5, |
| 6572 | 0x31, 0x9f, 0x06, 0xe6, 0xd2, 0xae, 0x51, 0x69, 0x57, 0xf4, 0x7a, 0xcc, 0x5b, 0x1c, 0xf3, 0x81, |
| 6573 | 0x76, 0xeb, 0x8e, 0x86, 0xbe, 0x0f, 0x20, 0x9b, 0x76, 0xb1, 0x3d, 0x18, 0x6d, 0x04, 0xc6, 0xf6, |
| 6574 | 0x60, 0xac, 0xdf, 0xa7, 0x2f, 0x52, 0xb9, 0x37, 0xf5, 0x6b, 0x51, 0xb9, 0xbe, 0x6b, 0xda, 0xde, |
| 6575 | 0x4b, 0xec, 0xde, 0x66, 0x75, 0x7f, 0x6f, 0xcf, 0x1a, 0x91, 0x29, 0xbb, 0x50, 0x0c, 0x6a, 0xcd, |
| 6576 | 0xd1, 0x78, 0x1b, 0xed, 0xfe, 0x44, 0xe3, 0x6d, 0xac, 0x19, 0x13, 0x0e, 0x3c, 0xa1, 0xf5, 0x22, |
| 6577 | 0x50, 0xc9, 0x16, 0xfc, 0xcb, 0x1a, 0xe4, 0xc8, 0x91, 0x9c, 0x1c, 0x4f, 0x64, 0xb9, 0x27, 0x3a, |
| 6578 | 0xfb, 0x58, 0xc5, 0x3a, 0x3a, 0xfb, 0x78, 0xa5, 0x28, 0x7c, 0x3c, 0x21, 0xd7, 0xb5, 0x26, 0xab, |
| 6579 | 0xa3, 0x90, 0x99, 0x3a, 0x50, 0x52, 0xca, 0x40, 0x28, 0x81, 0x59, 0xb8, 0x02, 0x1e, 0x4d, 0x78, |
| 6580 | 0x09, 0x35, 0x24, 0xfd, 0x12, 0x95, 0x77, 0x8e, 0x25, 0x3c, 0x2a, 0xaf, 0xc7, 0x30, 0x88, 0x40, |
| 6581 | 0x3e, 0x3b, 0xbe, 0xf3, 0x13, 0x66, 0x17, 0xde, 0xfd, 0x0b, 0xe9, 0x08, 0xa9, 0xb3, 0x93, 0x5b, |
| 6582 | 0xff, 0x15, 0x94, 0xd5, 0xd2, 0x0f, 0x4a, 0x50, 0x3e, 0x52, 0xa3, 0x8f, 0x66, 0x92, 0xa4, 0xca, |
| 6583 | 0x51, 0x38, 0xb6, 0x51, 0x91, 0xa6, 0x82, 0x46, 0x04, 0x0f, 0x20, 0xcf, 0x4b, 0x40, 0x49, 0x26, |
| 6584 | 0x0d, 0x97, 0xf1, 0x93, 0x4c, 0x1a, 0xa9, 0x1f, 0x85, 0xcf, 0xcf, 0x54, 0x22, 0xb9, 0x8a, 0x8a, |
| 6585 | 0x6c, 0xcd, 0xa5, 0x3d, 0xc2, 0x7e, 0x9a, 0x34, 0x59, 0xb6, 0x4d, 0x93, 0xa6, 0x54, 0x08, 0xd2, |
| 6586 | 0xa4, 0xf5, 0xb1, 0xcf, 0xe3, 0x81, 0xb8, 0x5e, 0xa3, 0x14, 0x66, 0x6a, 0x86, 0xd4, 0x8f, 0x42, |
| 6587 | 0x49, 0xba, 0xde, 0x48, 0x81, 0x22, 0x3d, 0x1e, 0x00, 0xc8, 0x72, 0x54, 0xf4, 0xcc, 0x9a, 0xd8, |
| 6588 | 0x29, 0x88, 0x9e, 0x59, 0x93, 0x2b, 0x5a, 0xe1, 0x18, 0x2b, 0xe5, 0xb2, 0xdb, 0x15, 0x91, 0xfc, |
| 6589 | 0x85, 0x06, 0x28, 0x5e, 0xb0, 0x42, 0xef, 0x24, 0x73, 0x4f, 0xec, 0x3a, 0x34, 0xde, 0x7d, 0x3d, |
| 6590 | 0xe4, 0xa4, 0x80, 0x2c, 0x55, 0xea, 0x52, 0xec, 0xd1, 0x2b, 0xa2, 0xd4, 0xe7, 0x1a, 0x54, 0x42, |
| 6591 | 0x45, 0x2e, 0xf4, 0x66, 0x8a, 0x4f, 0x23, 0xad, 0x87, 0xc6, 0x5b, 0xc7, 0xe2, 0x25, 0x1d, 0xe6, |
| 6592 | 0x95, 0x15, 0x20, 0x6e, 0x35, 0xbf, 0xa3, 0x41, 0x35, 0x5c, 0x0b, 0x43, 0x29, 0xbc, 0x63, 0x1d, |
| 6593 | 0x8b, 0xc6, 0xcd, 0xe3, 0x11, 0x8f, 0x76, 0x8f, 0xbc, 0xd0, 0x0c, 0x20, 0xcf, 0x8b, 0x66, 0x49, |
| 6594 | 0x0b, 0x3f, 0xdc, 0xe2, 0x48, 0x5a, 0xf8, 0x91, 0x8a, 0x5b, 0xc2, 0xc2, 0x77, 0x9d, 0x01, 0x56, |
| 6595 | 0xb6, 0x19, 0xaf, 0xa5, 0xa5, 0x49, 0x3b, 0x7a, 0x9b, 0x45, 0x0a, 0x71, 0x69, 0xd2, 0xe4, 0x36, |
| 6596 | 0x13, 0x25, 0x33, 0x94, 0xc2, 0xec, 0x98, 0x6d, 0x16, 0xad, 0xb8, 0x25, 0x6c, 0x33, 0x2a, 0x50, |
| 6597 | 0xd9, 0x66, 0xb2, 0x94, 0x95, 0xb4, 0xcd, 0x62, 0xdd, 0x98, 0xa4, 0x6d, 0x16, 0xaf, 0x86, 0x25, |
| 6598 | 0xf8, 0x91, 0xca, 0x0d, 0x6d, 0xb3, 0xb3, 0x09, 0xc5, 0x2e, 0xf4, 0x6e, 0x8a, 0x11, 0x13, 0x7b, |
| 6599 | 0x3b, 0x8d, 0xdb, 0xaf, 0x89, 0x9d, 0xba, 0xc6, 0x99, 0xf9, 0xc5, 0x1a, 0xff, 0x23, 0x0d, 0xe6, |
| 6600 | 0x92, 0xea, 0x63, 0x28, 0x45, 0x4e, 0x4a, 0x2b, 0xa8, 0xb1, 0xf8, 0xba, 0xe8, 0x47, 0x5b, 0x2b, |
| 6601 | 0x58, 0xf5, 0x0f, 0xfb, 0x5f, 0xb4, 0x9a, 0x2f, 0xae, 0xc2, 0x15, 0x98, 0x69, 0x8d, 0xac, 0x27, |
| 6602 | 0xf8, 0x10, 0x9d, 0x2d, 0x64, 0x1a, 0x15, 0xc2, 0xd7, 0x71, 0xad, 0xcf, 0xe8, 0x5f, 0xbd, 0x58, |
| 6603 | 0xc8, 0xec, 0x96, 0x01, 0x02, 0x84, 0xa9, 0x7f, 0xff, 0x72, 0x5e, 0xfb, 0xaf, 0x2f, 0xe7, 0xb5, |
| 6604 | 0xff, 0xf9, 0x72, 0x5e, 0xfb, 0xe9, 0xff, 0xcd, 0x4f, 0xbd, 0xb8, 0xd6, 0x77, 0xa8, 0x5a, 0x8b, |
| 6605 | 0x96, 0xd3, 0x94, 0x7f, 0x89, 0x63, 0xb9, 0xa9, 0xaa, 0xba, 0x3b, 0x43, 0xff, 0x74, 0xc6, 0xf2, |
| 6606 | 0xcf, 0x03, 0x00, 0x00, 0xff, 0xff, 0x82, 0x9b, 0xab, 0xde, 0x11, 0x44, 0x00, 0x00, |
| 6607 | } |
| 6608 | |
| 6609 | // Reference imports to suppress errors if they are not otherwise used. |
| 6610 | var _ context.Context |
| 6611 | var _ grpc.ClientConn |
| 6612 | |
| 6613 | // This is a compile-time assertion to ensure that this generated file |
| 6614 | // is compatible with the grpc package it is being compiled against. |
| 6615 | const _ = grpc.SupportPackageIsVersion4 |
| 6616 | |
| 6617 | // KVClient is the client API for KV service. |
| 6618 | // |
| 6619 | // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. |
| 6620 | type KVClient interface { |
| 6621 | // Range gets the keys in the range from the key-value store. |
| 6622 | Range(ctx context.Context, in *RangeRequest, opts ...grpc.CallOption) (*RangeResponse, error) |
| 6623 | // Put puts the given key into the key-value store. |
| 6624 | // A put request increments the revision of the key-value store |
| 6625 | // and generates one event in the event history. |
| 6626 | Put(ctx context.Context, in *PutRequest, opts ...grpc.CallOption) (*PutResponse, error) |
| 6627 | // DeleteRange deletes the given range from the key-value store. |
| 6628 | // A delete request increments the revision of the key-value store |
| 6629 | // and generates a delete event in the event history for every deleted key. |
| 6630 | DeleteRange(ctx context.Context, in *DeleteRangeRequest, opts ...grpc.CallOption) (*DeleteRangeResponse, error) |
| 6631 | // Txn processes multiple requests in a single transaction. |
| 6632 | // A txn request increments the revision of the key-value store |
| 6633 | // and generates events with the same revision for every completed request. |
| 6634 | // It is not allowed to modify the same key several times within one txn. |
| 6635 | Txn(ctx context.Context, in *TxnRequest, opts ...grpc.CallOption) (*TxnResponse, error) |
| 6636 | // Compact compacts the event history in the etcd key-value store. The key-value |
| 6637 | // store should be periodically compacted or the event history will continue to grow |
| 6638 | // indefinitely. |
| 6639 | Compact(ctx context.Context, in *CompactionRequest, opts ...grpc.CallOption) (*CompactionResponse, error) |
| 6640 | } |
| 6641 | |
| 6642 | type kVClient struct { |
| 6643 | cc *grpc.ClientConn |
| 6644 | } |
| 6645 | |
| 6646 | func NewKVClient(cc *grpc.ClientConn) KVClient { |
| 6647 | return &kVClient{cc} |
| 6648 | } |
| 6649 | |
| 6650 | func (c *kVClient) Range(ctx context.Context, in *RangeRequest, opts ...grpc.CallOption) (*RangeResponse, error) { |
| 6651 | out := new(RangeResponse) |
| 6652 | err := c.cc.Invoke(ctx, "/etcdserverpb.KV/Range", in, out, opts...) |
| 6653 | if err != nil { |
| 6654 | return nil, err |
| 6655 | } |
| 6656 | return out, nil |
| 6657 | } |
| 6658 | |
| 6659 | func (c *kVClient) Put(ctx context.Context, in *PutRequest, opts ...grpc.CallOption) (*PutResponse, error) { |
| 6660 | out := new(PutResponse) |
| 6661 | err := c.cc.Invoke(ctx, "/etcdserverpb.KV/Put", in, out, opts...) |
| 6662 | if err != nil { |
| 6663 | return nil, err |
| 6664 | } |
| 6665 | return out, nil |
| 6666 | } |
| 6667 | |
| 6668 | func (c *kVClient) DeleteRange(ctx context.Context, in *DeleteRangeRequest, opts ...grpc.CallOption) (*DeleteRangeResponse, error) { |
| 6669 | out := new(DeleteRangeResponse) |
| 6670 | err := c.cc.Invoke(ctx, "/etcdserverpb.KV/DeleteRange", in, out, opts...) |
| 6671 | if err != nil { |
| 6672 | return nil, err |
| 6673 | } |
| 6674 | return out, nil |
| 6675 | } |
| 6676 | |
| 6677 | func (c *kVClient) Txn(ctx context.Context, in *TxnRequest, opts ...grpc.CallOption) (*TxnResponse, error) { |
| 6678 | out := new(TxnResponse) |
| 6679 | err := c.cc.Invoke(ctx, "/etcdserverpb.KV/Txn", in, out, opts...) |
| 6680 | if err != nil { |
| 6681 | return nil, err |
| 6682 | } |
| 6683 | return out, nil |
| 6684 | } |
| 6685 | |
| 6686 | func (c *kVClient) Compact(ctx context.Context, in *CompactionRequest, opts ...grpc.CallOption) (*CompactionResponse, error) { |
| 6687 | out := new(CompactionResponse) |
| 6688 | err := c.cc.Invoke(ctx, "/etcdserverpb.KV/Compact", in, out, opts...) |
| 6689 | if err != nil { |
| 6690 | return nil, err |
| 6691 | } |
| 6692 | return out, nil |
| 6693 | } |
| 6694 | |
| 6695 | // KVServer is the server API for KV service. |
| 6696 | type KVServer interface { |
| 6697 | // Range gets the keys in the range from the key-value store. |
| 6698 | Range(context.Context, *RangeRequest) (*RangeResponse, error) |
| 6699 | // Put puts the given key into the key-value store. |
| 6700 | // A put request increments the revision of the key-value store |
| 6701 | // and generates one event in the event history. |
| 6702 | Put(context.Context, *PutRequest) (*PutResponse, error) |
| 6703 | // DeleteRange deletes the given range from the key-value store. |
| 6704 | // A delete request increments the revision of the key-value store |
| 6705 | // and generates a delete event in the event history for every deleted key. |
| 6706 | DeleteRange(context.Context, *DeleteRangeRequest) (*DeleteRangeResponse, error) |
| 6707 | // Txn processes multiple requests in a single transaction. |
| 6708 | // A txn request increments the revision of the key-value store |
| 6709 | // and generates events with the same revision for every completed request. |
| 6710 | // It is not allowed to modify the same key several times within one txn. |
| 6711 | Txn(context.Context, *TxnRequest) (*TxnResponse, error) |
| 6712 | // Compact compacts the event history in the etcd key-value store. The key-value |
| 6713 | // store should be periodically compacted or the event history will continue to grow |
| 6714 | // indefinitely. |
| 6715 | Compact(context.Context, *CompactionRequest) (*CompactionResponse, error) |
| 6716 | } |
| 6717 | |
| 6718 | // UnimplementedKVServer can be embedded to have forward compatible implementations. |
| 6719 | type UnimplementedKVServer struct { |
| 6720 | } |
| 6721 | |
| 6722 | func (*UnimplementedKVServer) Range(ctx context.Context, req *RangeRequest) (*RangeResponse, error) { |
| 6723 | return nil, status.Errorf(codes.Unimplemented, "method Range not implemented") |
| 6724 | } |
| 6725 | func (*UnimplementedKVServer) Put(ctx context.Context, req *PutRequest) (*PutResponse, error) { |
| 6726 | return nil, status.Errorf(codes.Unimplemented, "method Put not implemented") |
| 6727 | } |
| 6728 | func (*UnimplementedKVServer) DeleteRange(ctx context.Context, req *DeleteRangeRequest) (*DeleteRangeResponse, error) { |
| 6729 | return nil, status.Errorf(codes.Unimplemented, "method DeleteRange not implemented") |
| 6730 | } |
| 6731 | func (*UnimplementedKVServer) Txn(ctx context.Context, req *TxnRequest) (*TxnResponse, error) { |
| 6732 | return nil, status.Errorf(codes.Unimplemented, "method Txn not implemented") |
| 6733 | } |
| 6734 | func (*UnimplementedKVServer) Compact(ctx context.Context, req *CompactionRequest) (*CompactionResponse, error) { |
| 6735 | return nil, status.Errorf(codes.Unimplemented, "method Compact not implemented") |
| 6736 | } |
| 6737 | |
| 6738 | func RegisterKVServer(s *grpc.Server, srv KVServer) { |
| 6739 | s.RegisterService(&_KV_serviceDesc, srv) |
| 6740 | } |
| 6741 | |
| 6742 | func _KV_Range_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 6743 | in := new(RangeRequest) |
| 6744 | if err := dec(in); err != nil { |
| 6745 | return nil, err |
| 6746 | } |
| 6747 | if interceptor == nil { |
| 6748 | return srv.(KVServer).Range(ctx, in) |
| 6749 | } |
| 6750 | info := &grpc.UnaryServerInfo{ |
| 6751 | Server: srv, |
| 6752 | FullMethod: "/etcdserverpb.KV/Range", |
| 6753 | } |
| 6754 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 6755 | return srv.(KVServer).Range(ctx, req.(*RangeRequest)) |
| 6756 | } |
| 6757 | return interceptor(ctx, in, info, handler) |
| 6758 | } |
| 6759 | |
| 6760 | func _KV_Put_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 6761 | in := new(PutRequest) |
| 6762 | if err := dec(in); err != nil { |
| 6763 | return nil, err |
| 6764 | } |
| 6765 | if interceptor == nil { |
| 6766 | return srv.(KVServer).Put(ctx, in) |
| 6767 | } |
| 6768 | info := &grpc.UnaryServerInfo{ |
| 6769 | Server: srv, |
| 6770 | FullMethod: "/etcdserverpb.KV/Put", |
| 6771 | } |
| 6772 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 6773 | return srv.(KVServer).Put(ctx, req.(*PutRequest)) |
| 6774 | } |
| 6775 | return interceptor(ctx, in, info, handler) |
| 6776 | } |
| 6777 | |
| 6778 | func _KV_DeleteRange_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 6779 | in := new(DeleteRangeRequest) |
| 6780 | if err := dec(in); err != nil { |
| 6781 | return nil, err |
| 6782 | } |
| 6783 | if interceptor == nil { |
| 6784 | return srv.(KVServer).DeleteRange(ctx, in) |
| 6785 | } |
| 6786 | info := &grpc.UnaryServerInfo{ |
| 6787 | Server: srv, |
| 6788 | FullMethod: "/etcdserverpb.KV/DeleteRange", |
| 6789 | } |
| 6790 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 6791 | return srv.(KVServer).DeleteRange(ctx, req.(*DeleteRangeRequest)) |
| 6792 | } |
| 6793 | return interceptor(ctx, in, info, handler) |
| 6794 | } |
| 6795 | |
| 6796 | func _KV_Txn_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 6797 | in := new(TxnRequest) |
| 6798 | if err := dec(in); err != nil { |
| 6799 | return nil, err |
| 6800 | } |
| 6801 | if interceptor == nil { |
| 6802 | return srv.(KVServer).Txn(ctx, in) |
| 6803 | } |
| 6804 | info := &grpc.UnaryServerInfo{ |
| 6805 | Server: srv, |
| 6806 | FullMethod: "/etcdserverpb.KV/Txn", |
| 6807 | } |
| 6808 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 6809 | return srv.(KVServer).Txn(ctx, req.(*TxnRequest)) |
| 6810 | } |
| 6811 | return interceptor(ctx, in, info, handler) |
| 6812 | } |
| 6813 | |
| 6814 | func _KV_Compact_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 6815 | in := new(CompactionRequest) |
| 6816 | if err := dec(in); err != nil { |
| 6817 | return nil, err |
| 6818 | } |
| 6819 | if interceptor == nil { |
| 6820 | return srv.(KVServer).Compact(ctx, in) |
| 6821 | } |
| 6822 | info := &grpc.UnaryServerInfo{ |
| 6823 | Server: srv, |
| 6824 | FullMethod: "/etcdserverpb.KV/Compact", |
| 6825 | } |
| 6826 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 6827 | return srv.(KVServer).Compact(ctx, req.(*CompactionRequest)) |
| 6828 | } |
| 6829 | return interceptor(ctx, in, info, handler) |
| 6830 | } |
| 6831 | |
| 6832 | var _KV_serviceDesc = grpc.ServiceDesc{ |
| 6833 | ServiceName: "etcdserverpb.KV", |
| 6834 | HandlerType: (*KVServer)(nil), |
| 6835 | Methods: []grpc.MethodDesc{ |
| 6836 | { |
| 6837 | MethodName: "Range", |
| 6838 | Handler: _KV_Range_Handler, |
| 6839 | }, |
| 6840 | { |
| 6841 | MethodName: "Put", |
| 6842 | Handler: _KV_Put_Handler, |
| 6843 | }, |
| 6844 | { |
| 6845 | MethodName: "DeleteRange", |
| 6846 | Handler: _KV_DeleteRange_Handler, |
| 6847 | }, |
| 6848 | { |
| 6849 | MethodName: "Txn", |
| 6850 | Handler: _KV_Txn_Handler, |
| 6851 | }, |
| 6852 | { |
| 6853 | MethodName: "Compact", |
| 6854 | Handler: _KV_Compact_Handler, |
| 6855 | }, |
| 6856 | }, |
| 6857 | Streams: []grpc.StreamDesc{}, |
| 6858 | Metadata: "rpc.proto", |
| 6859 | } |
| 6860 | |
| 6861 | // WatchClient is the client API for Watch service. |
| 6862 | // |
| 6863 | // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. |
| 6864 | type WatchClient interface { |
| 6865 | // Watch watches for events happening or that have happened. Both input and output |
| 6866 | // are streams; the input stream is for creating and canceling watchers and the output |
| 6867 | // stream sends events. One watch RPC can watch on multiple key ranges, streaming events |
| 6868 | // for several watches at once. The entire event history can be watched starting from the |
| 6869 | // last compaction revision. |
| 6870 | Watch(ctx context.Context, opts ...grpc.CallOption) (Watch_WatchClient, error) |
| 6871 | } |
| 6872 | |
| 6873 | type watchClient struct { |
| 6874 | cc *grpc.ClientConn |
| 6875 | } |
| 6876 | |
| 6877 | func NewWatchClient(cc *grpc.ClientConn) WatchClient { |
| 6878 | return &watchClient{cc} |
| 6879 | } |
| 6880 | |
| 6881 | func (c *watchClient) Watch(ctx context.Context, opts ...grpc.CallOption) (Watch_WatchClient, error) { |
| 6882 | stream, err := c.cc.NewStream(ctx, &_Watch_serviceDesc.Streams[0], "/etcdserverpb.Watch/Watch", opts...) |
| 6883 | if err != nil { |
| 6884 | return nil, err |
| 6885 | } |
| 6886 | x := &watchWatchClient{stream} |
| 6887 | return x, nil |
| 6888 | } |
| 6889 | |
| 6890 | type Watch_WatchClient interface { |
| 6891 | Send(*WatchRequest) error |
| 6892 | Recv() (*WatchResponse, error) |
| 6893 | grpc.ClientStream |
| 6894 | } |
| 6895 | |
| 6896 | type watchWatchClient struct { |
| 6897 | grpc.ClientStream |
| 6898 | } |
| 6899 | |
| 6900 | func (x *watchWatchClient) Send(m *WatchRequest) error { |
| 6901 | return x.ClientStream.SendMsg(m) |
| 6902 | } |
| 6903 | |
| 6904 | func (x *watchWatchClient) Recv() (*WatchResponse, error) { |
| 6905 | m := new(WatchResponse) |
| 6906 | if err := x.ClientStream.RecvMsg(m); err != nil { |
| 6907 | return nil, err |
| 6908 | } |
| 6909 | return m, nil |
| 6910 | } |
| 6911 | |
| 6912 | // WatchServer is the server API for Watch service. |
| 6913 | type WatchServer interface { |
| 6914 | // Watch watches for events happening or that have happened. Both input and output |
| 6915 | // are streams; the input stream is for creating and canceling watchers and the output |
| 6916 | // stream sends events. One watch RPC can watch on multiple key ranges, streaming events |
| 6917 | // for several watches at once. The entire event history can be watched starting from the |
| 6918 | // last compaction revision. |
| 6919 | Watch(Watch_WatchServer) error |
| 6920 | } |
| 6921 | |
| 6922 | // UnimplementedWatchServer can be embedded to have forward compatible implementations. |
| 6923 | type UnimplementedWatchServer struct { |
| 6924 | } |
| 6925 | |
| 6926 | func (*UnimplementedWatchServer) Watch(srv Watch_WatchServer) error { |
| 6927 | return status.Errorf(codes.Unimplemented, "method Watch not implemented") |
| 6928 | } |
| 6929 | |
| 6930 | func RegisterWatchServer(s *grpc.Server, srv WatchServer) { |
| 6931 | s.RegisterService(&_Watch_serviceDesc, srv) |
| 6932 | } |
| 6933 | |
| 6934 | func _Watch_Watch_Handler(srv interface{}, stream grpc.ServerStream) error { |
| 6935 | return srv.(WatchServer).Watch(&watchWatchServer{stream}) |
| 6936 | } |
| 6937 | |
| 6938 | type Watch_WatchServer interface { |
| 6939 | Send(*WatchResponse) error |
| 6940 | Recv() (*WatchRequest, error) |
| 6941 | grpc.ServerStream |
| 6942 | } |
| 6943 | |
| 6944 | type watchWatchServer struct { |
| 6945 | grpc.ServerStream |
| 6946 | } |
| 6947 | |
| 6948 | func (x *watchWatchServer) Send(m *WatchResponse) error { |
| 6949 | return x.ServerStream.SendMsg(m) |
| 6950 | } |
| 6951 | |
| 6952 | func (x *watchWatchServer) Recv() (*WatchRequest, error) { |
| 6953 | m := new(WatchRequest) |
| 6954 | if err := x.ServerStream.RecvMsg(m); err != nil { |
| 6955 | return nil, err |
| 6956 | } |
| 6957 | return m, nil |
| 6958 | } |
| 6959 | |
| 6960 | var _Watch_serviceDesc = grpc.ServiceDesc{ |
| 6961 | ServiceName: "etcdserverpb.Watch", |
| 6962 | HandlerType: (*WatchServer)(nil), |
| 6963 | Methods: []grpc.MethodDesc{}, |
| 6964 | Streams: []grpc.StreamDesc{ |
| 6965 | { |
| 6966 | StreamName: "Watch", |
| 6967 | Handler: _Watch_Watch_Handler, |
| 6968 | ServerStreams: true, |
| 6969 | ClientStreams: true, |
| 6970 | }, |
| 6971 | }, |
| 6972 | Metadata: "rpc.proto", |
| 6973 | } |
| 6974 | |
| 6975 | // LeaseClient is the client API for Lease service. |
| 6976 | // |
| 6977 | // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. |
| 6978 | type LeaseClient interface { |
| 6979 | // LeaseGrant creates a lease which expires if the server does not receive a keepAlive |
| 6980 | // within a given time to live period. All keys attached to the lease will be expired and |
| 6981 | // deleted if the lease expires. Each expired key generates a delete event in the event history. |
| 6982 | LeaseGrant(ctx context.Context, in *LeaseGrantRequest, opts ...grpc.CallOption) (*LeaseGrantResponse, error) |
| 6983 | // LeaseRevoke revokes a lease. All keys attached to the lease will expire and be deleted. |
| 6984 | LeaseRevoke(ctx context.Context, in *LeaseRevokeRequest, opts ...grpc.CallOption) (*LeaseRevokeResponse, error) |
| 6985 | // LeaseKeepAlive keeps the lease alive by streaming keep alive requests from the client |
| 6986 | // to the server and streaming keep alive responses from the server to the client. |
| 6987 | LeaseKeepAlive(ctx context.Context, opts ...grpc.CallOption) (Lease_LeaseKeepAliveClient, error) |
| 6988 | // LeaseTimeToLive retrieves lease information. |
| 6989 | LeaseTimeToLive(ctx context.Context, in *LeaseTimeToLiveRequest, opts ...grpc.CallOption) (*LeaseTimeToLiveResponse, error) |
| 6990 | // LeaseLeases lists all existing leases. |
| 6991 | LeaseLeases(ctx context.Context, in *LeaseLeasesRequest, opts ...grpc.CallOption) (*LeaseLeasesResponse, error) |
| 6992 | } |
| 6993 | |
| 6994 | type leaseClient struct { |
| 6995 | cc *grpc.ClientConn |
| 6996 | } |
| 6997 | |
| 6998 | func NewLeaseClient(cc *grpc.ClientConn) LeaseClient { |
| 6999 | return &leaseClient{cc} |
| 7000 | } |
| 7001 | |
| 7002 | func (c *leaseClient) LeaseGrant(ctx context.Context, in *LeaseGrantRequest, opts ...grpc.CallOption) (*LeaseGrantResponse, error) { |
| 7003 | out := new(LeaseGrantResponse) |
| 7004 | err := c.cc.Invoke(ctx, "/etcdserverpb.Lease/LeaseGrant", in, out, opts...) |
| 7005 | if err != nil { |
| 7006 | return nil, err |
| 7007 | } |
| 7008 | return out, nil |
| 7009 | } |
| 7010 | |
| 7011 | func (c *leaseClient) LeaseRevoke(ctx context.Context, in *LeaseRevokeRequest, opts ...grpc.CallOption) (*LeaseRevokeResponse, error) { |
| 7012 | out := new(LeaseRevokeResponse) |
| 7013 | err := c.cc.Invoke(ctx, "/etcdserverpb.Lease/LeaseRevoke", in, out, opts...) |
| 7014 | if err != nil { |
| 7015 | return nil, err |
| 7016 | } |
| 7017 | return out, nil |
| 7018 | } |
| 7019 | |
| 7020 | func (c *leaseClient) LeaseKeepAlive(ctx context.Context, opts ...grpc.CallOption) (Lease_LeaseKeepAliveClient, error) { |
| 7021 | stream, err := c.cc.NewStream(ctx, &_Lease_serviceDesc.Streams[0], "/etcdserverpb.Lease/LeaseKeepAlive", opts...) |
| 7022 | if err != nil { |
| 7023 | return nil, err |
| 7024 | } |
| 7025 | x := &leaseLeaseKeepAliveClient{stream} |
| 7026 | return x, nil |
| 7027 | } |
| 7028 | |
| 7029 | type Lease_LeaseKeepAliveClient interface { |
| 7030 | Send(*LeaseKeepAliveRequest) error |
| 7031 | Recv() (*LeaseKeepAliveResponse, error) |
| 7032 | grpc.ClientStream |
| 7033 | } |
| 7034 | |
| 7035 | type leaseLeaseKeepAliveClient struct { |
| 7036 | grpc.ClientStream |
| 7037 | } |
| 7038 | |
| 7039 | func (x *leaseLeaseKeepAliveClient) Send(m *LeaseKeepAliveRequest) error { |
| 7040 | return x.ClientStream.SendMsg(m) |
| 7041 | } |
| 7042 | |
| 7043 | func (x *leaseLeaseKeepAliveClient) Recv() (*LeaseKeepAliveResponse, error) { |
| 7044 | m := new(LeaseKeepAliveResponse) |
| 7045 | if err := x.ClientStream.RecvMsg(m); err != nil { |
| 7046 | return nil, err |
| 7047 | } |
| 7048 | return m, nil |
| 7049 | } |
| 7050 | |
| 7051 | func (c *leaseClient) LeaseTimeToLive(ctx context.Context, in *LeaseTimeToLiveRequest, opts ...grpc.CallOption) (*LeaseTimeToLiveResponse, error) { |
| 7052 | out := new(LeaseTimeToLiveResponse) |
| 7053 | err := c.cc.Invoke(ctx, "/etcdserverpb.Lease/LeaseTimeToLive", in, out, opts...) |
| 7054 | if err != nil { |
| 7055 | return nil, err |
| 7056 | } |
| 7057 | return out, nil |
| 7058 | } |
| 7059 | |
| 7060 | func (c *leaseClient) LeaseLeases(ctx context.Context, in *LeaseLeasesRequest, opts ...grpc.CallOption) (*LeaseLeasesResponse, error) { |
| 7061 | out := new(LeaseLeasesResponse) |
| 7062 | err := c.cc.Invoke(ctx, "/etcdserverpb.Lease/LeaseLeases", in, out, opts...) |
| 7063 | if err != nil { |
| 7064 | return nil, err |
| 7065 | } |
| 7066 | return out, nil |
| 7067 | } |
| 7068 | |
| 7069 | // LeaseServer is the server API for Lease service. |
| 7070 | type LeaseServer interface { |
| 7071 | // LeaseGrant creates a lease which expires if the server does not receive a keepAlive |
| 7072 | // within a given time to live period. All keys attached to the lease will be expired and |
| 7073 | // deleted if the lease expires. Each expired key generates a delete event in the event history. |
| 7074 | LeaseGrant(context.Context, *LeaseGrantRequest) (*LeaseGrantResponse, error) |
| 7075 | // LeaseRevoke revokes a lease. All keys attached to the lease will expire and be deleted. |
| 7076 | LeaseRevoke(context.Context, *LeaseRevokeRequest) (*LeaseRevokeResponse, error) |
| 7077 | // LeaseKeepAlive keeps the lease alive by streaming keep alive requests from the client |
| 7078 | // to the server and streaming keep alive responses from the server to the client. |
| 7079 | LeaseKeepAlive(Lease_LeaseKeepAliveServer) error |
| 7080 | // LeaseTimeToLive retrieves lease information. |
| 7081 | LeaseTimeToLive(context.Context, *LeaseTimeToLiveRequest) (*LeaseTimeToLiveResponse, error) |
| 7082 | // LeaseLeases lists all existing leases. |
| 7083 | LeaseLeases(context.Context, *LeaseLeasesRequest) (*LeaseLeasesResponse, error) |
| 7084 | } |
| 7085 | |
| 7086 | // UnimplementedLeaseServer can be embedded to have forward compatible implementations. |
| 7087 | type UnimplementedLeaseServer struct { |
| 7088 | } |
| 7089 | |
| 7090 | func (*UnimplementedLeaseServer) LeaseGrant(ctx context.Context, req *LeaseGrantRequest) (*LeaseGrantResponse, error) { |
| 7091 | return nil, status.Errorf(codes.Unimplemented, "method LeaseGrant not implemented") |
| 7092 | } |
| 7093 | func (*UnimplementedLeaseServer) LeaseRevoke(ctx context.Context, req *LeaseRevokeRequest) (*LeaseRevokeResponse, error) { |
| 7094 | return nil, status.Errorf(codes.Unimplemented, "method LeaseRevoke not implemented") |
| 7095 | } |
| 7096 | func (*UnimplementedLeaseServer) LeaseKeepAlive(srv Lease_LeaseKeepAliveServer) error { |
| 7097 | return status.Errorf(codes.Unimplemented, "method LeaseKeepAlive not implemented") |
| 7098 | } |
| 7099 | func (*UnimplementedLeaseServer) LeaseTimeToLive(ctx context.Context, req *LeaseTimeToLiveRequest) (*LeaseTimeToLiveResponse, error) { |
| 7100 | return nil, status.Errorf(codes.Unimplemented, "method LeaseTimeToLive not implemented") |
| 7101 | } |
| 7102 | func (*UnimplementedLeaseServer) LeaseLeases(ctx context.Context, req *LeaseLeasesRequest) (*LeaseLeasesResponse, error) { |
| 7103 | return nil, status.Errorf(codes.Unimplemented, "method LeaseLeases not implemented") |
| 7104 | } |
| 7105 | |
| 7106 | func RegisterLeaseServer(s *grpc.Server, srv LeaseServer) { |
| 7107 | s.RegisterService(&_Lease_serviceDesc, srv) |
| 7108 | } |
| 7109 | |
| 7110 | func _Lease_LeaseGrant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 7111 | in := new(LeaseGrantRequest) |
| 7112 | if err := dec(in); err != nil { |
| 7113 | return nil, err |
| 7114 | } |
| 7115 | if interceptor == nil { |
| 7116 | return srv.(LeaseServer).LeaseGrant(ctx, in) |
| 7117 | } |
| 7118 | info := &grpc.UnaryServerInfo{ |
| 7119 | Server: srv, |
| 7120 | FullMethod: "/etcdserverpb.Lease/LeaseGrant", |
| 7121 | } |
| 7122 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 7123 | return srv.(LeaseServer).LeaseGrant(ctx, req.(*LeaseGrantRequest)) |
| 7124 | } |
| 7125 | return interceptor(ctx, in, info, handler) |
| 7126 | } |
| 7127 | |
| 7128 | func _Lease_LeaseRevoke_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 7129 | in := new(LeaseRevokeRequest) |
| 7130 | if err := dec(in); err != nil { |
| 7131 | return nil, err |
| 7132 | } |
| 7133 | if interceptor == nil { |
| 7134 | return srv.(LeaseServer).LeaseRevoke(ctx, in) |
| 7135 | } |
| 7136 | info := &grpc.UnaryServerInfo{ |
| 7137 | Server: srv, |
| 7138 | FullMethod: "/etcdserverpb.Lease/LeaseRevoke", |
| 7139 | } |
| 7140 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 7141 | return srv.(LeaseServer).LeaseRevoke(ctx, req.(*LeaseRevokeRequest)) |
| 7142 | } |
| 7143 | return interceptor(ctx, in, info, handler) |
| 7144 | } |
| 7145 | |
| 7146 | func _Lease_LeaseKeepAlive_Handler(srv interface{}, stream grpc.ServerStream) error { |
| 7147 | return srv.(LeaseServer).LeaseKeepAlive(&leaseLeaseKeepAliveServer{stream}) |
| 7148 | } |
| 7149 | |
| 7150 | type Lease_LeaseKeepAliveServer interface { |
| 7151 | Send(*LeaseKeepAliveResponse) error |
| 7152 | Recv() (*LeaseKeepAliveRequest, error) |
| 7153 | grpc.ServerStream |
| 7154 | } |
| 7155 | |
| 7156 | type leaseLeaseKeepAliveServer struct { |
| 7157 | grpc.ServerStream |
| 7158 | } |
| 7159 | |
| 7160 | func (x *leaseLeaseKeepAliveServer) Send(m *LeaseKeepAliveResponse) error { |
| 7161 | return x.ServerStream.SendMsg(m) |
| 7162 | } |
| 7163 | |
| 7164 | func (x *leaseLeaseKeepAliveServer) Recv() (*LeaseKeepAliveRequest, error) { |
| 7165 | m := new(LeaseKeepAliveRequest) |
| 7166 | if err := x.ServerStream.RecvMsg(m); err != nil { |
| 7167 | return nil, err |
| 7168 | } |
| 7169 | return m, nil |
| 7170 | } |
| 7171 | |
| 7172 | func _Lease_LeaseTimeToLive_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 7173 | in := new(LeaseTimeToLiveRequest) |
| 7174 | if err := dec(in); err != nil { |
| 7175 | return nil, err |
| 7176 | } |
| 7177 | if interceptor == nil { |
| 7178 | return srv.(LeaseServer).LeaseTimeToLive(ctx, in) |
| 7179 | } |
| 7180 | info := &grpc.UnaryServerInfo{ |
| 7181 | Server: srv, |
| 7182 | FullMethod: "/etcdserverpb.Lease/LeaseTimeToLive", |
| 7183 | } |
| 7184 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 7185 | return srv.(LeaseServer).LeaseTimeToLive(ctx, req.(*LeaseTimeToLiveRequest)) |
| 7186 | } |
| 7187 | return interceptor(ctx, in, info, handler) |
| 7188 | } |
| 7189 | |
| 7190 | func _Lease_LeaseLeases_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 7191 | in := new(LeaseLeasesRequest) |
| 7192 | if err := dec(in); err != nil { |
| 7193 | return nil, err |
| 7194 | } |
| 7195 | if interceptor == nil { |
| 7196 | return srv.(LeaseServer).LeaseLeases(ctx, in) |
| 7197 | } |
| 7198 | info := &grpc.UnaryServerInfo{ |
| 7199 | Server: srv, |
| 7200 | FullMethod: "/etcdserverpb.Lease/LeaseLeases", |
| 7201 | } |
| 7202 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 7203 | return srv.(LeaseServer).LeaseLeases(ctx, req.(*LeaseLeasesRequest)) |
| 7204 | } |
| 7205 | return interceptor(ctx, in, info, handler) |
| 7206 | } |
| 7207 | |
| 7208 | var _Lease_serviceDesc = grpc.ServiceDesc{ |
| 7209 | ServiceName: "etcdserverpb.Lease", |
| 7210 | HandlerType: (*LeaseServer)(nil), |
| 7211 | Methods: []grpc.MethodDesc{ |
| 7212 | { |
| 7213 | MethodName: "LeaseGrant", |
| 7214 | Handler: _Lease_LeaseGrant_Handler, |
| 7215 | }, |
| 7216 | { |
| 7217 | MethodName: "LeaseRevoke", |
| 7218 | Handler: _Lease_LeaseRevoke_Handler, |
| 7219 | }, |
| 7220 | { |
| 7221 | MethodName: "LeaseTimeToLive", |
| 7222 | Handler: _Lease_LeaseTimeToLive_Handler, |
| 7223 | }, |
| 7224 | { |
| 7225 | MethodName: "LeaseLeases", |
| 7226 | Handler: _Lease_LeaseLeases_Handler, |
| 7227 | }, |
| 7228 | }, |
| 7229 | Streams: []grpc.StreamDesc{ |
| 7230 | { |
| 7231 | StreamName: "LeaseKeepAlive", |
| 7232 | Handler: _Lease_LeaseKeepAlive_Handler, |
| 7233 | ServerStreams: true, |
| 7234 | ClientStreams: true, |
| 7235 | }, |
| 7236 | }, |
| 7237 | Metadata: "rpc.proto", |
| 7238 | } |
| 7239 | |
| 7240 | // ClusterClient is the client API for Cluster service. |
| 7241 | // |
| 7242 | // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. |
| 7243 | type ClusterClient interface { |
| 7244 | // MemberAdd adds a member into the cluster. |
| 7245 | MemberAdd(ctx context.Context, in *MemberAddRequest, opts ...grpc.CallOption) (*MemberAddResponse, error) |
| 7246 | // MemberRemove removes an existing member from the cluster. |
| 7247 | MemberRemove(ctx context.Context, in *MemberRemoveRequest, opts ...grpc.CallOption) (*MemberRemoveResponse, error) |
| 7248 | // MemberUpdate updates the member configuration. |
| 7249 | MemberUpdate(ctx context.Context, in *MemberUpdateRequest, opts ...grpc.CallOption) (*MemberUpdateResponse, error) |
| 7250 | // MemberList lists all the members in the cluster. |
| 7251 | MemberList(ctx context.Context, in *MemberListRequest, opts ...grpc.CallOption) (*MemberListResponse, error) |
| 7252 | // MemberPromote promotes a member from raft learner (non-voting) to raft voting member. |
| 7253 | MemberPromote(ctx context.Context, in *MemberPromoteRequest, opts ...grpc.CallOption) (*MemberPromoteResponse, error) |
| 7254 | } |
| 7255 | |
| 7256 | type clusterClient struct { |
| 7257 | cc *grpc.ClientConn |
| 7258 | } |
| 7259 | |
| 7260 | func NewClusterClient(cc *grpc.ClientConn) ClusterClient { |
| 7261 | return &clusterClient{cc} |
| 7262 | } |
| 7263 | |
| 7264 | func (c *clusterClient) MemberAdd(ctx context.Context, in *MemberAddRequest, opts ...grpc.CallOption) (*MemberAddResponse, error) { |
| 7265 | out := new(MemberAddResponse) |
| 7266 | err := c.cc.Invoke(ctx, "/etcdserverpb.Cluster/MemberAdd", in, out, opts...) |
| 7267 | if err != nil { |
| 7268 | return nil, err |
| 7269 | } |
| 7270 | return out, nil |
| 7271 | } |
| 7272 | |
| 7273 | func (c *clusterClient) MemberRemove(ctx context.Context, in *MemberRemoveRequest, opts ...grpc.CallOption) (*MemberRemoveResponse, error) { |
| 7274 | out := new(MemberRemoveResponse) |
| 7275 | err := c.cc.Invoke(ctx, "/etcdserverpb.Cluster/MemberRemove", in, out, opts...) |
| 7276 | if err != nil { |
| 7277 | return nil, err |
| 7278 | } |
| 7279 | return out, nil |
| 7280 | } |
| 7281 | |
| 7282 | func (c *clusterClient) MemberUpdate(ctx context.Context, in *MemberUpdateRequest, opts ...grpc.CallOption) (*MemberUpdateResponse, error) { |
| 7283 | out := new(MemberUpdateResponse) |
| 7284 | err := c.cc.Invoke(ctx, "/etcdserverpb.Cluster/MemberUpdate", in, out, opts...) |
| 7285 | if err != nil { |
| 7286 | return nil, err |
| 7287 | } |
| 7288 | return out, nil |
| 7289 | } |
| 7290 | |
| 7291 | func (c *clusterClient) MemberList(ctx context.Context, in *MemberListRequest, opts ...grpc.CallOption) (*MemberListResponse, error) { |
| 7292 | out := new(MemberListResponse) |
| 7293 | err := c.cc.Invoke(ctx, "/etcdserverpb.Cluster/MemberList", in, out, opts...) |
| 7294 | if err != nil { |
| 7295 | return nil, err |
| 7296 | } |
| 7297 | return out, nil |
| 7298 | } |
| 7299 | |
| 7300 | func (c *clusterClient) MemberPromote(ctx context.Context, in *MemberPromoteRequest, opts ...grpc.CallOption) (*MemberPromoteResponse, error) { |
| 7301 | out := new(MemberPromoteResponse) |
| 7302 | err := c.cc.Invoke(ctx, "/etcdserverpb.Cluster/MemberPromote", in, out, opts...) |
| 7303 | if err != nil { |
| 7304 | return nil, err |
| 7305 | } |
| 7306 | return out, nil |
| 7307 | } |
| 7308 | |
| 7309 | // ClusterServer is the server API for Cluster service. |
| 7310 | type ClusterServer interface { |
| 7311 | // MemberAdd adds a member into the cluster. |
| 7312 | MemberAdd(context.Context, *MemberAddRequest) (*MemberAddResponse, error) |
| 7313 | // MemberRemove removes an existing member from the cluster. |
| 7314 | MemberRemove(context.Context, *MemberRemoveRequest) (*MemberRemoveResponse, error) |
| 7315 | // MemberUpdate updates the member configuration. |
| 7316 | MemberUpdate(context.Context, *MemberUpdateRequest) (*MemberUpdateResponse, error) |
| 7317 | // MemberList lists all the members in the cluster. |
| 7318 | MemberList(context.Context, *MemberListRequest) (*MemberListResponse, error) |
| 7319 | // MemberPromote promotes a member from raft learner (non-voting) to raft voting member. |
| 7320 | MemberPromote(context.Context, *MemberPromoteRequest) (*MemberPromoteResponse, error) |
| 7321 | } |
| 7322 | |
| 7323 | // UnimplementedClusterServer can be embedded to have forward compatible implementations. |
| 7324 | type UnimplementedClusterServer struct { |
| 7325 | } |
| 7326 | |
| 7327 | func (*UnimplementedClusterServer) MemberAdd(ctx context.Context, req *MemberAddRequest) (*MemberAddResponse, error) { |
| 7328 | return nil, status.Errorf(codes.Unimplemented, "method MemberAdd not implemented") |
| 7329 | } |
| 7330 | func (*UnimplementedClusterServer) MemberRemove(ctx context.Context, req *MemberRemoveRequest) (*MemberRemoveResponse, error) { |
| 7331 | return nil, status.Errorf(codes.Unimplemented, "method MemberRemove not implemented") |
| 7332 | } |
| 7333 | func (*UnimplementedClusterServer) MemberUpdate(ctx context.Context, req *MemberUpdateRequest) (*MemberUpdateResponse, error) { |
| 7334 | return nil, status.Errorf(codes.Unimplemented, "method MemberUpdate not implemented") |
| 7335 | } |
| 7336 | func (*UnimplementedClusterServer) MemberList(ctx context.Context, req *MemberListRequest) (*MemberListResponse, error) { |
| 7337 | return nil, status.Errorf(codes.Unimplemented, "method MemberList not implemented") |
| 7338 | } |
| 7339 | func (*UnimplementedClusterServer) MemberPromote(ctx context.Context, req *MemberPromoteRequest) (*MemberPromoteResponse, error) { |
| 7340 | return nil, status.Errorf(codes.Unimplemented, "method MemberPromote not implemented") |
| 7341 | } |
| 7342 | |
| 7343 | func RegisterClusterServer(s *grpc.Server, srv ClusterServer) { |
| 7344 | s.RegisterService(&_Cluster_serviceDesc, srv) |
| 7345 | } |
| 7346 | |
| 7347 | func _Cluster_MemberAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 7348 | in := new(MemberAddRequest) |
| 7349 | if err := dec(in); err != nil { |
| 7350 | return nil, err |
| 7351 | } |
| 7352 | if interceptor == nil { |
| 7353 | return srv.(ClusterServer).MemberAdd(ctx, in) |
| 7354 | } |
| 7355 | info := &grpc.UnaryServerInfo{ |
| 7356 | Server: srv, |
| 7357 | FullMethod: "/etcdserverpb.Cluster/MemberAdd", |
| 7358 | } |
| 7359 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 7360 | return srv.(ClusterServer).MemberAdd(ctx, req.(*MemberAddRequest)) |
| 7361 | } |
| 7362 | return interceptor(ctx, in, info, handler) |
| 7363 | } |
| 7364 | |
| 7365 | func _Cluster_MemberRemove_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 7366 | in := new(MemberRemoveRequest) |
| 7367 | if err := dec(in); err != nil { |
| 7368 | return nil, err |
| 7369 | } |
| 7370 | if interceptor == nil { |
| 7371 | return srv.(ClusterServer).MemberRemove(ctx, in) |
| 7372 | } |
| 7373 | info := &grpc.UnaryServerInfo{ |
| 7374 | Server: srv, |
| 7375 | FullMethod: "/etcdserverpb.Cluster/MemberRemove", |
| 7376 | } |
| 7377 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 7378 | return srv.(ClusterServer).MemberRemove(ctx, req.(*MemberRemoveRequest)) |
| 7379 | } |
| 7380 | return interceptor(ctx, in, info, handler) |
| 7381 | } |
| 7382 | |
| 7383 | func _Cluster_MemberUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 7384 | in := new(MemberUpdateRequest) |
| 7385 | if err := dec(in); err != nil { |
| 7386 | return nil, err |
| 7387 | } |
| 7388 | if interceptor == nil { |
| 7389 | return srv.(ClusterServer).MemberUpdate(ctx, in) |
| 7390 | } |
| 7391 | info := &grpc.UnaryServerInfo{ |
| 7392 | Server: srv, |
| 7393 | FullMethod: "/etcdserverpb.Cluster/MemberUpdate", |
| 7394 | } |
| 7395 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 7396 | return srv.(ClusterServer).MemberUpdate(ctx, req.(*MemberUpdateRequest)) |
| 7397 | } |
| 7398 | return interceptor(ctx, in, info, handler) |
| 7399 | } |
| 7400 | |
| 7401 | func _Cluster_MemberList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 7402 | in := new(MemberListRequest) |
| 7403 | if err := dec(in); err != nil { |
| 7404 | return nil, err |
| 7405 | } |
| 7406 | if interceptor == nil { |
| 7407 | return srv.(ClusterServer).MemberList(ctx, in) |
| 7408 | } |
| 7409 | info := &grpc.UnaryServerInfo{ |
| 7410 | Server: srv, |
| 7411 | FullMethod: "/etcdserverpb.Cluster/MemberList", |
| 7412 | } |
| 7413 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 7414 | return srv.(ClusterServer).MemberList(ctx, req.(*MemberListRequest)) |
| 7415 | } |
| 7416 | return interceptor(ctx, in, info, handler) |
| 7417 | } |
| 7418 | |
| 7419 | func _Cluster_MemberPromote_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 7420 | in := new(MemberPromoteRequest) |
| 7421 | if err := dec(in); err != nil { |
| 7422 | return nil, err |
| 7423 | } |
| 7424 | if interceptor == nil { |
| 7425 | return srv.(ClusterServer).MemberPromote(ctx, in) |
| 7426 | } |
| 7427 | info := &grpc.UnaryServerInfo{ |
| 7428 | Server: srv, |
| 7429 | FullMethod: "/etcdserverpb.Cluster/MemberPromote", |
| 7430 | } |
| 7431 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 7432 | return srv.(ClusterServer).MemberPromote(ctx, req.(*MemberPromoteRequest)) |
| 7433 | } |
| 7434 | return interceptor(ctx, in, info, handler) |
| 7435 | } |
| 7436 | |
| 7437 | var _Cluster_serviceDesc = grpc.ServiceDesc{ |
| 7438 | ServiceName: "etcdserverpb.Cluster", |
| 7439 | HandlerType: (*ClusterServer)(nil), |
| 7440 | Methods: []grpc.MethodDesc{ |
| 7441 | { |
| 7442 | MethodName: "MemberAdd", |
| 7443 | Handler: _Cluster_MemberAdd_Handler, |
| 7444 | }, |
| 7445 | { |
| 7446 | MethodName: "MemberRemove", |
| 7447 | Handler: _Cluster_MemberRemove_Handler, |
| 7448 | }, |
| 7449 | { |
| 7450 | MethodName: "MemberUpdate", |
| 7451 | Handler: _Cluster_MemberUpdate_Handler, |
| 7452 | }, |
| 7453 | { |
| 7454 | MethodName: "MemberList", |
| 7455 | Handler: _Cluster_MemberList_Handler, |
| 7456 | }, |
| 7457 | { |
| 7458 | MethodName: "MemberPromote", |
| 7459 | Handler: _Cluster_MemberPromote_Handler, |
| 7460 | }, |
| 7461 | }, |
| 7462 | Streams: []grpc.StreamDesc{}, |
| 7463 | Metadata: "rpc.proto", |
| 7464 | } |
| 7465 | |
| 7466 | // MaintenanceClient is the client API for Maintenance service. |
| 7467 | // |
| 7468 | // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. |
| 7469 | type MaintenanceClient interface { |
| 7470 | // Alarm activates, deactivates, and queries alarms regarding cluster health. |
| 7471 | Alarm(ctx context.Context, in *AlarmRequest, opts ...grpc.CallOption) (*AlarmResponse, error) |
| 7472 | // Status gets the status of the member. |
| 7473 | Status(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (*StatusResponse, error) |
| 7474 | // Defragment defragments a member's backend database to recover storage space. |
| 7475 | Defragment(ctx context.Context, in *DefragmentRequest, opts ...grpc.CallOption) (*DefragmentResponse, error) |
| 7476 | // Hash computes the hash of whole backend keyspace, |
| 7477 | // including key, lease, and other buckets in storage. |
| 7478 | // This is designed for testing ONLY! |
| 7479 | // Do not rely on this in production with ongoing transactions, |
| 7480 | // since Hash operation does not hold MVCC locks. |
| 7481 | // Use "HashKV" API instead for "key" bucket consistency checks. |
| 7482 | Hash(ctx context.Context, in *HashRequest, opts ...grpc.CallOption) (*HashResponse, error) |
| 7483 | // HashKV computes the hash of all MVCC keys up to a given revision. |
| 7484 | // It only iterates "key" bucket in backend storage. |
| 7485 | HashKV(ctx context.Context, in *HashKVRequest, opts ...grpc.CallOption) (*HashKVResponse, error) |
| 7486 | // Snapshot sends a snapshot of the entire backend from a member over a stream to a client. |
| 7487 | Snapshot(ctx context.Context, in *SnapshotRequest, opts ...grpc.CallOption) (Maintenance_SnapshotClient, error) |
| 7488 | // MoveLeader requests current leader node to transfer its leadership to transferee. |
| 7489 | MoveLeader(ctx context.Context, in *MoveLeaderRequest, opts ...grpc.CallOption) (*MoveLeaderResponse, error) |
| 7490 | // Downgrade requests downgrades, verifies feasibility or cancels downgrade |
| 7491 | // on the cluster version. |
| 7492 | // Supported since etcd 3.5. |
| 7493 | Downgrade(ctx context.Context, in *DowngradeRequest, opts ...grpc.CallOption) (*DowngradeResponse, error) |
| 7494 | } |
| 7495 | |
| 7496 | type maintenanceClient struct { |
| 7497 | cc *grpc.ClientConn |
| 7498 | } |
| 7499 | |
| 7500 | func NewMaintenanceClient(cc *grpc.ClientConn) MaintenanceClient { |
| 7501 | return &maintenanceClient{cc} |
| 7502 | } |
| 7503 | |
| 7504 | func (c *maintenanceClient) Alarm(ctx context.Context, in *AlarmRequest, opts ...grpc.CallOption) (*AlarmResponse, error) { |
| 7505 | out := new(AlarmResponse) |
| 7506 | err := c.cc.Invoke(ctx, "/etcdserverpb.Maintenance/Alarm", in, out, opts...) |
| 7507 | if err != nil { |
| 7508 | return nil, err |
| 7509 | } |
| 7510 | return out, nil |
| 7511 | } |
| 7512 | |
| 7513 | func (c *maintenanceClient) Status(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (*StatusResponse, error) { |
| 7514 | out := new(StatusResponse) |
| 7515 | err := c.cc.Invoke(ctx, "/etcdserverpb.Maintenance/Status", in, out, opts...) |
| 7516 | if err != nil { |
| 7517 | return nil, err |
| 7518 | } |
| 7519 | return out, nil |
| 7520 | } |
| 7521 | |
| 7522 | func (c *maintenanceClient) Defragment(ctx context.Context, in *DefragmentRequest, opts ...grpc.CallOption) (*DefragmentResponse, error) { |
| 7523 | out := new(DefragmentResponse) |
| 7524 | err := c.cc.Invoke(ctx, "/etcdserverpb.Maintenance/Defragment", in, out, opts...) |
| 7525 | if err != nil { |
| 7526 | return nil, err |
| 7527 | } |
| 7528 | return out, nil |
| 7529 | } |
| 7530 | |
| 7531 | func (c *maintenanceClient) Hash(ctx context.Context, in *HashRequest, opts ...grpc.CallOption) (*HashResponse, error) { |
| 7532 | out := new(HashResponse) |
| 7533 | err := c.cc.Invoke(ctx, "/etcdserverpb.Maintenance/Hash", in, out, opts...) |
| 7534 | if err != nil { |
| 7535 | return nil, err |
| 7536 | } |
| 7537 | return out, nil |
| 7538 | } |
| 7539 | |
| 7540 | func (c *maintenanceClient) HashKV(ctx context.Context, in *HashKVRequest, opts ...grpc.CallOption) (*HashKVResponse, error) { |
| 7541 | out := new(HashKVResponse) |
| 7542 | err := c.cc.Invoke(ctx, "/etcdserverpb.Maintenance/HashKV", in, out, opts...) |
| 7543 | if err != nil { |
| 7544 | return nil, err |
| 7545 | } |
| 7546 | return out, nil |
| 7547 | } |
| 7548 | |
| 7549 | func (c *maintenanceClient) Snapshot(ctx context.Context, in *SnapshotRequest, opts ...grpc.CallOption) (Maintenance_SnapshotClient, error) { |
| 7550 | stream, err := c.cc.NewStream(ctx, &_Maintenance_serviceDesc.Streams[0], "/etcdserverpb.Maintenance/Snapshot", opts...) |
| 7551 | if err != nil { |
| 7552 | return nil, err |
| 7553 | } |
| 7554 | x := &maintenanceSnapshotClient{stream} |
| 7555 | if err := x.ClientStream.SendMsg(in); err != nil { |
| 7556 | return nil, err |
| 7557 | } |
| 7558 | if err := x.ClientStream.CloseSend(); err != nil { |
| 7559 | return nil, err |
| 7560 | } |
| 7561 | return x, nil |
| 7562 | } |
| 7563 | |
| 7564 | type Maintenance_SnapshotClient interface { |
| 7565 | Recv() (*SnapshotResponse, error) |
| 7566 | grpc.ClientStream |
| 7567 | } |
| 7568 | |
| 7569 | type maintenanceSnapshotClient struct { |
| 7570 | grpc.ClientStream |
| 7571 | } |
| 7572 | |
| 7573 | func (x *maintenanceSnapshotClient) Recv() (*SnapshotResponse, error) { |
| 7574 | m := new(SnapshotResponse) |
| 7575 | if err := x.ClientStream.RecvMsg(m); err != nil { |
| 7576 | return nil, err |
| 7577 | } |
| 7578 | return m, nil |
| 7579 | } |
| 7580 | |
| 7581 | func (c *maintenanceClient) MoveLeader(ctx context.Context, in *MoveLeaderRequest, opts ...grpc.CallOption) (*MoveLeaderResponse, error) { |
| 7582 | out := new(MoveLeaderResponse) |
| 7583 | err := c.cc.Invoke(ctx, "/etcdserverpb.Maintenance/MoveLeader", in, out, opts...) |
| 7584 | if err != nil { |
| 7585 | return nil, err |
| 7586 | } |
| 7587 | return out, nil |
| 7588 | } |
| 7589 | |
| 7590 | func (c *maintenanceClient) Downgrade(ctx context.Context, in *DowngradeRequest, opts ...grpc.CallOption) (*DowngradeResponse, error) { |
| 7591 | out := new(DowngradeResponse) |
| 7592 | err := c.cc.Invoke(ctx, "/etcdserverpb.Maintenance/Downgrade", in, out, opts...) |
| 7593 | if err != nil { |
| 7594 | return nil, err |
| 7595 | } |
| 7596 | return out, nil |
| 7597 | } |
| 7598 | |
| 7599 | // MaintenanceServer is the server API for Maintenance service. |
| 7600 | type MaintenanceServer interface { |
| 7601 | // Alarm activates, deactivates, and queries alarms regarding cluster health. |
| 7602 | Alarm(context.Context, *AlarmRequest) (*AlarmResponse, error) |
| 7603 | // Status gets the status of the member. |
| 7604 | Status(context.Context, *StatusRequest) (*StatusResponse, error) |
| 7605 | // Defragment defragments a member's backend database to recover storage space. |
| 7606 | Defragment(context.Context, *DefragmentRequest) (*DefragmentResponse, error) |
| 7607 | // Hash computes the hash of whole backend keyspace, |
| 7608 | // including key, lease, and other buckets in storage. |
| 7609 | // This is designed for testing ONLY! |
| 7610 | // Do not rely on this in production with ongoing transactions, |
| 7611 | // since Hash operation does not hold MVCC locks. |
| 7612 | // Use "HashKV" API instead for "key" bucket consistency checks. |
| 7613 | Hash(context.Context, *HashRequest) (*HashResponse, error) |
| 7614 | // HashKV computes the hash of all MVCC keys up to a given revision. |
| 7615 | // It only iterates "key" bucket in backend storage. |
| 7616 | HashKV(context.Context, *HashKVRequest) (*HashKVResponse, error) |
| 7617 | // Snapshot sends a snapshot of the entire backend from a member over a stream to a client. |
| 7618 | Snapshot(*SnapshotRequest, Maintenance_SnapshotServer) error |
| 7619 | // MoveLeader requests current leader node to transfer its leadership to transferee. |
| 7620 | MoveLeader(context.Context, *MoveLeaderRequest) (*MoveLeaderResponse, error) |
| 7621 | // Downgrade requests downgrades, verifies feasibility or cancels downgrade |
| 7622 | // on the cluster version. |
| 7623 | // Supported since etcd 3.5. |
| 7624 | Downgrade(context.Context, *DowngradeRequest) (*DowngradeResponse, error) |
| 7625 | } |
| 7626 | |
| 7627 | // UnimplementedMaintenanceServer can be embedded to have forward compatible implementations. |
| 7628 | type UnimplementedMaintenanceServer struct { |
| 7629 | } |
| 7630 | |
| 7631 | func (*UnimplementedMaintenanceServer) Alarm(ctx context.Context, req *AlarmRequest) (*AlarmResponse, error) { |
| 7632 | return nil, status.Errorf(codes.Unimplemented, "method Alarm not implemented") |
| 7633 | } |
| 7634 | func (*UnimplementedMaintenanceServer) Status(ctx context.Context, req *StatusRequest) (*StatusResponse, error) { |
| 7635 | return nil, status.Errorf(codes.Unimplemented, "method Status not implemented") |
| 7636 | } |
| 7637 | func (*UnimplementedMaintenanceServer) Defragment(ctx context.Context, req *DefragmentRequest) (*DefragmentResponse, error) { |
| 7638 | return nil, status.Errorf(codes.Unimplemented, "method Defragment not implemented") |
| 7639 | } |
| 7640 | func (*UnimplementedMaintenanceServer) Hash(ctx context.Context, req *HashRequest) (*HashResponse, error) { |
| 7641 | return nil, status.Errorf(codes.Unimplemented, "method Hash not implemented") |
| 7642 | } |
| 7643 | func (*UnimplementedMaintenanceServer) HashKV(ctx context.Context, req *HashKVRequest) (*HashKVResponse, error) { |
| 7644 | return nil, status.Errorf(codes.Unimplemented, "method HashKV not implemented") |
| 7645 | } |
| 7646 | func (*UnimplementedMaintenanceServer) Snapshot(req *SnapshotRequest, srv Maintenance_SnapshotServer) error { |
| 7647 | return status.Errorf(codes.Unimplemented, "method Snapshot not implemented") |
| 7648 | } |
| 7649 | func (*UnimplementedMaintenanceServer) MoveLeader(ctx context.Context, req *MoveLeaderRequest) (*MoveLeaderResponse, error) { |
| 7650 | return nil, status.Errorf(codes.Unimplemented, "method MoveLeader not implemented") |
| 7651 | } |
| 7652 | func (*UnimplementedMaintenanceServer) Downgrade(ctx context.Context, req *DowngradeRequest) (*DowngradeResponse, error) { |
| 7653 | return nil, status.Errorf(codes.Unimplemented, "method Downgrade not implemented") |
| 7654 | } |
| 7655 | |
| 7656 | func RegisterMaintenanceServer(s *grpc.Server, srv MaintenanceServer) { |
| 7657 | s.RegisterService(&_Maintenance_serviceDesc, srv) |
| 7658 | } |
| 7659 | |
| 7660 | func _Maintenance_Alarm_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 7661 | in := new(AlarmRequest) |
| 7662 | if err := dec(in); err != nil { |
| 7663 | return nil, err |
| 7664 | } |
| 7665 | if interceptor == nil { |
| 7666 | return srv.(MaintenanceServer).Alarm(ctx, in) |
| 7667 | } |
| 7668 | info := &grpc.UnaryServerInfo{ |
| 7669 | Server: srv, |
| 7670 | FullMethod: "/etcdserverpb.Maintenance/Alarm", |
| 7671 | } |
| 7672 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 7673 | return srv.(MaintenanceServer).Alarm(ctx, req.(*AlarmRequest)) |
| 7674 | } |
| 7675 | return interceptor(ctx, in, info, handler) |
| 7676 | } |
| 7677 | |
| 7678 | func _Maintenance_Status_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 7679 | in := new(StatusRequest) |
| 7680 | if err := dec(in); err != nil { |
| 7681 | return nil, err |
| 7682 | } |
| 7683 | if interceptor == nil { |
| 7684 | return srv.(MaintenanceServer).Status(ctx, in) |
| 7685 | } |
| 7686 | info := &grpc.UnaryServerInfo{ |
| 7687 | Server: srv, |
| 7688 | FullMethod: "/etcdserverpb.Maintenance/Status", |
| 7689 | } |
| 7690 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 7691 | return srv.(MaintenanceServer).Status(ctx, req.(*StatusRequest)) |
| 7692 | } |
| 7693 | return interceptor(ctx, in, info, handler) |
| 7694 | } |
| 7695 | |
| 7696 | func _Maintenance_Defragment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 7697 | in := new(DefragmentRequest) |
| 7698 | if err := dec(in); err != nil { |
| 7699 | return nil, err |
| 7700 | } |
| 7701 | if interceptor == nil { |
| 7702 | return srv.(MaintenanceServer).Defragment(ctx, in) |
| 7703 | } |
| 7704 | info := &grpc.UnaryServerInfo{ |
| 7705 | Server: srv, |
| 7706 | FullMethod: "/etcdserverpb.Maintenance/Defragment", |
| 7707 | } |
| 7708 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 7709 | return srv.(MaintenanceServer).Defragment(ctx, req.(*DefragmentRequest)) |
| 7710 | } |
| 7711 | return interceptor(ctx, in, info, handler) |
| 7712 | } |
| 7713 | |
| 7714 | func _Maintenance_Hash_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 7715 | in := new(HashRequest) |
| 7716 | if err := dec(in); err != nil { |
| 7717 | return nil, err |
| 7718 | } |
| 7719 | if interceptor == nil { |
| 7720 | return srv.(MaintenanceServer).Hash(ctx, in) |
| 7721 | } |
| 7722 | info := &grpc.UnaryServerInfo{ |
| 7723 | Server: srv, |
| 7724 | FullMethod: "/etcdserverpb.Maintenance/Hash", |
| 7725 | } |
| 7726 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 7727 | return srv.(MaintenanceServer).Hash(ctx, req.(*HashRequest)) |
| 7728 | } |
| 7729 | return interceptor(ctx, in, info, handler) |
| 7730 | } |
| 7731 | |
| 7732 | func _Maintenance_HashKV_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 7733 | in := new(HashKVRequest) |
| 7734 | if err := dec(in); err != nil { |
| 7735 | return nil, err |
| 7736 | } |
| 7737 | if interceptor == nil { |
| 7738 | return srv.(MaintenanceServer).HashKV(ctx, in) |
| 7739 | } |
| 7740 | info := &grpc.UnaryServerInfo{ |
| 7741 | Server: srv, |
| 7742 | FullMethod: "/etcdserverpb.Maintenance/HashKV", |
| 7743 | } |
| 7744 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 7745 | return srv.(MaintenanceServer).HashKV(ctx, req.(*HashKVRequest)) |
| 7746 | } |
| 7747 | return interceptor(ctx, in, info, handler) |
| 7748 | } |
| 7749 | |
| 7750 | func _Maintenance_Snapshot_Handler(srv interface{}, stream grpc.ServerStream) error { |
| 7751 | m := new(SnapshotRequest) |
| 7752 | if err := stream.RecvMsg(m); err != nil { |
| 7753 | return err |
| 7754 | } |
| 7755 | return srv.(MaintenanceServer).Snapshot(m, &maintenanceSnapshotServer{stream}) |
| 7756 | } |
| 7757 | |
| 7758 | type Maintenance_SnapshotServer interface { |
| 7759 | Send(*SnapshotResponse) error |
| 7760 | grpc.ServerStream |
| 7761 | } |
| 7762 | |
| 7763 | type maintenanceSnapshotServer struct { |
| 7764 | grpc.ServerStream |
| 7765 | } |
| 7766 | |
| 7767 | func (x *maintenanceSnapshotServer) Send(m *SnapshotResponse) error { |
| 7768 | return x.ServerStream.SendMsg(m) |
| 7769 | } |
| 7770 | |
| 7771 | func _Maintenance_MoveLeader_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 7772 | in := new(MoveLeaderRequest) |
| 7773 | if err := dec(in); err != nil { |
| 7774 | return nil, err |
| 7775 | } |
| 7776 | if interceptor == nil { |
| 7777 | return srv.(MaintenanceServer).MoveLeader(ctx, in) |
| 7778 | } |
| 7779 | info := &grpc.UnaryServerInfo{ |
| 7780 | Server: srv, |
| 7781 | FullMethod: "/etcdserverpb.Maintenance/MoveLeader", |
| 7782 | } |
| 7783 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 7784 | return srv.(MaintenanceServer).MoveLeader(ctx, req.(*MoveLeaderRequest)) |
| 7785 | } |
| 7786 | return interceptor(ctx, in, info, handler) |
| 7787 | } |
| 7788 | |
| 7789 | func _Maintenance_Downgrade_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 7790 | in := new(DowngradeRequest) |
| 7791 | if err := dec(in); err != nil { |
| 7792 | return nil, err |
| 7793 | } |
| 7794 | if interceptor == nil { |
| 7795 | return srv.(MaintenanceServer).Downgrade(ctx, in) |
| 7796 | } |
| 7797 | info := &grpc.UnaryServerInfo{ |
| 7798 | Server: srv, |
| 7799 | FullMethod: "/etcdserverpb.Maintenance/Downgrade", |
| 7800 | } |
| 7801 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 7802 | return srv.(MaintenanceServer).Downgrade(ctx, req.(*DowngradeRequest)) |
| 7803 | } |
| 7804 | return interceptor(ctx, in, info, handler) |
| 7805 | } |
| 7806 | |
| 7807 | var _Maintenance_serviceDesc = grpc.ServiceDesc{ |
| 7808 | ServiceName: "etcdserverpb.Maintenance", |
| 7809 | HandlerType: (*MaintenanceServer)(nil), |
| 7810 | Methods: []grpc.MethodDesc{ |
| 7811 | { |
| 7812 | MethodName: "Alarm", |
| 7813 | Handler: _Maintenance_Alarm_Handler, |
| 7814 | }, |
| 7815 | { |
| 7816 | MethodName: "Status", |
| 7817 | Handler: _Maintenance_Status_Handler, |
| 7818 | }, |
| 7819 | { |
| 7820 | MethodName: "Defragment", |
| 7821 | Handler: _Maintenance_Defragment_Handler, |
| 7822 | }, |
| 7823 | { |
| 7824 | MethodName: "Hash", |
| 7825 | Handler: _Maintenance_Hash_Handler, |
| 7826 | }, |
| 7827 | { |
| 7828 | MethodName: "HashKV", |
| 7829 | Handler: _Maintenance_HashKV_Handler, |
| 7830 | }, |
| 7831 | { |
| 7832 | MethodName: "MoveLeader", |
| 7833 | Handler: _Maintenance_MoveLeader_Handler, |
| 7834 | }, |
| 7835 | { |
| 7836 | MethodName: "Downgrade", |
| 7837 | Handler: _Maintenance_Downgrade_Handler, |
| 7838 | }, |
| 7839 | }, |
| 7840 | Streams: []grpc.StreamDesc{ |
| 7841 | { |
| 7842 | StreamName: "Snapshot", |
| 7843 | Handler: _Maintenance_Snapshot_Handler, |
| 7844 | ServerStreams: true, |
| 7845 | }, |
| 7846 | }, |
| 7847 | Metadata: "rpc.proto", |
| 7848 | } |
| 7849 | |
| 7850 | // AuthClient is the client API for Auth service. |
| 7851 | // |
| 7852 | // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. |
| 7853 | type AuthClient interface { |
| 7854 | // AuthEnable enables authentication. |
| 7855 | AuthEnable(ctx context.Context, in *AuthEnableRequest, opts ...grpc.CallOption) (*AuthEnableResponse, error) |
| 7856 | // AuthDisable disables authentication. |
| 7857 | AuthDisable(ctx context.Context, in *AuthDisableRequest, opts ...grpc.CallOption) (*AuthDisableResponse, error) |
| 7858 | // AuthStatus displays authentication status. |
| 7859 | AuthStatus(ctx context.Context, in *AuthStatusRequest, opts ...grpc.CallOption) (*AuthStatusResponse, error) |
| 7860 | // Authenticate processes an authenticate request. |
| 7861 | Authenticate(ctx context.Context, in *AuthenticateRequest, opts ...grpc.CallOption) (*AuthenticateResponse, error) |
| 7862 | // UserAdd adds a new user. User name cannot be empty. |
| 7863 | UserAdd(ctx context.Context, in *AuthUserAddRequest, opts ...grpc.CallOption) (*AuthUserAddResponse, error) |
| 7864 | // UserGet gets detailed user information. |
| 7865 | UserGet(ctx context.Context, in *AuthUserGetRequest, opts ...grpc.CallOption) (*AuthUserGetResponse, error) |
| 7866 | // UserList gets a list of all users. |
| 7867 | UserList(ctx context.Context, in *AuthUserListRequest, opts ...grpc.CallOption) (*AuthUserListResponse, error) |
| 7868 | // UserDelete deletes a specified user. |
| 7869 | UserDelete(ctx context.Context, in *AuthUserDeleteRequest, opts ...grpc.CallOption) (*AuthUserDeleteResponse, error) |
| 7870 | // UserChangePassword changes the password of a specified user. |
| 7871 | UserChangePassword(ctx context.Context, in *AuthUserChangePasswordRequest, opts ...grpc.CallOption) (*AuthUserChangePasswordResponse, error) |
| 7872 | // UserGrant grants a role to a specified user. |
| 7873 | UserGrantRole(ctx context.Context, in *AuthUserGrantRoleRequest, opts ...grpc.CallOption) (*AuthUserGrantRoleResponse, error) |
| 7874 | // UserRevokeRole revokes a role of specified user. |
| 7875 | UserRevokeRole(ctx context.Context, in *AuthUserRevokeRoleRequest, opts ...grpc.CallOption) (*AuthUserRevokeRoleResponse, error) |
| 7876 | // RoleAdd adds a new role. Role name cannot be empty. |
| 7877 | RoleAdd(ctx context.Context, in *AuthRoleAddRequest, opts ...grpc.CallOption) (*AuthRoleAddResponse, error) |
| 7878 | // RoleGet gets detailed role information. |
| 7879 | RoleGet(ctx context.Context, in *AuthRoleGetRequest, opts ...grpc.CallOption) (*AuthRoleGetResponse, error) |
| 7880 | // RoleList gets lists of all roles. |
| 7881 | RoleList(ctx context.Context, in *AuthRoleListRequest, opts ...grpc.CallOption) (*AuthRoleListResponse, error) |
| 7882 | // RoleDelete deletes a specified role. |
| 7883 | RoleDelete(ctx context.Context, in *AuthRoleDeleteRequest, opts ...grpc.CallOption) (*AuthRoleDeleteResponse, error) |
| 7884 | // RoleGrantPermission grants a permission of a specified key or range to a specified role. |
| 7885 | RoleGrantPermission(ctx context.Context, in *AuthRoleGrantPermissionRequest, opts ...grpc.CallOption) (*AuthRoleGrantPermissionResponse, error) |
| 7886 | // RoleRevokePermission revokes a key or range permission of a specified role. |
| 7887 | RoleRevokePermission(ctx context.Context, in *AuthRoleRevokePermissionRequest, opts ...grpc.CallOption) (*AuthRoleRevokePermissionResponse, error) |
| 7888 | } |
| 7889 | |
| 7890 | type authClient struct { |
| 7891 | cc *grpc.ClientConn |
| 7892 | } |
| 7893 | |
| 7894 | func NewAuthClient(cc *grpc.ClientConn) AuthClient { |
| 7895 | return &authClient{cc} |
| 7896 | } |
| 7897 | |
| 7898 | func (c *authClient) AuthEnable(ctx context.Context, in *AuthEnableRequest, opts ...grpc.CallOption) (*AuthEnableResponse, error) { |
| 7899 | out := new(AuthEnableResponse) |
| 7900 | err := c.cc.Invoke(ctx, "/etcdserverpb.Auth/AuthEnable", in, out, opts...) |
| 7901 | if err != nil { |
| 7902 | return nil, err |
| 7903 | } |
| 7904 | return out, nil |
| 7905 | } |
| 7906 | |
| 7907 | func (c *authClient) AuthDisable(ctx context.Context, in *AuthDisableRequest, opts ...grpc.CallOption) (*AuthDisableResponse, error) { |
| 7908 | out := new(AuthDisableResponse) |
| 7909 | err := c.cc.Invoke(ctx, "/etcdserverpb.Auth/AuthDisable", in, out, opts...) |
| 7910 | if err != nil { |
| 7911 | return nil, err |
| 7912 | } |
| 7913 | return out, nil |
| 7914 | } |
| 7915 | |
| 7916 | func (c *authClient) AuthStatus(ctx context.Context, in *AuthStatusRequest, opts ...grpc.CallOption) (*AuthStatusResponse, error) { |
| 7917 | out := new(AuthStatusResponse) |
| 7918 | err := c.cc.Invoke(ctx, "/etcdserverpb.Auth/AuthStatus", in, out, opts...) |
| 7919 | if err != nil { |
| 7920 | return nil, err |
| 7921 | } |
| 7922 | return out, nil |
| 7923 | } |
| 7924 | |
| 7925 | func (c *authClient) Authenticate(ctx context.Context, in *AuthenticateRequest, opts ...grpc.CallOption) (*AuthenticateResponse, error) { |
| 7926 | out := new(AuthenticateResponse) |
| 7927 | err := c.cc.Invoke(ctx, "/etcdserverpb.Auth/Authenticate", in, out, opts...) |
| 7928 | if err != nil { |
| 7929 | return nil, err |
| 7930 | } |
| 7931 | return out, nil |
| 7932 | } |
| 7933 | |
| 7934 | func (c *authClient) UserAdd(ctx context.Context, in *AuthUserAddRequest, opts ...grpc.CallOption) (*AuthUserAddResponse, error) { |
| 7935 | out := new(AuthUserAddResponse) |
| 7936 | err := c.cc.Invoke(ctx, "/etcdserverpb.Auth/UserAdd", in, out, opts...) |
| 7937 | if err != nil { |
| 7938 | return nil, err |
| 7939 | } |
| 7940 | return out, nil |
| 7941 | } |
| 7942 | |
| 7943 | func (c *authClient) UserGet(ctx context.Context, in *AuthUserGetRequest, opts ...grpc.CallOption) (*AuthUserGetResponse, error) { |
| 7944 | out := new(AuthUserGetResponse) |
| 7945 | err := c.cc.Invoke(ctx, "/etcdserverpb.Auth/UserGet", in, out, opts...) |
| 7946 | if err != nil { |
| 7947 | return nil, err |
| 7948 | } |
| 7949 | return out, nil |
| 7950 | } |
| 7951 | |
| 7952 | func (c *authClient) UserList(ctx context.Context, in *AuthUserListRequest, opts ...grpc.CallOption) (*AuthUserListResponse, error) { |
| 7953 | out := new(AuthUserListResponse) |
| 7954 | err := c.cc.Invoke(ctx, "/etcdserverpb.Auth/UserList", in, out, opts...) |
| 7955 | if err != nil { |
| 7956 | return nil, err |
| 7957 | } |
| 7958 | return out, nil |
| 7959 | } |
| 7960 | |
| 7961 | func (c *authClient) UserDelete(ctx context.Context, in *AuthUserDeleteRequest, opts ...grpc.CallOption) (*AuthUserDeleteResponse, error) { |
| 7962 | out := new(AuthUserDeleteResponse) |
| 7963 | err := c.cc.Invoke(ctx, "/etcdserverpb.Auth/UserDelete", in, out, opts...) |
| 7964 | if err != nil { |
| 7965 | return nil, err |
| 7966 | } |
| 7967 | return out, nil |
| 7968 | } |
| 7969 | |
| 7970 | func (c *authClient) UserChangePassword(ctx context.Context, in *AuthUserChangePasswordRequest, opts ...grpc.CallOption) (*AuthUserChangePasswordResponse, error) { |
| 7971 | out := new(AuthUserChangePasswordResponse) |
| 7972 | err := c.cc.Invoke(ctx, "/etcdserverpb.Auth/UserChangePassword", in, out, opts...) |
| 7973 | if err != nil { |
| 7974 | return nil, err |
| 7975 | } |
| 7976 | return out, nil |
| 7977 | } |
| 7978 | |
| 7979 | func (c *authClient) UserGrantRole(ctx context.Context, in *AuthUserGrantRoleRequest, opts ...grpc.CallOption) (*AuthUserGrantRoleResponse, error) { |
| 7980 | out := new(AuthUserGrantRoleResponse) |
| 7981 | err := c.cc.Invoke(ctx, "/etcdserverpb.Auth/UserGrantRole", in, out, opts...) |
| 7982 | if err != nil { |
| 7983 | return nil, err |
| 7984 | } |
| 7985 | return out, nil |
| 7986 | } |
| 7987 | |
| 7988 | func (c *authClient) UserRevokeRole(ctx context.Context, in *AuthUserRevokeRoleRequest, opts ...grpc.CallOption) (*AuthUserRevokeRoleResponse, error) { |
| 7989 | out := new(AuthUserRevokeRoleResponse) |
| 7990 | err := c.cc.Invoke(ctx, "/etcdserverpb.Auth/UserRevokeRole", in, out, opts...) |
| 7991 | if err != nil { |
| 7992 | return nil, err |
| 7993 | } |
| 7994 | return out, nil |
| 7995 | } |
| 7996 | |
| 7997 | func (c *authClient) RoleAdd(ctx context.Context, in *AuthRoleAddRequest, opts ...grpc.CallOption) (*AuthRoleAddResponse, error) { |
| 7998 | out := new(AuthRoleAddResponse) |
| 7999 | err := c.cc.Invoke(ctx, "/etcdserverpb.Auth/RoleAdd", in, out, opts...) |
| 8000 | if err != nil { |
| 8001 | return nil, err |
| 8002 | } |
| 8003 | return out, nil |
| 8004 | } |
| 8005 | |
| 8006 | func (c *authClient) RoleGet(ctx context.Context, in *AuthRoleGetRequest, opts ...grpc.CallOption) (*AuthRoleGetResponse, error) { |
| 8007 | out := new(AuthRoleGetResponse) |
| 8008 | err := c.cc.Invoke(ctx, "/etcdserverpb.Auth/RoleGet", in, out, opts...) |
| 8009 | if err != nil { |
| 8010 | return nil, err |
| 8011 | } |
| 8012 | return out, nil |
| 8013 | } |
| 8014 | |
| 8015 | func (c *authClient) RoleList(ctx context.Context, in *AuthRoleListRequest, opts ...grpc.CallOption) (*AuthRoleListResponse, error) { |
| 8016 | out := new(AuthRoleListResponse) |
| 8017 | err := c.cc.Invoke(ctx, "/etcdserverpb.Auth/RoleList", in, out, opts...) |
| 8018 | if err != nil { |
| 8019 | return nil, err |
| 8020 | } |
| 8021 | return out, nil |
| 8022 | } |
| 8023 | |
| 8024 | func (c *authClient) RoleDelete(ctx context.Context, in *AuthRoleDeleteRequest, opts ...grpc.CallOption) (*AuthRoleDeleteResponse, error) { |
| 8025 | out := new(AuthRoleDeleteResponse) |
| 8026 | err := c.cc.Invoke(ctx, "/etcdserverpb.Auth/RoleDelete", in, out, opts...) |
| 8027 | if err != nil { |
| 8028 | return nil, err |
| 8029 | } |
| 8030 | return out, nil |
| 8031 | } |
| 8032 | |
| 8033 | func (c *authClient) RoleGrantPermission(ctx context.Context, in *AuthRoleGrantPermissionRequest, opts ...grpc.CallOption) (*AuthRoleGrantPermissionResponse, error) { |
| 8034 | out := new(AuthRoleGrantPermissionResponse) |
| 8035 | err := c.cc.Invoke(ctx, "/etcdserverpb.Auth/RoleGrantPermission", in, out, opts...) |
| 8036 | if err != nil { |
| 8037 | return nil, err |
| 8038 | } |
| 8039 | return out, nil |
| 8040 | } |
| 8041 | |
| 8042 | func (c *authClient) RoleRevokePermission(ctx context.Context, in *AuthRoleRevokePermissionRequest, opts ...grpc.CallOption) (*AuthRoleRevokePermissionResponse, error) { |
| 8043 | out := new(AuthRoleRevokePermissionResponse) |
| 8044 | err := c.cc.Invoke(ctx, "/etcdserverpb.Auth/RoleRevokePermission", in, out, opts...) |
| 8045 | if err != nil { |
| 8046 | return nil, err |
| 8047 | } |
| 8048 | return out, nil |
| 8049 | } |
| 8050 | |
| 8051 | // AuthServer is the server API for Auth service. |
| 8052 | type AuthServer interface { |
| 8053 | // AuthEnable enables authentication. |
| 8054 | AuthEnable(context.Context, *AuthEnableRequest) (*AuthEnableResponse, error) |
| 8055 | // AuthDisable disables authentication. |
| 8056 | AuthDisable(context.Context, *AuthDisableRequest) (*AuthDisableResponse, error) |
| 8057 | // AuthStatus displays authentication status. |
| 8058 | AuthStatus(context.Context, *AuthStatusRequest) (*AuthStatusResponse, error) |
| 8059 | // Authenticate processes an authenticate request. |
| 8060 | Authenticate(context.Context, *AuthenticateRequest) (*AuthenticateResponse, error) |
| 8061 | // UserAdd adds a new user. User name cannot be empty. |
| 8062 | UserAdd(context.Context, *AuthUserAddRequest) (*AuthUserAddResponse, error) |
| 8063 | // UserGet gets detailed user information. |
| 8064 | UserGet(context.Context, *AuthUserGetRequest) (*AuthUserGetResponse, error) |
| 8065 | // UserList gets a list of all users. |
| 8066 | UserList(context.Context, *AuthUserListRequest) (*AuthUserListResponse, error) |
| 8067 | // UserDelete deletes a specified user. |
| 8068 | UserDelete(context.Context, *AuthUserDeleteRequest) (*AuthUserDeleteResponse, error) |
| 8069 | // UserChangePassword changes the password of a specified user. |
| 8070 | UserChangePassword(context.Context, *AuthUserChangePasswordRequest) (*AuthUserChangePasswordResponse, error) |
| 8071 | // UserGrant grants a role to a specified user. |
| 8072 | UserGrantRole(context.Context, *AuthUserGrantRoleRequest) (*AuthUserGrantRoleResponse, error) |
| 8073 | // UserRevokeRole revokes a role of specified user. |
| 8074 | UserRevokeRole(context.Context, *AuthUserRevokeRoleRequest) (*AuthUserRevokeRoleResponse, error) |
| 8075 | // RoleAdd adds a new role. Role name cannot be empty. |
| 8076 | RoleAdd(context.Context, *AuthRoleAddRequest) (*AuthRoleAddResponse, error) |
| 8077 | // RoleGet gets detailed role information. |
| 8078 | RoleGet(context.Context, *AuthRoleGetRequest) (*AuthRoleGetResponse, error) |
| 8079 | // RoleList gets lists of all roles. |
| 8080 | RoleList(context.Context, *AuthRoleListRequest) (*AuthRoleListResponse, error) |
| 8081 | // RoleDelete deletes a specified role. |
| 8082 | RoleDelete(context.Context, *AuthRoleDeleteRequest) (*AuthRoleDeleteResponse, error) |
| 8083 | // RoleGrantPermission grants a permission of a specified key or range to a specified role. |
| 8084 | RoleGrantPermission(context.Context, *AuthRoleGrantPermissionRequest) (*AuthRoleGrantPermissionResponse, error) |
| 8085 | // RoleRevokePermission revokes a key or range permission of a specified role. |
| 8086 | RoleRevokePermission(context.Context, *AuthRoleRevokePermissionRequest) (*AuthRoleRevokePermissionResponse, error) |
| 8087 | } |
| 8088 | |
| 8089 | // UnimplementedAuthServer can be embedded to have forward compatible implementations. |
| 8090 | type UnimplementedAuthServer struct { |
| 8091 | } |
| 8092 | |
| 8093 | func (*UnimplementedAuthServer) AuthEnable(ctx context.Context, req *AuthEnableRequest) (*AuthEnableResponse, error) { |
| 8094 | return nil, status.Errorf(codes.Unimplemented, "method AuthEnable not implemented") |
| 8095 | } |
| 8096 | func (*UnimplementedAuthServer) AuthDisable(ctx context.Context, req *AuthDisableRequest) (*AuthDisableResponse, error) { |
| 8097 | return nil, status.Errorf(codes.Unimplemented, "method AuthDisable not implemented") |
| 8098 | } |
| 8099 | func (*UnimplementedAuthServer) AuthStatus(ctx context.Context, req *AuthStatusRequest) (*AuthStatusResponse, error) { |
| 8100 | return nil, status.Errorf(codes.Unimplemented, "method AuthStatus not implemented") |
| 8101 | } |
| 8102 | func (*UnimplementedAuthServer) Authenticate(ctx context.Context, req *AuthenticateRequest) (*AuthenticateResponse, error) { |
| 8103 | return nil, status.Errorf(codes.Unimplemented, "method Authenticate not implemented") |
| 8104 | } |
| 8105 | func (*UnimplementedAuthServer) UserAdd(ctx context.Context, req *AuthUserAddRequest) (*AuthUserAddResponse, error) { |
| 8106 | return nil, status.Errorf(codes.Unimplemented, "method UserAdd not implemented") |
| 8107 | } |
| 8108 | func (*UnimplementedAuthServer) UserGet(ctx context.Context, req *AuthUserGetRequest) (*AuthUserGetResponse, error) { |
| 8109 | return nil, status.Errorf(codes.Unimplemented, "method UserGet not implemented") |
| 8110 | } |
| 8111 | func (*UnimplementedAuthServer) UserList(ctx context.Context, req *AuthUserListRequest) (*AuthUserListResponse, error) { |
| 8112 | return nil, status.Errorf(codes.Unimplemented, "method UserList not implemented") |
| 8113 | } |
| 8114 | func (*UnimplementedAuthServer) UserDelete(ctx context.Context, req *AuthUserDeleteRequest) (*AuthUserDeleteResponse, error) { |
| 8115 | return nil, status.Errorf(codes.Unimplemented, "method UserDelete not implemented") |
| 8116 | } |
| 8117 | func (*UnimplementedAuthServer) UserChangePassword(ctx context.Context, req *AuthUserChangePasswordRequest) (*AuthUserChangePasswordResponse, error) { |
| 8118 | return nil, status.Errorf(codes.Unimplemented, "method UserChangePassword not implemented") |
| 8119 | } |
| 8120 | func (*UnimplementedAuthServer) UserGrantRole(ctx context.Context, req *AuthUserGrantRoleRequest) (*AuthUserGrantRoleResponse, error) { |
| 8121 | return nil, status.Errorf(codes.Unimplemented, "method UserGrantRole not implemented") |
| 8122 | } |
| 8123 | func (*UnimplementedAuthServer) UserRevokeRole(ctx context.Context, req *AuthUserRevokeRoleRequest) (*AuthUserRevokeRoleResponse, error) { |
| 8124 | return nil, status.Errorf(codes.Unimplemented, "method UserRevokeRole not implemented") |
| 8125 | } |
| 8126 | func (*UnimplementedAuthServer) RoleAdd(ctx context.Context, req *AuthRoleAddRequest) (*AuthRoleAddResponse, error) { |
| 8127 | return nil, status.Errorf(codes.Unimplemented, "method RoleAdd not implemented") |
| 8128 | } |
| 8129 | func (*UnimplementedAuthServer) RoleGet(ctx context.Context, req *AuthRoleGetRequest) (*AuthRoleGetResponse, error) { |
| 8130 | return nil, status.Errorf(codes.Unimplemented, "method RoleGet not implemented") |
| 8131 | } |
| 8132 | func (*UnimplementedAuthServer) RoleList(ctx context.Context, req *AuthRoleListRequest) (*AuthRoleListResponse, error) { |
| 8133 | return nil, status.Errorf(codes.Unimplemented, "method RoleList not implemented") |
| 8134 | } |
| 8135 | func (*UnimplementedAuthServer) RoleDelete(ctx context.Context, req *AuthRoleDeleteRequest) (*AuthRoleDeleteResponse, error) { |
| 8136 | return nil, status.Errorf(codes.Unimplemented, "method RoleDelete not implemented") |
| 8137 | } |
| 8138 | func (*UnimplementedAuthServer) RoleGrantPermission(ctx context.Context, req *AuthRoleGrantPermissionRequest) (*AuthRoleGrantPermissionResponse, error) { |
| 8139 | return nil, status.Errorf(codes.Unimplemented, "method RoleGrantPermission not implemented") |
| 8140 | } |
| 8141 | func (*UnimplementedAuthServer) RoleRevokePermission(ctx context.Context, req *AuthRoleRevokePermissionRequest) (*AuthRoleRevokePermissionResponse, error) { |
| 8142 | return nil, status.Errorf(codes.Unimplemented, "method RoleRevokePermission not implemented") |
| 8143 | } |
| 8144 | |
| 8145 | func RegisterAuthServer(s *grpc.Server, srv AuthServer) { |
| 8146 | s.RegisterService(&_Auth_serviceDesc, srv) |
| 8147 | } |
| 8148 | |
| 8149 | func _Auth_AuthEnable_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 8150 | in := new(AuthEnableRequest) |
| 8151 | if err := dec(in); err != nil { |
| 8152 | return nil, err |
| 8153 | } |
| 8154 | if interceptor == nil { |
| 8155 | return srv.(AuthServer).AuthEnable(ctx, in) |
| 8156 | } |
| 8157 | info := &grpc.UnaryServerInfo{ |
| 8158 | Server: srv, |
| 8159 | FullMethod: "/etcdserverpb.Auth/AuthEnable", |
| 8160 | } |
| 8161 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 8162 | return srv.(AuthServer).AuthEnable(ctx, req.(*AuthEnableRequest)) |
| 8163 | } |
| 8164 | return interceptor(ctx, in, info, handler) |
| 8165 | } |
| 8166 | |
| 8167 | func _Auth_AuthDisable_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 8168 | in := new(AuthDisableRequest) |
| 8169 | if err := dec(in); err != nil { |
| 8170 | return nil, err |
| 8171 | } |
| 8172 | if interceptor == nil { |
| 8173 | return srv.(AuthServer).AuthDisable(ctx, in) |
| 8174 | } |
| 8175 | info := &grpc.UnaryServerInfo{ |
| 8176 | Server: srv, |
| 8177 | FullMethod: "/etcdserverpb.Auth/AuthDisable", |
| 8178 | } |
| 8179 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 8180 | return srv.(AuthServer).AuthDisable(ctx, req.(*AuthDisableRequest)) |
| 8181 | } |
| 8182 | return interceptor(ctx, in, info, handler) |
| 8183 | } |
| 8184 | |
| 8185 | func _Auth_AuthStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 8186 | in := new(AuthStatusRequest) |
| 8187 | if err := dec(in); err != nil { |
| 8188 | return nil, err |
| 8189 | } |
| 8190 | if interceptor == nil { |
| 8191 | return srv.(AuthServer).AuthStatus(ctx, in) |
| 8192 | } |
| 8193 | info := &grpc.UnaryServerInfo{ |
| 8194 | Server: srv, |
| 8195 | FullMethod: "/etcdserverpb.Auth/AuthStatus", |
| 8196 | } |
| 8197 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 8198 | return srv.(AuthServer).AuthStatus(ctx, req.(*AuthStatusRequest)) |
| 8199 | } |
| 8200 | return interceptor(ctx, in, info, handler) |
| 8201 | } |
| 8202 | |
| 8203 | func _Auth_Authenticate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 8204 | in := new(AuthenticateRequest) |
| 8205 | if err := dec(in); err != nil { |
| 8206 | return nil, err |
| 8207 | } |
| 8208 | if interceptor == nil { |
| 8209 | return srv.(AuthServer).Authenticate(ctx, in) |
| 8210 | } |
| 8211 | info := &grpc.UnaryServerInfo{ |
| 8212 | Server: srv, |
| 8213 | FullMethod: "/etcdserverpb.Auth/Authenticate", |
| 8214 | } |
| 8215 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 8216 | return srv.(AuthServer).Authenticate(ctx, req.(*AuthenticateRequest)) |
| 8217 | } |
| 8218 | return interceptor(ctx, in, info, handler) |
| 8219 | } |
| 8220 | |
| 8221 | func _Auth_UserAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 8222 | in := new(AuthUserAddRequest) |
| 8223 | if err := dec(in); err != nil { |
| 8224 | return nil, err |
| 8225 | } |
| 8226 | if interceptor == nil { |
| 8227 | return srv.(AuthServer).UserAdd(ctx, in) |
| 8228 | } |
| 8229 | info := &grpc.UnaryServerInfo{ |
| 8230 | Server: srv, |
| 8231 | FullMethod: "/etcdserverpb.Auth/UserAdd", |
| 8232 | } |
| 8233 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 8234 | return srv.(AuthServer).UserAdd(ctx, req.(*AuthUserAddRequest)) |
| 8235 | } |
| 8236 | return interceptor(ctx, in, info, handler) |
| 8237 | } |
| 8238 | |
| 8239 | func _Auth_UserGet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 8240 | in := new(AuthUserGetRequest) |
| 8241 | if err := dec(in); err != nil { |
| 8242 | return nil, err |
| 8243 | } |
| 8244 | if interceptor == nil { |
| 8245 | return srv.(AuthServer).UserGet(ctx, in) |
| 8246 | } |
| 8247 | info := &grpc.UnaryServerInfo{ |
| 8248 | Server: srv, |
| 8249 | FullMethod: "/etcdserverpb.Auth/UserGet", |
| 8250 | } |
| 8251 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 8252 | return srv.(AuthServer).UserGet(ctx, req.(*AuthUserGetRequest)) |
| 8253 | } |
| 8254 | return interceptor(ctx, in, info, handler) |
| 8255 | } |
| 8256 | |
| 8257 | func _Auth_UserList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 8258 | in := new(AuthUserListRequest) |
| 8259 | if err := dec(in); err != nil { |
| 8260 | return nil, err |
| 8261 | } |
| 8262 | if interceptor == nil { |
| 8263 | return srv.(AuthServer).UserList(ctx, in) |
| 8264 | } |
| 8265 | info := &grpc.UnaryServerInfo{ |
| 8266 | Server: srv, |
| 8267 | FullMethod: "/etcdserverpb.Auth/UserList", |
| 8268 | } |
| 8269 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 8270 | return srv.(AuthServer).UserList(ctx, req.(*AuthUserListRequest)) |
| 8271 | } |
| 8272 | return interceptor(ctx, in, info, handler) |
| 8273 | } |
| 8274 | |
| 8275 | func _Auth_UserDelete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 8276 | in := new(AuthUserDeleteRequest) |
| 8277 | if err := dec(in); err != nil { |
| 8278 | return nil, err |
| 8279 | } |
| 8280 | if interceptor == nil { |
| 8281 | return srv.(AuthServer).UserDelete(ctx, in) |
| 8282 | } |
| 8283 | info := &grpc.UnaryServerInfo{ |
| 8284 | Server: srv, |
| 8285 | FullMethod: "/etcdserverpb.Auth/UserDelete", |
| 8286 | } |
| 8287 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 8288 | return srv.(AuthServer).UserDelete(ctx, req.(*AuthUserDeleteRequest)) |
| 8289 | } |
| 8290 | return interceptor(ctx, in, info, handler) |
| 8291 | } |
| 8292 | |
| 8293 | func _Auth_UserChangePassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 8294 | in := new(AuthUserChangePasswordRequest) |
| 8295 | if err := dec(in); err != nil { |
| 8296 | return nil, err |
| 8297 | } |
| 8298 | if interceptor == nil { |
| 8299 | return srv.(AuthServer).UserChangePassword(ctx, in) |
| 8300 | } |
| 8301 | info := &grpc.UnaryServerInfo{ |
| 8302 | Server: srv, |
| 8303 | FullMethod: "/etcdserverpb.Auth/UserChangePassword", |
| 8304 | } |
| 8305 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 8306 | return srv.(AuthServer).UserChangePassword(ctx, req.(*AuthUserChangePasswordRequest)) |
| 8307 | } |
| 8308 | return interceptor(ctx, in, info, handler) |
| 8309 | } |
| 8310 | |
| 8311 | func _Auth_UserGrantRole_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 8312 | in := new(AuthUserGrantRoleRequest) |
| 8313 | if err := dec(in); err != nil { |
| 8314 | return nil, err |
| 8315 | } |
| 8316 | if interceptor == nil { |
| 8317 | return srv.(AuthServer).UserGrantRole(ctx, in) |
| 8318 | } |
| 8319 | info := &grpc.UnaryServerInfo{ |
| 8320 | Server: srv, |
| 8321 | FullMethod: "/etcdserverpb.Auth/UserGrantRole", |
| 8322 | } |
| 8323 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 8324 | return srv.(AuthServer).UserGrantRole(ctx, req.(*AuthUserGrantRoleRequest)) |
| 8325 | } |
| 8326 | return interceptor(ctx, in, info, handler) |
| 8327 | } |
| 8328 | |
| 8329 | func _Auth_UserRevokeRole_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 8330 | in := new(AuthUserRevokeRoleRequest) |
| 8331 | if err := dec(in); err != nil { |
| 8332 | return nil, err |
| 8333 | } |
| 8334 | if interceptor == nil { |
| 8335 | return srv.(AuthServer).UserRevokeRole(ctx, in) |
| 8336 | } |
| 8337 | info := &grpc.UnaryServerInfo{ |
| 8338 | Server: srv, |
| 8339 | FullMethod: "/etcdserverpb.Auth/UserRevokeRole", |
| 8340 | } |
| 8341 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 8342 | return srv.(AuthServer).UserRevokeRole(ctx, req.(*AuthUserRevokeRoleRequest)) |
| 8343 | } |
| 8344 | return interceptor(ctx, in, info, handler) |
| 8345 | } |
| 8346 | |
| 8347 | func _Auth_RoleAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 8348 | in := new(AuthRoleAddRequest) |
| 8349 | if err := dec(in); err != nil { |
| 8350 | return nil, err |
| 8351 | } |
| 8352 | if interceptor == nil { |
| 8353 | return srv.(AuthServer).RoleAdd(ctx, in) |
| 8354 | } |
| 8355 | info := &grpc.UnaryServerInfo{ |
| 8356 | Server: srv, |
| 8357 | FullMethod: "/etcdserverpb.Auth/RoleAdd", |
| 8358 | } |
| 8359 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 8360 | return srv.(AuthServer).RoleAdd(ctx, req.(*AuthRoleAddRequest)) |
| 8361 | } |
| 8362 | return interceptor(ctx, in, info, handler) |
| 8363 | } |
| 8364 | |
| 8365 | func _Auth_RoleGet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 8366 | in := new(AuthRoleGetRequest) |
| 8367 | if err := dec(in); err != nil { |
| 8368 | return nil, err |
| 8369 | } |
| 8370 | if interceptor == nil { |
| 8371 | return srv.(AuthServer).RoleGet(ctx, in) |
| 8372 | } |
| 8373 | info := &grpc.UnaryServerInfo{ |
| 8374 | Server: srv, |
| 8375 | FullMethod: "/etcdserverpb.Auth/RoleGet", |
| 8376 | } |
| 8377 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 8378 | return srv.(AuthServer).RoleGet(ctx, req.(*AuthRoleGetRequest)) |
| 8379 | } |
| 8380 | return interceptor(ctx, in, info, handler) |
| 8381 | } |
| 8382 | |
| 8383 | func _Auth_RoleList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 8384 | in := new(AuthRoleListRequest) |
| 8385 | if err := dec(in); err != nil { |
| 8386 | return nil, err |
| 8387 | } |
| 8388 | if interceptor == nil { |
| 8389 | return srv.(AuthServer).RoleList(ctx, in) |
| 8390 | } |
| 8391 | info := &grpc.UnaryServerInfo{ |
| 8392 | Server: srv, |
| 8393 | FullMethod: "/etcdserverpb.Auth/RoleList", |
| 8394 | } |
| 8395 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 8396 | return srv.(AuthServer).RoleList(ctx, req.(*AuthRoleListRequest)) |
| 8397 | } |
| 8398 | return interceptor(ctx, in, info, handler) |
| 8399 | } |
| 8400 | |
| 8401 | func _Auth_RoleDelete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 8402 | in := new(AuthRoleDeleteRequest) |
| 8403 | if err := dec(in); err != nil { |
| 8404 | return nil, err |
| 8405 | } |
| 8406 | if interceptor == nil { |
| 8407 | return srv.(AuthServer).RoleDelete(ctx, in) |
| 8408 | } |
| 8409 | info := &grpc.UnaryServerInfo{ |
| 8410 | Server: srv, |
| 8411 | FullMethod: "/etcdserverpb.Auth/RoleDelete", |
| 8412 | } |
| 8413 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 8414 | return srv.(AuthServer).RoleDelete(ctx, req.(*AuthRoleDeleteRequest)) |
| 8415 | } |
| 8416 | return interceptor(ctx, in, info, handler) |
| 8417 | } |
| 8418 | |
| 8419 | func _Auth_RoleGrantPermission_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 8420 | in := new(AuthRoleGrantPermissionRequest) |
| 8421 | if err := dec(in); err != nil { |
| 8422 | return nil, err |
| 8423 | } |
| 8424 | if interceptor == nil { |
| 8425 | return srv.(AuthServer).RoleGrantPermission(ctx, in) |
| 8426 | } |
| 8427 | info := &grpc.UnaryServerInfo{ |
| 8428 | Server: srv, |
| 8429 | FullMethod: "/etcdserverpb.Auth/RoleGrantPermission", |
| 8430 | } |
| 8431 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 8432 | return srv.(AuthServer).RoleGrantPermission(ctx, req.(*AuthRoleGrantPermissionRequest)) |
| 8433 | } |
| 8434 | return interceptor(ctx, in, info, handler) |
| 8435 | } |
| 8436 | |
| 8437 | func _Auth_RoleRevokePermission_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 8438 | in := new(AuthRoleRevokePermissionRequest) |
| 8439 | if err := dec(in); err != nil { |
| 8440 | return nil, err |
| 8441 | } |
| 8442 | if interceptor == nil { |
| 8443 | return srv.(AuthServer).RoleRevokePermission(ctx, in) |
| 8444 | } |
| 8445 | info := &grpc.UnaryServerInfo{ |
| 8446 | Server: srv, |
| 8447 | FullMethod: "/etcdserverpb.Auth/RoleRevokePermission", |
| 8448 | } |
| 8449 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 8450 | return srv.(AuthServer).RoleRevokePermission(ctx, req.(*AuthRoleRevokePermissionRequest)) |
| 8451 | } |
| 8452 | return interceptor(ctx, in, info, handler) |
| 8453 | } |
| 8454 | |
| 8455 | var _Auth_serviceDesc = grpc.ServiceDesc{ |
| 8456 | ServiceName: "etcdserverpb.Auth", |
| 8457 | HandlerType: (*AuthServer)(nil), |
| 8458 | Methods: []grpc.MethodDesc{ |
| 8459 | { |
| 8460 | MethodName: "AuthEnable", |
| 8461 | Handler: _Auth_AuthEnable_Handler, |
| 8462 | }, |
| 8463 | { |
| 8464 | MethodName: "AuthDisable", |
| 8465 | Handler: _Auth_AuthDisable_Handler, |
| 8466 | }, |
| 8467 | { |
| 8468 | MethodName: "AuthStatus", |
| 8469 | Handler: _Auth_AuthStatus_Handler, |
| 8470 | }, |
| 8471 | { |
| 8472 | MethodName: "Authenticate", |
| 8473 | Handler: _Auth_Authenticate_Handler, |
| 8474 | }, |
| 8475 | { |
| 8476 | MethodName: "UserAdd", |
| 8477 | Handler: _Auth_UserAdd_Handler, |
| 8478 | }, |
| 8479 | { |
| 8480 | MethodName: "UserGet", |
| 8481 | Handler: _Auth_UserGet_Handler, |
| 8482 | }, |
| 8483 | { |
| 8484 | MethodName: "UserList", |
| 8485 | Handler: _Auth_UserList_Handler, |
| 8486 | }, |
| 8487 | { |
| 8488 | MethodName: "UserDelete", |
| 8489 | Handler: _Auth_UserDelete_Handler, |
| 8490 | }, |
| 8491 | { |
| 8492 | MethodName: "UserChangePassword", |
| 8493 | Handler: _Auth_UserChangePassword_Handler, |
| 8494 | }, |
| 8495 | { |
| 8496 | MethodName: "UserGrantRole", |
| 8497 | Handler: _Auth_UserGrantRole_Handler, |
| 8498 | }, |
| 8499 | { |
| 8500 | MethodName: "UserRevokeRole", |
| 8501 | Handler: _Auth_UserRevokeRole_Handler, |
| 8502 | }, |
| 8503 | { |
| 8504 | MethodName: "RoleAdd", |
| 8505 | Handler: _Auth_RoleAdd_Handler, |
| 8506 | }, |
| 8507 | { |
| 8508 | MethodName: "RoleGet", |
| 8509 | Handler: _Auth_RoleGet_Handler, |
| 8510 | }, |
| 8511 | { |
| 8512 | MethodName: "RoleList", |
| 8513 | Handler: _Auth_RoleList_Handler, |
| 8514 | }, |
| 8515 | { |
| 8516 | MethodName: "RoleDelete", |
| 8517 | Handler: _Auth_RoleDelete_Handler, |
| 8518 | }, |
| 8519 | { |
| 8520 | MethodName: "RoleGrantPermission", |
| 8521 | Handler: _Auth_RoleGrantPermission_Handler, |
| 8522 | }, |
| 8523 | { |
| 8524 | MethodName: "RoleRevokePermission", |
| 8525 | Handler: _Auth_RoleRevokePermission_Handler, |
| 8526 | }, |
| 8527 | }, |
| 8528 | Streams: []grpc.StreamDesc{}, |
| 8529 | Metadata: "rpc.proto", |
| 8530 | } |
| 8531 | |
| 8532 | func (m *ResponseHeader) Marshal() (dAtA []byte, err error) { |
| 8533 | size := m.Size() |
| 8534 | dAtA = make([]byte, size) |
| 8535 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 8536 | if err != nil { |
| 8537 | return nil, err |
| 8538 | } |
| 8539 | return dAtA[:n], nil |
| 8540 | } |
| 8541 | |
| 8542 | func (m *ResponseHeader) MarshalTo(dAtA []byte) (int, error) { |
| 8543 | size := m.Size() |
| 8544 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 8545 | } |
| 8546 | |
| 8547 | func (m *ResponseHeader) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 8548 | i := len(dAtA) |
| 8549 | _ = i |
| 8550 | var l int |
| 8551 | _ = l |
| 8552 | if m.XXX_unrecognized != nil { |
| 8553 | i -= len(m.XXX_unrecognized) |
| 8554 | copy(dAtA[i:], m.XXX_unrecognized) |
| 8555 | } |
| 8556 | if m.RaftTerm != 0 { |
| 8557 | i = encodeVarintRpc(dAtA, i, uint64(m.RaftTerm)) |
| 8558 | i-- |
| 8559 | dAtA[i] = 0x20 |
| 8560 | } |
| 8561 | if m.Revision != 0 { |
| 8562 | i = encodeVarintRpc(dAtA, i, uint64(m.Revision)) |
| 8563 | i-- |
| 8564 | dAtA[i] = 0x18 |
| 8565 | } |
| 8566 | if m.MemberId != 0 { |
| 8567 | i = encodeVarintRpc(dAtA, i, uint64(m.MemberId)) |
| 8568 | i-- |
| 8569 | dAtA[i] = 0x10 |
| 8570 | } |
| 8571 | if m.ClusterId != 0 { |
| 8572 | i = encodeVarintRpc(dAtA, i, uint64(m.ClusterId)) |
| 8573 | i-- |
| 8574 | dAtA[i] = 0x8 |
| 8575 | } |
| 8576 | return len(dAtA) - i, nil |
| 8577 | } |
| 8578 | |
| 8579 | func (m *RangeRequest) Marshal() (dAtA []byte, err error) { |
| 8580 | size := m.Size() |
| 8581 | dAtA = make([]byte, size) |
| 8582 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 8583 | if err != nil { |
| 8584 | return nil, err |
| 8585 | } |
| 8586 | return dAtA[:n], nil |
| 8587 | } |
| 8588 | |
| 8589 | func (m *RangeRequest) MarshalTo(dAtA []byte) (int, error) { |
| 8590 | size := m.Size() |
| 8591 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 8592 | } |
| 8593 | |
| 8594 | func (m *RangeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 8595 | i := len(dAtA) |
| 8596 | _ = i |
| 8597 | var l int |
| 8598 | _ = l |
| 8599 | if m.XXX_unrecognized != nil { |
| 8600 | i -= len(m.XXX_unrecognized) |
| 8601 | copy(dAtA[i:], m.XXX_unrecognized) |
| 8602 | } |
| 8603 | if m.MaxCreateRevision != 0 { |
| 8604 | i = encodeVarintRpc(dAtA, i, uint64(m.MaxCreateRevision)) |
| 8605 | i-- |
| 8606 | dAtA[i] = 0x68 |
| 8607 | } |
| 8608 | if m.MinCreateRevision != 0 { |
| 8609 | i = encodeVarintRpc(dAtA, i, uint64(m.MinCreateRevision)) |
| 8610 | i-- |
| 8611 | dAtA[i] = 0x60 |
| 8612 | } |
| 8613 | if m.MaxModRevision != 0 { |
| 8614 | i = encodeVarintRpc(dAtA, i, uint64(m.MaxModRevision)) |
| 8615 | i-- |
| 8616 | dAtA[i] = 0x58 |
| 8617 | } |
| 8618 | if m.MinModRevision != 0 { |
| 8619 | i = encodeVarintRpc(dAtA, i, uint64(m.MinModRevision)) |
| 8620 | i-- |
| 8621 | dAtA[i] = 0x50 |
| 8622 | } |
| 8623 | if m.CountOnly { |
| 8624 | i-- |
| 8625 | if m.CountOnly { |
| 8626 | dAtA[i] = 1 |
| 8627 | } else { |
| 8628 | dAtA[i] = 0 |
| 8629 | } |
| 8630 | i-- |
| 8631 | dAtA[i] = 0x48 |
| 8632 | } |
| 8633 | if m.KeysOnly { |
| 8634 | i-- |
| 8635 | if m.KeysOnly { |
| 8636 | dAtA[i] = 1 |
| 8637 | } else { |
| 8638 | dAtA[i] = 0 |
| 8639 | } |
| 8640 | i-- |
| 8641 | dAtA[i] = 0x40 |
| 8642 | } |
| 8643 | if m.Serializable { |
| 8644 | i-- |
| 8645 | if m.Serializable { |
| 8646 | dAtA[i] = 1 |
| 8647 | } else { |
| 8648 | dAtA[i] = 0 |
| 8649 | } |
| 8650 | i-- |
| 8651 | dAtA[i] = 0x38 |
| 8652 | } |
| 8653 | if m.SortTarget != 0 { |
| 8654 | i = encodeVarintRpc(dAtA, i, uint64(m.SortTarget)) |
| 8655 | i-- |
| 8656 | dAtA[i] = 0x30 |
| 8657 | } |
| 8658 | if m.SortOrder != 0 { |
| 8659 | i = encodeVarintRpc(dAtA, i, uint64(m.SortOrder)) |
| 8660 | i-- |
| 8661 | dAtA[i] = 0x28 |
| 8662 | } |
| 8663 | if m.Revision != 0 { |
| 8664 | i = encodeVarintRpc(dAtA, i, uint64(m.Revision)) |
| 8665 | i-- |
| 8666 | dAtA[i] = 0x20 |
| 8667 | } |
| 8668 | if m.Limit != 0 { |
| 8669 | i = encodeVarintRpc(dAtA, i, uint64(m.Limit)) |
| 8670 | i-- |
| 8671 | dAtA[i] = 0x18 |
| 8672 | } |
| 8673 | if len(m.RangeEnd) > 0 { |
| 8674 | i -= len(m.RangeEnd) |
| 8675 | copy(dAtA[i:], m.RangeEnd) |
| 8676 | i = encodeVarintRpc(dAtA, i, uint64(len(m.RangeEnd))) |
| 8677 | i-- |
| 8678 | dAtA[i] = 0x12 |
| 8679 | } |
| 8680 | if len(m.Key) > 0 { |
| 8681 | i -= len(m.Key) |
| 8682 | copy(dAtA[i:], m.Key) |
| 8683 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Key))) |
| 8684 | i-- |
| 8685 | dAtA[i] = 0xa |
| 8686 | } |
| 8687 | return len(dAtA) - i, nil |
| 8688 | } |
| 8689 | |
| 8690 | func (m *RangeResponse) Marshal() (dAtA []byte, err error) { |
| 8691 | size := m.Size() |
| 8692 | dAtA = make([]byte, size) |
| 8693 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 8694 | if err != nil { |
| 8695 | return nil, err |
| 8696 | } |
| 8697 | return dAtA[:n], nil |
| 8698 | } |
| 8699 | |
| 8700 | func (m *RangeResponse) MarshalTo(dAtA []byte) (int, error) { |
| 8701 | size := m.Size() |
| 8702 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 8703 | } |
| 8704 | |
| 8705 | func (m *RangeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 8706 | i := len(dAtA) |
| 8707 | _ = i |
| 8708 | var l int |
| 8709 | _ = l |
| 8710 | if m.XXX_unrecognized != nil { |
| 8711 | i -= len(m.XXX_unrecognized) |
| 8712 | copy(dAtA[i:], m.XXX_unrecognized) |
| 8713 | } |
| 8714 | if m.Count != 0 { |
| 8715 | i = encodeVarintRpc(dAtA, i, uint64(m.Count)) |
| 8716 | i-- |
| 8717 | dAtA[i] = 0x20 |
| 8718 | } |
| 8719 | if m.More { |
| 8720 | i-- |
| 8721 | if m.More { |
| 8722 | dAtA[i] = 1 |
| 8723 | } else { |
| 8724 | dAtA[i] = 0 |
| 8725 | } |
| 8726 | i-- |
| 8727 | dAtA[i] = 0x18 |
| 8728 | } |
| 8729 | if len(m.Kvs) > 0 { |
| 8730 | for iNdEx := len(m.Kvs) - 1; iNdEx >= 0; iNdEx-- { |
| 8731 | { |
| 8732 | size, err := m.Kvs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) |
| 8733 | if err != nil { |
| 8734 | return 0, err |
| 8735 | } |
| 8736 | i -= size |
| 8737 | i = encodeVarintRpc(dAtA, i, uint64(size)) |
| 8738 | } |
| 8739 | i-- |
| 8740 | dAtA[i] = 0x12 |
| 8741 | } |
| 8742 | } |
| 8743 | if m.Header != nil { |
| 8744 | { |
| 8745 | size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) |
| 8746 | if err != nil { |
| 8747 | return 0, err |
| 8748 | } |
| 8749 | i -= size |
| 8750 | i = encodeVarintRpc(dAtA, i, uint64(size)) |
| 8751 | } |
| 8752 | i-- |
| 8753 | dAtA[i] = 0xa |
| 8754 | } |
| 8755 | return len(dAtA) - i, nil |
| 8756 | } |
| 8757 | |
| 8758 | func (m *PutRequest) Marshal() (dAtA []byte, err error) { |
| 8759 | size := m.Size() |
| 8760 | dAtA = make([]byte, size) |
| 8761 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 8762 | if err != nil { |
| 8763 | return nil, err |
| 8764 | } |
| 8765 | return dAtA[:n], nil |
| 8766 | } |
| 8767 | |
| 8768 | func (m *PutRequest) MarshalTo(dAtA []byte) (int, error) { |
| 8769 | size := m.Size() |
| 8770 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 8771 | } |
| 8772 | |
| 8773 | func (m *PutRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 8774 | i := len(dAtA) |
| 8775 | _ = i |
| 8776 | var l int |
| 8777 | _ = l |
| 8778 | if m.XXX_unrecognized != nil { |
| 8779 | i -= len(m.XXX_unrecognized) |
| 8780 | copy(dAtA[i:], m.XXX_unrecognized) |
| 8781 | } |
| 8782 | if m.IgnoreLease { |
| 8783 | i-- |
| 8784 | if m.IgnoreLease { |
| 8785 | dAtA[i] = 1 |
| 8786 | } else { |
| 8787 | dAtA[i] = 0 |
| 8788 | } |
| 8789 | i-- |
| 8790 | dAtA[i] = 0x30 |
| 8791 | } |
| 8792 | if m.IgnoreValue { |
| 8793 | i-- |
| 8794 | if m.IgnoreValue { |
| 8795 | dAtA[i] = 1 |
| 8796 | } else { |
| 8797 | dAtA[i] = 0 |
| 8798 | } |
| 8799 | i-- |
| 8800 | dAtA[i] = 0x28 |
| 8801 | } |
| 8802 | if m.PrevKv { |
| 8803 | i-- |
| 8804 | if m.PrevKv { |
| 8805 | dAtA[i] = 1 |
| 8806 | } else { |
| 8807 | dAtA[i] = 0 |
| 8808 | } |
| 8809 | i-- |
| 8810 | dAtA[i] = 0x20 |
| 8811 | } |
| 8812 | if m.Lease != 0 { |
| 8813 | i = encodeVarintRpc(dAtA, i, uint64(m.Lease)) |
| 8814 | i-- |
| 8815 | dAtA[i] = 0x18 |
| 8816 | } |
| 8817 | if len(m.Value) > 0 { |
| 8818 | i -= len(m.Value) |
| 8819 | copy(dAtA[i:], m.Value) |
| 8820 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Value))) |
| 8821 | i-- |
| 8822 | dAtA[i] = 0x12 |
| 8823 | } |
| 8824 | if len(m.Key) > 0 { |
| 8825 | i -= len(m.Key) |
| 8826 | copy(dAtA[i:], m.Key) |
| 8827 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Key))) |
| 8828 | i-- |
| 8829 | dAtA[i] = 0xa |
| 8830 | } |
| 8831 | return len(dAtA) - i, nil |
| 8832 | } |
| 8833 | |
| 8834 | func (m *PutResponse) Marshal() (dAtA []byte, err error) { |
| 8835 | size := m.Size() |
| 8836 | dAtA = make([]byte, size) |
| 8837 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 8838 | if err != nil { |
| 8839 | return nil, err |
| 8840 | } |
| 8841 | return dAtA[:n], nil |
| 8842 | } |
| 8843 | |
| 8844 | func (m *PutResponse) MarshalTo(dAtA []byte) (int, error) { |
| 8845 | size := m.Size() |
| 8846 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 8847 | } |
| 8848 | |
| 8849 | func (m *PutResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 8850 | i := len(dAtA) |
| 8851 | _ = i |
| 8852 | var l int |
| 8853 | _ = l |
| 8854 | if m.XXX_unrecognized != nil { |
| 8855 | i -= len(m.XXX_unrecognized) |
| 8856 | copy(dAtA[i:], m.XXX_unrecognized) |
| 8857 | } |
| 8858 | if m.PrevKv != nil { |
| 8859 | { |
| 8860 | size, err := m.PrevKv.MarshalToSizedBuffer(dAtA[:i]) |
| 8861 | if err != nil { |
| 8862 | return 0, err |
| 8863 | } |
| 8864 | i -= size |
| 8865 | i = encodeVarintRpc(dAtA, i, uint64(size)) |
| 8866 | } |
| 8867 | i-- |
| 8868 | dAtA[i] = 0x12 |
| 8869 | } |
| 8870 | if m.Header != nil { |
| 8871 | { |
| 8872 | size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) |
| 8873 | if err != nil { |
| 8874 | return 0, err |
| 8875 | } |
| 8876 | i -= size |
| 8877 | i = encodeVarintRpc(dAtA, i, uint64(size)) |
| 8878 | } |
| 8879 | i-- |
| 8880 | dAtA[i] = 0xa |
| 8881 | } |
| 8882 | return len(dAtA) - i, nil |
| 8883 | } |
| 8884 | |
| 8885 | func (m *DeleteRangeRequest) Marshal() (dAtA []byte, err error) { |
| 8886 | size := m.Size() |
| 8887 | dAtA = make([]byte, size) |
| 8888 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 8889 | if err != nil { |
| 8890 | return nil, err |
| 8891 | } |
| 8892 | return dAtA[:n], nil |
| 8893 | } |
| 8894 | |
| 8895 | func (m *DeleteRangeRequest) MarshalTo(dAtA []byte) (int, error) { |
| 8896 | size := m.Size() |
| 8897 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 8898 | } |
| 8899 | |
| 8900 | func (m *DeleteRangeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 8901 | i := len(dAtA) |
| 8902 | _ = i |
| 8903 | var l int |
| 8904 | _ = l |
| 8905 | if m.XXX_unrecognized != nil { |
| 8906 | i -= len(m.XXX_unrecognized) |
| 8907 | copy(dAtA[i:], m.XXX_unrecognized) |
| 8908 | } |
| 8909 | if m.PrevKv { |
| 8910 | i-- |
| 8911 | if m.PrevKv { |
| 8912 | dAtA[i] = 1 |
| 8913 | } else { |
| 8914 | dAtA[i] = 0 |
| 8915 | } |
| 8916 | i-- |
| 8917 | dAtA[i] = 0x18 |
| 8918 | } |
| 8919 | if len(m.RangeEnd) > 0 { |
| 8920 | i -= len(m.RangeEnd) |
| 8921 | copy(dAtA[i:], m.RangeEnd) |
| 8922 | i = encodeVarintRpc(dAtA, i, uint64(len(m.RangeEnd))) |
| 8923 | i-- |
| 8924 | dAtA[i] = 0x12 |
| 8925 | } |
| 8926 | if len(m.Key) > 0 { |
| 8927 | i -= len(m.Key) |
| 8928 | copy(dAtA[i:], m.Key) |
| 8929 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Key))) |
| 8930 | i-- |
| 8931 | dAtA[i] = 0xa |
| 8932 | } |
| 8933 | return len(dAtA) - i, nil |
| 8934 | } |
| 8935 | |
| 8936 | func (m *DeleteRangeResponse) Marshal() (dAtA []byte, err error) { |
| 8937 | size := m.Size() |
| 8938 | dAtA = make([]byte, size) |
| 8939 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 8940 | if err != nil { |
| 8941 | return nil, err |
| 8942 | } |
| 8943 | return dAtA[:n], nil |
| 8944 | } |
| 8945 | |
| 8946 | func (m *DeleteRangeResponse) MarshalTo(dAtA []byte) (int, error) { |
| 8947 | size := m.Size() |
| 8948 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 8949 | } |
| 8950 | |
| 8951 | func (m *DeleteRangeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 8952 | i := len(dAtA) |
| 8953 | _ = i |
| 8954 | var l int |
| 8955 | _ = l |
| 8956 | if m.XXX_unrecognized != nil { |
| 8957 | i -= len(m.XXX_unrecognized) |
| 8958 | copy(dAtA[i:], m.XXX_unrecognized) |
| 8959 | } |
| 8960 | if len(m.PrevKvs) > 0 { |
| 8961 | for iNdEx := len(m.PrevKvs) - 1; iNdEx >= 0; iNdEx-- { |
| 8962 | { |
| 8963 | size, err := m.PrevKvs[iNdEx].MarshalToSizedBuffer(dAtA[:i]) |
| 8964 | if err != nil { |
| 8965 | return 0, err |
| 8966 | } |
| 8967 | i -= size |
| 8968 | i = encodeVarintRpc(dAtA, i, uint64(size)) |
| 8969 | } |
| 8970 | i-- |
| 8971 | dAtA[i] = 0x1a |
| 8972 | } |
| 8973 | } |
| 8974 | if m.Deleted != 0 { |
| 8975 | i = encodeVarintRpc(dAtA, i, uint64(m.Deleted)) |
| 8976 | i-- |
| 8977 | dAtA[i] = 0x10 |
| 8978 | } |
| 8979 | if m.Header != nil { |
| 8980 | { |
| 8981 | size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) |
| 8982 | if err != nil { |
| 8983 | return 0, err |
| 8984 | } |
| 8985 | i -= size |
| 8986 | i = encodeVarintRpc(dAtA, i, uint64(size)) |
| 8987 | } |
| 8988 | i-- |
| 8989 | dAtA[i] = 0xa |
| 8990 | } |
| 8991 | return len(dAtA) - i, nil |
| 8992 | } |
| 8993 | |
| 8994 | func (m *RequestOp) Marshal() (dAtA []byte, err error) { |
| 8995 | size := m.Size() |
| 8996 | dAtA = make([]byte, size) |
| 8997 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 8998 | if err != nil { |
| 8999 | return nil, err |
| 9000 | } |
| 9001 | return dAtA[:n], nil |
| 9002 | } |
| 9003 | |
| 9004 | func (m *RequestOp) MarshalTo(dAtA []byte) (int, error) { |
| 9005 | size := m.Size() |
| 9006 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 9007 | } |
| 9008 | |
| 9009 | func (m *RequestOp) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 9010 | i := len(dAtA) |
| 9011 | _ = i |
| 9012 | var l int |
| 9013 | _ = l |
| 9014 | if m.XXX_unrecognized != nil { |
| 9015 | i -= len(m.XXX_unrecognized) |
| 9016 | copy(dAtA[i:], m.XXX_unrecognized) |
| 9017 | } |
| 9018 | if m.Request != nil { |
| 9019 | { |
| 9020 | size := m.Request.Size() |
| 9021 | i -= size |
| 9022 | if _, err := m.Request.MarshalTo(dAtA[i:]); err != nil { |
| 9023 | return 0, err |
| 9024 | } |
| 9025 | } |
| 9026 | } |
| 9027 | return len(dAtA) - i, nil |
| 9028 | } |
| 9029 | |
| 9030 | func (m *RequestOp_RequestRange) MarshalTo(dAtA []byte) (int, error) { |
| 9031 | size := m.Size() |
| 9032 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 9033 | } |
| 9034 | |
| 9035 | func (m *RequestOp_RequestRange) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 9036 | i := len(dAtA) |
| 9037 | if m.RequestRange != nil { |
| 9038 | { |
| 9039 | size, err := m.RequestRange.MarshalToSizedBuffer(dAtA[:i]) |
| 9040 | if err != nil { |
| 9041 | return 0, err |
| 9042 | } |
| 9043 | i -= size |
| 9044 | i = encodeVarintRpc(dAtA, i, uint64(size)) |
| 9045 | } |
| 9046 | i-- |
| 9047 | dAtA[i] = 0xa |
| 9048 | } |
| 9049 | return len(dAtA) - i, nil |
| 9050 | } |
| 9051 | func (m *RequestOp_RequestPut) MarshalTo(dAtA []byte) (int, error) { |
| 9052 | size := m.Size() |
| 9053 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 9054 | } |
| 9055 | |
| 9056 | func (m *RequestOp_RequestPut) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 9057 | i := len(dAtA) |
| 9058 | if m.RequestPut != nil { |
| 9059 | { |
| 9060 | size, err := m.RequestPut.MarshalToSizedBuffer(dAtA[:i]) |
| 9061 | if err != nil { |
| 9062 | return 0, err |
| 9063 | } |
| 9064 | i -= size |
| 9065 | i = encodeVarintRpc(dAtA, i, uint64(size)) |
| 9066 | } |
| 9067 | i-- |
| 9068 | dAtA[i] = 0x12 |
| 9069 | } |
| 9070 | return len(dAtA) - i, nil |
| 9071 | } |
| 9072 | func (m *RequestOp_RequestDeleteRange) MarshalTo(dAtA []byte) (int, error) { |
| 9073 | size := m.Size() |
| 9074 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 9075 | } |
| 9076 | |
| 9077 | func (m *RequestOp_RequestDeleteRange) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 9078 | i := len(dAtA) |
| 9079 | if m.RequestDeleteRange != nil { |
| 9080 | { |
| 9081 | size, err := m.RequestDeleteRange.MarshalToSizedBuffer(dAtA[:i]) |
| 9082 | if err != nil { |
| 9083 | return 0, err |
| 9084 | } |
| 9085 | i -= size |
| 9086 | i = encodeVarintRpc(dAtA, i, uint64(size)) |
| 9087 | } |
| 9088 | i-- |
| 9089 | dAtA[i] = 0x1a |
| 9090 | } |
| 9091 | return len(dAtA) - i, nil |
| 9092 | } |
| 9093 | func (m *RequestOp_RequestTxn) MarshalTo(dAtA []byte) (int, error) { |
| 9094 | size := m.Size() |
| 9095 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 9096 | } |
| 9097 | |
| 9098 | func (m *RequestOp_RequestTxn) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 9099 | i := len(dAtA) |
| 9100 | if m.RequestTxn != nil { |
| 9101 | { |
| 9102 | size, err := m.RequestTxn.MarshalToSizedBuffer(dAtA[:i]) |
| 9103 | if err != nil { |
| 9104 | return 0, err |
| 9105 | } |
| 9106 | i -= size |
| 9107 | i = encodeVarintRpc(dAtA, i, uint64(size)) |
| 9108 | } |
| 9109 | i-- |
| 9110 | dAtA[i] = 0x22 |
| 9111 | } |
| 9112 | return len(dAtA) - i, nil |
| 9113 | } |
| 9114 | func (m *ResponseOp) Marshal() (dAtA []byte, err error) { |
| 9115 | size := m.Size() |
| 9116 | dAtA = make([]byte, size) |
| 9117 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 9118 | if err != nil { |
| 9119 | return nil, err |
| 9120 | } |
| 9121 | return dAtA[:n], nil |
| 9122 | } |
| 9123 | |
| 9124 | func (m *ResponseOp) MarshalTo(dAtA []byte) (int, error) { |
| 9125 | size := m.Size() |
| 9126 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 9127 | } |
| 9128 | |
| 9129 | func (m *ResponseOp) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 9130 | i := len(dAtA) |
| 9131 | _ = i |
| 9132 | var l int |
| 9133 | _ = l |
| 9134 | if m.XXX_unrecognized != nil { |
| 9135 | i -= len(m.XXX_unrecognized) |
| 9136 | copy(dAtA[i:], m.XXX_unrecognized) |
| 9137 | } |
| 9138 | if m.Response != nil { |
| 9139 | { |
| 9140 | size := m.Response.Size() |
| 9141 | i -= size |
| 9142 | if _, err := m.Response.MarshalTo(dAtA[i:]); err != nil { |
| 9143 | return 0, err |
| 9144 | } |
| 9145 | } |
| 9146 | } |
| 9147 | return len(dAtA) - i, nil |
| 9148 | } |
| 9149 | |
| 9150 | func (m *ResponseOp_ResponseRange) MarshalTo(dAtA []byte) (int, error) { |
| 9151 | size := m.Size() |
| 9152 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 9153 | } |
| 9154 | |
| 9155 | func (m *ResponseOp_ResponseRange) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 9156 | i := len(dAtA) |
| 9157 | if m.ResponseRange != nil { |
| 9158 | { |
| 9159 | size, err := m.ResponseRange.MarshalToSizedBuffer(dAtA[:i]) |
| 9160 | if err != nil { |
| 9161 | return 0, err |
| 9162 | } |
| 9163 | i -= size |
| 9164 | i = encodeVarintRpc(dAtA, i, uint64(size)) |
| 9165 | } |
| 9166 | i-- |
| 9167 | dAtA[i] = 0xa |
| 9168 | } |
| 9169 | return len(dAtA) - i, nil |
| 9170 | } |
| 9171 | func (m *ResponseOp_ResponsePut) MarshalTo(dAtA []byte) (int, error) { |
| 9172 | size := m.Size() |
| 9173 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 9174 | } |
| 9175 | |
| 9176 | func (m *ResponseOp_ResponsePut) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 9177 | i := len(dAtA) |
| 9178 | if m.ResponsePut != nil { |
| 9179 | { |
| 9180 | size, err := m.ResponsePut.MarshalToSizedBuffer(dAtA[:i]) |
| 9181 | if err != nil { |
| 9182 | return 0, err |
| 9183 | } |
| 9184 | i -= size |
| 9185 | i = encodeVarintRpc(dAtA, i, uint64(size)) |
| 9186 | } |
| 9187 | i-- |
| 9188 | dAtA[i] = 0x12 |
| 9189 | } |
| 9190 | return len(dAtA) - i, nil |
| 9191 | } |
| 9192 | func (m *ResponseOp_ResponseDeleteRange) MarshalTo(dAtA []byte) (int, error) { |
| 9193 | size := m.Size() |
| 9194 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 9195 | } |
| 9196 | |
| 9197 | func (m *ResponseOp_ResponseDeleteRange) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 9198 | i := len(dAtA) |
| 9199 | if m.ResponseDeleteRange != nil { |
| 9200 | { |
| 9201 | size, err := m.ResponseDeleteRange.MarshalToSizedBuffer(dAtA[:i]) |
| 9202 | if err != nil { |
| 9203 | return 0, err |
| 9204 | } |
| 9205 | i -= size |
| 9206 | i = encodeVarintRpc(dAtA, i, uint64(size)) |
| 9207 | } |
| 9208 | i-- |
| 9209 | dAtA[i] = 0x1a |
| 9210 | } |
| 9211 | return len(dAtA) - i, nil |
| 9212 | } |
| 9213 | func (m *ResponseOp_ResponseTxn) MarshalTo(dAtA []byte) (int, error) { |
| 9214 | size := m.Size() |
| 9215 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 9216 | } |
| 9217 | |
| 9218 | func (m *ResponseOp_ResponseTxn) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 9219 | i := len(dAtA) |
| 9220 | if m.ResponseTxn != nil { |
| 9221 | { |
| 9222 | size, err := m.ResponseTxn.MarshalToSizedBuffer(dAtA[:i]) |
| 9223 | if err != nil { |
| 9224 | return 0, err |
| 9225 | } |
| 9226 | i -= size |
| 9227 | i = encodeVarintRpc(dAtA, i, uint64(size)) |
| 9228 | } |
| 9229 | i-- |
| 9230 | dAtA[i] = 0x22 |
| 9231 | } |
| 9232 | return len(dAtA) - i, nil |
| 9233 | } |
| 9234 | func (m *Compare) Marshal() (dAtA []byte, err error) { |
| 9235 | size := m.Size() |
| 9236 | dAtA = make([]byte, size) |
| 9237 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 9238 | if err != nil { |
| 9239 | return nil, err |
| 9240 | } |
| 9241 | return dAtA[:n], nil |
| 9242 | } |
| 9243 | |
| 9244 | func (m *Compare) MarshalTo(dAtA []byte) (int, error) { |
| 9245 | size := m.Size() |
| 9246 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 9247 | } |
| 9248 | |
| 9249 | func (m *Compare) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 9250 | i := len(dAtA) |
| 9251 | _ = i |
| 9252 | var l int |
| 9253 | _ = l |
| 9254 | if m.XXX_unrecognized != nil { |
| 9255 | i -= len(m.XXX_unrecognized) |
| 9256 | copy(dAtA[i:], m.XXX_unrecognized) |
| 9257 | } |
| 9258 | if len(m.RangeEnd) > 0 { |
| 9259 | i -= len(m.RangeEnd) |
| 9260 | copy(dAtA[i:], m.RangeEnd) |
| 9261 | i = encodeVarintRpc(dAtA, i, uint64(len(m.RangeEnd))) |
| 9262 | i-- |
| 9263 | dAtA[i] = 0x4 |
| 9264 | i-- |
| 9265 | dAtA[i] = 0x82 |
| 9266 | } |
| 9267 | if m.TargetUnion != nil { |
| 9268 | { |
| 9269 | size := m.TargetUnion.Size() |
| 9270 | i -= size |
| 9271 | if _, err := m.TargetUnion.MarshalTo(dAtA[i:]); err != nil { |
| 9272 | return 0, err |
| 9273 | } |
| 9274 | } |
| 9275 | } |
| 9276 | if len(m.Key) > 0 { |
| 9277 | i -= len(m.Key) |
| 9278 | copy(dAtA[i:], m.Key) |
| 9279 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Key))) |
| 9280 | i-- |
| 9281 | dAtA[i] = 0x1a |
| 9282 | } |
| 9283 | if m.Target != 0 { |
| 9284 | i = encodeVarintRpc(dAtA, i, uint64(m.Target)) |
| 9285 | i-- |
| 9286 | dAtA[i] = 0x10 |
| 9287 | } |
| 9288 | if m.Result != 0 { |
| 9289 | i = encodeVarintRpc(dAtA, i, uint64(m.Result)) |
| 9290 | i-- |
| 9291 | dAtA[i] = 0x8 |
| 9292 | } |
| 9293 | return len(dAtA) - i, nil |
| 9294 | } |
| 9295 | |
| 9296 | func (m *Compare_Version) MarshalTo(dAtA []byte) (int, error) { |
| 9297 | size := m.Size() |
| 9298 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 9299 | } |
| 9300 | |
| 9301 | func (m *Compare_Version) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 9302 | i := len(dAtA) |
| 9303 | i = encodeVarintRpc(dAtA, i, uint64(m.Version)) |
| 9304 | i-- |
| 9305 | dAtA[i] = 0x20 |
| 9306 | return len(dAtA) - i, nil |
| 9307 | } |
| 9308 | func (m *Compare_CreateRevision) MarshalTo(dAtA []byte) (int, error) { |
| 9309 | size := m.Size() |
| 9310 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 9311 | } |
| 9312 | |
| 9313 | func (m *Compare_CreateRevision) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 9314 | i := len(dAtA) |
| 9315 | i = encodeVarintRpc(dAtA, i, uint64(m.CreateRevision)) |
| 9316 | i-- |
| 9317 | dAtA[i] = 0x28 |
| 9318 | return len(dAtA) - i, nil |
| 9319 | } |
| 9320 | func (m *Compare_ModRevision) MarshalTo(dAtA []byte) (int, error) { |
| 9321 | size := m.Size() |
| 9322 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 9323 | } |
| 9324 | |
| 9325 | func (m *Compare_ModRevision) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 9326 | i := len(dAtA) |
| 9327 | i = encodeVarintRpc(dAtA, i, uint64(m.ModRevision)) |
| 9328 | i-- |
| 9329 | dAtA[i] = 0x30 |
| 9330 | return len(dAtA) - i, nil |
| 9331 | } |
| 9332 | func (m *Compare_Value) MarshalTo(dAtA []byte) (int, error) { |
| 9333 | size := m.Size() |
| 9334 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 9335 | } |
| 9336 | |
| 9337 | func (m *Compare_Value) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 9338 | i := len(dAtA) |
| 9339 | if m.Value != nil { |
| 9340 | i -= len(m.Value) |
| 9341 | copy(dAtA[i:], m.Value) |
| 9342 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Value))) |
| 9343 | i-- |
| 9344 | dAtA[i] = 0x3a |
| 9345 | } |
| 9346 | return len(dAtA) - i, nil |
| 9347 | } |
| 9348 | func (m *Compare_Lease) MarshalTo(dAtA []byte) (int, error) { |
| 9349 | size := m.Size() |
| 9350 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 9351 | } |
| 9352 | |
| 9353 | func (m *Compare_Lease) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 9354 | i := len(dAtA) |
| 9355 | i = encodeVarintRpc(dAtA, i, uint64(m.Lease)) |
| 9356 | i-- |
| 9357 | dAtA[i] = 0x40 |
| 9358 | return len(dAtA) - i, nil |
| 9359 | } |
| 9360 | func (m *TxnRequest) Marshal() (dAtA []byte, err error) { |
| 9361 | size := m.Size() |
| 9362 | dAtA = make([]byte, size) |
| 9363 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 9364 | if err != nil { |
| 9365 | return nil, err |
| 9366 | } |
| 9367 | return dAtA[:n], nil |
| 9368 | } |
| 9369 | |
| 9370 | func (m *TxnRequest) MarshalTo(dAtA []byte) (int, error) { |
| 9371 | size := m.Size() |
| 9372 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 9373 | } |
| 9374 | |
| 9375 | func (m *TxnRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 9376 | i := len(dAtA) |
| 9377 | _ = i |
| 9378 | var l int |
| 9379 | _ = l |
| 9380 | if m.XXX_unrecognized != nil { |
| 9381 | i -= len(m.XXX_unrecognized) |
| 9382 | copy(dAtA[i:], m.XXX_unrecognized) |
| 9383 | } |
| 9384 | if len(m.Failure) > 0 { |
| 9385 | for iNdEx := len(m.Failure) - 1; iNdEx >= 0; iNdEx-- { |
| 9386 | { |
| 9387 | size, err := m.Failure[iNdEx].MarshalToSizedBuffer(dAtA[:i]) |
| 9388 | if err != nil { |
| 9389 | return 0, err |
| 9390 | } |
| 9391 | i -= size |
| 9392 | i = encodeVarintRpc(dAtA, i, uint64(size)) |
| 9393 | } |
| 9394 | i-- |
| 9395 | dAtA[i] = 0x1a |
| 9396 | } |
| 9397 | } |
| 9398 | if len(m.Success) > 0 { |
| 9399 | for iNdEx := len(m.Success) - 1; iNdEx >= 0; iNdEx-- { |
| 9400 | { |
| 9401 | size, err := m.Success[iNdEx].MarshalToSizedBuffer(dAtA[:i]) |
| 9402 | if err != nil { |
| 9403 | return 0, err |
| 9404 | } |
| 9405 | i -= size |
| 9406 | i = encodeVarintRpc(dAtA, i, uint64(size)) |
| 9407 | } |
| 9408 | i-- |
| 9409 | dAtA[i] = 0x12 |
| 9410 | } |
| 9411 | } |
| 9412 | if len(m.Compare) > 0 { |
| 9413 | for iNdEx := len(m.Compare) - 1; iNdEx >= 0; iNdEx-- { |
| 9414 | { |
| 9415 | size, err := m.Compare[iNdEx].MarshalToSizedBuffer(dAtA[:i]) |
| 9416 | if err != nil { |
| 9417 | return 0, err |
| 9418 | } |
| 9419 | i -= size |
| 9420 | i = encodeVarintRpc(dAtA, i, uint64(size)) |
| 9421 | } |
| 9422 | i-- |
| 9423 | dAtA[i] = 0xa |
| 9424 | } |
| 9425 | } |
| 9426 | return len(dAtA) - i, nil |
| 9427 | } |
| 9428 | |
| 9429 | func (m *TxnResponse) Marshal() (dAtA []byte, err error) { |
| 9430 | size := m.Size() |
| 9431 | dAtA = make([]byte, size) |
| 9432 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 9433 | if err != nil { |
| 9434 | return nil, err |
| 9435 | } |
| 9436 | return dAtA[:n], nil |
| 9437 | } |
| 9438 | |
| 9439 | func (m *TxnResponse) MarshalTo(dAtA []byte) (int, error) { |
| 9440 | size := m.Size() |
| 9441 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 9442 | } |
| 9443 | |
| 9444 | func (m *TxnResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 9445 | i := len(dAtA) |
| 9446 | _ = i |
| 9447 | var l int |
| 9448 | _ = l |
| 9449 | if m.XXX_unrecognized != nil { |
| 9450 | i -= len(m.XXX_unrecognized) |
| 9451 | copy(dAtA[i:], m.XXX_unrecognized) |
| 9452 | } |
| 9453 | if len(m.Responses) > 0 { |
| 9454 | for iNdEx := len(m.Responses) - 1; iNdEx >= 0; iNdEx-- { |
| 9455 | { |
| 9456 | size, err := m.Responses[iNdEx].MarshalToSizedBuffer(dAtA[:i]) |
| 9457 | if err != nil { |
| 9458 | return 0, err |
| 9459 | } |
| 9460 | i -= size |
| 9461 | i = encodeVarintRpc(dAtA, i, uint64(size)) |
| 9462 | } |
| 9463 | i-- |
| 9464 | dAtA[i] = 0x1a |
| 9465 | } |
| 9466 | } |
| 9467 | if m.Succeeded { |
| 9468 | i-- |
| 9469 | if m.Succeeded { |
| 9470 | dAtA[i] = 1 |
| 9471 | } else { |
| 9472 | dAtA[i] = 0 |
| 9473 | } |
| 9474 | i-- |
| 9475 | dAtA[i] = 0x10 |
| 9476 | } |
| 9477 | if m.Header != nil { |
| 9478 | { |
| 9479 | size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) |
| 9480 | if err != nil { |
| 9481 | return 0, err |
| 9482 | } |
| 9483 | i -= size |
| 9484 | i = encodeVarintRpc(dAtA, i, uint64(size)) |
| 9485 | } |
| 9486 | i-- |
| 9487 | dAtA[i] = 0xa |
| 9488 | } |
| 9489 | return len(dAtA) - i, nil |
| 9490 | } |
| 9491 | |
| 9492 | func (m *CompactionRequest) Marshal() (dAtA []byte, err error) { |
| 9493 | size := m.Size() |
| 9494 | dAtA = make([]byte, size) |
| 9495 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 9496 | if err != nil { |
| 9497 | return nil, err |
| 9498 | } |
| 9499 | return dAtA[:n], nil |
| 9500 | } |
| 9501 | |
| 9502 | func (m *CompactionRequest) MarshalTo(dAtA []byte) (int, error) { |
| 9503 | size := m.Size() |
| 9504 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 9505 | } |
| 9506 | |
| 9507 | func (m *CompactionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 9508 | i := len(dAtA) |
| 9509 | _ = i |
| 9510 | var l int |
| 9511 | _ = l |
| 9512 | if m.XXX_unrecognized != nil { |
| 9513 | i -= len(m.XXX_unrecognized) |
| 9514 | copy(dAtA[i:], m.XXX_unrecognized) |
| 9515 | } |
| 9516 | if m.Physical { |
| 9517 | i-- |
| 9518 | if m.Physical { |
| 9519 | dAtA[i] = 1 |
| 9520 | } else { |
| 9521 | dAtA[i] = 0 |
| 9522 | } |
| 9523 | i-- |
| 9524 | dAtA[i] = 0x10 |
| 9525 | } |
| 9526 | if m.Revision != 0 { |
| 9527 | i = encodeVarintRpc(dAtA, i, uint64(m.Revision)) |
| 9528 | i-- |
| 9529 | dAtA[i] = 0x8 |
| 9530 | } |
| 9531 | return len(dAtA) - i, nil |
| 9532 | } |
| 9533 | |
| 9534 | func (m *CompactionResponse) Marshal() (dAtA []byte, err error) { |
| 9535 | size := m.Size() |
| 9536 | dAtA = make([]byte, size) |
| 9537 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 9538 | if err != nil { |
| 9539 | return nil, err |
| 9540 | } |
| 9541 | return dAtA[:n], nil |
| 9542 | } |
| 9543 | |
| 9544 | func (m *CompactionResponse) MarshalTo(dAtA []byte) (int, error) { |
| 9545 | size := m.Size() |
| 9546 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 9547 | } |
| 9548 | |
| 9549 | func (m *CompactionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 9550 | i := len(dAtA) |
| 9551 | _ = i |
| 9552 | var l int |
| 9553 | _ = l |
| 9554 | if m.XXX_unrecognized != nil { |
| 9555 | i -= len(m.XXX_unrecognized) |
| 9556 | copy(dAtA[i:], m.XXX_unrecognized) |
| 9557 | } |
| 9558 | if m.Header != nil { |
| 9559 | { |
| 9560 | size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) |
| 9561 | if err != nil { |
| 9562 | return 0, err |
| 9563 | } |
| 9564 | i -= size |
| 9565 | i = encodeVarintRpc(dAtA, i, uint64(size)) |
| 9566 | } |
| 9567 | i-- |
| 9568 | dAtA[i] = 0xa |
| 9569 | } |
| 9570 | return len(dAtA) - i, nil |
| 9571 | } |
| 9572 | |
| 9573 | func (m *HashRequest) Marshal() (dAtA []byte, err error) { |
| 9574 | size := m.Size() |
| 9575 | dAtA = make([]byte, size) |
| 9576 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 9577 | if err != nil { |
| 9578 | return nil, err |
| 9579 | } |
| 9580 | return dAtA[:n], nil |
| 9581 | } |
| 9582 | |
| 9583 | func (m *HashRequest) MarshalTo(dAtA []byte) (int, error) { |
| 9584 | size := m.Size() |
| 9585 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 9586 | } |
| 9587 | |
| 9588 | func (m *HashRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 9589 | i := len(dAtA) |
| 9590 | _ = i |
| 9591 | var l int |
| 9592 | _ = l |
| 9593 | if m.XXX_unrecognized != nil { |
| 9594 | i -= len(m.XXX_unrecognized) |
| 9595 | copy(dAtA[i:], m.XXX_unrecognized) |
| 9596 | } |
| 9597 | return len(dAtA) - i, nil |
| 9598 | } |
| 9599 | |
| 9600 | func (m *HashKVRequest) Marshal() (dAtA []byte, err error) { |
| 9601 | size := m.Size() |
| 9602 | dAtA = make([]byte, size) |
| 9603 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 9604 | if err != nil { |
| 9605 | return nil, err |
| 9606 | } |
| 9607 | return dAtA[:n], nil |
| 9608 | } |
| 9609 | |
| 9610 | func (m *HashKVRequest) MarshalTo(dAtA []byte) (int, error) { |
| 9611 | size := m.Size() |
| 9612 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 9613 | } |
| 9614 | |
| 9615 | func (m *HashKVRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 9616 | i := len(dAtA) |
| 9617 | _ = i |
| 9618 | var l int |
| 9619 | _ = l |
| 9620 | if m.XXX_unrecognized != nil { |
| 9621 | i -= len(m.XXX_unrecognized) |
| 9622 | copy(dAtA[i:], m.XXX_unrecognized) |
| 9623 | } |
| 9624 | if m.Revision != 0 { |
| 9625 | i = encodeVarintRpc(dAtA, i, uint64(m.Revision)) |
| 9626 | i-- |
| 9627 | dAtA[i] = 0x8 |
| 9628 | } |
| 9629 | return len(dAtA) - i, nil |
| 9630 | } |
| 9631 | |
| 9632 | func (m *HashKVResponse) Marshal() (dAtA []byte, err error) { |
| 9633 | size := m.Size() |
| 9634 | dAtA = make([]byte, size) |
| 9635 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 9636 | if err != nil { |
| 9637 | return nil, err |
| 9638 | } |
| 9639 | return dAtA[:n], nil |
| 9640 | } |
| 9641 | |
| 9642 | func (m *HashKVResponse) MarshalTo(dAtA []byte) (int, error) { |
| 9643 | size := m.Size() |
| 9644 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 9645 | } |
| 9646 | |
| 9647 | func (m *HashKVResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 9648 | i := len(dAtA) |
| 9649 | _ = i |
| 9650 | var l int |
| 9651 | _ = l |
| 9652 | if m.XXX_unrecognized != nil { |
| 9653 | i -= len(m.XXX_unrecognized) |
| 9654 | copy(dAtA[i:], m.XXX_unrecognized) |
| 9655 | } |
| 9656 | if m.HashRevision != 0 { |
| 9657 | i = encodeVarintRpc(dAtA, i, uint64(m.HashRevision)) |
| 9658 | i-- |
| 9659 | dAtA[i] = 0x20 |
| 9660 | } |
| 9661 | if m.CompactRevision != 0 { |
| 9662 | i = encodeVarintRpc(dAtA, i, uint64(m.CompactRevision)) |
| 9663 | i-- |
| 9664 | dAtA[i] = 0x18 |
| 9665 | } |
| 9666 | if m.Hash != 0 { |
| 9667 | i = encodeVarintRpc(dAtA, i, uint64(m.Hash)) |
| 9668 | i-- |
| 9669 | dAtA[i] = 0x10 |
| 9670 | } |
| 9671 | if m.Header != nil { |
| 9672 | { |
| 9673 | size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) |
| 9674 | if err != nil { |
| 9675 | return 0, err |
| 9676 | } |
| 9677 | i -= size |
| 9678 | i = encodeVarintRpc(dAtA, i, uint64(size)) |
| 9679 | } |
| 9680 | i-- |
| 9681 | dAtA[i] = 0xa |
| 9682 | } |
| 9683 | return len(dAtA) - i, nil |
| 9684 | } |
| 9685 | |
| 9686 | func (m *HashResponse) Marshal() (dAtA []byte, err error) { |
| 9687 | size := m.Size() |
| 9688 | dAtA = make([]byte, size) |
| 9689 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 9690 | if err != nil { |
| 9691 | return nil, err |
| 9692 | } |
| 9693 | return dAtA[:n], nil |
| 9694 | } |
| 9695 | |
| 9696 | func (m *HashResponse) MarshalTo(dAtA []byte) (int, error) { |
| 9697 | size := m.Size() |
| 9698 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 9699 | } |
| 9700 | |
| 9701 | func (m *HashResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 9702 | i := len(dAtA) |
| 9703 | _ = i |
| 9704 | var l int |
| 9705 | _ = l |
| 9706 | if m.XXX_unrecognized != nil { |
| 9707 | i -= len(m.XXX_unrecognized) |
| 9708 | copy(dAtA[i:], m.XXX_unrecognized) |
| 9709 | } |
| 9710 | if m.Hash != 0 { |
| 9711 | i = encodeVarintRpc(dAtA, i, uint64(m.Hash)) |
| 9712 | i-- |
| 9713 | dAtA[i] = 0x10 |
| 9714 | } |
| 9715 | if m.Header != nil { |
| 9716 | { |
| 9717 | size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) |
| 9718 | if err != nil { |
| 9719 | return 0, err |
| 9720 | } |
| 9721 | i -= size |
| 9722 | i = encodeVarintRpc(dAtA, i, uint64(size)) |
| 9723 | } |
| 9724 | i-- |
| 9725 | dAtA[i] = 0xa |
| 9726 | } |
| 9727 | return len(dAtA) - i, nil |
| 9728 | } |
| 9729 | |
| 9730 | func (m *SnapshotRequest) Marshal() (dAtA []byte, err error) { |
| 9731 | size := m.Size() |
| 9732 | dAtA = make([]byte, size) |
| 9733 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 9734 | if err != nil { |
| 9735 | return nil, err |
| 9736 | } |
| 9737 | return dAtA[:n], nil |
| 9738 | } |
| 9739 | |
| 9740 | func (m *SnapshotRequest) MarshalTo(dAtA []byte) (int, error) { |
| 9741 | size := m.Size() |
| 9742 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 9743 | } |
| 9744 | |
| 9745 | func (m *SnapshotRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 9746 | i := len(dAtA) |
| 9747 | _ = i |
| 9748 | var l int |
| 9749 | _ = l |
| 9750 | if m.XXX_unrecognized != nil { |
| 9751 | i -= len(m.XXX_unrecognized) |
| 9752 | copy(dAtA[i:], m.XXX_unrecognized) |
| 9753 | } |
| 9754 | return len(dAtA) - i, nil |
| 9755 | } |
| 9756 | |
| 9757 | func (m *SnapshotResponse) Marshal() (dAtA []byte, err error) { |
| 9758 | size := m.Size() |
| 9759 | dAtA = make([]byte, size) |
| 9760 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 9761 | if err != nil { |
| 9762 | return nil, err |
| 9763 | } |
| 9764 | return dAtA[:n], nil |
| 9765 | } |
| 9766 | |
| 9767 | func (m *SnapshotResponse) MarshalTo(dAtA []byte) (int, error) { |
| 9768 | size := m.Size() |
| 9769 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 9770 | } |
| 9771 | |
| 9772 | func (m *SnapshotResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 9773 | i := len(dAtA) |
| 9774 | _ = i |
| 9775 | var l int |
| 9776 | _ = l |
| 9777 | if m.XXX_unrecognized != nil { |
| 9778 | i -= len(m.XXX_unrecognized) |
| 9779 | copy(dAtA[i:], m.XXX_unrecognized) |
| 9780 | } |
| 9781 | if len(m.Version) > 0 { |
| 9782 | i -= len(m.Version) |
| 9783 | copy(dAtA[i:], m.Version) |
| 9784 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Version))) |
| 9785 | i-- |
| 9786 | dAtA[i] = 0x22 |
| 9787 | } |
| 9788 | if len(m.Blob) > 0 { |
| 9789 | i -= len(m.Blob) |
| 9790 | copy(dAtA[i:], m.Blob) |
| 9791 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Blob))) |
| 9792 | i-- |
| 9793 | dAtA[i] = 0x1a |
| 9794 | } |
| 9795 | if m.RemainingBytes != 0 { |
| 9796 | i = encodeVarintRpc(dAtA, i, uint64(m.RemainingBytes)) |
| 9797 | i-- |
| 9798 | dAtA[i] = 0x10 |
| 9799 | } |
| 9800 | if m.Header != nil { |
| 9801 | { |
| 9802 | size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) |
| 9803 | if err != nil { |
| 9804 | return 0, err |
| 9805 | } |
| 9806 | i -= size |
| 9807 | i = encodeVarintRpc(dAtA, i, uint64(size)) |
| 9808 | } |
| 9809 | i-- |
| 9810 | dAtA[i] = 0xa |
| 9811 | } |
| 9812 | return len(dAtA) - i, nil |
| 9813 | } |
| 9814 | |
| 9815 | func (m *WatchRequest) Marshal() (dAtA []byte, err error) { |
| 9816 | size := m.Size() |
| 9817 | dAtA = make([]byte, size) |
| 9818 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 9819 | if err != nil { |
| 9820 | return nil, err |
| 9821 | } |
| 9822 | return dAtA[:n], nil |
| 9823 | } |
| 9824 | |
| 9825 | func (m *WatchRequest) MarshalTo(dAtA []byte) (int, error) { |
| 9826 | size := m.Size() |
| 9827 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 9828 | } |
| 9829 | |
| 9830 | func (m *WatchRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 9831 | i := len(dAtA) |
| 9832 | _ = i |
| 9833 | var l int |
| 9834 | _ = l |
| 9835 | if m.XXX_unrecognized != nil { |
| 9836 | i -= len(m.XXX_unrecognized) |
| 9837 | copy(dAtA[i:], m.XXX_unrecognized) |
| 9838 | } |
| 9839 | if m.RequestUnion != nil { |
| 9840 | { |
| 9841 | size := m.RequestUnion.Size() |
| 9842 | i -= size |
| 9843 | if _, err := m.RequestUnion.MarshalTo(dAtA[i:]); err != nil { |
| 9844 | return 0, err |
| 9845 | } |
| 9846 | } |
| 9847 | } |
| 9848 | return len(dAtA) - i, nil |
| 9849 | } |
| 9850 | |
| 9851 | func (m *WatchRequest_CreateRequest) MarshalTo(dAtA []byte) (int, error) { |
| 9852 | size := m.Size() |
| 9853 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 9854 | } |
| 9855 | |
| 9856 | func (m *WatchRequest_CreateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 9857 | i := len(dAtA) |
| 9858 | if m.CreateRequest != nil { |
| 9859 | { |
| 9860 | size, err := m.CreateRequest.MarshalToSizedBuffer(dAtA[:i]) |
| 9861 | if err != nil { |
| 9862 | return 0, err |
| 9863 | } |
| 9864 | i -= size |
| 9865 | i = encodeVarintRpc(dAtA, i, uint64(size)) |
| 9866 | } |
| 9867 | i-- |
| 9868 | dAtA[i] = 0xa |
| 9869 | } |
| 9870 | return len(dAtA) - i, nil |
| 9871 | } |
| 9872 | func (m *WatchRequest_CancelRequest) MarshalTo(dAtA []byte) (int, error) { |
| 9873 | size := m.Size() |
| 9874 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 9875 | } |
| 9876 | |
| 9877 | func (m *WatchRequest_CancelRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 9878 | i := len(dAtA) |
| 9879 | if m.CancelRequest != nil { |
| 9880 | { |
| 9881 | size, err := m.CancelRequest.MarshalToSizedBuffer(dAtA[:i]) |
| 9882 | if err != nil { |
| 9883 | return 0, err |
| 9884 | } |
| 9885 | i -= size |
| 9886 | i = encodeVarintRpc(dAtA, i, uint64(size)) |
| 9887 | } |
| 9888 | i-- |
| 9889 | dAtA[i] = 0x12 |
| 9890 | } |
| 9891 | return len(dAtA) - i, nil |
| 9892 | } |
| 9893 | func (m *WatchRequest_ProgressRequest) MarshalTo(dAtA []byte) (int, error) { |
| 9894 | size := m.Size() |
| 9895 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 9896 | } |
| 9897 | |
| 9898 | func (m *WatchRequest_ProgressRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 9899 | i := len(dAtA) |
| 9900 | if m.ProgressRequest != nil { |
| 9901 | { |
| 9902 | size, err := m.ProgressRequest.MarshalToSizedBuffer(dAtA[:i]) |
| 9903 | if err != nil { |
| 9904 | return 0, err |
| 9905 | } |
| 9906 | i -= size |
| 9907 | i = encodeVarintRpc(dAtA, i, uint64(size)) |
| 9908 | } |
| 9909 | i-- |
| 9910 | dAtA[i] = 0x1a |
| 9911 | } |
| 9912 | return len(dAtA) - i, nil |
| 9913 | } |
| 9914 | func (m *WatchCreateRequest) Marshal() (dAtA []byte, err error) { |
| 9915 | size := m.Size() |
| 9916 | dAtA = make([]byte, size) |
| 9917 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 9918 | if err != nil { |
| 9919 | return nil, err |
| 9920 | } |
| 9921 | return dAtA[:n], nil |
| 9922 | } |
| 9923 | |
| 9924 | func (m *WatchCreateRequest) MarshalTo(dAtA []byte) (int, error) { |
| 9925 | size := m.Size() |
| 9926 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 9927 | } |
| 9928 | |
| 9929 | func (m *WatchCreateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 9930 | i := len(dAtA) |
| 9931 | _ = i |
| 9932 | var l int |
| 9933 | _ = l |
| 9934 | if m.XXX_unrecognized != nil { |
| 9935 | i -= len(m.XXX_unrecognized) |
| 9936 | copy(dAtA[i:], m.XXX_unrecognized) |
| 9937 | } |
| 9938 | if m.Fragment { |
| 9939 | i-- |
| 9940 | if m.Fragment { |
| 9941 | dAtA[i] = 1 |
| 9942 | } else { |
| 9943 | dAtA[i] = 0 |
| 9944 | } |
| 9945 | i-- |
| 9946 | dAtA[i] = 0x40 |
| 9947 | } |
| 9948 | if m.WatchId != 0 { |
| 9949 | i = encodeVarintRpc(dAtA, i, uint64(m.WatchId)) |
| 9950 | i-- |
| 9951 | dAtA[i] = 0x38 |
| 9952 | } |
| 9953 | if m.PrevKv { |
| 9954 | i-- |
| 9955 | if m.PrevKv { |
| 9956 | dAtA[i] = 1 |
| 9957 | } else { |
| 9958 | dAtA[i] = 0 |
| 9959 | } |
| 9960 | i-- |
| 9961 | dAtA[i] = 0x30 |
| 9962 | } |
| 9963 | if len(m.Filters) > 0 { |
| 9964 | dAtA22 := make([]byte, len(m.Filters)*10) |
| 9965 | var j21 int |
| 9966 | for _, num := range m.Filters { |
| 9967 | for num >= 1<<7 { |
| 9968 | dAtA22[j21] = uint8(uint64(num)&0x7f | 0x80) |
| 9969 | num >>= 7 |
| 9970 | j21++ |
| 9971 | } |
| 9972 | dAtA22[j21] = uint8(num) |
| 9973 | j21++ |
| 9974 | } |
| 9975 | i -= j21 |
| 9976 | copy(dAtA[i:], dAtA22[:j21]) |
| 9977 | i = encodeVarintRpc(dAtA, i, uint64(j21)) |
| 9978 | i-- |
| 9979 | dAtA[i] = 0x2a |
| 9980 | } |
| 9981 | if m.ProgressNotify { |
| 9982 | i-- |
| 9983 | if m.ProgressNotify { |
| 9984 | dAtA[i] = 1 |
| 9985 | } else { |
| 9986 | dAtA[i] = 0 |
| 9987 | } |
| 9988 | i-- |
| 9989 | dAtA[i] = 0x20 |
| 9990 | } |
| 9991 | if m.StartRevision != 0 { |
| 9992 | i = encodeVarintRpc(dAtA, i, uint64(m.StartRevision)) |
| 9993 | i-- |
| 9994 | dAtA[i] = 0x18 |
| 9995 | } |
| 9996 | if len(m.RangeEnd) > 0 { |
| 9997 | i -= len(m.RangeEnd) |
| 9998 | copy(dAtA[i:], m.RangeEnd) |
| 9999 | i = encodeVarintRpc(dAtA, i, uint64(len(m.RangeEnd))) |
| 10000 | i-- |
| 10001 | dAtA[i] = 0x12 |
| 10002 | } |
| 10003 | if len(m.Key) > 0 { |
| 10004 | i -= len(m.Key) |
| 10005 | copy(dAtA[i:], m.Key) |
| 10006 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Key))) |
| 10007 | i-- |
| 10008 | dAtA[i] = 0xa |
| 10009 | } |
| 10010 | return len(dAtA) - i, nil |
| 10011 | } |
| 10012 | |
| 10013 | func (m *WatchCancelRequest) Marshal() (dAtA []byte, err error) { |
| 10014 | size := m.Size() |
| 10015 | dAtA = make([]byte, size) |
| 10016 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 10017 | if err != nil { |
| 10018 | return nil, err |
| 10019 | } |
| 10020 | return dAtA[:n], nil |
| 10021 | } |
| 10022 | |
| 10023 | func (m *WatchCancelRequest) MarshalTo(dAtA []byte) (int, error) { |
| 10024 | size := m.Size() |
| 10025 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 10026 | } |
| 10027 | |
| 10028 | func (m *WatchCancelRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 10029 | i := len(dAtA) |
| 10030 | _ = i |
| 10031 | var l int |
| 10032 | _ = l |
| 10033 | if m.XXX_unrecognized != nil { |
| 10034 | i -= len(m.XXX_unrecognized) |
| 10035 | copy(dAtA[i:], m.XXX_unrecognized) |
| 10036 | } |
| 10037 | if m.WatchId != 0 { |
| 10038 | i = encodeVarintRpc(dAtA, i, uint64(m.WatchId)) |
| 10039 | i-- |
| 10040 | dAtA[i] = 0x8 |
| 10041 | } |
| 10042 | return len(dAtA) - i, nil |
| 10043 | } |
| 10044 | |
| 10045 | func (m *WatchProgressRequest) Marshal() (dAtA []byte, err error) { |
| 10046 | size := m.Size() |
| 10047 | dAtA = make([]byte, size) |
| 10048 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 10049 | if err != nil { |
| 10050 | return nil, err |
| 10051 | } |
| 10052 | return dAtA[:n], nil |
| 10053 | } |
| 10054 | |
| 10055 | func (m *WatchProgressRequest) MarshalTo(dAtA []byte) (int, error) { |
| 10056 | size := m.Size() |
| 10057 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 10058 | } |
| 10059 | |
| 10060 | func (m *WatchProgressRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 10061 | i := len(dAtA) |
| 10062 | _ = i |
| 10063 | var l int |
| 10064 | _ = l |
| 10065 | if m.XXX_unrecognized != nil { |
| 10066 | i -= len(m.XXX_unrecognized) |
| 10067 | copy(dAtA[i:], m.XXX_unrecognized) |
| 10068 | } |
| 10069 | return len(dAtA) - i, nil |
| 10070 | } |
| 10071 | |
| 10072 | func (m *WatchResponse) Marshal() (dAtA []byte, err error) { |
| 10073 | size := m.Size() |
| 10074 | dAtA = make([]byte, size) |
| 10075 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 10076 | if err != nil { |
| 10077 | return nil, err |
| 10078 | } |
| 10079 | return dAtA[:n], nil |
| 10080 | } |
| 10081 | |
| 10082 | func (m *WatchResponse) MarshalTo(dAtA []byte) (int, error) { |
| 10083 | size := m.Size() |
| 10084 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 10085 | } |
| 10086 | |
| 10087 | func (m *WatchResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 10088 | i := len(dAtA) |
| 10089 | _ = i |
| 10090 | var l int |
| 10091 | _ = l |
| 10092 | if m.XXX_unrecognized != nil { |
| 10093 | i -= len(m.XXX_unrecognized) |
| 10094 | copy(dAtA[i:], m.XXX_unrecognized) |
| 10095 | } |
| 10096 | if len(m.Events) > 0 { |
| 10097 | for iNdEx := len(m.Events) - 1; iNdEx >= 0; iNdEx-- { |
| 10098 | { |
| 10099 | size, err := m.Events[iNdEx].MarshalToSizedBuffer(dAtA[:i]) |
| 10100 | if err != nil { |
| 10101 | return 0, err |
| 10102 | } |
| 10103 | i -= size |
| 10104 | i = encodeVarintRpc(dAtA, i, uint64(size)) |
| 10105 | } |
| 10106 | i-- |
| 10107 | dAtA[i] = 0x5a |
| 10108 | } |
| 10109 | } |
| 10110 | if m.Fragment { |
| 10111 | i-- |
| 10112 | if m.Fragment { |
| 10113 | dAtA[i] = 1 |
| 10114 | } else { |
| 10115 | dAtA[i] = 0 |
| 10116 | } |
| 10117 | i-- |
| 10118 | dAtA[i] = 0x38 |
| 10119 | } |
| 10120 | if len(m.CancelReason) > 0 { |
| 10121 | i -= len(m.CancelReason) |
| 10122 | copy(dAtA[i:], m.CancelReason) |
| 10123 | i = encodeVarintRpc(dAtA, i, uint64(len(m.CancelReason))) |
| 10124 | i-- |
| 10125 | dAtA[i] = 0x32 |
| 10126 | } |
| 10127 | if m.CompactRevision != 0 { |
| 10128 | i = encodeVarintRpc(dAtA, i, uint64(m.CompactRevision)) |
| 10129 | i-- |
| 10130 | dAtA[i] = 0x28 |
| 10131 | } |
| 10132 | if m.Canceled { |
| 10133 | i-- |
| 10134 | if m.Canceled { |
| 10135 | dAtA[i] = 1 |
| 10136 | } else { |
| 10137 | dAtA[i] = 0 |
| 10138 | } |
| 10139 | i-- |
| 10140 | dAtA[i] = 0x20 |
| 10141 | } |
| 10142 | if m.Created { |
| 10143 | i-- |
| 10144 | if m.Created { |
| 10145 | dAtA[i] = 1 |
| 10146 | } else { |
| 10147 | dAtA[i] = 0 |
| 10148 | } |
| 10149 | i-- |
| 10150 | dAtA[i] = 0x18 |
| 10151 | } |
| 10152 | if m.WatchId != 0 { |
| 10153 | i = encodeVarintRpc(dAtA, i, uint64(m.WatchId)) |
| 10154 | i-- |
| 10155 | dAtA[i] = 0x10 |
| 10156 | } |
| 10157 | if m.Header != nil { |
| 10158 | { |
| 10159 | size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) |
| 10160 | if err != nil { |
| 10161 | return 0, err |
| 10162 | } |
| 10163 | i -= size |
| 10164 | i = encodeVarintRpc(dAtA, i, uint64(size)) |
| 10165 | } |
| 10166 | i-- |
| 10167 | dAtA[i] = 0xa |
| 10168 | } |
| 10169 | return len(dAtA) - i, nil |
| 10170 | } |
| 10171 | |
| 10172 | func (m *LeaseGrantRequest) Marshal() (dAtA []byte, err error) { |
| 10173 | size := m.Size() |
| 10174 | dAtA = make([]byte, size) |
| 10175 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 10176 | if err != nil { |
| 10177 | return nil, err |
| 10178 | } |
| 10179 | return dAtA[:n], nil |
| 10180 | } |
| 10181 | |
| 10182 | func (m *LeaseGrantRequest) MarshalTo(dAtA []byte) (int, error) { |
| 10183 | size := m.Size() |
| 10184 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 10185 | } |
| 10186 | |
| 10187 | func (m *LeaseGrantRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 10188 | i := len(dAtA) |
| 10189 | _ = i |
| 10190 | var l int |
| 10191 | _ = l |
| 10192 | if m.XXX_unrecognized != nil { |
| 10193 | i -= len(m.XXX_unrecognized) |
| 10194 | copy(dAtA[i:], m.XXX_unrecognized) |
| 10195 | } |
| 10196 | if m.ID != 0 { |
| 10197 | i = encodeVarintRpc(dAtA, i, uint64(m.ID)) |
| 10198 | i-- |
| 10199 | dAtA[i] = 0x10 |
| 10200 | } |
| 10201 | if m.TTL != 0 { |
| 10202 | i = encodeVarintRpc(dAtA, i, uint64(m.TTL)) |
| 10203 | i-- |
| 10204 | dAtA[i] = 0x8 |
| 10205 | } |
| 10206 | return len(dAtA) - i, nil |
| 10207 | } |
| 10208 | |
| 10209 | func (m *LeaseGrantResponse) Marshal() (dAtA []byte, err error) { |
| 10210 | size := m.Size() |
| 10211 | dAtA = make([]byte, size) |
| 10212 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 10213 | if err != nil { |
| 10214 | return nil, err |
| 10215 | } |
| 10216 | return dAtA[:n], nil |
| 10217 | } |
| 10218 | |
| 10219 | func (m *LeaseGrantResponse) MarshalTo(dAtA []byte) (int, error) { |
| 10220 | size := m.Size() |
| 10221 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 10222 | } |
| 10223 | |
| 10224 | func (m *LeaseGrantResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 10225 | i := len(dAtA) |
| 10226 | _ = i |
| 10227 | var l int |
| 10228 | _ = l |
| 10229 | if m.XXX_unrecognized != nil { |
| 10230 | i -= len(m.XXX_unrecognized) |
| 10231 | copy(dAtA[i:], m.XXX_unrecognized) |
| 10232 | } |
| 10233 | if len(m.Error) > 0 { |
| 10234 | i -= len(m.Error) |
| 10235 | copy(dAtA[i:], m.Error) |
| 10236 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Error))) |
| 10237 | i-- |
| 10238 | dAtA[i] = 0x22 |
| 10239 | } |
| 10240 | if m.TTL != 0 { |
| 10241 | i = encodeVarintRpc(dAtA, i, uint64(m.TTL)) |
| 10242 | i-- |
| 10243 | dAtA[i] = 0x18 |
| 10244 | } |
| 10245 | if m.ID != 0 { |
| 10246 | i = encodeVarintRpc(dAtA, i, uint64(m.ID)) |
| 10247 | i-- |
| 10248 | dAtA[i] = 0x10 |
| 10249 | } |
| 10250 | if m.Header != nil { |
| 10251 | { |
| 10252 | size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) |
| 10253 | if err != nil { |
| 10254 | return 0, err |
| 10255 | } |
| 10256 | i -= size |
| 10257 | i = encodeVarintRpc(dAtA, i, uint64(size)) |
| 10258 | } |
| 10259 | i-- |
| 10260 | dAtA[i] = 0xa |
| 10261 | } |
| 10262 | return len(dAtA) - i, nil |
| 10263 | } |
| 10264 | |
| 10265 | func (m *LeaseRevokeRequest) Marshal() (dAtA []byte, err error) { |
| 10266 | size := m.Size() |
| 10267 | dAtA = make([]byte, size) |
| 10268 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 10269 | if err != nil { |
| 10270 | return nil, err |
| 10271 | } |
| 10272 | return dAtA[:n], nil |
| 10273 | } |
| 10274 | |
| 10275 | func (m *LeaseRevokeRequest) MarshalTo(dAtA []byte) (int, error) { |
| 10276 | size := m.Size() |
| 10277 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 10278 | } |
| 10279 | |
| 10280 | func (m *LeaseRevokeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 10281 | i := len(dAtA) |
| 10282 | _ = i |
| 10283 | var l int |
| 10284 | _ = l |
| 10285 | if m.XXX_unrecognized != nil { |
| 10286 | i -= len(m.XXX_unrecognized) |
| 10287 | copy(dAtA[i:], m.XXX_unrecognized) |
| 10288 | } |
| 10289 | if m.ID != 0 { |
| 10290 | i = encodeVarintRpc(dAtA, i, uint64(m.ID)) |
| 10291 | i-- |
| 10292 | dAtA[i] = 0x8 |
| 10293 | } |
| 10294 | return len(dAtA) - i, nil |
| 10295 | } |
| 10296 | |
| 10297 | func (m *LeaseRevokeResponse) Marshal() (dAtA []byte, err error) { |
| 10298 | size := m.Size() |
| 10299 | dAtA = make([]byte, size) |
| 10300 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 10301 | if err != nil { |
| 10302 | return nil, err |
| 10303 | } |
| 10304 | return dAtA[:n], nil |
| 10305 | } |
| 10306 | |
| 10307 | func (m *LeaseRevokeResponse) MarshalTo(dAtA []byte) (int, error) { |
| 10308 | size := m.Size() |
| 10309 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 10310 | } |
| 10311 | |
| 10312 | func (m *LeaseRevokeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 10313 | i := len(dAtA) |
| 10314 | _ = i |
| 10315 | var l int |
| 10316 | _ = l |
| 10317 | if m.XXX_unrecognized != nil { |
| 10318 | i -= len(m.XXX_unrecognized) |
| 10319 | copy(dAtA[i:], m.XXX_unrecognized) |
| 10320 | } |
| 10321 | if m.Header != nil { |
| 10322 | { |
| 10323 | size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) |
| 10324 | if err != nil { |
| 10325 | return 0, err |
| 10326 | } |
| 10327 | i -= size |
| 10328 | i = encodeVarintRpc(dAtA, i, uint64(size)) |
| 10329 | } |
| 10330 | i-- |
| 10331 | dAtA[i] = 0xa |
| 10332 | } |
| 10333 | return len(dAtA) - i, nil |
| 10334 | } |
| 10335 | |
| 10336 | func (m *LeaseCheckpoint) Marshal() (dAtA []byte, err error) { |
| 10337 | size := m.Size() |
| 10338 | dAtA = make([]byte, size) |
| 10339 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 10340 | if err != nil { |
| 10341 | return nil, err |
| 10342 | } |
| 10343 | return dAtA[:n], nil |
| 10344 | } |
| 10345 | |
| 10346 | func (m *LeaseCheckpoint) MarshalTo(dAtA []byte) (int, error) { |
| 10347 | size := m.Size() |
| 10348 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 10349 | } |
| 10350 | |
| 10351 | func (m *LeaseCheckpoint) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 10352 | i := len(dAtA) |
| 10353 | _ = i |
| 10354 | var l int |
| 10355 | _ = l |
| 10356 | if m.XXX_unrecognized != nil { |
| 10357 | i -= len(m.XXX_unrecognized) |
| 10358 | copy(dAtA[i:], m.XXX_unrecognized) |
| 10359 | } |
| 10360 | if m.Remaining_TTL != 0 { |
| 10361 | i = encodeVarintRpc(dAtA, i, uint64(m.Remaining_TTL)) |
| 10362 | i-- |
| 10363 | dAtA[i] = 0x10 |
| 10364 | } |
| 10365 | if m.ID != 0 { |
| 10366 | i = encodeVarintRpc(dAtA, i, uint64(m.ID)) |
| 10367 | i-- |
| 10368 | dAtA[i] = 0x8 |
| 10369 | } |
| 10370 | return len(dAtA) - i, nil |
| 10371 | } |
| 10372 | |
| 10373 | func (m *LeaseCheckpointRequest) Marshal() (dAtA []byte, err error) { |
| 10374 | size := m.Size() |
| 10375 | dAtA = make([]byte, size) |
| 10376 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 10377 | if err != nil { |
| 10378 | return nil, err |
| 10379 | } |
| 10380 | return dAtA[:n], nil |
| 10381 | } |
| 10382 | |
| 10383 | func (m *LeaseCheckpointRequest) MarshalTo(dAtA []byte) (int, error) { |
| 10384 | size := m.Size() |
| 10385 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 10386 | } |
| 10387 | |
| 10388 | func (m *LeaseCheckpointRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 10389 | i := len(dAtA) |
| 10390 | _ = i |
| 10391 | var l int |
| 10392 | _ = l |
| 10393 | if m.XXX_unrecognized != nil { |
| 10394 | i -= len(m.XXX_unrecognized) |
| 10395 | copy(dAtA[i:], m.XXX_unrecognized) |
| 10396 | } |
| 10397 | if len(m.Checkpoints) > 0 { |
| 10398 | for iNdEx := len(m.Checkpoints) - 1; iNdEx >= 0; iNdEx-- { |
| 10399 | { |
| 10400 | size, err := m.Checkpoints[iNdEx].MarshalToSizedBuffer(dAtA[:i]) |
| 10401 | if err != nil { |
| 10402 | return 0, err |
| 10403 | } |
| 10404 | i -= size |
| 10405 | i = encodeVarintRpc(dAtA, i, uint64(size)) |
| 10406 | } |
| 10407 | i-- |
| 10408 | dAtA[i] = 0xa |
| 10409 | } |
| 10410 | } |
| 10411 | return len(dAtA) - i, nil |
| 10412 | } |
| 10413 | |
| 10414 | func (m *LeaseCheckpointResponse) Marshal() (dAtA []byte, err error) { |
| 10415 | size := m.Size() |
| 10416 | dAtA = make([]byte, size) |
| 10417 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 10418 | if err != nil { |
| 10419 | return nil, err |
| 10420 | } |
| 10421 | return dAtA[:n], nil |
| 10422 | } |
| 10423 | |
| 10424 | func (m *LeaseCheckpointResponse) MarshalTo(dAtA []byte) (int, error) { |
| 10425 | size := m.Size() |
| 10426 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 10427 | } |
| 10428 | |
| 10429 | func (m *LeaseCheckpointResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 10430 | i := len(dAtA) |
| 10431 | _ = i |
| 10432 | var l int |
| 10433 | _ = l |
| 10434 | if m.XXX_unrecognized != nil { |
| 10435 | i -= len(m.XXX_unrecognized) |
| 10436 | copy(dAtA[i:], m.XXX_unrecognized) |
| 10437 | } |
| 10438 | if m.Header != nil { |
| 10439 | { |
| 10440 | size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) |
| 10441 | if err != nil { |
| 10442 | return 0, err |
| 10443 | } |
| 10444 | i -= size |
| 10445 | i = encodeVarintRpc(dAtA, i, uint64(size)) |
| 10446 | } |
| 10447 | i-- |
| 10448 | dAtA[i] = 0xa |
| 10449 | } |
| 10450 | return len(dAtA) - i, nil |
| 10451 | } |
| 10452 | |
| 10453 | func (m *LeaseKeepAliveRequest) Marshal() (dAtA []byte, err error) { |
| 10454 | size := m.Size() |
| 10455 | dAtA = make([]byte, size) |
| 10456 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 10457 | if err != nil { |
| 10458 | return nil, err |
| 10459 | } |
| 10460 | return dAtA[:n], nil |
| 10461 | } |
| 10462 | |
| 10463 | func (m *LeaseKeepAliveRequest) MarshalTo(dAtA []byte) (int, error) { |
| 10464 | size := m.Size() |
| 10465 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 10466 | } |
| 10467 | |
| 10468 | func (m *LeaseKeepAliveRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 10469 | i := len(dAtA) |
| 10470 | _ = i |
| 10471 | var l int |
| 10472 | _ = l |
| 10473 | if m.XXX_unrecognized != nil { |
| 10474 | i -= len(m.XXX_unrecognized) |
| 10475 | copy(dAtA[i:], m.XXX_unrecognized) |
| 10476 | } |
| 10477 | if m.ID != 0 { |
| 10478 | i = encodeVarintRpc(dAtA, i, uint64(m.ID)) |
| 10479 | i-- |
| 10480 | dAtA[i] = 0x8 |
| 10481 | } |
| 10482 | return len(dAtA) - i, nil |
| 10483 | } |
| 10484 | |
| 10485 | func (m *LeaseKeepAliveResponse) Marshal() (dAtA []byte, err error) { |
| 10486 | size := m.Size() |
| 10487 | dAtA = make([]byte, size) |
| 10488 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 10489 | if err != nil { |
| 10490 | return nil, err |
| 10491 | } |
| 10492 | return dAtA[:n], nil |
| 10493 | } |
| 10494 | |
| 10495 | func (m *LeaseKeepAliveResponse) MarshalTo(dAtA []byte) (int, error) { |
| 10496 | size := m.Size() |
| 10497 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 10498 | } |
| 10499 | |
| 10500 | func (m *LeaseKeepAliveResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 10501 | i := len(dAtA) |
| 10502 | _ = i |
| 10503 | var l int |
| 10504 | _ = l |
| 10505 | if m.XXX_unrecognized != nil { |
| 10506 | i -= len(m.XXX_unrecognized) |
| 10507 | copy(dAtA[i:], m.XXX_unrecognized) |
| 10508 | } |
| 10509 | if m.TTL != 0 { |
| 10510 | i = encodeVarintRpc(dAtA, i, uint64(m.TTL)) |
| 10511 | i-- |
| 10512 | dAtA[i] = 0x18 |
| 10513 | } |
| 10514 | if m.ID != 0 { |
| 10515 | i = encodeVarintRpc(dAtA, i, uint64(m.ID)) |
| 10516 | i-- |
| 10517 | dAtA[i] = 0x10 |
| 10518 | } |
| 10519 | if m.Header != nil { |
| 10520 | { |
| 10521 | size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) |
| 10522 | if err != nil { |
| 10523 | return 0, err |
| 10524 | } |
| 10525 | i -= size |
| 10526 | i = encodeVarintRpc(dAtA, i, uint64(size)) |
| 10527 | } |
| 10528 | i-- |
| 10529 | dAtA[i] = 0xa |
| 10530 | } |
| 10531 | return len(dAtA) - i, nil |
| 10532 | } |
| 10533 | |
| 10534 | func (m *LeaseTimeToLiveRequest) Marshal() (dAtA []byte, err error) { |
| 10535 | size := m.Size() |
| 10536 | dAtA = make([]byte, size) |
| 10537 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 10538 | if err != nil { |
| 10539 | return nil, err |
| 10540 | } |
| 10541 | return dAtA[:n], nil |
| 10542 | } |
| 10543 | |
| 10544 | func (m *LeaseTimeToLiveRequest) MarshalTo(dAtA []byte) (int, error) { |
| 10545 | size := m.Size() |
| 10546 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 10547 | } |
| 10548 | |
| 10549 | func (m *LeaseTimeToLiveRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 10550 | i := len(dAtA) |
| 10551 | _ = i |
| 10552 | var l int |
| 10553 | _ = l |
| 10554 | if m.XXX_unrecognized != nil { |
| 10555 | i -= len(m.XXX_unrecognized) |
| 10556 | copy(dAtA[i:], m.XXX_unrecognized) |
| 10557 | } |
| 10558 | if m.Keys { |
| 10559 | i-- |
| 10560 | if m.Keys { |
| 10561 | dAtA[i] = 1 |
| 10562 | } else { |
| 10563 | dAtA[i] = 0 |
| 10564 | } |
| 10565 | i-- |
| 10566 | dAtA[i] = 0x10 |
| 10567 | } |
| 10568 | if m.ID != 0 { |
| 10569 | i = encodeVarintRpc(dAtA, i, uint64(m.ID)) |
| 10570 | i-- |
| 10571 | dAtA[i] = 0x8 |
| 10572 | } |
| 10573 | return len(dAtA) - i, nil |
| 10574 | } |
| 10575 | |
| 10576 | func (m *LeaseTimeToLiveResponse) Marshal() (dAtA []byte, err error) { |
| 10577 | size := m.Size() |
| 10578 | dAtA = make([]byte, size) |
| 10579 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 10580 | if err != nil { |
| 10581 | return nil, err |
| 10582 | } |
| 10583 | return dAtA[:n], nil |
| 10584 | } |
| 10585 | |
| 10586 | func (m *LeaseTimeToLiveResponse) MarshalTo(dAtA []byte) (int, error) { |
| 10587 | size := m.Size() |
| 10588 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 10589 | } |
| 10590 | |
| 10591 | func (m *LeaseTimeToLiveResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 10592 | i := len(dAtA) |
| 10593 | _ = i |
| 10594 | var l int |
| 10595 | _ = l |
| 10596 | if m.XXX_unrecognized != nil { |
| 10597 | i -= len(m.XXX_unrecognized) |
| 10598 | copy(dAtA[i:], m.XXX_unrecognized) |
| 10599 | } |
| 10600 | if len(m.Keys) > 0 { |
| 10601 | for iNdEx := len(m.Keys) - 1; iNdEx >= 0; iNdEx-- { |
| 10602 | i -= len(m.Keys[iNdEx]) |
| 10603 | copy(dAtA[i:], m.Keys[iNdEx]) |
| 10604 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Keys[iNdEx]))) |
| 10605 | i-- |
| 10606 | dAtA[i] = 0x2a |
| 10607 | } |
| 10608 | } |
| 10609 | if m.GrantedTTL != 0 { |
| 10610 | i = encodeVarintRpc(dAtA, i, uint64(m.GrantedTTL)) |
| 10611 | i-- |
| 10612 | dAtA[i] = 0x20 |
| 10613 | } |
| 10614 | if m.TTL != 0 { |
| 10615 | i = encodeVarintRpc(dAtA, i, uint64(m.TTL)) |
| 10616 | i-- |
| 10617 | dAtA[i] = 0x18 |
| 10618 | } |
| 10619 | if m.ID != 0 { |
| 10620 | i = encodeVarintRpc(dAtA, i, uint64(m.ID)) |
| 10621 | i-- |
| 10622 | dAtA[i] = 0x10 |
| 10623 | } |
| 10624 | if m.Header != nil { |
| 10625 | { |
| 10626 | size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) |
| 10627 | if err != nil { |
| 10628 | return 0, err |
| 10629 | } |
| 10630 | i -= size |
| 10631 | i = encodeVarintRpc(dAtA, i, uint64(size)) |
| 10632 | } |
| 10633 | i-- |
| 10634 | dAtA[i] = 0xa |
| 10635 | } |
| 10636 | return len(dAtA) - i, nil |
| 10637 | } |
| 10638 | |
| 10639 | func (m *LeaseLeasesRequest) Marshal() (dAtA []byte, err error) { |
| 10640 | size := m.Size() |
| 10641 | dAtA = make([]byte, size) |
| 10642 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 10643 | if err != nil { |
| 10644 | return nil, err |
| 10645 | } |
| 10646 | return dAtA[:n], nil |
| 10647 | } |
| 10648 | |
| 10649 | func (m *LeaseLeasesRequest) MarshalTo(dAtA []byte) (int, error) { |
| 10650 | size := m.Size() |
| 10651 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 10652 | } |
| 10653 | |
| 10654 | func (m *LeaseLeasesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 10655 | i := len(dAtA) |
| 10656 | _ = i |
| 10657 | var l int |
| 10658 | _ = l |
| 10659 | if m.XXX_unrecognized != nil { |
| 10660 | i -= len(m.XXX_unrecognized) |
| 10661 | copy(dAtA[i:], m.XXX_unrecognized) |
| 10662 | } |
| 10663 | return len(dAtA) - i, nil |
| 10664 | } |
| 10665 | |
| 10666 | func (m *LeaseStatus) Marshal() (dAtA []byte, err error) { |
| 10667 | size := m.Size() |
| 10668 | dAtA = make([]byte, size) |
| 10669 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 10670 | if err != nil { |
| 10671 | return nil, err |
| 10672 | } |
| 10673 | return dAtA[:n], nil |
| 10674 | } |
| 10675 | |
| 10676 | func (m *LeaseStatus) MarshalTo(dAtA []byte) (int, error) { |
| 10677 | size := m.Size() |
| 10678 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 10679 | } |
| 10680 | |
| 10681 | func (m *LeaseStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 10682 | i := len(dAtA) |
| 10683 | _ = i |
| 10684 | var l int |
| 10685 | _ = l |
| 10686 | if m.XXX_unrecognized != nil { |
| 10687 | i -= len(m.XXX_unrecognized) |
| 10688 | copy(dAtA[i:], m.XXX_unrecognized) |
| 10689 | } |
| 10690 | if m.ID != 0 { |
| 10691 | i = encodeVarintRpc(dAtA, i, uint64(m.ID)) |
| 10692 | i-- |
| 10693 | dAtA[i] = 0x8 |
| 10694 | } |
| 10695 | return len(dAtA) - i, nil |
| 10696 | } |
| 10697 | |
| 10698 | func (m *LeaseLeasesResponse) Marshal() (dAtA []byte, err error) { |
| 10699 | size := m.Size() |
| 10700 | dAtA = make([]byte, size) |
| 10701 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 10702 | if err != nil { |
| 10703 | return nil, err |
| 10704 | } |
| 10705 | return dAtA[:n], nil |
| 10706 | } |
| 10707 | |
| 10708 | func (m *LeaseLeasesResponse) MarshalTo(dAtA []byte) (int, error) { |
| 10709 | size := m.Size() |
| 10710 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 10711 | } |
| 10712 | |
| 10713 | func (m *LeaseLeasesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 10714 | i := len(dAtA) |
| 10715 | _ = i |
| 10716 | var l int |
| 10717 | _ = l |
| 10718 | if m.XXX_unrecognized != nil { |
| 10719 | i -= len(m.XXX_unrecognized) |
| 10720 | copy(dAtA[i:], m.XXX_unrecognized) |
| 10721 | } |
| 10722 | if len(m.Leases) > 0 { |
| 10723 | for iNdEx := len(m.Leases) - 1; iNdEx >= 0; iNdEx-- { |
| 10724 | { |
| 10725 | size, err := m.Leases[iNdEx].MarshalToSizedBuffer(dAtA[:i]) |
| 10726 | if err != nil { |
| 10727 | return 0, err |
| 10728 | } |
| 10729 | i -= size |
| 10730 | i = encodeVarintRpc(dAtA, i, uint64(size)) |
| 10731 | } |
| 10732 | i-- |
| 10733 | dAtA[i] = 0x12 |
| 10734 | } |
| 10735 | } |
| 10736 | if m.Header != nil { |
| 10737 | { |
| 10738 | size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) |
| 10739 | if err != nil { |
| 10740 | return 0, err |
| 10741 | } |
| 10742 | i -= size |
| 10743 | i = encodeVarintRpc(dAtA, i, uint64(size)) |
| 10744 | } |
| 10745 | i-- |
| 10746 | dAtA[i] = 0xa |
| 10747 | } |
| 10748 | return len(dAtA) - i, nil |
| 10749 | } |
| 10750 | |
| 10751 | func (m *Member) Marshal() (dAtA []byte, err error) { |
| 10752 | size := m.Size() |
| 10753 | dAtA = make([]byte, size) |
| 10754 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 10755 | if err != nil { |
| 10756 | return nil, err |
| 10757 | } |
| 10758 | return dAtA[:n], nil |
| 10759 | } |
| 10760 | |
| 10761 | func (m *Member) MarshalTo(dAtA []byte) (int, error) { |
| 10762 | size := m.Size() |
| 10763 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 10764 | } |
| 10765 | |
| 10766 | func (m *Member) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 10767 | i := len(dAtA) |
| 10768 | _ = i |
| 10769 | var l int |
| 10770 | _ = l |
| 10771 | if m.XXX_unrecognized != nil { |
| 10772 | i -= len(m.XXX_unrecognized) |
| 10773 | copy(dAtA[i:], m.XXX_unrecognized) |
| 10774 | } |
| 10775 | if m.IsLearner { |
| 10776 | i-- |
| 10777 | if m.IsLearner { |
| 10778 | dAtA[i] = 1 |
| 10779 | } else { |
| 10780 | dAtA[i] = 0 |
| 10781 | } |
| 10782 | i-- |
| 10783 | dAtA[i] = 0x28 |
| 10784 | } |
| 10785 | if len(m.ClientURLs) > 0 { |
| 10786 | for iNdEx := len(m.ClientURLs) - 1; iNdEx >= 0; iNdEx-- { |
| 10787 | i -= len(m.ClientURLs[iNdEx]) |
| 10788 | copy(dAtA[i:], m.ClientURLs[iNdEx]) |
| 10789 | i = encodeVarintRpc(dAtA, i, uint64(len(m.ClientURLs[iNdEx]))) |
| 10790 | i-- |
| 10791 | dAtA[i] = 0x22 |
| 10792 | } |
| 10793 | } |
| 10794 | if len(m.PeerURLs) > 0 { |
| 10795 | for iNdEx := len(m.PeerURLs) - 1; iNdEx >= 0; iNdEx-- { |
| 10796 | i -= len(m.PeerURLs[iNdEx]) |
| 10797 | copy(dAtA[i:], m.PeerURLs[iNdEx]) |
| 10798 | i = encodeVarintRpc(dAtA, i, uint64(len(m.PeerURLs[iNdEx]))) |
| 10799 | i-- |
| 10800 | dAtA[i] = 0x1a |
| 10801 | } |
| 10802 | } |
| 10803 | if len(m.Name) > 0 { |
| 10804 | i -= len(m.Name) |
| 10805 | copy(dAtA[i:], m.Name) |
| 10806 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Name))) |
| 10807 | i-- |
| 10808 | dAtA[i] = 0x12 |
| 10809 | } |
| 10810 | if m.ID != 0 { |
| 10811 | i = encodeVarintRpc(dAtA, i, uint64(m.ID)) |
| 10812 | i-- |
| 10813 | dAtA[i] = 0x8 |
| 10814 | } |
| 10815 | return len(dAtA) - i, nil |
| 10816 | } |
| 10817 | |
| 10818 | func (m *MemberAddRequest) Marshal() (dAtA []byte, err error) { |
| 10819 | size := m.Size() |
| 10820 | dAtA = make([]byte, size) |
| 10821 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 10822 | if err != nil { |
| 10823 | return nil, err |
| 10824 | } |
| 10825 | return dAtA[:n], nil |
| 10826 | } |
| 10827 | |
| 10828 | func (m *MemberAddRequest) MarshalTo(dAtA []byte) (int, error) { |
| 10829 | size := m.Size() |
| 10830 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 10831 | } |
| 10832 | |
| 10833 | func (m *MemberAddRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 10834 | i := len(dAtA) |
| 10835 | _ = i |
| 10836 | var l int |
| 10837 | _ = l |
| 10838 | if m.XXX_unrecognized != nil { |
| 10839 | i -= len(m.XXX_unrecognized) |
| 10840 | copy(dAtA[i:], m.XXX_unrecognized) |
| 10841 | } |
| 10842 | if m.IsLearner { |
| 10843 | i-- |
| 10844 | if m.IsLearner { |
| 10845 | dAtA[i] = 1 |
| 10846 | } else { |
| 10847 | dAtA[i] = 0 |
| 10848 | } |
| 10849 | i-- |
| 10850 | dAtA[i] = 0x10 |
| 10851 | } |
| 10852 | if len(m.PeerURLs) > 0 { |
| 10853 | for iNdEx := len(m.PeerURLs) - 1; iNdEx >= 0; iNdEx-- { |
| 10854 | i -= len(m.PeerURLs[iNdEx]) |
| 10855 | copy(dAtA[i:], m.PeerURLs[iNdEx]) |
| 10856 | i = encodeVarintRpc(dAtA, i, uint64(len(m.PeerURLs[iNdEx]))) |
| 10857 | i-- |
| 10858 | dAtA[i] = 0xa |
| 10859 | } |
| 10860 | } |
| 10861 | return len(dAtA) - i, nil |
| 10862 | } |
| 10863 | |
| 10864 | func (m *MemberAddResponse) Marshal() (dAtA []byte, err error) { |
| 10865 | size := m.Size() |
| 10866 | dAtA = make([]byte, size) |
| 10867 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 10868 | if err != nil { |
| 10869 | return nil, err |
| 10870 | } |
| 10871 | return dAtA[:n], nil |
| 10872 | } |
| 10873 | |
| 10874 | func (m *MemberAddResponse) MarshalTo(dAtA []byte) (int, error) { |
| 10875 | size := m.Size() |
| 10876 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 10877 | } |
| 10878 | |
| 10879 | func (m *MemberAddResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 10880 | i := len(dAtA) |
| 10881 | _ = i |
| 10882 | var l int |
| 10883 | _ = l |
| 10884 | if m.XXX_unrecognized != nil { |
| 10885 | i -= len(m.XXX_unrecognized) |
| 10886 | copy(dAtA[i:], m.XXX_unrecognized) |
| 10887 | } |
| 10888 | if len(m.Members) > 0 { |
| 10889 | for iNdEx := len(m.Members) - 1; iNdEx >= 0; iNdEx-- { |
| 10890 | { |
| 10891 | size, err := m.Members[iNdEx].MarshalToSizedBuffer(dAtA[:i]) |
| 10892 | if err != nil { |
| 10893 | return 0, err |
| 10894 | } |
| 10895 | i -= size |
| 10896 | i = encodeVarintRpc(dAtA, i, uint64(size)) |
| 10897 | } |
| 10898 | i-- |
| 10899 | dAtA[i] = 0x1a |
| 10900 | } |
| 10901 | } |
| 10902 | if m.Member != nil { |
| 10903 | { |
| 10904 | size, err := m.Member.MarshalToSizedBuffer(dAtA[:i]) |
| 10905 | if err != nil { |
| 10906 | return 0, err |
| 10907 | } |
| 10908 | i -= size |
| 10909 | i = encodeVarintRpc(dAtA, i, uint64(size)) |
| 10910 | } |
| 10911 | i-- |
| 10912 | dAtA[i] = 0x12 |
| 10913 | } |
| 10914 | if m.Header != nil { |
| 10915 | { |
| 10916 | size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) |
| 10917 | if err != nil { |
| 10918 | return 0, err |
| 10919 | } |
| 10920 | i -= size |
| 10921 | i = encodeVarintRpc(dAtA, i, uint64(size)) |
| 10922 | } |
| 10923 | i-- |
| 10924 | dAtA[i] = 0xa |
| 10925 | } |
| 10926 | return len(dAtA) - i, nil |
| 10927 | } |
| 10928 | |
| 10929 | func (m *MemberRemoveRequest) Marshal() (dAtA []byte, err error) { |
| 10930 | size := m.Size() |
| 10931 | dAtA = make([]byte, size) |
| 10932 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 10933 | if err != nil { |
| 10934 | return nil, err |
| 10935 | } |
| 10936 | return dAtA[:n], nil |
| 10937 | } |
| 10938 | |
| 10939 | func (m *MemberRemoveRequest) MarshalTo(dAtA []byte) (int, error) { |
| 10940 | size := m.Size() |
| 10941 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 10942 | } |
| 10943 | |
| 10944 | func (m *MemberRemoveRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 10945 | i := len(dAtA) |
| 10946 | _ = i |
| 10947 | var l int |
| 10948 | _ = l |
| 10949 | if m.XXX_unrecognized != nil { |
| 10950 | i -= len(m.XXX_unrecognized) |
| 10951 | copy(dAtA[i:], m.XXX_unrecognized) |
| 10952 | } |
| 10953 | if m.ID != 0 { |
| 10954 | i = encodeVarintRpc(dAtA, i, uint64(m.ID)) |
| 10955 | i-- |
| 10956 | dAtA[i] = 0x8 |
| 10957 | } |
| 10958 | return len(dAtA) - i, nil |
| 10959 | } |
| 10960 | |
| 10961 | func (m *MemberRemoveResponse) Marshal() (dAtA []byte, err error) { |
| 10962 | size := m.Size() |
| 10963 | dAtA = make([]byte, size) |
| 10964 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 10965 | if err != nil { |
| 10966 | return nil, err |
| 10967 | } |
| 10968 | return dAtA[:n], nil |
| 10969 | } |
| 10970 | |
| 10971 | func (m *MemberRemoveResponse) MarshalTo(dAtA []byte) (int, error) { |
| 10972 | size := m.Size() |
| 10973 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 10974 | } |
| 10975 | |
| 10976 | func (m *MemberRemoveResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 10977 | i := len(dAtA) |
| 10978 | _ = i |
| 10979 | var l int |
| 10980 | _ = l |
| 10981 | if m.XXX_unrecognized != nil { |
| 10982 | i -= len(m.XXX_unrecognized) |
| 10983 | copy(dAtA[i:], m.XXX_unrecognized) |
| 10984 | } |
| 10985 | if len(m.Members) > 0 { |
| 10986 | for iNdEx := len(m.Members) - 1; iNdEx >= 0; iNdEx-- { |
| 10987 | { |
| 10988 | size, err := m.Members[iNdEx].MarshalToSizedBuffer(dAtA[:i]) |
| 10989 | if err != nil { |
| 10990 | return 0, err |
| 10991 | } |
| 10992 | i -= size |
| 10993 | i = encodeVarintRpc(dAtA, i, uint64(size)) |
| 10994 | } |
| 10995 | i-- |
| 10996 | dAtA[i] = 0x12 |
| 10997 | } |
| 10998 | } |
| 10999 | if m.Header != nil { |
| 11000 | { |
| 11001 | size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) |
| 11002 | if err != nil { |
| 11003 | return 0, err |
| 11004 | } |
| 11005 | i -= size |
| 11006 | i = encodeVarintRpc(dAtA, i, uint64(size)) |
| 11007 | } |
| 11008 | i-- |
| 11009 | dAtA[i] = 0xa |
| 11010 | } |
| 11011 | return len(dAtA) - i, nil |
| 11012 | } |
| 11013 | |
| 11014 | func (m *MemberUpdateRequest) Marshal() (dAtA []byte, err error) { |
| 11015 | size := m.Size() |
| 11016 | dAtA = make([]byte, size) |
| 11017 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 11018 | if err != nil { |
| 11019 | return nil, err |
| 11020 | } |
| 11021 | return dAtA[:n], nil |
| 11022 | } |
| 11023 | |
| 11024 | func (m *MemberUpdateRequest) MarshalTo(dAtA []byte) (int, error) { |
| 11025 | size := m.Size() |
| 11026 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 11027 | } |
| 11028 | |
| 11029 | func (m *MemberUpdateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 11030 | i := len(dAtA) |
| 11031 | _ = i |
| 11032 | var l int |
| 11033 | _ = l |
| 11034 | if m.XXX_unrecognized != nil { |
| 11035 | i -= len(m.XXX_unrecognized) |
| 11036 | copy(dAtA[i:], m.XXX_unrecognized) |
| 11037 | } |
| 11038 | if len(m.PeerURLs) > 0 { |
| 11039 | for iNdEx := len(m.PeerURLs) - 1; iNdEx >= 0; iNdEx-- { |
| 11040 | i -= len(m.PeerURLs[iNdEx]) |
| 11041 | copy(dAtA[i:], m.PeerURLs[iNdEx]) |
| 11042 | i = encodeVarintRpc(dAtA, i, uint64(len(m.PeerURLs[iNdEx]))) |
| 11043 | i-- |
| 11044 | dAtA[i] = 0x12 |
| 11045 | } |
| 11046 | } |
| 11047 | if m.ID != 0 { |
| 11048 | i = encodeVarintRpc(dAtA, i, uint64(m.ID)) |
| 11049 | i-- |
| 11050 | dAtA[i] = 0x8 |
| 11051 | } |
| 11052 | return len(dAtA) - i, nil |
| 11053 | } |
| 11054 | |
| 11055 | func (m *MemberUpdateResponse) Marshal() (dAtA []byte, err error) { |
| 11056 | size := m.Size() |
| 11057 | dAtA = make([]byte, size) |
| 11058 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 11059 | if err != nil { |
| 11060 | return nil, err |
| 11061 | } |
| 11062 | return dAtA[:n], nil |
| 11063 | } |
| 11064 | |
| 11065 | func (m *MemberUpdateResponse) MarshalTo(dAtA []byte) (int, error) { |
| 11066 | size := m.Size() |
| 11067 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 11068 | } |
| 11069 | |
| 11070 | func (m *MemberUpdateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 11071 | i := len(dAtA) |
| 11072 | _ = i |
| 11073 | var l int |
| 11074 | _ = l |
| 11075 | if m.XXX_unrecognized != nil { |
| 11076 | i -= len(m.XXX_unrecognized) |
| 11077 | copy(dAtA[i:], m.XXX_unrecognized) |
| 11078 | } |
| 11079 | if len(m.Members) > 0 { |
| 11080 | for iNdEx := len(m.Members) - 1; iNdEx >= 0; iNdEx-- { |
| 11081 | { |
| 11082 | size, err := m.Members[iNdEx].MarshalToSizedBuffer(dAtA[:i]) |
| 11083 | if err != nil { |
| 11084 | return 0, err |
| 11085 | } |
| 11086 | i -= size |
| 11087 | i = encodeVarintRpc(dAtA, i, uint64(size)) |
| 11088 | } |
| 11089 | i-- |
| 11090 | dAtA[i] = 0x12 |
| 11091 | } |
| 11092 | } |
| 11093 | if m.Header != nil { |
| 11094 | { |
| 11095 | size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) |
| 11096 | if err != nil { |
| 11097 | return 0, err |
| 11098 | } |
| 11099 | i -= size |
| 11100 | i = encodeVarintRpc(dAtA, i, uint64(size)) |
| 11101 | } |
| 11102 | i-- |
| 11103 | dAtA[i] = 0xa |
| 11104 | } |
| 11105 | return len(dAtA) - i, nil |
| 11106 | } |
| 11107 | |
| 11108 | func (m *MemberListRequest) Marshal() (dAtA []byte, err error) { |
| 11109 | size := m.Size() |
| 11110 | dAtA = make([]byte, size) |
| 11111 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 11112 | if err != nil { |
| 11113 | return nil, err |
| 11114 | } |
| 11115 | return dAtA[:n], nil |
| 11116 | } |
| 11117 | |
| 11118 | func (m *MemberListRequest) MarshalTo(dAtA []byte) (int, error) { |
| 11119 | size := m.Size() |
| 11120 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 11121 | } |
| 11122 | |
| 11123 | func (m *MemberListRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 11124 | i := len(dAtA) |
| 11125 | _ = i |
| 11126 | var l int |
| 11127 | _ = l |
| 11128 | if m.XXX_unrecognized != nil { |
| 11129 | i -= len(m.XXX_unrecognized) |
| 11130 | copy(dAtA[i:], m.XXX_unrecognized) |
| 11131 | } |
| 11132 | if m.Linearizable { |
| 11133 | i-- |
| 11134 | if m.Linearizable { |
| 11135 | dAtA[i] = 1 |
| 11136 | } else { |
| 11137 | dAtA[i] = 0 |
| 11138 | } |
| 11139 | i-- |
| 11140 | dAtA[i] = 0x8 |
| 11141 | } |
| 11142 | return len(dAtA) - i, nil |
| 11143 | } |
| 11144 | |
| 11145 | func (m *MemberListResponse) Marshal() (dAtA []byte, err error) { |
| 11146 | size := m.Size() |
| 11147 | dAtA = make([]byte, size) |
| 11148 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 11149 | if err != nil { |
| 11150 | return nil, err |
| 11151 | } |
| 11152 | return dAtA[:n], nil |
| 11153 | } |
| 11154 | |
| 11155 | func (m *MemberListResponse) MarshalTo(dAtA []byte) (int, error) { |
| 11156 | size := m.Size() |
| 11157 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 11158 | } |
| 11159 | |
| 11160 | func (m *MemberListResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 11161 | i := len(dAtA) |
| 11162 | _ = i |
| 11163 | var l int |
| 11164 | _ = l |
| 11165 | if m.XXX_unrecognized != nil { |
| 11166 | i -= len(m.XXX_unrecognized) |
| 11167 | copy(dAtA[i:], m.XXX_unrecognized) |
| 11168 | } |
| 11169 | if len(m.Members) > 0 { |
| 11170 | for iNdEx := len(m.Members) - 1; iNdEx >= 0; iNdEx-- { |
| 11171 | { |
| 11172 | size, err := m.Members[iNdEx].MarshalToSizedBuffer(dAtA[:i]) |
| 11173 | if err != nil { |
| 11174 | return 0, err |
| 11175 | } |
| 11176 | i -= size |
| 11177 | i = encodeVarintRpc(dAtA, i, uint64(size)) |
| 11178 | } |
| 11179 | i-- |
| 11180 | dAtA[i] = 0x12 |
| 11181 | } |
| 11182 | } |
| 11183 | if m.Header != nil { |
| 11184 | { |
| 11185 | size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) |
| 11186 | if err != nil { |
| 11187 | return 0, err |
| 11188 | } |
| 11189 | i -= size |
| 11190 | i = encodeVarintRpc(dAtA, i, uint64(size)) |
| 11191 | } |
| 11192 | i-- |
| 11193 | dAtA[i] = 0xa |
| 11194 | } |
| 11195 | return len(dAtA) - i, nil |
| 11196 | } |
| 11197 | |
| 11198 | func (m *MemberPromoteRequest) Marshal() (dAtA []byte, err error) { |
| 11199 | size := m.Size() |
| 11200 | dAtA = make([]byte, size) |
| 11201 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 11202 | if err != nil { |
| 11203 | return nil, err |
| 11204 | } |
| 11205 | return dAtA[:n], nil |
| 11206 | } |
| 11207 | |
| 11208 | func (m *MemberPromoteRequest) MarshalTo(dAtA []byte) (int, error) { |
| 11209 | size := m.Size() |
| 11210 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 11211 | } |
| 11212 | |
| 11213 | func (m *MemberPromoteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 11214 | i := len(dAtA) |
| 11215 | _ = i |
| 11216 | var l int |
| 11217 | _ = l |
| 11218 | if m.XXX_unrecognized != nil { |
| 11219 | i -= len(m.XXX_unrecognized) |
| 11220 | copy(dAtA[i:], m.XXX_unrecognized) |
| 11221 | } |
| 11222 | if m.ID != 0 { |
| 11223 | i = encodeVarintRpc(dAtA, i, uint64(m.ID)) |
| 11224 | i-- |
| 11225 | dAtA[i] = 0x8 |
| 11226 | } |
| 11227 | return len(dAtA) - i, nil |
| 11228 | } |
| 11229 | |
| 11230 | func (m *MemberPromoteResponse) Marshal() (dAtA []byte, err error) { |
| 11231 | size := m.Size() |
| 11232 | dAtA = make([]byte, size) |
| 11233 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 11234 | if err != nil { |
| 11235 | return nil, err |
| 11236 | } |
| 11237 | return dAtA[:n], nil |
| 11238 | } |
| 11239 | |
| 11240 | func (m *MemberPromoteResponse) MarshalTo(dAtA []byte) (int, error) { |
| 11241 | size := m.Size() |
| 11242 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 11243 | } |
| 11244 | |
| 11245 | func (m *MemberPromoteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 11246 | i := len(dAtA) |
| 11247 | _ = i |
| 11248 | var l int |
| 11249 | _ = l |
| 11250 | if m.XXX_unrecognized != nil { |
| 11251 | i -= len(m.XXX_unrecognized) |
| 11252 | copy(dAtA[i:], m.XXX_unrecognized) |
| 11253 | } |
| 11254 | if len(m.Members) > 0 { |
| 11255 | for iNdEx := len(m.Members) - 1; iNdEx >= 0; iNdEx-- { |
| 11256 | { |
| 11257 | size, err := m.Members[iNdEx].MarshalToSizedBuffer(dAtA[:i]) |
| 11258 | if err != nil { |
| 11259 | return 0, err |
| 11260 | } |
| 11261 | i -= size |
| 11262 | i = encodeVarintRpc(dAtA, i, uint64(size)) |
| 11263 | } |
| 11264 | i-- |
| 11265 | dAtA[i] = 0x12 |
| 11266 | } |
| 11267 | } |
| 11268 | if m.Header != nil { |
| 11269 | { |
| 11270 | size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) |
| 11271 | if err != nil { |
| 11272 | return 0, err |
| 11273 | } |
| 11274 | i -= size |
| 11275 | i = encodeVarintRpc(dAtA, i, uint64(size)) |
| 11276 | } |
| 11277 | i-- |
| 11278 | dAtA[i] = 0xa |
| 11279 | } |
| 11280 | return len(dAtA) - i, nil |
| 11281 | } |
| 11282 | |
| 11283 | func (m *DefragmentRequest) Marshal() (dAtA []byte, err error) { |
| 11284 | size := m.Size() |
| 11285 | dAtA = make([]byte, size) |
| 11286 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 11287 | if err != nil { |
| 11288 | return nil, err |
| 11289 | } |
| 11290 | return dAtA[:n], nil |
| 11291 | } |
| 11292 | |
| 11293 | func (m *DefragmentRequest) MarshalTo(dAtA []byte) (int, error) { |
| 11294 | size := m.Size() |
| 11295 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 11296 | } |
| 11297 | |
| 11298 | func (m *DefragmentRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 11299 | i := len(dAtA) |
| 11300 | _ = i |
| 11301 | var l int |
| 11302 | _ = l |
| 11303 | if m.XXX_unrecognized != nil { |
| 11304 | i -= len(m.XXX_unrecognized) |
| 11305 | copy(dAtA[i:], m.XXX_unrecognized) |
| 11306 | } |
| 11307 | return len(dAtA) - i, nil |
| 11308 | } |
| 11309 | |
| 11310 | func (m *DefragmentResponse) Marshal() (dAtA []byte, err error) { |
| 11311 | size := m.Size() |
| 11312 | dAtA = make([]byte, size) |
| 11313 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 11314 | if err != nil { |
| 11315 | return nil, err |
| 11316 | } |
| 11317 | return dAtA[:n], nil |
| 11318 | } |
| 11319 | |
| 11320 | func (m *DefragmentResponse) MarshalTo(dAtA []byte) (int, error) { |
| 11321 | size := m.Size() |
| 11322 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 11323 | } |
| 11324 | |
| 11325 | func (m *DefragmentResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 11326 | i := len(dAtA) |
| 11327 | _ = i |
| 11328 | var l int |
| 11329 | _ = l |
| 11330 | if m.XXX_unrecognized != nil { |
| 11331 | i -= len(m.XXX_unrecognized) |
| 11332 | copy(dAtA[i:], m.XXX_unrecognized) |
| 11333 | } |
| 11334 | if m.Header != nil { |
| 11335 | { |
| 11336 | size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) |
| 11337 | if err != nil { |
| 11338 | return 0, err |
| 11339 | } |
| 11340 | i -= size |
| 11341 | i = encodeVarintRpc(dAtA, i, uint64(size)) |
| 11342 | } |
| 11343 | i-- |
| 11344 | dAtA[i] = 0xa |
| 11345 | } |
| 11346 | return len(dAtA) - i, nil |
| 11347 | } |
| 11348 | |
| 11349 | func (m *MoveLeaderRequest) Marshal() (dAtA []byte, err error) { |
| 11350 | size := m.Size() |
| 11351 | dAtA = make([]byte, size) |
| 11352 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 11353 | if err != nil { |
| 11354 | return nil, err |
| 11355 | } |
| 11356 | return dAtA[:n], nil |
| 11357 | } |
| 11358 | |
| 11359 | func (m *MoveLeaderRequest) MarshalTo(dAtA []byte) (int, error) { |
| 11360 | size := m.Size() |
| 11361 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 11362 | } |
| 11363 | |
| 11364 | func (m *MoveLeaderRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 11365 | i := len(dAtA) |
| 11366 | _ = i |
| 11367 | var l int |
| 11368 | _ = l |
| 11369 | if m.XXX_unrecognized != nil { |
| 11370 | i -= len(m.XXX_unrecognized) |
| 11371 | copy(dAtA[i:], m.XXX_unrecognized) |
| 11372 | } |
| 11373 | if m.TargetID != 0 { |
| 11374 | i = encodeVarintRpc(dAtA, i, uint64(m.TargetID)) |
| 11375 | i-- |
| 11376 | dAtA[i] = 0x8 |
| 11377 | } |
| 11378 | return len(dAtA) - i, nil |
| 11379 | } |
| 11380 | |
| 11381 | func (m *MoveLeaderResponse) Marshal() (dAtA []byte, err error) { |
| 11382 | size := m.Size() |
| 11383 | dAtA = make([]byte, size) |
| 11384 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 11385 | if err != nil { |
| 11386 | return nil, err |
| 11387 | } |
| 11388 | return dAtA[:n], nil |
| 11389 | } |
| 11390 | |
| 11391 | func (m *MoveLeaderResponse) MarshalTo(dAtA []byte) (int, error) { |
| 11392 | size := m.Size() |
| 11393 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 11394 | } |
| 11395 | |
| 11396 | func (m *MoveLeaderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 11397 | i := len(dAtA) |
| 11398 | _ = i |
| 11399 | var l int |
| 11400 | _ = l |
| 11401 | if m.XXX_unrecognized != nil { |
| 11402 | i -= len(m.XXX_unrecognized) |
| 11403 | copy(dAtA[i:], m.XXX_unrecognized) |
| 11404 | } |
| 11405 | if m.Header != nil { |
| 11406 | { |
| 11407 | size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) |
| 11408 | if err != nil { |
| 11409 | return 0, err |
| 11410 | } |
| 11411 | i -= size |
| 11412 | i = encodeVarintRpc(dAtA, i, uint64(size)) |
| 11413 | } |
| 11414 | i-- |
| 11415 | dAtA[i] = 0xa |
| 11416 | } |
| 11417 | return len(dAtA) - i, nil |
| 11418 | } |
| 11419 | |
| 11420 | func (m *AlarmRequest) Marshal() (dAtA []byte, err error) { |
| 11421 | size := m.Size() |
| 11422 | dAtA = make([]byte, size) |
| 11423 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 11424 | if err != nil { |
| 11425 | return nil, err |
| 11426 | } |
| 11427 | return dAtA[:n], nil |
| 11428 | } |
| 11429 | |
| 11430 | func (m *AlarmRequest) MarshalTo(dAtA []byte) (int, error) { |
| 11431 | size := m.Size() |
| 11432 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 11433 | } |
| 11434 | |
| 11435 | func (m *AlarmRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 11436 | i := len(dAtA) |
| 11437 | _ = i |
| 11438 | var l int |
| 11439 | _ = l |
| 11440 | if m.XXX_unrecognized != nil { |
| 11441 | i -= len(m.XXX_unrecognized) |
| 11442 | copy(dAtA[i:], m.XXX_unrecognized) |
| 11443 | } |
| 11444 | if m.Alarm != 0 { |
| 11445 | i = encodeVarintRpc(dAtA, i, uint64(m.Alarm)) |
| 11446 | i-- |
| 11447 | dAtA[i] = 0x18 |
| 11448 | } |
| 11449 | if m.MemberID != 0 { |
| 11450 | i = encodeVarintRpc(dAtA, i, uint64(m.MemberID)) |
| 11451 | i-- |
| 11452 | dAtA[i] = 0x10 |
| 11453 | } |
| 11454 | if m.Action != 0 { |
| 11455 | i = encodeVarintRpc(dAtA, i, uint64(m.Action)) |
| 11456 | i-- |
| 11457 | dAtA[i] = 0x8 |
| 11458 | } |
| 11459 | return len(dAtA) - i, nil |
| 11460 | } |
| 11461 | |
| 11462 | func (m *AlarmMember) Marshal() (dAtA []byte, err error) { |
| 11463 | size := m.Size() |
| 11464 | dAtA = make([]byte, size) |
| 11465 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 11466 | if err != nil { |
| 11467 | return nil, err |
| 11468 | } |
| 11469 | return dAtA[:n], nil |
| 11470 | } |
| 11471 | |
| 11472 | func (m *AlarmMember) MarshalTo(dAtA []byte) (int, error) { |
| 11473 | size := m.Size() |
| 11474 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 11475 | } |
| 11476 | |
| 11477 | func (m *AlarmMember) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 11478 | i := len(dAtA) |
| 11479 | _ = i |
| 11480 | var l int |
| 11481 | _ = l |
| 11482 | if m.XXX_unrecognized != nil { |
| 11483 | i -= len(m.XXX_unrecognized) |
| 11484 | copy(dAtA[i:], m.XXX_unrecognized) |
| 11485 | } |
| 11486 | if m.Alarm != 0 { |
| 11487 | i = encodeVarintRpc(dAtA, i, uint64(m.Alarm)) |
| 11488 | i-- |
| 11489 | dAtA[i] = 0x10 |
| 11490 | } |
| 11491 | if m.MemberID != 0 { |
| 11492 | i = encodeVarintRpc(dAtA, i, uint64(m.MemberID)) |
| 11493 | i-- |
| 11494 | dAtA[i] = 0x8 |
| 11495 | } |
| 11496 | return len(dAtA) - i, nil |
| 11497 | } |
| 11498 | |
| 11499 | func (m *AlarmResponse) Marshal() (dAtA []byte, err error) { |
| 11500 | size := m.Size() |
| 11501 | dAtA = make([]byte, size) |
| 11502 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 11503 | if err != nil { |
| 11504 | return nil, err |
| 11505 | } |
| 11506 | return dAtA[:n], nil |
| 11507 | } |
| 11508 | |
| 11509 | func (m *AlarmResponse) MarshalTo(dAtA []byte) (int, error) { |
| 11510 | size := m.Size() |
| 11511 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 11512 | } |
| 11513 | |
| 11514 | func (m *AlarmResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 11515 | i := len(dAtA) |
| 11516 | _ = i |
| 11517 | var l int |
| 11518 | _ = l |
| 11519 | if m.XXX_unrecognized != nil { |
| 11520 | i -= len(m.XXX_unrecognized) |
| 11521 | copy(dAtA[i:], m.XXX_unrecognized) |
| 11522 | } |
| 11523 | if len(m.Alarms) > 0 { |
| 11524 | for iNdEx := len(m.Alarms) - 1; iNdEx >= 0; iNdEx-- { |
| 11525 | { |
| 11526 | size, err := m.Alarms[iNdEx].MarshalToSizedBuffer(dAtA[:i]) |
| 11527 | if err != nil { |
| 11528 | return 0, err |
| 11529 | } |
| 11530 | i -= size |
| 11531 | i = encodeVarintRpc(dAtA, i, uint64(size)) |
| 11532 | } |
| 11533 | i-- |
| 11534 | dAtA[i] = 0x12 |
| 11535 | } |
| 11536 | } |
| 11537 | if m.Header != nil { |
| 11538 | { |
| 11539 | size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) |
| 11540 | if err != nil { |
| 11541 | return 0, err |
| 11542 | } |
| 11543 | i -= size |
| 11544 | i = encodeVarintRpc(dAtA, i, uint64(size)) |
| 11545 | } |
| 11546 | i-- |
| 11547 | dAtA[i] = 0xa |
| 11548 | } |
| 11549 | return len(dAtA) - i, nil |
| 11550 | } |
| 11551 | |
| 11552 | func (m *DowngradeRequest) Marshal() (dAtA []byte, err error) { |
| 11553 | size := m.Size() |
| 11554 | dAtA = make([]byte, size) |
| 11555 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 11556 | if err != nil { |
| 11557 | return nil, err |
| 11558 | } |
| 11559 | return dAtA[:n], nil |
| 11560 | } |
| 11561 | |
| 11562 | func (m *DowngradeRequest) MarshalTo(dAtA []byte) (int, error) { |
| 11563 | size := m.Size() |
| 11564 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 11565 | } |
| 11566 | |
| 11567 | func (m *DowngradeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 11568 | i := len(dAtA) |
| 11569 | _ = i |
| 11570 | var l int |
| 11571 | _ = l |
| 11572 | if m.XXX_unrecognized != nil { |
| 11573 | i -= len(m.XXX_unrecognized) |
| 11574 | copy(dAtA[i:], m.XXX_unrecognized) |
| 11575 | } |
| 11576 | if len(m.Version) > 0 { |
| 11577 | i -= len(m.Version) |
| 11578 | copy(dAtA[i:], m.Version) |
| 11579 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Version))) |
| 11580 | i-- |
| 11581 | dAtA[i] = 0x12 |
| 11582 | } |
| 11583 | if m.Action != 0 { |
| 11584 | i = encodeVarintRpc(dAtA, i, uint64(m.Action)) |
| 11585 | i-- |
| 11586 | dAtA[i] = 0x8 |
| 11587 | } |
| 11588 | return len(dAtA) - i, nil |
| 11589 | } |
| 11590 | |
| 11591 | func (m *DowngradeResponse) Marshal() (dAtA []byte, err error) { |
| 11592 | size := m.Size() |
| 11593 | dAtA = make([]byte, size) |
| 11594 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 11595 | if err != nil { |
| 11596 | return nil, err |
| 11597 | } |
| 11598 | return dAtA[:n], nil |
| 11599 | } |
| 11600 | |
| 11601 | func (m *DowngradeResponse) MarshalTo(dAtA []byte) (int, error) { |
| 11602 | size := m.Size() |
| 11603 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 11604 | } |
| 11605 | |
| 11606 | func (m *DowngradeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 11607 | i := len(dAtA) |
| 11608 | _ = i |
| 11609 | var l int |
| 11610 | _ = l |
| 11611 | if m.XXX_unrecognized != nil { |
| 11612 | i -= len(m.XXX_unrecognized) |
| 11613 | copy(dAtA[i:], m.XXX_unrecognized) |
| 11614 | } |
| 11615 | if len(m.Version) > 0 { |
| 11616 | i -= len(m.Version) |
| 11617 | copy(dAtA[i:], m.Version) |
| 11618 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Version))) |
| 11619 | i-- |
| 11620 | dAtA[i] = 0x12 |
| 11621 | } |
| 11622 | if m.Header != nil { |
| 11623 | { |
| 11624 | size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) |
| 11625 | if err != nil { |
| 11626 | return 0, err |
| 11627 | } |
| 11628 | i -= size |
| 11629 | i = encodeVarintRpc(dAtA, i, uint64(size)) |
| 11630 | } |
| 11631 | i-- |
| 11632 | dAtA[i] = 0xa |
| 11633 | } |
| 11634 | return len(dAtA) - i, nil |
| 11635 | } |
| 11636 | |
| 11637 | func (m *DowngradeVersionTestRequest) Marshal() (dAtA []byte, err error) { |
| 11638 | size := m.Size() |
| 11639 | dAtA = make([]byte, size) |
| 11640 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 11641 | if err != nil { |
| 11642 | return nil, err |
| 11643 | } |
| 11644 | return dAtA[:n], nil |
| 11645 | } |
| 11646 | |
| 11647 | func (m *DowngradeVersionTestRequest) MarshalTo(dAtA []byte) (int, error) { |
| 11648 | size := m.Size() |
| 11649 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 11650 | } |
| 11651 | |
| 11652 | func (m *DowngradeVersionTestRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 11653 | i := len(dAtA) |
| 11654 | _ = i |
| 11655 | var l int |
| 11656 | _ = l |
| 11657 | if m.XXX_unrecognized != nil { |
| 11658 | i -= len(m.XXX_unrecognized) |
| 11659 | copy(dAtA[i:], m.XXX_unrecognized) |
| 11660 | } |
| 11661 | if len(m.Ver) > 0 { |
| 11662 | i -= len(m.Ver) |
| 11663 | copy(dAtA[i:], m.Ver) |
| 11664 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Ver))) |
| 11665 | i-- |
| 11666 | dAtA[i] = 0xa |
| 11667 | } |
| 11668 | return len(dAtA) - i, nil |
| 11669 | } |
| 11670 | |
| 11671 | func (m *StatusRequest) Marshal() (dAtA []byte, err error) { |
| 11672 | size := m.Size() |
| 11673 | dAtA = make([]byte, size) |
| 11674 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 11675 | if err != nil { |
| 11676 | return nil, err |
| 11677 | } |
| 11678 | return dAtA[:n], nil |
| 11679 | } |
| 11680 | |
| 11681 | func (m *StatusRequest) MarshalTo(dAtA []byte) (int, error) { |
| 11682 | size := m.Size() |
| 11683 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 11684 | } |
| 11685 | |
| 11686 | func (m *StatusRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 11687 | i := len(dAtA) |
| 11688 | _ = i |
| 11689 | var l int |
| 11690 | _ = l |
| 11691 | if m.XXX_unrecognized != nil { |
| 11692 | i -= len(m.XXX_unrecognized) |
| 11693 | copy(dAtA[i:], m.XXX_unrecognized) |
| 11694 | } |
| 11695 | return len(dAtA) - i, nil |
| 11696 | } |
| 11697 | |
| 11698 | func (m *StatusResponse) Marshal() (dAtA []byte, err error) { |
| 11699 | size := m.Size() |
| 11700 | dAtA = make([]byte, size) |
| 11701 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 11702 | if err != nil { |
| 11703 | return nil, err |
| 11704 | } |
| 11705 | return dAtA[:n], nil |
| 11706 | } |
| 11707 | |
| 11708 | func (m *StatusResponse) MarshalTo(dAtA []byte) (int, error) { |
| 11709 | size := m.Size() |
| 11710 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 11711 | } |
| 11712 | |
| 11713 | func (m *StatusResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 11714 | i := len(dAtA) |
| 11715 | _ = i |
| 11716 | var l int |
| 11717 | _ = l |
| 11718 | if m.XXX_unrecognized != nil { |
| 11719 | i -= len(m.XXX_unrecognized) |
| 11720 | copy(dAtA[i:], m.XXX_unrecognized) |
| 11721 | } |
| 11722 | if m.DowngradeInfo != nil { |
| 11723 | { |
| 11724 | size, err := m.DowngradeInfo.MarshalToSizedBuffer(dAtA[:i]) |
| 11725 | if err != nil { |
| 11726 | return 0, err |
| 11727 | } |
| 11728 | i -= size |
| 11729 | i = encodeVarintRpc(dAtA, i, uint64(size)) |
| 11730 | } |
| 11731 | i-- |
| 11732 | dAtA[i] = 0x6a |
| 11733 | } |
| 11734 | if m.DbSizeQuota != 0 { |
| 11735 | i = encodeVarintRpc(dAtA, i, uint64(m.DbSizeQuota)) |
| 11736 | i-- |
| 11737 | dAtA[i] = 0x60 |
| 11738 | } |
| 11739 | if len(m.StorageVersion) > 0 { |
| 11740 | i -= len(m.StorageVersion) |
| 11741 | copy(dAtA[i:], m.StorageVersion) |
| 11742 | i = encodeVarintRpc(dAtA, i, uint64(len(m.StorageVersion))) |
| 11743 | i-- |
| 11744 | dAtA[i] = 0x5a |
| 11745 | } |
| 11746 | if m.IsLearner { |
| 11747 | i-- |
| 11748 | if m.IsLearner { |
| 11749 | dAtA[i] = 1 |
| 11750 | } else { |
| 11751 | dAtA[i] = 0 |
| 11752 | } |
| 11753 | i-- |
| 11754 | dAtA[i] = 0x50 |
| 11755 | } |
| 11756 | if m.DbSizeInUse != 0 { |
| 11757 | i = encodeVarintRpc(dAtA, i, uint64(m.DbSizeInUse)) |
| 11758 | i-- |
| 11759 | dAtA[i] = 0x48 |
| 11760 | } |
| 11761 | if len(m.Errors) > 0 { |
| 11762 | for iNdEx := len(m.Errors) - 1; iNdEx >= 0; iNdEx-- { |
| 11763 | i -= len(m.Errors[iNdEx]) |
| 11764 | copy(dAtA[i:], m.Errors[iNdEx]) |
| 11765 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Errors[iNdEx]))) |
| 11766 | i-- |
| 11767 | dAtA[i] = 0x42 |
| 11768 | } |
| 11769 | } |
| 11770 | if m.RaftAppliedIndex != 0 { |
| 11771 | i = encodeVarintRpc(dAtA, i, uint64(m.RaftAppliedIndex)) |
| 11772 | i-- |
| 11773 | dAtA[i] = 0x38 |
| 11774 | } |
| 11775 | if m.RaftTerm != 0 { |
| 11776 | i = encodeVarintRpc(dAtA, i, uint64(m.RaftTerm)) |
| 11777 | i-- |
| 11778 | dAtA[i] = 0x30 |
| 11779 | } |
| 11780 | if m.RaftIndex != 0 { |
| 11781 | i = encodeVarintRpc(dAtA, i, uint64(m.RaftIndex)) |
| 11782 | i-- |
| 11783 | dAtA[i] = 0x28 |
| 11784 | } |
| 11785 | if m.Leader != 0 { |
| 11786 | i = encodeVarintRpc(dAtA, i, uint64(m.Leader)) |
| 11787 | i-- |
| 11788 | dAtA[i] = 0x20 |
| 11789 | } |
| 11790 | if m.DbSize != 0 { |
| 11791 | i = encodeVarintRpc(dAtA, i, uint64(m.DbSize)) |
| 11792 | i-- |
| 11793 | dAtA[i] = 0x18 |
| 11794 | } |
| 11795 | if len(m.Version) > 0 { |
| 11796 | i -= len(m.Version) |
| 11797 | copy(dAtA[i:], m.Version) |
| 11798 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Version))) |
| 11799 | i-- |
| 11800 | dAtA[i] = 0x12 |
| 11801 | } |
| 11802 | if m.Header != nil { |
| 11803 | { |
| 11804 | size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) |
| 11805 | if err != nil { |
| 11806 | return 0, err |
| 11807 | } |
| 11808 | i -= size |
| 11809 | i = encodeVarintRpc(dAtA, i, uint64(size)) |
| 11810 | } |
| 11811 | i-- |
| 11812 | dAtA[i] = 0xa |
| 11813 | } |
| 11814 | return len(dAtA) - i, nil |
| 11815 | } |
| 11816 | |
| 11817 | func (m *DowngradeInfo) Marshal() (dAtA []byte, err error) { |
| 11818 | size := m.Size() |
| 11819 | dAtA = make([]byte, size) |
| 11820 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 11821 | if err != nil { |
| 11822 | return nil, err |
| 11823 | } |
| 11824 | return dAtA[:n], nil |
| 11825 | } |
| 11826 | |
| 11827 | func (m *DowngradeInfo) MarshalTo(dAtA []byte) (int, error) { |
| 11828 | size := m.Size() |
| 11829 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 11830 | } |
| 11831 | |
| 11832 | func (m *DowngradeInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 11833 | i := len(dAtA) |
| 11834 | _ = i |
| 11835 | var l int |
| 11836 | _ = l |
| 11837 | if m.XXX_unrecognized != nil { |
| 11838 | i -= len(m.XXX_unrecognized) |
| 11839 | copy(dAtA[i:], m.XXX_unrecognized) |
| 11840 | } |
| 11841 | if len(m.TargetVersion) > 0 { |
| 11842 | i -= len(m.TargetVersion) |
| 11843 | copy(dAtA[i:], m.TargetVersion) |
| 11844 | i = encodeVarintRpc(dAtA, i, uint64(len(m.TargetVersion))) |
| 11845 | i-- |
| 11846 | dAtA[i] = 0x12 |
| 11847 | } |
| 11848 | if m.Enabled { |
| 11849 | i-- |
| 11850 | if m.Enabled { |
| 11851 | dAtA[i] = 1 |
| 11852 | } else { |
| 11853 | dAtA[i] = 0 |
| 11854 | } |
| 11855 | i-- |
| 11856 | dAtA[i] = 0x8 |
| 11857 | } |
| 11858 | return len(dAtA) - i, nil |
| 11859 | } |
| 11860 | |
| 11861 | func (m *AuthEnableRequest) Marshal() (dAtA []byte, err error) { |
| 11862 | size := m.Size() |
| 11863 | dAtA = make([]byte, size) |
| 11864 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 11865 | if err != nil { |
| 11866 | return nil, err |
| 11867 | } |
| 11868 | return dAtA[:n], nil |
| 11869 | } |
| 11870 | |
| 11871 | func (m *AuthEnableRequest) MarshalTo(dAtA []byte) (int, error) { |
| 11872 | size := m.Size() |
| 11873 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 11874 | } |
| 11875 | |
| 11876 | func (m *AuthEnableRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 11877 | i := len(dAtA) |
| 11878 | _ = i |
| 11879 | var l int |
| 11880 | _ = l |
| 11881 | if m.XXX_unrecognized != nil { |
| 11882 | i -= len(m.XXX_unrecognized) |
| 11883 | copy(dAtA[i:], m.XXX_unrecognized) |
| 11884 | } |
| 11885 | return len(dAtA) - i, nil |
| 11886 | } |
| 11887 | |
| 11888 | func (m *AuthDisableRequest) Marshal() (dAtA []byte, err error) { |
| 11889 | size := m.Size() |
| 11890 | dAtA = make([]byte, size) |
| 11891 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 11892 | if err != nil { |
| 11893 | return nil, err |
| 11894 | } |
| 11895 | return dAtA[:n], nil |
| 11896 | } |
| 11897 | |
| 11898 | func (m *AuthDisableRequest) MarshalTo(dAtA []byte) (int, error) { |
| 11899 | size := m.Size() |
| 11900 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 11901 | } |
| 11902 | |
| 11903 | func (m *AuthDisableRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 11904 | i := len(dAtA) |
| 11905 | _ = i |
| 11906 | var l int |
| 11907 | _ = l |
| 11908 | if m.XXX_unrecognized != nil { |
| 11909 | i -= len(m.XXX_unrecognized) |
| 11910 | copy(dAtA[i:], m.XXX_unrecognized) |
| 11911 | } |
| 11912 | return len(dAtA) - i, nil |
| 11913 | } |
| 11914 | |
| 11915 | func (m *AuthStatusRequest) Marshal() (dAtA []byte, err error) { |
| 11916 | size := m.Size() |
| 11917 | dAtA = make([]byte, size) |
| 11918 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 11919 | if err != nil { |
| 11920 | return nil, err |
| 11921 | } |
| 11922 | return dAtA[:n], nil |
| 11923 | } |
| 11924 | |
| 11925 | func (m *AuthStatusRequest) MarshalTo(dAtA []byte) (int, error) { |
| 11926 | size := m.Size() |
| 11927 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 11928 | } |
| 11929 | |
| 11930 | func (m *AuthStatusRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 11931 | i := len(dAtA) |
| 11932 | _ = i |
| 11933 | var l int |
| 11934 | _ = l |
| 11935 | if m.XXX_unrecognized != nil { |
| 11936 | i -= len(m.XXX_unrecognized) |
| 11937 | copy(dAtA[i:], m.XXX_unrecognized) |
| 11938 | } |
| 11939 | return len(dAtA) - i, nil |
| 11940 | } |
| 11941 | |
| 11942 | func (m *AuthenticateRequest) Marshal() (dAtA []byte, err error) { |
| 11943 | size := m.Size() |
| 11944 | dAtA = make([]byte, size) |
| 11945 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 11946 | if err != nil { |
| 11947 | return nil, err |
| 11948 | } |
| 11949 | return dAtA[:n], nil |
| 11950 | } |
| 11951 | |
| 11952 | func (m *AuthenticateRequest) MarshalTo(dAtA []byte) (int, error) { |
| 11953 | size := m.Size() |
| 11954 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 11955 | } |
| 11956 | |
| 11957 | func (m *AuthenticateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 11958 | i := len(dAtA) |
| 11959 | _ = i |
| 11960 | var l int |
| 11961 | _ = l |
| 11962 | if m.XXX_unrecognized != nil { |
| 11963 | i -= len(m.XXX_unrecognized) |
| 11964 | copy(dAtA[i:], m.XXX_unrecognized) |
| 11965 | } |
| 11966 | if len(m.Password) > 0 { |
| 11967 | i -= len(m.Password) |
| 11968 | copy(dAtA[i:], m.Password) |
| 11969 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Password))) |
| 11970 | i-- |
| 11971 | dAtA[i] = 0x12 |
| 11972 | } |
| 11973 | if len(m.Name) > 0 { |
| 11974 | i -= len(m.Name) |
| 11975 | copy(dAtA[i:], m.Name) |
| 11976 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Name))) |
| 11977 | i-- |
| 11978 | dAtA[i] = 0xa |
| 11979 | } |
| 11980 | return len(dAtA) - i, nil |
| 11981 | } |
| 11982 | |
| 11983 | func (m *AuthUserAddRequest) Marshal() (dAtA []byte, err error) { |
| 11984 | size := m.Size() |
| 11985 | dAtA = make([]byte, size) |
| 11986 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 11987 | if err != nil { |
| 11988 | return nil, err |
| 11989 | } |
| 11990 | return dAtA[:n], nil |
| 11991 | } |
| 11992 | |
| 11993 | func (m *AuthUserAddRequest) MarshalTo(dAtA []byte) (int, error) { |
| 11994 | size := m.Size() |
| 11995 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 11996 | } |
| 11997 | |
| 11998 | func (m *AuthUserAddRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 11999 | i := len(dAtA) |
| 12000 | _ = i |
| 12001 | var l int |
| 12002 | _ = l |
| 12003 | if m.XXX_unrecognized != nil { |
| 12004 | i -= len(m.XXX_unrecognized) |
| 12005 | copy(dAtA[i:], m.XXX_unrecognized) |
| 12006 | } |
| 12007 | if len(m.HashedPassword) > 0 { |
| 12008 | i -= len(m.HashedPassword) |
| 12009 | copy(dAtA[i:], m.HashedPassword) |
| 12010 | i = encodeVarintRpc(dAtA, i, uint64(len(m.HashedPassword))) |
| 12011 | i-- |
| 12012 | dAtA[i] = 0x22 |
| 12013 | } |
| 12014 | if m.Options != nil { |
| 12015 | { |
| 12016 | size, err := m.Options.MarshalToSizedBuffer(dAtA[:i]) |
| 12017 | if err != nil { |
| 12018 | return 0, err |
| 12019 | } |
| 12020 | i -= size |
| 12021 | i = encodeVarintRpc(dAtA, i, uint64(size)) |
| 12022 | } |
| 12023 | i-- |
| 12024 | dAtA[i] = 0x1a |
| 12025 | } |
| 12026 | if len(m.Password) > 0 { |
| 12027 | i -= len(m.Password) |
| 12028 | copy(dAtA[i:], m.Password) |
| 12029 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Password))) |
| 12030 | i-- |
| 12031 | dAtA[i] = 0x12 |
| 12032 | } |
| 12033 | if len(m.Name) > 0 { |
| 12034 | i -= len(m.Name) |
| 12035 | copy(dAtA[i:], m.Name) |
| 12036 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Name))) |
| 12037 | i-- |
| 12038 | dAtA[i] = 0xa |
| 12039 | } |
| 12040 | return len(dAtA) - i, nil |
| 12041 | } |
| 12042 | |
| 12043 | func (m *AuthUserGetRequest) Marshal() (dAtA []byte, err error) { |
| 12044 | size := m.Size() |
| 12045 | dAtA = make([]byte, size) |
| 12046 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 12047 | if err != nil { |
| 12048 | return nil, err |
| 12049 | } |
| 12050 | return dAtA[:n], nil |
| 12051 | } |
| 12052 | |
| 12053 | func (m *AuthUserGetRequest) MarshalTo(dAtA []byte) (int, error) { |
| 12054 | size := m.Size() |
| 12055 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 12056 | } |
| 12057 | |
| 12058 | func (m *AuthUserGetRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 12059 | i := len(dAtA) |
| 12060 | _ = i |
| 12061 | var l int |
| 12062 | _ = l |
| 12063 | if m.XXX_unrecognized != nil { |
| 12064 | i -= len(m.XXX_unrecognized) |
| 12065 | copy(dAtA[i:], m.XXX_unrecognized) |
| 12066 | } |
| 12067 | if len(m.Name) > 0 { |
| 12068 | i -= len(m.Name) |
| 12069 | copy(dAtA[i:], m.Name) |
| 12070 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Name))) |
| 12071 | i-- |
| 12072 | dAtA[i] = 0xa |
| 12073 | } |
| 12074 | return len(dAtA) - i, nil |
| 12075 | } |
| 12076 | |
| 12077 | func (m *AuthUserDeleteRequest) Marshal() (dAtA []byte, err error) { |
| 12078 | size := m.Size() |
| 12079 | dAtA = make([]byte, size) |
| 12080 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 12081 | if err != nil { |
| 12082 | return nil, err |
| 12083 | } |
| 12084 | return dAtA[:n], nil |
| 12085 | } |
| 12086 | |
| 12087 | func (m *AuthUserDeleteRequest) MarshalTo(dAtA []byte) (int, error) { |
| 12088 | size := m.Size() |
| 12089 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 12090 | } |
| 12091 | |
| 12092 | func (m *AuthUserDeleteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 12093 | i := len(dAtA) |
| 12094 | _ = i |
| 12095 | var l int |
| 12096 | _ = l |
| 12097 | if m.XXX_unrecognized != nil { |
| 12098 | i -= len(m.XXX_unrecognized) |
| 12099 | copy(dAtA[i:], m.XXX_unrecognized) |
| 12100 | } |
| 12101 | if len(m.Name) > 0 { |
| 12102 | i -= len(m.Name) |
| 12103 | copy(dAtA[i:], m.Name) |
| 12104 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Name))) |
| 12105 | i-- |
| 12106 | dAtA[i] = 0xa |
| 12107 | } |
| 12108 | return len(dAtA) - i, nil |
| 12109 | } |
| 12110 | |
| 12111 | func (m *AuthUserChangePasswordRequest) Marshal() (dAtA []byte, err error) { |
| 12112 | size := m.Size() |
| 12113 | dAtA = make([]byte, size) |
| 12114 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 12115 | if err != nil { |
| 12116 | return nil, err |
| 12117 | } |
| 12118 | return dAtA[:n], nil |
| 12119 | } |
| 12120 | |
| 12121 | func (m *AuthUserChangePasswordRequest) MarshalTo(dAtA []byte) (int, error) { |
| 12122 | size := m.Size() |
| 12123 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 12124 | } |
| 12125 | |
| 12126 | func (m *AuthUserChangePasswordRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 12127 | i := len(dAtA) |
| 12128 | _ = i |
| 12129 | var l int |
| 12130 | _ = l |
| 12131 | if m.XXX_unrecognized != nil { |
| 12132 | i -= len(m.XXX_unrecognized) |
| 12133 | copy(dAtA[i:], m.XXX_unrecognized) |
| 12134 | } |
| 12135 | if len(m.HashedPassword) > 0 { |
| 12136 | i -= len(m.HashedPassword) |
| 12137 | copy(dAtA[i:], m.HashedPassword) |
| 12138 | i = encodeVarintRpc(dAtA, i, uint64(len(m.HashedPassword))) |
| 12139 | i-- |
| 12140 | dAtA[i] = 0x1a |
| 12141 | } |
| 12142 | if len(m.Password) > 0 { |
| 12143 | i -= len(m.Password) |
| 12144 | copy(dAtA[i:], m.Password) |
| 12145 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Password))) |
| 12146 | i-- |
| 12147 | dAtA[i] = 0x12 |
| 12148 | } |
| 12149 | if len(m.Name) > 0 { |
| 12150 | i -= len(m.Name) |
| 12151 | copy(dAtA[i:], m.Name) |
| 12152 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Name))) |
| 12153 | i-- |
| 12154 | dAtA[i] = 0xa |
| 12155 | } |
| 12156 | return len(dAtA) - i, nil |
| 12157 | } |
| 12158 | |
| 12159 | func (m *AuthUserGrantRoleRequest) Marshal() (dAtA []byte, err error) { |
| 12160 | size := m.Size() |
| 12161 | dAtA = make([]byte, size) |
| 12162 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 12163 | if err != nil { |
| 12164 | return nil, err |
| 12165 | } |
| 12166 | return dAtA[:n], nil |
| 12167 | } |
| 12168 | |
| 12169 | func (m *AuthUserGrantRoleRequest) MarshalTo(dAtA []byte) (int, error) { |
| 12170 | size := m.Size() |
| 12171 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 12172 | } |
| 12173 | |
| 12174 | func (m *AuthUserGrantRoleRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 12175 | i := len(dAtA) |
| 12176 | _ = i |
| 12177 | var l int |
| 12178 | _ = l |
| 12179 | if m.XXX_unrecognized != nil { |
| 12180 | i -= len(m.XXX_unrecognized) |
| 12181 | copy(dAtA[i:], m.XXX_unrecognized) |
| 12182 | } |
| 12183 | if len(m.Role) > 0 { |
| 12184 | i -= len(m.Role) |
| 12185 | copy(dAtA[i:], m.Role) |
| 12186 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Role))) |
| 12187 | i-- |
| 12188 | dAtA[i] = 0x12 |
| 12189 | } |
| 12190 | if len(m.User) > 0 { |
| 12191 | i -= len(m.User) |
| 12192 | copy(dAtA[i:], m.User) |
| 12193 | i = encodeVarintRpc(dAtA, i, uint64(len(m.User))) |
| 12194 | i-- |
| 12195 | dAtA[i] = 0xa |
| 12196 | } |
| 12197 | return len(dAtA) - i, nil |
| 12198 | } |
| 12199 | |
| 12200 | func (m *AuthUserRevokeRoleRequest) Marshal() (dAtA []byte, err error) { |
| 12201 | size := m.Size() |
| 12202 | dAtA = make([]byte, size) |
| 12203 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 12204 | if err != nil { |
| 12205 | return nil, err |
| 12206 | } |
| 12207 | return dAtA[:n], nil |
| 12208 | } |
| 12209 | |
| 12210 | func (m *AuthUserRevokeRoleRequest) MarshalTo(dAtA []byte) (int, error) { |
| 12211 | size := m.Size() |
| 12212 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 12213 | } |
| 12214 | |
| 12215 | func (m *AuthUserRevokeRoleRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 12216 | i := len(dAtA) |
| 12217 | _ = i |
| 12218 | var l int |
| 12219 | _ = l |
| 12220 | if m.XXX_unrecognized != nil { |
| 12221 | i -= len(m.XXX_unrecognized) |
| 12222 | copy(dAtA[i:], m.XXX_unrecognized) |
| 12223 | } |
| 12224 | if len(m.Role) > 0 { |
| 12225 | i -= len(m.Role) |
| 12226 | copy(dAtA[i:], m.Role) |
| 12227 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Role))) |
| 12228 | i-- |
| 12229 | dAtA[i] = 0x12 |
| 12230 | } |
| 12231 | if len(m.Name) > 0 { |
| 12232 | i -= len(m.Name) |
| 12233 | copy(dAtA[i:], m.Name) |
| 12234 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Name))) |
| 12235 | i-- |
| 12236 | dAtA[i] = 0xa |
| 12237 | } |
| 12238 | return len(dAtA) - i, nil |
| 12239 | } |
| 12240 | |
| 12241 | func (m *AuthRoleAddRequest) Marshal() (dAtA []byte, err error) { |
| 12242 | size := m.Size() |
| 12243 | dAtA = make([]byte, size) |
| 12244 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 12245 | if err != nil { |
| 12246 | return nil, err |
| 12247 | } |
| 12248 | return dAtA[:n], nil |
| 12249 | } |
| 12250 | |
| 12251 | func (m *AuthRoleAddRequest) MarshalTo(dAtA []byte) (int, error) { |
| 12252 | size := m.Size() |
| 12253 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 12254 | } |
| 12255 | |
| 12256 | func (m *AuthRoleAddRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 12257 | i := len(dAtA) |
| 12258 | _ = i |
| 12259 | var l int |
| 12260 | _ = l |
| 12261 | if m.XXX_unrecognized != nil { |
| 12262 | i -= len(m.XXX_unrecognized) |
| 12263 | copy(dAtA[i:], m.XXX_unrecognized) |
| 12264 | } |
| 12265 | if len(m.Name) > 0 { |
| 12266 | i -= len(m.Name) |
| 12267 | copy(dAtA[i:], m.Name) |
| 12268 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Name))) |
| 12269 | i-- |
| 12270 | dAtA[i] = 0xa |
| 12271 | } |
| 12272 | return len(dAtA) - i, nil |
| 12273 | } |
| 12274 | |
| 12275 | func (m *AuthRoleGetRequest) Marshal() (dAtA []byte, err error) { |
| 12276 | size := m.Size() |
| 12277 | dAtA = make([]byte, size) |
| 12278 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 12279 | if err != nil { |
| 12280 | return nil, err |
| 12281 | } |
| 12282 | return dAtA[:n], nil |
| 12283 | } |
| 12284 | |
| 12285 | func (m *AuthRoleGetRequest) MarshalTo(dAtA []byte) (int, error) { |
| 12286 | size := m.Size() |
| 12287 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 12288 | } |
| 12289 | |
| 12290 | func (m *AuthRoleGetRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 12291 | i := len(dAtA) |
| 12292 | _ = i |
| 12293 | var l int |
| 12294 | _ = l |
| 12295 | if m.XXX_unrecognized != nil { |
| 12296 | i -= len(m.XXX_unrecognized) |
| 12297 | copy(dAtA[i:], m.XXX_unrecognized) |
| 12298 | } |
| 12299 | if len(m.Role) > 0 { |
| 12300 | i -= len(m.Role) |
| 12301 | copy(dAtA[i:], m.Role) |
| 12302 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Role))) |
| 12303 | i-- |
| 12304 | dAtA[i] = 0xa |
| 12305 | } |
| 12306 | return len(dAtA) - i, nil |
| 12307 | } |
| 12308 | |
| 12309 | func (m *AuthUserListRequest) Marshal() (dAtA []byte, err error) { |
| 12310 | size := m.Size() |
| 12311 | dAtA = make([]byte, size) |
| 12312 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 12313 | if err != nil { |
| 12314 | return nil, err |
| 12315 | } |
| 12316 | return dAtA[:n], nil |
| 12317 | } |
| 12318 | |
| 12319 | func (m *AuthUserListRequest) MarshalTo(dAtA []byte) (int, error) { |
| 12320 | size := m.Size() |
| 12321 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 12322 | } |
| 12323 | |
| 12324 | func (m *AuthUserListRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 12325 | i := len(dAtA) |
| 12326 | _ = i |
| 12327 | var l int |
| 12328 | _ = l |
| 12329 | if m.XXX_unrecognized != nil { |
| 12330 | i -= len(m.XXX_unrecognized) |
| 12331 | copy(dAtA[i:], m.XXX_unrecognized) |
| 12332 | } |
| 12333 | return len(dAtA) - i, nil |
| 12334 | } |
| 12335 | |
| 12336 | func (m *AuthRoleListRequest) Marshal() (dAtA []byte, err error) { |
| 12337 | size := m.Size() |
| 12338 | dAtA = make([]byte, size) |
| 12339 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 12340 | if err != nil { |
| 12341 | return nil, err |
| 12342 | } |
| 12343 | return dAtA[:n], nil |
| 12344 | } |
| 12345 | |
| 12346 | func (m *AuthRoleListRequest) MarshalTo(dAtA []byte) (int, error) { |
| 12347 | size := m.Size() |
| 12348 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 12349 | } |
| 12350 | |
| 12351 | func (m *AuthRoleListRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 12352 | i := len(dAtA) |
| 12353 | _ = i |
| 12354 | var l int |
| 12355 | _ = l |
| 12356 | if m.XXX_unrecognized != nil { |
| 12357 | i -= len(m.XXX_unrecognized) |
| 12358 | copy(dAtA[i:], m.XXX_unrecognized) |
| 12359 | } |
| 12360 | return len(dAtA) - i, nil |
| 12361 | } |
| 12362 | |
| 12363 | func (m *AuthRoleDeleteRequest) Marshal() (dAtA []byte, err error) { |
| 12364 | size := m.Size() |
| 12365 | dAtA = make([]byte, size) |
| 12366 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 12367 | if err != nil { |
| 12368 | return nil, err |
| 12369 | } |
| 12370 | return dAtA[:n], nil |
| 12371 | } |
| 12372 | |
| 12373 | func (m *AuthRoleDeleteRequest) MarshalTo(dAtA []byte) (int, error) { |
| 12374 | size := m.Size() |
| 12375 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 12376 | } |
| 12377 | |
| 12378 | func (m *AuthRoleDeleteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 12379 | i := len(dAtA) |
| 12380 | _ = i |
| 12381 | var l int |
| 12382 | _ = l |
| 12383 | if m.XXX_unrecognized != nil { |
| 12384 | i -= len(m.XXX_unrecognized) |
| 12385 | copy(dAtA[i:], m.XXX_unrecognized) |
| 12386 | } |
| 12387 | if len(m.Role) > 0 { |
| 12388 | i -= len(m.Role) |
| 12389 | copy(dAtA[i:], m.Role) |
| 12390 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Role))) |
| 12391 | i-- |
| 12392 | dAtA[i] = 0xa |
| 12393 | } |
| 12394 | return len(dAtA) - i, nil |
| 12395 | } |
| 12396 | |
| 12397 | func (m *AuthRoleGrantPermissionRequest) Marshal() (dAtA []byte, err error) { |
| 12398 | size := m.Size() |
| 12399 | dAtA = make([]byte, size) |
| 12400 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 12401 | if err != nil { |
| 12402 | return nil, err |
| 12403 | } |
| 12404 | return dAtA[:n], nil |
| 12405 | } |
| 12406 | |
| 12407 | func (m *AuthRoleGrantPermissionRequest) MarshalTo(dAtA []byte) (int, error) { |
| 12408 | size := m.Size() |
| 12409 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 12410 | } |
| 12411 | |
| 12412 | func (m *AuthRoleGrantPermissionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 12413 | i := len(dAtA) |
| 12414 | _ = i |
| 12415 | var l int |
| 12416 | _ = l |
| 12417 | if m.XXX_unrecognized != nil { |
| 12418 | i -= len(m.XXX_unrecognized) |
| 12419 | copy(dAtA[i:], m.XXX_unrecognized) |
| 12420 | } |
| 12421 | if m.Perm != nil { |
| 12422 | { |
| 12423 | size, err := m.Perm.MarshalToSizedBuffer(dAtA[:i]) |
| 12424 | if err != nil { |
| 12425 | return 0, err |
| 12426 | } |
| 12427 | i -= size |
| 12428 | i = encodeVarintRpc(dAtA, i, uint64(size)) |
| 12429 | } |
| 12430 | i-- |
| 12431 | dAtA[i] = 0x12 |
| 12432 | } |
| 12433 | if len(m.Name) > 0 { |
| 12434 | i -= len(m.Name) |
| 12435 | copy(dAtA[i:], m.Name) |
| 12436 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Name))) |
| 12437 | i-- |
| 12438 | dAtA[i] = 0xa |
| 12439 | } |
| 12440 | return len(dAtA) - i, nil |
| 12441 | } |
| 12442 | |
| 12443 | func (m *AuthRoleRevokePermissionRequest) Marshal() (dAtA []byte, err error) { |
| 12444 | size := m.Size() |
| 12445 | dAtA = make([]byte, size) |
| 12446 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 12447 | if err != nil { |
| 12448 | return nil, err |
| 12449 | } |
| 12450 | return dAtA[:n], nil |
| 12451 | } |
| 12452 | |
| 12453 | func (m *AuthRoleRevokePermissionRequest) MarshalTo(dAtA []byte) (int, error) { |
| 12454 | size := m.Size() |
| 12455 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 12456 | } |
| 12457 | |
| 12458 | func (m *AuthRoleRevokePermissionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 12459 | i := len(dAtA) |
| 12460 | _ = i |
| 12461 | var l int |
| 12462 | _ = l |
| 12463 | if m.XXX_unrecognized != nil { |
| 12464 | i -= len(m.XXX_unrecognized) |
| 12465 | copy(dAtA[i:], m.XXX_unrecognized) |
| 12466 | } |
| 12467 | if len(m.RangeEnd) > 0 { |
| 12468 | i -= len(m.RangeEnd) |
| 12469 | copy(dAtA[i:], m.RangeEnd) |
| 12470 | i = encodeVarintRpc(dAtA, i, uint64(len(m.RangeEnd))) |
| 12471 | i-- |
| 12472 | dAtA[i] = 0x1a |
| 12473 | } |
| 12474 | if len(m.Key) > 0 { |
| 12475 | i -= len(m.Key) |
| 12476 | copy(dAtA[i:], m.Key) |
| 12477 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Key))) |
| 12478 | i-- |
| 12479 | dAtA[i] = 0x12 |
| 12480 | } |
| 12481 | if len(m.Role) > 0 { |
| 12482 | i -= len(m.Role) |
| 12483 | copy(dAtA[i:], m.Role) |
| 12484 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Role))) |
| 12485 | i-- |
| 12486 | dAtA[i] = 0xa |
| 12487 | } |
| 12488 | return len(dAtA) - i, nil |
| 12489 | } |
| 12490 | |
| 12491 | func (m *AuthEnableResponse) Marshal() (dAtA []byte, err error) { |
| 12492 | size := m.Size() |
| 12493 | dAtA = make([]byte, size) |
| 12494 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 12495 | if err != nil { |
| 12496 | return nil, err |
| 12497 | } |
| 12498 | return dAtA[:n], nil |
| 12499 | } |
| 12500 | |
| 12501 | func (m *AuthEnableResponse) MarshalTo(dAtA []byte) (int, error) { |
| 12502 | size := m.Size() |
| 12503 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 12504 | } |
| 12505 | |
| 12506 | func (m *AuthEnableResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 12507 | i := len(dAtA) |
| 12508 | _ = i |
| 12509 | var l int |
| 12510 | _ = l |
| 12511 | if m.XXX_unrecognized != nil { |
| 12512 | i -= len(m.XXX_unrecognized) |
| 12513 | copy(dAtA[i:], m.XXX_unrecognized) |
| 12514 | } |
| 12515 | if m.Header != nil { |
| 12516 | { |
| 12517 | size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) |
| 12518 | if err != nil { |
| 12519 | return 0, err |
| 12520 | } |
| 12521 | i -= size |
| 12522 | i = encodeVarintRpc(dAtA, i, uint64(size)) |
| 12523 | } |
| 12524 | i-- |
| 12525 | dAtA[i] = 0xa |
| 12526 | } |
| 12527 | return len(dAtA) - i, nil |
| 12528 | } |
| 12529 | |
| 12530 | func (m *AuthDisableResponse) Marshal() (dAtA []byte, err error) { |
| 12531 | size := m.Size() |
| 12532 | dAtA = make([]byte, size) |
| 12533 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 12534 | if err != nil { |
| 12535 | return nil, err |
| 12536 | } |
| 12537 | return dAtA[:n], nil |
| 12538 | } |
| 12539 | |
| 12540 | func (m *AuthDisableResponse) MarshalTo(dAtA []byte) (int, error) { |
| 12541 | size := m.Size() |
| 12542 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 12543 | } |
| 12544 | |
| 12545 | func (m *AuthDisableResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 12546 | i := len(dAtA) |
| 12547 | _ = i |
| 12548 | var l int |
| 12549 | _ = l |
| 12550 | if m.XXX_unrecognized != nil { |
| 12551 | i -= len(m.XXX_unrecognized) |
| 12552 | copy(dAtA[i:], m.XXX_unrecognized) |
| 12553 | } |
| 12554 | if m.Header != nil { |
| 12555 | { |
| 12556 | size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) |
| 12557 | if err != nil { |
| 12558 | return 0, err |
| 12559 | } |
| 12560 | i -= size |
| 12561 | i = encodeVarintRpc(dAtA, i, uint64(size)) |
| 12562 | } |
| 12563 | i-- |
| 12564 | dAtA[i] = 0xa |
| 12565 | } |
| 12566 | return len(dAtA) - i, nil |
| 12567 | } |
| 12568 | |
| 12569 | func (m *AuthStatusResponse) Marshal() (dAtA []byte, err error) { |
| 12570 | size := m.Size() |
| 12571 | dAtA = make([]byte, size) |
| 12572 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 12573 | if err != nil { |
| 12574 | return nil, err |
| 12575 | } |
| 12576 | return dAtA[:n], nil |
| 12577 | } |
| 12578 | |
| 12579 | func (m *AuthStatusResponse) MarshalTo(dAtA []byte) (int, error) { |
| 12580 | size := m.Size() |
| 12581 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 12582 | } |
| 12583 | |
| 12584 | func (m *AuthStatusResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 12585 | i := len(dAtA) |
| 12586 | _ = i |
| 12587 | var l int |
| 12588 | _ = l |
| 12589 | if m.XXX_unrecognized != nil { |
| 12590 | i -= len(m.XXX_unrecognized) |
| 12591 | copy(dAtA[i:], m.XXX_unrecognized) |
| 12592 | } |
| 12593 | if m.AuthRevision != 0 { |
| 12594 | i = encodeVarintRpc(dAtA, i, uint64(m.AuthRevision)) |
| 12595 | i-- |
| 12596 | dAtA[i] = 0x18 |
| 12597 | } |
| 12598 | if m.Enabled { |
| 12599 | i-- |
| 12600 | if m.Enabled { |
| 12601 | dAtA[i] = 1 |
| 12602 | } else { |
| 12603 | dAtA[i] = 0 |
| 12604 | } |
| 12605 | i-- |
| 12606 | dAtA[i] = 0x10 |
| 12607 | } |
| 12608 | if m.Header != nil { |
| 12609 | { |
| 12610 | size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) |
| 12611 | if err != nil { |
| 12612 | return 0, err |
| 12613 | } |
| 12614 | i -= size |
| 12615 | i = encodeVarintRpc(dAtA, i, uint64(size)) |
| 12616 | } |
| 12617 | i-- |
| 12618 | dAtA[i] = 0xa |
| 12619 | } |
| 12620 | return len(dAtA) - i, nil |
| 12621 | } |
| 12622 | |
| 12623 | func (m *AuthenticateResponse) Marshal() (dAtA []byte, err error) { |
| 12624 | size := m.Size() |
| 12625 | dAtA = make([]byte, size) |
| 12626 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 12627 | if err != nil { |
| 12628 | return nil, err |
| 12629 | } |
| 12630 | return dAtA[:n], nil |
| 12631 | } |
| 12632 | |
| 12633 | func (m *AuthenticateResponse) MarshalTo(dAtA []byte) (int, error) { |
| 12634 | size := m.Size() |
| 12635 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 12636 | } |
| 12637 | |
| 12638 | func (m *AuthenticateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 12639 | i := len(dAtA) |
| 12640 | _ = i |
| 12641 | var l int |
| 12642 | _ = l |
| 12643 | if m.XXX_unrecognized != nil { |
| 12644 | i -= len(m.XXX_unrecognized) |
| 12645 | copy(dAtA[i:], m.XXX_unrecognized) |
| 12646 | } |
| 12647 | if len(m.Token) > 0 { |
| 12648 | i -= len(m.Token) |
| 12649 | copy(dAtA[i:], m.Token) |
| 12650 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Token))) |
| 12651 | i-- |
| 12652 | dAtA[i] = 0x12 |
| 12653 | } |
| 12654 | if m.Header != nil { |
| 12655 | { |
| 12656 | size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) |
| 12657 | if err != nil { |
| 12658 | return 0, err |
| 12659 | } |
| 12660 | i -= size |
| 12661 | i = encodeVarintRpc(dAtA, i, uint64(size)) |
| 12662 | } |
| 12663 | i-- |
| 12664 | dAtA[i] = 0xa |
| 12665 | } |
| 12666 | return len(dAtA) - i, nil |
| 12667 | } |
| 12668 | |
| 12669 | func (m *AuthUserAddResponse) Marshal() (dAtA []byte, err error) { |
| 12670 | size := m.Size() |
| 12671 | dAtA = make([]byte, size) |
| 12672 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 12673 | if err != nil { |
| 12674 | return nil, err |
| 12675 | } |
| 12676 | return dAtA[:n], nil |
| 12677 | } |
| 12678 | |
| 12679 | func (m *AuthUserAddResponse) MarshalTo(dAtA []byte) (int, error) { |
| 12680 | size := m.Size() |
| 12681 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 12682 | } |
| 12683 | |
| 12684 | func (m *AuthUserAddResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 12685 | i := len(dAtA) |
| 12686 | _ = i |
| 12687 | var l int |
| 12688 | _ = l |
| 12689 | if m.XXX_unrecognized != nil { |
| 12690 | i -= len(m.XXX_unrecognized) |
| 12691 | copy(dAtA[i:], m.XXX_unrecognized) |
| 12692 | } |
| 12693 | if m.Header != nil { |
| 12694 | { |
| 12695 | size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) |
| 12696 | if err != nil { |
| 12697 | return 0, err |
| 12698 | } |
| 12699 | i -= size |
| 12700 | i = encodeVarintRpc(dAtA, i, uint64(size)) |
| 12701 | } |
| 12702 | i-- |
| 12703 | dAtA[i] = 0xa |
| 12704 | } |
| 12705 | return len(dAtA) - i, nil |
| 12706 | } |
| 12707 | |
| 12708 | func (m *AuthUserGetResponse) Marshal() (dAtA []byte, err error) { |
| 12709 | size := m.Size() |
| 12710 | dAtA = make([]byte, size) |
| 12711 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 12712 | if err != nil { |
| 12713 | return nil, err |
| 12714 | } |
| 12715 | return dAtA[:n], nil |
| 12716 | } |
| 12717 | |
| 12718 | func (m *AuthUserGetResponse) MarshalTo(dAtA []byte) (int, error) { |
| 12719 | size := m.Size() |
| 12720 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 12721 | } |
| 12722 | |
| 12723 | func (m *AuthUserGetResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 12724 | i := len(dAtA) |
| 12725 | _ = i |
| 12726 | var l int |
| 12727 | _ = l |
| 12728 | if m.XXX_unrecognized != nil { |
| 12729 | i -= len(m.XXX_unrecognized) |
| 12730 | copy(dAtA[i:], m.XXX_unrecognized) |
| 12731 | } |
| 12732 | if len(m.Roles) > 0 { |
| 12733 | for iNdEx := len(m.Roles) - 1; iNdEx >= 0; iNdEx-- { |
| 12734 | i -= len(m.Roles[iNdEx]) |
| 12735 | copy(dAtA[i:], m.Roles[iNdEx]) |
| 12736 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Roles[iNdEx]))) |
| 12737 | i-- |
| 12738 | dAtA[i] = 0x12 |
| 12739 | } |
| 12740 | } |
| 12741 | if m.Header != nil { |
| 12742 | { |
| 12743 | size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) |
| 12744 | if err != nil { |
| 12745 | return 0, err |
| 12746 | } |
| 12747 | i -= size |
| 12748 | i = encodeVarintRpc(dAtA, i, uint64(size)) |
| 12749 | } |
| 12750 | i-- |
| 12751 | dAtA[i] = 0xa |
| 12752 | } |
| 12753 | return len(dAtA) - i, nil |
| 12754 | } |
| 12755 | |
| 12756 | func (m *AuthUserDeleteResponse) Marshal() (dAtA []byte, err error) { |
| 12757 | size := m.Size() |
| 12758 | dAtA = make([]byte, size) |
| 12759 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 12760 | if err != nil { |
| 12761 | return nil, err |
| 12762 | } |
| 12763 | return dAtA[:n], nil |
| 12764 | } |
| 12765 | |
| 12766 | func (m *AuthUserDeleteResponse) MarshalTo(dAtA []byte) (int, error) { |
| 12767 | size := m.Size() |
| 12768 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 12769 | } |
| 12770 | |
| 12771 | func (m *AuthUserDeleteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 12772 | i := len(dAtA) |
| 12773 | _ = i |
| 12774 | var l int |
| 12775 | _ = l |
| 12776 | if m.XXX_unrecognized != nil { |
| 12777 | i -= len(m.XXX_unrecognized) |
| 12778 | copy(dAtA[i:], m.XXX_unrecognized) |
| 12779 | } |
| 12780 | if m.Header != nil { |
| 12781 | { |
| 12782 | size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) |
| 12783 | if err != nil { |
| 12784 | return 0, err |
| 12785 | } |
| 12786 | i -= size |
| 12787 | i = encodeVarintRpc(dAtA, i, uint64(size)) |
| 12788 | } |
| 12789 | i-- |
| 12790 | dAtA[i] = 0xa |
| 12791 | } |
| 12792 | return len(dAtA) - i, nil |
| 12793 | } |
| 12794 | |
| 12795 | func (m *AuthUserChangePasswordResponse) Marshal() (dAtA []byte, err error) { |
| 12796 | size := m.Size() |
| 12797 | dAtA = make([]byte, size) |
| 12798 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 12799 | if err != nil { |
| 12800 | return nil, err |
| 12801 | } |
| 12802 | return dAtA[:n], nil |
| 12803 | } |
| 12804 | |
| 12805 | func (m *AuthUserChangePasswordResponse) MarshalTo(dAtA []byte) (int, error) { |
| 12806 | size := m.Size() |
| 12807 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 12808 | } |
| 12809 | |
| 12810 | func (m *AuthUserChangePasswordResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 12811 | i := len(dAtA) |
| 12812 | _ = i |
| 12813 | var l int |
| 12814 | _ = l |
| 12815 | if m.XXX_unrecognized != nil { |
| 12816 | i -= len(m.XXX_unrecognized) |
| 12817 | copy(dAtA[i:], m.XXX_unrecognized) |
| 12818 | } |
| 12819 | if m.Header != nil { |
| 12820 | { |
| 12821 | size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) |
| 12822 | if err != nil { |
| 12823 | return 0, err |
| 12824 | } |
| 12825 | i -= size |
| 12826 | i = encodeVarintRpc(dAtA, i, uint64(size)) |
| 12827 | } |
| 12828 | i-- |
| 12829 | dAtA[i] = 0xa |
| 12830 | } |
| 12831 | return len(dAtA) - i, nil |
| 12832 | } |
| 12833 | |
| 12834 | func (m *AuthUserGrantRoleResponse) Marshal() (dAtA []byte, err error) { |
| 12835 | size := m.Size() |
| 12836 | dAtA = make([]byte, size) |
| 12837 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 12838 | if err != nil { |
| 12839 | return nil, err |
| 12840 | } |
| 12841 | return dAtA[:n], nil |
| 12842 | } |
| 12843 | |
| 12844 | func (m *AuthUserGrantRoleResponse) MarshalTo(dAtA []byte) (int, error) { |
| 12845 | size := m.Size() |
| 12846 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 12847 | } |
| 12848 | |
| 12849 | func (m *AuthUserGrantRoleResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 12850 | i := len(dAtA) |
| 12851 | _ = i |
| 12852 | var l int |
| 12853 | _ = l |
| 12854 | if m.XXX_unrecognized != nil { |
| 12855 | i -= len(m.XXX_unrecognized) |
| 12856 | copy(dAtA[i:], m.XXX_unrecognized) |
| 12857 | } |
| 12858 | if m.Header != nil { |
| 12859 | { |
| 12860 | size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) |
| 12861 | if err != nil { |
| 12862 | return 0, err |
| 12863 | } |
| 12864 | i -= size |
| 12865 | i = encodeVarintRpc(dAtA, i, uint64(size)) |
| 12866 | } |
| 12867 | i-- |
| 12868 | dAtA[i] = 0xa |
| 12869 | } |
| 12870 | return len(dAtA) - i, nil |
| 12871 | } |
| 12872 | |
| 12873 | func (m *AuthUserRevokeRoleResponse) Marshal() (dAtA []byte, err error) { |
| 12874 | size := m.Size() |
| 12875 | dAtA = make([]byte, size) |
| 12876 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 12877 | if err != nil { |
| 12878 | return nil, err |
| 12879 | } |
| 12880 | return dAtA[:n], nil |
| 12881 | } |
| 12882 | |
| 12883 | func (m *AuthUserRevokeRoleResponse) MarshalTo(dAtA []byte) (int, error) { |
| 12884 | size := m.Size() |
| 12885 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 12886 | } |
| 12887 | |
| 12888 | func (m *AuthUserRevokeRoleResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 12889 | i := len(dAtA) |
| 12890 | _ = i |
| 12891 | var l int |
| 12892 | _ = l |
| 12893 | if m.XXX_unrecognized != nil { |
| 12894 | i -= len(m.XXX_unrecognized) |
| 12895 | copy(dAtA[i:], m.XXX_unrecognized) |
| 12896 | } |
| 12897 | if m.Header != nil { |
| 12898 | { |
| 12899 | size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) |
| 12900 | if err != nil { |
| 12901 | return 0, err |
| 12902 | } |
| 12903 | i -= size |
| 12904 | i = encodeVarintRpc(dAtA, i, uint64(size)) |
| 12905 | } |
| 12906 | i-- |
| 12907 | dAtA[i] = 0xa |
| 12908 | } |
| 12909 | return len(dAtA) - i, nil |
| 12910 | } |
| 12911 | |
| 12912 | func (m *AuthRoleAddResponse) Marshal() (dAtA []byte, err error) { |
| 12913 | size := m.Size() |
| 12914 | dAtA = make([]byte, size) |
| 12915 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 12916 | if err != nil { |
| 12917 | return nil, err |
| 12918 | } |
| 12919 | return dAtA[:n], nil |
| 12920 | } |
| 12921 | |
| 12922 | func (m *AuthRoleAddResponse) MarshalTo(dAtA []byte) (int, error) { |
| 12923 | size := m.Size() |
| 12924 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 12925 | } |
| 12926 | |
| 12927 | func (m *AuthRoleAddResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 12928 | i := len(dAtA) |
| 12929 | _ = i |
| 12930 | var l int |
| 12931 | _ = l |
| 12932 | if m.XXX_unrecognized != nil { |
| 12933 | i -= len(m.XXX_unrecognized) |
| 12934 | copy(dAtA[i:], m.XXX_unrecognized) |
| 12935 | } |
| 12936 | if m.Header != nil { |
| 12937 | { |
| 12938 | size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) |
| 12939 | if err != nil { |
| 12940 | return 0, err |
| 12941 | } |
| 12942 | i -= size |
| 12943 | i = encodeVarintRpc(dAtA, i, uint64(size)) |
| 12944 | } |
| 12945 | i-- |
| 12946 | dAtA[i] = 0xa |
| 12947 | } |
| 12948 | return len(dAtA) - i, nil |
| 12949 | } |
| 12950 | |
| 12951 | func (m *AuthRoleGetResponse) Marshal() (dAtA []byte, err error) { |
| 12952 | size := m.Size() |
| 12953 | dAtA = make([]byte, size) |
| 12954 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 12955 | if err != nil { |
| 12956 | return nil, err |
| 12957 | } |
| 12958 | return dAtA[:n], nil |
| 12959 | } |
| 12960 | |
| 12961 | func (m *AuthRoleGetResponse) MarshalTo(dAtA []byte) (int, error) { |
| 12962 | size := m.Size() |
| 12963 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 12964 | } |
| 12965 | |
| 12966 | func (m *AuthRoleGetResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 12967 | i := len(dAtA) |
| 12968 | _ = i |
| 12969 | var l int |
| 12970 | _ = l |
| 12971 | if m.XXX_unrecognized != nil { |
| 12972 | i -= len(m.XXX_unrecognized) |
| 12973 | copy(dAtA[i:], m.XXX_unrecognized) |
| 12974 | } |
| 12975 | if len(m.Perm) > 0 { |
| 12976 | for iNdEx := len(m.Perm) - 1; iNdEx >= 0; iNdEx-- { |
| 12977 | { |
| 12978 | size, err := m.Perm[iNdEx].MarshalToSizedBuffer(dAtA[:i]) |
| 12979 | if err != nil { |
| 12980 | return 0, err |
| 12981 | } |
| 12982 | i -= size |
| 12983 | i = encodeVarintRpc(dAtA, i, uint64(size)) |
| 12984 | } |
| 12985 | i-- |
| 12986 | dAtA[i] = 0x12 |
| 12987 | } |
| 12988 | } |
| 12989 | if m.Header != nil { |
| 12990 | { |
| 12991 | size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) |
| 12992 | if err != nil { |
| 12993 | return 0, err |
| 12994 | } |
| 12995 | i -= size |
| 12996 | i = encodeVarintRpc(dAtA, i, uint64(size)) |
| 12997 | } |
| 12998 | i-- |
| 12999 | dAtA[i] = 0xa |
| 13000 | } |
| 13001 | return len(dAtA) - i, nil |
| 13002 | } |
| 13003 | |
| 13004 | func (m *AuthRoleListResponse) Marshal() (dAtA []byte, err error) { |
| 13005 | size := m.Size() |
| 13006 | dAtA = make([]byte, size) |
| 13007 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 13008 | if err != nil { |
| 13009 | return nil, err |
| 13010 | } |
| 13011 | return dAtA[:n], nil |
| 13012 | } |
| 13013 | |
| 13014 | func (m *AuthRoleListResponse) MarshalTo(dAtA []byte) (int, error) { |
| 13015 | size := m.Size() |
| 13016 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 13017 | } |
| 13018 | |
| 13019 | func (m *AuthRoleListResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 13020 | i := len(dAtA) |
| 13021 | _ = i |
| 13022 | var l int |
| 13023 | _ = l |
| 13024 | if m.XXX_unrecognized != nil { |
| 13025 | i -= len(m.XXX_unrecognized) |
| 13026 | copy(dAtA[i:], m.XXX_unrecognized) |
| 13027 | } |
| 13028 | if len(m.Roles) > 0 { |
| 13029 | for iNdEx := len(m.Roles) - 1; iNdEx >= 0; iNdEx-- { |
| 13030 | i -= len(m.Roles[iNdEx]) |
| 13031 | copy(dAtA[i:], m.Roles[iNdEx]) |
| 13032 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Roles[iNdEx]))) |
| 13033 | i-- |
| 13034 | dAtA[i] = 0x12 |
| 13035 | } |
| 13036 | } |
| 13037 | if m.Header != nil { |
| 13038 | { |
| 13039 | size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) |
| 13040 | if err != nil { |
| 13041 | return 0, err |
| 13042 | } |
| 13043 | i -= size |
| 13044 | i = encodeVarintRpc(dAtA, i, uint64(size)) |
| 13045 | } |
| 13046 | i-- |
| 13047 | dAtA[i] = 0xa |
| 13048 | } |
| 13049 | return len(dAtA) - i, nil |
| 13050 | } |
| 13051 | |
| 13052 | func (m *AuthUserListResponse) Marshal() (dAtA []byte, err error) { |
| 13053 | size := m.Size() |
| 13054 | dAtA = make([]byte, size) |
| 13055 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 13056 | if err != nil { |
| 13057 | return nil, err |
| 13058 | } |
| 13059 | return dAtA[:n], nil |
| 13060 | } |
| 13061 | |
| 13062 | func (m *AuthUserListResponse) MarshalTo(dAtA []byte) (int, error) { |
| 13063 | size := m.Size() |
| 13064 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 13065 | } |
| 13066 | |
| 13067 | func (m *AuthUserListResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 13068 | i := len(dAtA) |
| 13069 | _ = i |
| 13070 | var l int |
| 13071 | _ = l |
| 13072 | if m.XXX_unrecognized != nil { |
| 13073 | i -= len(m.XXX_unrecognized) |
| 13074 | copy(dAtA[i:], m.XXX_unrecognized) |
| 13075 | } |
| 13076 | if len(m.Users) > 0 { |
| 13077 | for iNdEx := len(m.Users) - 1; iNdEx >= 0; iNdEx-- { |
| 13078 | i -= len(m.Users[iNdEx]) |
| 13079 | copy(dAtA[i:], m.Users[iNdEx]) |
| 13080 | i = encodeVarintRpc(dAtA, i, uint64(len(m.Users[iNdEx]))) |
| 13081 | i-- |
| 13082 | dAtA[i] = 0x12 |
| 13083 | } |
| 13084 | } |
| 13085 | if m.Header != nil { |
| 13086 | { |
| 13087 | size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) |
| 13088 | if err != nil { |
| 13089 | return 0, err |
| 13090 | } |
| 13091 | i -= size |
| 13092 | i = encodeVarintRpc(dAtA, i, uint64(size)) |
| 13093 | } |
| 13094 | i-- |
| 13095 | dAtA[i] = 0xa |
| 13096 | } |
| 13097 | return len(dAtA) - i, nil |
| 13098 | } |
| 13099 | |
| 13100 | func (m *AuthRoleDeleteResponse) Marshal() (dAtA []byte, err error) { |
| 13101 | size := m.Size() |
| 13102 | dAtA = make([]byte, size) |
| 13103 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 13104 | if err != nil { |
| 13105 | return nil, err |
| 13106 | } |
| 13107 | return dAtA[:n], nil |
| 13108 | } |
| 13109 | |
| 13110 | func (m *AuthRoleDeleteResponse) MarshalTo(dAtA []byte) (int, error) { |
| 13111 | size := m.Size() |
| 13112 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 13113 | } |
| 13114 | |
| 13115 | func (m *AuthRoleDeleteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 13116 | i := len(dAtA) |
| 13117 | _ = i |
| 13118 | var l int |
| 13119 | _ = l |
| 13120 | if m.XXX_unrecognized != nil { |
| 13121 | i -= len(m.XXX_unrecognized) |
| 13122 | copy(dAtA[i:], m.XXX_unrecognized) |
| 13123 | } |
| 13124 | if m.Header != nil { |
| 13125 | { |
| 13126 | size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) |
| 13127 | if err != nil { |
| 13128 | return 0, err |
| 13129 | } |
| 13130 | i -= size |
| 13131 | i = encodeVarintRpc(dAtA, i, uint64(size)) |
| 13132 | } |
| 13133 | i-- |
| 13134 | dAtA[i] = 0xa |
| 13135 | } |
| 13136 | return len(dAtA) - i, nil |
| 13137 | } |
| 13138 | |
| 13139 | func (m *AuthRoleGrantPermissionResponse) Marshal() (dAtA []byte, err error) { |
| 13140 | size := m.Size() |
| 13141 | dAtA = make([]byte, size) |
| 13142 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 13143 | if err != nil { |
| 13144 | return nil, err |
| 13145 | } |
| 13146 | return dAtA[:n], nil |
| 13147 | } |
| 13148 | |
| 13149 | func (m *AuthRoleGrantPermissionResponse) MarshalTo(dAtA []byte) (int, error) { |
| 13150 | size := m.Size() |
| 13151 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 13152 | } |
| 13153 | |
| 13154 | func (m *AuthRoleGrantPermissionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 13155 | i := len(dAtA) |
| 13156 | _ = i |
| 13157 | var l int |
| 13158 | _ = l |
| 13159 | if m.XXX_unrecognized != nil { |
| 13160 | i -= len(m.XXX_unrecognized) |
| 13161 | copy(dAtA[i:], m.XXX_unrecognized) |
| 13162 | } |
| 13163 | if m.Header != nil { |
| 13164 | { |
| 13165 | size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) |
| 13166 | if err != nil { |
| 13167 | return 0, err |
| 13168 | } |
| 13169 | i -= size |
| 13170 | i = encodeVarintRpc(dAtA, i, uint64(size)) |
| 13171 | } |
| 13172 | i-- |
| 13173 | dAtA[i] = 0xa |
| 13174 | } |
| 13175 | return len(dAtA) - i, nil |
| 13176 | } |
| 13177 | |
| 13178 | func (m *AuthRoleRevokePermissionResponse) Marshal() (dAtA []byte, err error) { |
| 13179 | size := m.Size() |
| 13180 | dAtA = make([]byte, size) |
| 13181 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 13182 | if err != nil { |
| 13183 | return nil, err |
| 13184 | } |
| 13185 | return dAtA[:n], nil |
| 13186 | } |
| 13187 | |
| 13188 | func (m *AuthRoleRevokePermissionResponse) MarshalTo(dAtA []byte) (int, error) { |
| 13189 | size := m.Size() |
| 13190 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 13191 | } |
| 13192 | |
| 13193 | func (m *AuthRoleRevokePermissionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 13194 | i := len(dAtA) |
| 13195 | _ = i |
| 13196 | var l int |
| 13197 | _ = l |
| 13198 | if m.XXX_unrecognized != nil { |
| 13199 | i -= len(m.XXX_unrecognized) |
| 13200 | copy(dAtA[i:], m.XXX_unrecognized) |
| 13201 | } |
| 13202 | if m.Header != nil { |
| 13203 | { |
| 13204 | size, err := m.Header.MarshalToSizedBuffer(dAtA[:i]) |
| 13205 | if err != nil { |
| 13206 | return 0, err |
| 13207 | } |
| 13208 | i -= size |
| 13209 | i = encodeVarintRpc(dAtA, i, uint64(size)) |
| 13210 | } |
| 13211 | i-- |
| 13212 | dAtA[i] = 0xa |
| 13213 | } |
| 13214 | return len(dAtA) - i, nil |
| 13215 | } |
| 13216 | |
| 13217 | func encodeVarintRpc(dAtA []byte, offset int, v uint64) int { |
| 13218 | offset -= sovRpc(v) |
| 13219 | base := offset |
| 13220 | for v >= 1<<7 { |
| 13221 | dAtA[offset] = uint8(v&0x7f | 0x80) |
| 13222 | v >>= 7 |
| 13223 | offset++ |
| 13224 | } |
| 13225 | dAtA[offset] = uint8(v) |
| 13226 | return base |
| 13227 | } |
| 13228 | func (m *ResponseHeader) Size() (n int) { |
| 13229 | if m == nil { |
| 13230 | return 0 |
| 13231 | } |
| 13232 | var l int |
| 13233 | _ = l |
| 13234 | if m.ClusterId != 0 { |
| 13235 | n += 1 + sovRpc(uint64(m.ClusterId)) |
| 13236 | } |
| 13237 | if m.MemberId != 0 { |
| 13238 | n += 1 + sovRpc(uint64(m.MemberId)) |
| 13239 | } |
| 13240 | if m.Revision != 0 { |
| 13241 | n += 1 + sovRpc(uint64(m.Revision)) |
| 13242 | } |
| 13243 | if m.RaftTerm != 0 { |
| 13244 | n += 1 + sovRpc(uint64(m.RaftTerm)) |
| 13245 | } |
| 13246 | if m.XXX_unrecognized != nil { |
| 13247 | n += len(m.XXX_unrecognized) |
| 13248 | } |
| 13249 | return n |
| 13250 | } |
| 13251 | |
| 13252 | func (m *RangeRequest) Size() (n int) { |
| 13253 | if m == nil { |
| 13254 | return 0 |
| 13255 | } |
| 13256 | var l int |
| 13257 | _ = l |
| 13258 | l = len(m.Key) |
| 13259 | if l > 0 { |
| 13260 | n += 1 + l + sovRpc(uint64(l)) |
| 13261 | } |
| 13262 | l = len(m.RangeEnd) |
| 13263 | if l > 0 { |
| 13264 | n += 1 + l + sovRpc(uint64(l)) |
| 13265 | } |
| 13266 | if m.Limit != 0 { |
| 13267 | n += 1 + sovRpc(uint64(m.Limit)) |
| 13268 | } |
| 13269 | if m.Revision != 0 { |
| 13270 | n += 1 + sovRpc(uint64(m.Revision)) |
| 13271 | } |
| 13272 | if m.SortOrder != 0 { |
| 13273 | n += 1 + sovRpc(uint64(m.SortOrder)) |
| 13274 | } |
| 13275 | if m.SortTarget != 0 { |
| 13276 | n += 1 + sovRpc(uint64(m.SortTarget)) |
| 13277 | } |
| 13278 | if m.Serializable { |
| 13279 | n += 2 |
| 13280 | } |
| 13281 | if m.KeysOnly { |
| 13282 | n += 2 |
| 13283 | } |
| 13284 | if m.CountOnly { |
| 13285 | n += 2 |
| 13286 | } |
| 13287 | if m.MinModRevision != 0 { |
| 13288 | n += 1 + sovRpc(uint64(m.MinModRevision)) |
| 13289 | } |
| 13290 | if m.MaxModRevision != 0 { |
| 13291 | n += 1 + sovRpc(uint64(m.MaxModRevision)) |
| 13292 | } |
| 13293 | if m.MinCreateRevision != 0 { |
| 13294 | n += 1 + sovRpc(uint64(m.MinCreateRevision)) |
| 13295 | } |
| 13296 | if m.MaxCreateRevision != 0 { |
| 13297 | n += 1 + sovRpc(uint64(m.MaxCreateRevision)) |
| 13298 | } |
| 13299 | if m.XXX_unrecognized != nil { |
| 13300 | n += len(m.XXX_unrecognized) |
| 13301 | } |
| 13302 | return n |
| 13303 | } |
| 13304 | |
| 13305 | func (m *RangeResponse) Size() (n int) { |
| 13306 | if m == nil { |
| 13307 | return 0 |
| 13308 | } |
| 13309 | var l int |
| 13310 | _ = l |
| 13311 | if m.Header != nil { |
| 13312 | l = m.Header.Size() |
| 13313 | n += 1 + l + sovRpc(uint64(l)) |
| 13314 | } |
| 13315 | if len(m.Kvs) > 0 { |
| 13316 | for _, e := range m.Kvs { |
| 13317 | l = e.Size() |
| 13318 | n += 1 + l + sovRpc(uint64(l)) |
| 13319 | } |
| 13320 | } |
| 13321 | if m.More { |
| 13322 | n += 2 |
| 13323 | } |
| 13324 | if m.Count != 0 { |
| 13325 | n += 1 + sovRpc(uint64(m.Count)) |
| 13326 | } |
| 13327 | if m.XXX_unrecognized != nil { |
| 13328 | n += len(m.XXX_unrecognized) |
| 13329 | } |
| 13330 | return n |
| 13331 | } |
| 13332 | |
| 13333 | func (m *PutRequest) Size() (n int) { |
| 13334 | if m == nil { |
| 13335 | return 0 |
| 13336 | } |
| 13337 | var l int |
| 13338 | _ = l |
| 13339 | l = len(m.Key) |
| 13340 | if l > 0 { |
| 13341 | n += 1 + l + sovRpc(uint64(l)) |
| 13342 | } |
| 13343 | l = len(m.Value) |
| 13344 | if l > 0 { |
| 13345 | n += 1 + l + sovRpc(uint64(l)) |
| 13346 | } |
| 13347 | if m.Lease != 0 { |
| 13348 | n += 1 + sovRpc(uint64(m.Lease)) |
| 13349 | } |
| 13350 | if m.PrevKv { |
| 13351 | n += 2 |
| 13352 | } |
| 13353 | if m.IgnoreValue { |
| 13354 | n += 2 |
| 13355 | } |
| 13356 | if m.IgnoreLease { |
| 13357 | n += 2 |
| 13358 | } |
| 13359 | if m.XXX_unrecognized != nil { |
| 13360 | n += len(m.XXX_unrecognized) |
| 13361 | } |
| 13362 | return n |
| 13363 | } |
| 13364 | |
| 13365 | func (m *PutResponse) Size() (n int) { |
| 13366 | if m == nil { |
| 13367 | return 0 |
| 13368 | } |
| 13369 | var l int |
| 13370 | _ = l |
| 13371 | if m.Header != nil { |
| 13372 | l = m.Header.Size() |
| 13373 | n += 1 + l + sovRpc(uint64(l)) |
| 13374 | } |
| 13375 | if m.PrevKv != nil { |
| 13376 | l = m.PrevKv.Size() |
| 13377 | n += 1 + l + sovRpc(uint64(l)) |
| 13378 | } |
| 13379 | if m.XXX_unrecognized != nil { |
| 13380 | n += len(m.XXX_unrecognized) |
| 13381 | } |
| 13382 | return n |
| 13383 | } |
| 13384 | |
| 13385 | func (m *DeleteRangeRequest) Size() (n int) { |
| 13386 | if m == nil { |
| 13387 | return 0 |
| 13388 | } |
| 13389 | var l int |
| 13390 | _ = l |
| 13391 | l = len(m.Key) |
| 13392 | if l > 0 { |
| 13393 | n += 1 + l + sovRpc(uint64(l)) |
| 13394 | } |
| 13395 | l = len(m.RangeEnd) |
| 13396 | if l > 0 { |
| 13397 | n += 1 + l + sovRpc(uint64(l)) |
| 13398 | } |
| 13399 | if m.PrevKv { |
| 13400 | n += 2 |
| 13401 | } |
| 13402 | if m.XXX_unrecognized != nil { |
| 13403 | n += len(m.XXX_unrecognized) |
| 13404 | } |
| 13405 | return n |
| 13406 | } |
| 13407 | |
| 13408 | func (m *DeleteRangeResponse) Size() (n int) { |
| 13409 | if m == nil { |
| 13410 | return 0 |
| 13411 | } |
| 13412 | var l int |
| 13413 | _ = l |
| 13414 | if m.Header != nil { |
| 13415 | l = m.Header.Size() |
| 13416 | n += 1 + l + sovRpc(uint64(l)) |
| 13417 | } |
| 13418 | if m.Deleted != 0 { |
| 13419 | n += 1 + sovRpc(uint64(m.Deleted)) |
| 13420 | } |
| 13421 | if len(m.PrevKvs) > 0 { |
| 13422 | for _, e := range m.PrevKvs { |
| 13423 | l = e.Size() |
| 13424 | n += 1 + l + sovRpc(uint64(l)) |
| 13425 | } |
| 13426 | } |
| 13427 | if m.XXX_unrecognized != nil { |
| 13428 | n += len(m.XXX_unrecognized) |
| 13429 | } |
| 13430 | return n |
| 13431 | } |
| 13432 | |
| 13433 | func (m *RequestOp) Size() (n int) { |
| 13434 | if m == nil { |
| 13435 | return 0 |
| 13436 | } |
| 13437 | var l int |
| 13438 | _ = l |
| 13439 | if m.Request != nil { |
| 13440 | n += m.Request.Size() |
| 13441 | } |
| 13442 | if m.XXX_unrecognized != nil { |
| 13443 | n += len(m.XXX_unrecognized) |
| 13444 | } |
| 13445 | return n |
| 13446 | } |
| 13447 | |
| 13448 | func (m *RequestOp_RequestRange) Size() (n int) { |
| 13449 | if m == nil { |
| 13450 | return 0 |
| 13451 | } |
| 13452 | var l int |
| 13453 | _ = l |
| 13454 | if m.RequestRange != nil { |
| 13455 | l = m.RequestRange.Size() |
| 13456 | n += 1 + l + sovRpc(uint64(l)) |
| 13457 | } |
| 13458 | return n |
| 13459 | } |
| 13460 | func (m *RequestOp_RequestPut) Size() (n int) { |
| 13461 | if m == nil { |
| 13462 | return 0 |
| 13463 | } |
| 13464 | var l int |
| 13465 | _ = l |
| 13466 | if m.RequestPut != nil { |
| 13467 | l = m.RequestPut.Size() |
| 13468 | n += 1 + l + sovRpc(uint64(l)) |
| 13469 | } |
| 13470 | return n |
| 13471 | } |
| 13472 | func (m *RequestOp_RequestDeleteRange) Size() (n int) { |
| 13473 | if m == nil { |
| 13474 | return 0 |
| 13475 | } |
| 13476 | var l int |
| 13477 | _ = l |
| 13478 | if m.RequestDeleteRange != nil { |
| 13479 | l = m.RequestDeleteRange.Size() |
| 13480 | n += 1 + l + sovRpc(uint64(l)) |
| 13481 | } |
| 13482 | return n |
| 13483 | } |
| 13484 | func (m *RequestOp_RequestTxn) Size() (n int) { |
| 13485 | if m == nil { |
| 13486 | return 0 |
| 13487 | } |
| 13488 | var l int |
| 13489 | _ = l |
| 13490 | if m.RequestTxn != nil { |
| 13491 | l = m.RequestTxn.Size() |
| 13492 | n += 1 + l + sovRpc(uint64(l)) |
| 13493 | } |
| 13494 | return n |
| 13495 | } |
| 13496 | func (m *ResponseOp) Size() (n int) { |
| 13497 | if m == nil { |
| 13498 | return 0 |
| 13499 | } |
| 13500 | var l int |
| 13501 | _ = l |
| 13502 | if m.Response != nil { |
| 13503 | n += m.Response.Size() |
| 13504 | } |
| 13505 | if m.XXX_unrecognized != nil { |
| 13506 | n += len(m.XXX_unrecognized) |
| 13507 | } |
| 13508 | return n |
| 13509 | } |
| 13510 | |
| 13511 | func (m *ResponseOp_ResponseRange) Size() (n int) { |
| 13512 | if m == nil { |
| 13513 | return 0 |
| 13514 | } |
| 13515 | var l int |
| 13516 | _ = l |
| 13517 | if m.ResponseRange != nil { |
| 13518 | l = m.ResponseRange.Size() |
| 13519 | n += 1 + l + sovRpc(uint64(l)) |
| 13520 | } |
| 13521 | return n |
| 13522 | } |
| 13523 | func (m *ResponseOp_ResponsePut) Size() (n int) { |
| 13524 | if m == nil { |
| 13525 | return 0 |
| 13526 | } |
| 13527 | var l int |
| 13528 | _ = l |
| 13529 | if m.ResponsePut != nil { |
| 13530 | l = m.ResponsePut.Size() |
| 13531 | n += 1 + l + sovRpc(uint64(l)) |
| 13532 | } |
| 13533 | return n |
| 13534 | } |
| 13535 | func (m *ResponseOp_ResponseDeleteRange) Size() (n int) { |
| 13536 | if m == nil { |
| 13537 | return 0 |
| 13538 | } |
| 13539 | var l int |
| 13540 | _ = l |
| 13541 | if m.ResponseDeleteRange != nil { |
| 13542 | l = m.ResponseDeleteRange.Size() |
| 13543 | n += 1 + l + sovRpc(uint64(l)) |
| 13544 | } |
| 13545 | return n |
| 13546 | } |
| 13547 | func (m *ResponseOp_ResponseTxn) Size() (n int) { |
| 13548 | if m == nil { |
| 13549 | return 0 |
| 13550 | } |
| 13551 | var l int |
| 13552 | _ = l |
| 13553 | if m.ResponseTxn != nil { |
| 13554 | l = m.ResponseTxn.Size() |
| 13555 | n += 1 + l + sovRpc(uint64(l)) |
| 13556 | } |
| 13557 | return n |
| 13558 | } |
| 13559 | func (m *Compare) Size() (n int) { |
| 13560 | if m == nil { |
| 13561 | return 0 |
| 13562 | } |
| 13563 | var l int |
| 13564 | _ = l |
| 13565 | if m.Result != 0 { |
| 13566 | n += 1 + sovRpc(uint64(m.Result)) |
| 13567 | } |
| 13568 | if m.Target != 0 { |
| 13569 | n += 1 + sovRpc(uint64(m.Target)) |
| 13570 | } |
| 13571 | l = len(m.Key) |
| 13572 | if l > 0 { |
| 13573 | n += 1 + l + sovRpc(uint64(l)) |
| 13574 | } |
| 13575 | if m.TargetUnion != nil { |
| 13576 | n += m.TargetUnion.Size() |
| 13577 | } |
| 13578 | l = len(m.RangeEnd) |
| 13579 | if l > 0 { |
| 13580 | n += 2 + l + sovRpc(uint64(l)) |
| 13581 | } |
| 13582 | if m.XXX_unrecognized != nil { |
| 13583 | n += len(m.XXX_unrecognized) |
| 13584 | } |
| 13585 | return n |
| 13586 | } |
| 13587 | |
| 13588 | func (m *Compare_Version) Size() (n int) { |
| 13589 | if m == nil { |
| 13590 | return 0 |
| 13591 | } |
| 13592 | var l int |
| 13593 | _ = l |
| 13594 | n += 1 + sovRpc(uint64(m.Version)) |
| 13595 | return n |
| 13596 | } |
| 13597 | func (m *Compare_CreateRevision) Size() (n int) { |
| 13598 | if m == nil { |
| 13599 | return 0 |
| 13600 | } |
| 13601 | var l int |
| 13602 | _ = l |
| 13603 | n += 1 + sovRpc(uint64(m.CreateRevision)) |
| 13604 | return n |
| 13605 | } |
| 13606 | func (m *Compare_ModRevision) Size() (n int) { |
| 13607 | if m == nil { |
| 13608 | return 0 |
| 13609 | } |
| 13610 | var l int |
| 13611 | _ = l |
| 13612 | n += 1 + sovRpc(uint64(m.ModRevision)) |
| 13613 | return n |
| 13614 | } |
| 13615 | func (m *Compare_Value) Size() (n int) { |
| 13616 | if m == nil { |
| 13617 | return 0 |
| 13618 | } |
| 13619 | var l int |
| 13620 | _ = l |
| 13621 | if m.Value != nil { |
| 13622 | l = len(m.Value) |
| 13623 | n += 1 + l + sovRpc(uint64(l)) |
| 13624 | } |
| 13625 | return n |
| 13626 | } |
| 13627 | func (m *Compare_Lease) Size() (n int) { |
| 13628 | if m == nil { |
| 13629 | return 0 |
| 13630 | } |
| 13631 | var l int |
| 13632 | _ = l |
| 13633 | n += 1 + sovRpc(uint64(m.Lease)) |
| 13634 | return n |
| 13635 | } |
| 13636 | func (m *TxnRequest) Size() (n int) { |
| 13637 | if m == nil { |
| 13638 | return 0 |
| 13639 | } |
| 13640 | var l int |
| 13641 | _ = l |
| 13642 | if len(m.Compare) > 0 { |
| 13643 | for _, e := range m.Compare { |
| 13644 | l = e.Size() |
| 13645 | n += 1 + l + sovRpc(uint64(l)) |
| 13646 | } |
| 13647 | } |
| 13648 | if len(m.Success) > 0 { |
| 13649 | for _, e := range m.Success { |
| 13650 | l = e.Size() |
| 13651 | n += 1 + l + sovRpc(uint64(l)) |
| 13652 | } |
| 13653 | } |
| 13654 | if len(m.Failure) > 0 { |
| 13655 | for _, e := range m.Failure { |
| 13656 | l = e.Size() |
| 13657 | n += 1 + l + sovRpc(uint64(l)) |
| 13658 | } |
| 13659 | } |
| 13660 | if m.XXX_unrecognized != nil { |
| 13661 | n += len(m.XXX_unrecognized) |
| 13662 | } |
| 13663 | return n |
| 13664 | } |
| 13665 | |
| 13666 | func (m *TxnResponse) Size() (n int) { |
| 13667 | if m == nil { |
| 13668 | return 0 |
| 13669 | } |
| 13670 | var l int |
| 13671 | _ = l |
| 13672 | if m.Header != nil { |
| 13673 | l = m.Header.Size() |
| 13674 | n += 1 + l + sovRpc(uint64(l)) |
| 13675 | } |
| 13676 | if m.Succeeded { |
| 13677 | n += 2 |
| 13678 | } |
| 13679 | if len(m.Responses) > 0 { |
| 13680 | for _, e := range m.Responses { |
| 13681 | l = e.Size() |
| 13682 | n += 1 + l + sovRpc(uint64(l)) |
| 13683 | } |
| 13684 | } |
| 13685 | if m.XXX_unrecognized != nil { |
| 13686 | n += len(m.XXX_unrecognized) |
| 13687 | } |
| 13688 | return n |
| 13689 | } |
| 13690 | |
| 13691 | func (m *CompactionRequest) Size() (n int) { |
| 13692 | if m == nil { |
| 13693 | return 0 |
| 13694 | } |
| 13695 | var l int |
| 13696 | _ = l |
| 13697 | if m.Revision != 0 { |
| 13698 | n += 1 + sovRpc(uint64(m.Revision)) |
| 13699 | } |
| 13700 | if m.Physical { |
| 13701 | n += 2 |
| 13702 | } |
| 13703 | if m.XXX_unrecognized != nil { |
| 13704 | n += len(m.XXX_unrecognized) |
| 13705 | } |
| 13706 | return n |
| 13707 | } |
| 13708 | |
| 13709 | func (m *CompactionResponse) Size() (n int) { |
| 13710 | if m == nil { |
| 13711 | return 0 |
| 13712 | } |
| 13713 | var l int |
| 13714 | _ = l |
| 13715 | if m.Header != nil { |
| 13716 | l = m.Header.Size() |
| 13717 | n += 1 + l + sovRpc(uint64(l)) |
| 13718 | } |
| 13719 | if m.XXX_unrecognized != nil { |
| 13720 | n += len(m.XXX_unrecognized) |
| 13721 | } |
| 13722 | return n |
| 13723 | } |
| 13724 | |
| 13725 | func (m *HashRequest) Size() (n int) { |
| 13726 | if m == nil { |
| 13727 | return 0 |
| 13728 | } |
| 13729 | var l int |
| 13730 | _ = l |
| 13731 | if m.XXX_unrecognized != nil { |
| 13732 | n += len(m.XXX_unrecognized) |
| 13733 | } |
| 13734 | return n |
| 13735 | } |
| 13736 | |
| 13737 | func (m *HashKVRequest) Size() (n int) { |
| 13738 | if m == nil { |
| 13739 | return 0 |
| 13740 | } |
| 13741 | var l int |
| 13742 | _ = l |
| 13743 | if m.Revision != 0 { |
| 13744 | n += 1 + sovRpc(uint64(m.Revision)) |
| 13745 | } |
| 13746 | if m.XXX_unrecognized != nil { |
| 13747 | n += len(m.XXX_unrecognized) |
| 13748 | } |
| 13749 | return n |
| 13750 | } |
| 13751 | |
| 13752 | func (m *HashKVResponse) Size() (n int) { |
| 13753 | if m == nil { |
| 13754 | return 0 |
| 13755 | } |
| 13756 | var l int |
| 13757 | _ = l |
| 13758 | if m.Header != nil { |
| 13759 | l = m.Header.Size() |
| 13760 | n += 1 + l + sovRpc(uint64(l)) |
| 13761 | } |
| 13762 | if m.Hash != 0 { |
| 13763 | n += 1 + sovRpc(uint64(m.Hash)) |
| 13764 | } |
| 13765 | if m.CompactRevision != 0 { |
| 13766 | n += 1 + sovRpc(uint64(m.CompactRevision)) |
| 13767 | } |
| 13768 | if m.HashRevision != 0 { |
| 13769 | n += 1 + sovRpc(uint64(m.HashRevision)) |
| 13770 | } |
| 13771 | if m.XXX_unrecognized != nil { |
| 13772 | n += len(m.XXX_unrecognized) |
| 13773 | } |
| 13774 | return n |
| 13775 | } |
| 13776 | |
| 13777 | func (m *HashResponse) Size() (n int) { |
| 13778 | if m == nil { |
| 13779 | return 0 |
| 13780 | } |
| 13781 | var l int |
| 13782 | _ = l |
| 13783 | if m.Header != nil { |
| 13784 | l = m.Header.Size() |
| 13785 | n += 1 + l + sovRpc(uint64(l)) |
| 13786 | } |
| 13787 | if m.Hash != 0 { |
| 13788 | n += 1 + sovRpc(uint64(m.Hash)) |
| 13789 | } |
| 13790 | if m.XXX_unrecognized != nil { |
| 13791 | n += len(m.XXX_unrecognized) |
| 13792 | } |
| 13793 | return n |
| 13794 | } |
| 13795 | |
| 13796 | func (m *SnapshotRequest) Size() (n int) { |
| 13797 | if m == nil { |
| 13798 | return 0 |
| 13799 | } |
| 13800 | var l int |
| 13801 | _ = l |
| 13802 | if m.XXX_unrecognized != nil { |
| 13803 | n += len(m.XXX_unrecognized) |
| 13804 | } |
| 13805 | return n |
| 13806 | } |
| 13807 | |
| 13808 | func (m *SnapshotResponse) Size() (n int) { |
| 13809 | if m == nil { |
| 13810 | return 0 |
| 13811 | } |
| 13812 | var l int |
| 13813 | _ = l |
| 13814 | if m.Header != nil { |
| 13815 | l = m.Header.Size() |
| 13816 | n += 1 + l + sovRpc(uint64(l)) |
| 13817 | } |
| 13818 | if m.RemainingBytes != 0 { |
| 13819 | n += 1 + sovRpc(uint64(m.RemainingBytes)) |
| 13820 | } |
| 13821 | l = len(m.Blob) |
| 13822 | if l > 0 { |
| 13823 | n += 1 + l + sovRpc(uint64(l)) |
| 13824 | } |
| 13825 | l = len(m.Version) |
| 13826 | if l > 0 { |
| 13827 | n += 1 + l + sovRpc(uint64(l)) |
| 13828 | } |
| 13829 | if m.XXX_unrecognized != nil { |
| 13830 | n += len(m.XXX_unrecognized) |
| 13831 | } |
| 13832 | return n |
| 13833 | } |
| 13834 | |
| 13835 | func (m *WatchRequest) Size() (n int) { |
| 13836 | if m == nil { |
| 13837 | return 0 |
| 13838 | } |
| 13839 | var l int |
| 13840 | _ = l |
| 13841 | if m.RequestUnion != nil { |
| 13842 | n += m.RequestUnion.Size() |
| 13843 | } |
| 13844 | if m.XXX_unrecognized != nil { |
| 13845 | n += len(m.XXX_unrecognized) |
| 13846 | } |
| 13847 | return n |
| 13848 | } |
| 13849 | |
| 13850 | func (m *WatchRequest_CreateRequest) Size() (n int) { |
| 13851 | if m == nil { |
| 13852 | return 0 |
| 13853 | } |
| 13854 | var l int |
| 13855 | _ = l |
| 13856 | if m.CreateRequest != nil { |
| 13857 | l = m.CreateRequest.Size() |
| 13858 | n += 1 + l + sovRpc(uint64(l)) |
| 13859 | } |
| 13860 | return n |
| 13861 | } |
| 13862 | func (m *WatchRequest_CancelRequest) Size() (n int) { |
| 13863 | if m == nil { |
| 13864 | return 0 |
| 13865 | } |
| 13866 | var l int |
| 13867 | _ = l |
| 13868 | if m.CancelRequest != nil { |
| 13869 | l = m.CancelRequest.Size() |
| 13870 | n += 1 + l + sovRpc(uint64(l)) |
| 13871 | } |
| 13872 | return n |
| 13873 | } |
| 13874 | func (m *WatchRequest_ProgressRequest) Size() (n int) { |
| 13875 | if m == nil { |
| 13876 | return 0 |
| 13877 | } |
| 13878 | var l int |
| 13879 | _ = l |
| 13880 | if m.ProgressRequest != nil { |
| 13881 | l = m.ProgressRequest.Size() |
| 13882 | n += 1 + l + sovRpc(uint64(l)) |
| 13883 | } |
| 13884 | return n |
| 13885 | } |
| 13886 | func (m *WatchCreateRequest) Size() (n int) { |
| 13887 | if m == nil { |
| 13888 | return 0 |
| 13889 | } |
| 13890 | var l int |
| 13891 | _ = l |
| 13892 | l = len(m.Key) |
| 13893 | if l > 0 { |
| 13894 | n += 1 + l + sovRpc(uint64(l)) |
| 13895 | } |
| 13896 | l = len(m.RangeEnd) |
| 13897 | if l > 0 { |
| 13898 | n += 1 + l + sovRpc(uint64(l)) |
| 13899 | } |
| 13900 | if m.StartRevision != 0 { |
| 13901 | n += 1 + sovRpc(uint64(m.StartRevision)) |
| 13902 | } |
| 13903 | if m.ProgressNotify { |
| 13904 | n += 2 |
| 13905 | } |
| 13906 | if len(m.Filters) > 0 { |
| 13907 | l = 0 |
| 13908 | for _, e := range m.Filters { |
| 13909 | l += sovRpc(uint64(e)) |
| 13910 | } |
| 13911 | n += 1 + sovRpc(uint64(l)) + l |
| 13912 | } |
| 13913 | if m.PrevKv { |
| 13914 | n += 2 |
| 13915 | } |
| 13916 | if m.WatchId != 0 { |
| 13917 | n += 1 + sovRpc(uint64(m.WatchId)) |
| 13918 | } |
| 13919 | if m.Fragment { |
| 13920 | n += 2 |
| 13921 | } |
| 13922 | if m.XXX_unrecognized != nil { |
| 13923 | n += len(m.XXX_unrecognized) |
| 13924 | } |
| 13925 | return n |
| 13926 | } |
| 13927 | |
| 13928 | func (m *WatchCancelRequest) Size() (n int) { |
| 13929 | if m == nil { |
| 13930 | return 0 |
| 13931 | } |
| 13932 | var l int |
| 13933 | _ = l |
| 13934 | if m.WatchId != 0 { |
| 13935 | n += 1 + sovRpc(uint64(m.WatchId)) |
| 13936 | } |
| 13937 | if m.XXX_unrecognized != nil { |
| 13938 | n += len(m.XXX_unrecognized) |
| 13939 | } |
| 13940 | return n |
| 13941 | } |
| 13942 | |
| 13943 | func (m *WatchProgressRequest) Size() (n int) { |
| 13944 | if m == nil { |
| 13945 | return 0 |
| 13946 | } |
| 13947 | var l int |
| 13948 | _ = l |
| 13949 | if m.XXX_unrecognized != nil { |
| 13950 | n += len(m.XXX_unrecognized) |
| 13951 | } |
| 13952 | return n |
| 13953 | } |
| 13954 | |
| 13955 | func (m *WatchResponse) Size() (n int) { |
| 13956 | if m == nil { |
| 13957 | return 0 |
| 13958 | } |
| 13959 | var l int |
| 13960 | _ = l |
| 13961 | if m.Header != nil { |
| 13962 | l = m.Header.Size() |
| 13963 | n += 1 + l + sovRpc(uint64(l)) |
| 13964 | } |
| 13965 | if m.WatchId != 0 { |
| 13966 | n += 1 + sovRpc(uint64(m.WatchId)) |
| 13967 | } |
| 13968 | if m.Created { |
| 13969 | n += 2 |
| 13970 | } |
| 13971 | if m.Canceled { |
| 13972 | n += 2 |
| 13973 | } |
| 13974 | if m.CompactRevision != 0 { |
| 13975 | n += 1 + sovRpc(uint64(m.CompactRevision)) |
| 13976 | } |
| 13977 | l = len(m.CancelReason) |
| 13978 | if l > 0 { |
| 13979 | n += 1 + l + sovRpc(uint64(l)) |
| 13980 | } |
| 13981 | if m.Fragment { |
| 13982 | n += 2 |
| 13983 | } |
| 13984 | if len(m.Events) > 0 { |
| 13985 | for _, e := range m.Events { |
| 13986 | l = e.Size() |
| 13987 | n += 1 + l + sovRpc(uint64(l)) |
| 13988 | } |
| 13989 | } |
| 13990 | if m.XXX_unrecognized != nil { |
| 13991 | n += len(m.XXX_unrecognized) |
| 13992 | } |
| 13993 | return n |
| 13994 | } |
| 13995 | |
| 13996 | func (m *LeaseGrantRequest) Size() (n int) { |
| 13997 | if m == nil { |
| 13998 | return 0 |
| 13999 | } |
| 14000 | var l int |
| 14001 | _ = l |
| 14002 | if m.TTL != 0 { |
| 14003 | n += 1 + sovRpc(uint64(m.TTL)) |
| 14004 | } |
| 14005 | if m.ID != 0 { |
| 14006 | n += 1 + sovRpc(uint64(m.ID)) |
| 14007 | } |
| 14008 | if m.XXX_unrecognized != nil { |
| 14009 | n += len(m.XXX_unrecognized) |
| 14010 | } |
| 14011 | return n |
| 14012 | } |
| 14013 | |
| 14014 | func (m *LeaseGrantResponse) Size() (n int) { |
| 14015 | if m == nil { |
| 14016 | return 0 |
| 14017 | } |
| 14018 | var l int |
| 14019 | _ = l |
| 14020 | if m.Header != nil { |
| 14021 | l = m.Header.Size() |
| 14022 | n += 1 + l + sovRpc(uint64(l)) |
| 14023 | } |
| 14024 | if m.ID != 0 { |
| 14025 | n += 1 + sovRpc(uint64(m.ID)) |
| 14026 | } |
| 14027 | if m.TTL != 0 { |
| 14028 | n += 1 + sovRpc(uint64(m.TTL)) |
| 14029 | } |
| 14030 | l = len(m.Error) |
| 14031 | if l > 0 { |
| 14032 | n += 1 + l + sovRpc(uint64(l)) |
| 14033 | } |
| 14034 | if m.XXX_unrecognized != nil { |
| 14035 | n += len(m.XXX_unrecognized) |
| 14036 | } |
| 14037 | return n |
| 14038 | } |
| 14039 | |
| 14040 | func (m *LeaseRevokeRequest) Size() (n int) { |
| 14041 | if m == nil { |
| 14042 | return 0 |
| 14043 | } |
| 14044 | var l int |
| 14045 | _ = l |
| 14046 | if m.ID != 0 { |
| 14047 | n += 1 + sovRpc(uint64(m.ID)) |
| 14048 | } |
| 14049 | if m.XXX_unrecognized != nil { |
| 14050 | n += len(m.XXX_unrecognized) |
| 14051 | } |
| 14052 | return n |
| 14053 | } |
| 14054 | |
| 14055 | func (m *LeaseRevokeResponse) Size() (n int) { |
| 14056 | if m == nil { |
| 14057 | return 0 |
| 14058 | } |
| 14059 | var l int |
| 14060 | _ = l |
| 14061 | if m.Header != nil { |
| 14062 | l = m.Header.Size() |
| 14063 | n += 1 + l + sovRpc(uint64(l)) |
| 14064 | } |
| 14065 | if m.XXX_unrecognized != nil { |
| 14066 | n += len(m.XXX_unrecognized) |
| 14067 | } |
| 14068 | return n |
| 14069 | } |
| 14070 | |
| 14071 | func (m *LeaseCheckpoint) Size() (n int) { |
| 14072 | if m == nil { |
| 14073 | return 0 |
| 14074 | } |
| 14075 | var l int |
| 14076 | _ = l |
| 14077 | if m.ID != 0 { |
| 14078 | n += 1 + sovRpc(uint64(m.ID)) |
| 14079 | } |
| 14080 | if m.Remaining_TTL != 0 { |
| 14081 | n += 1 + sovRpc(uint64(m.Remaining_TTL)) |
| 14082 | } |
| 14083 | if m.XXX_unrecognized != nil { |
| 14084 | n += len(m.XXX_unrecognized) |
| 14085 | } |
| 14086 | return n |
| 14087 | } |
| 14088 | |
| 14089 | func (m *LeaseCheckpointRequest) Size() (n int) { |
| 14090 | if m == nil { |
| 14091 | return 0 |
| 14092 | } |
| 14093 | var l int |
| 14094 | _ = l |
| 14095 | if len(m.Checkpoints) > 0 { |
| 14096 | for _, e := range m.Checkpoints { |
| 14097 | l = e.Size() |
| 14098 | n += 1 + l + sovRpc(uint64(l)) |
| 14099 | } |
| 14100 | } |
| 14101 | if m.XXX_unrecognized != nil { |
| 14102 | n += len(m.XXX_unrecognized) |
| 14103 | } |
| 14104 | return n |
| 14105 | } |
| 14106 | |
| 14107 | func (m *LeaseCheckpointResponse) Size() (n int) { |
| 14108 | if m == nil { |
| 14109 | return 0 |
| 14110 | } |
| 14111 | var l int |
| 14112 | _ = l |
| 14113 | if m.Header != nil { |
| 14114 | l = m.Header.Size() |
| 14115 | n += 1 + l + sovRpc(uint64(l)) |
| 14116 | } |
| 14117 | if m.XXX_unrecognized != nil { |
| 14118 | n += len(m.XXX_unrecognized) |
| 14119 | } |
| 14120 | return n |
| 14121 | } |
| 14122 | |
| 14123 | func (m *LeaseKeepAliveRequest) Size() (n int) { |
| 14124 | if m == nil { |
| 14125 | return 0 |
| 14126 | } |
| 14127 | var l int |
| 14128 | _ = l |
| 14129 | if m.ID != 0 { |
| 14130 | n += 1 + sovRpc(uint64(m.ID)) |
| 14131 | } |
| 14132 | if m.XXX_unrecognized != nil { |
| 14133 | n += len(m.XXX_unrecognized) |
| 14134 | } |
| 14135 | return n |
| 14136 | } |
| 14137 | |
| 14138 | func (m *LeaseKeepAliveResponse) Size() (n int) { |
| 14139 | if m == nil { |
| 14140 | return 0 |
| 14141 | } |
| 14142 | var l int |
| 14143 | _ = l |
| 14144 | if m.Header != nil { |
| 14145 | l = m.Header.Size() |
| 14146 | n += 1 + l + sovRpc(uint64(l)) |
| 14147 | } |
| 14148 | if m.ID != 0 { |
| 14149 | n += 1 + sovRpc(uint64(m.ID)) |
| 14150 | } |
| 14151 | if m.TTL != 0 { |
| 14152 | n += 1 + sovRpc(uint64(m.TTL)) |
| 14153 | } |
| 14154 | if m.XXX_unrecognized != nil { |
| 14155 | n += len(m.XXX_unrecognized) |
| 14156 | } |
| 14157 | return n |
| 14158 | } |
| 14159 | |
| 14160 | func (m *LeaseTimeToLiveRequest) Size() (n int) { |
| 14161 | if m == nil { |
| 14162 | return 0 |
| 14163 | } |
| 14164 | var l int |
| 14165 | _ = l |
| 14166 | if m.ID != 0 { |
| 14167 | n += 1 + sovRpc(uint64(m.ID)) |
| 14168 | } |
| 14169 | if m.Keys { |
| 14170 | n += 2 |
| 14171 | } |
| 14172 | if m.XXX_unrecognized != nil { |
| 14173 | n += len(m.XXX_unrecognized) |
| 14174 | } |
| 14175 | return n |
| 14176 | } |
| 14177 | |
| 14178 | func (m *LeaseTimeToLiveResponse) Size() (n int) { |
| 14179 | if m == nil { |
| 14180 | return 0 |
| 14181 | } |
| 14182 | var l int |
| 14183 | _ = l |
| 14184 | if m.Header != nil { |
| 14185 | l = m.Header.Size() |
| 14186 | n += 1 + l + sovRpc(uint64(l)) |
| 14187 | } |
| 14188 | if m.ID != 0 { |
| 14189 | n += 1 + sovRpc(uint64(m.ID)) |
| 14190 | } |
| 14191 | if m.TTL != 0 { |
| 14192 | n += 1 + sovRpc(uint64(m.TTL)) |
| 14193 | } |
| 14194 | if m.GrantedTTL != 0 { |
| 14195 | n += 1 + sovRpc(uint64(m.GrantedTTL)) |
| 14196 | } |
| 14197 | if len(m.Keys) > 0 { |
| 14198 | for _, b := range m.Keys { |
| 14199 | l = len(b) |
| 14200 | n += 1 + l + sovRpc(uint64(l)) |
| 14201 | } |
| 14202 | } |
| 14203 | if m.XXX_unrecognized != nil { |
| 14204 | n += len(m.XXX_unrecognized) |
| 14205 | } |
| 14206 | return n |
| 14207 | } |
| 14208 | |
| 14209 | func (m *LeaseLeasesRequest) Size() (n int) { |
| 14210 | if m == nil { |
| 14211 | return 0 |
| 14212 | } |
| 14213 | var l int |
| 14214 | _ = l |
| 14215 | if m.XXX_unrecognized != nil { |
| 14216 | n += len(m.XXX_unrecognized) |
| 14217 | } |
| 14218 | return n |
| 14219 | } |
| 14220 | |
| 14221 | func (m *LeaseStatus) Size() (n int) { |
| 14222 | if m == nil { |
| 14223 | return 0 |
| 14224 | } |
| 14225 | var l int |
| 14226 | _ = l |
| 14227 | if m.ID != 0 { |
| 14228 | n += 1 + sovRpc(uint64(m.ID)) |
| 14229 | } |
| 14230 | if m.XXX_unrecognized != nil { |
| 14231 | n += len(m.XXX_unrecognized) |
| 14232 | } |
| 14233 | return n |
| 14234 | } |
| 14235 | |
| 14236 | func (m *LeaseLeasesResponse) Size() (n int) { |
| 14237 | if m == nil { |
| 14238 | return 0 |
| 14239 | } |
| 14240 | var l int |
| 14241 | _ = l |
| 14242 | if m.Header != nil { |
| 14243 | l = m.Header.Size() |
| 14244 | n += 1 + l + sovRpc(uint64(l)) |
| 14245 | } |
| 14246 | if len(m.Leases) > 0 { |
| 14247 | for _, e := range m.Leases { |
| 14248 | l = e.Size() |
| 14249 | n += 1 + l + sovRpc(uint64(l)) |
| 14250 | } |
| 14251 | } |
| 14252 | if m.XXX_unrecognized != nil { |
| 14253 | n += len(m.XXX_unrecognized) |
| 14254 | } |
| 14255 | return n |
| 14256 | } |
| 14257 | |
| 14258 | func (m *Member) Size() (n int) { |
| 14259 | if m == nil { |
| 14260 | return 0 |
| 14261 | } |
| 14262 | var l int |
| 14263 | _ = l |
| 14264 | if m.ID != 0 { |
| 14265 | n += 1 + sovRpc(uint64(m.ID)) |
| 14266 | } |
| 14267 | l = len(m.Name) |
| 14268 | if l > 0 { |
| 14269 | n += 1 + l + sovRpc(uint64(l)) |
| 14270 | } |
| 14271 | if len(m.PeerURLs) > 0 { |
| 14272 | for _, s := range m.PeerURLs { |
| 14273 | l = len(s) |
| 14274 | n += 1 + l + sovRpc(uint64(l)) |
| 14275 | } |
| 14276 | } |
| 14277 | if len(m.ClientURLs) > 0 { |
| 14278 | for _, s := range m.ClientURLs { |
| 14279 | l = len(s) |
| 14280 | n += 1 + l + sovRpc(uint64(l)) |
| 14281 | } |
| 14282 | } |
| 14283 | if m.IsLearner { |
| 14284 | n += 2 |
| 14285 | } |
| 14286 | if m.XXX_unrecognized != nil { |
| 14287 | n += len(m.XXX_unrecognized) |
| 14288 | } |
| 14289 | return n |
| 14290 | } |
| 14291 | |
| 14292 | func (m *MemberAddRequest) Size() (n int) { |
| 14293 | if m == nil { |
| 14294 | return 0 |
| 14295 | } |
| 14296 | var l int |
| 14297 | _ = l |
| 14298 | if len(m.PeerURLs) > 0 { |
| 14299 | for _, s := range m.PeerURLs { |
| 14300 | l = len(s) |
| 14301 | n += 1 + l + sovRpc(uint64(l)) |
| 14302 | } |
| 14303 | } |
| 14304 | if m.IsLearner { |
| 14305 | n += 2 |
| 14306 | } |
| 14307 | if m.XXX_unrecognized != nil { |
| 14308 | n += len(m.XXX_unrecognized) |
| 14309 | } |
| 14310 | return n |
| 14311 | } |
| 14312 | |
| 14313 | func (m *MemberAddResponse) Size() (n int) { |
| 14314 | if m == nil { |
| 14315 | return 0 |
| 14316 | } |
| 14317 | var l int |
| 14318 | _ = l |
| 14319 | if m.Header != nil { |
| 14320 | l = m.Header.Size() |
| 14321 | n += 1 + l + sovRpc(uint64(l)) |
| 14322 | } |
| 14323 | if m.Member != nil { |
| 14324 | l = m.Member.Size() |
| 14325 | n += 1 + l + sovRpc(uint64(l)) |
| 14326 | } |
| 14327 | if len(m.Members) > 0 { |
| 14328 | for _, e := range m.Members { |
| 14329 | l = e.Size() |
| 14330 | n += 1 + l + sovRpc(uint64(l)) |
| 14331 | } |
| 14332 | } |
| 14333 | if m.XXX_unrecognized != nil { |
| 14334 | n += len(m.XXX_unrecognized) |
| 14335 | } |
| 14336 | return n |
| 14337 | } |
| 14338 | |
| 14339 | func (m *MemberRemoveRequest) Size() (n int) { |
| 14340 | if m == nil { |
| 14341 | return 0 |
| 14342 | } |
| 14343 | var l int |
| 14344 | _ = l |
| 14345 | if m.ID != 0 { |
| 14346 | n += 1 + sovRpc(uint64(m.ID)) |
| 14347 | } |
| 14348 | if m.XXX_unrecognized != nil { |
| 14349 | n += len(m.XXX_unrecognized) |
| 14350 | } |
| 14351 | return n |
| 14352 | } |
| 14353 | |
| 14354 | func (m *MemberRemoveResponse) Size() (n int) { |
| 14355 | if m == nil { |
| 14356 | return 0 |
| 14357 | } |
| 14358 | var l int |
| 14359 | _ = l |
| 14360 | if m.Header != nil { |
| 14361 | l = m.Header.Size() |
| 14362 | n += 1 + l + sovRpc(uint64(l)) |
| 14363 | } |
| 14364 | if len(m.Members) > 0 { |
| 14365 | for _, e := range m.Members { |
| 14366 | l = e.Size() |
| 14367 | n += 1 + l + sovRpc(uint64(l)) |
| 14368 | } |
| 14369 | } |
| 14370 | if m.XXX_unrecognized != nil { |
| 14371 | n += len(m.XXX_unrecognized) |
| 14372 | } |
| 14373 | return n |
| 14374 | } |
| 14375 | |
| 14376 | func (m *MemberUpdateRequest) Size() (n int) { |
| 14377 | if m == nil { |
| 14378 | return 0 |
| 14379 | } |
| 14380 | var l int |
| 14381 | _ = l |
| 14382 | if m.ID != 0 { |
| 14383 | n += 1 + sovRpc(uint64(m.ID)) |
| 14384 | } |
| 14385 | if len(m.PeerURLs) > 0 { |
| 14386 | for _, s := range m.PeerURLs { |
| 14387 | l = len(s) |
| 14388 | n += 1 + l + sovRpc(uint64(l)) |
| 14389 | } |
| 14390 | } |
| 14391 | if m.XXX_unrecognized != nil { |
| 14392 | n += len(m.XXX_unrecognized) |
| 14393 | } |
| 14394 | return n |
| 14395 | } |
| 14396 | |
| 14397 | func (m *MemberUpdateResponse) Size() (n int) { |
| 14398 | if m == nil { |
| 14399 | return 0 |
| 14400 | } |
| 14401 | var l int |
| 14402 | _ = l |
| 14403 | if m.Header != nil { |
| 14404 | l = m.Header.Size() |
| 14405 | n += 1 + l + sovRpc(uint64(l)) |
| 14406 | } |
| 14407 | if len(m.Members) > 0 { |
| 14408 | for _, e := range m.Members { |
| 14409 | l = e.Size() |
| 14410 | n += 1 + l + sovRpc(uint64(l)) |
| 14411 | } |
| 14412 | } |
| 14413 | if m.XXX_unrecognized != nil { |
| 14414 | n += len(m.XXX_unrecognized) |
| 14415 | } |
| 14416 | return n |
| 14417 | } |
| 14418 | |
| 14419 | func (m *MemberListRequest) Size() (n int) { |
| 14420 | if m == nil { |
| 14421 | return 0 |
| 14422 | } |
| 14423 | var l int |
| 14424 | _ = l |
| 14425 | if m.Linearizable { |
| 14426 | n += 2 |
| 14427 | } |
| 14428 | if m.XXX_unrecognized != nil { |
| 14429 | n += len(m.XXX_unrecognized) |
| 14430 | } |
| 14431 | return n |
| 14432 | } |
| 14433 | |
| 14434 | func (m *MemberListResponse) Size() (n int) { |
| 14435 | if m == nil { |
| 14436 | return 0 |
| 14437 | } |
| 14438 | var l int |
| 14439 | _ = l |
| 14440 | if m.Header != nil { |
| 14441 | l = m.Header.Size() |
| 14442 | n += 1 + l + sovRpc(uint64(l)) |
| 14443 | } |
| 14444 | if len(m.Members) > 0 { |
| 14445 | for _, e := range m.Members { |
| 14446 | l = e.Size() |
| 14447 | n += 1 + l + sovRpc(uint64(l)) |
| 14448 | } |
| 14449 | } |
| 14450 | if m.XXX_unrecognized != nil { |
| 14451 | n += len(m.XXX_unrecognized) |
| 14452 | } |
| 14453 | return n |
| 14454 | } |
| 14455 | |
| 14456 | func (m *MemberPromoteRequest) Size() (n int) { |
| 14457 | if m == nil { |
| 14458 | return 0 |
| 14459 | } |
| 14460 | var l int |
| 14461 | _ = l |
| 14462 | if m.ID != 0 { |
| 14463 | n += 1 + sovRpc(uint64(m.ID)) |
| 14464 | } |
| 14465 | if m.XXX_unrecognized != nil { |
| 14466 | n += len(m.XXX_unrecognized) |
| 14467 | } |
| 14468 | return n |
| 14469 | } |
| 14470 | |
| 14471 | func (m *MemberPromoteResponse) Size() (n int) { |
| 14472 | if m == nil { |
| 14473 | return 0 |
| 14474 | } |
| 14475 | var l int |
| 14476 | _ = l |
| 14477 | if m.Header != nil { |
| 14478 | l = m.Header.Size() |
| 14479 | n += 1 + l + sovRpc(uint64(l)) |
| 14480 | } |
| 14481 | if len(m.Members) > 0 { |
| 14482 | for _, e := range m.Members { |
| 14483 | l = e.Size() |
| 14484 | n += 1 + l + sovRpc(uint64(l)) |
| 14485 | } |
| 14486 | } |
| 14487 | if m.XXX_unrecognized != nil { |
| 14488 | n += len(m.XXX_unrecognized) |
| 14489 | } |
| 14490 | return n |
| 14491 | } |
| 14492 | |
| 14493 | func (m *DefragmentRequest) Size() (n int) { |
| 14494 | if m == nil { |
| 14495 | return 0 |
| 14496 | } |
| 14497 | var l int |
| 14498 | _ = l |
| 14499 | if m.XXX_unrecognized != nil { |
| 14500 | n += len(m.XXX_unrecognized) |
| 14501 | } |
| 14502 | return n |
| 14503 | } |
| 14504 | |
| 14505 | func (m *DefragmentResponse) Size() (n int) { |
| 14506 | if m == nil { |
| 14507 | return 0 |
| 14508 | } |
| 14509 | var l int |
| 14510 | _ = l |
| 14511 | if m.Header != nil { |
| 14512 | l = m.Header.Size() |
| 14513 | n += 1 + l + sovRpc(uint64(l)) |
| 14514 | } |
| 14515 | if m.XXX_unrecognized != nil { |
| 14516 | n += len(m.XXX_unrecognized) |
| 14517 | } |
| 14518 | return n |
| 14519 | } |
| 14520 | |
| 14521 | func (m *MoveLeaderRequest) Size() (n int) { |
| 14522 | if m == nil { |
| 14523 | return 0 |
| 14524 | } |
| 14525 | var l int |
| 14526 | _ = l |
| 14527 | if m.TargetID != 0 { |
| 14528 | n += 1 + sovRpc(uint64(m.TargetID)) |
| 14529 | } |
| 14530 | if m.XXX_unrecognized != nil { |
| 14531 | n += len(m.XXX_unrecognized) |
| 14532 | } |
| 14533 | return n |
| 14534 | } |
| 14535 | |
| 14536 | func (m *MoveLeaderResponse) Size() (n int) { |
| 14537 | if m == nil { |
| 14538 | return 0 |
| 14539 | } |
| 14540 | var l int |
| 14541 | _ = l |
| 14542 | if m.Header != nil { |
| 14543 | l = m.Header.Size() |
| 14544 | n += 1 + l + sovRpc(uint64(l)) |
| 14545 | } |
| 14546 | if m.XXX_unrecognized != nil { |
| 14547 | n += len(m.XXX_unrecognized) |
| 14548 | } |
| 14549 | return n |
| 14550 | } |
| 14551 | |
| 14552 | func (m *AlarmRequest) Size() (n int) { |
| 14553 | if m == nil { |
| 14554 | return 0 |
| 14555 | } |
| 14556 | var l int |
| 14557 | _ = l |
| 14558 | if m.Action != 0 { |
| 14559 | n += 1 + sovRpc(uint64(m.Action)) |
| 14560 | } |
| 14561 | if m.MemberID != 0 { |
| 14562 | n += 1 + sovRpc(uint64(m.MemberID)) |
| 14563 | } |
| 14564 | if m.Alarm != 0 { |
| 14565 | n += 1 + sovRpc(uint64(m.Alarm)) |
| 14566 | } |
| 14567 | if m.XXX_unrecognized != nil { |
| 14568 | n += len(m.XXX_unrecognized) |
| 14569 | } |
| 14570 | return n |
| 14571 | } |
| 14572 | |
| 14573 | func (m *AlarmMember) Size() (n int) { |
| 14574 | if m == nil { |
| 14575 | return 0 |
| 14576 | } |
| 14577 | var l int |
| 14578 | _ = l |
| 14579 | if m.MemberID != 0 { |
| 14580 | n += 1 + sovRpc(uint64(m.MemberID)) |
| 14581 | } |
| 14582 | if m.Alarm != 0 { |
| 14583 | n += 1 + sovRpc(uint64(m.Alarm)) |
| 14584 | } |
| 14585 | if m.XXX_unrecognized != nil { |
| 14586 | n += len(m.XXX_unrecognized) |
| 14587 | } |
| 14588 | return n |
| 14589 | } |
| 14590 | |
| 14591 | func (m *AlarmResponse) Size() (n int) { |
| 14592 | if m == nil { |
| 14593 | return 0 |
| 14594 | } |
| 14595 | var l int |
| 14596 | _ = l |
| 14597 | if m.Header != nil { |
| 14598 | l = m.Header.Size() |
| 14599 | n += 1 + l + sovRpc(uint64(l)) |
| 14600 | } |
| 14601 | if len(m.Alarms) > 0 { |
| 14602 | for _, e := range m.Alarms { |
| 14603 | l = e.Size() |
| 14604 | n += 1 + l + sovRpc(uint64(l)) |
| 14605 | } |
| 14606 | } |
| 14607 | if m.XXX_unrecognized != nil { |
| 14608 | n += len(m.XXX_unrecognized) |
| 14609 | } |
| 14610 | return n |
| 14611 | } |
| 14612 | |
| 14613 | func (m *DowngradeRequest) Size() (n int) { |
| 14614 | if m == nil { |
| 14615 | return 0 |
| 14616 | } |
| 14617 | var l int |
| 14618 | _ = l |
| 14619 | if m.Action != 0 { |
| 14620 | n += 1 + sovRpc(uint64(m.Action)) |
| 14621 | } |
| 14622 | l = len(m.Version) |
| 14623 | if l > 0 { |
| 14624 | n += 1 + l + sovRpc(uint64(l)) |
| 14625 | } |
| 14626 | if m.XXX_unrecognized != nil { |
| 14627 | n += len(m.XXX_unrecognized) |
| 14628 | } |
| 14629 | return n |
| 14630 | } |
| 14631 | |
| 14632 | func (m *DowngradeResponse) Size() (n int) { |
| 14633 | if m == nil { |
| 14634 | return 0 |
| 14635 | } |
| 14636 | var l int |
| 14637 | _ = l |
| 14638 | if m.Header != nil { |
| 14639 | l = m.Header.Size() |
| 14640 | n += 1 + l + sovRpc(uint64(l)) |
| 14641 | } |
| 14642 | l = len(m.Version) |
| 14643 | if l > 0 { |
| 14644 | n += 1 + l + sovRpc(uint64(l)) |
| 14645 | } |
| 14646 | if m.XXX_unrecognized != nil { |
| 14647 | n += len(m.XXX_unrecognized) |
| 14648 | } |
| 14649 | return n |
| 14650 | } |
| 14651 | |
| 14652 | func (m *DowngradeVersionTestRequest) Size() (n int) { |
| 14653 | if m == nil { |
| 14654 | return 0 |
| 14655 | } |
| 14656 | var l int |
| 14657 | _ = l |
| 14658 | l = len(m.Ver) |
| 14659 | if l > 0 { |
| 14660 | n += 1 + l + sovRpc(uint64(l)) |
| 14661 | } |
| 14662 | if m.XXX_unrecognized != nil { |
| 14663 | n += len(m.XXX_unrecognized) |
| 14664 | } |
| 14665 | return n |
| 14666 | } |
| 14667 | |
| 14668 | func (m *StatusRequest) Size() (n int) { |
| 14669 | if m == nil { |
| 14670 | return 0 |
| 14671 | } |
| 14672 | var l int |
| 14673 | _ = l |
| 14674 | if m.XXX_unrecognized != nil { |
| 14675 | n += len(m.XXX_unrecognized) |
| 14676 | } |
| 14677 | return n |
| 14678 | } |
| 14679 | |
| 14680 | func (m *StatusResponse) Size() (n int) { |
| 14681 | if m == nil { |
| 14682 | return 0 |
| 14683 | } |
| 14684 | var l int |
| 14685 | _ = l |
| 14686 | if m.Header != nil { |
| 14687 | l = m.Header.Size() |
| 14688 | n += 1 + l + sovRpc(uint64(l)) |
| 14689 | } |
| 14690 | l = len(m.Version) |
| 14691 | if l > 0 { |
| 14692 | n += 1 + l + sovRpc(uint64(l)) |
| 14693 | } |
| 14694 | if m.DbSize != 0 { |
| 14695 | n += 1 + sovRpc(uint64(m.DbSize)) |
| 14696 | } |
| 14697 | if m.Leader != 0 { |
| 14698 | n += 1 + sovRpc(uint64(m.Leader)) |
| 14699 | } |
| 14700 | if m.RaftIndex != 0 { |
| 14701 | n += 1 + sovRpc(uint64(m.RaftIndex)) |
| 14702 | } |
| 14703 | if m.RaftTerm != 0 { |
| 14704 | n += 1 + sovRpc(uint64(m.RaftTerm)) |
| 14705 | } |
| 14706 | if m.RaftAppliedIndex != 0 { |
| 14707 | n += 1 + sovRpc(uint64(m.RaftAppliedIndex)) |
| 14708 | } |
| 14709 | if len(m.Errors) > 0 { |
| 14710 | for _, s := range m.Errors { |
| 14711 | l = len(s) |
| 14712 | n += 1 + l + sovRpc(uint64(l)) |
| 14713 | } |
| 14714 | } |
| 14715 | if m.DbSizeInUse != 0 { |
| 14716 | n += 1 + sovRpc(uint64(m.DbSizeInUse)) |
| 14717 | } |
| 14718 | if m.IsLearner { |
| 14719 | n += 2 |
| 14720 | } |
| 14721 | l = len(m.StorageVersion) |
| 14722 | if l > 0 { |
| 14723 | n += 1 + l + sovRpc(uint64(l)) |
| 14724 | } |
| 14725 | if m.DbSizeQuota != 0 { |
| 14726 | n += 1 + sovRpc(uint64(m.DbSizeQuota)) |
| 14727 | } |
| 14728 | if m.DowngradeInfo != nil { |
| 14729 | l = m.DowngradeInfo.Size() |
| 14730 | n += 1 + l + sovRpc(uint64(l)) |
| 14731 | } |
| 14732 | if m.XXX_unrecognized != nil { |
| 14733 | n += len(m.XXX_unrecognized) |
| 14734 | } |
| 14735 | return n |
| 14736 | } |
| 14737 | |
| 14738 | func (m *DowngradeInfo) Size() (n int) { |
| 14739 | if m == nil { |
| 14740 | return 0 |
| 14741 | } |
| 14742 | var l int |
| 14743 | _ = l |
| 14744 | if m.Enabled { |
| 14745 | n += 2 |
| 14746 | } |
| 14747 | l = len(m.TargetVersion) |
| 14748 | if l > 0 { |
| 14749 | n += 1 + l + sovRpc(uint64(l)) |
| 14750 | } |
| 14751 | if m.XXX_unrecognized != nil { |
| 14752 | n += len(m.XXX_unrecognized) |
| 14753 | } |
| 14754 | return n |
| 14755 | } |
| 14756 | |
| 14757 | func (m *AuthEnableRequest) Size() (n int) { |
| 14758 | if m == nil { |
| 14759 | return 0 |
| 14760 | } |
| 14761 | var l int |
| 14762 | _ = l |
| 14763 | if m.XXX_unrecognized != nil { |
| 14764 | n += len(m.XXX_unrecognized) |
| 14765 | } |
| 14766 | return n |
| 14767 | } |
| 14768 | |
| 14769 | func (m *AuthDisableRequest) Size() (n int) { |
| 14770 | if m == nil { |
| 14771 | return 0 |
| 14772 | } |
| 14773 | var l int |
| 14774 | _ = l |
| 14775 | if m.XXX_unrecognized != nil { |
| 14776 | n += len(m.XXX_unrecognized) |
| 14777 | } |
| 14778 | return n |
| 14779 | } |
| 14780 | |
| 14781 | func (m *AuthStatusRequest) Size() (n int) { |
| 14782 | if m == nil { |
| 14783 | return 0 |
| 14784 | } |
| 14785 | var l int |
| 14786 | _ = l |
| 14787 | if m.XXX_unrecognized != nil { |
| 14788 | n += len(m.XXX_unrecognized) |
| 14789 | } |
| 14790 | return n |
| 14791 | } |
| 14792 | |
| 14793 | func (m *AuthenticateRequest) Size() (n int) { |
| 14794 | if m == nil { |
| 14795 | return 0 |
| 14796 | } |
| 14797 | var l int |
| 14798 | _ = l |
| 14799 | l = len(m.Name) |
| 14800 | if l > 0 { |
| 14801 | n += 1 + l + sovRpc(uint64(l)) |
| 14802 | } |
| 14803 | l = len(m.Password) |
| 14804 | if l > 0 { |
| 14805 | n += 1 + l + sovRpc(uint64(l)) |
| 14806 | } |
| 14807 | if m.XXX_unrecognized != nil { |
| 14808 | n += len(m.XXX_unrecognized) |
| 14809 | } |
| 14810 | return n |
| 14811 | } |
| 14812 | |
| 14813 | func (m *AuthUserAddRequest) Size() (n int) { |
| 14814 | if m == nil { |
| 14815 | return 0 |
| 14816 | } |
| 14817 | var l int |
| 14818 | _ = l |
| 14819 | l = len(m.Name) |
| 14820 | if l > 0 { |
| 14821 | n += 1 + l + sovRpc(uint64(l)) |
| 14822 | } |
| 14823 | l = len(m.Password) |
| 14824 | if l > 0 { |
| 14825 | n += 1 + l + sovRpc(uint64(l)) |
| 14826 | } |
| 14827 | if m.Options != nil { |
| 14828 | l = m.Options.Size() |
| 14829 | n += 1 + l + sovRpc(uint64(l)) |
| 14830 | } |
| 14831 | l = len(m.HashedPassword) |
| 14832 | if l > 0 { |
| 14833 | n += 1 + l + sovRpc(uint64(l)) |
| 14834 | } |
| 14835 | if m.XXX_unrecognized != nil { |
| 14836 | n += len(m.XXX_unrecognized) |
| 14837 | } |
| 14838 | return n |
| 14839 | } |
| 14840 | |
| 14841 | func (m *AuthUserGetRequest) Size() (n int) { |
| 14842 | if m == nil { |
| 14843 | return 0 |
| 14844 | } |
| 14845 | var l int |
| 14846 | _ = l |
| 14847 | l = len(m.Name) |
| 14848 | if l > 0 { |
| 14849 | n += 1 + l + sovRpc(uint64(l)) |
| 14850 | } |
| 14851 | if m.XXX_unrecognized != nil { |
| 14852 | n += len(m.XXX_unrecognized) |
| 14853 | } |
| 14854 | return n |
| 14855 | } |
| 14856 | |
| 14857 | func (m *AuthUserDeleteRequest) Size() (n int) { |
| 14858 | if m == nil { |
| 14859 | return 0 |
| 14860 | } |
| 14861 | var l int |
| 14862 | _ = l |
| 14863 | l = len(m.Name) |
| 14864 | if l > 0 { |
| 14865 | n += 1 + l + sovRpc(uint64(l)) |
| 14866 | } |
| 14867 | if m.XXX_unrecognized != nil { |
| 14868 | n += len(m.XXX_unrecognized) |
| 14869 | } |
| 14870 | return n |
| 14871 | } |
| 14872 | |
| 14873 | func (m *AuthUserChangePasswordRequest) Size() (n int) { |
| 14874 | if m == nil { |
| 14875 | return 0 |
| 14876 | } |
| 14877 | var l int |
| 14878 | _ = l |
| 14879 | l = len(m.Name) |
| 14880 | if l > 0 { |
| 14881 | n += 1 + l + sovRpc(uint64(l)) |
| 14882 | } |
| 14883 | l = len(m.Password) |
| 14884 | if l > 0 { |
| 14885 | n += 1 + l + sovRpc(uint64(l)) |
| 14886 | } |
| 14887 | l = len(m.HashedPassword) |
| 14888 | if l > 0 { |
| 14889 | n += 1 + l + sovRpc(uint64(l)) |
| 14890 | } |
| 14891 | if m.XXX_unrecognized != nil { |
| 14892 | n += len(m.XXX_unrecognized) |
| 14893 | } |
| 14894 | return n |
| 14895 | } |
| 14896 | |
| 14897 | func (m *AuthUserGrantRoleRequest) Size() (n int) { |
| 14898 | if m == nil { |
| 14899 | return 0 |
| 14900 | } |
| 14901 | var l int |
| 14902 | _ = l |
| 14903 | l = len(m.User) |
| 14904 | if l > 0 { |
| 14905 | n += 1 + l + sovRpc(uint64(l)) |
| 14906 | } |
| 14907 | l = len(m.Role) |
| 14908 | if l > 0 { |
| 14909 | n += 1 + l + sovRpc(uint64(l)) |
| 14910 | } |
| 14911 | if m.XXX_unrecognized != nil { |
| 14912 | n += len(m.XXX_unrecognized) |
| 14913 | } |
| 14914 | return n |
| 14915 | } |
| 14916 | |
| 14917 | func (m *AuthUserRevokeRoleRequest) Size() (n int) { |
| 14918 | if m == nil { |
| 14919 | return 0 |
| 14920 | } |
| 14921 | var l int |
| 14922 | _ = l |
| 14923 | l = len(m.Name) |
| 14924 | if l > 0 { |
| 14925 | n += 1 + l + sovRpc(uint64(l)) |
| 14926 | } |
| 14927 | l = len(m.Role) |
| 14928 | if l > 0 { |
| 14929 | n += 1 + l + sovRpc(uint64(l)) |
| 14930 | } |
| 14931 | if m.XXX_unrecognized != nil { |
| 14932 | n += len(m.XXX_unrecognized) |
| 14933 | } |
| 14934 | return n |
| 14935 | } |
| 14936 | |
| 14937 | func (m *AuthRoleAddRequest) Size() (n int) { |
| 14938 | if m == nil { |
| 14939 | return 0 |
| 14940 | } |
| 14941 | var l int |
| 14942 | _ = l |
| 14943 | l = len(m.Name) |
| 14944 | if l > 0 { |
| 14945 | n += 1 + l + sovRpc(uint64(l)) |
| 14946 | } |
| 14947 | if m.XXX_unrecognized != nil { |
| 14948 | n += len(m.XXX_unrecognized) |
| 14949 | } |
| 14950 | return n |
| 14951 | } |
| 14952 | |
| 14953 | func (m *AuthRoleGetRequest) Size() (n int) { |
| 14954 | if m == nil { |
| 14955 | return 0 |
| 14956 | } |
| 14957 | var l int |
| 14958 | _ = l |
| 14959 | l = len(m.Role) |
| 14960 | if l > 0 { |
| 14961 | n += 1 + l + sovRpc(uint64(l)) |
| 14962 | } |
| 14963 | if m.XXX_unrecognized != nil { |
| 14964 | n += len(m.XXX_unrecognized) |
| 14965 | } |
| 14966 | return n |
| 14967 | } |
| 14968 | |
| 14969 | func (m *AuthUserListRequest) Size() (n int) { |
| 14970 | if m == nil { |
| 14971 | return 0 |
| 14972 | } |
| 14973 | var l int |
| 14974 | _ = l |
| 14975 | if m.XXX_unrecognized != nil { |
| 14976 | n += len(m.XXX_unrecognized) |
| 14977 | } |
| 14978 | return n |
| 14979 | } |
| 14980 | |
| 14981 | func (m *AuthRoleListRequest) Size() (n int) { |
| 14982 | if m == nil { |
| 14983 | return 0 |
| 14984 | } |
| 14985 | var l int |
| 14986 | _ = l |
| 14987 | if m.XXX_unrecognized != nil { |
| 14988 | n += len(m.XXX_unrecognized) |
| 14989 | } |
| 14990 | return n |
| 14991 | } |
| 14992 | |
| 14993 | func (m *AuthRoleDeleteRequest) Size() (n int) { |
| 14994 | if m == nil { |
| 14995 | return 0 |
| 14996 | } |
| 14997 | var l int |
| 14998 | _ = l |
| 14999 | l = len(m.Role) |
| 15000 | if l > 0 { |
| 15001 | n += 1 + l + sovRpc(uint64(l)) |
| 15002 | } |
| 15003 | if m.XXX_unrecognized != nil { |
| 15004 | n += len(m.XXX_unrecognized) |
| 15005 | } |
| 15006 | return n |
| 15007 | } |
| 15008 | |
| 15009 | func (m *AuthRoleGrantPermissionRequest) Size() (n int) { |
| 15010 | if m == nil { |
| 15011 | return 0 |
| 15012 | } |
| 15013 | var l int |
| 15014 | _ = l |
| 15015 | l = len(m.Name) |
| 15016 | if l > 0 { |
| 15017 | n += 1 + l + sovRpc(uint64(l)) |
| 15018 | } |
| 15019 | if m.Perm != nil { |
| 15020 | l = m.Perm.Size() |
| 15021 | n += 1 + l + sovRpc(uint64(l)) |
| 15022 | } |
| 15023 | if m.XXX_unrecognized != nil { |
| 15024 | n += len(m.XXX_unrecognized) |
| 15025 | } |
| 15026 | return n |
| 15027 | } |
| 15028 | |
| 15029 | func (m *AuthRoleRevokePermissionRequest) Size() (n int) { |
| 15030 | if m == nil { |
| 15031 | return 0 |
| 15032 | } |
| 15033 | var l int |
| 15034 | _ = l |
| 15035 | l = len(m.Role) |
| 15036 | if l > 0 { |
| 15037 | n += 1 + l + sovRpc(uint64(l)) |
| 15038 | } |
| 15039 | l = len(m.Key) |
| 15040 | if l > 0 { |
| 15041 | n += 1 + l + sovRpc(uint64(l)) |
| 15042 | } |
| 15043 | l = len(m.RangeEnd) |
| 15044 | if l > 0 { |
| 15045 | n += 1 + l + sovRpc(uint64(l)) |
| 15046 | } |
| 15047 | if m.XXX_unrecognized != nil { |
| 15048 | n += len(m.XXX_unrecognized) |
| 15049 | } |
| 15050 | return n |
| 15051 | } |
| 15052 | |
| 15053 | func (m *AuthEnableResponse) Size() (n int) { |
| 15054 | if m == nil { |
| 15055 | return 0 |
| 15056 | } |
| 15057 | var l int |
| 15058 | _ = l |
| 15059 | if m.Header != nil { |
| 15060 | l = m.Header.Size() |
| 15061 | n += 1 + l + sovRpc(uint64(l)) |
| 15062 | } |
| 15063 | if m.XXX_unrecognized != nil { |
| 15064 | n += len(m.XXX_unrecognized) |
| 15065 | } |
| 15066 | return n |
| 15067 | } |
| 15068 | |
| 15069 | func (m *AuthDisableResponse) Size() (n int) { |
| 15070 | if m == nil { |
| 15071 | return 0 |
| 15072 | } |
| 15073 | var l int |
| 15074 | _ = l |
| 15075 | if m.Header != nil { |
| 15076 | l = m.Header.Size() |
| 15077 | n += 1 + l + sovRpc(uint64(l)) |
| 15078 | } |
| 15079 | if m.XXX_unrecognized != nil { |
| 15080 | n += len(m.XXX_unrecognized) |
| 15081 | } |
| 15082 | return n |
| 15083 | } |
| 15084 | |
| 15085 | func (m *AuthStatusResponse) Size() (n int) { |
| 15086 | if m == nil { |
| 15087 | return 0 |
| 15088 | } |
| 15089 | var l int |
| 15090 | _ = l |
| 15091 | if m.Header != nil { |
| 15092 | l = m.Header.Size() |
| 15093 | n += 1 + l + sovRpc(uint64(l)) |
| 15094 | } |
| 15095 | if m.Enabled { |
| 15096 | n += 2 |
| 15097 | } |
| 15098 | if m.AuthRevision != 0 { |
| 15099 | n += 1 + sovRpc(uint64(m.AuthRevision)) |
| 15100 | } |
| 15101 | if m.XXX_unrecognized != nil { |
| 15102 | n += len(m.XXX_unrecognized) |
| 15103 | } |
| 15104 | return n |
| 15105 | } |
| 15106 | |
| 15107 | func (m *AuthenticateResponse) Size() (n int) { |
| 15108 | if m == nil { |
| 15109 | return 0 |
| 15110 | } |
| 15111 | var l int |
| 15112 | _ = l |
| 15113 | if m.Header != nil { |
| 15114 | l = m.Header.Size() |
| 15115 | n += 1 + l + sovRpc(uint64(l)) |
| 15116 | } |
| 15117 | l = len(m.Token) |
| 15118 | if l > 0 { |
| 15119 | n += 1 + l + sovRpc(uint64(l)) |
| 15120 | } |
| 15121 | if m.XXX_unrecognized != nil { |
| 15122 | n += len(m.XXX_unrecognized) |
| 15123 | } |
| 15124 | return n |
| 15125 | } |
| 15126 | |
| 15127 | func (m *AuthUserAddResponse) Size() (n int) { |
| 15128 | if m == nil { |
| 15129 | return 0 |
| 15130 | } |
| 15131 | var l int |
| 15132 | _ = l |
| 15133 | if m.Header != nil { |
| 15134 | l = m.Header.Size() |
| 15135 | n += 1 + l + sovRpc(uint64(l)) |
| 15136 | } |
| 15137 | if m.XXX_unrecognized != nil { |
| 15138 | n += len(m.XXX_unrecognized) |
| 15139 | } |
| 15140 | return n |
| 15141 | } |
| 15142 | |
| 15143 | func (m *AuthUserGetResponse) Size() (n int) { |
| 15144 | if m == nil { |
| 15145 | return 0 |
| 15146 | } |
| 15147 | var l int |
| 15148 | _ = l |
| 15149 | if m.Header != nil { |
| 15150 | l = m.Header.Size() |
| 15151 | n += 1 + l + sovRpc(uint64(l)) |
| 15152 | } |
| 15153 | if len(m.Roles) > 0 { |
| 15154 | for _, s := range m.Roles { |
| 15155 | l = len(s) |
| 15156 | n += 1 + l + sovRpc(uint64(l)) |
| 15157 | } |
| 15158 | } |
| 15159 | if m.XXX_unrecognized != nil { |
| 15160 | n += len(m.XXX_unrecognized) |
| 15161 | } |
| 15162 | return n |
| 15163 | } |
| 15164 | |
| 15165 | func (m *AuthUserDeleteResponse) Size() (n int) { |
| 15166 | if m == nil { |
| 15167 | return 0 |
| 15168 | } |
| 15169 | var l int |
| 15170 | _ = l |
| 15171 | if m.Header != nil { |
| 15172 | l = m.Header.Size() |
| 15173 | n += 1 + l + sovRpc(uint64(l)) |
| 15174 | } |
| 15175 | if m.XXX_unrecognized != nil { |
| 15176 | n += len(m.XXX_unrecognized) |
| 15177 | } |
| 15178 | return n |
| 15179 | } |
| 15180 | |
| 15181 | func (m *AuthUserChangePasswordResponse) Size() (n int) { |
| 15182 | if m == nil { |
| 15183 | return 0 |
| 15184 | } |
| 15185 | var l int |
| 15186 | _ = l |
| 15187 | if m.Header != nil { |
| 15188 | l = m.Header.Size() |
| 15189 | n += 1 + l + sovRpc(uint64(l)) |
| 15190 | } |
| 15191 | if m.XXX_unrecognized != nil { |
| 15192 | n += len(m.XXX_unrecognized) |
| 15193 | } |
| 15194 | return n |
| 15195 | } |
| 15196 | |
| 15197 | func (m *AuthUserGrantRoleResponse) Size() (n int) { |
| 15198 | if m == nil { |
| 15199 | return 0 |
| 15200 | } |
| 15201 | var l int |
| 15202 | _ = l |
| 15203 | if m.Header != nil { |
| 15204 | l = m.Header.Size() |
| 15205 | n += 1 + l + sovRpc(uint64(l)) |
| 15206 | } |
| 15207 | if m.XXX_unrecognized != nil { |
| 15208 | n += len(m.XXX_unrecognized) |
| 15209 | } |
| 15210 | return n |
| 15211 | } |
| 15212 | |
| 15213 | func (m *AuthUserRevokeRoleResponse) Size() (n int) { |
| 15214 | if m == nil { |
| 15215 | return 0 |
| 15216 | } |
| 15217 | var l int |
| 15218 | _ = l |
| 15219 | if m.Header != nil { |
| 15220 | l = m.Header.Size() |
| 15221 | n += 1 + l + sovRpc(uint64(l)) |
| 15222 | } |
| 15223 | if m.XXX_unrecognized != nil { |
| 15224 | n += len(m.XXX_unrecognized) |
| 15225 | } |
| 15226 | return n |
| 15227 | } |
| 15228 | |
| 15229 | func (m *AuthRoleAddResponse) Size() (n int) { |
| 15230 | if m == nil { |
| 15231 | return 0 |
| 15232 | } |
| 15233 | var l int |
| 15234 | _ = l |
| 15235 | if m.Header != nil { |
| 15236 | l = m.Header.Size() |
| 15237 | n += 1 + l + sovRpc(uint64(l)) |
| 15238 | } |
| 15239 | if m.XXX_unrecognized != nil { |
| 15240 | n += len(m.XXX_unrecognized) |
| 15241 | } |
| 15242 | return n |
| 15243 | } |
| 15244 | |
| 15245 | func (m *AuthRoleGetResponse) Size() (n int) { |
| 15246 | if m == nil { |
| 15247 | return 0 |
| 15248 | } |
| 15249 | var l int |
| 15250 | _ = l |
| 15251 | if m.Header != nil { |
| 15252 | l = m.Header.Size() |
| 15253 | n += 1 + l + sovRpc(uint64(l)) |
| 15254 | } |
| 15255 | if len(m.Perm) > 0 { |
| 15256 | for _, e := range m.Perm { |
| 15257 | l = e.Size() |
| 15258 | n += 1 + l + sovRpc(uint64(l)) |
| 15259 | } |
| 15260 | } |
| 15261 | if m.XXX_unrecognized != nil { |
| 15262 | n += len(m.XXX_unrecognized) |
| 15263 | } |
| 15264 | return n |
| 15265 | } |
| 15266 | |
| 15267 | func (m *AuthRoleListResponse) Size() (n int) { |
| 15268 | if m == nil { |
| 15269 | return 0 |
| 15270 | } |
| 15271 | var l int |
| 15272 | _ = l |
| 15273 | if m.Header != nil { |
| 15274 | l = m.Header.Size() |
| 15275 | n += 1 + l + sovRpc(uint64(l)) |
| 15276 | } |
| 15277 | if len(m.Roles) > 0 { |
| 15278 | for _, s := range m.Roles { |
| 15279 | l = len(s) |
| 15280 | n += 1 + l + sovRpc(uint64(l)) |
| 15281 | } |
| 15282 | } |
| 15283 | if m.XXX_unrecognized != nil { |
| 15284 | n += len(m.XXX_unrecognized) |
| 15285 | } |
| 15286 | return n |
| 15287 | } |
| 15288 | |
| 15289 | func (m *AuthUserListResponse) Size() (n int) { |
| 15290 | if m == nil { |
| 15291 | return 0 |
| 15292 | } |
| 15293 | var l int |
| 15294 | _ = l |
| 15295 | if m.Header != nil { |
| 15296 | l = m.Header.Size() |
| 15297 | n += 1 + l + sovRpc(uint64(l)) |
| 15298 | } |
| 15299 | if len(m.Users) > 0 { |
| 15300 | for _, s := range m.Users { |
| 15301 | l = len(s) |
| 15302 | n += 1 + l + sovRpc(uint64(l)) |
| 15303 | } |
| 15304 | } |
| 15305 | if m.XXX_unrecognized != nil { |
| 15306 | n += len(m.XXX_unrecognized) |
| 15307 | } |
| 15308 | return n |
| 15309 | } |
| 15310 | |
| 15311 | func (m *AuthRoleDeleteResponse) Size() (n int) { |
| 15312 | if m == nil { |
| 15313 | return 0 |
| 15314 | } |
| 15315 | var l int |
| 15316 | _ = l |
| 15317 | if m.Header != nil { |
| 15318 | l = m.Header.Size() |
| 15319 | n += 1 + l + sovRpc(uint64(l)) |
| 15320 | } |
| 15321 | if m.XXX_unrecognized != nil { |
| 15322 | n += len(m.XXX_unrecognized) |
| 15323 | } |
| 15324 | return n |
| 15325 | } |
| 15326 | |
| 15327 | func (m *AuthRoleGrantPermissionResponse) Size() (n int) { |
| 15328 | if m == nil { |
| 15329 | return 0 |
| 15330 | } |
| 15331 | var l int |
| 15332 | _ = l |
| 15333 | if m.Header != nil { |
| 15334 | l = m.Header.Size() |
| 15335 | n += 1 + l + sovRpc(uint64(l)) |
| 15336 | } |
| 15337 | if m.XXX_unrecognized != nil { |
| 15338 | n += len(m.XXX_unrecognized) |
| 15339 | } |
| 15340 | return n |
| 15341 | } |
| 15342 | |
| 15343 | func (m *AuthRoleRevokePermissionResponse) Size() (n int) { |
| 15344 | if m == nil { |
| 15345 | return 0 |
| 15346 | } |
| 15347 | var l int |
| 15348 | _ = l |
| 15349 | if m.Header != nil { |
| 15350 | l = m.Header.Size() |
| 15351 | n += 1 + l + sovRpc(uint64(l)) |
| 15352 | } |
| 15353 | if m.XXX_unrecognized != nil { |
| 15354 | n += len(m.XXX_unrecognized) |
| 15355 | } |
| 15356 | return n |
| 15357 | } |
| 15358 | |
| 15359 | func sovRpc(x uint64) (n int) { |
| 15360 | return (math_bits.Len64(x|1) + 6) / 7 |
| 15361 | } |
| 15362 | func sozRpc(x uint64) (n int) { |
| 15363 | return sovRpc(uint64((x << 1) ^ uint64((int64(x) >> 63)))) |
| 15364 | } |
| 15365 | func (m *ResponseHeader) Unmarshal(dAtA []byte) error { |
| 15366 | l := len(dAtA) |
| 15367 | iNdEx := 0 |
| 15368 | for iNdEx < l { |
| 15369 | preIndex := iNdEx |
| 15370 | var wire uint64 |
| 15371 | for shift := uint(0); ; shift += 7 { |
| 15372 | if shift >= 64 { |
| 15373 | return ErrIntOverflowRpc |
| 15374 | } |
| 15375 | if iNdEx >= l { |
| 15376 | return io.ErrUnexpectedEOF |
| 15377 | } |
| 15378 | b := dAtA[iNdEx] |
| 15379 | iNdEx++ |
| 15380 | wire |= uint64(b&0x7F) << shift |
| 15381 | if b < 0x80 { |
| 15382 | break |
| 15383 | } |
| 15384 | } |
| 15385 | fieldNum := int32(wire >> 3) |
| 15386 | wireType := int(wire & 0x7) |
| 15387 | if wireType == 4 { |
| 15388 | return fmt.Errorf("proto: ResponseHeader: wiretype end group for non-group") |
| 15389 | } |
| 15390 | if fieldNum <= 0 { |
| 15391 | return fmt.Errorf("proto: ResponseHeader: illegal tag %d (wire type %d)", fieldNum, wire) |
| 15392 | } |
| 15393 | switch fieldNum { |
| 15394 | case 1: |
| 15395 | if wireType != 0 { |
| 15396 | return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) |
| 15397 | } |
| 15398 | m.ClusterId = 0 |
| 15399 | for shift := uint(0); ; shift += 7 { |
| 15400 | if shift >= 64 { |
| 15401 | return ErrIntOverflowRpc |
| 15402 | } |
| 15403 | if iNdEx >= l { |
| 15404 | return io.ErrUnexpectedEOF |
| 15405 | } |
| 15406 | b := dAtA[iNdEx] |
| 15407 | iNdEx++ |
| 15408 | m.ClusterId |= uint64(b&0x7F) << shift |
| 15409 | if b < 0x80 { |
| 15410 | break |
| 15411 | } |
| 15412 | } |
| 15413 | case 2: |
| 15414 | if wireType != 0 { |
| 15415 | return fmt.Errorf("proto: wrong wireType = %d for field MemberId", wireType) |
| 15416 | } |
| 15417 | m.MemberId = 0 |
| 15418 | for shift := uint(0); ; shift += 7 { |
| 15419 | if shift >= 64 { |
| 15420 | return ErrIntOverflowRpc |
| 15421 | } |
| 15422 | if iNdEx >= l { |
| 15423 | return io.ErrUnexpectedEOF |
| 15424 | } |
| 15425 | b := dAtA[iNdEx] |
| 15426 | iNdEx++ |
| 15427 | m.MemberId |= uint64(b&0x7F) << shift |
| 15428 | if b < 0x80 { |
| 15429 | break |
| 15430 | } |
| 15431 | } |
| 15432 | case 3: |
| 15433 | if wireType != 0 { |
| 15434 | return fmt.Errorf("proto: wrong wireType = %d for field Revision", wireType) |
| 15435 | } |
| 15436 | m.Revision = 0 |
| 15437 | for shift := uint(0); ; shift += 7 { |
| 15438 | if shift >= 64 { |
| 15439 | return ErrIntOverflowRpc |
| 15440 | } |
| 15441 | if iNdEx >= l { |
| 15442 | return io.ErrUnexpectedEOF |
| 15443 | } |
| 15444 | b := dAtA[iNdEx] |
| 15445 | iNdEx++ |
| 15446 | m.Revision |= int64(b&0x7F) << shift |
| 15447 | if b < 0x80 { |
| 15448 | break |
| 15449 | } |
| 15450 | } |
| 15451 | case 4: |
| 15452 | if wireType != 0 { |
| 15453 | return fmt.Errorf("proto: wrong wireType = %d for field RaftTerm", wireType) |
| 15454 | } |
| 15455 | m.RaftTerm = 0 |
| 15456 | for shift := uint(0); ; shift += 7 { |
| 15457 | if shift >= 64 { |
| 15458 | return ErrIntOverflowRpc |
| 15459 | } |
| 15460 | if iNdEx >= l { |
| 15461 | return io.ErrUnexpectedEOF |
| 15462 | } |
| 15463 | b := dAtA[iNdEx] |
| 15464 | iNdEx++ |
| 15465 | m.RaftTerm |= uint64(b&0x7F) << shift |
| 15466 | if b < 0x80 { |
| 15467 | break |
| 15468 | } |
| 15469 | } |
| 15470 | default: |
| 15471 | iNdEx = preIndex |
| 15472 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 15473 | if err != nil { |
| 15474 | return err |
| 15475 | } |
| 15476 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 15477 | return ErrInvalidLengthRpc |
| 15478 | } |
| 15479 | if (iNdEx + skippy) > l { |
| 15480 | return io.ErrUnexpectedEOF |
| 15481 | } |
| 15482 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 15483 | iNdEx += skippy |
| 15484 | } |
| 15485 | } |
| 15486 | |
| 15487 | if iNdEx > l { |
| 15488 | return io.ErrUnexpectedEOF |
| 15489 | } |
| 15490 | return nil |
| 15491 | } |
| 15492 | func (m *RangeRequest) Unmarshal(dAtA []byte) error { |
| 15493 | l := len(dAtA) |
| 15494 | iNdEx := 0 |
| 15495 | for iNdEx < l { |
| 15496 | preIndex := iNdEx |
| 15497 | var wire uint64 |
| 15498 | for shift := uint(0); ; shift += 7 { |
| 15499 | if shift >= 64 { |
| 15500 | return ErrIntOverflowRpc |
| 15501 | } |
| 15502 | if iNdEx >= l { |
| 15503 | return io.ErrUnexpectedEOF |
| 15504 | } |
| 15505 | b := dAtA[iNdEx] |
| 15506 | iNdEx++ |
| 15507 | wire |= uint64(b&0x7F) << shift |
| 15508 | if b < 0x80 { |
| 15509 | break |
| 15510 | } |
| 15511 | } |
| 15512 | fieldNum := int32(wire >> 3) |
| 15513 | wireType := int(wire & 0x7) |
| 15514 | if wireType == 4 { |
| 15515 | return fmt.Errorf("proto: RangeRequest: wiretype end group for non-group") |
| 15516 | } |
| 15517 | if fieldNum <= 0 { |
| 15518 | return fmt.Errorf("proto: RangeRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 15519 | } |
| 15520 | switch fieldNum { |
| 15521 | case 1: |
| 15522 | if wireType != 2 { |
| 15523 | return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) |
| 15524 | } |
| 15525 | var byteLen int |
| 15526 | for shift := uint(0); ; shift += 7 { |
| 15527 | if shift >= 64 { |
| 15528 | return ErrIntOverflowRpc |
| 15529 | } |
| 15530 | if iNdEx >= l { |
| 15531 | return io.ErrUnexpectedEOF |
| 15532 | } |
| 15533 | b := dAtA[iNdEx] |
| 15534 | iNdEx++ |
| 15535 | byteLen |= int(b&0x7F) << shift |
| 15536 | if b < 0x80 { |
| 15537 | break |
| 15538 | } |
| 15539 | } |
| 15540 | if byteLen < 0 { |
| 15541 | return ErrInvalidLengthRpc |
| 15542 | } |
| 15543 | postIndex := iNdEx + byteLen |
| 15544 | if postIndex < 0 { |
| 15545 | return ErrInvalidLengthRpc |
| 15546 | } |
| 15547 | if postIndex > l { |
| 15548 | return io.ErrUnexpectedEOF |
| 15549 | } |
| 15550 | m.Key = append(m.Key[:0], dAtA[iNdEx:postIndex]...) |
| 15551 | if m.Key == nil { |
| 15552 | m.Key = []byte{} |
| 15553 | } |
| 15554 | iNdEx = postIndex |
| 15555 | case 2: |
| 15556 | if wireType != 2 { |
| 15557 | return fmt.Errorf("proto: wrong wireType = %d for field RangeEnd", wireType) |
| 15558 | } |
| 15559 | var byteLen int |
| 15560 | for shift := uint(0); ; shift += 7 { |
| 15561 | if shift >= 64 { |
| 15562 | return ErrIntOverflowRpc |
| 15563 | } |
| 15564 | if iNdEx >= l { |
| 15565 | return io.ErrUnexpectedEOF |
| 15566 | } |
| 15567 | b := dAtA[iNdEx] |
| 15568 | iNdEx++ |
| 15569 | byteLen |= int(b&0x7F) << shift |
| 15570 | if b < 0x80 { |
| 15571 | break |
| 15572 | } |
| 15573 | } |
| 15574 | if byteLen < 0 { |
| 15575 | return ErrInvalidLengthRpc |
| 15576 | } |
| 15577 | postIndex := iNdEx + byteLen |
| 15578 | if postIndex < 0 { |
| 15579 | return ErrInvalidLengthRpc |
| 15580 | } |
| 15581 | if postIndex > l { |
| 15582 | return io.ErrUnexpectedEOF |
| 15583 | } |
| 15584 | m.RangeEnd = append(m.RangeEnd[:0], dAtA[iNdEx:postIndex]...) |
| 15585 | if m.RangeEnd == nil { |
| 15586 | m.RangeEnd = []byte{} |
| 15587 | } |
| 15588 | iNdEx = postIndex |
| 15589 | case 3: |
| 15590 | if wireType != 0 { |
| 15591 | return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType) |
| 15592 | } |
| 15593 | m.Limit = 0 |
| 15594 | for shift := uint(0); ; shift += 7 { |
| 15595 | if shift >= 64 { |
| 15596 | return ErrIntOverflowRpc |
| 15597 | } |
| 15598 | if iNdEx >= l { |
| 15599 | return io.ErrUnexpectedEOF |
| 15600 | } |
| 15601 | b := dAtA[iNdEx] |
| 15602 | iNdEx++ |
| 15603 | m.Limit |= int64(b&0x7F) << shift |
| 15604 | if b < 0x80 { |
| 15605 | break |
| 15606 | } |
| 15607 | } |
| 15608 | case 4: |
| 15609 | if wireType != 0 { |
| 15610 | return fmt.Errorf("proto: wrong wireType = %d for field Revision", wireType) |
| 15611 | } |
| 15612 | m.Revision = 0 |
| 15613 | for shift := uint(0); ; shift += 7 { |
| 15614 | if shift >= 64 { |
| 15615 | return ErrIntOverflowRpc |
| 15616 | } |
| 15617 | if iNdEx >= l { |
| 15618 | return io.ErrUnexpectedEOF |
| 15619 | } |
| 15620 | b := dAtA[iNdEx] |
| 15621 | iNdEx++ |
| 15622 | m.Revision |= int64(b&0x7F) << shift |
| 15623 | if b < 0x80 { |
| 15624 | break |
| 15625 | } |
| 15626 | } |
| 15627 | case 5: |
| 15628 | if wireType != 0 { |
| 15629 | return fmt.Errorf("proto: wrong wireType = %d for field SortOrder", wireType) |
| 15630 | } |
| 15631 | m.SortOrder = 0 |
| 15632 | for shift := uint(0); ; shift += 7 { |
| 15633 | if shift >= 64 { |
| 15634 | return ErrIntOverflowRpc |
| 15635 | } |
| 15636 | if iNdEx >= l { |
| 15637 | return io.ErrUnexpectedEOF |
| 15638 | } |
| 15639 | b := dAtA[iNdEx] |
| 15640 | iNdEx++ |
| 15641 | m.SortOrder |= RangeRequest_SortOrder(b&0x7F) << shift |
| 15642 | if b < 0x80 { |
| 15643 | break |
| 15644 | } |
| 15645 | } |
| 15646 | case 6: |
| 15647 | if wireType != 0 { |
| 15648 | return fmt.Errorf("proto: wrong wireType = %d for field SortTarget", wireType) |
| 15649 | } |
| 15650 | m.SortTarget = 0 |
| 15651 | for shift := uint(0); ; shift += 7 { |
| 15652 | if shift >= 64 { |
| 15653 | return ErrIntOverflowRpc |
| 15654 | } |
| 15655 | if iNdEx >= l { |
| 15656 | return io.ErrUnexpectedEOF |
| 15657 | } |
| 15658 | b := dAtA[iNdEx] |
| 15659 | iNdEx++ |
| 15660 | m.SortTarget |= RangeRequest_SortTarget(b&0x7F) << shift |
| 15661 | if b < 0x80 { |
| 15662 | break |
| 15663 | } |
| 15664 | } |
| 15665 | case 7: |
| 15666 | if wireType != 0 { |
| 15667 | return fmt.Errorf("proto: wrong wireType = %d for field Serializable", wireType) |
| 15668 | } |
| 15669 | var v int |
| 15670 | for shift := uint(0); ; shift += 7 { |
| 15671 | if shift >= 64 { |
| 15672 | return ErrIntOverflowRpc |
| 15673 | } |
| 15674 | if iNdEx >= l { |
| 15675 | return io.ErrUnexpectedEOF |
| 15676 | } |
| 15677 | b := dAtA[iNdEx] |
| 15678 | iNdEx++ |
| 15679 | v |= int(b&0x7F) << shift |
| 15680 | if b < 0x80 { |
| 15681 | break |
| 15682 | } |
| 15683 | } |
| 15684 | m.Serializable = bool(v != 0) |
| 15685 | case 8: |
| 15686 | if wireType != 0 { |
| 15687 | return fmt.Errorf("proto: wrong wireType = %d for field KeysOnly", wireType) |
| 15688 | } |
| 15689 | var v int |
| 15690 | for shift := uint(0); ; shift += 7 { |
| 15691 | if shift >= 64 { |
| 15692 | return ErrIntOverflowRpc |
| 15693 | } |
| 15694 | if iNdEx >= l { |
| 15695 | return io.ErrUnexpectedEOF |
| 15696 | } |
| 15697 | b := dAtA[iNdEx] |
| 15698 | iNdEx++ |
| 15699 | v |= int(b&0x7F) << shift |
| 15700 | if b < 0x80 { |
| 15701 | break |
| 15702 | } |
| 15703 | } |
| 15704 | m.KeysOnly = bool(v != 0) |
| 15705 | case 9: |
| 15706 | if wireType != 0 { |
| 15707 | return fmt.Errorf("proto: wrong wireType = %d for field CountOnly", wireType) |
| 15708 | } |
| 15709 | var v int |
| 15710 | for shift := uint(0); ; shift += 7 { |
| 15711 | if shift >= 64 { |
| 15712 | return ErrIntOverflowRpc |
| 15713 | } |
| 15714 | if iNdEx >= l { |
| 15715 | return io.ErrUnexpectedEOF |
| 15716 | } |
| 15717 | b := dAtA[iNdEx] |
| 15718 | iNdEx++ |
| 15719 | v |= int(b&0x7F) << shift |
| 15720 | if b < 0x80 { |
| 15721 | break |
| 15722 | } |
| 15723 | } |
| 15724 | m.CountOnly = bool(v != 0) |
| 15725 | case 10: |
| 15726 | if wireType != 0 { |
| 15727 | return fmt.Errorf("proto: wrong wireType = %d for field MinModRevision", wireType) |
| 15728 | } |
| 15729 | m.MinModRevision = 0 |
| 15730 | for shift := uint(0); ; shift += 7 { |
| 15731 | if shift >= 64 { |
| 15732 | return ErrIntOverflowRpc |
| 15733 | } |
| 15734 | if iNdEx >= l { |
| 15735 | return io.ErrUnexpectedEOF |
| 15736 | } |
| 15737 | b := dAtA[iNdEx] |
| 15738 | iNdEx++ |
| 15739 | m.MinModRevision |= int64(b&0x7F) << shift |
| 15740 | if b < 0x80 { |
| 15741 | break |
| 15742 | } |
| 15743 | } |
| 15744 | case 11: |
| 15745 | if wireType != 0 { |
| 15746 | return fmt.Errorf("proto: wrong wireType = %d for field MaxModRevision", wireType) |
| 15747 | } |
| 15748 | m.MaxModRevision = 0 |
| 15749 | for shift := uint(0); ; shift += 7 { |
| 15750 | if shift >= 64 { |
| 15751 | return ErrIntOverflowRpc |
| 15752 | } |
| 15753 | if iNdEx >= l { |
| 15754 | return io.ErrUnexpectedEOF |
| 15755 | } |
| 15756 | b := dAtA[iNdEx] |
| 15757 | iNdEx++ |
| 15758 | m.MaxModRevision |= int64(b&0x7F) << shift |
| 15759 | if b < 0x80 { |
| 15760 | break |
| 15761 | } |
| 15762 | } |
| 15763 | case 12: |
| 15764 | if wireType != 0 { |
| 15765 | return fmt.Errorf("proto: wrong wireType = %d for field MinCreateRevision", wireType) |
| 15766 | } |
| 15767 | m.MinCreateRevision = 0 |
| 15768 | for shift := uint(0); ; shift += 7 { |
| 15769 | if shift >= 64 { |
| 15770 | return ErrIntOverflowRpc |
| 15771 | } |
| 15772 | if iNdEx >= l { |
| 15773 | return io.ErrUnexpectedEOF |
| 15774 | } |
| 15775 | b := dAtA[iNdEx] |
| 15776 | iNdEx++ |
| 15777 | m.MinCreateRevision |= int64(b&0x7F) << shift |
| 15778 | if b < 0x80 { |
| 15779 | break |
| 15780 | } |
| 15781 | } |
| 15782 | case 13: |
| 15783 | if wireType != 0 { |
| 15784 | return fmt.Errorf("proto: wrong wireType = %d for field MaxCreateRevision", wireType) |
| 15785 | } |
| 15786 | m.MaxCreateRevision = 0 |
| 15787 | for shift := uint(0); ; shift += 7 { |
| 15788 | if shift >= 64 { |
| 15789 | return ErrIntOverflowRpc |
| 15790 | } |
| 15791 | if iNdEx >= l { |
| 15792 | return io.ErrUnexpectedEOF |
| 15793 | } |
| 15794 | b := dAtA[iNdEx] |
| 15795 | iNdEx++ |
| 15796 | m.MaxCreateRevision |= int64(b&0x7F) << shift |
| 15797 | if b < 0x80 { |
| 15798 | break |
| 15799 | } |
| 15800 | } |
| 15801 | default: |
| 15802 | iNdEx = preIndex |
| 15803 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 15804 | if err != nil { |
| 15805 | return err |
| 15806 | } |
| 15807 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 15808 | return ErrInvalidLengthRpc |
| 15809 | } |
| 15810 | if (iNdEx + skippy) > l { |
| 15811 | return io.ErrUnexpectedEOF |
| 15812 | } |
| 15813 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 15814 | iNdEx += skippy |
| 15815 | } |
| 15816 | } |
| 15817 | |
| 15818 | if iNdEx > l { |
| 15819 | return io.ErrUnexpectedEOF |
| 15820 | } |
| 15821 | return nil |
| 15822 | } |
| 15823 | func (m *RangeResponse) Unmarshal(dAtA []byte) error { |
| 15824 | l := len(dAtA) |
| 15825 | iNdEx := 0 |
| 15826 | for iNdEx < l { |
| 15827 | preIndex := iNdEx |
| 15828 | var wire uint64 |
| 15829 | for shift := uint(0); ; shift += 7 { |
| 15830 | if shift >= 64 { |
| 15831 | return ErrIntOverflowRpc |
| 15832 | } |
| 15833 | if iNdEx >= l { |
| 15834 | return io.ErrUnexpectedEOF |
| 15835 | } |
| 15836 | b := dAtA[iNdEx] |
| 15837 | iNdEx++ |
| 15838 | wire |= uint64(b&0x7F) << shift |
| 15839 | if b < 0x80 { |
| 15840 | break |
| 15841 | } |
| 15842 | } |
| 15843 | fieldNum := int32(wire >> 3) |
| 15844 | wireType := int(wire & 0x7) |
| 15845 | if wireType == 4 { |
| 15846 | return fmt.Errorf("proto: RangeResponse: wiretype end group for non-group") |
| 15847 | } |
| 15848 | if fieldNum <= 0 { |
| 15849 | return fmt.Errorf("proto: RangeResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 15850 | } |
| 15851 | switch fieldNum { |
| 15852 | case 1: |
| 15853 | if wireType != 2 { |
| 15854 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 15855 | } |
| 15856 | var msglen int |
| 15857 | for shift := uint(0); ; shift += 7 { |
| 15858 | if shift >= 64 { |
| 15859 | return ErrIntOverflowRpc |
| 15860 | } |
| 15861 | if iNdEx >= l { |
| 15862 | return io.ErrUnexpectedEOF |
| 15863 | } |
| 15864 | b := dAtA[iNdEx] |
| 15865 | iNdEx++ |
| 15866 | msglen |= int(b&0x7F) << shift |
| 15867 | if b < 0x80 { |
| 15868 | break |
| 15869 | } |
| 15870 | } |
| 15871 | if msglen < 0 { |
| 15872 | return ErrInvalidLengthRpc |
| 15873 | } |
| 15874 | postIndex := iNdEx + msglen |
| 15875 | if postIndex < 0 { |
| 15876 | return ErrInvalidLengthRpc |
| 15877 | } |
| 15878 | if postIndex > l { |
| 15879 | return io.ErrUnexpectedEOF |
| 15880 | } |
| 15881 | if m.Header == nil { |
| 15882 | m.Header = &ResponseHeader{} |
| 15883 | } |
| 15884 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 15885 | return err |
| 15886 | } |
| 15887 | iNdEx = postIndex |
| 15888 | case 2: |
| 15889 | if wireType != 2 { |
| 15890 | return fmt.Errorf("proto: wrong wireType = %d for field Kvs", wireType) |
| 15891 | } |
| 15892 | var msglen int |
| 15893 | for shift := uint(0); ; shift += 7 { |
| 15894 | if shift >= 64 { |
| 15895 | return ErrIntOverflowRpc |
| 15896 | } |
| 15897 | if iNdEx >= l { |
| 15898 | return io.ErrUnexpectedEOF |
| 15899 | } |
| 15900 | b := dAtA[iNdEx] |
| 15901 | iNdEx++ |
| 15902 | msglen |= int(b&0x7F) << shift |
| 15903 | if b < 0x80 { |
| 15904 | break |
| 15905 | } |
| 15906 | } |
| 15907 | if msglen < 0 { |
| 15908 | return ErrInvalidLengthRpc |
| 15909 | } |
| 15910 | postIndex := iNdEx + msglen |
| 15911 | if postIndex < 0 { |
| 15912 | return ErrInvalidLengthRpc |
| 15913 | } |
| 15914 | if postIndex > l { |
| 15915 | return io.ErrUnexpectedEOF |
| 15916 | } |
| 15917 | m.Kvs = append(m.Kvs, &mvccpb.KeyValue{}) |
| 15918 | if err := m.Kvs[len(m.Kvs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 15919 | return err |
| 15920 | } |
| 15921 | iNdEx = postIndex |
| 15922 | case 3: |
| 15923 | if wireType != 0 { |
| 15924 | return fmt.Errorf("proto: wrong wireType = %d for field More", wireType) |
| 15925 | } |
| 15926 | var v int |
| 15927 | for shift := uint(0); ; shift += 7 { |
| 15928 | if shift >= 64 { |
| 15929 | return ErrIntOverflowRpc |
| 15930 | } |
| 15931 | if iNdEx >= l { |
| 15932 | return io.ErrUnexpectedEOF |
| 15933 | } |
| 15934 | b := dAtA[iNdEx] |
| 15935 | iNdEx++ |
| 15936 | v |= int(b&0x7F) << shift |
| 15937 | if b < 0x80 { |
| 15938 | break |
| 15939 | } |
| 15940 | } |
| 15941 | m.More = bool(v != 0) |
| 15942 | case 4: |
| 15943 | if wireType != 0 { |
| 15944 | return fmt.Errorf("proto: wrong wireType = %d for field Count", wireType) |
| 15945 | } |
| 15946 | m.Count = 0 |
| 15947 | for shift := uint(0); ; shift += 7 { |
| 15948 | if shift >= 64 { |
| 15949 | return ErrIntOverflowRpc |
| 15950 | } |
| 15951 | if iNdEx >= l { |
| 15952 | return io.ErrUnexpectedEOF |
| 15953 | } |
| 15954 | b := dAtA[iNdEx] |
| 15955 | iNdEx++ |
| 15956 | m.Count |= int64(b&0x7F) << shift |
| 15957 | if b < 0x80 { |
| 15958 | break |
| 15959 | } |
| 15960 | } |
| 15961 | default: |
| 15962 | iNdEx = preIndex |
| 15963 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 15964 | if err != nil { |
| 15965 | return err |
| 15966 | } |
| 15967 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 15968 | return ErrInvalidLengthRpc |
| 15969 | } |
| 15970 | if (iNdEx + skippy) > l { |
| 15971 | return io.ErrUnexpectedEOF |
| 15972 | } |
| 15973 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 15974 | iNdEx += skippy |
| 15975 | } |
| 15976 | } |
| 15977 | |
| 15978 | if iNdEx > l { |
| 15979 | return io.ErrUnexpectedEOF |
| 15980 | } |
| 15981 | return nil |
| 15982 | } |
| 15983 | func (m *PutRequest) Unmarshal(dAtA []byte) error { |
| 15984 | l := len(dAtA) |
| 15985 | iNdEx := 0 |
| 15986 | for iNdEx < l { |
| 15987 | preIndex := iNdEx |
| 15988 | var wire uint64 |
| 15989 | for shift := uint(0); ; shift += 7 { |
| 15990 | if shift >= 64 { |
| 15991 | return ErrIntOverflowRpc |
| 15992 | } |
| 15993 | if iNdEx >= l { |
| 15994 | return io.ErrUnexpectedEOF |
| 15995 | } |
| 15996 | b := dAtA[iNdEx] |
| 15997 | iNdEx++ |
| 15998 | wire |= uint64(b&0x7F) << shift |
| 15999 | if b < 0x80 { |
| 16000 | break |
| 16001 | } |
| 16002 | } |
| 16003 | fieldNum := int32(wire >> 3) |
| 16004 | wireType := int(wire & 0x7) |
| 16005 | if wireType == 4 { |
| 16006 | return fmt.Errorf("proto: PutRequest: wiretype end group for non-group") |
| 16007 | } |
| 16008 | if fieldNum <= 0 { |
| 16009 | return fmt.Errorf("proto: PutRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 16010 | } |
| 16011 | switch fieldNum { |
| 16012 | case 1: |
| 16013 | if wireType != 2 { |
| 16014 | return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) |
| 16015 | } |
| 16016 | var byteLen int |
| 16017 | for shift := uint(0); ; shift += 7 { |
| 16018 | if shift >= 64 { |
| 16019 | return ErrIntOverflowRpc |
| 16020 | } |
| 16021 | if iNdEx >= l { |
| 16022 | return io.ErrUnexpectedEOF |
| 16023 | } |
| 16024 | b := dAtA[iNdEx] |
| 16025 | iNdEx++ |
| 16026 | byteLen |= int(b&0x7F) << shift |
| 16027 | if b < 0x80 { |
| 16028 | break |
| 16029 | } |
| 16030 | } |
| 16031 | if byteLen < 0 { |
| 16032 | return ErrInvalidLengthRpc |
| 16033 | } |
| 16034 | postIndex := iNdEx + byteLen |
| 16035 | if postIndex < 0 { |
| 16036 | return ErrInvalidLengthRpc |
| 16037 | } |
| 16038 | if postIndex > l { |
| 16039 | return io.ErrUnexpectedEOF |
| 16040 | } |
| 16041 | m.Key = append(m.Key[:0], dAtA[iNdEx:postIndex]...) |
| 16042 | if m.Key == nil { |
| 16043 | m.Key = []byte{} |
| 16044 | } |
| 16045 | iNdEx = postIndex |
| 16046 | case 2: |
| 16047 | if wireType != 2 { |
| 16048 | return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) |
| 16049 | } |
| 16050 | var byteLen int |
| 16051 | for shift := uint(0); ; shift += 7 { |
| 16052 | if shift >= 64 { |
| 16053 | return ErrIntOverflowRpc |
| 16054 | } |
| 16055 | if iNdEx >= l { |
| 16056 | return io.ErrUnexpectedEOF |
| 16057 | } |
| 16058 | b := dAtA[iNdEx] |
| 16059 | iNdEx++ |
| 16060 | byteLen |= int(b&0x7F) << shift |
| 16061 | if b < 0x80 { |
| 16062 | break |
| 16063 | } |
| 16064 | } |
| 16065 | if byteLen < 0 { |
| 16066 | return ErrInvalidLengthRpc |
| 16067 | } |
| 16068 | postIndex := iNdEx + byteLen |
| 16069 | if postIndex < 0 { |
| 16070 | return ErrInvalidLengthRpc |
| 16071 | } |
| 16072 | if postIndex > l { |
| 16073 | return io.ErrUnexpectedEOF |
| 16074 | } |
| 16075 | m.Value = append(m.Value[:0], dAtA[iNdEx:postIndex]...) |
| 16076 | if m.Value == nil { |
| 16077 | m.Value = []byte{} |
| 16078 | } |
| 16079 | iNdEx = postIndex |
| 16080 | case 3: |
| 16081 | if wireType != 0 { |
| 16082 | return fmt.Errorf("proto: wrong wireType = %d for field Lease", wireType) |
| 16083 | } |
| 16084 | m.Lease = 0 |
| 16085 | for shift := uint(0); ; shift += 7 { |
| 16086 | if shift >= 64 { |
| 16087 | return ErrIntOverflowRpc |
| 16088 | } |
| 16089 | if iNdEx >= l { |
| 16090 | return io.ErrUnexpectedEOF |
| 16091 | } |
| 16092 | b := dAtA[iNdEx] |
| 16093 | iNdEx++ |
| 16094 | m.Lease |= int64(b&0x7F) << shift |
| 16095 | if b < 0x80 { |
| 16096 | break |
| 16097 | } |
| 16098 | } |
| 16099 | case 4: |
| 16100 | if wireType != 0 { |
| 16101 | return fmt.Errorf("proto: wrong wireType = %d for field PrevKv", wireType) |
| 16102 | } |
| 16103 | var v int |
| 16104 | for shift := uint(0); ; shift += 7 { |
| 16105 | if shift >= 64 { |
| 16106 | return ErrIntOverflowRpc |
| 16107 | } |
| 16108 | if iNdEx >= l { |
| 16109 | return io.ErrUnexpectedEOF |
| 16110 | } |
| 16111 | b := dAtA[iNdEx] |
| 16112 | iNdEx++ |
| 16113 | v |= int(b&0x7F) << shift |
| 16114 | if b < 0x80 { |
| 16115 | break |
| 16116 | } |
| 16117 | } |
| 16118 | m.PrevKv = bool(v != 0) |
| 16119 | case 5: |
| 16120 | if wireType != 0 { |
| 16121 | return fmt.Errorf("proto: wrong wireType = %d for field IgnoreValue", wireType) |
| 16122 | } |
| 16123 | var v int |
| 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 | v |= int(b&0x7F) << shift |
| 16134 | if b < 0x80 { |
| 16135 | break |
| 16136 | } |
| 16137 | } |
| 16138 | m.IgnoreValue = bool(v != 0) |
| 16139 | case 6: |
| 16140 | if wireType != 0 { |
| 16141 | return fmt.Errorf("proto: wrong wireType = %d for field IgnoreLease", wireType) |
| 16142 | } |
| 16143 | var v int |
| 16144 | for shift := uint(0); ; shift += 7 { |
| 16145 | if shift >= 64 { |
| 16146 | return ErrIntOverflowRpc |
| 16147 | } |
| 16148 | if iNdEx >= l { |
| 16149 | return io.ErrUnexpectedEOF |
| 16150 | } |
| 16151 | b := dAtA[iNdEx] |
| 16152 | iNdEx++ |
| 16153 | v |= int(b&0x7F) << shift |
| 16154 | if b < 0x80 { |
| 16155 | break |
| 16156 | } |
| 16157 | } |
| 16158 | m.IgnoreLease = bool(v != 0) |
| 16159 | default: |
| 16160 | iNdEx = preIndex |
| 16161 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 16162 | if err != nil { |
| 16163 | return err |
| 16164 | } |
| 16165 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 16166 | return ErrInvalidLengthRpc |
| 16167 | } |
| 16168 | if (iNdEx + skippy) > l { |
| 16169 | return io.ErrUnexpectedEOF |
| 16170 | } |
| 16171 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 16172 | iNdEx += skippy |
| 16173 | } |
| 16174 | } |
| 16175 | |
| 16176 | if iNdEx > l { |
| 16177 | return io.ErrUnexpectedEOF |
| 16178 | } |
| 16179 | return nil |
| 16180 | } |
| 16181 | func (m *PutResponse) Unmarshal(dAtA []byte) error { |
| 16182 | l := len(dAtA) |
| 16183 | iNdEx := 0 |
| 16184 | for iNdEx < l { |
| 16185 | preIndex := iNdEx |
| 16186 | var wire uint64 |
| 16187 | for shift := uint(0); ; shift += 7 { |
| 16188 | if shift >= 64 { |
| 16189 | return ErrIntOverflowRpc |
| 16190 | } |
| 16191 | if iNdEx >= l { |
| 16192 | return io.ErrUnexpectedEOF |
| 16193 | } |
| 16194 | b := dAtA[iNdEx] |
| 16195 | iNdEx++ |
| 16196 | wire |= uint64(b&0x7F) << shift |
| 16197 | if b < 0x80 { |
| 16198 | break |
| 16199 | } |
| 16200 | } |
| 16201 | fieldNum := int32(wire >> 3) |
| 16202 | wireType := int(wire & 0x7) |
| 16203 | if wireType == 4 { |
| 16204 | return fmt.Errorf("proto: PutResponse: wiretype end group for non-group") |
| 16205 | } |
| 16206 | if fieldNum <= 0 { |
| 16207 | return fmt.Errorf("proto: PutResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 16208 | } |
| 16209 | switch fieldNum { |
| 16210 | case 1: |
| 16211 | if wireType != 2 { |
| 16212 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 16213 | } |
| 16214 | var msglen int |
| 16215 | for shift := uint(0); ; shift += 7 { |
| 16216 | if shift >= 64 { |
| 16217 | return ErrIntOverflowRpc |
| 16218 | } |
| 16219 | if iNdEx >= l { |
| 16220 | return io.ErrUnexpectedEOF |
| 16221 | } |
| 16222 | b := dAtA[iNdEx] |
| 16223 | iNdEx++ |
| 16224 | msglen |= int(b&0x7F) << shift |
| 16225 | if b < 0x80 { |
| 16226 | break |
| 16227 | } |
| 16228 | } |
| 16229 | if msglen < 0 { |
| 16230 | return ErrInvalidLengthRpc |
| 16231 | } |
| 16232 | postIndex := iNdEx + msglen |
| 16233 | if postIndex < 0 { |
| 16234 | return ErrInvalidLengthRpc |
| 16235 | } |
| 16236 | if postIndex > l { |
| 16237 | return io.ErrUnexpectedEOF |
| 16238 | } |
| 16239 | if m.Header == nil { |
| 16240 | m.Header = &ResponseHeader{} |
| 16241 | } |
| 16242 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 16243 | return err |
| 16244 | } |
| 16245 | iNdEx = postIndex |
| 16246 | case 2: |
| 16247 | if wireType != 2 { |
| 16248 | return fmt.Errorf("proto: wrong wireType = %d for field PrevKv", wireType) |
| 16249 | } |
| 16250 | var msglen int |
| 16251 | for shift := uint(0); ; shift += 7 { |
| 16252 | if shift >= 64 { |
| 16253 | return ErrIntOverflowRpc |
| 16254 | } |
| 16255 | if iNdEx >= l { |
| 16256 | return io.ErrUnexpectedEOF |
| 16257 | } |
| 16258 | b := dAtA[iNdEx] |
| 16259 | iNdEx++ |
| 16260 | msglen |= int(b&0x7F) << shift |
| 16261 | if b < 0x80 { |
| 16262 | break |
| 16263 | } |
| 16264 | } |
| 16265 | if msglen < 0 { |
| 16266 | return ErrInvalidLengthRpc |
| 16267 | } |
| 16268 | postIndex := iNdEx + msglen |
| 16269 | if postIndex < 0 { |
| 16270 | return ErrInvalidLengthRpc |
| 16271 | } |
| 16272 | if postIndex > l { |
| 16273 | return io.ErrUnexpectedEOF |
| 16274 | } |
| 16275 | if m.PrevKv == nil { |
| 16276 | m.PrevKv = &mvccpb.KeyValue{} |
| 16277 | } |
| 16278 | if err := m.PrevKv.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 16279 | return err |
| 16280 | } |
| 16281 | iNdEx = postIndex |
| 16282 | default: |
| 16283 | iNdEx = preIndex |
| 16284 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 16285 | if err != nil { |
| 16286 | return err |
| 16287 | } |
| 16288 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 16289 | return ErrInvalidLengthRpc |
| 16290 | } |
| 16291 | if (iNdEx + skippy) > l { |
| 16292 | return io.ErrUnexpectedEOF |
| 16293 | } |
| 16294 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 16295 | iNdEx += skippy |
| 16296 | } |
| 16297 | } |
| 16298 | |
| 16299 | if iNdEx > l { |
| 16300 | return io.ErrUnexpectedEOF |
| 16301 | } |
| 16302 | return nil |
| 16303 | } |
| 16304 | func (m *DeleteRangeRequest) Unmarshal(dAtA []byte) error { |
| 16305 | l := len(dAtA) |
| 16306 | iNdEx := 0 |
| 16307 | for iNdEx < l { |
| 16308 | preIndex := iNdEx |
| 16309 | var wire uint64 |
| 16310 | for shift := uint(0); ; shift += 7 { |
| 16311 | if shift >= 64 { |
| 16312 | return ErrIntOverflowRpc |
| 16313 | } |
| 16314 | if iNdEx >= l { |
| 16315 | return io.ErrUnexpectedEOF |
| 16316 | } |
| 16317 | b := dAtA[iNdEx] |
| 16318 | iNdEx++ |
| 16319 | wire |= uint64(b&0x7F) << shift |
| 16320 | if b < 0x80 { |
| 16321 | break |
| 16322 | } |
| 16323 | } |
| 16324 | fieldNum := int32(wire >> 3) |
| 16325 | wireType := int(wire & 0x7) |
| 16326 | if wireType == 4 { |
| 16327 | return fmt.Errorf("proto: DeleteRangeRequest: wiretype end group for non-group") |
| 16328 | } |
| 16329 | if fieldNum <= 0 { |
| 16330 | return fmt.Errorf("proto: DeleteRangeRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 16331 | } |
| 16332 | switch fieldNum { |
| 16333 | case 1: |
| 16334 | if wireType != 2 { |
| 16335 | return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) |
| 16336 | } |
| 16337 | var byteLen int |
| 16338 | for shift := uint(0); ; shift += 7 { |
| 16339 | if shift >= 64 { |
| 16340 | return ErrIntOverflowRpc |
| 16341 | } |
| 16342 | if iNdEx >= l { |
| 16343 | return io.ErrUnexpectedEOF |
| 16344 | } |
| 16345 | b := dAtA[iNdEx] |
| 16346 | iNdEx++ |
| 16347 | byteLen |= int(b&0x7F) << shift |
| 16348 | if b < 0x80 { |
| 16349 | break |
| 16350 | } |
| 16351 | } |
| 16352 | if byteLen < 0 { |
| 16353 | return ErrInvalidLengthRpc |
| 16354 | } |
| 16355 | postIndex := iNdEx + byteLen |
| 16356 | if postIndex < 0 { |
| 16357 | return ErrInvalidLengthRpc |
| 16358 | } |
| 16359 | if postIndex > l { |
| 16360 | return io.ErrUnexpectedEOF |
| 16361 | } |
| 16362 | m.Key = append(m.Key[:0], dAtA[iNdEx:postIndex]...) |
| 16363 | if m.Key == nil { |
| 16364 | m.Key = []byte{} |
| 16365 | } |
| 16366 | iNdEx = postIndex |
| 16367 | case 2: |
| 16368 | if wireType != 2 { |
| 16369 | return fmt.Errorf("proto: wrong wireType = %d for field RangeEnd", wireType) |
| 16370 | } |
| 16371 | var byteLen int |
| 16372 | for shift := uint(0); ; shift += 7 { |
| 16373 | if shift >= 64 { |
| 16374 | return ErrIntOverflowRpc |
| 16375 | } |
| 16376 | if iNdEx >= l { |
| 16377 | return io.ErrUnexpectedEOF |
| 16378 | } |
| 16379 | b := dAtA[iNdEx] |
| 16380 | iNdEx++ |
| 16381 | byteLen |= int(b&0x7F) << shift |
| 16382 | if b < 0x80 { |
| 16383 | break |
| 16384 | } |
| 16385 | } |
| 16386 | if byteLen < 0 { |
| 16387 | return ErrInvalidLengthRpc |
| 16388 | } |
| 16389 | postIndex := iNdEx + byteLen |
| 16390 | if postIndex < 0 { |
| 16391 | return ErrInvalidLengthRpc |
| 16392 | } |
| 16393 | if postIndex > l { |
| 16394 | return io.ErrUnexpectedEOF |
| 16395 | } |
| 16396 | m.RangeEnd = append(m.RangeEnd[:0], dAtA[iNdEx:postIndex]...) |
| 16397 | if m.RangeEnd == nil { |
| 16398 | m.RangeEnd = []byte{} |
| 16399 | } |
| 16400 | iNdEx = postIndex |
| 16401 | case 3: |
| 16402 | if wireType != 0 { |
| 16403 | return fmt.Errorf("proto: wrong wireType = %d for field PrevKv", wireType) |
| 16404 | } |
| 16405 | var v int |
| 16406 | for shift := uint(0); ; shift += 7 { |
| 16407 | if shift >= 64 { |
| 16408 | return ErrIntOverflowRpc |
| 16409 | } |
| 16410 | if iNdEx >= l { |
| 16411 | return io.ErrUnexpectedEOF |
| 16412 | } |
| 16413 | b := dAtA[iNdEx] |
| 16414 | iNdEx++ |
| 16415 | v |= int(b&0x7F) << shift |
| 16416 | if b < 0x80 { |
| 16417 | break |
| 16418 | } |
| 16419 | } |
| 16420 | m.PrevKv = bool(v != 0) |
| 16421 | default: |
| 16422 | iNdEx = preIndex |
| 16423 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 16424 | if err != nil { |
| 16425 | return err |
| 16426 | } |
| 16427 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 16428 | return ErrInvalidLengthRpc |
| 16429 | } |
| 16430 | if (iNdEx + skippy) > l { |
| 16431 | return io.ErrUnexpectedEOF |
| 16432 | } |
| 16433 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 16434 | iNdEx += skippy |
| 16435 | } |
| 16436 | } |
| 16437 | |
| 16438 | if iNdEx > l { |
| 16439 | return io.ErrUnexpectedEOF |
| 16440 | } |
| 16441 | return nil |
| 16442 | } |
| 16443 | func (m *DeleteRangeResponse) Unmarshal(dAtA []byte) error { |
| 16444 | l := len(dAtA) |
| 16445 | iNdEx := 0 |
| 16446 | for iNdEx < l { |
| 16447 | preIndex := iNdEx |
| 16448 | var wire uint64 |
| 16449 | for shift := uint(0); ; shift += 7 { |
| 16450 | if shift >= 64 { |
| 16451 | return ErrIntOverflowRpc |
| 16452 | } |
| 16453 | if iNdEx >= l { |
| 16454 | return io.ErrUnexpectedEOF |
| 16455 | } |
| 16456 | b := dAtA[iNdEx] |
| 16457 | iNdEx++ |
| 16458 | wire |= uint64(b&0x7F) << shift |
| 16459 | if b < 0x80 { |
| 16460 | break |
| 16461 | } |
| 16462 | } |
| 16463 | fieldNum := int32(wire >> 3) |
| 16464 | wireType := int(wire & 0x7) |
| 16465 | if wireType == 4 { |
| 16466 | return fmt.Errorf("proto: DeleteRangeResponse: wiretype end group for non-group") |
| 16467 | } |
| 16468 | if fieldNum <= 0 { |
| 16469 | return fmt.Errorf("proto: DeleteRangeResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 16470 | } |
| 16471 | switch fieldNum { |
| 16472 | case 1: |
| 16473 | if wireType != 2 { |
| 16474 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 16475 | } |
| 16476 | var msglen int |
| 16477 | for shift := uint(0); ; shift += 7 { |
| 16478 | if shift >= 64 { |
| 16479 | return ErrIntOverflowRpc |
| 16480 | } |
| 16481 | if iNdEx >= l { |
| 16482 | return io.ErrUnexpectedEOF |
| 16483 | } |
| 16484 | b := dAtA[iNdEx] |
| 16485 | iNdEx++ |
| 16486 | msglen |= int(b&0x7F) << shift |
| 16487 | if b < 0x80 { |
| 16488 | break |
| 16489 | } |
| 16490 | } |
| 16491 | if msglen < 0 { |
| 16492 | return ErrInvalidLengthRpc |
| 16493 | } |
| 16494 | postIndex := iNdEx + msglen |
| 16495 | if postIndex < 0 { |
| 16496 | return ErrInvalidLengthRpc |
| 16497 | } |
| 16498 | if postIndex > l { |
| 16499 | return io.ErrUnexpectedEOF |
| 16500 | } |
| 16501 | if m.Header == nil { |
| 16502 | m.Header = &ResponseHeader{} |
| 16503 | } |
| 16504 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 16505 | return err |
| 16506 | } |
| 16507 | iNdEx = postIndex |
| 16508 | case 2: |
| 16509 | if wireType != 0 { |
| 16510 | return fmt.Errorf("proto: wrong wireType = %d for field Deleted", wireType) |
| 16511 | } |
| 16512 | m.Deleted = 0 |
| 16513 | for shift := uint(0); ; shift += 7 { |
| 16514 | if shift >= 64 { |
| 16515 | return ErrIntOverflowRpc |
| 16516 | } |
| 16517 | if iNdEx >= l { |
| 16518 | return io.ErrUnexpectedEOF |
| 16519 | } |
| 16520 | b := dAtA[iNdEx] |
| 16521 | iNdEx++ |
| 16522 | m.Deleted |= int64(b&0x7F) << shift |
| 16523 | if b < 0x80 { |
| 16524 | break |
| 16525 | } |
| 16526 | } |
| 16527 | case 3: |
| 16528 | if wireType != 2 { |
| 16529 | return fmt.Errorf("proto: wrong wireType = %d for field PrevKvs", wireType) |
| 16530 | } |
| 16531 | var msglen int |
| 16532 | for shift := uint(0); ; shift += 7 { |
| 16533 | if shift >= 64 { |
| 16534 | return ErrIntOverflowRpc |
| 16535 | } |
| 16536 | if iNdEx >= l { |
| 16537 | return io.ErrUnexpectedEOF |
| 16538 | } |
| 16539 | b := dAtA[iNdEx] |
| 16540 | iNdEx++ |
| 16541 | msglen |= int(b&0x7F) << shift |
| 16542 | if b < 0x80 { |
| 16543 | break |
| 16544 | } |
| 16545 | } |
| 16546 | if msglen < 0 { |
| 16547 | return ErrInvalidLengthRpc |
| 16548 | } |
| 16549 | postIndex := iNdEx + msglen |
| 16550 | if postIndex < 0 { |
| 16551 | return ErrInvalidLengthRpc |
| 16552 | } |
| 16553 | if postIndex > l { |
| 16554 | return io.ErrUnexpectedEOF |
| 16555 | } |
| 16556 | m.PrevKvs = append(m.PrevKvs, &mvccpb.KeyValue{}) |
| 16557 | if err := m.PrevKvs[len(m.PrevKvs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 16558 | return err |
| 16559 | } |
| 16560 | iNdEx = postIndex |
| 16561 | default: |
| 16562 | iNdEx = preIndex |
| 16563 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 16564 | if err != nil { |
| 16565 | return err |
| 16566 | } |
| 16567 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 16568 | return ErrInvalidLengthRpc |
| 16569 | } |
| 16570 | if (iNdEx + skippy) > l { |
| 16571 | return io.ErrUnexpectedEOF |
| 16572 | } |
| 16573 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 16574 | iNdEx += skippy |
| 16575 | } |
| 16576 | } |
| 16577 | |
| 16578 | if iNdEx > l { |
| 16579 | return io.ErrUnexpectedEOF |
| 16580 | } |
| 16581 | return nil |
| 16582 | } |
| 16583 | func (m *RequestOp) Unmarshal(dAtA []byte) error { |
| 16584 | l := len(dAtA) |
| 16585 | iNdEx := 0 |
| 16586 | for iNdEx < l { |
| 16587 | preIndex := iNdEx |
| 16588 | var wire uint64 |
| 16589 | for shift := uint(0); ; shift += 7 { |
| 16590 | if shift >= 64 { |
| 16591 | return ErrIntOverflowRpc |
| 16592 | } |
| 16593 | if iNdEx >= l { |
| 16594 | return io.ErrUnexpectedEOF |
| 16595 | } |
| 16596 | b := dAtA[iNdEx] |
| 16597 | iNdEx++ |
| 16598 | wire |= uint64(b&0x7F) << shift |
| 16599 | if b < 0x80 { |
| 16600 | break |
| 16601 | } |
| 16602 | } |
| 16603 | fieldNum := int32(wire >> 3) |
| 16604 | wireType := int(wire & 0x7) |
| 16605 | if wireType == 4 { |
| 16606 | return fmt.Errorf("proto: RequestOp: wiretype end group for non-group") |
| 16607 | } |
| 16608 | if fieldNum <= 0 { |
| 16609 | return fmt.Errorf("proto: RequestOp: illegal tag %d (wire type %d)", fieldNum, wire) |
| 16610 | } |
| 16611 | switch fieldNum { |
| 16612 | case 1: |
| 16613 | if wireType != 2 { |
| 16614 | return fmt.Errorf("proto: wrong wireType = %d for field RequestRange", wireType) |
| 16615 | } |
| 16616 | var msglen int |
| 16617 | for shift := uint(0); ; shift += 7 { |
| 16618 | if shift >= 64 { |
| 16619 | return ErrIntOverflowRpc |
| 16620 | } |
| 16621 | if iNdEx >= l { |
| 16622 | return io.ErrUnexpectedEOF |
| 16623 | } |
| 16624 | b := dAtA[iNdEx] |
| 16625 | iNdEx++ |
| 16626 | msglen |= int(b&0x7F) << shift |
| 16627 | if b < 0x80 { |
| 16628 | break |
| 16629 | } |
| 16630 | } |
| 16631 | if msglen < 0 { |
| 16632 | return ErrInvalidLengthRpc |
| 16633 | } |
| 16634 | postIndex := iNdEx + msglen |
| 16635 | if postIndex < 0 { |
| 16636 | return ErrInvalidLengthRpc |
| 16637 | } |
| 16638 | if postIndex > l { |
| 16639 | return io.ErrUnexpectedEOF |
| 16640 | } |
| 16641 | v := &RangeRequest{} |
| 16642 | if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 16643 | return err |
| 16644 | } |
| 16645 | m.Request = &RequestOp_RequestRange{v} |
| 16646 | iNdEx = postIndex |
| 16647 | case 2: |
| 16648 | if wireType != 2 { |
| 16649 | return fmt.Errorf("proto: wrong wireType = %d for field RequestPut", wireType) |
| 16650 | } |
| 16651 | var msglen int |
| 16652 | for shift := uint(0); ; shift += 7 { |
| 16653 | if shift >= 64 { |
| 16654 | return ErrIntOverflowRpc |
| 16655 | } |
| 16656 | if iNdEx >= l { |
| 16657 | return io.ErrUnexpectedEOF |
| 16658 | } |
| 16659 | b := dAtA[iNdEx] |
| 16660 | iNdEx++ |
| 16661 | msglen |= int(b&0x7F) << shift |
| 16662 | if b < 0x80 { |
| 16663 | break |
| 16664 | } |
| 16665 | } |
| 16666 | if msglen < 0 { |
| 16667 | return ErrInvalidLengthRpc |
| 16668 | } |
| 16669 | postIndex := iNdEx + msglen |
| 16670 | if postIndex < 0 { |
| 16671 | return ErrInvalidLengthRpc |
| 16672 | } |
| 16673 | if postIndex > l { |
| 16674 | return io.ErrUnexpectedEOF |
| 16675 | } |
| 16676 | v := &PutRequest{} |
| 16677 | if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 16678 | return err |
| 16679 | } |
| 16680 | m.Request = &RequestOp_RequestPut{v} |
| 16681 | iNdEx = postIndex |
| 16682 | case 3: |
| 16683 | if wireType != 2 { |
| 16684 | return fmt.Errorf("proto: wrong wireType = %d for field RequestDeleteRange", wireType) |
| 16685 | } |
| 16686 | var msglen int |
| 16687 | for shift := uint(0); ; shift += 7 { |
| 16688 | if shift >= 64 { |
| 16689 | return ErrIntOverflowRpc |
| 16690 | } |
| 16691 | if iNdEx >= l { |
| 16692 | return io.ErrUnexpectedEOF |
| 16693 | } |
| 16694 | b := dAtA[iNdEx] |
| 16695 | iNdEx++ |
| 16696 | msglen |= int(b&0x7F) << shift |
| 16697 | if b < 0x80 { |
| 16698 | break |
| 16699 | } |
| 16700 | } |
| 16701 | if msglen < 0 { |
| 16702 | return ErrInvalidLengthRpc |
| 16703 | } |
| 16704 | postIndex := iNdEx + msglen |
| 16705 | if postIndex < 0 { |
| 16706 | return ErrInvalidLengthRpc |
| 16707 | } |
| 16708 | if postIndex > l { |
| 16709 | return io.ErrUnexpectedEOF |
| 16710 | } |
| 16711 | v := &DeleteRangeRequest{} |
| 16712 | if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 16713 | return err |
| 16714 | } |
| 16715 | m.Request = &RequestOp_RequestDeleteRange{v} |
| 16716 | iNdEx = postIndex |
| 16717 | case 4: |
| 16718 | if wireType != 2 { |
| 16719 | return fmt.Errorf("proto: wrong wireType = %d for field RequestTxn", wireType) |
| 16720 | } |
| 16721 | var msglen int |
| 16722 | for shift := uint(0); ; shift += 7 { |
| 16723 | if shift >= 64 { |
| 16724 | return ErrIntOverflowRpc |
| 16725 | } |
| 16726 | if iNdEx >= l { |
| 16727 | return io.ErrUnexpectedEOF |
| 16728 | } |
| 16729 | b := dAtA[iNdEx] |
| 16730 | iNdEx++ |
| 16731 | msglen |= int(b&0x7F) << shift |
| 16732 | if b < 0x80 { |
| 16733 | break |
| 16734 | } |
| 16735 | } |
| 16736 | if msglen < 0 { |
| 16737 | return ErrInvalidLengthRpc |
| 16738 | } |
| 16739 | postIndex := iNdEx + msglen |
| 16740 | if postIndex < 0 { |
| 16741 | return ErrInvalidLengthRpc |
| 16742 | } |
| 16743 | if postIndex > l { |
| 16744 | return io.ErrUnexpectedEOF |
| 16745 | } |
| 16746 | v := &TxnRequest{} |
| 16747 | if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 16748 | return err |
| 16749 | } |
| 16750 | m.Request = &RequestOp_RequestTxn{v} |
| 16751 | iNdEx = postIndex |
| 16752 | default: |
| 16753 | iNdEx = preIndex |
| 16754 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 16755 | if err != nil { |
| 16756 | return err |
| 16757 | } |
| 16758 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 16759 | return ErrInvalidLengthRpc |
| 16760 | } |
| 16761 | if (iNdEx + skippy) > l { |
| 16762 | return io.ErrUnexpectedEOF |
| 16763 | } |
| 16764 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 16765 | iNdEx += skippy |
| 16766 | } |
| 16767 | } |
| 16768 | |
| 16769 | if iNdEx > l { |
| 16770 | return io.ErrUnexpectedEOF |
| 16771 | } |
| 16772 | return nil |
| 16773 | } |
| 16774 | func (m *ResponseOp) Unmarshal(dAtA []byte) error { |
| 16775 | l := len(dAtA) |
| 16776 | iNdEx := 0 |
| 16777 | for iNdEx < l { |
| 16778 | preIndex := iNdEx |
| 16779 | var wire uint64 |
| 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 | wire |= uint64(b&0x7F) << shift |
| 16790 | if b < 0x80 { |
| 16791 | break |
| 16792 | } |
| 16793 | } |
| 16794 | fieldNum := int32(wire >> 3) |
| 16795 | wireType := int(wire & 0x7) |
| 16796 | if wireType == 4 { |
| 16797 | return fmt.Errorf("proto: ResponseOp: wiretype end group for non-group") |
| 16798 | } |
| 16799 | if fieldNum <= 0 { |
| 16800 | return fmt.Errorf("proto: ResponseOp: illegal tag %d (wire type %d)", fieldNum, wire) |
| 16801 | } |
| 16802 | switch fieldNum { |
| 16803 | case 1: |
| 16804 | if wireType != 2 { |
| 16805 | return fmt.Errorf("proto: wrong wireType = %d for field ResponseRange", wireType) |
| 16806 | } |
| 16807 | var msglen int |
| 16808 | for shift := uint(0); ; shift += 7 { |
| 16809 | if shift >= 64 { |
| 16810 | return ErrIntOverflowRpc |
| 16811 | } |
| 16812 | if iNdEx >= l { |
| 16813 | return io.ErrUnexpectedEOF |
| 16814 | } |
| 16815 | b := dAtA[iNdEx] |
| 16816 | iNdEx++ |
| 16817 | msglen |= int(b&0x7F) << shift |
| 16818 | if b < 0x80 { |
| 16819 | break |
| 16820 | } |
| 16821 | } |
| 16822 | if msglen < 0 { |
| 16823 | return ErrInvalidLengthRpc |
| 16824 | } |
| 16825 | postIndex := iNdEx + msglen |
| 16826 | if postIndex < 0 { |
| 16827 | return ErrInvalidLengthRpc |
| 16828 | } |
| 16829 | if postIndex > l { |
| 16830 | return io.ErrUnexpectedEOF |
| 16831 | } |
| 16832 | v := &RangeResponse{} |
| 16833 | if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 16834 | return err |
| 16835 | } |
| 16836 | m.Response = &ResponseOp_ResponseRange{v} |
| 16837 | iNdEx = postIndex |
| 16838 | case 2: |
| 16839 | if wireType != 2 { |
| 16840 | return fmt.Errorf("proto: wrong wireType = %d for field ResponsePut", wireType) |
| 16841 | } |
| 16842 | var msglen int |
| 16843 | for shift := uint(0); ; shift += 7 { |
| 16844 | if shift >= 64 { |
| 16845 | return ErrIntOverflowRpc |
| 16846 | } |
| 16847 | if iNdEx >= l { |
| 16848 | return io.ErrUnexpectedEOF |
| 16849 | } |
| 16850 | b := dAtA[iNdEx] |
| 16851 | iNdEx++ |
| 16852 | msglen |= int(b&0x7F) << shift |
| 16853 | if b < 0x80 { |
| 16854 | break |
| 16855 | } |
| 16856 | } |
| 16857 | if msglen < 0 { |
| 16858 | return ErrInvalidLengthRpc |
| 16859 | } |
| 16860 | postIndex := iNdEx + msglen |
| 16861 | if postIndex < 0 { |
| 16862 | return ErrInvalidLengthRpc |
| 16863 | } |
| 16864 | if postIndex > l { |
| 16865 | return io.ErrUnexpectedEOF |
| 16866 | } |
| 16867 | v := &PutResponse{} |
| 16868 | if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 16869 | return err |
| 16870 | } |
| 16871 | m.Response = &ResponseOp_ResponsePut{v} |
| 16872 | iNdEx = postIndex |
| 16873 | case 3: |
| 16874 | if wireType != 2 { |
| 16875 | return fmt.Errorf("proto: wrong wireType = %d for field ResponseDeleteRange", wireType) |
| 16876 | } |
| 16877 | var msglen int |
| 16878 | for shift := uint(0); ; shift += 7 { |
| 16879 | if shift >= 64 { |
| 16880 | return ErrIntOverflowRpc |
| 16881 | } |
| 16882 | if iNdEx >= l { |
| 16883 | return io.ErrUnexpectedEOF |
| 16884 | } |
| 16885 | b := dAtA[iNdEx] |
| 16886 | iNdEx++ |
| 16887 | msglen |= int(b&0x7F) << shift |
| 16888 | if b < 0x80 { |
| 16889 | break |
| 16890 | } |
| 16891 | } |
| 16892 | if msglen < 0 { |
| 16893 | return ErrInvalidLengthRpc |
| 16894 | } |
| 16895 | postIndex := iNdEx + msglen |
| 16896 | if postIndex < 0 { |
| 16897 | return ErrInvalidLengthRpc |
| 16898 | } |
| 16899 | if postIndex > l { |
| 16900 | return io.ErrUnexpectedEOF |
| 16901 | } |
| 16902 | v := &DeleteRangeResponse{} |
| 16903 | if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 16904 | return err |
| 16905 | } |
| 16906 | m.Response = &ResponseOp_ResponseDeleteRange{v} |
| 16907 | iNdEx = postIndex |
| 16908 | case 4: |
| 16909 | if wireType != 2 { |
| 16910 | return fmt.Errorf("proto: wrong wireType = %d for field ResponseTxn", wireType) |
| 16911 | } |
| 16912 | var msglen int |
| 16913 | for shift := uint(0); ; shift += 7 { |
| 16914 | if shift >= 64 { |
| 16915 | return ErrIntOverflowRpc |
| 16916 | } |
| 16917 | if iNdEx >= l { |
| 16918 | return io.ErrUnexpectedEOF |
| 16919 | } |
| 16920 | b := dAtA[iNdEx] |
| 16921 | iNdEx++ |
| 16922 | msglen |= int(b&0x7F) << shift |
| 16923 | if b < 0x80 { |
| 16924 | break |
| 16925 | } |
| 16926 | } |
| 16927 | if msglen < 0 { |
| 16928 | return ErrInvalidLengthRpc |
| 16929 | } |
| 16930 | postIndex := iNdEx + msglen |
| 16931 | if postIndex < 0 { |
| 16932 | return ErrInvalidLengthRpc |
| 16933 | } |
| 16934 | if postIndex > l { |
| 16935 | return io.ErrUnexpectedEOF |
| 16936 | } |
| 16937 | v := &TxnResponse{} |
| 16938 | if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 16939 | return err |
| 16940 | } |
| 16941 | m.Response = &ResponseOp_ResponseTxn{v} |
| 16942 | iNdEx = postIndex |
| 16943 | default: |
| 16944 | iNdEx = preIndex |
| 16945 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 16946 | if err != nil { |
| 16947 | return err |
| 16948 | } |
| 16949 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 16950 | return ErrInvalidLengthRpc |
| 16951 | } |
| 16952 | if (iNdEx + skippy) > l { |
| 16953 | return io.ErrUnexpectedEOF |
| 16954 | } |
| 16955 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 16956 | iNdEx += skippy |
| 16957 | } |
| 16958 | } |
| 16959 | |
| 16960 | if iNdEx > l { |
| 16961 | return io.ErrUnexpectedEOF |
| 16962 | } |
| 16963 | return nil |
| 16964 | } |
| 16965 | func (m *Compare) Unmarshal(dAtA []byte) error { |
| 16966 | l := len(dAtA) |
| 16967 | iNdEx := 0 |
| 16968 | for iNdEx < l { |
| 16969 | preIndex := iNdEx |
| 16970 | var wire uint64 |
| 16971 | for shift := uint(0); ; shift += 7 { |
| 16972 | if shift >= 64 { |
| 16973 | return ErrIntOverflowRpc |
| 16974 | } |
| 16975 | if iNdEx >= l { |
| 16976 | return io.ErrUnexpectedEOF |
| 16977 | } |
| 16978 | b := dAtA[iNdEx] |
| 16979 | iNdEx++ |
| 16980 | wire |= uint64(b&0x7F) << shift |
| 16981 | if b < 0x80 { |
| 16982 | break |
| 16983 | } |
| 16984 | } |
| 16985 | fieldNum := int32(wire >> 3) |
| 16986 | wireType := int(wire & 0x7) |
| 16987 | if wireType == 4 { |
| 16988 | return fmt.Errorf("proto: Compare: wiretype end group for non-group") |
| 16989 | } |
| 16990 | if fieldNum <= 0 { |
| 16991 | return fmt.Errorf("proto: Compare: illegal tag %d (wire type %d)", fieldNum, wire) |
| 16992 | } |
| 16993 | switch fieldNum { |
| 16994 | case 1: |
| 16995 | if wireType != 0 { |
| 16996 | return fmt.Errorf("proto: wrong wireType = %d for field Result", wireType) |
| 16997 | } |
| 16998 | m.Result = 0 |
| 16999 | for shift := uint(0); ; shift += 7 { |
| 17000 | if shift >= 64 { |
| 17001 | return ErrIntOverflowRpc |
| 17002 | } |
| 17003 | if iNdEx >= l { |
| 17004 | return io.ErrUnexpectedEOF |
| 17005 | } |
| 17006 | b := dAtA[iNdEx] |
| 17007 | iNdEx++ |
| 17008 | m.Result |= Compare_CompareResult(b&0x7F) << shift |
| 17009 | if b < 0x80 { |
| 17010 | break |
| 17011 | } |
| 17012 | } |
| 17013 | case 2: |
| 17014 | if wireType != 0 { |
| 17015 | return fmt.Errorf("proto: wrong wireType = %d for field Target", wireType) |
| 17016 | } |
| 17017 | m.Target = 0 |
| 17018 | for shift := uint(0); ; shift += 7 { |
| 17019 | if shift >= 64 { |
| 17020 | return ErrIntOverflowRpc |
| 17021 | } |
| 17022 | if iNdEx >= l { |
| 17023 | return io.ErrUnexpectedEOF |
| 17024 | } |
| 17025 | b := dAtA[iNdEx] |
| 17026 | iNdEx++ |
| 17027 | m.Target |= Compare_CompareTarget(b&0x7F) << shift |
| 17028 | if b < 0x80 { |
| 17029 | break |
| 17030 | } |
| 17031 | } |
| 17032 | case 3: |
| 17033 | if wireType != 2 { |
| 17034 | return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) |
| 17035 | } |
| 17036 | var byteLen int |
| 17037 | for shift := uint(0); ; shift += 7 { |
| 17038 | if shift >= 64 { |
| 17039 | return ErrIntOverflowRpc |
| 17040 | } |
| 17041 | if iNdEx >= l { |
| 17042 | return io.ErrUnexpectedEOF |
| 17043 | } |
| 17044 | b := dAtA[iNdEx] |
| 17045 | iNdEx++ |
| 17046 | byteLen |= int(b&0x7F) << shift |
| 17047 | if b < 0x80 { |
| 17048 | break |
| 17049 | } |
| 17050 | } |
| 17051 | if byteLen < 0 { |
| 17052 | return ErrInvalidLengthRpc |
| 17053 | } |
| 17054 | postIndex := iNdEx + byteLen |
| 17055 | if postIndex < 0 { |
| 17056 | return ErrInvalidLengthRpc |
| 17057 | } |
| 17058 | if postIndex > l { |
| 17059 | return io.ErrUnexpectedEOF |
| 17060 | } |
| 17061 | m.Key = append(m.Key[:0], dAtA[iNdEx:postIndex]...) |
| 17062 | if m.Key == nil { |
| 17063 | m.Key = []byte{} |
| 17064 | } |
| 17065 | iNdEx = postIndex |
| 17066 | case 4: |
| 17067 | if wireType != 0 { |
| 17068 | return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) |
| 17069 | } |
| 17070 | var v int64 |
| 17071 | for shift := uint(0); ; shift += 7 { |
| 17072 | if shift >= 64 { |
| 17073 | return ErrIntOverflowRpc |
| 17074 | } |
| 17075 | if iNdEx >= l { |
| 17076 | return io.ErrUnexpectedEOF |
| 17077 | } |
| 17078 | b := dAtA[iNdEx] |
| 17079 | iNdEx++ |
| 17080 | v |= int64(b&0x7F) << shift |
| 17081 | if b < 0x80 { |
| 17082 | break |
| 17083 | } |
| 17084 | } |
| 17085 | m.TargetUnion = &Compare_Version{v} |
| 17086 | case 5: |
| 17087 | if wireType != 0 { |
| 17088 | return fmt.Errorf("proto: wrong wireType = %d for field CreateRevision", wireType) |
| 17089 | } |
| 17090 | var v int64 |
| 17091 | for shift := uint(0); ; shift += 7 { |
| 17092 | if shift >= 64 { |
| 17093 | return ErrIntOverflowRpc |
| 17094 | } |
| 17095 | if iNdEx >= l { |
| 17096 | return io.ErrUnexpectedEOF |
| 17097 | } |
| 17098 | b := dAtA[iNdEx] |
| 17099 | iNdEx++ |
| 17100 | v |= int64(b&0x7F) << shift |
| 17101 | if b < 0x80 { |
| 17102 | break |
| 17103 | } |
| 17104 | } |
| 17105 | m.TargetUnion = &Compare_CreateRevision{v} |
| 17106 | case 6: |
| 17107 | if wireType != 0 { |
| 17108 | return fmt.Errorf("proto: wrong wireType = %d for field ModRevision", wireType) |
| 17109 | } |
| 17110 | var v int64 |
| 17111 | for shift := uint(0); ; shift += 7 { |
| 17112 | if shift >= 64 { |
| 17113 | return ErrIntOverflowRpc |
| 17114 | } |
| 17115 | if iNdEx >= l { |
| 17116 | return io.ErrUnexpectedEOF |
| 17117 | } |
| 17118 | b := dAtA[iNdEx] |
| 17119 | iNdEx++ |
| 17120 | v |= int64(b&0x7F) << shift |
| 17121 | if b < 0x80 { |
| 17122 | break |
| 17123 | } |
| 17124 | } |
| 17125 | m.TargetUnion = &Compare_ModRevision{v} |
| 17126 | case 7: |
| 17127 | if wireType != 2 { |
| 17128 | return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) |
| 17129 | } |
| 17130 | var byteLen int |
| 17131 | for shift := uint(0); ; shift += 7 { |
| 17132 | if shift >= 64 { |
| 17133 | return ErrIntOverflowRpc |
| 17134 | } |
| 17135 | if iNdEx >= l { |
| 17136 | return io.ErrUnexpectedEOF |
| 17137 | } |
| 17138 | b := dAtA[iNdEx] |
| 17139 | iNdEx++ |
| 17140 | byteLen |= int(b&0x7F) << shift |
| 17141 | if b < 0x80 { |
| 17142 | break |
| 17143 | } |
| 17144 | } |
| 17145 | if byteLen < 0 { |
| 17146 | return ErrInvalidLengthRpc |
| 17147 | } |
| 17148 | postIndex := iNdEx + byteLen |
| 17149 | if postIndex < 0 { |
| 17150 | return ErrInvalidLengthRpc |
| 17151 | } |
| 17152 | if postIndex > l { |
| 17153 | return io.ErrUnexpectedEOF |
| 17154 | } |
| 17155 | v := make([]byte, postIndex-iNdEx) |
| 17156 | copy(v, dAtA[iNdEx:postIndex]) |
| 17157 | m.TargetUnion = &Compare_Value{v} |
| 17158 | iNdEx = postIndex |
| 17159 | case 8: |
| 17160 | if wireType != 0 { |
| 17161 | return fmt.Errorf("proto: wrong wireType = %d for field Lease", wireType) |
| 17162 | } |
| 17163 | var v int64 |
| 17164 | for shift := uint(0); ; shift += 7 { |
| 17165 | if shift >= 64 { |
| 17166 | return ErrIntOverflowRpc |
| 17167 | } |
| 17168 | if iNdEx >= l { |
| 17169 | return io.ErrUnexpectedEOF |
| 17170 | } |
| 17171 | b := dAtA[iNdEx] |
| 17172 | iNdEx++ |
| 17173 | v |= int64(b&0x7F) << shift |
| 17174 | if b < 0x80 { |
| 17175 | break |
| 17176 | } |
| 17177 | } |
| 17178 | m.TargetUnion = &Compare_Lease{v} |
| 17179 | case 64: |
| 17180 | if wireType != 2 { |
| 17181 | return fmt.Errorf("proto: wrong wireType = %d for field RangeEnd", wireType) |
| 17182 | } |
| 17183 | var byteLen int |
| 17184 | for shift := uint(0); ; shift += 7 { |
| 17185 | if shift >= 64 { |
| 17186 | return ErrIntOverflowRpc |
| 17187 | } |
| 17188 | if iNdEx >= l { |
| 17189 | return io.ErrUnexpectedEOF |
| 17190 | } |
| 17191 | b := dAtA[iNdEx] |
| 17192 | iNdEx++ |
| 17193 | byteLen |= int(b&0x7F) << shift |
| 17194 | if b < 0x80 { |
| 17195 | break |
| 17196 | } |
| 17197 | } |
| 17198 | if byteLen < 0 { |
| 17199 | return ErrInvalidLengthRpc |
| 17200 | } |
| 17201 | postIndex := iNdEx + byteLen |
| 17202 | if postIndex < 0 { |
| 17203 | return ErrInvalidLengthRpc |
| 17204 | } |
| 17205 | if postIndex > l { |
| 17206 | return io.ErrUnexpectedEOF |
| 17207 | } |
| 17208 | m.RangeEnd = append(m.RangeEnd[:0], dAtA[iNdEx:postIndex]...) |
| 17209 | if m.RangeEnd == nil { |
| 17210 | m.RangeEnd = []byte{} |
| 17211 | } |
| 17212 | iNdEx = postIndex |
| 17213 | default: |
| 17214 | iNdEx = preIndex |
| 17215 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 17216 | if err != nil { |
| 17217 | return err |
| 17218 | } |
| 17219 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 17220 | return ErrInvalidLengthRpc |
| 17221 | } |
| 17222 | if (iNdEx + skippy) > l { |
| 17223 | return io.ErrUnexpectedEOF |
| 17224 | } |
| 17225 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 17226 | iNdEx += skippy |
| 17227 | } |
| 17228 | } |
| 17229 | |
| 17230 | if iNdEx > l { |
| 17231 | return io.ErrUnexpectedEOF |
| 17232 | } |
| 17233 | return nil |
| 17234 | } |
| 17235 | func (m *TxnRequest) Unmarshal(dAtA []byte) error { |
| 17236 | l := len(dAtA) |
| 17237 | iNdEx := 0 |
| 17238 | for iNdEx < l { |
| 17239 | preIndex := iNdEx |
| 17240 | var wire uint64 |
| 17241 | for shift := uint(0); ; shift += 7 { |
| 17242 | if shift >= 64 { |
| 17243 | return ErrIntOverflowRpc |
| 17244 | } |
| 17245 | if iNdEx >= l { |
| 17246 | return io.ErrUnexpectedEOF |
| 17247 | } |
| 17248 | b := dAtA[iNdEx] |
| 17249 | iNdEx++ |
| 17250 | wire |= uint64(b&0x7F) << shift |
| 17251 | if b < 0x80 { |
| 17252 | break |
| 17253 | } |
| 17254 | } |
| 17255 | fieldNum := int32(wire >> 3) |
| 17256 | wireType := int(wire & 0x7) |
| 17257 | if wireType == 4 { |
| 17258 | return fmt.Errorf("proto: TxnRequest: wiretype end group for non-group") |
| 17259 | } |
| 17260 | if fieldNum <= 0 { |
| 17261 | return fmt.Errorf("proto: TxnRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 17262 | } |
| 17263 | switch fieldNum { |
| 17264 | case 1: |
| 17265 | if wireType != 2 { |
| 17266 | return fmt.Errorf("proto: wrong wireType = %d for field Compare", wireType) |
| 17267 | } |
| 17268 | var msglen int |
| 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 | msglen |= int(b&0x7F) << shift |
| 17279 | if b < 0x80 { |
| 17280 | break |
| 17281 | } |
| 17282 | } |
| 17283 | if msglen < 0 { |
| 17284 | return ErrInvalidLengthRpc |
| 17285 | } |
| 17286 | postIndex := iNdEx + msglen |
| 17287 | if postIndex < 0 { |
| 17288 | return ErrInvalidLengthRpc |
| 17289 | } |
| 17290 | if postIndex > l { |
| 17291 | return io.ErrUnexpectedEOF |
| 17292 | } |
| 17293 | m.Compare = append(m.Compare, &Compare{}) |
| 17294 | if err := m.Compare[len(m.Compare)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 17295 | return err |
| 17296 | } |
| 17297 | iNdEx = postIndex |
| 17298 | case 2: |
| 17299 | if wireType != 2 { |
| 17300 | return fmt.Errorf("proto: wrong wireType = %d for field Success", wireType) |
| 17301 | } |
| 17302 | var msglen int |
| 17303 | for shift := uint(0); ; shift += 7 { |
| 17304 | if shift >= 64 { |
| 17305 | return ErrIntOverflowRpc |
| 17306 | } |
| 17307 | if iNdEx >= l { |
| 17308 | return io.ErrUnexpectedEOF |
| 17309 | } |
| 17310 | b := dAtA[iNdEx] |
| 17311 | iNdEx++ |
| 17312 | msglen |= int(b&0x7F) << shift |
| 17313 | if b < 0x80 { |
| 17314 | break |
| 17315 | } |
| 17316 | } |
| 17317 | if msglen < 0 { |
| 17318 | return ErrInvalidLengthRpc |
| 17319 | } |
| 17320 | postIndex := iNdEx + msglen |
| 17321 | if postIndex < 0 { |
| 17322 | return ErrInvalidLengthRpc |
| 17323 | } |
| 17324 | if postIndex > l { |
| 17325 | return io.ErrUnexpectedEOF |
| 17326 | } |
| 17327 | m.Success = append(m.Success, &RequestOp{}) |
| 17328 | if err := m.Success[len(m.Success)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 17329 | return err |
| 17330 | } |
| 17331 | iNdEx = postIndex |
| 17332 | case 3: |
| 17333 | if wireType != 2 { |
| 17334 | return fmt.Errorf("proto: wrong wireType = %d for field Failure", wireType) |
| 17335 | } |
| 17336 | var msglen int |
| 17337 | for shift := uint(0); ; shift += 7 { |
| 17338 | if shift >= 64 { |
| 17339 | return ErrIntOverflowRpc |
| 17340 | } |
| 17341 | if iNdEx >= l { |
| 17342 | return io.ErrUnexpectedEOF |
| 17343 | } |
| 17344 | b := dAtA[iNdEx] |
| 17345 | iNdEx++ |
| 17346 | msglen |= int(b&0x7F) << shift |
| 17347 | if b < 0x80 { |
| 17348 | break |
| 17349 | } |
| 17350 | } |
| 17351 | if msglen < 0 { |
| 17352 | return ErrInvalidLengthRpc |
| 17353 | } |
| 17354 | postIndex := iNdEx + msglen |
| 17355 | if postIndex < 0 { |
| 17356 | return ErrInvalidLengthRpc |
| 17357 | } |
| 17358 | if postIndex > l { |
| 17359 | return io.ErrUnexpectedEOF |
| 17360 | } |
| 17361 | m.Failure = append(m.Failure, &RequestOp{}) |
| 17362 | if err := m.Failure[len(m.Failure)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 17363 | return err |
| 17364 | } |
| 17365 | iNdEx = postIndex |
| 17366 | default: |
| 17367 | iNdEx = preIndex |
| 17368 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 17369 | if err != nil { |
| 17370 | return err |
| 17371 | } |
| 17372 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 17373 | return ErrInvalidLengthRpc |
| 17374 | } |
| 17375 | if (iNdEx + skippy) > l { |
| 17376 | return io.ErrUnexpectedEOF |
| 17377 | } |
| 17378 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 17379 | iNdEx += skippy |
| 17380 | } |
| 17381 | } |
| 17382 | |
| 17383 | if iNdEx > l { |
| 17384 | return io.ErrUnexpectedEOF |
| 17385 | } |
| 17386 | return nil |
| 17387 | } |
| 17388 | func (m *TxnResponse) Unmarshal(dAtA []byte) error { |
| 17389 | l := len(dAtA) |
| 17390 | iNdEx := 0 |
| 17391 | for iNdEx < l { |
| 17392 | preIndex := iNdEx |
| 17393 | var wire uint64 |
| 17394 | for shift := uint(0); ; shift += 7 { |
| 17395 | if shift >= 64 { |
| 17396 | return ErrIntOverflowRpc |
| 17397 | } |
| 17398 | if iNdEx >= l { |
| 17399 | return io.ErrUnexpectedEOF |
| 17400 | } |
| 17401 | b := dAtA[iNdEx] |
| 17402 | iNdEx++ |
| 17403 | wire |= uint64(b&0x7F) << shift |
| 17404 | if b < 0x80 { |
| 17405 | break |
| 17406 | } |
| 17407 | } |
| 17408 | fieldNum := int32(wire >> 3) |
| 17409 | wireType := int(wire & 0x7) |
| 17410 | if wireType == 4 { |
| 17411 | return fmt.Errorf("proto: TxnResponse: wiretype end group for non-group") |
| 17412 | } |
| 17413 | if fieldNum <= 0 { |
| 17414 | return fmt.Errorf("proto: TxnResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 17415 | } |
| 17416 | switch fieldNum { |
| 17417 | case 1: |
| 17418 | if wireType != 2 { |
| 17419 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 17420 | } |
| 17421 | var msglen int |
| 17422 | for shift := uint(0); ; shift += 7 { |
| 17423 | if shift >= 64 { |
| 17424 | return ErrIntOverflowRpc |
| 17425 | } |
| 17426 | if iNdEx >= l { |
| 17427 | return io.ErrUnexpectedEOF |
| 17428 | } |
| 17429 | b := dAtA[iNdEx] |
| 17430 | iNdEx++ |
| 17431 | msglen |= int(b&0x7F) << shift |
| 17432 | if b < 0x80 { |
| 17433 | break |
| 17434 | } |
| 17435 | } |
| 17436 | if msglen < 0 { |
| 17437 | return ErrInvalidLengthRpc |
| 17438 | } |
| 17439 | postIndex := iNdEx + msglen |
| 17440 | if postIndex < 0 { |
| 17441 | return ErrInvalidLengthRpc |
| 17442 | } |
| 17443 | if postIndex > l { |
| 17444 | return io.ErrUnexpectedEOF |
| 17445 | } |
| 17446 | if m.Header == nil { |
| 17447 | m.Header = &ResponseHeader{} |
| 17448 | } |
| 17449 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 17450 | return err |
| 17451 | } |
| 17452 | iNdEx = postIndex |
| 17453 | case 2: |
| 17454 | if wireType != 0 { |
| 17455 | return fmt.Errorf("proto: wrong wireType = %d for field Succeeded", wireType) |
| 17456 | } |
| 17457 | var v int |
| 17458 | for shift := uint(0); ; shift += 7 { |
| 17459 | if shift >= 64 { |
| 17460 | return ErrIntOverflowRpc |
| 17461 | } |
| 17462 | if iNdEx >= l { |
| 17463 | return io.ErrUnexpectedEOF |
| 17464 | } |
| 17465 | b := dAtA[iNdEx] |
| 17466 | iNdEx++ |
| 17467 | v |= int(b&0x7F) << shift |
| 17468 | if b < 0x80 { |
| 17469 | break |
| 17470 | } |
| 17471 | } |
| 17472 | m.Succeeded = bool(v != 0) |
| 17473 | case 3: |
| 17474 | if wireType != 2 { |
| 17475 | return fmt.Errorf("proto: wrong wireType = %d for field Responses", wireType) |
| 17476 | } |
| 17477 | var msglen int |
| 17478 | for shift := uint(0); ; shift += 7 { |
| 17479 | if shift >= 64 { |
| 17480 | return ErrIntOverflowRpc |
| 17481 | } |
| 17482 | if iNdEx >= l { |
| 17483 | return io.ErrUnexpectedEOF |
| 17484 | } |
| 17485 | b := dAtA[iNdEx] |
| 17486 | iNdEx++ |
| 17487 | msglen |= int(b&0x7F) << shift |
| 17488 | if b < 0x80 { |
| 17489 | break |
| 17490 | } |
| 17491 | } |
| 17492 | if msglen < 0 { |
| 17493 | return ErrInvalidLengthRpc |
| 17494 | } |
| 17495 | postIndex := iNdEx + msglen |
| 17496 | if postIndex < 0 { |
| 17497 | return ErrInvalidLengthRpc |
| 17498 | } |
| 17499 | if postIndex > l { |
| 17500 | return io.ErrUnexpectedEOF |
| 17501 | } |
| 17502 | m.Responses = append(m.Responses, &ResponseOp{}) |
| 17503 | if err := m.Responses[len(m.Responses)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 17504 | return err |
| 17505 | } |
| 17506 | iNdEx = postIndex |
| 17507 | default: |
| 17508 | iNdEx = preIndex |
| 17509 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 17510 | if err != nil { |
| 17511 | return err |
| 17512 | } |
| 17513 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 17514 | return ErrInvalidLengthRpc |
| 17515 | } |
| 17516 | if (iNdEx + skippy) > l { |
| 17517 | return io.ErrUnexpectedEOF |
| 17518 | } |
| 17519 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 17520 | iNdEx += skippy |
| 17521 | } |
| 17522 | } |
| 17523 | |
| 17524 | if iNdEx > l { |
| 17525 | return io.ErrUnexpectedEOF |
| 17526 | } |
| 17527 | return nil |
| 17528 | } |
| 17529 | func (m *CompactionRequest) Unmarshal(dAtA []byte) error { |
| 17530 | l := len(dAtA) |
| 17531 | iNdEx := 0 |
| 17532 | for iNdEx < l { |
| 17533 | preIndex := iNdEx |
| 17534 | var wire uint64 |
| 17535 | for shift := uint(0); ; shift += 7 { |
| 17536 | if shift >= 64 { |
| 17537 | return ErrIntOverflowRpc |
| 17538 | } |
| 17539 | if iNdEx >= l { |
| 17540 | return io.ErrUnexpectedEOF |
| 17541 | } |
| 17542 | b := dAtA[iNdEx] |
| 17543 | iNdEx++ |
| 17544 | wire |= uint64(b&0x7F) << shift |
| 17545 | if b < 0x80 { |
| 17546 | break |
| 17547 | } |
| 17548 | } |
| 17549 | fieldNum := int32(wire >> 3) |
| 17550 | wireType := int(wire & 0x7) |
| 17551 | if wireType == 4 { |
| 17552 | return fmt.Errorf("proto: CompactionRequest: wiretype end group for non-group") |
| 17553 | } |
| 17554 | if fieldNum <= 0 { |
| 17555 | return fmt.Errorf("proto: CompactionRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 17556 | } |
| 17557 | switch fieldNum { |
| 17558 | case 1: |
| 17559 | if wireType != 0 { |
| 17560 | return fmt.Errorf("proto: wrong wireType = %d for field Revision", wireType) |
| 17561 | } |
| 17562 | m.Revision = 0 |
| 17563 | for shift := uint(0); ; shift += 7 { |
| 17564 | if shift >= 64 { |
| 17565 | return ErrIntOverflowRpc |
| 17566 | } |
| 17567 | if iNdEx >= l { |
| 17568 | return io.ErrUnexpectedEOF |
| 17569 | } |
| 17570 | b := dAtA[iNdEx] |
| 17571 | iNdEx++ |
| 17572 | m.Revision |= int64(b&0x7F) << shift |
| 17573 | if b < 0x80 { |
| 17574 | break |
| 17575 | } |
| 17576 | } |
| 17577 | case 2: |
| 17578 | if wireType != 0 { |
| 17579 | return fmt.Errorf("proto: wrong wireType = %d for field Physical", wireType) |
| 17580 | } |
| 17581 | var v int |
| 17582 | for shift := uint(0); ; shift += 7 { |
| 17583 | if shift >= 64 { |
| 17584 | return ErrIntOverflowRpc |
| 17585 | } |
| 17586 | if iNdEx >= l { |
| 17587 | return io.ErrUnexpectedEOF |
| 17588 | } |
| 17589 | b := dAtA[iNdEx] |
| 17590 | iNdEx++ |
| 17591 | v |= int(b&0x7F) << shift |
| 17592 | if b < 0x80 { |
| 17593 | break |
| 17594 | } |
| 17595 | } |
| 17596 | m.Physical = bool(v != 0) |
| 17597 | default: |
| 17598 | iNdEx = preIndex |
| 17599 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 17600 | if err != nil { |
| 17601 | return err |
| 17602 | } |
| 17603 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 17604 | return ErrInvalidLengthRpc |
| 17605 | } |
| 17606 | if (iNdEx + skippy) > l { |
| 17607 | return io.ErrUnexpectedEOF |
| 17608 | } |
| 17609 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 17610 | iNdEx += skippy |
| 17611 | } |
| 17612 | } |
| 17613 | |
| 17614 | if iNdEx > l { |
| 17615 | return io.ErrUnexpectedEOF |
| 17616 | } |
| 17617 | return nil |
| 17618 | } |
| 17619 | func (m *CompactionResponse) Unmarshal(dAtA []byte) error { |
| 17620 | l := len(dAtA) |
| 17621 | iNdEx := 0 |
| 17622 | for iNdEx < l { |
| 17623 | preIndex := iNdEx |
| 17624 | var wire uint64 |
| 17625 | for shift := uint(0); ; shift += 7 { |
| 17626 | if shift >= 64 { |
| 17627 | return ErrIntOverflowRpc |
| 17628 | } |
| 17629 | if iNdEx >= l { |
| 17630 | return io.ErrUnexpectedEOF |
| 17631 | } |
| 17632 | b := dAtA[iNdEx] |
| 17633 | iNdEx++ |
| 17634 | wire |= uint64(b&0x7F) << shift |
| 17635 | if b < 0x80 { |
| 17636 | break |
| 17637 | } |
| 17638 | } |
| 17639 | fieldNum := int32(wire >> 3) |
| 17640 | wireType := int(wire & 0x7) |
| 17641 | if wireType == 4 { |
| 17642 | return fmt.Errorf("proto: CompactionResponse: wiretype end group for non-group") |
| 17643 | } |
| 17644 | if fieldNum <= 0 { |
| 17645 | return fmt.Errorf("proto: CompactionResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 17646 | } |
| 17647 | switch fieldNum { |
| 17648 | case 1: |
| 17649 | if wireType != 2 { |
| 17650 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 17651 | } |
| 17652 | var msglen int |
| 17653 | for shift := uint(0); ; shift += 7 { |
| 17654 | if shift >= 64 { |
| 17655 | return ErrIntOverflowRpc |
| 17656 | } |
| 17657 | if iNdEx >= l { |
| 17658 | return io.ErrUnexpectedEOF |
| 17659 | } |
| 17660 | b := dAtA[iNdEx] |
| 17661 | iNdEx++ |
| 17662 | msglen |= int(b&0x7F) << shift |
| 17663 | if b < 0x80 { |
| 17664 | break |
| 17665 | } |
| 17666 | } |
| 17667 | if msglen < 0 { |
| 17668 | return ErrInvalidLengthRpc |
| 17669 | } |
| 17670 | postIndex := iNdEx + msglen |
| 17671 | if postIndex < 0 { |
| 17672 | return ErrInvalidLengthRpc |
| 17673 | } |
| 17674 | if postIndex > l { |
| 17675 | return io.ErrUnexpectedEOF |
| 17676 | } |
| 17677 | if m.Header == nil { |
| 17678 | m.Header = &ResponseHeader{} |
| 17679 | } |
| 17680 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 17681 | return err |
| 17682 | } |
| 17683 | iNdEx = postIndex |
| 17684 | default: |
| 17685 | iNdEx = preIndex |
| 17686 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 17687 | if err != nil { |
| 17688 | return err |
| 17689 | } |
| 17690 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 17691 | return ErrInvalidLengthRpc |
| 17692 | } |
| 17693 | if (iNdEx + skippy) > l { |
| 17694 | return io.ErrUnexpectedEOF |
| 17695 | } |
| 17696 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 17697 | iNdEx += skippy |
| 17698 | } |
| 17699 | } |
| 17700 | |
| 17701 | if iNdEx > l { |
| 17702 | return io.ErrUnexpectedEOF |
| 17703 | } |
| 17704 | return nil |
| 17705 | } |
| 17706 | func (m *HashRequest) Unmarshal(dAtA []byte) error { |
| 17707 | l := len(dAtA) |
| 17708 | iNdEx := 0 |
| 17709 | for iNdEx < l { |
| 17710 | preIndex := iNdEx |
| 17711 | var wire uint64 |
| 17712 | for shift := uint(0); ; shift += 7 { |
| 17713 | if shift >= 64 { |
| 17714 | return ErrIntOverflowRpc |
| 17715 | } |
| 17716 | if iNdEx >= l { |
| 17717 | return io.ErrUnexpectedEOF |
| 17718 | } |
| 17719 | b := dAtA[iNdEx] |
| 17720 | iNdEx++ |
| 17721 | wire |= uint64(b&0x7F) << shift |
| 17722 | if b < 0x80 { |
| 17723 | break |
| 17724 | } |
| 17725 | } |
| 17726 | fieldNum := int32(wire >> 3) |
| 17727 | wireType := int(wire & 0x7) |
| 17728 | if wireType == 4 { |
| 17729 | return fmt.Errorf("proto: HashRequest: wiretype end group for non-group") |
| 17730 | } |
| 17731 | if fieldNum <= 0 { |
| 17732 | return fmt.Errorf("proto: HashRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 17733 | } |
| 17734 | switch fieldNum { |
| 17735 | default: |
| 17736 | iNdEx = preIndex |
| 17737 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 17738 | if err != nil { |
| 17739 | return err |
| 17740 | } |
| 17741 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 17742 | return ErrInvalidLengthRpc |
| 17743 | } |
| 17744 | if (iNdEx + skippy) > l { |
| 17745 | return io.ErrUnexpectedEOF |
| 17746 | } |
| 17747 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 17748 | iNdEx += skippy |
| 17749 | } |
| 17750 | } |
| 17751 | |
| 17752 | if iNdEx > l { |
| 17753 | return io.ErrUnexpectedEOF |
| 17754 | } |
| 17755 | return nil |
| 17756 | } |
| 17757 | func (m *HashKVRequest) Unmarshal(dAtA []byte) error { |
| 17758 | l := len(dAtA) |
| 17759 | iNdEx := 0 |
| 17760 | for iNdEx < l { |
| 17761 | preIndex := iNdEx |
| 17762 | var wire uint64 |
| 17763 | for shift := uint(0); ; shift += 7 { |
| 17764 | if shift >= 64 { |
| 17765 | return ErrIntOverflowRpc |
| 17766 | } |
| 17767 | if iNdEx >= l { |
| 17768 | return io.ErrUnexpectedEOF |
| 17769 | } |
| 17770 | b := dAtA[iNdEx] |
| 17771 | iNdEx++ |
| 17772 | wire |= uint64(b&0x7F) << shift |
| 17773 | if b < 0x80 { |
| 17774 | break |
| 17775 | } |
| 17776 | } |
| 17777 | fieldNum := int32(wire >> 3) |
| 17778 | wireType := int(wire & 0x7) |
| 17779 | if wireType == 4 { |
| 17780 | return fmt.Errorf("proto: HashKVRequest: wiretype end group for non-group") |
| 17781 | } |
| 17782 | if fieldNum <= 0 { |
| 17783 | return fmt.Errorf("proto: HashKVRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 17784 | } |
| 17785 | switch fieldNum { |
| 17786 | case 1: |
| 17787 | if wireType != 0 { |
| 17788 | return fmt.Errorf("proto: wrong wireType = %d for field Revision", wireType) |
| 17789 | } |
| 17790 | m.Revision = 0 |
| 17791 | for shift := uint(0); ; shift += 7 { |
| 17792 | if shift >= 64 { |
| 17793 | return ErrIntOverflowRpc |
| 17794 | } |
| 17795 | if iNdEx >= l { |
| 17796 | return io.ErrUnexpectedEOF |
| 17797 | } |
| 17798 | b := dAtA[iNdEx] |
| 17799 | iNdEx++ |
| 17800 | m.Revision |= int64(b&0x7F) << shift |
| 17801 | if b < 0x80 { |
| 17802 | break |
| 17803 | } |
| 17804 | } |
| 17805 | default: |
| 17806 | iNdEx = preIndex |
| 17807 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 17808 | if err != nil { |
| 17809 | return err |
| 17810 | } |
| 17811 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 17812 | return ErrInvalidLengthRpc |
| 17813 | } |
| 17814 | if (iNdEx + skippy) > l { |
| 17815 | return io.ErrUnexpectedEOF |
| 17816 | } |
| 17817 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 17818 | iNdEx += skippy |
| 17819 | } |
| 17820 | } |
| 17821 | |
| 17822 | if iNdEx > l { |
| 17823 | return io.ErrUnexpectedEOF |
| 17824 | } |
| 17825 | return nil |
| 17826 | } |
| 17827 | func (m *HashKVResponse) Unmarshal(dAtA []byte) error { |
| 17828 | l := len(dAtA) |
| 17829 | iNdEx := 0 |
| 17830 | for iNdEx < l { |
| 17831 | preIndex := iNdEx |
| 17832 | var wire uint64 |
| 17833 | for shift := uint(0); ; shift += 7 { |
| 17834 | if shift >= 64 { |
| 17835 | return ErrIntOverflowRpc |
| 17836 | } |
| 17837 | if iNdEx >= l { |
| 17838 | return io.ErrUnexpectedEOF |
| 17839 | } |
| 17840 | b := dAtA[iNdEx] |
| 17841 | iNdEx++ |
| 17842 | wire |= uint64(b&0x7F) << shift |
| 17843 | if b < 0x80 { |
| 17844 | break |
| 17845 | } |
| 17846 | } |
| 17847 | fieldNum := int32(wire >> 3) |
| 17848 | wireType := int(wire & 0x7) |
| 17849 | if wireType == 4 { |
| 17850 | return fmt.Errorf("proto: HashKVResponse: wiretype end group for non-group") |
| 17851 | } |
| 17852 | if fieldNum <= 0 { |
| 17853 | return fmt.Errorf("proto: HashKVResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 17854 | } |
| 17855 | switch fieldNum { |
| 17856 | case 1: |
| 17857 | if wireType != 2 { |
| 17858 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 17859 | } |
| 17860 | var msglen int |
| 17861 | for shift := uint(0); ; shift += 7 { |
| 17862 | if shift >= 64 { |
| 17863 | return ErrIntOverflowRpc |
| 17864 | } |
| 17865 | if iNdEx >= l { |
| 17866 | return io.ErrUnexpectedEOF |
| 17867 | } |
| 17868 | b := dAtA[iNdEx] |
| 17869 | iNdEx++ |
| 17870 | msglen |= int(b&0x7F) << shift |
| 17871 | if b < 0x80 { |
| 17872 | break |
| 17873 | } |
| 17874 | } |
| 17875 | if msglen < 0 { |
| 17876 | return ErrInvalidLengthRpc |
| 17877 | } |
| 17878 | postIndex := iNdEx + msglen |
| 17879 | if postIndex < 0 { |
| 17880 | return ErrInvalidLengthRpc |
| 17881 | } |
| 17882 | if postIndex > l { |
| 17883 | return io.ErrUnexpectedEOF |
| 17884 | } |
| 17885 | if m.Header == nil { |
| 17886 | m.Header = &ResponseHeader{} |
| 17887 | } |
| 17888 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 17889 | return err |
| 17890 | } |
| 17891 | iNdEx = postIndex |
| 17892 | case 2: |
| 17893 | if wireType != 0 { |
| 17894 | return fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType) |
| 17895 | } |
| 17896 | m.Hash = 0 |
| 17897 | for shift := uint(0); ; shift += 7 { |
| 17898 | if shift >= 64 { |
| 17899 | return ErrIntOverflowRpc |
| 17900 | } |
| 17901 | if iNdEx >= l { |
| 17902 | return io.ErrUnexpectedEOF |
| 17903 | } |
| 17904 | b := dAtA[iNdEx] |
| 17905 | iNdEx++ |
| 17906 | m.Hash |= uint32(b&0x7F) << shift |
| 17907 | if b < 0x80 { |
| 17908 | break |
| 17909 | } |
| 17910 | } |
| 17911 | case 3: |
| 17912 | if wireType != 0 { |
| 17913 | return fmt.Errorf("proto: wrong wireType = %d for field CompactRevision", wireType) |
| 17914 | } |
| 17915 | m.CompactRevision = 0 |
| 17916 | for shift := uint(0); ; shift += 7 { |
| 17917 | if shift >= 64 { |
| 17918 | return ErrIntOverflowRpc |
| 17919 | } |
| 17920 | if iNdEx >= l { |
| 17921 | return io.ErrUnexpectedEOF |
| 17922 | } |
| 17923 | b := dAtA[iNdEx] |
| 17924 | iNdEx++ |
| 17925 | m.CompactRevision |= int64(b&0x7F) << shift |
| 17926 | if b < 0x80 { |
| 17927 | break |
| 17928 | } |
| 17929 | } |
| 17930 | case 4: |
| 17931 | if wireType != 0 { |
| 17932 | return fmt.Errorf("proto: wrong wireType = %d for field HashRevision", wireType) |
| 17933 | } |
| 17934 | m.HashRevision = 0 |
| 17935 | for shift := uint(0); ; shift += 7 { |
| 17936 | if shift >= 64 { |
| 17937 | return ErrIntOverflowRpc |
| 17938 | } |
| 17939 | if iNdEx >= l { |
| 17940 | return io.ErrUnexpectedEOF |
| 17941 | } |
| 17942 | b := dAtA[iNdEx] |
| 17943 | iNdEx++ |
| 17944 | m.HashRevision |= int64(b&0x7F) << shift |
| 17945 | if b < 0x80 { |
| 17946 | break |
| 17947 | } |
| 17948 | } |
| 17949 | default: |
| 17950 | iNdEx = preIndex |
| 17951 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 17952 | if err != nil { |
| 17953 | return err |
| 17954 | } |
| 17955 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 17956 | return ErrInvalidLengthRpc |
| 17957 | } |
| 17958 | if (iNdEx + skippy) > l { |
| 17959 | return io.ErrUnexpectedEOF |
| 17960 | } |
| 17961 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 17962 | iNdEx += skippy |
| 17963 | } |
| 17964 | } |
| 17965 | |
| 17966 | if iNdEx > l { |
| 17967 | return io.ErrUnexpectedEOF |
| 17968 | } |
| 17969 | return nil |
| 17970 | } |
| 17971 | func (m *HashResponse) Unmarshal(dAtA []byte) error { |
| 17972 | l := len(dAtA) |
| 17973 | iNdEx := 0 |
| 17974 | for iNdEx < l { |
| 17975 | preIndex := iNdEx |
| 17976 | var wire uint64 |
| 17977 | for shift := uint(0); ; shift += 7 { |
| 17978 | if shift >= 64 { |
| 17979 | return ErrIntOverflowRpc |
| 17980 | } |
| 17981 | if iNdEx >= l { |
| 17982 | return io.ErrUnexpectedEOF |
| 17983 | } |
| 17984 | b := dAtA[iNdEx] |
| 17985 | iNdEx++ |
| 17986 | wire |= uint64(b&0x7F) << shift |
| 17987 | if b < 0x80 { |
| 17988 | break |
| 17989 | } |
| 17990 | } |
| 17991 | fieldNum := int32(wire >> 3) |
| 17992 | wireType := int(wire & 0x7) |
| 17993 | if wireType == 4 { |
| 17994 | return fmt.Errorf("proto: HashResponse: wiretype end group for non-group") |
| 17995 | } |
| 17996 | if fieldNum <= 0 { |
| 17997 | return fmt.Errorf("proto: HashResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 17998 | } |
| 17999 | switch fieldNum { |
| 18000 | case 1: |
| 18001 | if wireType != 2 { |
| 18002 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 18003 | } |
| 18004 | var msglen int |
| 18005 | for shift := uint(0); ; shift += 7 { |
| 18006 | if shift >= 64 { |
| 18007 | return ErrIntOverflowRpc |
| 18008 | } |
| 18009 | if iNdEx >= l { |
| 18010 | return io.ErrUnexpectedEOF |
| 18011 | } |
| 18012 | b := dAtA[iNdEx] |
| 18013 | iNdEx++ |
| 18014 | msglen |= int(b&0x7F) << shift |
| 18015 | if b < 0x80 { |
| 18016 | break |
| 18017 | } |
| 18018 | } |
| 18019 | if msglen < 0 { |
| 18020 | return ErrInvalidLengthRpc |
| 18021 | } |
| 18022 | postIndex := iNdEx + msglen |
| 18023 | if postIndex < 0 { |
| 18024 | return ErrInvalidLengthRpc |
| 18025 | } |
| 18026 | if postIndex > l { |
| 18027 | return io.ErrUnexpectedEOF |
| 18028 | } |
| 18029 | if m.Header == nil { |
| 18030 | m.Header = &ResponseHeader{} |
| 18031 | } |
| 18032 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 18033 | return err |
| 18034 | } |
| 18035 | iNdEx = postIndex |
| 18036 | case 2: |
| 18037 | if wireType != 0 { |
| 18038 | return fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType) |
| 18039 | } |
| 18040 | m.Hash = 0 |
| 18041 | for shift := uint(0); ; shift += 7 { |
| 18042 | if shift >= 64 { |
| 18043 | return ErrIntOverflowRpc |
| 18044 | } |
| 18045 | if iNdEx >= l { |
| 18046 | return io.ErrUnexpectedEOF |
| 18047 | } |
| 18048 | b := dAtA[iNdEx] |
| 18049 | iNdEx++ |
| 18050 | m.Hash |= uint32(b&0x7F) << shift |
| 18051 | if b < 0x80 { |
| 18052 | break |
| 18053 | } |
| 18054 | } |
| 18055 | default: |
| 18056 | iNdEx = preIndex |
| 18057 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 18058 | if err != nil { |
| 18059 | return err |
| 18060 | } |
| 18061 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 18062 | return ErrInvalidLengthRpc |
| 18063 | } |
| 18064 | if (iNdEx + skippy) > l { |
| 18065 | return io.ErrUnexpectedEOF |
| 18066 | } |
| 18067 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 18068 | iNdEx += skippy |
| 18069 | } |
| 18070 | } |
| 18071 | |
| 18072 | if iNdEx > l { |
| 18073 | return io.ErrUnexpectedEOF |
| 18074 | } |
| 18075 | return nil |
| 18076 | } |
| 18077 | func (m *SnapshotRequest) Unmarshal(dAtA []byte) error { |
| 18078 | l := len(dAtA) |
| 18079 | iNdEx := 0 |
| 18080 | for iNdEx < l { |
| 18081 | preIndex := iNdEx |
| 18082 | var wire uint64 |
| 18083 | for shift := uint(0); ; shift += 7 { |
| 18084 | if shift >= 64 { |
| 18085 | return ErrIntOverflowRpc |
| 18086 | } |
| 18087 | if iNdEx >= l { |
| 18088 | return io.ErrUnexpectedEOF |
| 18089 | } |
| 18090 | b := dAtA[iNdEx] |
| 18091 | iNdEx++ |
| 18092 | wire |= uint64(b&0x7F) << shift |
| 18093 | if b < 0x80 { |
| 18094 | break |
| 18095 | } |
| 18096 | } |
| 18097 | fieldNum := int32(wire >> 3) |
| 18098 | wireType := int(wire & 0x7) |
| 18099 | if wireType == 4 { |
| 18100 | return fmt.Errorf("proto: SnapshotRequest: wiretype end group for non-group") |
| 18101 | } |
| 18102 | if fieldNum <= 0 { |
| 18103 | return fmt.Errorf("proto: SnapshotRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 18104 | } |
| 18105 | switch fieldNum { |
| 18106 | default: |
| 18107 | iNdEx = preIndex |
| 18108 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 18109 | if err != nil { |
| 18110 | return err |
| 18111 | } |
| 18112 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 18113 | return ErrInvalidLengthRpc |
| 18114 | } |
| 18115 | if (iNdEx + skippy) > l { |
| 18116 | return io.ErrUnexpectedEOF |
| 18117 | } |
| 18118 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 18119 | iNdEx += skippy |
| 18120 | } |
| 18121 | } |
| 18122 | |
| 18123 | if iNdEx > l { |
| 18124 | return io.ErrUnexpectedEOF |
| 18125 | } |
| 18126 | return nil |
| 18127 | } |
| 18128 | func (m *SnapshotResponse) Unmarshal(dAtA []byte) error { |
| 18129 | l := len(dAtA) |
| 18130 | iNdEx := 0 |
| 18131 | for iNdEx < l { |
| 18132 | preIndex := iNdEx |
| 18133 | var wire uint64 |
| 18134 | for shift := uint(0); ; shift += 7 { |
| 18135 | if shift >= 64 { |
| 18136 | return ErrIntOverflowRpc |
| 18137 | } |
| 18138 | if iNdEx >= l { |
| 18139 | return io.ErrUnexpectedEOF |
| 18140 | } |
| 18141 | b := dAtA[iNdEx] |
| 18142 | iNdEx++ |
| 18143 | wire |= uint64(b&0x7F) << shift |
| 18144 | if b < 0x80 { |
| 18145 | break |
| 18146 | } |
| 18147 | } |
| 18148 | fieldNum := int32(wire >> 3) |
| 18149 | wireType := int(wire & 0x7) |
| 18150 | if wireType == 4 { |
| 18151 | return fmt.Errorf("proto: SnapshotResponse: wiretype end group for non-group") |
| 18152 | } |
| 18153 | if fieldNum <= 0 { |
| 18154 | return fmt.Errorf("proto: SnapshotResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 18155 | } |
| 18156 | switch fieldNum { |
| 18157 | case 1: |
| 18158 | if wireType != 2 { |
| 18159 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 18160 | } |
| 18161 | var msglen int |
| 18162 | for shift := uint(0); ; shift += 7 { |
| 18163 | if shift >= 64 { |
| 18164 | return ErrIntOverflowRpc |
| 18165 | } |
| 18166 | if iNdEx >= l { |
| 18167 | return io.ErrUnexpectedEOF |
| 18168 | } |
| 18169 | b := dAtA[iNdEx] |
| 18170 | iNdEx++ |
| 18171 | msglen |= int(b&0x7F) << shift |
| 18172 | if b < 0x80 { |
| 18173 | break |
| 18174 | } |
| 18175 | } |
| 18176 | if msglen < 0 { |
| 18177 | return ErrInvalidLengthRpc |
| 18178 | } |
| 18179 | postIndex := iNdEx + msglen |
| 18180 | if postIndex < 0 { |
| 18181 | return ErrInvalidLengthRpc |
| 18182 | } |
| 18183 | if postIndex > l { |
| 18184 | return io.ErrUnexpectedEOF |
| 18185 | } |
| 18186 | if m.Header == nil { |
| 18187 | m.Header = &ResponseHeader{} |
| 18188 | } |
| 18189 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 18190 | return err |
| 18191 | } |
| 18192 | iNdEx = postIndex |
| 18193 | case 2: |
| 18194 | if wireType != 0 { |
| 18195 | return fmt.Errorf("proto: wrong wireType = %d for field RemainingBytes", wireType) |
| 18196 | } |
| 18197 | m.RemainingBytes = 0 |
| 18198 | for shift := uint(0); ; shift += 7 { |
| 18199 | if shift >= 64 { |
| 18200 | return ErrIntOverflowRpc |
| 18201 | } |
| 18202 | if iNdEx >= l { |
| 18203 | return io.ErrUnexpectedEOF |
| 18204 | } |
| 18205 | b := dAtA[iNdEx] |
| 18206 | iNdEx++ |
| 18207 | m.RemainingBytes |= uint64(b&0x7F) << shift |
| 18208 | if b < 0x80 { |
| 18209 | break |
| 18210 | } |
| 18211 | } |
| 18212 | case 3: |
| 18213 | if wireType != 2 { |
| 18214 | return fmt.Errorf("proto: wrong wireType = %d for field Blob", wireType) |
| 18215 | } |
| 18216 | var byteLen int |
| 18217 | for shift := uint(0); ; shift += 7 { |
| 18218 | if shift >= 64 { |
| 18219 | return ErrIntOverflowRpc |
| 18220 | } |
| 18221 | if iNdEx >= l { |
| 18222 | return io.ErrUnexpectedEOF |
| 18223 | } |
| 18224 | b := dAtA[iNdEx] |
| 18225 | iNdEx++ |
| 18226 | byteLen |= int(b&0x7F) << shift |
| 18227 | if b < 0x80 { |
| 18228 | break |
| 18229 | } |
| 18230 | } |
| 18231 | if byteLen < 0 { |
| 18232 | return ErrInvalidLengthRpc |
| 18233 | } |
| 18234 | postIndex := iNdEx + byteLen |
| 18235 | if postIndex < 0 { |
| 18236 | return ErrInvalidLengthRpc |
| 18237 | } |
| 18238 | if postIndex > l { |
| 18239 | return io.ErrUnexpectedEOF |
| 18240 | } |
| 18241 | m.Blob = append(m.Blob[:0], dAtA[iNdEx:postIndex]...) |
| 18242 | if m.Blob == nil { |
| 18243 | m.Blob = []byte{} |
| 18244 | } |
| 18245 | iNdEx = postIndex |
| 18246 | case 4: |
| 18247 | if wireType != 2 { |
| 18248 | return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) |
| 18249 | } |
| 18250 | var stringLen uint64 |
| 18251 | for shift := uint(0); ; shift += 7 { |
| 18252 | if shift >= 64 { |
| 18253 | return ErrIntOverflowRpc |
| 18254 | } |
| 18255 | if iNdEx >= l { |
| 18256 | return io.ErrUnexpectedEOF |
| 18257 | } |
| 18258 | b := dAtA[iNdEx] |
| 18259 | iNdEx++ |
| 18260 | stringLen |= uint64(b&0x7F) << shift |
| 18261 | if b < 0x80 { |
| 18262 | break |
| 18263 | } |
| 18264 | } |
| 18265 | intStringLen := int(stringLen) |
| 18266 | if intStringLen < 0 { |
| 18267 | return ErrInvalidLengthRpc |
| 18268 | } |
| 18269 | postIndex := iNdEx + intStringLen |
| 18270 | if postIndex < 0 { |
| 18271 | return ErrInvalidLengthRpc |
| 18272 | } |
| 18273 | if postIndex > l { |
| 18274 | return io.ErrUnexpectedEOF |
| 18275 | } |
| 18276 | m.Version = string(dAtA[iNdEx:postIndex]) |
| 18277 | iNdEx = postIndex |
| 18278 | default: |
| 18279 | iNdEx = preIndex |
| 18280 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 18281 | if err != nil { |
| 18282 | return err |
| 18283 | } |
| 18284 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 18285 | return ErrInvalidLengthRpc |
| 18286 | } |
| 18287 | if (iNdEx + skippy) > l { |
| 18288 | return io.ErrUnexpectedEOF |
| 18289 | } |
| 18290 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 18291 | iNdEx += skippy |
| 18292 | } |
| 18293 | } |
| 18294 | |
| 18295 | if iNdEx > l { |
| 18296 | return io.ErrUnexpectedEOF |
| 18297 | } |
| 18298 | return nil |
| 18299 | } |
| 18300 | func (m *WatchRequest) Unmarshal(dAtA []byte) error { |
| 18301 | l := len(dAtA) |
| 18302 | iNdEx := 0 |
| 18303 | for iNdEx < l { |
| 18304 | preIndex := iNdEx |
| 18305 | var wire uint64 |
| 18306 | for shift := uint(0); ; shift += 7 { |
| 18307 | if shift >= 64 { |
| 18308 | return ErrIntOverflowRpc |
| 18309 | } |
| 18310 | if iNdEx >= l { |
| 18311 | return io.ErrUnexpectedEOF |
| 18312 | } |
| 18313 | b := dAtA[iNdEx] |
| 18314 | iNdEx++ |
| 18315 | wire |= uint64(b&0x7F) << shift |
| 18316 | if b < 0x80 { |
| 18317 | break |
| 18318 | } |
| 18319 | } |
| 18320 | fieldNum := int32(wire >> 3) |
| 18321 | wireType := int(wire & 0x7) |
| 18322 | if wireType == 4 { |
| 18323 | return fmt.Errorf("proto: WatchRequest: wiretype end group for non-group") |
| 18324 | } |
| 18325 | if fieldNum <= 0 { |
| 18326 | return fmt.Errorf("proto: WatchRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 18327 | } |
| 18328 | switch fieldNum { |
| 18329 | case 1: |
| 18330 | if wireType != 2 { |
| 18331 | return fmt.Errorf("proto: wrong wireType = %d for field CreateRequest", wireType) |
| 18332 | } |
| 18333 | var msglen int |
| 18334 | for shift := uint(0); ; shift += 7 { |
| 18335 | if shift >= 64 { |
| 18336 | return ErrIntOverflowRpc |
| 18337 | } |
| 18338 | if iNdEx >= l { |
| 18339 | return io.ErrUnexpectedEOF |
| 18340 | } |
| 18341 | b := dAtA[iNdEx] |
| 18342 | iNdEx++ |
| 18343 | msglen |= int(b&0x7F) << shift |
| 18344 | if b < 0x80 { |
| 18345 | break |
| 18346 | } |
| 18347 | } |
| 18348 | if msglen < 0 { |
| 18349 | return ErrInvalidLengthRpc |
| 18350 | } |
| 18351 | postIndex := iNdEx + msglen |
| 18352 | if postIndex < 0 { |
| 18353 | return ErrInvalidLengthRpc |
| 18354 | } |
| 18355 | if postIndex > l { |
| 18356 | return io.ErrUnexpectedEOF |
| 18357 | } |
| 18358 | v := &WatchCreateRequest{} |
| 18359 | if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 18360 | return err |
| 18361 | } |
| 18362 | m.RequestUnion = &WatchRequest_CreateRequest{v} |
| 18363 | iNdEx = postIndex |
| 18364 | case 2: |
| 18365 | if wireType != 2 { |
| 18366 | return fmt.Errorf("proto: wrong wireType = %d for field CancelRequest", wireType) |
| 18367 | } |
| 18368 | var msglen int |
| 18369 | for shift := uint(0); ; shift += 7 { |
| 18370 | if shift >= 64 { |
| 18371 | return ErrIntOverflowRpc |
| 18372 | } |
| 18373 | if iNdEx >= l { |
| 18374 | return io.ErrUnexpectedEOF |
| 18375 | } |
| 18376 | b := dAtA[iNdEx] |
| 18377 | iNdEx++ |
| 18378 | msglen |= int(b&0x7F) << shift |
| 18379 | if b < 0x80 { |
| 18380 | break |
| 18381 | } |
| 18382 | } |
| 18383 | if msglen < 0 { |
| 18384 | return ErrInvalidLengthRpc |
| 18385 | } |
| 18386 | postIndex := iNdEx + msglen |
| 18387 | if postIndex < 0 { |
| 18388 | return ErrInvalidLengthRpc |
| 18389 | } |
| 18390 | if postIndex > l { |
| 18391 | return io.ErrUnexpectedEOF |
| 18392 | } |
| 18393 | v := &WatchCancelRequest{} |
| 18394 | if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 18395 | return err |
| 18396 | } |
| 18397 | m.RequestUnion = &WatchRequest_CancelRequest{v} |
| 18398 | iNdEx = postIndex |
| 18399 | case 3: |
| 18400 | if wireType != 2 { |
| 18401 | return fmt.Errorf("proto: wrong wireType = %d for field ProgressRequest", wireType) |
| 18402 | } |
| 18403 | var msglen int |
| 18404 | for shift := uint(0); ; shift += 7 { |
| 18405 | if shift >= 64 { |
| 18406 | return ErrIntOverflowRpc |
| 18407 | } |
| 18408 | if iNdEx >= l { |
| 18409 | return io.ErrUnexpectedEOF |
| 18410 | } |
| 18411 | b := dAtA[iNdEx] |
| 18412 | iNdEx++ |
| 18413 | msglen |= int(b&0x7F) << shift |
| 18414 | if b < 0x80 { |
| 18415 | break |
| 18416 | } |
| 18417 | } |
| 18418 | if msglen < 0 { |
| 18419 | return ErrInvalidLengthRpc |
| 18420 | } |
| 18421 | postIndex := iNdEx + msglen |
| 18422 | if postIndex < 0 { |
| 18423 | return ErrInvalidLengthRpc |
| 18424 | } |
| 18425 | if postIndex > l { |
| 18426 | return io.ErrUnexpectedEOF |
| 18427 | } |
| 18428 | v := &WatchProgressRequest{} |
| 18429 | if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 18430 | return err |
| 18431 | } |
| 18432 | m.RequestUnion = &WatchRequest_ProgressRequest{v} |
| 18433 | iNdEx = postIndex |
| 18434 | default: |
| 18435 | iNdEx = preIndex |
| 18436 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 18437 | if err != nil { |
| 18438 | return err |
| 18439 | } |
| 18440 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 18441 | return ErrInvalidLengthRpc |
| 18442 | } |
| 18443 | if (iNdEx + skippy) > l { |
| 18444 | return io.ErrUnexpectedEOF |
| 18445 | } |
| 18446 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 18447 | iNdEx += skippy |
| 18448 | } |
| 18449 | } |
| 18450 | |
| 18451 | if iNdEx > l { |
| 18452 | return io.ErrUnexpectedEOF |
| 18453 | } |
| 18454 | return nil |
| 18455 | } |
| 18456 | func (m *WatchCreateRequest) Unmarshal(dAtA []byte) error { |
| 18457 | l := len(dAtA) |
| 18458 | iNdEx := 0 |
| 18459 | for iNdEx < l { |
| 18460 | preIndex := iNdEx |
| 18461 | var wire uint64 |
| 18462 | for shift := uint(0); ; shift += 7 { |
| 18463 | if shift >= 64 { |
| 18464 | return ErrIntOverflowRpc |
| 18465 | } |
| 18466 | if iNdEx >= l { |
| 18467 | return io.ErrUnexpectedEOF |
| 18468 | } |
| 18469 | b := dAtA[iNdEx] |
| 18470 | iNdEx++ |
| 18471 | wire |= uint64(b&0x7F) << shift |
| 18472 | if b < 0x80 { |
| 18473 | break |
| 18474 | } |
| 18475 | } |
| 18476 | fieldNum := int32(wire >> 3) |
| 18477 | wireType := int(wire & 0x7) |
| 18478 | if wireType == 4 { |
| 18479 | return fmt.Errorf("proto: WatchCreateRequest: wiretype end group for non-group") |
| 18480 | } |
| 18481 | if fieldNum <= 0 { |
| 18482 | return fmt.Errorf("proto: WatchCreateRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 18483 | } |
| 18484 | switch fieldNum { |
| 18485 | case 1: |
| 18486 | if wireType != 2 { |
| 18487 | return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) |
| 18488 | } |
| 18489 | var byteLen int |
| 18490 | for shift := uint(0); ; shift += 7 { |
| 18491 | if shift >= 64 { |
| 18492 | return ErrIntOverflowRpc |
| 18493 | } |
| 18494 | if iNdEx >= l { |
| 18495 | return io.ErrUnexpectedEOF |
| 18496 | } |
| 18497 | b := dAtA[iNdEx] |
| 18498 | iNdEx++ |
| 18499 | byteLen |= int(b&0x7F) << shift |
| 18500 | if b < 0x80 { |
| 18501 | break |
| 18502 | } |
| 18503 | } |
| 18504 | if byteLen < 0 { |
| 18505 | return ErrInvalidLengthRpc |
| 18506 | } |
| 18507 | postIndex := iNdEx + byteLen |
| 18508 | if postIndex < 0 { |
| 18509 | return ErrInvalidLengthRpc |
| 18510 | } |
| 18511 | if postIndex > l { |
| 18512 | return io.ErrUnexpectedEOF |
| 18513 | } |
| 18514 | m.Key = append(m.Key[:0], dAtA[iNdEx:postIndex]...) |
| 18515 | if m.Key == nil { |
| 18516 | m.Key = []byte{} |
| 18517 | } |
| 18518 | iNdEx = postIndex |
| 18519 | case 2: |
| 18520 | if wireType != 2 { |
| 18521 | return fmt.Errorf("proto: wrong wireType = %d for field RangeEnd", wireType) |
| 18522 | } |
| 18523 | var byteLen int |
| 18524 | for shift := uint(0); ; shift += 7 { |
| 18525 | if shift >= 64 { |
| 18526 | return ErrIntOverflowRpc |
| 18527 | } |
| 18528 | if iNdEx >= l { |
| 18529 | return io.ErrUnexpectedEOF |
| 18530 | } |
| 18531 | b := dAtA[iNdEx] |
| 18532 | iNdEx++ |
| 18533 | byteLen |= int(b&0x7F) << shift |
| 18534 | if b < 0x80 { |
| 18535 | break |
| 18536 | } |
| 18537 | } |
| 18538 | if byteLen < 0 { |
| 18539 | return ErrInvalidLengthRpc |
| 18540 | } |
| 18541 | postIndex := iNdEx + byteLen |
| 18542 | if postIndex < 0 { |
| 18543 | return ErrInvalidLengthRpc |
| 18544 | } |
| 18545 | if postIndex > l { |
| 18546 | return io.ErrUnexpectedEOF |
| 18547 | } |
| 18548 | m.RangeEnd = append(m.RangeEnd[:0], dAtA[iNdEx:postIndex]...) |
| 18549 | if m.RangeEnd == nil { |
| 18550 | m.RangeEnd = []byte{} |
| 18551 | } |
| 18552 | iNdEx = postIndex |
| 18553 | case 3: |
| 18554 | if wireType != 0 { |
| 18555 | return fmt.Errorf("proto: wrong wireType = %d for field StartRevision", wireType) |
| 18556 | } |
| 18557 | m.StartRevision = 0 |
| 18558 | for shift := uint(0); ; shift += 7 { |
| 18559 | if shift >= 64 { |
| 18560 | return ErrIntOverflowRpc |
| 18561 | } |
| 18562 | if iNdEx >= l { |
| 18563 | return io.ErrUnexpectedEOF |
| 18564 | } |
| 18565 | b := dAtA[iNdEx] |
| 18566 | iNdEx++ |
| 18567 | m.StartRevision |= int64(b&0x7F) << shift |
| 18568 | if b < 0x80 { |
| 18569 | break |
| 18570 | } |
| 18571 | } |
| 18572 | case 4: |
| 18573 | if wireType != 0 { |
| 18574 | return fmt.Errorf("proto: wrong wireType = %d for field ProgressNotify", wireType) |
| 18575 | } |
| 18576 | var v int |
| 18577 | for shift := uint(0); ; shift += 7 { |
| 18578 | if shift >= 64 { |
| 18579 | return ErrIntOverflowRpc |
| 18580 | } |
| 18581 | if iNdEx >= l { |
| 18582 | return io.ErrUnexpectedEOF |
| 18583 | } |
| 18584 | b := dAtA[iNdEx] |
| 18585 | iNdEx++ |
| 18586 | v |= int(b&0x7F) << shift |
| 18587 | if b < 0x80 { |
| 18588 | break |
| 18589 | } |
| 18590 | } |
| 18591 | m.ProgressNotify = bool(v != 0) |
| 18592 | case 5: |
| 18593 | if wireType == 0 { |
| 18594 | var v WatchCreateRequest_FilterType |
| 18595 | for shift := uint(0); ; shift += 7 { |
| 18596 | if shift >= 64 { |
| 18597 | return ErrIntOverflowRpc |
| 18598 | } |
| 18599 | if iNdEx >= l { |
| 18600 | return io.ErrUnexpectedEOF |
| 18601 | } |
| 18602 | b := dAtA[iNdEx] |
| 18603 | iNdEx++ |
| 18604 | v |= WatchCreateRequest_FilterType(b&0x7F) << shift |
| 18605 | if b < 0x80 { |
| 18606 | break |
| 18607 | } |
| 18608 | } |
| 18609 | m.Filters = append(m.Filters, v) |
| 18610 | } else if wireType == 2 { |
| 18611 | var packedLen int |
| 18612 | for shift := uint(0); ; shift += 7 { |
| 18613 | if shift >= 64 { |
| 18614 | return ErrIntOverflowRpc |
| 18615 | } |
| 18616 | if iNdEx >= l { |
| 18617 | return io.ErrUnexpectedEOF |
| 18618 | } |
| 18619 | b := dAtA[iNdEx] |
| 18620 | iNdEx++ |
| 18621 | packedLen |= int(b&0x7F) << shift |
| 18622 | if b < 0x80 { |
| 18623 | break |
| 18624 | } |
| 18625 | } |
| 18626 | if packedLen < 0 { |
| 18627 | return ErrInvalidLengthRpc |
| 18628 | } |
| 18629 | postIndex := iNdEx + packedLen |
| 18630 | if postIndex < 0 { |
| 18631 | return ErrInvalidLengthRpc |
| 18632 | } |
| 18633 | if postIndex > l { |
| 18634 | return io.ErrUnexpectedEOF |
| 18635 | } |
| 18636 | var elementCount int |
| 18637 | if elementCount != 0 && len(m.Filters) == 0 { |
| 18638 | m.Filters = make([]WatchCreateRequest_FilterType, 0, elementCount) |
| 18639 | } |
| 18640 | for iNdEx < postIndex { |
| 18641 | var v WatchCreateRequest_FilterType |
| 18642 | for shift := uint(0); ; shift += 7 { |
| 18643 | if shift >= 64 { |
| 18644 | return ErrIntOverflowRpc |
| 18645 | } |
| 18646 | if iNdEx >= l { |
| 18647 | return io.ErrUnexpectedEOF |
| 18648 | } |
| 18649 | b := dAtA[iNdEx] |
| 18650 | iNdEx++ |
| 18651 | v |= WatchCreateRequest_FilterType(b&0x7F) << shift |
| 18652 | if b < 0x80 { |
| 18653 | break |
| 18654 | } |
| 18655 | } |
| 18656 | m.Filters = append(m.Filters, v) |
| 18657 | } |
| 18658 | } else { |
| 18659 | return fmt.Errorf("proto: wrong wireType = %d for field Filters", wireType) |
| 18660 | } |
| 18661 | case 6: |
| 18662 | if wireType != 0 { |
| 18663 | return fmt.Errorf("proto: wrong wireType = %d for field PrevKv", wireType) |
| 18664 | } |
| 18665 | var v int |
| 18666 | for shift := uint(0); ; shift += 7 { |
| 18667 | if shift >= 64 { |
| 18668 | return ErrIntOverflowRpc |
| 18669 | } |
| 18670 | if iNdEx >= l { |
| 18671 | return io.ErrUnexpectedEOF |
| 18672 | } |
| 18673 | b := dAtA[iNdEx] |
| 18674 | iNdEx++ |
| 18675 | v |= int(b&0x7F) << shift |
| 18676 | if b < 0x80 { |
| 18677 | break |
| 18678 | } |
| 18679 | } |
| 18680 | m.PrevKv = bool(v != 0) |
| 18681 | case 7: |
| 18682 | if wireType != 0 { |
| 18683 | return fmt.Errorf("proto: wrong wireType = %d for field WatchId", wireType) |
| 18684 | } |
| 18685 | m.WatchId = 0 |
| 18686 | for shift := uint(0); ; shift += 7 { |
| 18687 | if shift >= 64 { |
| 18688 | return ErrIntOverflowRpc |
| 18689 | } |
| 18690 | if iNdEx >= l { |
| 18691 | return io.ErrUnexpectedEOF |
| 18692 | } |
| 18693 | b := dAtA[iNdEx] |
| 18694 | iNdEx++ |
| 18695 | m.WatchId |= int64(b&0x7F) << shift |
| 18696 | if b < 0x80 { |
| 18697 | break |
| 18698 | } |
| 18699 | } |
| 18700 | case 8: |
| 18701 | if wireType != 0 { |
| 18702 | return fmt.Errorf("proto: wrong wireType = %d for field Fragment", wireType) |
| 18703 | } |
| 18704 | var v int |
| 18705 | for shift := uint(0); ; shift += 7 { |
| 18706 | if shift >= 64 { |
| 18707 | return ErrIntOverflowRpc |
| 18708 | } |
| 18709 | if iNdEx >= l { |
| 18710 | return io.ErrUnexpectedEOF |
| 18711 | } |
| 18712 | b := dAtA[iNdEx] |
| 18713 | iNdEx++ |
| 18714 | v |= int(b&0x7F) << shift |
| 18715 | if b < 0x80 { |
| 18716 | break |
| 18717 | } |
| 18718 | } |
| 18719 | m.Fragment = bool(v != 0) |
| 18720 | default: |
| 18721 | iNdEx = preIndex |
| 18722 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 18723 | if err != nil { |
| 18724 | return err |
| 18725 | } |
| 18726 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 18727 | return ErrInvalidLengthRpc |
| 18728 | } |
| 18729 | if (iNdEx + skippy) > l { |
| 18730 | return io.ErrUnexpectedEOF |
| 18731 | } |
| 18732 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 18733 | iNdEx += skippy |
| 18734 | } |
| 18735 | } |
| 18736 | |
| 18737 | if iNdEx > l { |
| 18738 | return io.ErrUnexpectedEOF |
| 18739 | } |
| 18740 | return nil |
| 18741 | } |
| 18742 | func (m *WatchCancelRequest) Unmarshal(dAtA []byte) error { |
| 18743 | l := len(dAtA) |
| 18744 | iNdEx := 0 |
| 18745 | for iNdEx < l { |
| 18746 | preIndex := iNdEx |
| 18747 | var wire uint64 |
| 18748 | for shift := uint(0); ; shift += 7 { |
| 18749 | if shift >= 64 { |
| 18750 | return ErrIntOverflowRpc |
| 18751 | } |
| 18752 | if iNdEx >= l { |
| 18753 | return io.ErrUnexpectedEOF |
| 18754 | } |
| 18755 | b := dAtA[iNdEx] |
| 18756 | iNdEx++ |
| 18757 | wire |= uint64(b&0x7F) << shift |
| 18758 | if b < 0x80 { |
| 18759 | break |
| 18760 | } |
| 18761 | } |
| 18762 | fieldNum := int32(wire >> 3) |
| 18763 | wireType := int(wire & 0x7) |
| 18764 | if wireType == 4 { |
| 18765 | return fmt.Errorf("proto: WatchCancelRequest: wiretype end group for non-group") |
| 18766 | } |
| 18767 | if fieldNum <= 0 { |
| 18768 | return fmt.Errorf("proto: WatchCancelRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 18769 | } |
| 18770 | switch fieldNum { |
| 18771 | case 1: |
| 18772 | if wireType != 0 { |
| 18773 | return fmt.Errorf("proto: wrong wireType = %d for field WatchId", wireType) |
| 18774 | } |
| 18775 | m.WatchId = 0 |
| 18776 | for shift := uint(0); ; shift += 7 { |
| 18777 | if shift >= 64 { |
| 18778 | return ErrIntOverflowRpc |
| 18779 | } |
| 18780 | if iNdEx >= l { |
| 18781 | return io.ErrUnexpectedEOF |
| 18782 | } |
| 18783 | b := dAtA[iNdEx] |
| 18784 | iNdEx++ |
| 18785 | m.WatchId |= int64(b&0x7F) << shift |
| 18786 | if b < 0x80 { |
| 18787 | break |
| 18788 | } |
| 18789 | } |
| 18790 | default: |
| 18791 | iNdEx = preIndex |
| 18792 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 18793 | if err != nil { |
| 18794 | return err |
| 18795 | } |
| 18796 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 18797 | return ErrInvalidLengthRpc |
| 18798 | } |
| 18799 | if (iNdEx + skippy) > l { |
| 18800 | return io.ErrUnexpectedEOF |
| 18801 | } |
| 18802 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 18803 | iNdEx += skippy |
| 18804 | } |
| 18805 | } |
| 18806 | |
| 18807 | if iNdEx > l { |
| 18808 | return io.ErrUnexpectedEOF |
| 18809 | } |
| 18810 | return nil |
| 18811 | } |
| 18812 | func (m *WatchProgressRequest) 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: WatchProgressRequest: wiretype end group for non-group") |
| 18836 | } |
| 18837 | if fieldNum <= 0 { |
| 18838 | return fmt.Errorf("proto: WatchProgressRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 18839 | } |
| 18840 | switch fieldNum { |
| 18841 | default: |
| 18842 | iNdEx = preIndex |
| 18843 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 18844 | if err != nil { |
| 18845 | return err |
| 18846 | } |
| 18847 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 18848 | return ErrInvalidLengthRpc |
| 18849 | } |
| 18850 | if (iNdEx + skippy) > l { |
| 18851 | return io.ErrUnexpectedEOF |
| 18852 | } |
| 18853 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 18854 | iNdEx += skippy |
| 18855 | } |
| 18856 | } |
| 18857 | |
| 18858 | if iNdEx > l { |
| 18859 | return io.ErrUnexpectedEOF |
| 18860 | } |
| 18861 | return nil |
| 18862 | } |
| 18863 | func (m *WatchResponse) Unmarshal(dAtA []byte) error { |
| 18864 | l := len(dAtA) |
| 18865 | iNdEx := 0 |
| 18866 | for iNdEx < l { |
| 18867 | preIndex := iNdEx |
| 18868 | var wire uint64 |
| 18869 | for shift := uint(0); ; shift += 7 { |
| 18870 | if shift >= 64 { |
| 18871 | return ErrIntOverflowRpc |
| 18872 | } |
| 18873 | if iNdEx >= l { |
| 18874 | return io.ErrUnexpectedEOF |
| 18875 | } |
| 18876 | b := dAtA[iNdEx] |
| 18877 | iNdEx++ |
| 18878 | wire |= uint64(b&0x7F) << shift |
| 18879 | if b < 0x80 { |
| 18880 | break |
| 18881 | } |
| 18882 | } |
| 18883 | fieldNum := int32(wire >> 3) |
| 18884 | wireType := int(wire & 0x7) |
| 18885 | if wireType == 4 { |
| 18886 | return fmt.Errorf("proto: WatchResponse: wiretype end group for non-group") |
| 18887 | } |
| 18888 | if fieldNum <= 0 { |
| 18889 | return fmt.Errorf("proto: WatchResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 18890 | } |
| 18891 | switch fieldNum { |
| 18892 | case 1: |
| 18893 | if wireType != 2 { |
| 18894 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 18895 | } |
| 18896 | var msglen int |
| 18897 | for shift := uint(0); ; shift += 7 { |
| 18898 | if shift >= 64 { |
| 18899 | return ErrIntOverflowRpc |
| 18900 | } |
| 18901 | if iNdEx >= l { |
| 18902 | return io.ErrUnexpectedEOF |
| 18903 | } |
| 18904 | b := dAtA[iNdEx] |
| 18905 | iNdEx++ |
| 18906 | msglen |= int(b&0x7F) << shift |
| 18907 | if b < 0x80 { |
| 18908 | break |
| 18909 | } |
| 18910 | } |
| 18911 | if msglen < 0 { |
| 18912 | return ErrInvalidLengthRpc |
| 18913 | } |
| 18914 | postIndex := iNdEx + msglen |
| 18915 | if postIndex < 0 { |
| 18916 | return ErrInvalidLengthRpc |
| 18917 | } |
| 18918 | if postIndex > l { |
| 18919 | return io.ErrUnexpectedEOF |
| 18920 | } |
| 18921 | if m.Header == nil { |
| 18922 | m.Header = &ResponseHeader{} |
| 18923 | } |
| 18924 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 18925 | return err |
| 18926 | } |
| 18927 | iNdEx = postIndex |
| 18928 | case 2: |
| 18929 | if wireType != 0 { |
| 18930 | return fmt.Errorf("proto: wrong wireType = %d for field WatchId", wireType) |
| 18931 | } |
| 18932 | m.WatchId = 0 |
| 18933 | for shift := uint(0); ; shift += 7 { |
| 18934 | if shift >= 64 { |
| 18935 | return ErrIntOverflowRpc |
| 18936 | } |
| 18937 | if iNdEx >= l { |
| 18938 | return io.ErrUnexpectedEOF |
| 18939 | } |
| 18940 | b := dAtA[iNdEx] |
| 18941 | iNdEx++ |
| 18942 | m.WatchId |= int64(b&0x7F) << shift |
| 18943 | if b < 0x80 { |
| 18944 | break |
| 18945 | } |
| 18946 | } |
| 18947 | case 3: |
| 18948 | if wireType != 0 { |
| 18949 | return fmt.Errorf("proto: wrong wireType = %d for field Created", wireType) |
| 18950 | } |
| 18951 | var v int |
| 18952 | for shift := uint(0); ; shift += 7 { |
| 18953 | if shift >= 64 { |
| 18954 | return ErrIntOverflowRpc |
| 18955 | } |
| 18956 | if iNdEx >= l { |
| 18957 | return io.ErrUnexpectedEOF |
| 18958 | } |
| 18959 | b := dAtA[iNdEx] |
| 18960 | iNdEx++ |
| 18961 | v |= int(b&0x7F) << shift |
| 18962 | if b < 0x80 { |
| 18963 | break |
| 18964 | } |
| 18965 | } |
| 18966 | m.Created = bool(v != 0) |
| 18967 | case 4: |
| 18968 | if wireType != 0 { |
| 18969 | return fmt.Errorf("proto: wrong wireType = %d for field Canceled", wireType) |
| 18970 | } |
| 18971 | var v int |
| 18972 | for shift := uint(0); ; shift += 7 { |
| 18973 | if shift >= 64 { |
| 18974 | return ErrIntOverflowRpc |
| 18975 | } |
| 18976 | if iNdEx >= l { |
| 18977 | return io.ErrUnexpectedEOF |
| 18978 | } |
| 18979 | b := dAtA[iNdEx] |
| 18980 | iNdEx++ |
| 18981 | v |= int(b&0x7F) << shift |
| 18982 | if b < 0x80 { |
| 18983 | break |
| 18984 | } |
| 18985 | } |
| 18986 | m.Canceled = bool(v != 0) |
| 18987 | case 5: |
| 18988 | if wireType != 0 { |
| 18989 | return fmt.Errorf("proto: wrong wireType = %d for field CompactRevision", wireType) |
| 18990 | } |
| 18991 | m.CompactRevision = 0 |
| 18992 | for shift := uint(0); ; shift += 7 { |
| 18993 | if shift >= 64 { |
| 18994 | return ErrIntOverflowRpc |
| 18995 | } |
| 18996 | if iNdEx >= l { |
| 18997 | return io.ErrUnexpectedEOF |
| 18998 | } |
| 18999 | b := dAtA[iNdEx] |
| 19000 | iNdEx++ |
| 19001 | m.CompactRevision |= int64(b&0x7F) << shift |
| 19002 | if b < 0x80 { |
| 19003 | break |
| 19004 | } |
| 19005 | } |
| 19006 | case 6: |
| 19007 | if wireType != 2 { |
| 19008 | return fmt.Errorf("proto: wrong wireType = %d for field CancelReason", wireType) |
| 19009 | } |
| 19010 | var stringLen uint64 |
| 19011 | for shift := uint(0); ; shift += 7 { |
| 19012 | if shift >= 64 { |
| 19013 | return ErrIntOverflowRpc |
| 19014 | } |
| 19015 | if iNdEx >= l { |
| 19016 | return io.ErrUnexpectedEOF |
| 19017 | } |
| 19018 | b := dAtA[iNdEx] |
| 19019 | iNdEx++ |
| 19020 | stringLen |= uint64(b&0x7F) << shift |
| 19021 | if b < 0x80 { |
| 19022 | break |
| 19023 | } |
| 19024 | } |
| 19025 | intStringLen := int(stringLen) |
| 19026 | if intStringLen < 0 { |
| 19027 | return ErrInvalidLengthRpc |
| 19028 | } |
| 19029 | postIndex := iNdEx + intStringLen |
| 19030 | if postIndex < 0 { |
| 19031 | return ErrInvalidLengthRpc |
| 19032 | } |
| 19033 | if postIndex > l { |
| 19034 | return io.ErrUnexpectedEOF |
| 19035 | } |
| 19036 | m.CancelReason = string(dAtA[iNdEx:postIndex]) |
| 19037 | iNdEx = postIndex |
| 19038 | case 7: |
| 19039 | if wireType != 0 { |
| 19040 | return fmt.Errorf("proto: wrong wireType = %d for field Fragment", wireType) |
| 19041 | } |
| 19042 | var v int |
| 19043 | for shift := uint(0); ; shift += 7 { |
| 19044 | if shift >= 64 { |
| 19045 | return ErrIntOverflowRpc |
| 19046 | } |
| 19047 | if iNdEx >= l { |
| 19048 | return io.ErrUnexpectedEOF |
| 19049 | } |
| 19050 | b := dAtA[iNdEx] |
| 19051 | iNdEx++ |
| 19052 | v |= int(b&0x7F) << shift |
| 19053 | if b < 0x80 { |
| 19054 | break |
| 19055 | } |
| 19056 | } |
| 19057 | m.Fragment = bool(v != 0) |
| 19058 | case 11: |
| 19059 | if wireType != 2 { |
| 19060 | return fmt.Errorf("proto: wrong wireType = %d for field Events", wireType) |
| 19061 | } |
| 19062 | var msglen int |
| 19063 | for shift := uint(0); ; shift += 7 { |
| 19064 | if shift >= 64 { |
| 19065 | return ErrIntOverflowRpc |
| 19066 | } |
| 19067 | if iNdEx >= l { |
| 19068 | return io.ErrUnexpectedEOF |
| 19069 | } |
| 19070 | b := dAtA[iNdEx] |
| 19071 | iNdEx++ |
| 19072 | msglen |= int(b&0x7F) << shift |
| 19073 | if b < 0x80 { |
| 19074 | break |
| 19075 | } |
| 19076 | } |
| 19077 | if msglen < 0 { |
| 19078 | return ErrInvalidLengthRpc |
| 19079 | } |
| 19080 | postIndex := iNdEx + msglen |
| 19081 | if postIndex < 0 { |
| 19082 | return ErrInvalidLengthRpc |
| 19083 | } |
| 19084 | if postIndex > l { |
| 19085 | return io.ErrUnexpectedEOF |
| 19086 | } |
| 19087 | m.Events = append(m.Events, &mvccpb.Event{}) |
| 19088 | if err := m.Events[len(m.Events)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 19089 | return err |
| 19090 | } |
| 19091 | iNdEx = postIndex |
| 19092 | default: |
| 19093 | iNdEx = preIndex |
| 19094 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 19095 | if err != nil { |
| 19096 | return err |
| 19097 | } |
| 19098 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 19099 | return ErrInvalidLengthRpc |
| 19100 | } |
| 19101 | if (iNdEx + skippy) > l { |
| 19102 | return io.ErrUnexpectedEOF |
| 19103 | } |
| 19104 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 19105 | iNdEx += skippy |
| 19106 | } |
| 19107 | } |
| 19108 | |
| 19109 | if iNdEx > l { |
| 19110 | return io.ErrUnexpectedEOF |
| 19111 | } |
| 19112 | return nil |
| 19113 | } |
| 19114 | func (m *LeaseGrantRequest) Unmarshal(dAtA []byte) error { |
| 19115 | l := len(dAtA) |
| 19116 | iNdEx := 0 |
| 19117 | for iNdEx < l { |
| 19118 | preIndex := iNdEx |
| 19119 | var wire uint64 |
| 19120 | for shift := uint(0); ; shift += 7 { |
| 19121 | if shift >= 64 { |
| 19122 | return ErrIntOverflowRpc |
| 19123 | } |
| 19124 | if iNdEx >= l { |
| 19125 | return io.ErrUnexpectedEOF |
| 19126 | } |
| 19127 | b := dAtA[iNdEx] |
| 19128 | iNdEx++ |
| 19129 | wire |= uint64(b&0x7F) << shift |
| 19130 | if b < 0x80 { |
| 19131 | break |
| 19132 | } |
| 19133 | } |
| 19134 | fieldNum := int32(wire >> 3) |
| 19135 | wireType := int(wire & 0x7) |
| 19136 | if wireType == 4 { |
| 19137 | return fmt.Errorf("proto: LeaseGrantRequest: wiretype end group for non-group") |
| 19138 | } |
| 19139 | if fieldNum <= 0 { |
| 19140 | return fmt.Errorf("proto: LeaseGrantRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 19141 | } |
| 19142 | switch fieldNum { |
| 19143 | case 1: |
| 19144 | if wireType != 0 { |
| 19145 | return fmt.Errorf("proto: wrong wireType = %d for field TTL", wireType) |
| 19146 | } |
| 19147 | m.TTL = 0 |
| 19148 | for shift := uint(0); ; shift += 7 { |
| 19149 | if shift >= 64 { |
| 19150 | return ErrIntOverflowRpc |
| 19151 | } |
| 19152 | if iNdEx >= l { |
| 19153 | return io.ErrUnexpectedEOF |
| 19154 | } |
| 19155 | b := dAtA[iNdEx] |
| 19156 | iNdEx++ |
| 19157 | m.TTL |= int64(b&0x7F) << shift |
| 19158 | if b < 0x80 { |
| 19159 | break |
| 19160 | } |
| 19161 | } |
| 19162 | case 2: |
| 19163 | if wireType != 0 { |
| 19164 | return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) |
| 19165 | } |
| 19166 | m.ID = 0 |
| 19167 | for shift := uint(0); ; shift += 7 { |
| 19168 | if shift >= 64 { |
| 19169 | return ErrIntOverflowRpc |
| 19170 | } |
| 19171 | if iNdEx >= l { |
| 19172 | return io.ErrUnexpectedEOF |
| 19173 | } |
| 19174 | b := dAtA[iNdEx] |
| 19175 | iNdEx++ |
| 19176 | m.ID |= int64(b&0x7F) << shift |
| 19177 | if b < 0x80 { |
| 19178 | break |
| 19179 | } |
| 19180 | } |
| 19181 | default: |
| 19182 | iNdEx = preIndex |
| 19183 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 19184 | if err != nil { |
| 19185 | return err |
| 19186 | } |
| 19187 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 19188 | return ErrInvalidLengthRpc |
| 19189 | } |
| 19190 | if (iNdEx + skippy) > l { |
| 19191 | return io.ErrUnexpectedEOF |
| 19192 | } |
| 19193 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 19194 | iNdEx += skippy |
| 19195 | } |
| 19196 | } |
| 19197 | |
| 19198 | if iNdEx > l { |
| 19199 | return io.ErrUnexpectedEOF |
| 19200 | } |
| 19201 | return nil |
| 19202 | } |
| 19203 | func (m *LeaseGrantResponse) Unmarshal(dAtA []byte) error { |
| 19204 | l := len(dAtA) |
| 19205 | iNdEx := 0 |
| 19206 | for iNdEx < l { |
| 19207 | preIndex := iNdEx |
| 19208 | var wire uint64 |
| 19209 | for shift := uint(0); ; shift += 7 { |
| 19210 | if shift >= 64 { |
| 19211 | return ErrIntOverflowRpc |
| 19212 | } |
| 19213 | if iNdEx >= l { |
| 19214 | return io.ErrUnexpectedEOF |
| 19215 | } |
| 19216 | b := dAtA[iNdEx] |
| 19217 | iNdEx++ |
| 19218 | wire |= uint64(b&0x7F) << shift |
| 19219 | if b < 0x80 { |
| 19220 | break |
| 19221 | } |
| 19222 | } |
| 19223 | fieldNum := int32(wire >> 3) |
| 19224 | wireType := int(wire & 0x7) |
| 19225 | if wireType == 4 { |
| 19226 | return fmt.Errorf("proto: LeaseGrantResponse: wiretype end group for non-group") |
| 19227 | } |
| 19228 | if fieldNum <= 0 { |
| 19229 | return fmt.Errorf("proto: LeaseGrantResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 19230 | } |
| 19231 | switch fieldNum { |
| 19232 | case 1: |
| 19233 | if wireType != 2 { |
| 19234 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 19235 | } |
| 19236 | var msglen int |
| 19237 | for shift := uint(0); ; shift += 7 { |
| 19238 | if shift >= 64 { |
| 19239 | return ErrIntOverflowRpc |
| 19240 | } |
| 19241 | if iNdEx >= l { |
| 19242 | return io.ErrUnexpectedEOF |
| 19243 | } |
| 19244 | b := dAtA[iNdEx] |
| 19245 | iNdEx++ |
| 19246 | msglen |= int(b&0x7F) << shift |
| 19247 | if b < 0x80 { |
| 19248 | break |
| 19249 | } |
| 19250 | } |
| 19251 | if msglen < 0 { |
| 19252 | return ErrInvalidLengthRpc |
| 19253 | } |
| 19254 | postIndex := iNdEx + msglen |
| 19255 | if postIndex < 0 { |
| 19256 | return ErrInvalidLengthRpc |
| 19257 | } |
| 19258 | if postIndex > l { |
| 19259 | return io.ErrUnexpectedEOF |
| 19260 | } |
| 19261 | if m.Header == nil { |
| 19262 | m.Header = &ResponseHeader{} |
| 19263 | } |
| 19264 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 19265 | return err |
| 19266 | } |
| 19267 | iNdEx = postIndex |
| 19268 | case 2: |
| 19269 | if wireType != 0 { |
| 19270 | return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) |
| 19271 | } |
| 19272 | m.ID = 0 |
| 19273 | for shift := uint(0); ; shift += 7 { |
| 19274 | if shift >= 64 { |
| 19275 | return ErrIntOverflowRpc |
| 19276 | } |
| 19277 | if iNdEx >= l { |
| 19278 | return io.ErrUnexpectedEOF |
| 19279 | } |
| 19280 | b := dAtA[iNdEx] |
| 19281 | iNdEx++ |
| 19282 | m.ID |= int64(b&0x7F) << shift |
| 19283 | if b < 0x80 { |
| 19284 | break |
| 19285 | } |
| 19286 | } |
| 19287 | case 3: |
| 19288 | if wireType != 0 { |
| 19289 | return fmt.Errorf("proto: wrong wireType = %d for field TTL", wireType) |
| 19290 | } |
| 19291 | m.TTL = 0 |
| 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 | m.TTL |= int64(b&0x7F) << shift |
| 19302 | if b < 0x80 { |
| 19303 | break |
| 19304 | } |
| 19305 | } |
| 19306 | case 4: |
| 19307 | if wireType != 2 { |
| 19308 | return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType) |
| 19309 | } |
| 19310 | var stringLen uint64 |
| 19311 | for shift := uint(0); ; shift += 7 { |
| 19312 | if shift >= 64 { |
| 19313 | return ErrIntOverflowRpc |
| 19314 | } |
| 19315 | if iNdEx >= l { |
| 19316 | return io.ErrUnexpectedEOF |
| 19317 | } |
| 19318 | b := dAtA[iNdEx] |
| 19319 | iNdEx++ |
| 19320 | stringLen |= uint64(b&0x7F) << shift |
| 19321 | if b < 0x80 { |
| 19322 | break |
| 19323 | } |
| 19324 | } |
| 19325 | intStringLen := int(stringLen) |
| 19326 | if intStringLen < 0 { |
| 19327 | return ErrInvalidLengthRpc |
| 19328 | } |
| 19329 | postIndex := iNdEx + intStringLen |
| 19330 | if postIndex < 0 { |
| 19331 | return ErrInvalidLengthRpc |
| 19332 | } |
| 19333 | if postIndex > l { |
| 19334 | return io.ErrUnexpectedEOF |
| 19335 | } |
| 19336 | m.Error = string(dAtA[iNdEx:postIndex]) |
| 19337 | iNdEx = postIndex |
| 19338 | default: |
| 19339 | iNdEx = preIndex |
| 19340 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 19341 | if err != nil { |
| 19342 | return err |
| 19343 | } |
| 19344 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 19345 | return ErrInvalidLengthRpc |
| 19346 | } |
| 19347 | if (iNdEx + skippy) > l { |
| 19348 | return io.ErrUnexpectedEOF |
| 19349 | } |
| 19350 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 19351 | iNdEx += skippy |
| 19352 | } |
| 19353 | } |
| 19354 | |
| 19355 | if iNdEx > l { |
| 19356 | return io.ErrUnexpectedEOF |
| 19357 | } |
| 19358 | return nil |
| 19359 | } |
| 19360 | func (m *LeaseRevokeRequest) Unmarshal(dAtA []byte) error { |
| 19361 | l := len(dAtA) |
| 19362 | iNdEx := 0 |
| 19363 | for iNdEx < l { |
| 19364 | preIndex := iNdEx |
| 19365 | var wire uint64 |
| 19366 | for shift := uint(0); ; shift += 7 { |
| 19367 | if shift >= 64 { |
| 19368 | return ErrIntOverflowRpc |
| 19369 | } |
| 19370 | if iNdEx >= l { |
| 19371 | return io.ErrUnexpectedEOF |
| 19372 | } |
| 19373 | b := dAtA[iNdEx] |
| 19374 | iNdEx++ |
| 19375 | wire |= uint64(b&0x7F) << shift |
| 19376 | if b < 0x80 { |
| 19377 | break |
| 19378 | } |
| 19379 | } |
| 19380 | fieldNum := int32(wire >> 3) |
| 19381 | wireType := int(wire & 0x7) |
| 19382 | if wireType == 4 { |
| 19383 | return fmt.Errorf("proto: LeaseRevokeRequest: wiretype end group for non-group") |
| 19384 | } |
| 19385 | if fieldNum <= 0 { |
| 19386 | return fmt.Errorf("proto: LeaseRevokeRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 19387 | } |
| 19388 | switch fieldNum { |
| 19389 | case 1: |
| 19390 | if wireType != 0 { |
| 19391 | return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) |
| 19392 | } |
| 19393 | m.ID = 0 |
| 19394 | for shift := uint(0); ; shift += 7 { |
| 19395 | if shift >= 64 { |
| 19396 | return ErrIntOverflowRpc |
| 19397 | } |
| 19398 | if iNdEx >= l { |
| 19399 | return io.ErrUnexpectedEOF |
| 19400 | } |
| 19401 | b := dAtA[iNdEx] |
| 19402 | iNdEx++ |
| 19403 | m.ID |= int64(b&0x7F) << shift |
| 19404 | if b < 0x80 { |
| 19405 | break |
| 19406 | } |
| 19407 | } |
| 19408 | default: |
| 19409 | iNdEx = preIndex |
| 19410 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 19411 | if err != nil { |
| 19412 | return err |
| 19413 | } |
| 19414 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 19415 | return ErrInvalidLengthRpc |
| 19416 | } |
| 19417 | if (iNdEx + skippy) > l { |
| 19418 | return io.ErrUnexpectedEOF |
| 19419 | } |
| 19420 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 19421 | iNdEx += skippy |
| 19422 | } |
| 19423 | } |
| 19424 | |
| 19425 | if iNdEx > l { |
| 19426 | return io.ErrUnexpectedEOF |
| 19427 | } |
| 19428 | return nil |
| 19429 | } |
| 19430 | func (m *LeaseRevokeResponse) Unmarshal(dAtA []byte) error { |
| 19431 | l := len(dAtA) |
| 19432 | iNdEx := 0 |
| 19433 | for iNdEx < l { |
| 19434 | preIndex := iNdEx |
| 19435 | var wire uint64 |
| 19436 | for shift := uint(0); ; shift += 7 { |
| 19437 | if shift >= 64 { |
| 19438 | return ErrIntOverflowRpc |
| 19439 | } |
| 19440 | if iNdEx >= l { |
| 19441 | return io.ErrUnexpectedEOF |
| 19442 | } |
| 19443 | b := dAtA[iNdEx] |
| 19444 | iNdEx++ |
| 19445 | wire |= uint64(b&0x7F) << shift |
| 19446 | if b < 0x80 { |
| 19447 | break |
| 19448 | } |
| 19449 | } |
| 19450 | fieldNum := int32(wire >> 3) |
| 19451 | wireType := int(wire & 0x7) |
| 19452 | if wireType == 4 { |
| 19453 | return fmt.Errorf("proto: LeaseRevokeResponse: wiretype end group for non-group") |
| 19454 | } |
| 19455 | if fieldNum <= 0 { |
| 19456 | return fmt.Errorf("proto: LeaseRevokeResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 19457 | } |
| 19458 | switch fieldNum { |
| 19459 | case 1: |
| 19460 | if wireType != 2 { |
| 19461 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 19462 | } |
| 19463 | var msglen int |
| 19464 | for shift := uint(0); ; shift += 7 { |
| 19465 | if shift >= 64 { |
| 19466 | return ErrIntOverflowRpc |
| 19467 | } |
| 19468 | if iNdEx >= l { |
| 19469 | return io.ErrUnexpectedEOF |
| 19470 | } |
| 19471 | b := dAtA[iNdEx] |
| 19472 | iNdEx++ |
| 19473 | msglen |= int(b&0x7F) << shift |
| 19474 | if b < 0x80 { |
| 19475 | break |
| 19476 | } |
| 19477 | } |
| 19478 | if msglen < 0 { |
| 19479 | return ErrInvalidLengthRpc |
| 19480 | } |
| 19481 | postIndex := iNdEx + msglen |
| 19482 | if postIndex < 0 { |
| 19483 | return ErrInvalidLengthRpc |
| 19484 | } |
| 19485 | if postIndex > l { |
| 19486 | return io.ErrUnexpectedEOF |
| 19487 | } |
| 19488 | if m.Header == nil { |
| 19489 | m.Header = &ResponseHeader{} |
| 19490 | } |
| 19491 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 19492 | return err |
| 19493 | } |
| 19494 | iNdEx = postIndex |
| 19495 | default: |
| 19496 | iNdEx = preIndex |
| 19497 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 19498 | if err != nil { |
| 19499 | return err |
| 19500 | } |
| 19501 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 19502 | return ErrInvalidLengthRpc |
| 19503 | } |
| 19504 | if (iNdEx + skippy) > l { |
| 19505 | return io.ErrUnexpectedEOF |
| 19506 | } |
| 19507 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 19508 | iNdEx += skippy |
| 19509 | } |
| 19510 | } |
| 19511 | |
| 19512 | if iNdEx > l { |
| 19513 | return io.ErrUnexpectedEOF |
| 19514 | } |
| 19515 | return nil |
| 19516 | } |
| 19517 | func (m *LeaseCheckpoint) Unmarshal(dAtA []byte) error { |
| 19518 | l := len(dAtA) |
| 19519 | iNdEx := 0 |
| 19520 | for iNdEx < l { |
| 19521 | preIndex := iNdEx |
| 19522 | var wire uint64 |
| 19523 | for shift := uint(0); ; shift += 7 { |
| 19524 | if shift >= 64 { |
| 19525 | return ErrIntOverflowRpc |
| 19526 | } |
| 19527 | if iNdEx >= l { |
| 19528 | return io.ErrUnexpectedEOF |
| 19529 | } |
| 19530 | b := dAtA[iNdEx] |
| 19531 | iNdEx++ |
| 19532 | wire |= uint64(b&0x7F) << shift |
| 19533 | if b < 0x80 { |
| 19534 | break |
| 19535 | } |
| 19536 | } |
| 19537 | fieldNum := int32(wire >> 3) |
| 19538 | wireType := int(wire & 0x7) |
| 19539 | if wireType == 4 { |
| 19540 | return fmt.Errorf("proto: LeaseCheckpoint: wiretype end group for non-group") |
| 19541 | } |
| 19542 | if fieldNum <= 0 { |
| 19543 | return fmt.Errorf("proto: LeaseCheckpoint: illegal tag %d (wire type %d)", fieldNum, wire) |
| 19544 | } |
| 19545 | switch fieldNum { |
| 19546 | case 1: |
| 19547 | if wireType != 0 { |
| 19548 | return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) |
| 19549 | } |
| 19550 | m.ID = 0 |
| 19551 | for shift := uint(0); ; shift += 7 { |
| 19552 | if shift >= 64 { |
| 19553 | return ErrIntOverflowRpc |
| 19554 | } |
| 19555 | if iNdEx >= l { |
| 19556 | return io.ErrUnexpectedEOF |
| 19557 | } |
| 19558 | b := dAtA[iNdEx] |
| 19559 | iNdEx++ |
| 19560 | m.ID |= int64(b&0x7F) << shift |
| 19561 | if b < 0x80 { |
| 19562 | break |
| 19563 | } |
| 19564 | } |
| 19565 | case 2: |
| 19566 | if wireType != 0 { |
| 19567 | return fmt.Errorf("proto: wrong wireType = %d for field Remaining_TTL", wireType) |
| 19568 | } |
| 19569 | m.Remaining_TTL = 0 |
| 19570 | for shift := uint(0); ; shift += 7 { |
| 19571 | if shift >= 64 { |
| 19572 | return ErrIntOverflowRpc |
| 19573 | } |
| 19574 | if iNdEx >= l { |
| 19575 | return io.ErrUnexpectedEOF |
| 19576 | } |
| 19577 | b := dAtA[iNdEx] |
| 19578 | iNdEx++ |
| 19579 | m.Remaining_TTL |= int64(b&0x7F) << shift |
| 19580 | if b < 0x80 { |
| 19581 | break |
| 19582 | } |
| 19583 | } |
| 19584 | default: |
| 19585 | iNdEx = preIndex |
| 19586 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 19587 | if err != nil { |
| 19588 | return err |
| 19589 | } |
| 19590 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 19591 | return ErrInvalidLengthRpc |
| 19592 | } |
| 19593 | if (iNdEx + skippy) > l { |
| 19594 | return io.ErrUnexpectedEOF |
| 19595 | } |
| 19596 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 19597 | iNdEx += skippy |
| 19598 | } |
| 19599 | } |
| 19600 | |
| 19601 | if iNdEx > l { |
| 19602 | return io.ErrUnexpectedEOF |
| 19603 | } |
| 19604 | return nil |
| 19605 | } |
| 19606 | func (m *LeaseCheckpointRequest) Unmarshal(dAtA []byte) error { |
| 19607 | l := len(dAtA) |
| 19608 | iNdEx := 0 |
| 19609 | for iNdEx < l { |
| 19610 | preIndex := iNdEx |
| 19611 | var wire uint64 |
| 19612 | for shift := uint(0); ; shift += 7 { |
| 19613 | if shift >= 64 { |
| 19614 | return ErrIntOverflowRpc |
| 19615 | } |
| 19616 | if iNdEx >= l { |
| 19617 | return io.ErrUnexpectedEOF |
| 19618 | } |
| 19619 | b := dAtA[iNdEx] |
| 19620 | iNdEx++ |
| 19621 | wire |= uint64(b&0x7F) << shift |
| 19622 | if b < 0x80 { |
| 19623 | break |
| 19624 | } |
| 19625 | } |
| 19626 | fieldNum := int32(wire >> 3) |
| 19627 | wireType := int(wire & 0x7) |
| 19628 | if wireType == 4 { |
| 19629 | return fmt.Errorf("proto: LeaseCheckpointRequest: wiretype end group for non-group") |
| 19630 | } |
| 19631 | if fieldNum <= 0 { |
| 19632 | return fmt.Errorf("proto: LeaseCheckpointRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 19633 | } |
| 19634 | switch fieldNum { |
| 19635 | case 1: |
| 19636 | if wireType != 2 { |
| 19637 | return fmt.Errorf("proto: wrong wireType = %d for field Checkpoints", wireType) |
| 19638 | } |
| 19639 | var msglen int |
| 19640 | for shift := uint(0); ; shift += 7 { |
| 19641 | if shift >= 64 { |
| 19642 | return ErrIntOverflowRpc |
| 19643 | } |
| 19644 | if iNdEx >= l { |
| 19645 | return io.ErrUnexpectedEOF |
| 19646 | } |
| 19647 | b := dAtA[iNdEx] |
| 19648 | iNdEx++ |
| 19649 | msglen |= int(b&0x7F) << shift |
| 19650 | if b < 0x80 { |
| 19651 | break |
| 19652 | } |
| 19653 | } |
| 19654 | if msglen < 0 { |
| 19655 | return ErrInvalidLengthRpc |
| 19656 | } |
| 19657 | postIndex := iNdEx + msglen |
| 19658 | if postIndex < 0 { |
| 19659 | return ErrInvalidLengthRpc |
| 19660 | } |
| 19661 | if postIndex > l { |
| 19662 | return io.ErrUnexpectedEOF |
| 19663 | } |
| 19664 | m.Checkpoints = append(m.Checkpoints, &LeaseCheckpoint{}) |
| 19665 | if err := m.Checkpoints[len(m.Checkpoints)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 19666 | return err |
| 19667 | } |
| 19668 | iNdEx = postIndex |
| 19669 | default: |
| 19670 | iNdEx = preIndex |
| 19671 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 19672 | if err != nil { |
| 19673 | return err |
| 19674 | } |
| 19675 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 19676 | return ErrInvalidLengthRpc |
| 19677 | } |
| 19678 | if (iNdEx + skippy) > l { |
| 19679 | return io.ErrUnexpectedEOF |
| 19680 | } |
| 19681 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 19682 | iNdEx += skippy |
| 19683 | } |
| 19684 | } |
| 19685 | |
| 19686 | if iNdEx > l { |
| 19687 | return io.ErrUnexpectedEOF |
| 19688 | } |
| 19689 | return nil |
| 19690 | } |
| 19691 | func (m *LeaseCheckpointResponse) Unmarshal(dAtA []byte) error { |
| 19692 | l := len(dAtA) |
| 19693 | iNdEx := 0 |
| 19694 | for iNdEx < l { |
| 19695 | preIndex := iNdEx |
| 19696 | var wire uint64 |
| 19697 | for shift := uint(0); ; shift += 7 { |
| 19698 | if shift >= 64 { |
| 19699 | return ErrIntOverflowRpc |
| 19700 | } |
| 19701 | if iNdEx >= l { |
| 19702 | return io.ErrUnexpectedEOF |
| 19703 | } |
| 19704 | b := dAtA[iNdEx] |
| 19705 | iNdEx++ |
| 19706 | wire |= uint64(b&0x7F) << shift |
| 19707 | if b < 0x80 { |
| 19708 | break |
| 19709 | } |
| 19710 | } |
| 19711 | fieldNum := int32(wire >> 3) |
| 19712 | wireType := int(wire & 0x7) |
| 19713 | if wireType == 4 { |
| 19714 | return fmt.Errorf("proto: LeaseCheckpointResponse: wiretype end group for non-group") |
| 19715 | } |
| 19716 | if fieldNum <= 0 { |
| 19717 | return fmt.Errorf("proto: LeaseCheckpointResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 19718 | } |
| 19719 | switch fieldNum { |
| 19720 | case 1: |
| 19721 | if wireType != 2 { |
| 19722 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 19723 | } |
| 19724 | var msglen int |
| 19725 | for shift := uint(0); ; shift += 7 { |
| 19726 | if shift >= 64 { |
| 19727 | return ErrIntOverflowRpc |
| 19728 | } |
| 19729 | if iNdEx >= l { |
| 19730 | return io.ErrUnexpectedEOF |
| 19731 | } |
| 19732 | b := dAtA[iNdEx] |
| 19733 | iNdEx++ |
| 19734 | msglen |= int(b&0x7F) << shift |
| 19735 | if b < 0x80 { |
| 19736 | break |
| 19737 | } |
| 19738 | } |
| 19739 | if msglen < 0 { |
| 19740 | return ErrInvalidLengthRpc |
| 19741 | } |
| 19742 | postIndex := iNdEx + msglen |
| 19743 | if postIndex < 0 { |
| 19744 | return ErrInvalidLengthRpc |
| 19745 | } |
| 19746 | if postIndex > l { |
| 19747 | return io.ErrUnexpectedEOF |
| 19748 | } |
| 19749 | if m.Header == nil { |
| 19750 | m.Header = &ResponseHeader{} |
| 19751 | } |
| 19752 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 19753 | return err |
| 19754 | } |
| 19755 | iNdEx = postIndex |
| 19756 | default: |
| 19757 | iNdEx = preIndex |
| 19758 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 19759 | if err != nil { |
| 19760 | return err |
| 19761 | } |
| 19762 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 19763 | return ErrInvalidLengthRpc |
| 19764 | } |
| 19765 | if (iNdEx + skippy) > l { |
| 19766 | return io.ErrUnexpectedEOF |
| 19767 | } |
| 19768 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 19769 | iNdEx += skippy |
| 19770 | } |
| 19771 | } |
| 19772 | |
| 19773 | if iNdEx > l { |
| 19774 | return io.ErrUnexpectedEOF |
| 19775 | } |
| 19776 | return nil |
| 19777 | } |
| 19778 | func (m *LeaseKeepAliveRequest) Unmarshal(dAtA []byte) error { |
| 19779 | l := len(dAtA) |
| 19780 | iNdEx := 0 |
| 19781 | for iNdEx < l { |
| 19782 | preIndex := iNdEx |
| 19783 | var wire uint64 |
| 19784 | for shift := uint(0); ; shift += 7 { |
| 19785 | if shift >= 64 { |
| 19786 | return ErrIntOverflowRpc |
| 19787 | } |
| 19788 | if iNdEx >= l { |
| 19789 | return io.ErrUnexpectedEOF |
| 19790 | } |
| 19791 | b := dAtA[iNdEx] |
| 19792 | iNdEx++ |
| 19793 | wire |= uint64(b&0x7F) << shift |
| 19794 | if b < 0x80 { |
| 19795 | break |
| 19796 | } |
| 19797 | } |
| 19798 | fieldNum := int32(wire >> 3) |
| 19799 | wireType := int(wire & 0x7) |
| 19800 | if wireType == 4 { |
| 19801 | return fmt.Errorf("proto: LeaseKeepAliveRequest: wiretype end group for non-group") |
| 19802 | } |
| 19803 | if fieldNum <= 0 { |
| 19804 | return fmt.Errorf("proto: LeaseKeepAliveRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 19805 | } |
| 19806 | switch fieldNum { |
| 19807 | case 1: |
| 19808 | if wireType != 0 { |
| 19809 | return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) |
| 19810 | } |
| 19811 | m.ID = 0 |
| 19812 | for shift := uint(0); ; shift += 7 { |
| 19813 | if shift >= 64 { |
| 19814 | return ErrIntOverflowRpc |
| 19815 | } |
| 19816 | if iNdEx >= l { |
| 19817 | return io.ErrUnexpectedEOF |
| 19818 | } |
| 19819 | b := dAtA[iNdEx] |
| 19820 | iNdEx++ |
| 19821 | m.ID |= int64(b&0x7F) << shift |
| 19822 | if b < 0x80 { |
| 19823 | break |
| 19824 | } |
| 19825 | } |
| 19826 | default: |
| 19827 | iNdEx = preIndex |
| 19828 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 19829 | if err != nil { |
| 19830 | return err |
| 19831 | } |
| 19832 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 19833 | return ErrInvalidLengthRpc |
| 19834 | } |
| 19835 | if (iNdEx + skippy) > l { |
| 19836 | return io.ErrUnexpectedEOF |
| 19837 | } |
| 19838 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 19839 | iNdEx += skippy |
| 19840 | } |
| 19841 | } |
| 19842 | |
| 19843 | if iNdEx > l { |
| 19844 | return io.ErrUnexpectedEOF |
| 19845 | } |
| 19846 | return nil |
| 19847 | } |
| 19848 | func (m *LeaseKeepAliveResponse) Unmarshal(dAtA []byte) error { |
| 19849 | l := len(dAtA) |
| 19850 | iNdEx := 0 |
| 19851 | for iNdEx < l { |
| 19852 | preIndex := iNdEx |
| 19853 | var wire uint64 |
| 19854 | for shift := uint(0); ; shift += 7 { |
| 19855 | if shift >= 64 { |
| 19856 | return ErrIntOverflowRpc |
| 19857 | } |
| 19858 | if iNdEx >= l { |
| 19859 | return io.ErrUnexpectedEOF |
| 19860 | } |
| 19861 | b := dAtA[iNdEx] |
| 19862 | iNdEx++ |
| 19863 | wire |= uint64(b&0x7F) << shift |
| 19864 | if b < 0x80 { |
| 19865 | break |
| 19866 | } |
| 19867 | } |
| 19868 | fieldNum := int32(wire >> 3) |
| 19869 | wireType := int(wire & 0x7) |
| 19870 | if wireType == 4 { |
| 19871 | return fmt.Errorf("proto: LeaseKeepAliveResponse: wiretype end group for non-group") |
| 19872 | } |
| 19873 | if fieldNum <= 0 { |
| 19874 | return fmt.Errorf("proto: LeaseKeepAliveResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 19875 | } |
| 19876 | switch fieldNum { |
| 19877 | case 1: |
| 19878 | if wireType != 2 { |
| 19879 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 19880 | } |
| 19881 | var msglen int |
| 19882 | for shift := uint(0); ; shift += 7 { |
| 19883 | if shift >= 64 { |
| 19884 | return ErrIntOverflowRpc |
| 19885 | } |
| 19886 | if iNdEx >= l { |
| 19887 | return io.ErrUnexpectedEOF |
| 19888 | } |
| 19889 | b := dAtA[iNdEx] |
| 19890 | iNdEx++ |
| 19891 | msglen |= int(b&0x7F) << shift |
| 19892 | if b < 0x80 { |
| 19893 | break |
| 19894 | } |
| 19895 | } |
| 19896 | if msglen < 0 { |
| 19897 | return ErrInvalidLengthRpc |
| 19898 | } |
| 19899 | postIndex := iNdEx + msglen |
| 19900 | if postIndex < 0 { |
| 19901 | return ErrInvalidLengthRpc |
| 19902 | } |
| 19903 | if postIndex > l { |
| 19904 | return io.ErrUnexpectedEOF |
| 19905 | } |
| 19906 | if m.Header == nil { |
| 19907 | m.Header = &ResponseHeader{} |
| 19908 | } |
| 19909 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 19910 | return err |
| 19911 | } |
| 19912 | iNdEx = postIndex |
| 19913 | case 2: |
| 19914 | if wireType != 0 { |
| 19915 | return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) |
| 19916 | } |
| 19917 | m.ID = 0 |
| 19918 | for shift := uint(0); ; shift += 7 { |
| 19919 | if shift >= 64 { |
| 19920 | return ErrIntOverflowRpc |
| 19921 | } |
| 19922 | if iNdEx >= l { |
| 19923 | return io.ErrUnexpectedEOF |
| 19924 | } |
| 19925 | b := dAtA[iNdEx] |
| 19926 | iNdEx++ |
| 19927 | m.ID |= int64(b&0x7F) << shift |
| 19928 | if b < 0x80 { |
| 19929 | break |
| 19930 | } |
| 19931 | } |
| 19932 | case 3: |
| 19933 | if wireType != 0 { |
| 19934 | return fmt.Errorf("proto: wrong wireType = %d for field TTL", wireType) |
| 19935 | } |
| 19936 | m.TTL = 0 |
| 19937 | for shift := uint(0); ; shift += 7 { |
| 19938 | if shift >= 64 { |
| 19939 | return ErrIntOverflowRpc |
| 19940 | } |
| 19941 | if iNdEx >= l { |
| 19942 | return io.ErrUnexpectedEOF |
| 19943 | } |
| 19944 | b := dAtA[iNdEx] |
| 19945 | iNdEx++ |
| 19946 | m.TTL |= int64(b&0x7F) << shift |
| 19947 | if b < 0x80 { |
| 19948 | break |
| 19949 | } |
| 19950 | } |
| 19951 | default: |
| 19952 | iNdEx = preIndex |
| 19953 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 19954 | if err != nil { |
| 19955 | return err |
| 19956 | } |
| 19957 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 19958 | return ErrInvalidLengthRpc |
| 19959 | } |
| 19960 | if (iNdEx + skippy) > l { |
| 19961 | return io.ErrUnexpectedEOF |
| 19962 | } |
| 19963 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 19964 | iNdEx += skippy |
| 19965 | } |
| 19966 | } |
| 19967 | |
| 19968 | if iNdEx > l { |
| 19969 | return io.ErrUnexpectedEOF |
| 19970 | } |
| 19971 | return nil |
| 19972 | } |
| 19973 | func (m *LeaseTimeToLiveRequest) Unmarshal(dAtA []byte) error { |
| 19974 | l := len(dAtA) |
| 19975 | iNdEx := 0 |
| 19976 | for iNdEx < l { |
| 19977 | preIndex := iNdEx |
| 19978 | var wire uint64 |
| 19979 | for shift := uint(0); ; shift += 7 { |
| 19980 | if shift >= 64 { |
| 19981 | return ErrIntOverflowRpc |
| 19982 | } |
| 19983 | if iNdEx >= l { |
| 19984 | return io.ErrUnexpectedEOF |
| 19985 | } |
| 19986 | b := dAtA[iNdEx] |
| 19987 | iNdEx++ |
| 19988 | wire |= uint64(b&0x7F) << shift |
| 19989 | if b < 0x80 { |
| 19990 | break |
| 19991 | } |
| 19992 | } |
| 19993 | fieldNum := int32(wire >> 3) |
| 19994 | wireType := int(wire & 0x7) |
| 19995 | if wireType == 4 { |
| 19996 | return fmt.Errorf("proto: LeaseTimeToLiveRequest: wiretype end group for non-group") |
| 19997 | } |
| 19998 | if fieldNum <= 0 { |
| 19999 | return fmt.Errorf("proto: LeaseTimeToLiveRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 20000 | } |
| 20001 | switch fieldNum { |
| 20002 | case 1: |
| 20003 | if wireType != 0 { |
| 20004 | return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) |
| 20005 | } |
| 20006 | m.ID = 0 |
| 20007 | for shift := uint(0); ; shift += 7 { |
| 20008 | if shift >= 64 { |
| 20009 | return ErrIntOverflowRpc |
| 20010 | } |
| 20011 | if iNdEx >= l { |
| 20012 | return io.ErrUnexpectedEOF |
| 20013 | } |
| 20014 | b := dAtA[iNdEx] |
| 20015 | iNdEx++ |
| 20016 | m.ID |= int64(b&0x7F) << shift |
| 20017 | if b < 0x80 { |
| 20018 | break |
| 20019 | } |
| 20020 | } |
| 20021 | case 2: |
| 20022 | if wireType != 0 { |
| 20023 | return fmt.Errorf("proto: wrong wireType = %d for field Keys", wireType) |
| 20024 | } |
| 20025 | var v int |
| 20026 | for shift := uint(0); ; shift += 7 { |
| 20027 | if shift >= 64 { |
| 20028 | return ErrIntOverflowRpc |
| 20029 | } |
| 20030 | if iNdEx >= l { |
| 20031 | return io.ErrUnexpectedEOF |
| 20032 | } |
| 20033 | b := dAtA[iNdEx] |
| 20034 | iNdEx++ |
| 20035 | v |= int(b&0x7F) << shift |
| 20036 | if b < 0x80 { |
| 20037 | break |
| 20038 | } |
| 20039 | } |
| 20040 | m.Keys = bool(v != 0) |
| 20041 | default: |
| 20042 | iNdEx = preIndex |
| 20043 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 20044 | if err != nil { |
| 20045 | return err |
| 20046 | } |
| 20047 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 20048 | return ErrInvalidLengthRpc |
| 20049 | } |
| 20050 | if (iNdEx + skippy) > l { |
| 20051 | return io.ErrUnexpectedEOF |
| 20052 | } |
| 20053 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 20054 | iNdEx += skippy |
| 20055 | } |
| 20056 | } |
| 20057 | |
| 20058 | if iNdEx > l { |
| 20059 | return io.ErrUnexpectedEOF |
| 20060 | } |
| 20061 | return nil |
| 20062 | } |
| 20063 | func (m *LeaseTimeToLiveResponse) Unmarshal(dAtA []byte) error { |
| 20064 | l := len(dAtA) |
| 20065 | iNdEx := 0 |
| 20066 | for iNdEx < l { |
| 20067 | preIndex := iNdEx |
| 20068 | var wire uint64 |
| 20069 | for shift := uint(0); ; shift += 7 { |
| 20070 | if shift >= 64 { |
| 20071 | return ErrIntOverflowRpc |
| 20072 | } |
| 20073 | if iNdEx >= l { |
| 20074 | return io.ErrUnexpectedEOF |
| 20075 | } |
| 20076 | b := dAtA[iNdEx] |
| 20077 | iNdEx++ |
| 20078 | wire |= uint64(b&0x7F) << shift |
| 20079 | if b < 0x80 { |
| 20080 | break |
| 20081 | } |
| 20082 | } |
| 20083 | fieldNum := int32(wire >> 3) |
| 20084 | wireType := int(wire & 0x7) |
| 20085 | if wireType == 4 { |
| 20086 | return fmt.Errorf("proto: LeaseTimeToLiveResponse: wiretype end group for non-group") |
| 20087 | } |
| 20088 | if fieldNum <= 0 { |
| 20089 | return fmt.Errorf("proto: LeaseTimeToLiveResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 20090 | } |
| 20091 | switch fieldNum { |
| 20092 | case 1: |
| 20093 | if wireType != 2 { |
| 20094 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 20095 | } |
| 20096 | var msglen int |
| 20097 | for shift := uint(0); ; shift += 7 { |
| 20098 | if shift >= 64 { |
| 20099 | return ErrIntOverflowRpc |
| 20100 | } |
| 20101 | if iNdEx >= l { |
| 20102 | return io.ErrUnexpectedEOF |
| 20103 | } |
| 20104 | b := dAtA[iNdEx] |
| 20105 | iNdEx++ |
| 20106 | msglen |= int(b&0x7F) << shift |
| 20107 | if b < 0x80 { |
| 20108 | break |
| 20109 | } |
| 20110 | } |
| 20111 | if msglen < 0 { |
| 20112 | return ErrInvalidLengthRpc |
| 20113 | } |
| 20114 | postIndex := iNdEx + msglen |
| 20115 | if postIndex < 0 { |
| 20116 | return ErrInvalidLengthRpc |
| 20117 | } |
| 20118 | if postIndex > l { |
| 20119 | return io.ErrUnexpectedEOF |
| 20120 | } |
| 20121 | if m.Header == nil { |
| 20122 | m.Header = &ResponseHeader{} |
| 20123 | } |
| 20124 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 20125 | return err |
| 20126 | } |
| 20127 | iNdEx = postIndex |
| 20128 | case 2: |
| 20129 | if wireType != 0 { |
| 20130 | return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) |
| 20131 | } |
| 20132 | m.ID = 0 |
| 20133 | for shift := uint(0); ; shift += 7 { |
| 20134 | if shift >= 64 { |
| 20135 | return ErrIntOverflowRpc |
| 20136 | } |
| 20137 | if iNdEx >= l { |
| 20138 | return io.ErrUnexpectedEOF |
| 20139 | } |
| 20140 | b := dAtA[iNdEx] |
| 20141 | iNdEx++ |
| 20142 | m.ID |= int64(b&0x7F) << shift |
| 20143 | if b < 0x80 { |
| 20144 | break |
| 20145 | } |
| 20146 | } |
| 20147 | case 3: |
| 20148 | if wireType != 0 { |
| 20149 | return fmt.Errorf("proto: wrong wireType = %d for field TTL", wireType) |
| 20150 | } |
| 20151 | m.TTL = 0 |
| 20152 | for shift := uint(0); ; shift += 7 { |
| 20153 | if shift >= 64 { |
| 20154 | return ErrIntOverflowRpc |
| 20155 | } |
| 20156 | if iNdEx >= l { |
| 20157 | return io.ErrUnexpectedEOF |
| 20158 | } |
| 20159 | b := dAtA[iNdEx] |
| 20160 | iNdEx++ |
| 20161 | m.TTL |= int64(b&0x7F) << shift |
| 20162 | if b < 0x80 { |
| 20163 | break |
| 20164 | } |
| 20165 | } |
| 20166 | case 4: |
| 20167 | if wireType != 0 { |
| 20168 | return fmt.Errorf("proto: wrong wireType = %d for field GrantedTTL", wireType) |
| 20169 | } |
| 20170 | m.GrantedTTL = 0 |
| 20171 | for shift := uint(0); ; shift += 7 { |
| 20172 | if shift >= 64 { |
| 20173 | return ErrIntOverflowRpc |
| 20174 | } |
| 20175 | if iNdEx >= l { |
| 20176 | return io.ErrUnexpectedEOF |
| 20177 | } |
| 20178 | b := dAtA[iNdEx] |
| 20179 | iNdEx++ |
| 20180 | m.GrantedTTL |= int64(b&0x7F) << shift |
| 20181 | if b < 0x80 { |
| 20182 | break |
| 20183 | } |
| 20184 | } |
| 20185 | case 5: |
| 20186 | if wireType != 2 { |
| 20187 | return fmt.Errorf("proto: wrong wireType = %d for field Keys", wireType) |
| 20188 | } |
| 20189 | var byteLen int |
| 20190 | for shift := uint(0); ; shift += 7 { |
| 20191 | if shift >= 64 { |
| 20192 | return ErrIntOverflowRpc |
| 20193 | } |
| 20194 | if iNdEx >= l { |
| 20195 | return io.ErrUnexpectedEOF |
| 20196 | } |
| 20197 | b := dAtA[iNdEx] |
| 20198 | iNdEx++ |
| 20199 | byteLen |= int(b&0x7F) << shift |
| 20200 | if b < 0x80 { |
| 20201 | break |
| 20202 | } |
| 20203 | } |
| 20204 | if byteLen < 0 { |
| 20205 | return ErrInvalidLengthRpc |
| 20206 | } |
| 20207 | postIndex := iNdEx + byteLen |
| 20208 | if postIndex < 0 { |
| 20209 | return ErrInvalidLengthRpc |
| 20210 | } |
| 20211 | if postIndex > l { |
| 20212 | return io.ErrUnexpectedEOF |
| 20213 | } |
| 20214 | m.Keys = append(m.Keys, make([]byte, postIndex-iNdEx)) |
| 20215 | copy(m.Keys[len(m.Keys)-1], dAtA[iNdEx:postIndex]) |
| 20216 | iNdEx = postIndex |
| 20217 | default: |
| 20218 | iNdEx = preIndex |
| 20219 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 20220 | if err != nil { |
| 20221 | return err |
| 20222 | } |
| 20223 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 20224 | return ErrInvalidLengthRpc |
| 20225 | } |
| 20226 | if (iNdEx + skippy) > l { |
| 20227 | return io.ErrUnexpectedEOF |
| 20228 | } |
| 20229 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 20230 | iNdEx += skippy |
| 20231 | } |
| 20232 | } |
| 20233 | |
| 20234 | if iNdEx > l { |
| 20235 | return io.ErrUnexpectedEOF |
| 20236 | } |
| 20237 | return nil |
| 20238 | } |
| 20239 | func (m *LeaseLeasesRequest) Unmarshal(dAtA []byte) error { |
| 20240 | l := len(dAtA) |
| 20241 | iNdEx := 0 |
| 20242 | for iNdEx < l { |
| 20243 | preIndex := iNdEx |
| 20244 | var wire uint64 |
| 20245 | for shift := uint(0); ; shift += 7 { |
| 20246 | if shift >= 64 { |
| 20247 | return ErrIntOverflowRpc |
| 20248 | } |
| 20249 | if iNdEx >= l { |
| 20250 | return io.ErrUnexpectedEOF |
| 20251 | } |
| 20252 | b := dAtA[iNdEx] |
| 20253 | iNdEx++ |
| 20254 | wire |= uint64(b&0x7F) << shift |
| 20255 | if b < 0x80 { |
| 20256 | break |
| 20257 | } |
| 20258 | } |
| 20259 | fieldNum := int32(wire >> 3) |
| 20260 | wireType := int(wire & 0x7) |
| 20261 | if wireType == 4 { |
| 20262 | return fmt.Errorf("proto: LeaseLeasesRequest: wiretype end group for non-group") |
| 20263 | } |
| 20264 | if fieldNum <= 0 { |
| 20265 | return fmt.Errorf("proto: LeaseLeasesRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 20266 | } |
| 20267 | switch fieldNum { |
| 20268 | default: |
| 20269 | iNdEx = preIndex |
| 20270 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 20271 | if err != nil { |
| 20272 | return err |
| 20273 | } |
| 20274 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 20275 | return ErrInvalidLengthRpc |
| 20276 | } |
| 20277 | if (iNdEx + skippy) > l { |
| 20278 | return io.ErrUnexpectedEOF |
| 20279 | } |
| 20280 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 20281 | iNdEx += skippy |
| 20282 | } |
| 20283 | } |
| 20284 | |
| 20285 | if iNdEx > l { |
| 20286 | return io.ErrUnexpectedEOF |
| 20287 | } |
| 20288 | return nil |
| 20289 | } |
| 20290 | func (m *LeaseStatus) Unmarshal(dAtA []byte) error { |
| 20291 | l := len(dAtA) |
| 20292 | iNdEx := 0 |
| 20293 | for iNdEx < l { |
| 20294 | preIndex := iNdEx |
| 20295 | var wire uint64 |
| 20296 | for shift := uint(0); ; shift += 7 { |
| 20297 | if shift >= 64 { |
| 20298 | return ErrIntOverflowRpc |
| 20299 | } |
| 20300 | if iNdEx >= l { |
| 20301 | return io.ErrUnexpectedEOF |
| 20302 | } |
| 20303 | b := dAtA[iNdEx] |
| 20304 | iNdEx++ |
| 20305 | wire |= uint64(b&0x7F) << shift |
| 20306 | if b < 0x80 { |
| 20307 | break |
| 20308 | } |
| 20309 | } |
| 20310 | fieldNum := int32(wire >> 3) |
| 20311 | wireType := int(wire & 0x7) |
| 20312 | if wireType == 4 { |
| 20313 | return fmt.Errorf("proto: LeaseStatus: wiretype end group for non-group") |
| 20314 | } |
| 20315 | if fieldNum <= 0 { |
| 20316 | return fmt.Errorf("proto: LeaseStatus: illegal tag %d (wire type %d)", fieldNum, wire) |
| 20317 | } |
| 20318 | switch fieldNum { |
| 20319 | case 1: |
| 20320 | if wireType != 0 { |
| 20321 | return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) |
| 20322 | } |
| 20323 | m.ID = 0 |
| 20324 | for shift := uint(0); ; shift += 7 { |
| 20325 | if shift >= 64 { |
| 20326 | return ErrIntOverflowRpc |
| 20327 | } |
| 20328 | if iNdEx >= l { |
| 20329 | return io.ErrUnexpectedEOF |
| 20330 | } |
| 20331 | b := dAtA[iNdEx] |
| 20332 | iNdEx++ |
| 20333 | m.ID |= int64(b&0x7F) << shift |
| 20334 | if b < 0x80 { |
| 20335 | break |
| 20336 | } |
| 20337 | } |
| 20338 | default: |
| 20339 | iNdEx = preIndex |
| 20340 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 20341 | if err != nil { |
| 20342 | return err |
| 20343 | } |
| 20344 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 20345 | return ErrInvalidLengthRpc |
| 20346 | } |
| 20347 | if (iNdEx + skippy) > l { |
| 20348 | return io.ErrUnexpectedEOF |
| 20349 | } |
| 20350 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 20351 | iNdEx += skippy |
| 20352 | } |
| 20353 | } |
| 20354 | |
| 20355 | if iNdEx > l { |
| 20356 | return io.ErrUnexpectedEOF |
| 20357 | } |
| 20358 | return nil |
| 20359 | } |
| 20360 | func (m *LeaseLeasesResponse) Unmarshal(dAtA []byte) error { |
| 20361 | l := len(dAtA) |
| 20362 | iNdEx := 0 |
| 20363 | for iNdEx < l { |
| 20364 | preIndex := iNdEx |
| 20365 | var wire uint64 |
| 20366 | for shift := uint(0); ; shift += 7 { |
| 20367 | if shift >= 64 { |
| 20368 | return ErrIntOverflowRpc |
| 20369 | } |
| 20370 | if iNdEx >= l { |
| 20371 | return io.ErrUnexpectedEOF |
| 20372 | } |
| 20373 | b := dAtA[iNdEx] |
| 20374 | iNdEx++ |
| 20375 | wire |= uint64(b&0x7F) << shift |
| 20376 | if b < 0x80 { |
| 20377 | break |
| 20378 | } |
| 20379 | } |
| 20380 | fieldNum := int32(wire >> 3) |
| 20381 | wireType := int(wire & 0x7) |
| 20382 | if wireType == 4 { |
| 20383 | return fmt.Errorf("proto: LeaseLeasesResponse: wiretype end group for non-group") |
| 20384 | } |
| 20385 | if fieldNum <= 0 { |
| 20386 | return fmt.Errorf("proto: LeaseLeasesResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 20387 | } |
| 20388 | switch fieldNum { |
| 20389 | case 1: |
| 20390 | if wireType != 2 { |
| 20391 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 20392 | } |
| 20393 | var msglen int |
| 20394 | for shift := uint(0); ; shift += 7 { |
| 20395 | if shift >= 64 { |
| 20396 | return ErrIntOverflowRpc |
| 20397 | } |
| 20398 | if iNdEx >= l { |
| 20399 | return io.ErrUnexpectedEOF |
| 20400 | } |
| 20401 | b := dAtA[iNdEx] |
| 20402 | iNdEx++ |
| 20403 | msglen |= int(b&0x7F) << shift |
| 20404 | if b < 0x80 { |
| 20405 | break |
| 20406 | } |
| 20407 | } |
| 20408 | if msglen < 0 { |
| 20409 | return ErrInvalidLengthRpc |
| 20410 | } |
| 20411 | postIndex := iNdEx + msglen |
| 20412 | if postIndex < 0 { |
| 20413 | return ErrInvalidLengthRpc |
| 20414 | } |
| 20415 | if postIndex > l { |
| 20416 | return io.ErrUnexpectedEOF |
| 20417 | } |
| 20418 | if m.Header == nil { |
| 20419 | m.Header = &ResponseHeader{} |
| 20420 | } |
| 20421 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 20422 | return err |
| 20423 | } |
| 20424 | iNdEx = postIndex |
| 20425 | case 2: |
| 20426 | if wireType != 2 { |
| 20427 | return fmt.Errorf("proto: wrong wireType = %d for field Leases", wireType) |
| 20428 | } |
| 20429 | var msglen int |
| 20430 | for shift := uint(0); ; shift += 7 { |
| 20431 | if shift >= 64 { |
| 20432 | return ErrIntOverflowRpc |
| 20433 | } |
| 20434 | if iNdEx >= l { |
| 20435 | return io.ErrUnexpectedEOF |
| 20436 | } |
| 20437 | b := dAtA[iNdEx] |
| 20438 | iNdEx++ |
| 20439 | msglen |= int(b&0x7F) << shift |
| 20440 | if b < 0x80 { |
| 20441 | break |
| 20442 | } |
| 20443 | } |
| 20444 | if msglen < 0 { |
| 20445 | return ErrInvalidLengthRpc |
| 20446 | } |
| 20447 | postIndex := iNdEx + msglen |
| 20448 | if postIndex < 0 { |
| 20449 | return ErrInvalidLengthRpc |
| 20450 | } |
| 20451 | if postIndex > l { |
| 20452 | return io.ErrUnexpectedEOF |
| 20453 | } |
| 20454 | m.Leases = append(m.Leases, &LeaseStatus{}) |
| 20455 | if err := m.Leases[len(m.Leases)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 20456 | return err |
| 20457 | } |
| 20458 | iNdEx = postIndex |
| 20459 | default: |
| 20460 | iNdEx = preIndex |
| 20461 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 20462 | if err != nil { |
| 20463 | return err |
| 20464 | } |
| 20465 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 20466 | return ErrInvalidLengthRpc |
| 20467 | } |
| 20468 | if (iNdEx + skippy) > l { |
| 20469 | return io.ErrUnexpectedEOF |
| 20470 | } |
| 20471 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 20472 | iNdEx += skippy |
| 20473 | } |
| 20474 | } |
| 20475 | |
| 20476 | if iNdEx > l { |
| 20477 | return io.ErrUnexpectedEOF |
| 20478 | } |
| 20479 | return nil |
| 20480 | } |
| 20481 | func (m *Member) Unmarshal(dAtA []byte) error { |
| 20482 | l := len(dAtA) |
| 20483 | iNdEx := 0 |
| 20484 | for iNdEx < l { |
| 20485 | preIndex := iNdEx |
| 20486 | var wire uint64 |
| 20487 | for shift := uint(0); ; shift += 7 { |
| 20488 | if shift >= 64 { |
| 20489 | return ErrIntOverflowRpc |
| 20490 | } |
| 20491 | if iNdEx >= l { |
| 20492 | return io.ErrUnexpectedEOF |
| 20493 | } |
| 20494 | b := dAtA[iNdEx] |
| 20495 | iNdEx++ |
| 20496 | wire |= uint64(b&0x7F) << shift |
| 20497 | if b < 0x80 { |
| 20498 | break |
| 20499 | } |
| 20500 | } |
| 20501 | fieldNum := int32(wire >> 3) |
| 20502 | wireType := int(wire & 0x7) |
| 20503 | if wireType == 4 { |
| 20504 | return fmt.Errorf("proto: Member: wiretype end group for non-group") |
| 20505 | } |
| 20506 | if fieldNum <= 0 { |
| 20507 | return fmt.Errorf("proto: Member: illegal tag %d (wire type %d)", fieldNum, wire) |
| 20508 | } |
| 20509 | switch fieldNum { |
| 20510 | case 1: |
| 20511 | if wireType != 0 { |
| 20512 | return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) |
| 20513 | } |
| 20514 | m.ID = 0 |
| 20515 | for shift := uint(0); ; shift += 7 { |
| 20516 | if shift >= 64 { |
| 20517 | return ErrIntOverflowRpc |
| 20518 | } |
| 20519 | if iNdEx >= l { |
| 20520 | return io.ErrUnexpectedEOF |
| 20521 | } |
| 20522 | b := dAtA[iNdEx] |
| 20523 | iNdEx++ |
| 20524 | m.ID |= uint64(b&0x7F) << shift |
| 20525 | if b < 0x80 { |
| 20526 | break |
| 20527 | } |
| 20528 | } |
| 20529 | case 2: |
| 20530 | if wireType != 2 { |
| 20531 | return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) |
| 20532 | } |
| 20533 | var stringLen uint64 |
| 20534 | for shift := uint(0); ; shift += 7 { |
| 20535 | if shift >= 64 { |
| 20536 | return ErrIntOverflowRpc |
| 20537 | } |
| 20538 | if iNdEx >= l { |
| 20539 | return io.ErrUnexpectedEOF |
| 20540 | } |
| 20541 | b := dAtA[iNdEx] |
| 20542 | iNdEx++ |
| 20543 | stringLen |= uint64(b&0x7F) << shift |
| 20544 | if b < 0x80 { |
| 20545 | break |
| 20546 | } |
| 20547 | } |
| 20548 | intStringLen := int(stringLen) |
| 20549 | if intStringLen < 0 { |
| 20550 | return ErrInvalidLengthRpc |
| 20551 | } |
| 20552 | postIndex := iNdEx + intStringLen |
| 20553 | if postIndex < 0 { |
| 20554 | return ErrInvalidLengthRpc |
| 20555 | } |
| 20556 | if postIndex > l { |
| 20557 | return io.ErrUnexpectedEOF |
| 20558 | } |
| 20559 | m.Name = string(dAtA[iNdEx:postIndex]) |
| 20560 | iNdEx = postIndex |
| 20561 | case 3: |
| 20562 | if wireType != 2 { |
| 20563 | return fmt.Errorf("proto: wrong wireType = %d for field PeerURLs", wireType) |
| 20564 | } |
| 20565 | var stringLen uint64 |
| 20566 | for shift := uint(0); ; shift += 7 { |
| 20567 | if shift >= 64 { |
| 20568 | return ErrIntOverflowRpc |
| 20569 | } |
| 20570 | if iNdEx >= l { |
| 20571 | return io.ErrUnexpectedEOF |
| 20572 | } |
| 20573 | b := dAtA[iNdEx] |
| 20574 | iNdEx++ |
| 20575 | stringLen |= uint64(b&0x7F) << shift |
| 20576 | if b < 0x80 { |
| 20577 | break |
| 20578 | } |
| 20579 | } |
| 20580 | intStringLen := int(stringLen) |
| 20581 | if intStringLen < 0 { |
| 20582 | return ErrInvalidLengthRpc |
| 20583 | } |
| 20584 | postIndex := iNdEx + intStringLen |
| 20585 | if postIndex < 0 { |
| 20586 | return ErrInvalidLengthRpc |
| 20587 | } |
| 20588 | if postIndex > l { |
| 20589 | return io.ErrUnexpectedEOF |
| 20590 | } |
| 20591 | m.PeerURLs = append(m.PeerURLs, string(dAtA[iNdEx:postIndex])) |
| 20592 | iNdEx = postIndex |
| 20593 | case 4: |
| 20594 | if wireType != 2 { |
| 20595 | return fmt.Errorf("proto: wrong wireType = %d for field ClientURLs", wireType) |
| 20596 | } |
| 20597 | var stringLen uint64 |
| 20598 | for shift := uint(0); ; shift += 7 { |
| 20599 | if shift >= 64 { |
| 20600 | return ErrIntOverflowRpc |
| 20601 | } |
| 20602 | if iNdEx >= l { |
| 20603 | return io.ErrUnexpectedEOF |
| 20604 | } |
| 20605 | b := dAtA[iNdEx] |
| 20606 | iNdEx++ |
| 20607 | stringLen |= uint64(b&0x7F) << shift |
| 20608 | if b < 0x80 { |
| 20609 | break |
| 20610 | } |
| 20611 | } |
| 20612 | intStringLen := int(stringLen) |
| 20613 | if intStringLen < 0 { |
| 20614 | return ErrInvalidLengthRpc |
| 20615 | } |
| 20616 | postIndex := iNdEx + intStringLen |
| 20617 | if postIndex < 0 { |
| 20618 | return ErrInvalidLengthRpc |
| 20619 | } |
| 20620 | if postIndex > l { |
| 20621 | return io.ErrUnexpectedEOF |
| 20622 | } |
| 20623 | m.ClientURLs = append(m.ClientURLs, string(dAtA[iNdEx:postIndex])) |
| 20624 | iNdEx = postIndex |
| 20625 | case 5: |
| 20626 | if wireType != 0 { |
| 20627 | return fmt.Errorf("proto: wrong wireType = %d for field IsLearner", wireType) |
| 20628 | } |
| 20629 | var v int |
| 20630 | for shift := uint(0); ; shift += 7 { |
| 20631 | if shift >= 64 { |
| 20632 | return ErrIntOverflowRpc |
| 20633 | } |
| 20634 | if iNdEx >= l { |
| 20635 | return io.ErrUnexpectedEOF |
| 20636 | } |
| 20637 | b := dAtA[iNdEx] |
| 20638 | iNdEx++ |
| 20639 | v |= int(b&0x7F) << shift |
| 20640 | if b < 0x80 { |
| 20641 | break |
| 20642 | } |
| 20643 | } |
| 20644 | m.IsLearner = bool(v != 0) |
| 20645 | default: |
| 20646 | iNdEx = preIndex |
| 20647 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 20648 | if err != nil { |
| 20649 | return err |
| 20650 | } |
| 20651 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 20652 | return ErrInvalidLengthRpc |
| 20653 | } |
| 20654 | if (iNdEx + skippy) > l { |
| 20655 | return io.ErrUnexpectedEOF |
| 20656 | } |
| 20657 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 20658 | iNdEx += skippy |
| 20659 | } |
| 20660 | } |
| 20661 | |
| 20662 | if iNdEx > l { |
| 20663 | return io.ErrUnexpectedEOF |
| 20664 | } |
| 20665 | return nil |
| 20666 | } |
| 20667 | func (m *MemberAddRequest) Unmarshal(dAtA []byte) error { |
| 20668 | l := len(dAtA) |
| 20669 | iNdEx := 0 |
| 20670 | for iNdEx < l { |
| 20671 | preIndex := iNdEx |
| 20672 | var wire uint64 |
| 20673 | for shift := uint(0); ; shift += 7 { |
| 20674 | if shift >= 64 { |
| 20675 | return ErrIntOverflowRpc |
| 20676 | } |
| 20677 | if iNdEx >= l { |
| 20678 | return io.ErrUnexpectedEOF |
| 20679 | } |
| 20680 | b := dAtA[iNdEx] |
| 20681 | iNdEx++ |
| 20682 | wire |= uint64(b&0x7F) << shift |
| 20683 | if b < 0x80 { |
| 20684 | break |
| 20685 | } |
| 20686 | } |
| 20687 | fieldNum := int32(wire >> 3) |
| 20688 | wireType := int(wire & 0x7) |
| 20689 | if wireType == 4 { |
| 20690 | return fmt.Errorf("proto: MemberAddRequest: wiretype end group for non-group") |
| 20691 | } |
| 20692 | if fieldNum <= 0 { |
| 20693 | return fmt.Errorf("proto: MemberAddRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 20694 | } |
| 20695 | switch fieldNum { |
| 20696 | case 1: |
| 20697 | if wireType != 2 { |
| 20698 | return fmt.Errorf("proto: wrong wireType = %d for field PeerURLs", wireType) |
| 20699 | } |
| 20700 | var stringLen uint64 |
| 20701 | for shift := uint(0); ; shift += 7 { |
| 20702 | if shift >= 64 { |
| 20703 | return ErrIntOverflowRpc |
| 20704 | } |
| 20705 | if iNdEx >= l { |
| 20706 | return io.ErrUnexpectedEOF |
| 20707 | } |
| 20708 | b := dAtA[iNdEx] |
| 20709 | iNdEx++ |
| 20710 | stringLen |= uint64(b&0x7F) << shift |
| 20711 | if b < 0x80 { |
| 20712 | break |
| 20713 | } |
| 20714 | } |
| 20715 | intStringLen := int(stringLen) |
| 20716 | if intStringLen < 0 { |
| 20717 | return ErrInvalidLengthRpc |
| 20718 | } |
| 20719 | postIndex := iNdEx + intStringLen |
| 20720 | if postIndex < 0 { |
| 20721 | return ErrInvalidLengthRpc |
| 20722 | } |
| 20723 | if postIndex > l { |
| 20724 | return io.ErrUnexpectedEOF |
| 20725 | } |
| 20726 | m.PeerURLs = append(m.PeerURLs, string(dAtA[iNdEx:postIndex])) |
| 20727 | iNdEx = postIndex |
| 20728 | case 2: |
| 20729 | if wireType != 0 { |
| 20730 | return fmt.Errorf("proto: wrong wireType = %d for field IsLearner", wireType) |
| 20731 | } |
| 20732 | var v int |
| 20733 | for shift := uint(0); ; shift += 7 { |
| 20734 | if shift >= 64 { |
| 20735 | return ErrIntOverflowRpc |
| 20736 | } |
| 20737 | if iNdEx >= l { |
| 20738 | return io.ErrUnexpectedEOF |
| 20739 | } |
| 20740 | b := dAtA[iNdEx] |
| 20741 | iNdEx++ |
| 20742 | v |= int(b&0x7F) << shift |
| 20743 | if b < 0x80 { |
| 20744 | break |
| 20745 | } |
| 20746 | } |
| 20747 | m.IsLearner = bool(v != 0) |
| 20748 | default: |
| 20749 | iNdEx = preIndex |
| 20750 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 20751 | if err != nil { |
| 20752 | return err |
| 20753 | } |
| 20754 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 20755 | return ErrInvalidLengthRpc |
| 20756 | } |
| 20757 | if (iNdEx + skippy) > l { |
| 20758 | return io.ErrUnexpectedEOF |
| 20759 | } |
| 20760 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 20761 | iNdEx += skippy |
| 20762 | } |
| 20763 | } |
| 20764 | |
| 20765 | if iNdEx > l { |
| 20766 | return io.ErrUnexpectedEOF |
| 20767 | } |
| 20768 | return nil |
| 20769 | } |
| 20770 | func (m *MemberAddResponse) Unmarshal(dAtA []byte) error { |
| 20771 | l := len(dAtA) |
| 20772 | iNdEx := 0 |
| 20773 | for iNdEx < l { |
| 20774 | preIndex := iNdEx |
| 20775 | var wire uint64 |
| 20776 | for shift := uint(0); ; shift += 7 { |
| 20777 | if shift >= 64 { |
| 20778 | return ErrIntOverflowRpc |
| 20779 | } |
| 20780 | if iNdEx >= l { |
| 20781 | return io.ErrUnexpectedEOF |
| 20782 | } |
| 20783 | b := dAtA[iNdEx] |
| 20784 | iNdEx++ |
| 20785 | wire |= uint64(b&0x7F) << shift |
| 20786 | if b < 0x80 { |
| 20787 | break |
| 20788 | } |
| 20789 | } |
| 20790 | fieldNum := int32(wire >> 3) |
| 20791 | wireType := int(wire & 0x7) |
| 20792 | if wireType == 4 { |
| 20793 | return fmt.Errorf("proto: MemberAddResponse: wiretype end group for non-group") |
| 20794 | } |
| 20795 | if fieldNum <= 0 { |
| 20796 | return fmt.Errorf("proto: MemberAddResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 20797 | } |
| 20798 | switch fieldNum { |
| 20799 | case 1: |
| 20800 | if wireType != 2 { |
| 20801 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 20802 | } |
| 20803 | var msglen int |
| 20804 | for shift := uint(0); ; shift += 7 { |
| 20805 | if shift >= 64 { |
| 20806 | return ErrIntOverflowRpc |
| 20807 | } |
| 20808 | if iNdEx >= l { |
| 20809 | return io.ErrUnexpectedEOF |
| 20810 | } |
| 20811 | b := dAtA[iNdEx] |
| 20812 | iNdEx++ |
| 20813 | msglen |= int(b&0x7F) << shift |
| 20814 | if b < 0x80 { |
| 20815 | break |
| 20816 | } |
| 20817 | } |
| 20818 | if msglen < 0 { |
| 20819 | return ErrInvalidLengthRpc |
| 20820 | } |
| 20821 | postIndex := iNdEx + msglen |
| 20822 | if postIndex < 0 { |
| 20823 | return ErrInvalidLengthRpc |
| 20824 | } |
| 20825 | if postIndex > l { |
| 20826 | return io.ErrUnexpectedEOF |
| 20827 | } |
| 20828 | if m.Header == nil { |
| 20829 | m.Header = &ResponseHeader{} |
| 20830 | } |
| 20831 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 20832 | return err |
| 20833 | } |
| 20834 | iNdEx = postIndex |
| 20835 | case 2: |
| 20836 | if wireType != 2 { |
| 20837 | return fmt.Errorf("proto: wrong wireType = %d for field Member", wireType) |
| 20838 | } |
| 20839 | var msglen int |
| 20840 | for shift := uint(0); ; shift += 7 { |
| 20841 | if shift >= 64 { |
| 20842 | return ErrIntOverflowRpc |
| 20843 | } |
| 20844 | if iNdEx >= l { |
| 20845 | return io.ErrUnexpectedEOF |
| 20846 | } |
| 20847 | b := dAtA[iNdEx] |
| 20848 | iNdEx++ |
| 20849 | msglen |= int(b&0x7F) << shift |
| 20850 | if b < 0x80 { |
| 20851 | break |
| 20852 | } |
| 20853 | } |
| 20854 | if msglen < 0 { |
| 20855 | return ErrInvalidLengthRpc |
| 20856 | } |
| 20857 | postIndex := iNdEx + msglen |
| 20858 | if postIndex < 0 { |
| 20859 | return ErrInvalidLengthRpc |
| 20860 | } |
| 20861 | if postIndex > l { |
| 20862 | return io.ErrUnexpectedEOF |
| 20863 | } |
| 20864 | if m.Member == nil { |
| 20865 | m.Member = &Member{} |
| 20866 | } |
| 20867 | if err := m.Member.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 20868 | return err |
| 20869 | } |
| 20870 | iNdEx = postIndex |
| 20871 | case 3: |
| 20872 | if wireType != 2 { |
| 20873 | return fmt.Errorf("proto: wrong wireType = %d for field Members", wireType) |
| 20874 | } |
| 20875 | var msglen int |
| 20876 | for shift := uint(0); ; shift += 7 { |
| 20877 | if shift >= 64 { |
| 20878 | return ErrIntOverflowRpc |
| 20879 | } |
| 20880 | if iNdEx >= l { |
| 20881 | return io.ErrUnexpectedEOF |
| 20882 | } |
| 20883 | b := dAtA[iNdEx] |
| 20884 | iNdEx++ |
| 20885 | msglen |= int(b&0x7F) << shift |
| 20886 | if b < 0x80 { |
| 20887 | break |
| 20888 | } |
| 20889 | } |
| 20890 | if msglen < 0 { |
| 20891 | return ErrInvalidLengthRpc |
| 20892 | } |
| 20893 | postIndex := iNdEx + msglen |
| 20894 | if postIndex < 0 { |
| 20895 | return ErrInvalidLengthRpc |
| 20896 | } |
| 20897 | if postIndex > l { |
| 20898 | return io.ErrUnexpectedEOF |
| 20899 | } |
| 20900 | m.Members = append(m.Members, &Member{}) |
| 20901 | if err := m.Members[len(m.Members)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 20902 | return err |
| 20903 | } |
| 20904 | iNdEx = postIndex |
| 20905 | default: |
| 20906 | iNdEx = preIndex |
| 20907 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 20908 | if err != nil { |
| 20909 | return err |
| 20910 | } |
| 20911 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 20912 | return ErrInvalidLengthRpc |
| 20913 | } |
| 20914 | if (iNdEx + skippy) > l { |
| 20915 | return io.ErrUnexpectedEOF |
| 20916 | } |
| 20917 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 20918 | iNdEx += skippy |
| 20919 | } |
| 20920 | } |
| 20921 | |
| 20922 | if iNdEx > l { |
| 20923 | return io.ErrUnexpectedEOF |
| 20924 | } |
| 20925 | return nil |
| 20926 | } |
| 20927 | func (m *MemberRemoveRequest) Unmarshal(dAtA []byte) error { |
| 20928 | l := len(dAtA) |
| 20929 | iNdEx := 0 |
| 20930 | for iNdEx < l { |
| 20931 | preIndex := iNdEx |
| 20932 | var wire uint64 |
| 20933 | for shift := uint(0); ; shift += 7 { |
| 20934 | if shift >= 64 { |
| 20935 | return ErrIntOverflowRpc |
| 20936 | } |
| 20937 | if iNdEx >= l { |
| 20938 | return io.ErrUnexpectedEOF |
| 20939 | } |
| 20940 | b := dAtA[iNdEx] |
| 20941 | iNdEx++ |
| 20942 | wire |= uint64(b&0x7F) << shift |
| 20943 | if b < 0x80 { |
| 20944 | break |
| 20945 | } |
| 20946 | } |
| 20947 | fieldNum := int32(wire >> 3) |
| 20948 | wireType := int(wire & 0x7) |
| 20949 | if wireType == 4 { |
| 20950 | return fmt.Errorf("proto: MemberRemoveRequest: wiretype end group for non-group") |
| 20951 | } |
| 20952 | if fieldNum <= 0 { |
| 20953 | return fmt.Errorf("proto: MemberRemoveRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 20954 | } |
| 20955 | switch fieldNum { |
| 20956 | case 1: |
| 20957 | if wireType != 0 { |
| 20958 | return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) |
| 20959 | } |
| 20960 | m.ID = 0 |
| 20961 | for shift := uint(0); ; shift += 7 { |
| 20962 | if shift >= 64 { |
| 20963 | return ErrIntOverflowRpc |
| 20964 | } |
| 20965 | if iNdEx >= l { |
| 20966 | return io.ErrUnexpectedEOF |
| 20967 | } |
| 20968 | b := dAtA[iNdEx] |
| 20969 | iNdEx++ |
| 20970 | m.ID |= uint64(b&0x7F) << shift |
| 20971 | if b < 0x80 { |
| 20972 | break |
| 20973 | } |
| 20974 | } |
| 20975 | default: |
| 20976 | iNdEx = preIndex |
| 20977 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 20978 | if err != nil { |
| 20979 | return err |
| 20980 | } |
| 20981 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 20982 | return ErrInvalidLengthRpc |
| 20983 | } |
| 20984 | if (iNdEx + skippy) > l { |
| 20985 | return io.ErrUnexpectedEOF |
| 20986 | } |
| 20987 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 20988 | iNdEx += skippy |
| 20989 | } |
| 20990 | } |
| 20991 | |
| 20992 | if iNdEx > l { |
| 20993 | return io.ErrUnexpectedEOF |
| 20994 | } |
| 20995 | return nil |
| 20996 | } |
| 20997 | func (m *MemberRemoveResponse) Unmarshal(dAtA []byte) error { |
| 20998 | l := len(dAtA) |
| 20999 | iNdEx := 0 |
| 21000 | for iNdEx < l { |
| 21001 | preIndex := iNdEx |
| 21002 | var wire uint64 |
| 21003 | for shift := uint(0); ; shift += 7 { |
| 21004 | if shift >= 64 { |
| 21005 | return ErrIntOverflowRpc |
| 21006 | } |
| 21007 | if iNdEx >= l { |
| 21008 | return io.ErrUnexpectedEOF |
| 21009 | } |
| 21010 | b := dAtA[iNdEx] |
| 21011 | iNdEx++ |
| 21012 | wire |= uint64(b&0x7F) << shift |
| 21013 | if b < 0x80 { |
| 21014 | break |
| 21015 | } |
| 21016 | } |
| 21017 | fieldNum := int32(wire >> 3) |
| 21018 | wireType := int(wire & 0x7) |
| 21019 | if wireType == 4 { |
| 21020 | return fmt.Errorf("proto: MemberRemoveResponse: wiretype end group for non-group") |
| 21021 | } |
| 21022 | if fieldNum <= 0 { |
| 21023 | return fmt.Errorf("proto: MemberRemoveResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 21024 | } |
| 21025 | switch fieldNum { |
| 21026 | case 1: |
| 21027 | if wireType != 2 { |
| 21028 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 21029 | } |
| 21030 | var msglen int |
| 21031 | for shift := uint(0); ; shift += 7 { |
| 21032 | if shift >= 64 { |
| 21033 | return ErrIntOverflowRpc |
| 21034 | } |
| 21035 | if iNdEx >= l { |
| 21036 | return io.ErrUnexpectedEOF |
| 21037 | } |
| 21038 | b := dAtA[iNdEx] |
| 21039 | iNdEx++ |
| 21040 | msglen |= int(b&0x7F) << shift |
| 21041 | if b < 0x80 { |
| 21042 | break |
| 21043 | } |
| 21044 | } |
| 21045 | if msglen < 0 { |
| 21046 | return ErrInvalidLengthRpc |
| 21047 | } |
| 21048 | postIndex := iNdEx + msglen |
| 21049 | if postIndex < 0 { |
| 21050 | return ErrInvalidLengthRpc |
| 21051 | } |
| 21052 | if postIndex > l { |
| 21053 | return io.ErrUnexpectedEOF |
| 21054 | } |
| 21055 | if m.Header == nil { |
| 21056 | m.Header = &ResponseHeader{} |
| 21057 | } |
| 21058 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 21059 | return err |
| 21060 | } |
| 21061 | iNdEx = postIndex |
| 21062 | case 2: |
| 21063 | if wireType != 2 { |
| 21064 | return fmt.Errorf("proto: wrong wireType = %d for field Members", wireType) |
| 21065 | } |
| 21066 | var msglen int |
| 21067 | for shift := uint(0); ; shift += 7 { |
| 21068 | if shift >= 64 { |
| 21069 | return ErrIntOverflowRpc |
| 21070 | } |
| 21071 | if iNdEx >= l { |
| 21072 | return io.ErrUnexpectedEOF |
| 21073 | } |
| 21074 | b := dAtA[iNdEx] |
| 21075 | iNdEx++ |
| 21076 | msglen |= int(b&0x7F) << shift |
| 21077 | if b < 0x80 { |
| 21078 | break |
| 21079 | } |
| 21080 | } |
| 21081 | if msglen < 0 { |
| 21082 | return ErrInvalidLengthRpc |
| 21083 | } |
| 21084 | postIndex := iNdEx + msglen |
| 21085 | if postIndex < 0 { |
| 21086 | return ErrInvalidLengthRpc |
| 21087 | } |
| 21088 | if postIndex > l { |
| 21089 | return io.ErrUnexpectedEOF |
| 21090 | } |
| 21091 | m.Members = append(m.Members, &Member{}) |
| 21092 | if err := m.Members[len(m.Members)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 21093 | return err |
| 21094 | } |
| 21095 | iNdEx = postIndex |
| 21096 | default: |
| 21097 | iNdEx = preIndex |
| 21098 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 21099 | if err != nil { |
| 21100 | return err |
| 21101 | } |
| 21102 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 21103 | return ErrInvalidLengthRpc |
| 21104 | } |
| 21105 | if (iNdEx + skippy) > l { |
| 21106 | return io.ErrUnexpectedEOF |
| 21107 | } |
| 21108 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 21109 | iNdEx += skippy |
| 21110 | } |
| 21111 | } |
| 21112 | |
| 21113 | if iNdEx > l { |
| 21114 | return io.ErrUnexpectedEOF |
| 21115 | } |
| 21116 | return nil |
| 21117 | } |
| 21118 | func (m *MemberUpdateRequest) Unmarshal(dAtA []byte) error { |
| 21119 | l := len(dAtA) |
| 21120 | iNdEx := 0 |
| 21121 | for iNdEx < l { |
| 21122 | preIndex := iNdEx |
| 21123 | var wire uint64 |
| 21124 | for shift := uint(0); ; shift += 7 { |
| 21125 | if shift >= 64 { |
| 21126 | return ErrIntOverflowRpc |
| 21127 | } |
| 21128 | if iNdEx >= l { |
| 21129 | return io.ErrUnexpectedEOF |
| 21130 | } |
| 21131 | b := dAtA[iNdEx] |
| 21132 | iNdEx++ |
| 21133 | wire |= uint64(b&0x7F) << shift |
| 21134 | if b < 0x80 { |
| 21135 | break |
| 21136 | } |
| 21137 | } |
| 21138 | fieldNum := int32(wire >> 3) |
| 21139 | wireType := int(wire & 0x7) |
| 21140 | if wireType == 4 { |
| 21141 | return fmt.Errorf("proto: MemberUpdateRequest: wiretype end group for non-group") |
| 21142 | } |
| 21143 | if fieldNum <= 0 { |
| 21144 | return fmt.Errorf("proto: MemberUpdateRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 21145 | } |
| 21146 | switch fieldNum { |
| 21147 | case 1: |
| 21148 | if wireType != 0 { |
| 21149 | return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) |
| 21150 | } |
| 21151 | m.ID = 0 |
| 21152 | for shift := uint(0); ; shift += 7 { |
| 21153 | if shift >= 64 { |
| 21154 | return ErrIntOverflowRpc |
| 21155 | } |
| 21156 | if iNdEx >= l { |
| 21157 | return io.ErrUnexpectedEOF |
| 21158 | } |
| 21159 | b := dAtA[iNdEx] |
| 21160 | iNdEx++ |
| 21161 | m.ID |= uint64(b&0x7F) << shift |
| 21162 | if b < 0x80 { |
| 21163 | break |
| 21164 | } |
| 21165 | } |
| 21166 | case 2: |
| 21167 | if wireType != 2 { |
| 21168 | return fmt.Errorf("proto: wrong wireType = %d for field PeerURLs", wireType) |
| 21169 | } |
| 21170 | var stringLen uint64 |
| 21171 | for shift := uint(0); ; shift += 7 { |
| 21172 | if shift >= 64 { |
| 21173 | return ErrIntOverflowRpc |
| 21174 | } |
| 21175 | if iNdEx >= l { |
| 21176 | return io.ErrUnexpectedEOF |
| 21177 | } |
| 21178 | b := dAtA[iNdEx] |
| 21179 | iNdEx++ |
| 21180 | stringLen |= uint64(b&0x7F) << shift |
| 21181 | if b < 0x80 { |
| 21182 | break |
| 21183 | } |
| 21184 | } |
| 21185 | intStringLen := int(stringLen) |
| 21186 | if intStringLen < 0 { |
| 21187 | return ErrInvalidLengthRpc |
| 21188 | } |
| 21189 | postIndex := iNdEx + intStringLen |
| 21190 | if postIndex < 0 { |
| 21191 | return ErrInvalidLengthRpc |
| 21192 | } |
| 21193 | if postIndex > l { |
| 21194 | return io.ErrUnexpectedEOF |
| 21195 | } |
| 21196 | m.PeerURLs = append(m.PeerURLs, string(dAtA[iNdEx:postIndex])) |
| 21197 | iNdEx = postIndex |
| 21198 | default: |
| 21199 | iNdEx = preIndex |
| 21200 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 21201 | if err != nil { |
| 21202 | return err |
| 21203 | } |
| 21204 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 21205 | return ErrInvalidLengthRpc |
| 21206 | } |
| 21207 | if (iNdEx + skippy) > l { |
| 21208 | return io.ErrUnexpectedEOF |
| 21209 | } |
| 21210 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 21211 | iNdEx += skippy |
| 21212 | } |
| 21213 | } |
| 21214 | |
| 21215 | if iNdEx > l { |
| 21216 | return io.ErrUnexpectedEOF |
| 21217 | } |
| 21218 | return nil |
| 21219 | } |
| 21220 | func (m *MemberUpdateResponse) Unmarshal(dAtA []byte) error { |
| 21221 | l := len(dAtA) |
| 21222 | iNdEx := 0 |
| 21223 | for iNdEx < l { |
| 21224 | preIndex := iNdEx |
| 21225 | var wire uint64 |
| 21226 | for shift := uint(0); ; shift += 7 { |
| 21227 | if shift >= 64 { |
| 21228 | return ErrIntOverflowRpc |
| 21229 | } |
| 21230 | if iNdEx >= l { |
| 21231 | return io.ErrUnexpectedEOF |
| 21232 | } |
| 21233 | b := dAtA[iNdEx] |
| 21234 | iNdEx++ |
| 21235 | wire |= uint64(b&0x7F) << shift |
| 21236 | if b < 0x80 { |
| 21237 | break |
| 21238 | } |
| 21239 | } |
| 21240 | fieldNum := int32(wire >> 3) |
| 21241 | wireType := int(wire & 0x7) |
| 21242 | if wireType == 4 { |
| 21243 | return fmt.Errorf("proto: MemberUpdateResponse: wiretype end group for non-group") |
| 21244 | } |
| 21245 | if fieldNum <= 0 { |
| 21246 | return fmt.Errorf("proto: MemberUpdateResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 21247 | } |
| 21248 | switch fieldNum { |
| 21249 | case 1: |
| 21250 | if wireType != 2 { |
| 21251 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 21252 | } |
| 21253 | var msglen int |
| 21254 | for shift := uint(0); ; shift += 7 { |
| 21255 | if shift >= 64 { |
| 21256 | return ErrIntOverflowRpc |
| 21257 | } |
| 21258 | if iNdEx >= l { |
| 21259 | return io.ErrUnexpectedEOF |
| 21260 | } |
| 21261 | b := dAtA[iNdEx] |
| 21262 | iNdEx++ |
| 21263 | msglen |= int(b&0x7F) << shift |
| 21264 | if b < 0x80 { |
| 21265 | break |
| 21266 | } |
| 21267 | } |
| 21268 | if msglen < 0 { |
| 21269 | return ErrInvalidLengthRpc |
| 21270 | } |
| 21271 | postIndex := iNdEx + msglen |
| 21272 | if postIndex < 0 { |
| 21273 | return ErrInvalidLengthRpc |
| 21274 | } |
| 21275 | if postIndex > l { |
| 21276 | return io.ErrUnexpectedEOF |
| 21277 | } |
| 21278 | if m.Header == nil { |
| 21279 | m.Header = &ResponseHeader{} |
| 21280 | } |
| 21281 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 21282 | return err |
| 21283 | } |
| 21284 | iNdEx = postIndex |
| 21285 | case 2: |
| 21286 | if wireType != 2 { |
| 21287 | return fmt.Errorf("proto: wrong wireType = %d for field Members", wireType) |
| 21288 | } |
| 21289 | var msglen int |
| 21290 | for shift := uint(0); ; shift += 7 { |
| 21291 | if shift >= 64 { |
| 21292 | return ErrIntOverflowRpc |
| 21293 | } |
| 21294 | if iNdEx >= l { |
| 21295 | return io.ErrUnexpectedEOF |
| 21296 | } |
| 21297 | b := dAtA[iNdEx] |
| 21298 | iNdEx++ |
| 21299 | msglen |= int(b&0x7F) << shift |
| 21300 | if b < 0x80 { |
| 21301 | break |
| 21302 | } |
| 21303 | } |
| 21304 | if msglen < 0 { |
| 21305 | return ErrInvalidLengthRpc |
| 21306 | } |
| 21307 | postIndex := iNdEx + msglen |
| 21308 | if postIndex < 0 { |
| 21309 | return ErrInvalidLengthRpc |
| 21310 | } |
| 21311 | if postIndex > l { |
| 21312 | return io.ErrUnexpectedEOF |
| 21313 | } |
| 21314 | m.Members = append(m.Members, &Member{}) |
| 21315 | if err := m.Members[len(m.Members)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 21316 | return err |
| 21317 | } |
| 21318 | iNdEx = postIndex |
| 21319 | default: |
| 21320 | iNdEx = preIndex |
| 21321 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 21322 | if err != nil { |
| 21323 | return err |
| 21324 | } |
| 21325 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 21326 | return ErrInvalidLengthRpc |
| 21327 | } |
| 21328 | if (iNdEx + skippy) > l { |
| 21329 | return io.ErrUnexpectedEOF |
| 21330 | } |
| 21331 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 21332 | iNdEx += skippy |
| 21333 | } |
| 21334 | } |
| 21335 | |
| 21336 | if iNdEx > l { |
| 21337 | return io.ErrUnexpectedEOF |
| 21338 | } |
| 21339 | return nil |
| 21340 | } |
| 21341 | func (m *MemberListRequest) Unmarshal(dAtA []byte) error { |
| 21342 | l := len(dAtA) |
| 21343 | iNdEx := 0 |
| 21344 | for iNdEx < l { |
| 21345 | preIndex := iNdEx |
| 21346 | var wire uint64 |
| 21347 | for shift := uint(0); ; shift += 7 { |
| 21348 | if shift >= 64 { |
| 21349 | return ErrIntOverflowRpc |
| 21350 | } |
| 21351 | if iNdEx >= l { |
| 21352 | return io.ErrUnexpectedEOF |
| 21353 | } |
| 21354 | b := dAtA[iNdEx] |
| 21355 | iNdEx++ |
| 21356 | wire |= uint64(b&0x7F) << shift |
| 21357 | if b < 0x80 { |
| 21358 | break |
| 21359 | } |
| 21360 | } |
| 21361 | fieldNum := int32(wire >> 3) |
| 21362 | wireType := int(wire & 0x7) |
| 21363 | if wireType == 4 { |
| 21364 | return fmt.Errorf("proto: MemberListRequest: wiretype end group for non-group") |
| 21365 | } |
| 21366 | if fieldNum <= 0 { |
| 21367 | return fmt.Errorf("proto: MemberListRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 21368 | } |
| 21369 | switch fieldNum { |
| 21370 | case 1: |
| 21371 | if wireType != 0 { |
| 21372 | return fmt.Errorf("proto: wrong wireType = %d for field Linearizable", wireType) |
| 21373 | } |
| 21374 | var v int |
| 21375 | for shift := uint(0); ; shift += 7 { |
| 21376 | if shift >= 64 { |
| 21377 | return ErrIntOverflowRpc |
| 21378 | } |
| 21379 | if iNdEx >= l { |
| 21380 | return io.ErrUnexpectedEOF |
| 21381 | } |
| 21382 | b := dAtA[iNdEx] |
| 21383 | iNdEx++ |
| 21384 | v |= int(b&0x7F) << shift |
| 21385 | if b < 0x80 { |
| 21386 | break |
| 21387 | } |
| 21388 | } |
| 21389 | m.Linearizable = bool(v != 0) |
| 21390 | default: |
| 21391 | iNdEx = preIndex |
| 21392 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 21393 | if err != nil { |
| 21394 | return err |
| 21395 | } |
| 21396 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 21397 | return ErrInvalidLengthRpc |
| 21398 | } |
| 21399 | if (iNdEx + skippy) > l { |
| 21400 | return io.ErrUnexpectedEOF |
| 21401 | } |
| 21402 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 21403 | iNdEx += skippy |
| 21404 | } |
| 21405 | } |
| 21406 | |
| 21407 | if iNdEx > l { |
| 21408 | return io.ErrUnexpectedEOF |
| 21409 | } |
| 21410 | return nil |
| 21411 | } |
| 21412 | func (m *MemberListResponse) Unmarshal(dAtA []byte) error { |
| 21413 | l := len(dAtA) |
| 21414 | iNdEx := 0 |
| 21415 | for iNdEx < l { |
| 21416 | preIndex := iNdEx |
| 21417 | var wire uint64 |
| 21418 | for shift := uint(0); ; shift += 7 { |
| 21419 | if shift >= 64 { |
| 21420 | return ErrIntOverflowRpc |
| 21421 | } |
| 21422 | if iNdEx >= l { |
| 21423 | return io.ErrUnexpectedEOF |
| 21424 | } |
| 21425 | b := dAtA[iNdEx] |
| 21426 | iNdEx++ |
| 21427 | wire |= uint64(b&0x7F) << shift |
| 21428 | if b < 0x80 { |
| 21429 | break |
| 21430 | } |
| 21431 | } |
| 21432 | fieldNum := int32(wire >> 3) |
| 21433 | wireType := int(wire & 0x7) |
| 21434 | if wireType == 4 { |
| 21435 | return fmt.Errorf("proto: MemberListResponse: wiretype end group for non-group") |
| 21436 | } |
| 21437 | if fieldNum <= 0 { |
| 21438 | return fmt.Errorf("proto: MemberListResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 21439 | } |
| 21440 | switch fieldNum { |
| 21441 | case 1: |
| 21442 | if wireType != 2 { |
| 21443 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 21444 | } |
| 21445 | var msglen int |
| 21446 | for shift := uint(0); ; shift += 7 { |
| 21447 | if shift >= 64 { |
| 21448 | return ErrIntOverflowRpc |
| 21449 | } |
| 21450 | if iNdEx >= l { |
| 21451 | return io.ErrUnexpectedEOF |
| 21452 | } |
| 21453 | b := dAtA[iNdEx] |
| 21454 | iNdEx++ |
| 21455 | msglen |= int(b&0x7F) << shift |
| 21456 | if b < 0x80 { |
| 21457 | break |
| 21458 | } |
| 21459 | } |
| 21460 | if msglen < 0 { |
| 21461 | return ErrInvalidLengthRpc |
| 21462 | } |
| 21463 | postIndex := iNdEx + msglen |
| 21464 | if postIndex < 0 { |
| 21465 | return ErrInvalidLengthRpc |
| 21466 | } |
| 21467 | if postIndex > l { |
| 21468 | return io.ErrUnexpectedEOF |
| 21469 | } |
| 21470 | if m.Header == nil { |
| 21471 | m.Header = &ResponseHeader{} |
| 21472 | } |
| 21473 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 21474 | return err |
| 21475 | } |
| 21476 | iNdEx = postIndex |
| 21477 | case 2: |
| 21478 | if wireType != 2 { |
| 21479 | return fmt.Errorf("proto: wrong wireType = %d for field Members", wireType) |
| 21480 | } |
| 21481 | var msglen int |
| 21482 | for shift := uint(0); ; shift += 7 { |
| 21483 | if shift >= 64 { |
| 21484 | return ErrIntOverflowRpc |
| 21485 | } |
| 21486 | if iNdEx >= l { |
| 21487 | return io.ErrUnexpectedEOF |
| 21488 | } |
| 21489 | b := dAtA[iNdEx] |
| 21490 | iNdEx++ |
| 21491 | msglen |= int(b&0x7F) << shift |
| 21492 | if b < 0x80 { |
| 21493 | break |
| 21494 | } |
| 21495 | } |
| 21496 | if msglen < 0 { |
| 21497 | return ErrInvalidLengthRpc |
| 21498 | } |
| 21499 | postIndex := iNdEx + msglen |
| 21500 | if postIndex < 0 { |
| 21501 | return ErrInvalidLengthRpc |
| 21502 | } |
| 21503 | if postIndex > l { |
| 21504 | return io.ErrUnexpectedEOF |
| 21505 | } |
| 21506 | m.Members = append(m.Members, &Member{}) |
| 21507 | if err := m.Members[len(m.Members)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 21508 | return err |
| 21509 | } |
| 21510 | iNdEx = postIndex |
| 21511 | default: |
| 21512 | iNdEx = preIndex |
| 21513 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 21514 | if err != nil { |
| 21515 | return err |
| 21516 | } |
| 21517 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 21518 | return ErrInvalidLengthRpc |
| 21519 | } |
| 21520 | if (iNdEx + skippy) > l { |
| 21521 | return io.ErrUnexpectedEOF |
| 21522 | } |
| 21523 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 21524 | iNdEx += skippy |
| 21525 | } |
| 21526 | } |
| 21527 | |
| 21528 | if iNdEx > l { |
| 21529 | return io.ErrUnexpectedEOF |
| 21530 | } |
| 21531 | return nil |
| 21532 | } |
| 21533 | func (m *MemberPromoteRequest) Unmarshal(dAtA []byte) error { |
| 21534 | l := len(dAtA) |
| 21535 | iNdEx := 0 |
| 21536 | for iNdEx < l { |
| 21537 | preIndex := iNdEx |
| 21538 | var wire uint64 |
| 21539 | for shift := uint(0); ; shift += 7 { |
| 21540 | if shift >= 64 { |
| 21541 | return ErrIntOverflowRpc |
| 21542 | } |
| 21543 | if iNdEx >= l { |
| 21544 | return io.ErrUnexpectedEOF |
| 21545 | } |
| 21546 | b := dAtA[iNdEx] |
| 21547 | iNdEx++ |
| 21548 | wire |= uint64(b&0x7F) << shift |
| 21549 | if b < 0x80 { |
| 21550 | break |
| 21551 | } |
| 21552 | } |
| 21553 | fieldNum := int32(wire >> 3) |
| 21554 | wireType := int(wire & 0x7) |
| 21555 | if wireType == 4 { |
| 21556 | return fmt.Errorf("proto: MemberPromoteRequest: wiretype end group for non-group") |
| 21557 | } |
| 21558 | if fieldNum <= 0 { |
| 21559 | return fmt.Errorf("proto: MemberPromoteRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 21560 | } |
| 21561 | switch fieldNum { |
| 21562 | case 1: |
| 21563 | if wireType != 0 { |
| 21564 | return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) |
| 21565 | } |
| 21566 | m.ID = 0 |
| 21567 | for shift := uint(0); ; shift += 7 { |
| 21568 | if shift >= 64 { |
| 21569 | return ErrIntOverflowRpc |
| 21570 | } |
| 21571 | if iNdEx >= l { |
| 21572 | return io.ErrUnexpectedEOF |
| 21573 | } |
| 21574 | b := dAtA[iNdEx] |
| 21575 | iNdEx++ |
| 21576 | m.ID |= uint64(b&0x7F) << shift |
| 21577 | if b < 0x80 { |
| 21578 | break |
| 21579 | } |
| 21580 | } |
| 21581 | default: |
| 21582 | iNdEx = preIndex |
| 21583 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 21584 | if err != nil { |
| 21585 | return err |
| 21586 | } |
| 21587 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 21588 | return ErrInvalidLengthRpc |
| 21589 | } |
| 21590 | if (iNdEx + skippy) > l { |
| 21591 | return io.ErrUnexpectedEOF |
| 21592 | } |
| 21593 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 21594 | iNdEx += skippy |
| 21595 | } |
| 21596 | } |
| 21597 | |
| 21598 | if iNdEx > l { |
| 21599 | return io.ErrUnexpectedEOF |
| 21600 | } |
| 21601 | return nil |
| 21602 | } |
| 21603 | func (m *MemberPromoteResponse) Unmarshal(dAtA []byte) error { |
| 21604 | l := len(dAtA) |
| 21605 | iNdEx := 0 |
| 21606 | for iNdEx < l { |
| 21607 | preIndex := iNdEx |
| 21608 | var wire uint64 |
| 21609 | for shift := uint(0); ; shift += 7 { |
| 21610 | if shift >= 64 { |
| 21611 | return ErrIntOverflowRpc |
| 21612 | } |
| 21613 | if iNdEx >= l { |
| 21614 | return io.ErrUnexpectedEOF |
| 21615 | } |
| 21616 | b := dAtA[iNdEx] |
| 21617 | iNdEx++ |
| 21618 | wire |= uint64(b&0x7F) << shift |
| 21619 | if b < 0x80 { |
| 21620 | break |
| 21621 | } |
| 21622 | } |
| 21623 | fieldNum := int32(wire >> 3) |
| 21624 | wireType := int(wire & 0x7) |
| 21625 | if wireType == 4 { |
| 21626 | return fmt.Errorf("proto: MemberPromoteResponse: wiretype end group for non-group") |
| 21627 | } |
| 21628 | if fieldNum <= 0 { |
| 21629 | return fmt.Errorf("proto: MemberPromoteResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 21630 | } |
| 21631 | switch fieldNum { |
| 21632 | case 1: |
| 21633 | if wireType != 2 { |
| 21634 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 21635 | } |
| 21636 | var msglen int |
| 21637 | for shift := uint(0); ; shift += 7 { |
| 21638 | if shift >= 64 { |
| 21639 | return ErrIntOverflowRpc |
| 21640 | } |
| 21641 | if iNdEx >= l { |
| 21642 | return io.ErrUnexpectedEOF |
| 21643 | } |
| 21644 | b := dAtA[iNdEx] |
| 21645 | iNdEx++ |
| 21646 | msglen |= int(b&0x7F) << shift |
| 21647 | if b < 0x80 { |
| 21648 | break |
| 21649 | } |
| 21650 | } |
| 21651 | if msglen < 0 { |
| 21652 | return ErrInvalidLengthRpc |
| 21653 | } |
| 21654 | postIndex := iNdEx + msglen |
| 21655 | if postIndex < 0 { |
| 21656 | return ErrInvalidLengthRpc |
| 21657 | } |
| 21658 | if postIndex > l { |
| 21659 | return io.ErrUnexpectedEOF |
| 21660 | } |
| 21661 | if m.Header == nil { |
| 21662 | m.Header = &ResponseHeader{} |
| 21663 | } |
| 21664 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 21665 | return err |
| 21666 | } |
| 21667 | iNdEx = postIndex |
| 21668 | case 2: |
| 21669 | if wireType != 2 { |
| 21670 | return fmt.Errorf("proto: wrong wireType = %d for field Members", wireType) |
| 21671 | } |
| 21672 | var msglen int |
| 21673 | for shift := uint(0); ; shift += 7 { |
| 21674 | if shift >= 64 { |
| 21675 | return ErrIntOverflowRpc |
| 21676 | } |
| 21677 | if iNdEx >= l { |
| 21678 | return io.ErrUnexpectedEOF |
| 21679 | } |
| 21680 | b := dAtA[iNdEx] |
| 21681 | iNdEx++ |
| 21682 | msglen |= int(b&0x7F) << shift |
| 21683 | if b < 0x80 { |
| 21684 | break |
| 21685 | } |
| 21686 | } |
| 21687 | if msglen < 0 { |
| 21688 | return ErrInvalidLengthRpc |
| 21689 | } |
| 21690 | postIndex := iNdEx + msglen |
| 21691 | if postIndex < 0 { |
| 21692 | return ErrInvalidLengthRpc |
| 21693 | } |
| 21694 | if postIndex > l { |
| 21695 | return io.ErrUnexpectedEOF |
| 21696 | } |
| 21697 | m.Members = append(m.Members, &Member{}) |
| 21698 | if err := m.Members[len(m.Members)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 21699 | return err |
| 21700 | } |
| 21701 | iNdEx = postIndex |
| 21702 | default: |
| 21703 | iNdEx = preIndex |
| 21704 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 21705 | if err != nil { |
| 21706 | return err |
| 21707 | } |
| 21708 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 21709 | return ErrInvalidLengthRpc |
| 21710 | } |
| 21711 | if (iNdEx + skippy) > l { |
| 21712 | return io.ErrUnexpectedEOF |
| 21713 | } |
| 21714 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 21715 | iNdEx += skippy |
| 21716 | } |
| 21717 | } |
| 21718 | |
| 21719 | if iNdEx > l { |
| 21720 | return io.ErrUnexpectedEOF |
| 21721 | } |
| 21722 | return nil |
| 21723 | } |
| 21724 | func (m *DefragmentRequest) Unmarshal(dAtA []byte) error { |
| 21725 | l := len(dAtA) |
| 21726 | iNdEx := 0 |
| 21727 | for iNdEx < l { |
| 21728 | preIndex := iNdEx |
| 21729 | var wire uint64 |
| 21730 | for shift := uint(0); ; shift += 7 { |
| 21731 | if shift >= 64 { |
| 21732 | return ErrIntOverflowRpc |
| 21733 | } |
| 21734 | if iNdEx >= l { |
| 21735 | return io.ErrUnexpectedEOF |
| 21736 | } |
| 21737 | b := dAtA[iNdEx] |
| 21738 | iNdEx++ |
| 21739 | wire |= uint64(b&0x7F) << shift |
| 21740 | if b < 0x80 { |
| 21741 | break |
| 21742 | } |
| 21743 | } |
| 21744 | fieldNum := int32(wire >> 3) |
| 21745 | wireType := int(wire & 0x7) |
| 21746 | if wireType == 4 { |
| 21747 | return fmt.Errorf("proto: DefragmentRequest: wiretype end group for non-group") |
| 21748 | } |
| 21749 | if fieldNum <= 0 { |
| 21750 | return fmt.Errorf("proto: DefragmentRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 21751 | } |
| 21752 | switch fieldNum { |
| 21753 | default: |
| 21754 | iNdEx = preIndex |
| 21755 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 21756 | if err != nil { |
| 21757 | return err |
| 21758 | } |
| 21759 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 21760 | return ErrInvalidLengthRpc |
| 21761 | } |
| 21762 | if (iNdEx + skippy) > l { |
| 21763 | return io.ErrUnexpectedEOF |
| 21764 | } |
| 21765 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 21766 | iNdEx += skippy |
| 21767 | } |
| 21768 | } |
| 21769 | |
| 21770 | if iNdEx > l { |
| 21771 | return io.ErrUnexpectedEOF |
| 21772 | } |
| 21773 | return nil |
| 21774 | } |
| 21775 | func (m *DefragmentResponse) Unmarshal(dAtA []byte) error { |
| 21776 | l := len(dAtA) |
| 21777 | iNdEx := 0 |
| 21778 | for iNdEx < l { |
| 21779 | preIndex := iNdEx |
| 21780 | var wire uint64 |
| 21781 | for shift := uint(0); ; shift += 7 { |
| 21782 | if shift >= 64 { |
| 21783 | return ErrIntOverflowRpc |
| 21784 | } |
| 21785 | if iNdEx >= l { |
| 21786 | return io.ErrUnexpectedEOF |
| 21787 | } |
| 21788 | b := dAtA[iNdEx] |
| 21789 | iNdEx++ |
| 21790 | wire |= uint64(b&0x7F) << shift |
| 21791 | if b < 0x80 { |
| 21792 | break |
| 21793 | } |
| 21794 | } |
| 21795 | fieldNum := int32(wire >> 3) |
| 21796 | wireType := int(wire & 0x7) |
| 21797 | if wireType == 4 { |
| 21798 | return fmt.Errorf("proto: DefragmentResponse: wiretype end group for non-group") |
| 21799 | } |
| 21800 | if fieldNum <= 0 { |
| 21801 | return fmt.Errorf("proto: DefragmentResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 21802 | } |
| 21803 | switch fieldNum { |
| 21804 | case 1: |
| 21805 | if wireType != 2 { |
| 21806 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 21807 | } |
| 21808 | var msglen int |
| 21809 | for shift := uint(0); ; shift += 7 { |
| 21810 | if shift >= 64 { |
| 21811 | return ErrIntOverflowRpc |
| 21812 | } |
| 21813 | if iNdEx >= l { |
| 21814 | return io.ErrUnexpectedEOF |
| 21815 | } |
| 21816 | b := dAtA[iNdEx] |
| 21817 | iNdEx++ |
| 21818 | msglen |= int(b&0x7F) << shift |
| 21819 | if b < 0x80 { |
| 21820 | break |
| 21821 | } |
| 21822 | } |
| 21823 | if msglen < 0 { |
| 21824 | return ErrInvalidLengthRpc |
| 21825 | } |
| 21826 | postIndex := iNdEx + msglen |
| 21827 | if postIndex < 0 { |
| 21828 | return ErrInvalidLengthRpc |
| 21829 | } |
| 21830 | if postIndex > l { |
| 21831 | return io.ErrUnexpectedEOF |
| 21832 | } |
| 21833 | if m.Header == nil { |
| 21834 | m.Header = &ResponseHeader{} |
| 21835 | } |
| 21836 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 21837 | return err |
| 21838 | } |
| 21839 | iNdEx = postIndex |
| 21840 | default: |
| 21841 | iNdEx = preIndex |
| 21842 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 21843 | if err != nil { |
| 21844 | return err |
| 21845 | } |
| 21846 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 21847 | return ErrInvalidLengthRpc |
| 21848 | } |
| 21849 | if (iNdEx + skippy) > l { |
| 21850 | return io.ErrUnexpectedEOF |
| 21851 | } |
| 21852 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 21853 | iNdEx += skippy |
| 21854 | } |
| 21855 | } |
| 21856 | |
| 21857 | if iNdEx > l { |
| 21858 | return io.ErrUnexpectedEOF |
| 21859 | } |
| 21860 | return nil |
| 21861 | } |
| 21862 | func (m *MoveLeaderRequest) Unmarshal(dAtA []byte) error { |
| 21863 | l := len(dAtA) |
| 21864 | iNdEx := 0 |
| 21865 | for iNdEx < l { |
| 21866 | preIndex := iNdEx |
| 21867 | var wire uint64 |
| 21868 | for shift := uint(0); ; shift += 7 { |
| 21869 | if shift >= 64 { |
| 21870 | return ErrIntOverflowRpc |
| 21871 | } |
| 21872 | if iNdEx >= l { |
| 21873 | return io.ErrUnexpectedEOF |
| 21874 | } |
| 21875 | b := dAtA[iNdEx] |
| 21876 | iNdEx++ |
| 21877 | wire |= uint64(b&0x7F) << shift |
| 21878 | if b < 0x80 { |
| 21879 | break |
| 21880 | } |
| 21881 | } |
| 21882 | fieldNum := int32(wire >> 3) |
| 21883 | wireType := int(wire & 0x7) |
| 21884 | if wireType == 4 { |
| 21885 | return fmt.Errorf("proto: MoveLeaderRequest: wiretype end group for non-group") |
| 21886 | } |
| 21887 | if fieldNum <= 0 { |
| 21888 | return fmt.Errorf("proto: MoveLeaderRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 21889 | } |
| 21890 | switch fieldNum { |
| 21891 | case 1: |
| 21892 | if wireType != 0 { |
| 21893 | return fmt.Errorf("proto: wrong wireType = %d for field TargetID", wireType) |
| 21894 | } |
| 21895 | m.TargetID = 0 |
| 21896 | for shift := uint(0); ; shift += 7 { |
| 21897 | if shift >= 64 { |
| 21898 | return ErrIntOverflowRpc |
| 21899 | } |
| 21900 | if iNdEx >= l { |
| 21901 | return io.ErrUnexpectedEOF |
| 21902 | } |
| 21903 | b := dAtA[iNdEx] |
| 21904 | iNdEx++ |
| 21905 | m.TargetID |= uint64(b&0x7F) << shift |
| 21906 | if b < 0x80 { |
| 21907 | break |
| 21908 | } |
| 21909 | } |
| 21910 | default: |
| 21911 | iNdEx = preIndex |
| 21912 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 21913 | if err != nil { |
| 21914 | return err |
| 21915 | } |
| 21916 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 21917 | return ErrInvalidLengthRpc |
| 21918 | } |
| 21919 | if (iNdEx + skippy) > l { |
| 21920 | return io.ErrUnexpectedEOF |
| 21921 | } |
| 21922 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 21923 | iNdEx += skippy |
| 21924 | } |
| 21925 | } |
| 21926 | |
| 21927 | if iNdEx > l { |
| 21928 | return io.ErrUnexpectedEOF |
| 21929 | } |
| 21930 | return nil |
| 21931 | } |
| 21932 | func (m *MoveLeaderResponse) Unmarshal(dAtA []byte) error { |
| 21933 | l := len(dAtA) |
| 21934 | iNdEx := 0 |
| 21935 | for iNdEx < l { |
| 21936 | preIndex := iNdEx |
| 21937 | var wire uint64 |
| 21938 | for shift := uint(0); ; shift += 7 { |
| 21939 | if shift >= 64 { |
| 21940 | return ErrIntOverflowRpc |
| 21941 | } |
| 21942 | if iNdEx >= l { |
| 21943 | return io.ErrUnexpectedEOF |
| 21944 | } |
| 21945 | b := dAtA[iNdEx] |
| 21946 | iNdEx++ |
| 21947 | wire |= uint64(b&0x7F) << shift |
| 21948 | if b < 0x80 { |
| 21949 | break |
| 21950 | } |
| 21951 | } |
| 21952 | fieldNum := int32(wire >> 3) |
| 21953 | wireType := int(wire & 0x7) |
| 21954 | if wireType == 4 { |
| 21955 | return fmt.Errorf("proto: MoveLeaderResponse: wiretype end group for non-group") |
| 21956 | } |
| 21957 | if fieldNum <= 0 { |
| 21958 | return fmt.Errorf("proto: MoveLeaderResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 21959 | } |
| 21960 | switch fieldNum { |
| 21961 | case 1: |
| 21962 | if wireType != 2 { |
| 21963 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 21964 | } |
| 21965 | var msglen int |
| 21966 | for shift := uint(0); ; shift += 7 { |
| 21967 | if shift >= 64 { |
| 21968 | return ErrIntOverflowRpc |
| 21969 | } |
| 21970 | if iNdEx >= l { |
| 21971 | return io.ErrUnexpectedEOF |
| 21972 | } |
| 21973 | b := dAtA[iNdEx] |
| 21974 | iNdEx++ |
| 21975 | msglen |= int(b&0x7F) << shift |
| 21976 | if b < 0x80 { |
| 21977 | break |
| 21978 | } |
| 21979 | } |
| 21980 | if msglen < 0 { |
| 21981 | return ErrInvalidLengthRpc |
| 21982 | } |
| 21983 | postIndex := iNdEx + msglen |
| 21984 | if postIndex < 0 { |
| 21985 | return ErrInvalidLengthRpc |
| 21986 | } |
| 21987 | if postIndex > l { |
| 21988 | return io.ErrUnexpectedEOF |
| 21989 | } |
| 21990 | if m.Header == nil { |
| 21991 | m.Header = &ResponseHeader{} |
| 21992 | } |
| 21993 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 21994 | return err |
| 21995 | } |
| 21996 | iNdEx = postIndex |
| 21997 | default: |
| 21998 | iNdEx = preIndex |
| 21999 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 22000 | if err != nil { |
| 22001 | return err |
| 22002 | } |
| 22003 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 22004 | return ErrInvalidLengthRpc |
| 22005 | } |
| 22006 | if (iNdEx + skippy) > l { |
| 22007 | return io.ErrUnexpectedEOF |
| 22008 | } |
| 22009 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 22010 | iNdEx += skippy |
| 22011 | } |
| 22012 | } |
| 22013 | |
| 22014 | if iNdEx > l { |
| 22015 | return io.ErrUnexpectedEOF |
| 22016 | } |
| 22017 | return nil |
| 22018 | } |
| 22019 | func (m *AlarmRequest) Unmarshal(dAtA []byte) error { |
| 22020 | l := len(dAtA) |
| 22021 | iNdEx := 0 |
| 22022 | for iNdEx < l { |
| 22023 | preIndex := iNdEx |
| 22024 | var wire uint64 |
| 22025 | for shift := uint(0); ; shift += 7 { |
| 22026 | if shift >= 64 { |
| 22027 | return ErrIntOverflowRpc |
| 22028 | } |
| 22029 | if iNdEx >= l { |
| 22030 | return io.ErrUnexpectedEOF |
| 22031 | } |
| 22032 | b := dAtA[iNdEx] |
| 22033 | iNdEx++ |
| 22034 | wire |= uint64(b&0x7F) << shift |
| 22035 | if b < 0x80 { |
| 22036 | break |
| 22037 | } |
| 22038 | } |
| 22039 | fieldNum := int32(wire >> 3) |
| 22040 | wireType := int(wire & 0x7) |
| 22041 | if wireType == 4 { |
| 22042 | return fmt.Errorf("proto: AlarmRequest: wiretype end group for non-group") |
| 22043 | } |
| 22044 | if fieldNum <= 0 { |
| 22045 | return fmt.Errorf("proto: AlarmRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 22046 | } |
| 22047 | switch fieldNum { |
| 22048 | case 1: |
| 22049 | if wireType != 0 { |
| 22050 | return fmt.Errorf("proto: wrong wireType = %d for field Action", wireType) |
| 22051 | } |
| 22052 | m.Action = 0 |
| 22053 | for shift := uint(0); ; shift += 7 { |
| 22054 | if shift >= 64 { |
| 22055 | return ErrIntOverflowRpc |
| 22056 | } |
| 22057 | if iNdEx >= l { |
| 22058 | return io.ErrUnexpectedEOF |
| 22059 | } |
| 22060 | b := dAtA[iNdEx] |
| 22061 | iNdEx++ |
| 22062 | m.Action |= AlarmRequest_AlarmAction(b&0x7F) << shift |
| 22063 | if b < 0x80 { |
| 22064 | break |
| 22065 | } |
| 22066 | } |
| 22067 | case 2: |
| 22068 | if wireType != 0 { |
| 22069 | return fmt.Errorf("proto: wrong wireType = %d for field MemberID", wireType) |
| 22070 | } |
| 22071 | m.MemberID = 0 |
| 22072 | for shift := uint(0); ; shift += 7 { |
| 22073 | if shift >= 64 { |
| 22074 | return ErrIntOverflowRpc |
| 22075 | } |
| 22076 | if iNdEx >= l { |
| 22077 | return io.ErrUnexpectedEOF |
| 22078 | } |
| 22079 | b := dAtA[iNdEx] |
| 22080 | iNdEx++ |
| 22081 | m.MemberID |= uint64(b&0x7F) << shift |
| 22082 | if b < 0x80 { |
| 22083 | break |
| 22084 | } |
| 22085 | } |
| 22086 | case 3: |
| 22087 | if wireType != 0 { |
| 22088 | return fmt.Errorf("proto: wrong wireType = %d for field Alarm", wireType) |
| 22089 | } |
| 22090 | m.Alarm = 0 |
| 22091 | for shift := uint(0); ; shift += 7 { |
| 22092 | if shift >= 64 { |
| 22093 | return ErrIntOverflowRpc |
| 22094 | } |
| 22095 | if iNdEx >= l { |
| 22096 | return io.ErrUnexpectedEOF |
| 22097 | } |
| 22098 | b := dAtA[iNdEx] |
| 22099 | iNdEx++ |
| 22100 | m.Alarm |= AlarmType(b&0x7F) << shift |
| 22101 | if b < 0x80 { |
| 22102 | break |
| 22103 | } |
| 22104 | } |
| 22105 | default: |
| 22106 | iNdEx = preIndex |
| 22107 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 22108 | if err != nil { |
| 22109 | return err |
| 22110 | } |
| 22111 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 22112 | return ErrInvalidLengthRpc |
| 22113 | } |
| 22114 | if (iNdEx + skippy) > l { |
| 22115 | return io.ErrUnexpectedEOF |
| 22116 | } |
| 22117 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 22118 | iNdEx += skippy |
| 22119 | } |
| 22120 | } |
| 22121 | |
| 22122 | if iNdEx > l { |
| 22123 | return io.ErrUnexpectedEOF |
| 22124 | } |
| 22125 | return nil |
| 22126 | } |
| 22127 | func (m *AlarmMember) Unmarshal(dAtA []byte) error { |
| 22128 | l := len(dAtA) |
| 22129 | iNdEx := 0 |
| 22130 | for iNdEx < l { |
| 22131 | preIndex := iNdEx |
| 22132 | var wire uint64 |
| 22133 | for shift := uint(0); ; shift += 7 { |
| 22134 | if shift >= 64 { |
| 22135 | return ErrIntOverflowRpc |
| 22136 | } |
| 22137 | if iNdEx >= l { |
| 22138 | return io.ErrUnexpectedEOF |
| 22139 | } |
| 22140 | b := dAtA[iNdEx] |
| 22141 | iNdEx++ |
| 22142 | wire |= uint64(b&0x7F) << shift |
| 22143 | if b < 0x80 { |
| 22144 | break |
| 22145 | } |
| 22146 | } |
| 22147 | fieldNum := int32(wire >> 3) |
| 22148 | wireType := int(wire & 0x7) |
| 22149 | if wireType == 4 { |
| 22150 | return fmt.Errorf("proto: AlarmMember: wiretype end group for non-group") |
| 22151 | } |
| 22152 | if fieldNum <= 0 { |
| 22153 | return fmt.Errorf("proto: AlarmMember: illegal tag %d (wire type %d)", fieldNum, wire) |
| 22154 | } |
| 22155 | switch fieldNum { |
| 22156 | case 1: |
| 22157 | if wireType != 0 { |
| 22158 | return fmt.Errorf("proto: wrong wireType = %d for field MemberID", wireType) |
| 22159 | } |
| 22160 | m.MemberID = 0 |
| 22161 | for shift := uint(0); ; shift += 7 { |
| 22162 | if shift >= 64 { |
| 22163 | return ErrIntOverflowRpc |
| 22164 | } |
| 22165 | if iNdEx >= l { |
| 22166 | return io.ErrUnexpectedEOF |
| 22167 | } |
| 22168 | b := dAtA[iNdEx] |
| 22169 | iNdEx++ |
| 22170 | m.MemberID |= uint64(b&0x7F) << shift |
| 22171 | if b < 0x80 { |
| 22172 | break |
| 22173 | } |
| 22174 | } |
| 22175 | case 2: |
| 22176 | if wireType != 0 { |
| 22177 | return fmt.Errorf("proto: wrong wireType = %d for field Alarm", wireType) |
| 22178 | } |
| 22179 | m.Alarm = 0 |
| 22180 | for shift := uint(0); ; shift += 7 { |
| 22181 | if shift >= 64 { |
| 22182 | return ErrIntOverflowRpc |
| 22183 | } |
| 22184 | if iNdEx >= l { |
| 22185 | return io.ErrUnexpectedEOF |
| 22186 | } |
| 22187 | b := dAtA[iNdEx] |
| 22188 | iNdEx++ |
| 22189 | m.Alarm |= AlarmType(b&0x7F) << shift |
| 22190 | if b < 0x80 { |
| 22191 | break |
| 22192 | } |
| 22193 | } |
| 22194 | default: |
| 22195 | iNdEx = preIndex |
| 22196 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 22197 | if err != nil { |
| 22198 | return err |
| 22199 | } |
| 22200 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 22201 | return ErrInvalidLengthRpc |
| 22202 | } |
| 22203 | if (iNdEx + skippy) > l { |
| 22204 | return io.ErrUnexpectedEOF |
| 22205 | } |
| 22206 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 22207 | iNdEx += skippy |
| 22208 | } |
| 22209 | } |
| 22210 | |
| 22211 | if iNdEx > l { |
| 22212 | return io.ErrUnexpectedEOF |
| 22213 | } |
| 22214 | return nil |
| 22215 | } |
| 22216 | func (m *AlarmResponse) Unmarshal(dAtA []byte) error { |
| 22217 | l := len(dAtA) |
| 22218 | iNdEx := 0 |
| 22219 | for iNdEx < l { |
| 22220 | preIndex := iNdEx |
| 22221 | var wire uint64 |
| 22222 | for shift := uint(0); ; shift += 7 { |
| 22223 | if shift >= 64 { |
| 22224 | return ErrIntOverflowRpc |
| 22225 | } |
| 22226 | if iNdEx >= l { |
| 22227 | return io.ErrUnexpectedEOF |
| 22228 | } |
| 22229 | b := dAtA[iNdEx] |
| 22230 | iNdEx++ |
| 22231 | wire |= uint64(b&0x7F) << shift |
| 22232 | if b < 0x80 { |
| 22233 | break |
| 22234 | } |
| 22235 | } |
| 22236 | fieldNum := int32(wire >> 3) |
| 22237 | wireType := int(wire & 0x7) |
| 22238 | if wireType == 4 { |
| 22239 | return fmt.Errorf("proto: AlarmResponse: wiretype end group for non-group") |
| 22240 | } |
| 22241 | if fieldNum <= 0 { |
| 22242 | return fmt.Errorf("proto: AlarmResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 22243 | } |
| 22244 | switch fieldNum { |
| 22245 | case 1: |
| 22246 | if wireType != 2 { |
| 22247 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 22248 | } |
| 22249 | var msglen int |
| 22250 | for shift := uint(0); ; shift += 7 { |
| 22251 | if shift >= 64 { |
| 22252 | return ErrIntOverflowRpc |
| 22253 | } |
| 22254 | if iNdEx >= l { |
| 22255 | return io.ErrUnexpectedEOF |
| 22256 | } |
| 22257 | b := dAtA[iNdEx] |
| 22258 | iNdEx++ |
| 22259 | msglen |= int(b&0x7F) << shift |
| 22260 | if b < 0x80 { |
| 22261 | break |
| 22262 | } |
| 22263 | } |
| 22264 | if msglen < 0 { |
| 22265 | return ErrInvalidLengthRpc |
| 22266 | } |
| 22267 | postIndex := iNdEx + msglen |
| 22268 | if postIndex < 0 { |
| 22269 | return ErrInvalidLengthRpc |
| 22270 | } |
| 22271 | if postIndex > l { |
| 22272 | return io.ErrUnexpectedEOF |
| 22273 | } |
| 22274 | if m.Header == nil { |
| 22275 | m.Header = &ResponseHeader{} |
| 22276 | } |
| 22277 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 22278 | return err |
| 22279 | } |
| 22280 | iNdEx = postIndex |
| 22281 | case 2: |
| 22282 | if wireType != 2 { |
| 22283 | return fmt.Errorf("proto: wrong wireType = %d for field Alarms", wireType) |
| 22284 | } |
| 22285 | var msglen int |
| 22286 | for shift := uint(0); ; shift += 7 { |
| 22287 | if shift >= 64 { |
| 22288 | return ErrIntOverflowRpc |
| 22289 | } |
| 22290 | if iNdEx >= l { |
| 22291 | return io.ErrUnexpectedEOF |
| 22292 | } |
| 22293 | b := dAtA[iNdEx] |
| 22294 | iNdEx++ |
| 22295 | msglen |= int(b&0x7F) << shift |
| 22296 | if b < 0x80 { |
| 22297 | break |
| 22298 | } |
| 22299 | } |
| 22300 | if msglen < 0 { |
| 22301 | return ErrInvalidLengthRpc |
| 22302 | } |
| 22303 | postIndex := iNdEx + msglen |
| 22304 | if postIndex < 0 { |
| 22305 | return ErrInvalidLengthRpc |
| 22306 | } |
| 22307 | if postIndex > l { |
| 22308 | return io.ErrUnexpectedEOF |
| 22309 | } |
| 22310 | m.Alarms = append(m.Alarms, &AlarmMember{}) |
| 22311 | if err := m.Alarms[len(m.Alarms)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 22312 | return err |
| 22313 | } |
| 22314 | iNdEx = postIndex |
| 22315 | default: |
| 22316 | iNdEx = preIndex |
| 22317 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 22318 | if err != nil { |
| 22319 | return err |
| 22320 | } |
| 22321 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 22322 | return ErrInvalidLengthRpc |
| 22323 | } |
| 22324 | if (iNdEx + skippy) > l { |
| 22325 | return io.ErrUnexpectedEOF |
| 22326 | } |
| 22327 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 22328 | iNdEx += skippy |
| 22329 | } |
| 22330 | } |
| 22331 | |
| 22332 | if iNdEx > l { |
| 22333 | return io.ErrUnexpectedEOF |
| 22334 | } |
| 22335 | return nil |
| 22336 | } |
| 22337 | func (m *DowngradeRequest) Unmarshal(dAtA []byte) error { |
| 22338 | l := len(dAtA) |
| 22339 | iNdEx := 0 |
| 22340 | for iNdEx < l { |
| 22341 | preIndex := iNdEx |
| 22342 | var wire uint64 |
| 22343 | for shift := uint(0); ; shift += 7 { |
| 22344 | if shift >= 64 { |
| 22345 | return ErrIntOverflowRpc |
| 22346 | } |
| 22347 | if iNdEx >= l { |
| 22348 | return io.ErrUnexpectedEOF |
| 22349 | } |
| 22350 | b := dAtA[iNdEx] |
| 22351 | iNdEx++ |
| 22352 | wire |= uint64(b&0x7F) << shift |
| 22353 | if b < 0x80 { |
| 22354 | break |
| 22355 | } |
| 22356 | } |
| 22357 | fieldNum := int32(wire >> 3) |
| 22358 | wireType := int(wire & 0x7) |
| 22359 | if wireType == 4 { |
| 22360 | return fmt.Errorf("proto: DowngradeRequest: wiretype end group for non-group") |
| 22361 | } |
| 22362 | if fieldNum <= 0 { |
| 22363 | return fmt.Errorf("proto: DowngradeRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 22364 | } |
| 22365 | switch fieldNum { |
| 22366 | case 1: |
| 22367 | if wireType != 0 { |
| 22368 | return fmt.Errorf("proto: wrong wireType = %d for field Action", wireType) |
| 22369 | } |
| 22370 | m.Action = 0 |
| 22371 | for shift := uint(0); ; shift += 7 { |
| 22372 | if shift >= 64 { |
| 22373 | return ErrIntOverflowRpc |
| 22374 | } |
| 22375 | if iNdEx >= l { |
| 22376 | return io.ErrUnexpectedEOF |
| 22377 | } |
| 22378 | b := dAtA[iNdEx] |
| 22379 | iNdEx++ |
| 22380 | m.Action |= DowngradeRequest_DowngradeAction(b&0x7F) << shift |
| 22381 | if b < 0x80 { |
| 22382 | break |
| 22383 | } |
| 22384 | } |
| 22385 | case 2: |
| 22386 | if wireType != 2 { |
| 22387 | return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) |
| 22388 | } |
| 22389 | var stringLen uint64 |
| 22390 | for shift := uint(0); ; shift += 7 { |
| 22391 | if shift >= 64 { |
| 22392 | return ErrIntOverflowRpc |
| 22393 | } |
| 22394 | if iNdEx >= l { |
| 22395 | return io.ErrUnexpectedEOF |
| 22396 | } |
| 22397 | b := dAtA[iNdEx] |
| 22398 | iNdEx++ |
| 22399 | stringLen |= uint64(b&0x7F) << shift |
| 22400 | if b < 0x80 { |
| 22401 | break |
| 22402 | } |
| 22403 | } |
| 22404 | intStringLen := int(stringLen) |
| 22405 | if intStringLen < 0 { |
| 22406 | return ErrInvalidLengthRpc |
| 22407 | } |
| 22408 | postIndex := iNdEx + intStringLen |
| 22409 | if postIndex < 0 { |
| 22410 | return ErrInvalidLengthRpc |
| 22411 | } |
| 22412 | if postIndex > l { |
| 22413 | return io.ErrUnexpectedEOF |
| 22414 | } |
| 22415 | m.Version = string(dAtA[iNdEx:postIndex]) |
| 22416 | iNdEx = postIndex |
| 22417 | default: |
| 22418 | iNdEx = preIndex |
| 22419 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 22420 | if err != nil { |
| 22421 | return err |
| 22422 | } |
| 22423 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 22424 | return ErrInvalidLengthRpc |
| 22425 | } |
| 22426 | if (iNdEx + skippy) > l { |
| 22427 | return io.ErrUnexpectedEOF |
| 22428 | } |
| 22429 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 22430 | iNdEx += skippy |
| 22431 | } |
| 22432 | } |
| 22433 | |
| 22434 | if iNdEx > l { |
| 22435 | return io.ErrUnexpectedEOF |
| 22436 | } |
| 22437 | return nil |
| 22438 | } |
| 22439 | func (m *DowngradeResponse) Unmarshal(dAtA []byte) error { |
| 22440 | l := len(dAtA) |
| 22441 | iNdEx := 0 |
| 22442 | for iNdEx < l { |
| 22443 | preIndex := iNdEx |
| 22444 | var wire uint64 |
| 22445 | for shift := uint(0); ; shift += 7 { |
| 22446 | if shift >= 64 { |
| 22447 | return ErrIntOverflowRpc |
| 22448 | } |
| 22449 | if iNdEx >= l { |
| 22450 | return io.ErrUnexpectedEOF |
| 22451 | } |
| 22452 | b := dAtA[iNdEx] |
| 22453 | iNdEx++ |
| 22454 | wire |= uint64(b&0x7F) << shift |
| 22455 | if b < 0x80 { |
| 22456 | break |
| 22457 | } |
| 22458 | } |
| 22459 | fieldNum := int32(wire >> 3) |
| 22460 | wireType := int(wire & 0x7) |
| 22461 | if wireType == 4 { |
| 22462 | return fmt.Errorf("proto: DowngradeResponse: wiretype end group for non-group") |
| 22463 | } |
| 22464 | if fieldNum <= 0 { |
| 22465 | return fmt.Errorf("proto: DowngradeResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 22466 | } |
| 22467 | switch fieldNum { |
| 22468 | case 1: |
| 22469 | if wireType != 2 { |
| 22470 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 22471 | } |
| 22472 | var msglen int |
| 22473 | for shift := uint(0); ; shift += 7 { |
| 22474 | if shift >= 64 { |
| 22475 | return ErrIntOverflowRpc |
| 22476 | } |
| 22477 | if iNdEx >= l { |
| 22478 | return io.ErrUnexpectedEOF |
| 22479 | } |
| 22480 | b := dAtA[iNdEx] |
| 22481 | iNdEx++ |
| 22482 | msglen |= int(b&0x7F) << shift |
| 22483 | if b < 0x80 { |
| 22484 | break |
| 22485 | } |
| 22486 | } |
| 22487 | if msglen < 0 { |
| 22488 | return ErrInvalidLengthRpc |
| 22489 | } |
| 22490 | postIndex := iNdEx + msglen |
| 22491 | if postIndex < 0 { |
| 22492 | return ErrInvalidLengthRpc |
| 22493 | } |
| 22494 | if postIndex > l { |
| 22495 | return io.ErrUnexpectedEOF |
| 22496 | } |
| 22497 | if m.Header == nil { |
| 22498 | m.Header = &ResponseHeader{} |
| 22499 | } |
| 22500 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 22501 | return err |
| 22502 | } |
| 22503 | iNdEx = postIndex |
| 22504 | case 2: |
| 22505 | if wireType != 2 { |
| 22506 | return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) |
| 22507 | } |
| 22508 | var stringLen uint64 |
| 22509 | for shift := uint(0); ; shift += 7 { |
| 22510 | if shift >= 64 { |
| 22511 | return ErrIntOverflowRpc |
| 22512 | } |
| 22513 | if iNdEx >= l { |
| 22514 | return io.ErrUnexpectedEOF |
| 22515 | } |
| 22516 | b := dAtA[iNdEx] |
| 22517 | iNdEx++ |
| 22518 | stringLen |= uint64(b&0x7F) << shift |
| 22519 | if b < 0x80 { |
| 22520 | break |
| 22521 | } |
| 22522 | } |
| 22523 | intStringLen := int(stringLen) |
| 22524 | if intStringLen < 0 { |
| 22525 | return ErrInvalidLengthRpc |
| 22526 | } |
| 22527 | postIndex := iNdEx + intStringLen |
| 22528 | if postIndex < 0 { |
| 22529 | return ErrInvalidLengthRpc |
| 22530 | } |
| 22531 | if postIndex > l { |
| 22532 | return io.ErrUnexpectedEOF |
| 22533 | } |
| 22534 | m.Version = string(dAtA[iNdEx:postIndex]) |
| 22535 | iNdEx = postIndex |
| 22536 | default: |
| 22537 | iNdEx = preIndex |
| 22538 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 22539 | if err != nil { |
| 22540 | return err |
| 22541 | } |
| 22542 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 22543 | return ErrInvalidLengthRpc |
| 22544 | } |
| 22545 | if (iNdEx + skippy) > l { |
| 22546 | return io.ErrUnexpectedEOF |
| 22547 | } |
| 22548 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 22549 | iNdEx += skippy |
| 22550 | } |
| 22551 | } |
| 22552 | |
| 22553 | if iNdEx > l { |
| 22554 | return io.ErrUnexpectedEOF |
| 22555 | } |
| 22556 | return nil |
| 22557 | } |
| 22558 | func (m *DowngradeVersionTestRequest) Unmarshal(dAtA []byte) error { |
| 22559 | l := len(dAtA) |
| 22560 | iNdEx := 0 |
| 22561 | for iNdEx < l { |
| 22562 | preIndex := iNdEx |
| 22563 | var wire uint64 |
| 22564 | for shift := uint(0); ; shift += 7 { |
| 22565 | if shift >= 64 { |
| 22566 | return ErrIntOverflowRpc |
| 22567 | } |
| 22568 | if iNdEx >= l { |
| 22569 | return io.ErrUnexpectedEOF |
| 22570 | } |
| 22571 | b := dAtA[iNdEx] |
| 22572 | iNdEx++ |
| 22573 | wire |= uint64(b&0x7F) << shift |
| 22574 | if b < 0x80 { |
| 22575 | break |
| 22576 | } |
| 22577 | } |
| 22578 | fieldNum := int32(wire >> 3) |
| 22579 | wireType := int(wire & 0x7) |
| 22580 | if wireType == 4 { |
| 22581 | return fmt.Errorf("proto: DowngradeVersionTestRequest: wiretype end group for non-group") |
| 22582 | } |
| 22583 | if fieldNum <= 0 { |
| 22584 | return fmt.Errorf("proto: DowngradeVersionTestRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 22585 | } |
| 22586 | switch fieldNum { |
| 22587 | case 1: |
| 22588 | if wireType != 2 { |
| 22589 | return fmt.Errorf("proto: wrong wireType = %d for field Ver", wireType) |
| 22590 | } |
| 22591 | var stringLen uint64 |
| 22592 | for shift := uint(0); ; shift += 7 { |
| 22593 | if shift >= 64 { |
| 22594 | return ErrIntOverflowRpc |
| 22595 | } |
| 22596 | if iNdEx >= l { |
| 22597 | return io.ErrUnexpectedEOF |
| 22598 | } |
| 22599 | b := dAtA[iNdEx] |
| 22600 | iNdEx++ |
| 22601 | stringLen |= uint64(b&0x7F) << shift |
| 22602 | if b < 0x80 { |
| 22603 | break |
| 22604 | } |
| 22605 | } |
| 22606 | intStringLen := int(stringLen) |
| 22607 | if intStringLen < 0 { |
| 22608 | return ErrInvalidLengthRpc |
| 22609 | } |
| 22610 | postIndex := iNdEx + intStringLen |
| 22611 | if postIndex < 0 { |
| 22612 | return ErrInvalidLengthRpc |
| 22613 | } |
| 22614 | if postIndex > l { |
| 22615 | return io.ErrUnexpectedEOF |
| 22616 | } |
| 22617 | m.Ver = string(dAtA[iNdEx:postIndex]) |
| 22618 | iNdEx = postIndex |
| 22619 | default: |
| 22620 | iNdEx = preIndex |
| 22621 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 22622 | if err != nil { |
| 22623 | return err |
| 22624 | } |
| 22625 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 22626 | return ErrInvalidLengthRpc |
| 22627 | } |
| 22628 | if (iNdEx + skippy) > l { |
| 22629 | return io.ErrUnexpectedEOF |
| 22630 | } |
| 22631 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 22632 | iNdEx += skippy |
| 22633 | } |
| 22634 | } |
| 22635 | |
| 22636 | if iNdEx > l { |
| 22637 | return io.ErrUnexpectedEOF |
| 22638 | } |
| 22639 | return nil |
| 22640 | } |
| 22641 | func (m *StatusRequest) Unmarshal(dAtA []byte) error { |
| 22642 | l := len(dAtA) |
| 22643 | iNdEx := 0 |
| 22644 | for iNdEx < l { |
| 22645 | preIndex := iNdEx |
| 22646 | var wire uint64 |
| 22647 | for shift := uint(0); ; shift += 7 { |
| 22648 | if shift >= 64 { |
| 22649 | return ErrIntOverflowRpc |
| 22650 | } |
| 22651 | if iNdEx >= l { |
| 22652 | return io.ErrUnexpectedEOF |
| 22653 | } |
| 22654 | b := dAtA[iNdEx] |
| 22655 | iNdEx++ |
| 22656 | wire |= uint64(b&0x7F) << shift |
| 22657 | if b < 0x80 { |
| 22658 | break |
| 22659 | } |
| 22660 | } |
| 22661 | fieldNum := int32(wire >> 3) |
| 22662 | wireType := int(wire & 0x7) |
| 22663 | if wireType == 4 { |
| 22664 | return fmt.Errorf("proto: StatusRequest: wiretype end group for non-group") |
| 22665 | } |
| 22666 | if fieldNum <= 0 { |
| 22667 | return fmt.Errorf("proto: StatusRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 22668 | } |
| 22669 | switch fieldNum { |
| 22670 | default: |
| 22671 | iNdEx = preIndex |
| 22672 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 22673 | if err != nil { |
| 22674 | return err |
| 22675 | } |
| 22676 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 22677 | return ErrInvalidLengthRpc |
| 22678 | } |
| 22679 | if (iNdEx + skippy) > l { |
| 22680 | return io.ErrUnexpectedEOF |
| 22681 | } |
| 22682 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 22683 | iNdEx += skippy |
| 22684 | } |
| 22685 | } |
| 22686 | |
| 22687 | if iNdEx > l { |
| 22688 | return io.ErrUnexpectedEOF |
| 22689 | } |
| 22690 | return nil |
| 22691 | } |
| 22692 | func (m *StatusResponse) Unmarshal(dAtA []byte) error { |
| 22693 | l := len(dAtA) |
| 22694 | iNdEx := 0 |
| 22695 | for iNdEx < l { |
| 22696 | preIndex := iNdEx |
| 22697 | var wire uint64 |
| 22698 | for shift := uint(0); ; shift += 7 { |
| 22699 | if shift >= 64 { |
| 22700 | return ErrIntOverflowRpc |
| 22701 | } |
| 22702 | if iNdEx >= l { |
| 22703 | return io.ErrUnexpectedEOF |
| 22704 | } |
| 22705 | b := dAtA[iNdEx] |
| 22706 | iNdEx++ |
| 22707 | wire |= uint64(b&0x7F) << shift |
| 22708 | if b < 0x80 { |
| 22709 | break |
| 22710 | } |
| 22711 | } |
| 22712 | fieldNum := int32(wire >> 3) |
| 22713 | wireType := int(wire & 0x7) |
| 22714 | if wireType == 4 { |
| 22715 | return fmt.Errorf("proto: StatusResponse: wiretype end group for non-group") |
| 22716 | } |
| 22717 | if fieldNum <= 0 { |
| 22718 | return fmt.Errorf("proto: StatusResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 22719 | } |
| 22720 | switch fieldNum { |
| 22721 | case 1: |
| 22722 | if wireType != 2 { |
| 22723 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 22724 | } |
| 22725 | var msglen int |
| 22726 | for shift := uint(0); ; shift += 7 { |
| 22727 | if shift >= 64 { |
| 22728 | return ErrIntOverflowRpc |
| 22729 | } |
| 22730 | if iNdEx >= l { |
| 22731 | return io.ErrUnexpectedEOF |
| 22732 | } |
| 22733 | b := dAtA[iNdEx] |
| 22734 | iNdEx++ |
| 22735 | msglen |= int(b&0x7F) << shift |
| 22736 | if b < 0x80 { |
| 22737 | break |
| 22738 | } |
| 22739 | } |
| 22740 | if msglen < 0 { |
| 22741 | return ErrInvalidLengthRpc |
| 22742 | } |
| 22743 | postIndex := iNdEx + msglen |
| 22744 | if postIndex < 0 { |
| 22745 | return ErrInvalidLengthRpc |
| 22746 | } |
| 22747 | if postIndex > l { |
| 22748 | return io.ErrUnexpectedEOF |
| 22749 | } |
| 22750 | if m.Header == nil { |
| 22751 | m.Header = &ResponseHeader{} |
| 22752 | } |
| 22753 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 22754 | return err |
| 22755 | } |
| 22756 | iNdEx = postIndex |
| 22757 | case 2: |
| 22758 | if wireType != 2 { |
| 22759 | return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType) |
| 22760 | } |
| 22761 | var stringLen uint64 |
| 22762 | for shift := uint(0); ; shift += 7 { |
| 22763 | if shift >= 64 { |
| 22764 | return ErrIntOverflowRpc |
| 22765 | } |
| 22766 | if iNdEx >= l { |
| 22767 | return io.ErrUnexpectedEOF |
| 22768 | } |
| 22769 | b := dAtA[iNdEx] |
| 22770 | iNdEx++ |
| 22771 | stringLen |= uint64(b&0x7F) << shift |
| 22772 | if b < 0x80 { |
| 22773 | break |
| 22774 | } |
| 22775 | } |
| 22776 | intStringLen := int(stringLen) |
| 22777 | if intStringLen < 0 { |
| 22778 | return ErrInvalidLengthRpc |
| 22779 | } |
| 22780 | postIndex := iNdEx + intStringLen |
| 22781 | if postIndex < 0 { |
| 22782 | return ErrInvalidLengthRpc |
| 22783 | } |
| 22784 | if postIndex > l { |
| 22785 | return io.ErrUnexpectedEOF |
| 22786 | } |
| 22787 | m.Version = string(dAtA[iNdEx:postIndex]) |
| 22788 | iNdEx = postIndex |
| 22789 | case 3: |
| 22790 | if wireType != 0 { |
| 22791 | return fmt.Errorf("proto: wrong wireType = %d for field DbSize", wireType) |
| 22792 | } |
| 22793 | m.DbSize = 0 |
| 22794 | for shift := uint(0); ; shift += 7 { |
| 22795 | if shift >= 64 { |
| 22796 | return ErrIntOverflowRpc |
| 22797 | } |
| 22798 | if iNdEx >= l { |
| 22799 | return io.ErrUnexpectedEOF |
| 22800 | } |
| 22801 | b := dAtA[iNdEx] |
| 22802 | iNdEx++ |
| 22803 | m.DbSize |= int64(b&0x7F) << shift |
| 22804 | if b < 0x80 { |
| 22805 | break |
| 22806 | } |
| 22807 | } |
| 22808 | case 4: |
| 22809 | if wireType != 0 { |
| 22810 | return fmt.Errorf("proto: wrong wireType = %d for field Leader", wireType) |
| 22811 | } |
| 22812 | m.Leader = 0 |
| 22813 | for shift := uint(0); ; shift += 7 { |
| 22814 | if shift >= 64 { |
| 22815 | return ErrIntOverflowRpc |
| 22816 | } |
| 22817 | if iNdEx >= l { |
| 22818 | return io.ErrUnexpectedEOF |
| 22819 | } |
| 22820 | b := dAtA[iNdEx] |
| 22821 | iNdEx++ |
| 22822 | m.Leader |= uint64(b&0x7F) << shift |
| 22823 | if b < 0x80 { |
| 22824 | break |
| 22825 | } |
| 22826 | } |
| 22827 | case 5: |
| 22828 | if wireType != 0 { |
| 22829 | return fmt.Errorf("proto: wrong wireType = %d for field RaftIndex", wireType) |
| 22830 | } |
| 22831 | m.RaftIndex = 0 |
| 22832 | for shift := uint(0); ; shift += 7 { |
| 22833 | if shift >= 64 { |
| 22834 | return ErrIntOverflowRpc |
| 22835 | } |
| 22836 | if iNdEx >= l { |
| 22837 | return io.ErrUnexpectedEOF |
| 22838 | } |
| 22839 | b := dAtA[iNdEx] |
| 22840 | iNdEx++ |
| 22841 | m.RaftIndex |= uint64(b&0x7F) << shift |
| 22842 | if b < 0x80 { |
| 22843 | break |
| 22844 | } |
| 22845 | } |
| 22846 | case 6: |
| 22847 | if wireType != 0 { |
| 22848 | return fmt.Errorf("proto: wrong wireType = %d for field RaftTerm", wireType) |
| 22849 | } |
| 22850 | m.RaftTerm = 0 |
| 22851 | for shift := uint(0); ; shift += 7 { |
| 22852 | if shift >= 64 { |
| 22853 | return ErrIntOverflowRpc |
| 22854 | } |
| 22855 | if iNdEx >= l { |
| 22856 | return io.ErrUnexpectedEOF |
| 22857 | } |
| 22858 | b := dAtA[iNdEx] |
| 22859 | iNdEx++ |
| 22860 | m.RaftTerm |= uint64(b&0x7F) << shift |
| 22861 | if b < 0x80 { |
| 22862 | break |
| 22863 | } |
| 22864 | } |
| 22865 | case 7: |
| 22866 | if wireType != 0 { |
| 22867 | return fmt.Errorf("proto: wrong wireType = %d for field RaftAppliedIndex", wireType) |
| 22868 | } |
| 22869 | m.RaftAppliedIndex = 0 |
| 22870 | for shift := uint(0); ; shift += 7 { |
| 22871 | if shift >= 64 { |
| 22872 | return ErrIntOverflowRpc |
| 22873 | } |
| 22874 | if iNdEx >= l { |
| 22875 | return io.ErrUnexpectedEOF |
| 22876 | } |
| 22877 | b := dAtA[iNdEx] |
| 22878 | iNdEx++ |
| 22879 | m.RaftAppliedIndex |= uint64(b&0x7F) << shift |
| 22880 | if b < 0x80 { |
| 22881 | break |
| 22882 | } |
| 22883 | } |
| 22884 | case 8: |
| 22885 | if wireType != 2 { |
| 22886 | return fmt.Errorf("proto: wrong wireType = %d for field Errors", wireType) |
| 22887 | } |
| 22888 | var stringLen uint64 |
| 22889 | for shift := uint(0); ; shift += 7 { |
| 22890 | if shift >= 64 { |
| 22891 | return ErrIntOverflowRpc |
| 22892 | } |
| 22893 | if iNdEx >= l { |
| 22894 | return io.ErrUnexpectedEOF |
| 22895 | } |
| 22896 | b := dAtA[iNdEx] |
| 22897 | iNdEx++ |
| 22898 | stringLen |= uint64(b&0x7F) << shift |
| 22899 | if b < 0x80 { |
| 22900 | break |
| 22901 | } |
| 22902 | } |
| 22903 | intStringLen := int(stringLen) |
| 22904 | if intStringLen < 0 { |
| 22905 | return ErrInvalidLengthRpc |
| 22906 | } |
| 22907 | postIndex := iNdEx + intStringLen |
| 22908 | if postIndex < 0 { |
| 22909 | return ErrInvalidLengthRpc |
| 22910 | } |
| 22911 | if postIndex > l { |
| 22912 | return io.ErrUnexpectedEOF |
| 22913 | } |
| 22914 | m.Errors = append(m.Errors, string(dAtA[iNdEx:postIndex])) |
| 22915 | iNdEx = postIndex |
| 22916 | case 9: |
| 22917 | if wireType != 0 { |
| 22918 | return fmt.Errorf("proto: wrong wireType = %d for field DbSizeInUse", wireType) |
| 22919 | } |
| 22920 | m.DbSizeInUse = 0 |
| 22921 | for shift := uint(0); ; shift += 7 { |
| 22922 | if shift >= 64 { |
| 22923 | return ErrIntOverflowRpc |
| 22924 | } |
| 22925 | if iNdEx >= l { |
| 22926 | return io.ErrUnexpectedEOF |
| 22927 | } |
| 22928 | b := dAtA[iNdEx] |
| 22929 | iNdEx++ |
| 22930 | m.DbSizeInUse |= int64(b&0x7F) << shift |
| 22931 | if b < 0x80 { |
| 22932 | break |
| 22933 | } |
| 22934 | } |
| 22935 | case 10: |
| 22936 | if wireType != 0 { |
| 22937 | return fmt.Errorf("proto: wrong wireType = %d for field IsLearner", wireType) |
| 22938 | } |
| 22939 | var v int |
| 22940 | for shift := uint(0); ; shift += 7 { |
| 22941 | if shift >= 64 { |
| 22942 | return ErrIntOverflowRpc |
| 22943 | } |
| 22944 | if iNdEx >= l { |
| 22945 | return io.ErrUnexpectedEOF |
| 22946 | } |
| 22947 | b := dAtA[iNdEx] |
| 22948 | iNdEx++ |
| 22949 | v |= int(b&0x7F) << shift |
| 22950 | if b < 0x80 { |
| 22951 | break |
| 22952 | } |
| 22953 | } |
| 22954 | m.IsLearner = bool(v != 0) |
| 22955 | case 11: |
| 22956 | if wireType != 2 { |
| 22957 | return fmt.Errorf("proto: wrong wireType = %d for field StorageVersion", wireType) |
| 22958 | } |
| 22959 | var stringLen uint64 |
| 22960 | for shift := uint(0); ; shift += 7 { |
| 22961 | if shift >= 64 { |
| 22962 | return ErrIntOverflowRpc |
| 22963 | } |
| 22964 | if iNdEx >= l { |
| 22965 | return io.ErrUnexpectedEOF |
| 22966 | } |
| 22967 | b := dAtA[iNdEx] |
| 22968 | iNdEx++ |
| 22969 | stringLen |= uint64(b&0x7F) << shift |
| 22970 | if b < 0x80 { |
| 22971 | break |
| 22972 | } |
| 22973 | } |
| 22974 | intStringLen := int(stringLen) |
| 22975 | if intStringLen < 0 { |
| 22976 | return ErrInvalidLengthRpc |
| 22977 | } |
| 22978 | postIndex := iNdEx + intStringLen |
| 22979 | if postIndex < 0 { |
| 22980 | return ErrInvalidLengthRpc |
| 22981 | } |
| 22982 | if postIndex > l { |
| 22983 | return io.ErrUnexpectedEOF |
| 22984 | } |
| 22985 | m.StorageVersion = string(dAtA[iNdEx:postIndex]) |
| 22986 | iNdEx = postIndex |
| 22987 | case 12: |
| 22988 | if wireType != 0 { |
| 22989 | return fmt.Errorf("proto: wrong wireType = %d for field DbSizeQuota", wireType) |
| 22990 | } |
| 22991 | m.DbSizeQuota = 0 |
| 22992 | for shift := uint(0); ; shift += 7 { |
| 22993 | if shift >= 64 { |
| 22994 | return ErrIntOverflowRpc |
| 22995 | } |
| 22996 | if iNdEx >= l { |
| 22997 | return io.ErrUnexpectedEOF |
| 22998 | } |
| 22999 | b := dAtA[iNdEx] |
| 23000 | iNdEx++ |
| 23001 | m.DbSizeQuota |= int64(b&0x7F) << shift |
| 23002 | if b < 0x80 { |
| 23003 | break |
| 23004 | } |
| 23005 | } |
| 23006 | case 13: |
| 23007 | if wireType != 2 { |
| 23008 | return fmt.Errorf("proto: wrong wireType = %d for field DowngradeInfo", wireType) |
| 23009 | } |
| 23010 | var msglen int |
| 23011 | for shift := uint(0); ; shift += 7 { |
| 23012 | if shift >= 64 { |
| 23013 | return ErrIntOverflowRpc |
| 23014 | } |
| 23015 | if iNdEx >= l { |
| 23016 | return io.ErrUnexpectedEOF |
| 23017 | } |
| 23018 | b := dAtA[iNdEx] |
| 23019 | iNdEx++ |
| 23020 | msglen |= int(b&0x7F) << shift |
| 23021 | if b < 0x80 { |
| 23022 | break |
| 23023 | } |
| 23024 | } |
| 23025 | if msglen < 0 { |
| 23026 | return ErrInvalidLengthRpc |
| 23027 | } |
| 23028 | postIndex := iNdEx + msglen |
| 23029 | if postIndex < 0 { |
| 23030 | return ErrInvalidLengthRpc |
| 23031 | } |
| 23032 | if postIndex > l { |
| 23033 | return io.ErrUnexpectedEOF |
| 23034 | } |
| 23035 | if m.DowngradeInfo == nil { |
| 23036 | m.DowngradeInfo = &DowngradeInfo{} |
| 23037 | } |
| 23038 | if err := m.DowngradeInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 23039 | return err |
| 23040 | } |
| 23041 | iNdEx = postIndex |
| 23042 | default: |
| 23043 | iNdEx = preIndex |
| 23044 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 23045 | if err != nil { |
| 23046 | return err |
| 23047 | } |
| 23048 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 23049 | return ErrInvalidLengthRpc |
| 23050 | } |
| 23051 | if (iNdEx + skippy) > l { |
| 23052 | return io.ErrUnexpectedEOF |
| 23053 | } |
| 23054 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 23055 | iNdEx += skippy |
| 23056 | } |
| 23057 | } |
| 23058 | |
| 23059 | if iNdEx > l { |
| 23060 | return io.ErrUnexpectedEOF |
| 23061 | } |
| 23062 | return nil |
| 23063 | } |
| 23064 | func (m *DowngradeInfo) Unmarshal(dAtA []byte) error { |
| 23065 | l := len(dAtA) |
| 23066 | iNdEx := 0 |
| 23067 | for iNdEx < l { |
| 23068 | preIndex := iNdEx |
| 23069 | var wire uint64 |
| 23070 | for shift := uint(0); ; shift += 7 { |
| 23071 | if shift >= 64 { |
| 23072 | return ErrIntOverflowRpc |
| 23073 | } |
| 23074 | if iNdEx >= l { |
| 23075 | return io.ErrUnexpectedEOF |
| 23076 | } |
| 23077 | b := dAtA[iNdEx] |
| 23078 | iNdEx++ |
| 23079 | wire |= uint64(b&0x7F) << shift |
| 23080 | if b < 0x80 { |
| 23081 | break |
| 23082 | } |
| 23083 | } |
| 23084 | fieldNum := int32(wire >> 3) |
| 23085 | wireType := int(wire & 0x7) |
| 23086 | if wireType == 4 { |
| 23087 | return fmt.Errorf("proto: DowngradeInfo: wiretype end group for non-group") |
| 23088 | } |
| 23089 | if fieldNum <= 0 { |
| 23090 | return fmt.Errorf("proto: DowngradeInfo: illegal tag %d (wire type %d)", fieldNum, wire) |
| 23091 | } |
| 23092 | switch fieldNum { |
| 23093 | case 1: |
| 23094 | if wireType != 0 { |
| 23095 | return fmt.Errorf("proto: wrong wireType = %d for field Enabled", wireType) |
| 23096 | } |
| 23097 | var v int |
| 23098 | for shift := uint(0); ; shift += 7 { |
| 23099 | if shift >= 64 { |
| 23100 | return ErrIntOverflowRpc |
| 23101 | } |
| 23102 | if iNdEx >= l { |
| 23103 | return io.ErrUnexpectedEOF |
| 23104 | } |
| 23105 | b := dAtA[iNdEx] |
| 23106 | iNdEx++ |
| 23107 | v |= int(b&0x7F) << shift |
| 23108 | if b < 0x80 { |
| 23109 | break |
| 23110 | } |
| 23111 | } |
| 23112 | m.Enabled = bool(v != 0) |
| 23113 | case 2: |
| 23114 | if wireType != 2 { |
| 23115 | return fmt.Errorf("proto: wrong wireType = %d for field TargetVersion", wireType) |
| 23116 | } |
| 23117 | var stringLen uint64 |
| 23118 | for shift := uint(0); ; shift += 7 { |
| 23119 | if shift >= 64 { |
| 23120 | return ErrIntOverflowRpc |
| 23121 | } |
| 23122 | if iNdEx >= l { |
| 23123 | return io.ErrUnexpectedEOF |
| 23124 | } |
| 23125 | b := dAtA[iNdEx] |
| 23126 | iNdEx++ |
| 23127 | stringLen |= uint64(b&0x7F) << shift |
| 23128 | if b < 0x80 { |
| 23129 | break |
| 23130 | } |
| 23131 | } |
| 23132 | intStringLen := int(stringLen) |
| 23133 | if intStringLen < 0 { |
| 23134 | return ErrInvalidLengthRpc |
| 23135 | } |
| 23136 | postIndex := iNdEx + intStringLen |
| 23137 | if postIndex < 0 { |
| 23138 | return ErrInvalidLengthRpc |
| 23139 | } |
| 23140 | if postIndex > l { |
| 23141 | return io.ErrUnexpectedEOF |
| 23142 | } |
| 23143 | m.TargetVersion = string(dAtA[iNdEx:postIndex]) |
| 23144 | iNdEx = postIndex |
| 23145 | default: |
| 23146 | iNdEx = preIndex |
| 23147 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 23148 | if err != nil { |
| 23149 | return err |
| 23150 | } |
| 23151 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 23152 | return ErrInvalidLengthRpc |
| 23153 | } |
| 23154 | if (iNdEx + skippy) > l { |
| 23155 | return io.ErrUnexpectedEOF |
| 23156 | } |
| 23157 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 23158 | iNdEx += skippy |
| 23159 | } |
| 23160 | } |
| 23161 | |
| 23162 | if iNdEx > l { |
| 23163 | return io.ErrUnexpectedEOF |
| 23164 | } |
| 23165 | return nil |
| 23166 | } |
| 23167 | func (m *AuthEnableRequest) Unmarshal(dAtA []byte) error { |
| 23168 | l := len(dAtA) |
| 23169 | iNdEx := 0 |
| 23170 | for iNdEx < l { |
| 23171 | preIndex := iNdEx |
| 23172 | var wire uint64 |
| 23173 | for shift := uint(0); ; shift += 7 { |
| 23174 | if shift >= 64 { |
| 23175 | return ErrIntOverflowRpc |
| 23176 | } |
| 23177 | if iNdEx >= l { |
| 23178 | return io.ErrUnexpectedEOF |
| 23179 | } |
| 23180 | b := dAtA[iNdEx] |
| 23181 | iNdEx++ |
| 23182 | wire |= uint64(b&0x7F) << shift |
| 23183 | if b < 0x80 { |
| 23184 | break |
| 23185 | } |
| 23186 | } |
| 23187 | fieldNum := int32(wire >> 3) |
| 23188 | wireType := int(wire & 0x7) |
| 23189 | if wireType == 4 { |
| 23190 | return fmt.Errorf("proto: AuthEnableRequest: wiretype end group for non-group") |
| 23191 | } |
| 23192 | if fieldNum <= 0 { |
| 23193 | return fmt.Errorf("proto: AuthEnableRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 23194 | } |
| 23195 | switch fieldNum { |
| 23196 | default: |
| 23197 | iNdEx = preIndex |
| 23198 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 23199 | if err != nil { |
| 23200 | return err |
| 23201 | } |
| 23202 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 23203 | return ErrInvalidLengthRpc |
| 23204 | } |
| 23205 | if (iNdEx + skippy) > l { |
| 23206 | return io.ErrUnexpectedEOF |
| 23207 | } |
| 23208 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 23209 | iNdEx += skippy |
| 23210 | } |
| 23211 | } |
| 23212 | |
| 23213 | if iNdEx > l { |
| 23214 | return io.ErrUnexpectedEOF |
| 23215 | } |
| 23216 | return nil |
| 23217 | } |
| 23218 | func (m *AuthDisableRequest) Unmarshal(dAtA []byte) error { |
| 23219 | l := len(dAtA) |
| 23220 | iNdEx := 0 |
| 23221 | for iNdEx < l { |
| 23222 | preIndex := iNdEx |
| 23223 | var wire uint64 |
| 23224 | for shift := uint(0); ; shift += 7 { |
| 23225 | if shift >= 64 { |
| 23226 | return ErrIntOverflowRpc |
| 23227 | } |
| 23228 | if iNdEx >= l { |
| 23229 | return io.ErrUnexpectedEOF |
| 23230 | } |
| 23231 | b := dAtA[iNdEx] |
| 23232 | iNdEx++ |
| 23233 | wire |= uint64(b&0x7F) << shift |
| 23234 | if b < 0x80 { |
| 23235 | break |
| 23236 | } |
| 23237 | } |
| 23238 | fieldNum := int32(wire >> 3) |
| 23239 | wireType := int(wire & 0x7) |
| 23240 | if wireType == 4 { |
| 23241 | return fmt.Errorf("proto: AuthDisableRequest: wiretype end group for non-group") |
| 23242 | } |
| 23243 | if fieldNum <= 0 { |
| 23244 | return fmt.Errorf("proto: AuthDisableRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 23245 | } |
| 23246 | switch fieldNum { |
| 23247 | default: |
| 23248 | iNdEx = preIndex |
| 23249 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 23250 | if err != nil { |
| 23251 | return err |
| 23252 | } |
| 23253 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 23254 | return ErrInvalidLengthRpc |
| 23255 | } |
| 23256 | if (iNdEx + skippy) > l { |
| 23257 | return io.ErrUnexpectedEOF |
| 23258 | } |
| 23259 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 23260 | iNdEx += skippy |
| 23261 | } |
| 23262 | } |
| 23263 | |
| 23264 | if iNdEx > l { |
| 23265 | return io.ErrUnexpectedEOF |
| 23266 | } |
| 23267 | return nil |
| 23268 | } |
| 23269 | func (m *AuthStatusRequest) Unmarshal(dAtA []byte) error { |
| 23270 | l := len(dAtA) |
| 23271 | iNdEx := 0 |
| 23272 | for iNdEx < l { |
| 23273 | preIndex := iNdEx |
| 23274 | var wire uint64 |
| 23275 | for shift := uint(0); ; shift += 7 { |
| 23276 | if shift >= 64 { |
| 23277 | return ErrIntOverflowRpc |
| 23278 | } |
| 23279 | if iNdEx >= l { |
| 23280 | return io.ErrUnexpectedEOF |
| 23281 | } |
| 23282 | b := dAtA[iNdEx] |
| 23283 | iNdEx++ |
| 23284 | wire |= uint64(b&0x7F) << shift |
| 23285 | if b < 0x80 { |
| 23286 | break |
| 23287 | } |
| 23288 | } |
| 23289 | fieldNum := int32(wire >> 3) |
| 23290 | wireType := int(wire & 0x7) |
| 23291 | if wireType == 4 { |
| 23292 | return fmt.Errorf("proto: AuthStatusRequest: wiretype end group for non-group") |
| 23293 | } |
| 23294 | if fieldNum <= 0 { |
| 23295 | return fmt.Errorf("proto: AuthStatusRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 23296 | } |
| 23297 | switch fieldNum { |
| 23298 | default: |
| 23299 | iNdEx = preIndex |
| 23300 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 23301 | if err != nil { |
| 23302 | return err |
| 23303 | } |
| 23304 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 23305 | return ErrInvalidLengthRpc |
| 23306 | } |
| 23307 | if (iNdEx + skippy) > l { |
| 23308 | return io.ErrUnexpectedEOF |
| 23309 | } |
| 23310 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 23311 | iNdEx += skippy |
| 23312 | } |
| 23313 | } |
| 23314 | |
| 23315 | if iNdEx > l { |
| 23316 | return io.ErrUnexpectedEOF |
| 23317 | } |
| 23318 | return nil |
| 23319 | } |
| 23320 | func (m *AuthenticateRequest) Unmarshal(dAtA []byte) error { |
| 23321 | l := len(dAtA) |
| 23322 | iNdEx := 0 |
| 23323 | for iNdEx < l { |
| 23324 | preIndex := iNdEx |
| 23325 | var wire uint64 |
| 23326 | for shift := uint(0); ; shift += 7 { |
| 23327 | if shift >= 64 { |
| 23328 | return ErrIntOverflowRpc |
| 23329 | } |
| 23330 | if iNdEx >= l { |
| 23331 | return io.ErrUnexpectedEOF |
| 23332 | } |
| 23333 | b := dAtA[iNdEx] |
| 23334 | iNdEx++ |
| 23335 | wire |= uint64(b&0x7F) << shift |
| 23336 | if b < 0x80 { |
| 23337 | break |
| 23338 | } |
| 23339 | } |
| 23340 | fieldNum := int32(wire >> 3) |
| 23341 | wireType := int(wire & 0x7) |
| 23342 | if wireType == 4 { |
| 23343 | return fmt.Errorf("proto: AuthenticateRequest: wiretype end group for non-group") |
| 23344 | } |
| 23345 | if fieldNum <= 0 { |
| 23346 | return fmt.Errorf("proto: AuthenticateRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 23347 | } |
| 23348 | switch fieldNum { |
| 23349 | case 1: |
| 23350 | if wireType != 2 { |
| 23351 | return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) |
| 23352 | } |
| 23353 | var stringLen uint64 |
| 23354 | for shift := uint(0); ; shift += 7 { |
| 23355 | if shift >= 64 { |
| 23356 | return ErrIntOverflowRpc |
| 23357 | } |
| 23358 | if iNdEx >= l { |
| 23359 | return io.ErrUnexpectedEOF |
| 23360 | } |
| 23361 | b := dAtA[iNdEx] |
| 23362 | iNdEx++ |
| 23363 | stringLen |= uint64(b&0x7F) << shift |
| 23364 | if b < 0x80 { |
| 23365 | break |
| 23366 | } |
| 23367 | } |
| 23368 | intStringLen := int(stringLen) |
| 23369 | if intStringLen < 0 { |
| 23370 | return ErrInvalidLengthRpc |
| 23371 | } |
| 23372 | postIndex := iNdEx + intStringLen |
| 23373 | if postIndex < 0 { |
| 23374 | return ErrInvalidLengthRpc |
| 23375 | } |
| 23376 | if postIndex > l { |
| 23377 | return io.ErrUnexpectedEOF |
| 23378 | } |
| 23379 | m.Name = string(dAtA[iNdEx:postIndex]) |
| 23380 | iNdEx = postIndex |
| 23381 | case 2: |
| 23382 | if wireType != 2 { |
| 23383 | return fmt.Errorf("proto: wrong wireType = %d for field Password", wireType) |
| 23384 | } |
| 23385 | var stringLen uint64 |
| 23386 | for shift := uint(0); ; shift += 7 { |
| 23387 | if shift >= 64 { |
| 23388 | return ErrIntOverflowRpc |
| 23389 | } |
| 23390 | if iNdEx >= l { |
| 23391 | return io.ErrUnexpectedEOF |
| 23392 | } |
| 23393 | b := dAtA[iNdEx] |
| 23394 | iNdEx++ |
| 23395 | stringLen |= uint64(b&0x7F) << shift |
| 23396 | if b < 0x80 { |
| 23397 | break |
| 23398 | } |
| 23399 | } |
| 23400 | intStringLen := int(stringLen) |
| 23401 | if intStringLen < 0 { |
| 23402 | return ErrInvalidLengthRpc |
| 23403 | } |
| 23404 | postIndex := iNdEx + intStringLen |
| 23405 | if postIndex < 0 { |
| 23406 | return ErrInvalidLengthRpc |
| 23407 | } |
| 23408 | if postIndex > l { |
| 23409 | return io.ErrUnexpectedEOF |
| 23410 | } |
| 23411 | m.Password = string(dAtA[iNdEx:postIndex]) |
| 23412 | iNdEx = postIndex |
| 23413 | default: |
| 23414 | iNdEx = preIndex |
| 23415 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 23416 | if err != nil { |
| 23417 | return err |
| 23418 | } |
| 23419 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 23420 | return ErrInvalidLengthRpc |
| 23421 | } |
| 23422 | if (iNdEx + skippy) > l { |
| 23423 | return io.ErrUnexpectedEOF |
| 23424 | } |
| 23425 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 23426 | iNdEx += skippy |
| 23427 | } |
| 23428 | } |
| 23429 | |
| 23430 | if iNdEx > l { |
| 23431 | return io.ErrUnexpectedEOF |
| 23432 | } |
| 23433 | return nil |
| 23434 | } |
| 23435 | func (m *AuthUserAddRequest) Unmarshal(dAtA []byte) error { |
| 23436 | l := len(dAtA) |
| 23437 | iNdEx := 0 |
| 23438 | for iNdEx < l { |
| 23439 | preIndex := iNdEx |
| 23440 | var wire uint64 |
| 23441 | for shift := uint(0); ; shift += 7 { |
| 23442 | if shift >= 64 { |
| 23443 | return ErrIntOverflowRpc |
| 23444 | } |
| 23445 | if iNdEx >= l { |
| 23446 | return io.ErrUnexpectedEOF |
| 23447 | } |
| 23448 | b := dAtA[iNdEx] |
| 23449 | iNdEx++ |
| 23450 | wire |= uint64(b&0x7F) << shift |
| 23451 | if b < 0x80 { |
| 23452 | break |
| 23453 | } |
| 23454 | } |
| 23455 | fieldNum := int32(wire >> 3) |
| 23456 | wireType := int(wire & 0x7) |
| 23457 | if wireType == 4 { |
| 23458 | return fmt.Errorf("proto: AuthUserAddRequest: wiretype end group for non-group") |
| 23459 | } |
| 23460 | if fieldNum <= 0 { |
| 23461 | return fmt.Errorf("proto: AuthUserAddRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 23462 | } |
| 23463 | switch fieldNum { |
| 23464 | case 1: |
| 23465 | if wireType != 2 { |
| 23466 | return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) |
| 23467 | } |
| 23468 | var stringLen uint64 |
| 23469 | for shift := uint(0); ; shift += 7 { |
| 23470 | if shift >= 64 { |
| 23471 | return ErrIntOverflowRpc |
| 23472 | } |
| 23473 | if iNdEx >= l { |
| 23474 | return io.ErrUnexpectedEOF |
| 23475 | } |
| 23476 | b := dAtA[iNdEx] |
| 23477 | iNdEx++ |
| 23478 | stringLen |= uint64(b&0x7F) << shift |
| 23479 | if b < 0x80 { |
| 23480 | break |
| 23481 | } |
| 23482 | } |
| 23483 | intStringLen := int(stringLen) |
| 23484 | if intStringLen < 0 { |
| 23485 | return ErrInvalidLengthRpc |
| 23486 | } |
| 23487 | postIndex := iNdEx + intStringLen |
| 23488 | if postIndex < 0 { |
| 23489 | return ErrInvalidLengthRpc |
| 23490 | } |
| 23491 | if postIndex > l { |
| 23492 | return io.ErrUnexpectedEOF |
| 23493 | } |
| 23494 | m.Name = string(dAtA[iNdEx:postIndex]) |
| 23495 | iNdEx = postIndex |
| 23496 | case 2: |
| 23497 | if wireType != 2 { |
| 23498 | return fmt.Errorf("proto: wrong wireType = %d for field Password", wireType) |
| 23499 | } |
| 23500 | var stringLen uint64 |
| 23501 | for shift := uint(0); ; shift += 7 { |
| 23502 | if shift >= 64 { |
| 23503 | return ErrIntOverflowRpc |
| 23504 | } |
| 23505 | if iNdEx >= l { |
| 23506 | return io.ErrUnexpectedEOF |
| 23507 | } |
| 23508 | b := dAtA[iNdEx] |
| 23509 | iNdEx++ |
| 23510 | stringLen |= uint64(b&0x7F) << shift |
| 23511 | if b < 0x80 { |
| 23512 | break |
| 23513 | } |
| 23514 | } |
| 23515 | intStringLen := int(stringLen) |
| 23516 | if intStringLen < 0 { |
| 23517 | return ErrInvalidLengthRpc |
| 23518 | } |
| 23519 | postIndex := iNdEx + intStringLen |
| 23520 | if postIndex < 0 { |
| 23521 | return ErrInvalidLengthRpc |
| 23522 | } |
| 23523 | if postIndex > l { |
| 23524 | return io.ErrUnexpectedEOF |
| 23525 | } |
| 23526 | m.Password = string(dAtA[iNdEx:postIndex]) |
| 23527 | iNdEx = postIndex |
| 23528 | case 3: |
| 23529 | if wireType != 2 { |
| 23530 | return fmt.Errorf("proto: wrong wireType = %d for field Options", wireType) |
| 23531 | } |
| 23532 | var msglen int |
| 23533 | for shift := uint(0); ; shift += 7 { |
| 23534 | if shift >= 64 { |
| 23535 | return ErrIntOverflowRpc |
| 23536 | } |
| 23537 | if iNdEx >= l { |
| 23538 | return io.ErrUnexpectedEOF |
| 23539 | } |
| 23540 | b := dAtA[iNdEx] |
| 23541 | iNdEx++ |
| 23542 | msglen |= int(b&0x7F) << shift |
| 23543 | if b < 0x80 { |
| 23544 | break |
| 23545 | } |
| 23546 | } |
| 23547 | if msglen < 0 { |
| 23548 | return ErrInvalidLengthRpc |
| 23549 | } |
| 23550 | postIndex := iNdEx + msglen |
| 23551 | if postIndex < 0 { |
| 23552 | return ErrInvalidLengthRpc |
| 23553 | } |
| 23554 | if postIndex > l { |
| 23555 | return io.ErrUnexpectedEOF |
| 23556 | } |
| 23557 | if m.Options == nil { |
| 23558 | m.Options = &authpb.UserAddOptions{} |
| 23559 | } |
| 23560 | if err := m.Options.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 23561 | return err |
| 23562 | } |
| 23563 | iNdEx = postIndex |
| 23564 | case 4: |
| 23565 | if wireType != 2 { |
| 23566 | return fmt.Errorf("proto: wrong wireType = %d for field HashedPassword", wireType) |
| 23567 | } |
| 23568 | var stringLen uint64 |
| 23569 | for shift := uint(0); ; shift += 7 { |
| 23570 | if shift >= 64 { |
| 23571 | return ErrIntOverflowRpc |
| 23572 | } |
| 23573 | if iNdEx >= l { |
| 23574 | return io.ErrUnexpectedEOF |
| 23575 | } |
| 23576 | b := dAtA[iNdEx] |
| 23577 | iNdEx++ |
| 23578 | stringLen |= uint64(b&0x7F) << shift |
| 23579 | if b < 0x80 { |
| 23580 | break |
| 23581 | } |
| 23582 | } |
| 23583 | intStringLen := int(stringLen) |
| 23584 | if intStringLen < 0 { |
| 23585 | return ErrInvalidLengthRpc |
| 23586 | } |
| 23587 | postIndex := iNdEx + intStringLen |
| 23588 | if postIndex < 0 { |
| 23589 | return ErrInvalidLengthRpc |
| 23590 | } |
| 23591 | if postIndex > l { |
| 23592 | return io.ErrUnexpectedEOF |
| 23593 | } |
| 23594 | m.HashedPassword = string(dAtA[iNdEx:postIndex]) |
| 23595 | iNdEx = postIndex |
| 23596 | default: |
| 23597 | iNdEx = preIndex |
| 23598 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 23599 | if err != nil { |
| 23600 | return err |
| 23601 | } |
| 23602 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 23603 | return ErrInvalidLengthRpc |
| 23604 | } |
| 23605 | if (iNdEx + skippy) > l { |
| 23606 | return io.ErrUnexpectedEOF |
| 23607 | } |
| 23608 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 23609 | iNdEx += skippy |
| 23610 | } |
| 23611 | } |
| 23612 | |
| 23613 | if iNdEx > l { |
| 23614 | return io.ErrUnexpectedEOF |
| 23615 | } |
| 23616 | return nil |
| 23617 | } |
| 23618 | func (m *AuthUserGetRequest) Unmarshal(dAtA []byte) error { |
| 23619 | l := len(dAtA) |
| 23620 | iNdEx := 0 |
| 23621 | for iNdEx < l { |
| 23622 | preIndex := iNdEx |
| 23623 | var wire uint64 |
| 23624 | for shift := uint(0); ; shift += 7 { |
| 23625 | if shift >= 64 { |
| 23626 | return ErrIntOverflowRpc |
| 23627 | } |
| 23628 | if iNdEx >= l { |
| 23629 | return io.ErrUnexpectedEOF |
| 23630 | } |
| 23631 | b := dAtA[iNdEx] |
| 23632 | iNdEx++ |
| 23633 | wire |= uint64(b&0x7F) << shift |
| 23634 | if b < 0x80 { |
| 23635 | break |
| 23636 | } |
| 23637 | } |
| 23638 | fieldNum := int32(wire >> 3) |
| 23639 | wireType := int(wire & 0x7) |
| 23640 | if wireType == 4 { |
| 23641 | return fmt.Errorf("proto: AuthUserGetRequest: wiretype end group for non-group") |
| 23642 | } |
| 23643 | if fieldNum <= 0 { |
| 23644 | return fmt.Errorf("proto: AuthUserGetRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 23645 | } |
| 23646 | switch fieldNum { |
| 23647 | case 1: |
| 23648 | if wireType != 2 { |
| 23649 | return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) |
| 23650 | } |
| 23651 | var stringLen uint64 |
| 23652 | for shift := uint(0); ; shift += 7 { |
| 23653 | if shift >= 64 { |
| 23654 | return ErrIntOverflowRpc |
| 23655 | } |
| 23656 | if iNdEx >= l { |
| 23657 | return io.ErrUnexpectedEOF |
| 23658 | } |
| 23659 | b := dAtA[iNdEx] |
| 23660 | iNdEx++ |
| 23661 | stringLen |= uint64(b&0x7F) << shift |
| 23662 | if b < 0x80 { |
| 23663 | break |
| 23664 | } |
| 23665 | } |
| 23666 | intStringLen := int(stringLen) |
| 23667 | if intStringLen < 0 { |
| 23668 | return ErrInvalidLengthRpc |
| 23669 | } |
| 23670 | postIndex := iNdEx + intStringLen |
| 23671 | if postIndex < 0 { |
| 23672 | return ErrInvalidLengthRpc |
| 23673 | } |
| 23674 | if postIndex > l { |
| 23675 | return io.ErrUnexpectedEOF |
| 23676 | } |
| 23677 | m.Name = string(dAtA[iNdEx:postIndex]) |
| 23678 | iNdEx = postIndex |
| 23679 | default: |
| 23680 | iNdEx = preIndex |
| 23681 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 23682 | if err != nil { |
| 23683 | return err |
| 23684 | } |
| 23685 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 23686 | return ErrInvalidLengthRpc |
| 23687 | } |
| 23688 | if (iNdEx + skippy) > l { |
| 23689 | return io.ErrUnexpectedEOF |
| 23690 | } |
| 23691 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 23692 | iNdEx += skippy |
| 23693 | } |
| 23694 | } |
| 23695 | |
| 23696 | if iNdEx > l { |
| 23697 | return io.ErrUnexpectedEOF |
| 23698 | } |
| 23699 | return nil |
| 23700 | } |
| 23701 | func (m *AuthUserDeleteRequest) Unmarshal(dAtA []byte) error { |
| 23702 | l := len(dAtA) |
| 23703 | iNdEx := 0 |
| 23704 | for iNdEx < l { |
| 23705 | preIndex := iNdEx |
| 23706 | var wire uint64 |
| 23707 | for shift := uint(0); ; shift += 7 { |
| 23708 | if shift >= 64 { |
| 23709 | return ErrIntOverflowRpc |
| 23710 | } |
| 23711 | if iNdEx >= l { |
| 23712 | return io.ErrUnexpectedEOF |
| 23713 | } |
| 23714 | b := dAtA[iNdEx] |
| 23715 | iNdEx++ |
| 23716 | wire |= uint64(b&0x7F) << shift |
| 23717 | if b < 0x80 { |
| 23718 | break |
| 23719 | } |
| 23720 | } |
| 23721 | fieldNum := int32(wire >> 3) |
| 23722 | wireType := int(wire & 0x7) |
| 23723 | if wireType == 4 { |
| 23724 | return fmt.Errorf("proto: AuthUserDeleteRequest: wiretype end group for non-group") |
| 23725 | } |
| 23726 | if fieldNum <= 0 { |
| 23727 | return fmt.Errorf("proto: AuthUserDeleteRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 23728 | } |
| 23729 | switch fieldNum { |
| 23730 | case 1: |
| 23731 | if wireType != 2 { |
| 23732 | return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) |
| 23733 | } |
| 23734 | var stringLen uint64 |
| 23735 | for shift := uint(0); ; shift += 7 { |
| 23736 | if shift >= 64 { |
| 23737 | return ErrIntOverflowRpc |
| 23738 | } |
| 23739 | if iNdEx >= l { |
| 23740 | return io.ErrUnexpectedEOF |
| 23741 | } |
| 23742 | b := dAtA[iNdEx] |
| 23743 | iNdEx++ |
| 23744 | stringLen |= uint64(b&0x7F) << shift |
| 23745 | if b < 0x80 { |
| 23746 | break |
| 23747 | } |
| 23748 | } |
| 23749 | intStringLen := int(stringLen) |
| 23750 | if intStringLen < 0 { |
| 23751 | return ErrInvalidLengthRpc |
| 23752 | } |
| 23753 | postIndex := iNdEx + intStringLen |
| 23754 | if postIndex < 0 { |
| 23755 | return ErrInvalidLengthRpc |
| 23756 | } |
| 23757 | if postIndex > l { |
| 23758 | return io.ErrUnexpectedEOF |
| 23759 | } |
| 23760 | m.Name = string(dAtA[iNdEx:postIndex]) |
| 23761 | iNdEx = postIndex |
| 23762 | default: |
| 23763 | iNdEx = preIndex |
| 23764 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 23765 | if err != nil { |
| 23766 | return err |
| 23767 | } |
| 23768 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 23769 | return ErrInvalidLengthRpc |
| 23770 | } |
| 23771 | if (iNdEx + skippy) > l { |
| 23772 | return io.ErrUnexpectedEOF |
| 23773 | } |
| 23774 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 23775 | iNdEx += skippy |
| 23776 | } |
| 23777 | } |
| 23778 | |
| 23779 | if iNdEx > l { |
| 23780 | return io.ErrUnexpectedEOF |
| 23781 | } |
| 23782 | return nil |
| 23783 | } |
| 23784 | func (m *AuthUserChangePasswordRequest) Unmarshal(dAtA []byte) error { |
| 23785 | l := len(dAtA) |
| 23786 | iNdEx := 0 |
| 23787 | for iNdEx < l { |
| 23788 | preIndex := iNdEx |
| 23789 | var wire uint64 |
| 23790 | for shift := uint(0); ; shift += 7 { |
| 23791 | if shift >= 64 { |
| 23792 | return ErrIntOverflowRpc |
| 23793 | } |
| 23794 | if iNdEx >= l { |
| 23795 | return io.ErrUnexpectedEOF |
| 23796 | } |
| 23797 | b := dAtA[iNdEx] |
| 23798 | iNdEx++ |
| 23799 | wire |= uint64(b&0x7F) << shift |
| 23800 | if b < 0x80 { |
| 23801 | break |
| 23802 | } |
| 23803 | } |
| 23804 | fieldNum := int32(wire >> 3) |
| 23805 | wireType := int(wire & 0x7) |
| 23806 | if wireType == 4 { |
| 23807 | return fmt.Errorf("proto: AuthUserChangePasswordRequest: wiretype end group for non-group") |
| 23808 | } |
| 23809 | if fieldNum <= 0 { |
| 23810 | return fmt.Errorf("proto: AuthUserChangePasswordRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 23811 | } |
| 23812 | switch fieldNum { |
| 23813 | case 1: |
| 23814 | if wireType != 2 { |
| 23815 | return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) |
| 23816 | } |
| 23817 | var stringLen uint64 |
| 23818 | for shift := uint(0); ; shift += 7 { |
| 23819 | if shift >= 64 { |
| 23820 | return ErrIntOverflowRpc |
| 23821 | } |
| 23822 | if iNdEx >= l { |
| 23823 | return io.ErrUnexpectedEOF |
| 23824 | } |
| 23825 | b := dAtA[iNdEx] |
| 23826 | iNdEx++ |
| 23827 | stringLen |= uint64(b&0x7F) << shift |
| 23828 | if b < 0x80 { |
| 23829 | break |
| 23830 | } |
| 23831 | } |
| 23832 | intStringLen := int(stringLen) |
| 23833 | if intStringLen < 0 { |
| 23834 | return ErrInvalidLengthRpc |
| 23835 | } |
| 23836 | postIndex := iNdEx + intStringLen |
| 23837 | if postIndex < 0 { |
| 23838 | return ErrInvalidLengthRpc |
| 23839 | } |
| 23840 | if postIndex > l { |
| 23841 | return io.ErrUnexpectedEOF |
| 23842 | } |
| 23843 | m.Name = string(dAtA[iNdEx:postIndex]) |
| 23844 | iNdEx = postIndex |
| 23845 | case 2: |
| 23846 | if wireType != 2 { |
| 23847 | return fmt.Errorf("proto: wrong wireType = %d for field Password", wireType) |
| 23848 | } |
| 23849 | var stringLen uint64 |
| 23850 | for shift := uint(0); ; shift += 7 { |
| 23851 | if shift >= 64 { |
| 23852 | return ErrIntOverflowRpc |
| 23853 | } |
| 23854 | if iNdEx >= l { |
| 23855 | return io.ErrUnexpectedEOF |
| 23856 | } |
| 23857 | b := dAtA[iNdEx] |
| 23858 | iNdEx++ |
| 23859 | stringLen |= uint64(b&0x7F) << shift |
| 23860 | if b < 0x80 { |
| 23861 | break |
| 23862 | } |
| 23863 | } |
| 23864 | intStringLen := int(stringLen) |
| 23865 | if intStringLen < 0 { |
| 23866 | return ErrInvalidLengthRpc |
| 23867 | } |
| 23868 | postIndex := iNdEx + intStringLen |
| 23869 | if postIndex < 0 { |
| 23870 | return ErrInvalidLengthRpc |
| 23871 | } |
| 23872 | if postIndex > l { |
| 23873 | return io.ErrUnexpectedEOF |
| 23874 | } |
| 23875 | m.Password = string(dAtA[iNdEx:postIndex]) |
| 23876 | iNdEx = postIndex |
| 23877 | case 3: |
| 23878 | if wireType != 2 { |
| 23879 | return fmt.Errorf("proto: wrong wireType = %d for field HashedPassword", wireType) |
| 23880 | } |
| 23881 | var stringLen uint64 |
| 23882 | for shift := uint(0); ; shift += 7 { |
| 23883 | if shift >= 64 { |
| 23884 | return ErrIntOverflowRpc |
| 23885 | } |
| 23886 | if iNdEx >= l { |
| 23887 | return io.ErrUnexpectedEOF |
| 23888 | } |
| 23889 | b := dAtA[iNdEx] |
| 23890 | iNdEx++ |
| 23891 | stringLen |= uint64(b&0x7F) << shift |
| 23892 | if b < 0x80 { |
| 23893 | break |
| 23894 | } |
| 23895 | } |
| 23896 | intStringLen := int(stringLen) |
| 23897 | if intStringLen < 0 { |
| 23898 | return ErrInvalidLengthRpc |
| 23899 | } |
| 23900 | postIndex := iNdEx + intStringLen |
| 23901 | if postIndex < 0 { |
| 23902 | return ErrInvalidLengthRpc |
| 23903 | } |
| 23904 | if postIndex > l { |
| 23905 | return io.ErrUnexpectedEOF |
| 23906 | } |
| 23907 | m.HashedPassword = string(dAtA[iNdEx:postIndex]) |
| 23908 | iNdEx = postIndex |
| 23909 | default: |
| 23910 | iNdEx = preIndex |
| 23911 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 23912 | if err != nil { |
| 23913 | return err |
| 23914 | } |
| 23915 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 23916 | return ErrInvalidLengthRpc |
| 23917 | } |
| 23918 | if (iNdEx + skippy) > l { |
| 23919 | return io.ErrUnexpectedEOF |
| 23920 | } |
| 23921 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 23922 | iNdEx += skippy |
| 23923 | } |
| 23924 | } |
| 23925 | |
| 23926 | if iNdEx > l { |
| 23927 | return io.ErrUnexpectedEOF |
| 23928 | } |
| 23929 | return nil |
| 23930 | } |
| 23931 | func (m *AuthUserGrantRoleRequest) Unmarshal(dAtA []byte) error { |
| 23932 | l := len(dAtA) |
| 23933 | iNdEx := 0 |
| 23934 | for iNdEx < l { |
| 23935 | preIndex := iNdEx |
| 23936 | var wire uint64 |
| 23937 | for shift := uint(0); ; shift += 7 { |
| 23938 | if shift >= 64 { |
| 23939 | return ErrIntOverflowRpc |
| 23940 | } |
| 23941 | if iNdEx >= l { |
| 23942 | return io.ErrUnexpectedEOF |
| 23943 | } |
| 23944 | b := dAtA[iNdEx] |
| 23945 | iNdEx++ |
| 23946 | wire |= uint64(b&0x7F) << shift |
| 23947 | if b < 0x80 { |
| 23948 | break |
| 23949 | } |
| 23950 | } |
| 23951 | fieldNum := int32(wire >> 3) |
| 23952 | wireType := int(wire & 0x7) |
| 23953 | if wireType == 4 { |
| 23954 | return fmt.Errorf("proto: AuthUserGrantRoleRequest: wiretype end group for non-group") |
| 23955 | } |
| 23956 | if fieldNum <= 0 { |
| 23957 | return fmt.Errorf("proto: AuthUserGrantRoleRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 23958 | } |
| 23959 | switch fieldNum { |
| 23960 | case 1: |
| 23961 | if wireType != 2 { |
| 23962 | return fmt.Errorf("proto: wrong wireType = %d for field User", wireType) |
| 23963 | } |
| 23964 | var stringLen uint64 |
| 23965 | for shift := uint(0); ; shift += 7 { |
| 23966 | if shift >= 64 { |
| 23967 | return ErrIntOverflowRpc |
| 23968 | } |
| 23969 | if iNdEx >= l { |
| 23970 | return io.ErrUnexpectedEOF |
| 23971 | } |
| 23972 | b := dAtA[iNdEx] |
| 23973 | iNdEx++ |
| 23974 | stringLen |= uint64(b&0x7F) << shift |
| 23975 | if b < 0x80 { |
| 23976 | break |
| 23977 | } |
| 23978 | } |
| 23979 | intStringLen := int(stringLen) |
| 23980 | if intStringLen < 0 { |
| 23981 | return ErrInvalidLengthRpc |
| 23982 | } |
| 23983 | postIndex := iNdEx + intStringLen |
| 23984 | if postIndex < 0 { |
| 23985 | return ErrInvalidLengthRpc |
| 23986 | } |
| 23987 | if postIndex > l { |
| 23988 | return io.ErrUnexpectedEOF |
| 23989 | } |
| 23990 | m.User = string(dAtA[iNdEx:postIndex]) |
| 23991 | iNdEx = postIndex |
| 23992 | case 2: |
| 23993 | if wireType != 2 { |
| 23994 | return fmt.Errorf("proto: wrong wireType = %d for field Role", wireType) |
| 23995 | } |
| 23996 | var stringLen uint64 |
| 23997 | for shift := uint(0); ; shift += 7 { |
| 23998 | if shift >= 64 { |
| 23999 | return ErrIntOverflowRpc |
| 24000 | } |
| 24001 | if iNdEx >= l { |
| 24002 | return io.ErrUnexpectedEOF |
| 24003 | } |
| 24004 | b := dAtA[iNdEx] |
| 24005 | iNdEx++ |
| 24006 | stringLen |= uint64(b&0x7F) << shift |
| 24007 | if b < 0x80 { |
| 24008 | break |
| 24009 | } |
| 24010 | } |
| 24011 | intStringLen := int(stringLen) |
| 24012 | if intStringLen < 0 { |
| 24013 | return ErrInvalidLengthRpc |
| 24014 | } |
| 24015 | postIndex := iNdEx + intStringLen |
| 24016 | if postIndex < 0 { |
| 24017 | return ErrInvalidLengthRpc |
| 24018 | } |
| 24019 | if postIndex > l { |
| 24020 | return io.ErrUnexpectedEOF |
| 24021 | } |
| 24022 | m.Role = string(dAtA[iNdEx:postIndex]) |
| 24023 | iNdEx = postIndex |
| 24024 | default: |
| 24025 | iNdEx = preIndex |
| 24026 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 24027 | if err != nil { |
| 24028 | return err |
| 24029 | } |
| 24030 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 24031 | return ErrInvalidLengthRpc |
| 24032 | } |
| 24033 | if (iNdEx + skippy) > l { |
| 24034 | return io.ErrUnexpectedEOF |
| 24035 | } |
| 24036 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 24037 | iNdEx += skippy |
| 24038 | } |
| 24039 | } |
| 24040 | |
| 24041 | if iNdEx > l { |
| 24042 | return io.ErrUnexpectedEOF |
| 24043 | } |
| 24044 | return nil |
| 24045 | } |
| 24046 | func (m *AuthUserRevokeRoleRequest) Unmarshal(dAtA []byte) error { |
| 24047 | l := len(dAtA) |
| 24048 | iNdEx := 0 |
| 24049 | for iNdEx < l { |
| 24050 | preIndex := iNdEx |
| 24051 | var wire uint64 |
| 24052 | for shift := uint(0); ; shift += 7 { |
| 24053 | if shift >= 64 { |
| 24054 | return ErrIntOverflowRpc |
| 24055 | } |
| 24056 | if iNdEx >= l { |
| 24057 | return io.ErrUnexpectedEOF |
| 24058 | } |
| 24059 | b := dAtA[iNdEx] |
| 24060 | iNdEx++ |
| 24061 | wire |= uint64(b&0x7F) << shift |
| 24062 | if b < 0x80 { |
| 24063 | break |
| 24064 | } |
| 24065 | } |
| 24066 | fieldNum := int32(wire >> 3) |
| 24067 | wireType := int(wire & 0x7) |
| 24068 | if wireType == 4 { |
| 24069 | return fmt.Errorf("proto: AuthUserRevokeRoleRequest: wiretype end group for non-group") |
| 24070 | } |
| 24071 | if fieldNum <= 0 { |
| 24072 | return fmt.Errorf("proto: AuthUserRevokeRoleRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 24073 | } |
| 24074 | switch fieldNum { |
| 24075 | case 1: |
| 24076 | if wireType != 2 { |
| 24077 | return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) |
| 24078 | } |
| 24079 | var stringLen uint64 |
| 24080 | for shift := uint(0); ; shift += 7 { |
| 24081 | if shift >= 64 { |
| 24082 | return ErrIntOverflowRpc |
| 24083 | } |
| 24084 | if iNdEx >= l { |
| 24085 | return io.ErrUnexpectedEOF |
| 24086 | } |
| 24087 | b := dAtA[iNdEx] |
| 24088 | iNdEx++ |
| 24089 | stringLen |= uint64(b&0x7F) << shift |
| 24090 | if b < 0x80 { |
| 24091 | break |
| 24092 | } |
| 24093 | } |
| 24094 | intStringLen := int(stringLen) |
| 24095 | if intStringLen < 0 { |
| 24096 | return ErrInvalidLengthRpc |
| 24097 | } |
| 24098 | postIndex := iNdEx + intStringLen |
| 24099 | if postIndex < 0 { |
| 24100 | return ErrInvalidLengthRpc |
| 24101 | } |
| 24102 | if postIndex > l { |
| 24103 | return io.ErrUnexpectedEOF |
| 24104 | } |
| 24105 | m.Name = string(dAtA[iNdEx:postIndex]) |
| 24106 | iNdEx = postIndex |
| 24107 | case 2: |
| 24108 | if wireType != 2 { |
| 24109 | return fmt.Errorf("proto: wrong wireType = %d for field Role", wireType) |
| 24110 | } |
| 24111 | var stringLen uint64 |
| 24112 | for shift := uint(0); ; shift += 7 { |
| 24113 | if shift >= 64 { |
| 24114 | return ErrIntOverflowRpc |
| 24115 | } |
| 24116 | if iNdEx >= l { |
| 24117 | return io.ErrUnexpectedEOF |
| 24118 | } |
| 24119 | b := dAtA[iNdEx] |
| 24120 | iNdEx++ |
| 24121 | stringLen |= uint64(b&0x7F) << shift |
| 24122 | if b < 0x80 { |
| 24123 | break |
| 24124 | } |
| 24125 | } |
| 24126 | intStringLen := int(stringLen) |
| 24127 | if intStringLen < 0 { |
| 24128 | return ErrInvalidLengthRpc |
| 24129 | } |
| 24130 | postIndex := iNdEx + intStringLen |
| 24131 | if postIndex < 0 { |
| 24132 | return ErrInvalidLengthRpc |
| 24133 | } |
| 24134 | if postIndex > l { |
| 24135 | return io.ErrUnexpectedEOF |
| 24136 | } |
| 24137 | m.Role = string(dAtA[iNdEx:postIndex]) |
| 24138 | iNdEx = postIndex |
| 24139 | default: |
| 24140 | iNdEx = preIndex |
| 24141 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 24142 | if err != nil { |
| 24143 | return err |
| 24144 | } |
| 24145 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 24146 | return ErrInvalidLengthRpc |
| 24147 | } |
| 24148 | if (iNdEx + skippy) > l { |
| 24149 | return io.ErrUnexpectedEOF |
| 24150 | } |
| 24151 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 24152 | iNdEx += skippy |
| 24153 | } |
| 24154 | } |
| 24155 | |
| 24156 | if iNdEx > l { |
| 24157 | return io.ErrUnexpectedEOF |
| 24158 | } |
| 24159 | return nil |
| 24160 | } |
| 24161 | func (m *AuthRoleAddRequest) Unmarshal(dAtA []byte) error { |
| 24162 | l := len(dAtA) |
| 24163 | iNdEx := 0 |
| 24164 | for iNdEx < l { |
| 24165 | preIndex := iNdEx |
| 24166 | var wire uint64 |
| 24167 | for shift := uint(0); ; shift += 7 { |
| 24168 | if shift >= 64 { |
| 24169 | return ErrIntOverflowRpc |
| 24170 | } |
| 24171 | if iNdEx >= l { |
| 24172 | return io.ErrUnexpectedEOF |
| 24173 | } |
| 24174 | b := dAtA[iNdEx] |
| 24175 | iNdEx++ |
| 24176 | wire |= uint64(b&0x7F) << shift |
| 24177 | if b < 0x80 { |
| 24178 | break |
| 24179 | } |
| 24180 | } |
| 24181 | fieldNum := int32(wire >> 3) |
| 24182 | wireType := int(wire & 0x7) |
| 24183 | if wireType == 4 { |
| 24184 | return fmt.Errorf("proto: AuthRoleAddRequest: wiretype end group for non-group") |
| 24185 | } |
| 24186 | if fieldNum <= 0 { |
| 24187 | return fmt.Errorf("proto: AuthRoleAddRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 24188 | } |
| 24189 | switch fieldNum { |
| 24190 | case 1: |
| 24191 | if wireType != 2 { |
| 24192 | return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) |
| 24193 | } |
| 24194 | var stringLen uint64 |
| 24195 | for shift := uint(0); ; shift += 7 { |
| 24196 | if shift >= 64 { |
| 24197 | return ErrIntOverflowRpc |
| 24198 | } |
| 24199 | if iNdEx >= l { |
| 24200 | return io.ErrUnexpectedEOF |
| 24201 | } |
| 24202 | b := dAtA[iNdEx] |
| 24203 | iNdEx++ |
| 24204 | stringLen |= uint64(b&0x7F) << shift |
| 24205 | if b < 0x80 { |
| 24206 | break |
| 24207 | } |
| 24208 | } |
| 24209 | intStringLen := int(stringLen) |
| 24210 | if intStringLen < 0 { |
| 24211 | return ErrInvalidLengthRpc |
| 24212 | } |
| 24213 | postIndex := iNdEx + intStringLen |
| 24214 | if postIndex < 0 { |
| 24215 | return ErrInvalidLengthRpc |
| 24216 | } |
| 24217 | if postIndex > l { |
| 24218 | return io.ErrUnexpectedEOF |
| 24219 | } |
| 24220 | m.Name = string(dAtA[iNdEx:postIndex]) |
| 24221 | iNdEx = postIndex |
| 24222 | default: |
| 24223 | iNdEx = preIndex |
| 24224 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 24225 | if err != nil { |
| 24226 | return err |
| 24227 | } |
| 24228 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 24229 | return ErrInvalidLengthRpc |
| 24230 | } |
| 24231 | if (iNdEx + skippy) > l { |
| 24232 | return io.ErrUnexpectedEOF |
| 24233 | } |
| 24234 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 24235 | iNdEx += skippy |
| 24236 | } |
| 24237 | } |
| 24238 | |
| 24239 | if iNdEx > l { |
| 24240 | return io.ErrUnexpectedEOF |
| 24241 | } |
| 24242 | return nil |
| 24243 | } |
| 24244 | func (m *AuthRoleGetRequest) Unmarshal(dAtA []byte) error { |
| 24245 | l := len(dAtA) |
| 24246 | iNdEx := 0 |
| 24247 | for iNdEx < l { |
| 24248 | preIndex := iNdEx |
| 24249 | var wire uint64 |
| 24250 | for shift := uint(0); ; shift += 7 { |
| 24251 | if shift >= 64 { |
| 24252 | return ErrIntOverflowRpc |
| 24253 | } |
| 24254 | if iNdEx >= l { |
| 24255 | return io.ErrUnexpectedEOF |
| 24256 | } |
| 24257 | b := dAtA[iNdEx] |
| 24258 | iNdEx++ |
| 24259 | wire |= uint64(b&0x7F) << shift |
| 24260 | if b < 0x80 { |
| 24261 | break |
| 24262 | } |
| 24263 | } |
| 24264 | fieldNum := int32(wire >> 3) |
| 24265 | wireType := int(wire & 0x7) |
| 24266 | if wireType == 4 { |
| 24267 | return fmt.Errorf("proto: AuthRoleGetRequest: wiretype end group for non-group") |
| 24268 | } |
| 24269 | if fieldNum <= 0 { |
| 24270 | return fmt.Errorf("proto: AuthRoleGetRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 24271 | } |
| 24272 | switch fieldNum { |
| 24273 | case 1: |
| 24274 | if wireType != 2 { |
| 24275 | return fmt.Errorf("proto: wrong wireType = %d for field Role", wireType) |
| 24276 | } |
| 24277 | var stringLen uint64 |
| 24278 | for shift := uint(0); ; shift += 7 { |
| 24279 | if shift >= 64 { |
| 24280 | return ErrIntOverflowRpc |
| 24281 | } |
| 24282 | if iNdEx >= l { |
| 24283 | return io.ErrUnexpectedEOF |
| 24284 | } |
| 24285 | b := dAtA[iNdEx] |
| 24286 | iNdEx++ |
| 24287 | stringLen |= uint64(b&0x7F) << shift |
| 24288 | if b < 0x80 { |
| 24289 | break |
| 24290 | } |
| 24291 | } |
| 24292 | intStringLen := int(stringLen) |
| 24293 | if intStringLen < 0 { |
| 24294 | return ErrInvalidLengthRpc |
| 24295 | } |
| 24296 | postIndex := iNdEx + intStringLen |
| 24297 | if postIndex < 0 { |
| 24298 | return ErrInvalidLengthRpc |
| 24299 | } |
| 24300 | if postIndex > l { |
| 24301 | return io.ErrUnexpectedEOF |
| 24302 | } |
| 24303 | m.Role = string(dAtA[iNdEx:postIndex]) |
| 24304 | iNdEx = postIndex |
| 24305 | default: |
| 24306 | iNdEx = preIndex |
| 24307 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 24308 | if err != nil { |
| 24309 | return err |
| 24310 | } |
| 24311 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 24312 | return ErrInvalidLengthRpc |
| 24313 | } |
| 24314 | if (iNdEx + skippy) > l { |
| 24315 | return io.ErrUnexpectedEOF |
| 24316 | } |
| 24317 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 24318 | iNdEx += skippy |
| 24319 | } |
| 24320 | } |
| 24321 | |
| 24322 | if iNdEx > l { |
| 24323 | return io.ErrUnexpectedEOF |
| 24324 | } |
| 24325 | return nil |
| 24326 | } |
| 24327 | func (m *AuthUserListRequest) Unmarshal(dAtA []byte) error { |
| 24328 | l := len(dAtA) |
| 24329 | iNdEx := 0 |
| 24330 | for iNdEx < l { |
| 24331 | preIndex := iNdEx |
| 24332 | var wire uint64 |
| 24333 | for shift := uint(0); ; shift += 7 { |
| 24334 | if shift >= 64 { |
| 24335 | return ErrIntOverflowRpc |
| 24336 | } |
| 24337 | if iNdEx >= l { |
| 24338 | return io.ErrUnexpectedEOF |
| 24339 | } |
| 24340 | b := dAtA[iNdEx] |
| 24341 | iNdEx++ |
| 24342 | wire |= uint64(b&0x7F) << shift |
| 24343 | if b < 0x80 { |
| 24344 | break |
| 24345 | } |
| 24346 | } |
| 24347 | fieldNum := int32(wire >> 3) |
| 24348 | wireType := int(wire & 0x7) |
| 24349 | if wireType == 4 { |
| 24350 | return fmt.Errorf("proto: AuthUserListRequest: wiretype end group for non-group") |
| 24351 | } |
| 24352 | if fieldNum <= 0 { |
| 24353 | return fmt.Errorf("proto: AuthUserListRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 24354 | } |
| 24355 | switch fieldNum { |
| 24356 | default: |
| 24357 | iNdEx = preIndex |
| 24358 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 24359 | if err != nil { |
| 24360 | return err |
| 24361 | } |
| 24362 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 24363 | return ErrInvalidLengthRpc |
| 24364 | } |
| 24365 | if (iNdEx + skippy) > l { |
| 24366 | return io.ErrUnexpectedEOF |
| 24367 | } |
| 24368 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 24369 | iNdEx += skippy |
| 24370 | } |
| 24371 | } |
| 24372 | |
| 24373 | if iNdEx > l { |
| 24374 | return io.ErrUnexpectedEOF |
| 24375 | } |
| 24376 | return nil |
| 24377 | } |
| 24378 | func (m *AuthRoleListRequest) Unmarshal(dAtA []byte) error { |
| 24379 | l := len(dAtA) |
| 24380 | iNdEx := 0 |
| 24381 | for iNdEx < l { |
| 24382 | preIndex := iNdEx |
| 24383 | var wire uint64 |
| 24384 | for shift := uint(0); ; shift += 7 { |
| 24385 | if shift >= 64 { |
| 24386 | return ErrIntOverflowRpc |
| 24387 | } |
| 24388 | if iNdEx >= l { |
| 24389 | return io.ErrUnexpectedEOF |
| 24390 | } |
| 24391 | b := dAtA[iNdEx] |
| 24392 | iNdEx++ |
| 24393 | wire |= uint64(b&0x7F) << shift |
| 24394 | if b < 0x80 { |
| 24395 | break |
| 24396 | } |
| 24397 | } |
| 24398 | fieldNum := int32(wire >> 3) |
| 24399 | wireType := int(wire & 0x7) |
| 24400 | if wireType == 4 { |
| 24401 | return fmt.Errorf("proto: AuthRoleListRequest: wiretype end group for non-group") |
| 24402 | } |
| 24403 | if fieldNum <= 0 { |
| 24404 | return fmt.Errorf("proto: AuthRoleListRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 24405 | } |
| 24406 | switch fieldNum { |
| 24407 | default: |
| 24408 | iNdEx = preIndex |
| 24409 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 24410 | if err != nil { |
| 24411 | return err |
| 24412 | } |
| 24413 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 24414 | return ErrInvalidLengthRpc |
| 24415 | } |
| 24416 | if (iNdEx + skippy) > l { |
| 24417 | return io.ErrUnexpectedEOF |
| 24418 | } |
| 24419 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 24420 | iNdEx += skippy |
| 24421 | } |
| 24422 | } |
| 24423 | |
| 24424 | if iNdEx > l { |
| 24425 | return io.ErrUnexpectedEOF |
| 24426 | } |
| 24427 | return nil |
| 24428 | } |
| 24429 | func (m *AuthRoleDeleteRequest) Unmarshal(dAtA []byte) error { |
| 24430 | l := len(dAtA) |
| 24431 | iNdEx := 0 |
| 24432 | for iNdEx < l { |
| 24433 | preIndex := iNdEx |
| 24434 | var wire uint64 |
| 24435 | for shift := uint(0); ; shift += 7 { |
| 24436 | if shift >= 64 { |
| 24437 | return ErrIntOverflowRpc |
| 24438 | } |
| 24439 | if iNdEx >= l { |
| 24440 | return io.ErrUnexpectedEOF |
| 24441 | } |
| 24442 | b := dAtA[iNdEx] |
| 24443 | iNdEx++ |
| 24444 | wire |= uint64(b&0x7F) << shift |
| 24445 | if b < 0x80 { |
| 24446 | break |
| 24447 | } |
| 24448 | } |
| 24449 | fieldNum := int32(wire >> 3) |
| 24450 | wireType := int(wire & 0x7) |
| 24451 | if wireType == 4 { |
| 24452 | return fmt.Errorf("proto: AuthRoleDeleteRequest: wiretype end group for non-group") |
| 24453 | } |
| 24454 | if fieldNum <= 0 { |
| 24455 | return fmt.Errorf("proto: AuthRoleDeleteRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 24456 | } |
| 24457 | switch fieldNum { |
| 24458 | case 1: |
| 24459 | if wireType != 2 { |
| 24460 | return fmt.Errorf("proto: wrong wireType = %d for field Role", wireType) |
| 24461 | } |
| 24462 | var stringLen uint64 |
| 24463 | for shift := uint(0); ; shift += 7 { |
| 24464 | if shift >= 64 { |
| 24465 | return ErrIntOverflowRpc |
| 24466 | } |
| 24467 | if iNdEx >= l { |
| 24468 | return io.ErrUnexpectedEOF |
| 24469 | } |
| 24470 | b := dAtA[iNdEx] |
| 24471 | iNdEx++ |
| 24472 | stringLen |= uint64(b&0x7F) << shift |
| 24473 | if b < 0x80 { |
| 24474 | break |
| 24475 | } |
| 24476 | } |
| 24477 | intStringLen := int(stringLen) |
| 24478 | if intStringLen < 0 { |
| 24479 | return ErrInvalidLengthRpc |
| 24480 | } |
| 24481 | postIndex := iNdEx + intStringLen |
| 24482 | if postIndex < 0 { |
| 24483 | return ErrInvalidLengthRpc |
| 24484 | } |
| 24485 | if postIndex > l { |
| 24486 | return io.ErrUnexpectedEOF |
| 24487 | } |
| 24488 | m.Role = string(dAtA[iNdEx:postIndex]) |
| 24489 | iNdEx = postIndex |
| 24490 | default: |
| 24491 | iNdEx = preIndex |
| 24492 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 24493 | if err != nil { |
| 24494 | return err |
| 24495 | } |
| 24496 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 24497 | return ErrInvalidLengthRpc |
| 24498 | } |
| 24499 | if (iNdEx + skippy) > l { |
| 24500 | return io.ErrUnexpectedEOF |
| 24501 | } |
| 24502 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 24503 | iNdEx += skippy |
| 24504 | } |
| 24505 | } |
| 24506 | |
| 24507 | if iNdEx > l { |
| 24508 | return io.ErrUnexpectedEOF |
| 24509 | } |
| 24510 | return nil |
| 24511 | } |
| 24512 | func (m *AuthRoleGrantPermissionRequest) Unmarshal(dAtA []byte) error { |
| 24513 | l := len(dAtA) |
| 24514 | iNdEx := 0 |
| 24515 | for iNdEx < l { |
| 24516 | preIndex := iNdEx |
| 24517 | var wire uint64 |
| 24518 | for shift := uint(0); ; shift += 7 { |
| 24519 | if shift >= 64 { |
| 24520 | return ErrIntOverflowRpc |
| 24521 | } |
| 24522 | if iNdEx >= l { |
| 24523 | return io.ErrUnexpectedEOF |
| 24524 | } |
| 24525 | b := dAtA[iNdEx] |
| 24526 | iNdEx++ |
| 24527 | wire |= uint64(b&0x7F) << shift |
| 24528 | if b < 0x80 { |
| 24529 | break |
| 24530 | } |
| 24531 | } |
| 24532 | fieldNum := int32(wire >> 3) |
| 24533 | wireType := int(wire & 0x7) |
| 24534 | if wireType == 4 { |
| 24535 | return fmt.Errorf("proto: AuthRoleGrantPermissionRequest: wiretype end group for non-group") |
| 24536 | } |
| 24537 | if fieldNum <= 0 { |
| 24538 | return fmt.Errorf("proto: AuthRoleGrantPermissionRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 24539 | } |
| 24540 | switch fieldNum { |
| 24541 | case 1: |
| 24542 | if wireType != 2 { |
| 24543 | return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) |
| 24544 | } |
| 24545 | var stringLen uint64 |
| 24546 | for shift := uint(0); ; shift += 7 { |
| 24547 | if shift >= 64 { |
| 24548 | return ErrIntOverflowRpc |
| 24549 | } |
| 24550 | if iNdEx >= l { |
| 24551 | return io.ErrUnexpectedEOF |
| 24552 | } |
| 24553 | b := dAtA[iNdEx] |
| 24554 | iNdEx++ |
| 24555 | stringLen |= uint64(b&0x7F) << shift |
| 24556 | if b < 0x80 { |
| 24557 | break |
| 24558 | } |
| 24559 | } |
| 24560 | intStringLen := int(stringLen) |
| 24561 | if intStringLen < 0 { |
| 24562 | return ErrInvalidLengthRpc |
| 24563 | } |
| 24564 | postIndex := iNdEx + intStringLen |
| 24565 | if postIndex < 0 { |
| 24566 | return ErrInvalidLengthRpc |
| 24567 | } |
| 24568 | if postIndex > l { |
| 24569 | return io.ErrUnexpectedEOF |
| 24570 | } |
| 24571 | m.Name = string(dAtA[iNdEx:postIndex]) |
| 24572 | iNdEx = postIndex |
| 24573 | case 2: |
| 24574 | if wireType != 2 { |
| 24575 | return fmt.Errorf("proto: wrong wireType = %d for field Perm", wireType) |
| 24576 | } |
| 24577 | var msglen int |
| 24578 | for shift := uint(0); ; shift += 7 { |
| 24579 | if shift >= 64 { |
| 24580 | return ErrIntOverflowRpc |
| 24581 | } |
| 24582 | if iNdEx >= l { |
| 24583 | return io.ErrUnexpectedEOF |
| 24584 | } |
| 24585 | b := dAtA[iNdEx] |
| 24586 | iNdEx++ |
| 24587 | msglen |= int(b&0x7F) << shift |
| 24588 | if b < 0x80 { |
| 24589 | break |
| 24590 | } |
| 24591 | } |
| 24592 | if msglen < 0 { |
| 24593 | return ErrInvalidLengthRpc |
| 24594 | } |
| 24595 | postIndex := iNdEx + msglen |
| 24596 | if postIndex < 0 { |
| 24597 | return ErrInvalidLengthRpc |
| 24598 | } |
| 24599 | if postIndex > l { |
| 24600 | return io.ErrUnexpectedEOF |
| 24601 | } |
| 24602 | if m.Perm == nil { |
| 24603 | m.Perm = &authpb.Permission{} |
| 24604 | } |
| 24605 | if err := m.Perm.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 24606 | return err |
| 24607 | } |
| 24608 | iNdEx = postIndex |
| 24609 | default: |
| 24610 | iNdEx = preIndex |
| 24611 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 24612 | if err != nil { |
| 24613 | return err |
| 24614 | } |
| 24615 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 24616 | return ErrInvalidLengthRpc |
| 24617 | } |
| 24618 | if (iNdEx + skippy) > l { |
| 24619 | return io.ErrUnexpectedEOF |
| 24620 | } |
| 24621 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 24622 | iNdEx += skippy |
| 24623 | } |
| 24624 | } |
| 24625 | |
| 24626 | if iNdEx > l { |
| 24627 | return io.ErrUnexpectedEOF |
| 24628 | } |
| 24629 | return nil |
| 24630 | } |
| 24631 | func (m *AuthRoleRevokePermissionRequest) Unmarshal(dAtA []byte) error { |
| 24632 | l := len(dAtA) |
| 24633 | iNdEx := 0 |
| 24634 | for iNdEx < l { |
| 24635 | preIndex := iNdEx |
| 24636 | var wire uint64 |
| 24637 | for shift := uint(0); ; shift += 7 { |
| 24638 | if shift >= 64 { |
| 24639 | return ErrIntOverflowRpc |
| 24640 | } |
| 24641 | if iNdEx >= l { |
| 24642 | return io.ErrUnexpectedEOF |
| 24643 | } |
| 24644 | b := dAtA[iNdEx] |
| 24645 | iNdEx++ |
| 24646 | wire |= uint64(b&0x7F) << shift |
| 24647 | if b < 0x80 { |
| 24648 | break |
| 24649 | } |
| 24650 | } |
| 24651 | fieldNum := int32(wire >> 3) |
| 24652 | wireType := int(wire & 0x7) |
| 24653 | if wireType == 4 { |
| 24654 | return fmt.Errorf("proto: AuthRoleRevokePermissionRequest: wiretype end group for non-group") |
| 24655 | } |
| 24656 | if fieldNum <= 0 { |
| 24657 | return fmt.Errorf("proto: AuthRoleRevokePermissionRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
| 24658 | } |
| 24659 | switch fieldNum { |
| 24660 | case 1: |
| 24661 | if wireType != 2 { |
| 24662 | return fmt.Errorf("proto: wrong wireType = %d for field Role", wireType) |
| 24663 | } |
| 24664 | var stringLen uint64 |
| 24665 | for shift := uint(0); ; shift += 7 { |
| 24666 | if shift >= 64 { |
| 24667 | return ErrIntOverflowRpc |
| 24668 | } |
| 24669 | if iNdEx >= l { |
| 24670 | return io.ErrUnexpectedEOF |
| 24671 | } |
| 24672 | b := dAtA[iNdEx] |
| 24673 | iNdEx++ |
| 24674 | stringLen |= uint64(b&0x7F) << shift |
| 24675 | if b < 0x80 { |
| 24676 | break |
| 24677 | } |
| 24678 | } |
| 24679 | intStringLen := int(stringLen) |
| 24680 | if intStringLen < 0 { |
| 24681 | return ErrInvalidLengthRpc |
| 24682 | } |
| 24683 | postIndex := iNdEx + intStringLen |
| 24684 | if postIndex < 0 { |
| 24685 | return ErrInvalidLengthRpc |
| 24686 | } |
| 24687 | if postIndex > l { |
| 24688 | return io.ErrUnexpectedEOF |
| 24689 | } |
| 24690 | m.Role = string(dAtA[iNdEx:postIndex]) |
| 24691 | iNdEx = postIndex |
| 24692 | case 2: |
| 24693 | if wireType != 2 { |
| 24694 | return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) |
| 24695 | } |
| 24696 | var byteLen int |
| 24697 | for shift := uint(0); ; shift += 7 { |
| 24698 | if shift >= 64 { |
| 24699 | return ErrIntOverflowRpc |
| 24700 | } |
| 24701 | if iNdEx >= l { |
| 24702 | return io.ErrUnexpectedEOF |
| 24703 | } |
| 24704 | b := dAtA[iNdEx] |
| 24705 | iNdEx++ |
| 24706 | byteLen |= int(b&0x7F) << shift |
| 24707 | if b < 0x80 { |
| 24708 | break |
| 24709 | } |
| 24710 | } |
| 24711 | if byteLen < 0 { |
| 24712 | return ErrInvalidLengthRpc |
| 24713 | } |
| 24714 | postIndex := iNdEx + byteLen |
| 24715 | if postIndex < 0 { |
| 24716 | return ErrInvalidLengthRpc |
| 24717 | } |
| 24718 | if postIndex > l { |
| 24719 | return io.ErrUnexpectedEOF |
| 24720 | } |
| 24721 | m.Key = append(m.Key[:0], dAtA[iNdEx:postIndex]...) |
| 24722 | if m.Key == nil { |
| 24723 | m.Key = []byte{} |
| 24724 | } |
| 24725 | iNdEx = postIndex |
| 24726 | case 3: |
| 24727 | if wireType != 2 { |
| 24728 | return fmt.Errorf("proto: wrong wireType = %d for field RangeEnd", wireType) |
| 24729 | } |
| 24730 | var byteLen int |
| 24731 | for shift := uint(0); ; shift += 7 { |
| 24732 | if shift >= 64 { |
| 24733 | return ErrIntOverflowRpc |
| 24734 | } |
| 24735 | if iNdEx >= l { |
| 24736 | return io.ErrUnexpectedEOF |
| 24737 | } |
| 24738 | b := dAtA[iNdEx] |
| 24739 | iNdEx++ |
| 24740 | byteLen |= int(b&0x7F) << shift |
| 24741 | if b < 0x80 { |
| 24742 | break |
| 24743 | } |
| 24744 | } |
| 24745 | if byteLen < 0 { |
| 24746 | return ErrInvalidLengthRpc |
| 24747 | } |
| 24748 | postIndex := iNdEx + byteLen |
| 24749 | if postIndex < 0 { |
| 24750 | return ErrInvalidLengthRpc |
| 24751 | } |
| 24752 | if postIndex > l { |
| 24753 | return io.ErrUnexpectedEOF |
| 24754 | } |
| 24755 | m.RangeEnd = append(m.RangeEnd[:0], dAtA[iNdEx:postIndex]...) |
| 24756 | if m.RangeEnd == nil { |
| 24757 | m.RangeEnd = []byte{} |
| 24758 | } |
| 24759 | iNdEx = postIndex |
| 24760 | default: |
| 24761 | iNdEx = preIndex |
| 24762 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 24763 | if err != nil { |
| 24764 | return err |
| 24765 | } |
| 24766 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 24767 | return ErrInvalidLengthRpc |
| 24768 | } |
| 24769 | if (iNdEx + skippy) > l { |
| 24770 | return io.ErrUnexpectedEOF |
| 24771 | } |
| 24772 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 24773 | iNdEx += skippy |
| 24774 | } |
| 24775 | } |
| 24776 | |
| 24777 | if iNdEx > l { |
| 24778 | return io.ErrUnexpectedEOF |
| 24779 | } |
| 24780 | return nil |
| 24781 | } |
| 24782 | func (m *AuthEnableResponse) Unmarshal(dAtA []byte) error { |
| 24783 | l := len(dAtA) |
| 24784 | iNdEx := 0 |
| 24785 | for iNdEx < l { |
| 24786 | preIndex := iNdEx |
| 24787 | var wire uint64 |
| 24788 | for shift := uint(0); ; shift += 7 { |
| 24789 | if shift >= 64 { |
| 24790 | return ErrIntOverflowRpc |
| 24791 | } |
| 24792 | if iNdEx >= l { |
| 24793 | return io.ErrUnexpectedEOF |
| 24794 | } |
| 24795 | b := dAtA[iNdEx] |
| 24796 | iNdEx++ |
| 24797 | wire |= uint64(b&0x7F) << shift |
| 24798 | if b < 0x80 { |
| 24799 | break |
| 24800 | } |
| 24801 | } |
| 24802 | fieldNum := int32(wire >> 3) |
| 24803 | wireType := int(wire & 0x7) |
| 24804 | if wireType == 4 { |
| 24805 | return fmt.Errorf("proto: AuthEnableResponse: wiretype end group for non-group") |
| 24806 | } |
| 24807 | if fieldNum <= 0 { |
| 24808 | return fmt.Errorf("proto: AuthEnableResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 24809 | } |
| 24810 | switch fieldNum { |
| 24811 | case 1: |
| 24812 | if wireType != 2 { |
| 24813 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 24814 | } |
| 24815 | var msglen int |
| 24816 | for shift := uint(0); ; shift += 7 { |
| 24817 | if shift >= 64 { |
| 24818 | return ErrIntOverflowRpc |
| 24819 | } |
| 24820 | if iNdEx >= l { |
| 24821 | return io.ErrUnexpectedEOF |
| 24822 | } |
| 24823 | b := dAtA[iNdEx] |
| 24824 | iNdEx++ |
| 24825 | msglen |= int(b&0x7F) << shift |
| 24826 | if b < 0x80 { |
| 24827 | break |
| 24828 | } |
| 24829 | } |
| 24830 | if msglen < 0 { |
| 24831 | return ErrInvalidLengthRpc |
| 24832 | } |
| 24833 | postIndex := iNdEx + msglen |
| 24834 | if postIndex < 0 { |
| 24835 | return ErrInvalidLengthRpc |
| 24836 | } |
| 24837 | if postIndex > l { |
| 24838 | return io.ErrUnexpectedEOF |
| 24839 | } |
| 24840 | if m.Header == nil { |
| 24841 | m.Header = &ResponseHeader{} |
| 24842 | } |
| 24843 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 24844 | return err |
| 24845 | } |
| 24846 | iNdEx = postIndex |
| 24847 | default: |
| 24848 | iNdEx = preIndex |
| 24849 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 24850 | if err != nil { |
| 24851 | return err |
| 24852 | } |
| 24853 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 24854 | return ErrInvalidLengthRpc |
| 24855 | } |
| 24856 | if (iNdEx + skippy) > l { |
| 24857 | return io.ErrUnexpectedEOF |
| 24858 | } |
| 24859 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 24860 | iNdEx += skippy |
| 24861 | } |
| 24862 | } |
| 24863 | |
| 24864 | if iNdEx > l { |
| 24865 | return io.ErrUnexpectedEOF |
| 24866 | } |
| 24867 | return nil |
| 24868 | } |
| 24869 | func (m *AuthDisableResponse) Unmarshal(dAtA []byte) error { |
| 24870 | l := len(dAtA) |
| 24871 | iNdEx := 0 |
| 24872 | for iNdEx < l { |
| 24873 | preIndex := iNdEx |
| 24874 | var wire uint64 |
| 24875 | for shift := uint(0); ; shift += 7 { |
| 24876 | if shift >= 64 { |
| 24877 | return ErrIntOverflowRpc |
| 24878 | } |
| 24879 | if iNdEx >= l { |
| 24880 | return io.ErrUnexpectedEOF |
| 24881 | } |
| 24882 | b := dAtA[iNdEx] |
| 24883 | iNdEx++ |
| 24884 | wire |= uint64(b&0x7F) << shift |
| 24885 | if b < 0x80 { |
| 24886 | break |
| 24887 | } |
| 24888 | } |
| 24889 | fieldNum := int32(wire >> 3) |
| 24890 | wireType := int(wire & 0x7) |
| 24891 | if wireType == 4 { |
| 24892 | return fmt.Errorf("proto: AuthDisableResponse: wiretype end group for non-group") |
| 24893 | } |
| 24894 | if fieldNum <= 0 { |
| 24895 | return fmt.Errorf("proto: AuthDisableResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 24896 | } |
| 24897 | switch fieldNum { |
| 24898 | case 1: |
| 24899 | if wireType != 2 { |
| 24900 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 24901 | } |
| 24902 | var msglen int |
| 24903 | for shift := uint(0); ; shift += 7 { |
| 24904 | if shift >= 64 { |
| 24905 | return ErrIntOverflowRpc |
| 24906 | } |
| 24907 | if iNdEx >= l { |
| 24908 | return io.ErrUnexpectedEOF |
| 24909 | } |
| 24910 | b := dAtA[iNdEx] |
| 24911 | iNdEx++ |
| 24912 | msglen |= int(b&0x7F) << shift |
| 24913 | if b < 0x80 { |
| 24914 | break |
| 24915 | } |
| 24916 | } |
| 24917 | if msglen < 0 { |
| 24918 | return ErrInvalidLengthRpc |
| 24919 | } |
| 24920 | postIndex := iNdEx + msglen |
| 24921 | if postIndex < 0 { |
| 24922 | return ErrInvalidLengthRpc |
| 24923 | } |
| 24924 | if postIndex > l { |
| 24925 | return io.ErrUnexpectedEOF |
| 24926 | } |
| 24927 | if m.Header == nil { |
| 24928 | m.Header = &ResponseHeader{} |
| 24929 | } |
| 24930 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 24931 | return err |
| 24932 | } |
| 24933 | iNdEx = postIndex |
| 24934 | default: |
| 24935 | iNdEx = preIndex |
| 24936 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 24937 | if err != nil { |
| 24938 | return err |
| 24939 | } |
| 24940 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 24941 | return ErrInvalidLengthRpc |
| 24942 | } |
| 24943 | if (iNdEx + skippy) > l { |
| 24944 | return io.ErrUnexpectedEOF |
| 24945 | } |
| 24946 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 24947 | iNdEx += skippy |
| 24948 | } |
| 24949 | } |
| 24950 | |
| 24951 | if iNdEx > l { |
| 24952 | return io.ErrUnexpectedEOF |
| 24953 | } |
| 24954 | return nil |
| 24955 | } |
| 24956 | func (m *AuthStatusResponse) Unmarshal(dAtA []byte) error { |
| 24957 | l := len(dAtA) |
| 24958 | iNdEx := 0 |
| 24959 | for iNdEx < l { |
| 24960 | preIndex := iNdEx |
| 24961 | var wire uint64 |
| 24962 | for shift := uint(0); ; shift += 7 { |
| 24963 | if shift >= 64 { |
| 24964 | return ErrIntOverflowRpc |
| 24965 | } |
| 24966 | if iNdEx >= l { |
| 24967 | return io.ErrUnexpectedEOF |
| 24968 | } |
| 24969 | b := dAtA[iNdEx] |
| 24970 | iNdEx++ |
| 24971 | wire |= uint64(b&0x7F) << shift |
| 24972 | if b < 0x80 { |
| 24973 | break |
| 24974 | } |
| 24975 | } |
| 24976 | fieldNum := int32(wire >> 3) |
| 24977 | wireType := int(wire & 0x7) |
| 24978 | if wireType == 4 { |
| 24979 | return fmt.Errorf("proto: AuthStatusResponse: wiretype end group for non-group") |
| 24980 | } |
| 24981 | if fieldNum <= 0 { |
| 24982 | return fmt.Errorf("proto: AuthStatusResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 24983 | } |
| 24984 | switch fieldNum { |
| 24985 | case 1: |
| 24986 | if wireType != 2 { |
| 24987 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 24988 | } |
| 24989 | var msglen int |
| 24990 | for shift := uint(0); ; shift += 7 { |
| 24991 | if shift >= 64 { |
| 24992 | return ErrIntOverflowRpc |
| 24993 | } |
| 24994 | if iNdEx >= l { |
| 24995 | return io.ErrUnexpectedEOF |
| 24996 | } |
| 24997 | b := dAtA[iNdEx] |
| 24998 | iNdEx++ |
| 24999 | msglen |= int(b&0x7F) << shift |
| 25000 | if b < 0x80 { |
| 25001 | break |
| 25002 | } |
| 25003 | } |
| 25004 | if msglen < 0 { |
| 25005 | return ErrInvalidLengthRpc |
| 25006 | } |
| 25007 | postIndex := iNdEx + msglen |
| 25008 | if postIndex < 0 { |
| 25009 | return ErrInvalidLengthRpc |
| 25010 | } |
| 25011 | if postIndex > l { |
| 25012 | return io.ErrUnexpectedEOF |
| 25013 | } |
| 25014 | if m.Header == nil { |
| 25015 | m.Header = &ResponseHeader{} |
| 25016 | } |
| 25017 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 25018 | return err |
| 25019 | } |
| 25020 | iNdEx = postIndex |
| 25021 | case 2: |
| 25022 | if wireType != 0 { |
| 25023 | return fmt.Errorf("proto: wrong wireType = %d for field Enabled", wireType) |
| 25024 | } |
| 25025 | var v int |
| 25026 | for shift := uint(0); ; shift += 7 { |
| 25027 | if shift >= 64 { |
| 25028 | return ErrIntOverflowRpc |
| 25029 | } |
| 25030 | if iNdEx >= l { |
| 25031 | return io.ErrUnexpectedEOF |
| 25032 | } |
| 25033 | b := dAtA[iNdEx] |
| 25034 | iNdEx++ |
| 25035 | v |= int(b&0x7F) << shift |
| 25036 | if b < 0x80 { |
| 25037 | break |
| 25038 | } |
| 25039 | } |
| 25040 | m.Enabled = bool(v != 0) |
| 25041 | case 3: |
| 25042 | if wireType != 0 { |
| 25043 | return fmt.Errorf("proto: wrong wireType = %d for field AuthRevision", wireType) |
| 25044 | } |
| 25045 | m.AuthRevision = 0 |
| 25046 | for shift := uint(0); ; shift += 7 { |
| 25047 | if shift >= 64 { |
| 25048 | return ErrIntOverflowRpc |
| 25049 | } |
| 25050 | if iNdEx >= l { |
| 25051 | return io.ErrUnexpectedEOF |
| 25052 | } |
| 25053 | b := dAtA[iNdEx] |
| 25054 | iNdEx++ |
| 25055 | m.AuthRevision |= uint64(b&0x7F) << shift |
| 25056 | if b < 0x80 { |
| 25057 | break |
| 25058 | } |
| 25059 | } |
| 25060 | default: |
| 25061 | iNdEx = preIndex |
| 25062 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 25063 | if err != nil { |
| 25064 | return err |
| 25065 | } |
| 25066 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 25067 | return ErrInvalidLengthRpc |
| 25068 | } |
| 25069 | if (iNdEx + skippy) > l { |
| 25070 | return io.ErrUnexpectedEOF |
| 25071 | } |
| 25072 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 25073 | iNdEx += skippy |
| 25074 | } |
| 25075 | } |
| 25076 | |
| 25077 | if iNdEx > l { |
| 25078 | return io.ErrUnexpectedEOF |
| 25079 | } |
| 25080 | return nil |
| 25081 | } |
| 25082 | func (m *AuthenticateResponse) Unmarshal(dAtA []byte) error { |
| 25083 | l := len(dAtA) |
| 25084 | iNdEx := 0 |
| 25085 | for iNdEx < l { |
| 25086 | preIndex := iNdEx |
| 25087 | var wire uint64 |
| 25088 | for shift := uint(0); ; shift += 7 { |
| 25089 | if shift >= 64 { |
| 25090 | return ErrIntOverflowRpc |
| 25091 | } |
| 25092 | if iNdEx >= l { |
| 25093 | return io.ErrUnexpectedEOF |
| 25094 | } |
| 25095 | b := dAtA[iNdEx] |
| 25096 | iNdEx++ |
| 25097 | wire |= uint64(b&0x7F) << shift |
| 25098 | if b < 0x80 { |
| 25099 | break |
| 25100 | } |
| 25101 | } |
| 25102 | fieldNum := int32(wire >> 3) |
| 25103 | wireType := int(wire & 0x7) |
| 25104 | if wireType == 4 { |
| 25105 | return fmt.Errorf("proto: AuthenticateResponse: wiretype end group for non-group") |
| 25106 | } |
| 25107 | if fieldNum <= 0 { |
| 25108 | return fmt.Errorf("proto: AuthenticateResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 25109 | } |
| 25110 | switch fieldNum { |
| 25111 | case 1: |
| 25112 | if wireType != 2 { |
| 25113 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 25114 | } |
| 25115 | var msglen int |
| 25116 | for shift := uint(0); ; shift += 7 { |
| 25117 | if shift >= 64 { |
| 25118 | return ErrIntOverflowRpc |
| 25119 | } |
| 25120 | if iNdEx >= l { |
| 25121 | return io.ErrUnexpectedEOF |
| 25122 | } |
| 25123 | b := dAtA[iNdEx] |
| 25124 | iNdEx++ |
| 25125 | msglen |= int(b&0x7F) << shift |
| 25126 | if b < 0x80 { |
| 25127 | break |
| 25128 | } |
| 25129 | } |
| 25130 | if msglen < 0 { |
| 25131 | return ErrInvalidLengthRpc |
| 25132 | } |
| 25133 | postIndex := iNdEx + msglen |
| 25134 | if postIndex < 0 { |
| 25135 | return ErrInvalidLengthRpc |
| 25136 | } |
| 25137 | if postIndex > l { |
| 25138 | return io.ErrUnexpectedEOF |
| 25139 | } |
| 25140 | if m.Header == nil { |
| 25141 | m.Header = &ResponseHeader{} |
| 25142 | } |
| 25143 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 25144 | return err |
| 25145 | } |
| 25146 | iNdEx = postIndex |
| 25147 | case 2: |
| 25148 | if wireType != 2 { |
| 25149 | return fmt.Errorf("proto: wrong wireType = %d for field Token", wireType) |
| 25150 | } |
| 25151 | var stringLen uint64 |
| 25152 | for shift := uint(0); ; shift += 7 { |
| 25153 | if shift >= 64 { |
| 25154 | return ErrIntOverflowRpc |
| 25155 | } |
| 25156 | if iNdEx >= l { |
| 25157 | return io.ErrUnexpectedEOF |
| 25158 | } |
| 25159 | b := dAtA[iNdEx] |
| 25160 | iNdEx++ |
| 25161 | stringLen |= uint64(b&0x7F) << shift |
| 25162 | if b < 0x80 { |
| 25163 | break |
| 25164 | } |
| 25165 | } |
| 25166 | intStringLen := int(stringLen) |
| 25167 | if intStringLen < 0 { |
| 25168 | return ErrInvalidLengthRpc |
| 25169 | } |
| 25170 | postIndex := iNdEx + intStringLen |
| 25171 | if postIndex < 0 { |
| 25172 | return ErrInvalidLengthRpc |
| 25173 | } |
| 25174 | if postIndex > l { |
| 25175 | return io.ErrUnexpectedEOF |
| 25176 | } |
| 25177 | m.Token = string(dAtA[iNdEx:postIndex]) |
| 25178 | iNdEx = postIndex |
| 25179 | default: |
| 25180 | iNdEx = preIndex |
| 25181 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 25182 | if err != nil { |
| 25183 | return err |
| 25184 | } |
| 25185 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 25186 | return ErrInvalidLengthRpc |
| 25187 | } |
| 25188 | if (iNdEx + skippy) > l { |
| 25189 | return io.ErrUnexpectedEOF |
| 25190 | } |
| 25191 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 25192 | iNdEx += skippy |
| 25193 | } |
| 25194 | } |
| 25195 | |
| 25196 | if iNdEx > l { |
| 25197 | return io.ErrUnexpectedEOF |
| 25198 | } |
| 25199 | return nil |
| 25200 | } |
| 25201 | func (m *AuthUserAddResponse) Unmarshal(dAtA []byte) error { |
| 25202 | l := len(dAtA) |
| 25203 | iNdEx := 0 |
| 25204 | for iNdEx < l { |
| 25205 | preIndex := iNdEx |
| 25206 | var wire uint64 |
| 25207 | for shift := uint(0); ; shift += 7 { |
| 25208 | if shift >= 64 { |
| 25209 | return ErrIntOverflowRpc |
| 25210 | } |
| 25211 | if iNdEx >= l { |
| 25212 | return io.ErrUnexpectedEOF |
| 25213 | } |
| 25214 | b := dAtA[iNdEx] |
| 25215 | iNdEx++ |
| 25216 | wire |= uint64(b&0x7F) << shift |
| 25217 | if b < 0x80 { |
| 25218 | break |
| 25219 | } |
| 25220 | } |
| 25221 | fieldNum := int32(wire >> 3) |
| 25222 | wireType := int(wire & 0x7) |
| 25223 | if wireType == 4 { |
| 25224 | return fmt.Errorf("proto: AuthUserAddResponse: wiretype end group for non-group") |
| 25225 | } |
| 25226 | if fieldNum <= 0 { |
| 25227 | return fmt.Errorf("proto: AuthUserAddResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 25228 | } |
| 25229 | switch fieldNum { |
| 25230 | case 1: |
| 25231 | if wireType != 2 { |
| 25232 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 25233 | } |
| 25234 | var msglen int |
| 25235 | for shift := uint(0); ; shift += 7 { |
| 25236 | if shift >= 64 { |
| 25237 | return ErrIntOverflowRpc |
| 25238 | } |
| 25239 | if iNdEx >= l { |
| 25240 | return io.ErrUnexpectedEOF |
| 25241 | } |
| 25242 | b := dAtA[iNdEx] |
| 25243 | iNdEx++ |
| 25244 | msglen |= int(b&0x7F) << shift |
| 25245 | if b < 0x80 { |
| 25246 | break |
| 25247 | } |
| 25248 | } |
| 25249 | if msglen < 0 { |
| 25250 | return ErrInvalidLengthRpc |
| 25251 | } |
| 25252 | postIndex := iNdEx + msglen |
| 25253 | if postIndex < 0 { |
| 25254 | return ErrInvalidLengthRpc |
| 25255 | } |
| 25256 | if postIndex > l { |
| 25257 | return io.ErrUnexpectedEOF |
| 25258 | } |
| 25259 | if m.Header == nil { |
| 25260 | m.Header = &ResponseHeader{} |
| 25261 | } |
| 25262 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 25263 | return err |
| 25264 | } |
| 25265 | iNdEx = postIndex |
| 25266 | default: |
| 25267 | iNdEx = preIndex |
| 25268 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 25269 | if err != nil { |
| 25270 | return err |
| 25271 | } |
| 25272 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 25273 | return ErrInvalidLengthRpc |
| 25274 | } |
| 25275 | if (iNdEx + skippy) > l { |
| 25276 | return io.ErrUnexpectedEOF |
| 25277 | } |
| 25278 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 25279 | iNdEx += skippy |
| 25280 | } |
| 25281 | } |
| 25282 | |
| 25283 | if iNdEx > l { |
| 25284 | return io.ErrUnexpectedEOF |
| 25285 | } |
| 25286 | return nil |
| 25287 | } |
| 25288 | func (m *AuthUserGetResponse) Unmarshal(dAtA []byte) error { |
| 25289 | l := len(dAtA) |
| 25290 | iNdEx := 0 |
| 25291 | for iNdEx < l { |
| 25292 | preIndex := iNdEx |
| 25293 | var wire uint64 |
| 25294 | for shift := uint(0); ; shift += 7 { |
| 25295 | if shift >= 64 { |
| 25296 | return ErrIntOverflowRpc |
| 25297 | } |
| 25298 | if iNdEx >= l { |
| 25299 | return io.ErrUnexpectedEOF |
| 25300 | } |
| 25301 | b := dAtA[iNdEx] |
| 25302 | iNdEx++ |
| 25303 | wire |= uint64(b&0x7F) << shift |
| 25304 | if b < 0x80 { |
| 25305 | break |
| 25306 | } |
| 25307 | } |
| 25308 | fieldNum := int32(wire >> 3) |
| 25309 | wireType := int(wire & 0x7) |
| 25310 | if wireType == 4 { |
| 25311 | return fmt.Errorf("proto: AuthUserGetResponse: wiretype end group for non-group") |
| 25312 | } |
| 25313 | if fieldNum <= 0 { |
| 25314 | return fmt.Errorf("proto: AuthUserGetResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 25315 | } |
| 25316 | switch fieldNum { |
| 25317 | case 1: |
| 25318 | if wireType != 2 { |
| 25319 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 25320 | } |
| 25321 | var msglen int |
| 25322 | for shift := uint(0); ; shift += 7 { |
| 25323 | if shift >= 64 { |
| 25324 | return ErrIntOverflowRpc |
| 25325 | } |
| 25326 | if iNdEx >= l { |
| 25327 | return io.ErrUnexpectedEOF |
| 25328 | } |
| 25329 | b := dAtA[iNdEx] |
| 25330 | iNdEx++ |
| 25331 | msglen |= int(b&0x7F) << shift |
| 25332 | if b < 0x80 { |
| 25333 | break |
| 25334 | } |
| 25335 | } |
| 25336 | if msglen < 0 { |
| 25337 | return ErrInvalidLengthRpc |
| 25338 | } |
| 25339 | postIndex := iNdEx + msglen |
| 25340 | if postIndex < 0 { |
| 25341 | return ErrInvalidLengthRpc |
| 25342 | } |
| 25343 | if postIndex > l { |
| 25344 | return io.ErrUnexpectedEOF |
| 25345 | } |
| 25346 | if m.Header == nil { |
| 25347 | m.Header = &ResponseHeader{} |
| 25348 | } |
| 25349 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 25350 | return err |
| 25351 | } |
| 25352 | iNdEx = postIndex |
| 25353 | case 2: |
| 25354 | if wireType != 2 { |
| 25355 | return fmt.Errorf("proto: wrong wireType = %d for field Roles", wireType) |
| 25356 | } |
| 25357 | var stringLen uint64 |
| 25358 | for shift := uint(0); ; shift += 7 { |
| 25359 | if shift >= 64 { |
| 25360 | return ErrIntOverflowRpc |
| 25361 | } |
| 25362 | if iNdEx >= l { |
| 25363 | return io.ErrUnexpectedEOF |
| 25364 | } |
| 25365 | b := dAtA[iNdEx] |
| 25366 | iNdEx++ |
| 25367 | stringLen |= uint64(b&0x7F) << shift |
| 25368 | if b < 0x80 { |
| 25369 | break |
| 25370 | } |
| 25371 | } |
| 25372 | intStringLen := int(stringLen) |
| 25373 | if intStringLen < 0 { |
| 25374 | return ErrInvalidLengthRpc |
| 25375 | } |
| 25376 | postIndex := iNdEx + intStringLen |
| 25377 | if postIndex < 0 { |
| 25378 | return ErrInvalidLengthRpc |
| 25379 | } |
| 25380 | if postIndex > l { |
| 25381 | return io.ErrUnexpectedEOF |
| 25382 | } |
| 25383 | m.Roles = append(m.Roles, string(dAtA[iNdEx:postIndex])) |
| 25384 | iNdEx = postIndex |
| 25385 | default: |
| 25386 | iNdEx = preIndex |
| 25387 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 25388 | if err != nil { |
| 25389 | return err |
| 25390 | } |
| 25391 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 25392 | return ErrInvalidLengthRpc |
| 25393 | } |
| 25394 | if (iNdEx + skippy) > l { |
| 25395 | return io.ErrUnexpectedEOF |
| 25396 | } |
| 25397 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 25398 | iNdEx += skippy |
| 25399 | } |
| 25400 | } |
| 25401 | |
| 25402 | if iNdEx > l { |
| 25403 | return io.ErrUnexpectedEOF |
| 25404 | } |
| 25405 | return nil |
| 25406 | } |
| 25407 | func (m *AuthUserDeleteResponse) Unmarshal(dAtA []byte) error { |
| 25408 | l := len(dAtA) |
| 25409 | iNdEx := 0 |
| 25410 | for iNdEx < l { |
| 25411 | preIndex := iNdEx |
| 25412 | var wire uint64 |
| 25413 | for shift := uint(0); ; shift += 7 { |
| 25414 | if shift >= 64 { |
| 25415 | return ErrIntOverflowRpc |
| 25416 | } |
| 25417 | if iNdEx >= l { |
| 25418 | return io.ErrUnexpectedEOF |
| 25419 | } |
| 25420 | b := dAtA[iNdEx] |
| 25421 | iNdEx++ |
| 25422 | wire |= uint64(b&0x7F) << shift |
| 25423 | if b < 0x80 { |
| 25424 | break |
| 25425 | } |
| 25426 | } |
| 25427 | fieldNum := int32(wire >> 3) |
| 25428 | wireType := int(wire & 0x7) |
| 25429 | if wireType == 4 { |
| 25430 | return fmt.Errorf("proto: AuthUserDeleteResponse: wiretype end group for non-group") |
| 25431 | } |
| 25432 | if fieldNum <= 0 { |
| 25433 | return fmt.Errorf("proto: AuthUserDeleteResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 25434 | } |
| 25435 | switch fieldNum { |
| 25436 | case 1: |
| 25437 | if wireType != 2 { |
| 25438 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 25439 | } |
| 25440 | var msglen int |
| 25441 | for shift := uint(0); ; shift += 7 { |
| 25442 | if shift >= 64 { |
| 25443 | return ErrIntOverflowRpc |
| 25444 | } |
| 25445 | if iNdEx >= l { |
| 25446 | return io.ErrUnexpectedEOF |
| 25447 | } |
| 25448 | b := dAtA[iNdEx] |
| 25449 | iNdEx++ |
| 25450 | msglen |= int(b&0x7F) << shift |
| 25451 | if b < 0x80 { |
| 25452 | break |
| 25453 | } |
| 25454 | } |
| 25455 | if msglen < 0 { |
| 25456 | return ErrInvalidLengthRpc |
| 25457 | } |
| 25458 | postIndex := iNdEx + msglen |
| 25459 | if postIndex < 0 { |
| 25460 | return ErrInvalidLengthRpc |
| 25461 | } |
| 25462 | if postIndex > l { |
| 25463 | return io.ErrUnexpectedEOF |
| 25464 | } |
| 25465 | if m.Header == nil { |
| 25466 | m.Header = &ResponseHeader{} |
| 25467 | } |
| 25468 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 25469 | return err |
| 25470 | } |
| 25471 | iNdEx = postIndex |
| 25472 | default: |
| 25473 | iNdEx = preIndex |
| 25474 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 25475 | if err != nil { |
| 25476 | return err |
| 25477 | } |
| 25478 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 25479 | return ErrInvalidLengthRpc |
| 25480 | } |
| 25481 | if (iNdEx + skippy) > l { |
| 25482 | return io.ErrUnexpectedEOF |
| 25483 | } |
| 25484 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 25485 | iNdEx += skippy |
| 25486 | } |
| 25487 | } |
| 25488 | |
| 25489 | if iNdEx > l { |
| 25490 | return io.ErrUnexpectedEOF |
| 25491 | } |
| 25492 | return nil |
| 25493 | } |
| 25494 | func (m *AuthUserChangePasswordResponse) Unmarshal(dAtA []byte) error { |
| 25495 | l := len(dAtA) |
| 25496 | iNdEx := 0 |
| 25497 | for iNdEx < l { |
| 25498 | preIndex := iNdEx |
| 25499 | var wire uint64 |
| 25500 | for shift := uint(0); ; shift += 7 { |
| 25501 | if shift >= 64 { |
| 25502 | return ErrIntOverflowRpc |
| 25503 | } |
| 25504 | if iNdEx >= l { |
| 25505 | return io.ErrUnexpectedEOF |
| 25506 | } |
| 25507 | b := dAtA[iNdEx] |
| 25508 | iNdEx++ |
| 25509 | wire |= uint64(b&0x7F) << shift |
| 25510 | if b < 0x80 { |
| 25511 | break |
| 25512 | } |
| 25513 | } |
| 25514 | fieldNum := int32(wire >> 3) |
| 25515 | wireType := int(wire & 0x7) |
| 25516 | if wireType == 4 { |
| 25517 | return fmt.Errorf("proto: AuthUserChangePasswordResponse: wiretype end group for non-group") |
| 25518 | } |
| 25519 | if fieldNum <= 0 { |
| 25520 | return fmt.Errorf("proto: AuthUserChangePasswordResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 25521 | } |
| 25522 | switch fieldNum { |
| 25523 | case 1: |
| 25524 | if wireType != 2 { |
| 25525 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 25526 | } |
| 25527 | var msglen int |
| 25528 | for shift := uint(0); ; shift += 7 { |
| 25529 | if shift >= 64 { |
| 25530 | return ErrIntOverflowRpc |
| 25531 | } |
| 25532 | if iNdEx >= l { |
| 25533 | return io.ErrUnexpectedEOF |
| 25534 | } |
| 25535 | b := dAtA[iNdEx] |
| 25536 | iNdEx++ |
| 25537 | msglen |= int(b&0x7F) << shift |
| 25538 | if b < 0x80 { |
| 25539 | break |
| 25540 | } |
| 25541 | } |
| 25542 | if msglen < 0 { |
| 25543 | return ErrInvalidLengthRpc |
| 25544 | } |
| 25545 | postIndex := iNdEx + msglen |
| 25546 | if postIndex < 0 { |
| 25547 | return ErrInvalidLengthRpc |
| 25548 | } |
| 25549 | if postIndex > l { |
| 25550 | return io.ErrUnexpectedEOF |
| 25551 | } |
| 25552 | if m.Header == nil { |
| 25553 | m.Header = &ResponseHeader{} |
| 25554 | } |
| 25555 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 25556 | return err |
| 25557 | } |
| 25558 | iNdEx = postIndex |
| 25559 | default: |
| 25560 | iNdEx = preIndex |
| 25561 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 25562 | if err != nil { |
| 25563 | return err |
| 25564 | } |
| 25565 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 25566 | return ErrInvalidLengthRpc |
| 25567 | } |
| 25568 | if (iNdEx + skippy) > l { |
| 25569 | return io.ErrUnexpectedEOF |
| 25570 | } |
| 25571 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 25572 | iNdEx += skippy |
| 25573 | } |
| 25574 | } |
| 25575 | |
| 25576 | if iNdEx > l { |
| 25577 | return io.ErrUnexpectedEOF |
| 25578 | } |
| 25579 | return nil |
| 25580 | } |
| 25581 | func (m *AuthUserGrantRoleResponse) Unmarshal(dAtA []byte) error { |
| 25582 | l := len(dAtA) |
| 25583 | iNdEx := 0 |
| 25584 | for iNdEx < l { |
| 25585 | preIndex := iNdEx |
| 25586 | var wire uint64 |
| 25587 | for shift := uint(0); ; shift += 7 { |
| 25588 | if shift >= 64 { |
| 25589 | return ErrIntOverflowRpc |
| 25590 | } |
| 25591 | if iNdEx >= l { |
| 25592 | return io.ErrUnexpectedEOF |
| 25593 | } |
| 25594 | b := dAtA[iNdEx] |
| 25595 | iNdEx++ |
| 25596 | wire |= uint64(b&0x7F) << shift |
| 25597 | if b < 0x80 { |
| 25598 | break |
| 25599 | } |
| 25600 | } |
| 25601 | fieldNum := int32(wire >> 3) |
| 25602 | wireType := int(wire & 0x7) |
| 25603 | if wireType == 4 { |
| 25604 | return fmt.Errorf("proto: AuthUserGrantRoleResponse: wiretype end group for non-group") |
| 25605 | } |
| 25606 | if fieldNum <= 0 { |
| 25607 | return fmt.Errorf("proto: AuthUserGrantRoleResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 25608 | } |
| 25609 | switch fieldNum { |
| 25610 | case 1: |
| 25611 | if wireType != 2 { |
| 25612 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 25613 | } |
| 25614 | var msglen int |
| 25615 | for shift := uint(0); ; shift += 7 { |
| 25616 | if shift >= 64 { |
| 25617 | return ErrIntOverflowRpc |
| 25618 | } |
| 25619 | if iNdEx >= l { |
| 25620 | return io.ErrUnexpectedEOF |
| 25621 | } |
| 25622 | b := dAtA[iNdEx] |
| 25623 | iNdEx++ |
| 25624 | msglen |= int(b&0x7F) << shift |
| 25625 | if b < 0x80 { |
| 25626 | break |
| 25627 | } |
| 25628 | } |
| 25629 | if msglen < 0 { |
| 25630 | return ErrInvalidLengthRpc |
| 25631 | } |
| 25632 | postIndex := iNdEx + msglen |
| 25633 | if postIndex < 0 { |
| 25634 | return ErrInvalidLengthRpc |
| 25635 | } |
| 25636 | if postIndex > l { |
| 25637 | return io.ErrUnexpectedEOF |
| 25638 | } |
| 25639 | if m.Header == nil { |
| 25640 | m.Header = &ResponseHeader{} |
| 25641 | } |
| 25642 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 25643 | return err |
| 25644 | } |
| 25645 | iNdEx = postIndex |
| 25646 | default: |
| 25647 | iNdEx = preIndex |
| 25648 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 25649 | if err != nil { |
| 25650 | return err |
| 25651 | } |
| 25652 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 25653 | return ErrInvalidLengthRpc |
| 25654 | } |
| 25655 | if (iNdEx + skippy) > l { |
| 25656 | return io.ErrUnexpectedEOF |
| 25657 | } |
| 25658 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 25659 | iNdEx += skippy |
| 25660 | } |
| 25661 | } |
| 25662 | |
| 25663 | if iNdEx > l { |
| 25664 | return io.ErrUnexpectedEOF |
| 25665 | } |
| 25666 | return nil |
| 25667 | } |
| 25668 | func (m *AuthUserRevokeRoleResponse) Unmarshal(dAtA []byte) error { |
| 25669 | l := len(dAtA) |
| 25670 | iNdEx := 0 |
| 25671 | for iNdEx < l { |
| 25672 | preIndex := iNdEx |
| 25673 | var wire uint64 |
| 25674 | for shift := uint(0); ; shift += 7 { |
| 25675 | if shift >= 64 { |
| 25676 | return ErrIntOverflowRpc |
| 25677 | } |
| 25678 | if iNdEx >= l { |
| 25679 | return io.ErrUnexpectedEOF |
| 25680 | } |
| 25681 | b := dAtA[iNdEx] |
| 25682 | iNdEx++ |
| 25683 | wire |= uint64(b&0x7F) << shift |
| 25684 | if b < 0x80 { |
| 25685 | break |
| 25686 | } |
| 25687 | } |
| 25688 | fieldNum := int32(wire >> 3) |
| 25689 | wireType := int(wire & 0x7) |
| 25690 | if wireType == 4 { |
| 25691 | return fmt.Errorf("proto: AuthUserRevokeRoleResponse: wiretype end group for non-group") |
| 25692 | } |
| 25693 | if fieldNum <= 0 { |
| 25694 | return fmt.Errorf("proto: AuthUserRevokeRoleResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 25695 | } |
| 25696 | switch fieldNum { |
| 25697 | case 1: |
| 25698 | if wireType != 2 { |
| 25699 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 25700 | } |
| 25701 | var msglen int |
| 25702 | for shift := uint(0); ; shift += 7 { |
| 25703 | if shift >= 64 { |
| 25704 | return ErrIntOverflowRpc |
| 25705 | } |
| 25706 | if iNdEx >= l { |
| 25707 | return io.ErrUnexpectedEOF |
| 25708 | } |
| 25709 | b := dAtA[iNdEx] |
| 25710 | iNdEx++ |
| 25711 | msglen |= int(b&0x7F) << shift |
| 25712 | if b < 0x80 { |
| 25713 | break |
| 25714 | } |
| 25715 | } |
| 25716 | if msglen < 0 { |
| 25717 | return ErrInvalidLengthRpc |
| 25718 | } |
| 25719 | postIndex := iNdEx + msglen |
| 25720 | if postIndex < 0 { |
| 25721 | return ErrInvalidLengthRpc |
| 25722 | } |
| 25723 | if postIndex > l { |
| 25724 | return io.ErrUnexpectedEOF |
| 25725 | } |
| 25726 | if m.Header == nil { |
| 25727 | m.Header = &ResponseHeader{} |
| 25728 | } |
| 25729 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 25730 | return err |
| 25731 | } |
| 25732 | iNdEx = postIndex |
| 25733 | default: |
| 25734 | iNdEx = preIndex |
| 25735 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 25736 | if err != nil { |
| 25737 | return err |
| 25738 | } |
| 25739 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 25740 | return ErrInvalidLengthRpc |
| 25741 | } |
| 25742 | if (iNdEx + skippy) > l { |
| 25743 | return io.ErrUnexpectedEOF |
| 25744 | } |
| 25745 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 25746 | iNdEx += skippy |
| 25747 | } |
| 25748 | } |
| 25749 | |
| 25750 | if iNdEx > l { |
| 25751 | return io.ErrUnexpectedEOF |
| 25752 | } |
| 25753 | return nil |
| 25754 | } |
| 25755 | func (m *AuthRoleAddResponse) Unmarshal(dAtA []byte) error { |
| 25756 | l := len(dAtA) |
| 25757 | iNdEx := 0 |
| 25758 | for iNdEx < l { |
| 25759 | preIndex := iNdEx |
| 25760 | var wire uint64 |
| 25761 | for shift := uint(0); ; shift += 7 { |
| 25762 | if shift >= 64 { |
| 25763 | return ErrIntOverflowRpc |
| 25764 | } |
| 25765 | if iNdEx >= l { |
| 25766 | return io.ErrUnexpectedEOF |
| 25767 | } |
| 25768 | b := dAtA[iNdEx] |
| 25769 | iNdEx++ |
| 25770 | wire |= uint64(b&0x7F) << shift |
| 25771 | if b < 0x80 { |
| 25772 | break |
| 25773 | } |
| 25774 | } |
| 25775 | fieldNum := int32(wire >> 3) |
| 25776 | wireType := int(wire & 0x7) |
| 25777 | if wireType == 4 { |
| 25778 | return fmt.Errorf("proto: AuthRoleAddResponse: wiretype end group for non-group") |
| 25779 | } |
| 25780 | if fieldNum <= 0 { |
| 25781 | return fmt.Errorf("proto: AuthRoleAddResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 25782 | } |
| 25783 | switch fieldNum { |
| 25784 | case 1: |
| 25785 | if wireType != 2 { |
| 25786 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 25787 | } |
| 25788 | var msglen int |
| 25789 | for shift := uint(0); ; shift += 7 { |
| 25790 | if shift >= 64 { |
| 25791 | return ErrIntOverflowRpc |
| 25792 | } |
| 25793 | if iNdEx >= l { |
| 25794 | return io.ErrUnexpectedEOF |
| 25795 | } |
| 25796 | b := dAtA[iNdEx] |
| 25797 | iNdEx++ |
| 25798 | msglen |= int(b&0x7F) << shift |
| 25799 | if b < 0x80 { |
| 25800 | break |
| 25801 | } |
| 25802 | } |
| 25803 | if msglen < 0 { |
| 25804 | return ErrInvalidLengthRpc |
| 25805 | } |
| 25806 | postIndex := iNdEx + msglen |
| 25807 | if postIndex < 0 { |
| 25808 | return ErrInvalidLengthRpc |
| 25809 | } |
| 25810 | if postIndex > l { |
| 25811 | return io.ErrUnexpectedEOF |
| 25812 | } |
| 25813 | if m.Header == nil { |
| 25814 | m.Header = &ResponseHeader{} |
| 25815 | } |
| 25816 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 25817 | return err |
| 25818 | } |
| 25819 | iNdEx = postIndex |
| 25820 | default: |
| 25821 | iNdEx = preIndex |
| 25822 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 25823 | if err != nil { |
| 25824 | return err |
| 25825 | } |
| 25826 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 25827 | return ErrInvalidLengthRpc |
| 25828 | } |
| 25829 | if (iNdEx + skippy) > l { |
| 25830 | return io.ErrUnexpectedEOF |
| 25831 | } |
| 25832 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 25833 | iNdEx += skippy |
| 25834 | } |
| 25835 | } |
| 25836 | |
| 25837 | if iNdEx > l { |
| 25838 | return io.ErrUnexpectedEOF |
| 25839 | } |
| 25840 | return nil |
| 25841 | } |
| 25842 | func (m *AuthRoleGetResponse) Unmarshal(dAtA []byte) error { |
| 25843 | l := len(dAtA) |
| 25844 | iNdEx := 0 |
| 25845 | for iNdEx < l { |
| 25846 | preIndex := iNdEx |
| 25847 | var wire uint64 |
| 25848 | for shift := uint(0); ; shift += 7 { |
| 25849 | if shift >= 64 { |
| 25850 | return ErrIntOverflowRpc |
| 25851 | } |
| 25852 | if iNdEx >= l { |
| 25853 | return io.ErrUnexpectedEOF |
| 25854 | } |
| 25855 | b := dAtA[iNdEx] |
| 25856 | iNdEx++ |
| 25857 | wire |= uint64(b&0x7F) << shift |
| 25858 | if b < 0x80 { |
| 25859 | break |
| 25860 | } |
| 25861 | } |
| 25862 | fieldNum := int32(wire >> 3) |
| 25863 | wireType := int(wire & 0x7) |
| 25864 | if wireType == 4 { |
| 25865 | return fmt.Errorf("proto: AuthRoleGetResponse: wiretype end group for non-group") |
| 25866 | } |
| 25867 | if fieldNum <= 0 { |
| 25868 | return fmt.Errorf("proto: AuthRoleGetResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 25869 | } |
| 25870 | switch fieldNum { |
| 25871 | case 1: |
| 25872 | if wireType != 2 { |
| 25873 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 25874 | } |
| 25875 | var msglen int |
| 25876 | for shift := uint(0); ; shift += 7 { |
| 25877 | if shift >= 64 { |
| 25878 | return ErrIntOverflowRpc |
| 25879 | } |
| 25880 | if iNdEx >= l { |
| 25881 | return io.ErrUnexpectedEOF |
| 25882 | } |
| 25883 | b := dAtA[iNdEx] |
| 25884 | iNdEx++ |
| 25885 | msglen |= int(b&0x7F) << shift |
| 25886 | if b < 0x80 { |
| 25887 | break |
| 25888 | } |
| 25889 | } |
| 25890 | if msglen < 0 { |
| 25891 | return ErrInvalidLengthRpc |
| 25892 | } |
| 25893 | postIndex := iNdEx + msglen |
| 25894 | if postIndex < 0 { |
| 25895 | return ErrInvalidLengthRpc |
| 25896 | } |
| 25897 | if postIndex > l { |
| 25898 | return io.ErrUnexpectedEOF |
| 25899 | } |
| 25900 | if m.Header == nil { |
| 25901 | m.Header = &ResponseHeader{} |
| 25902 | } |
| 25903 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 25904 | return err |
| 25905 | } |
| 25906 | iNdEx = postIndex |
| 25907 | case 2: |
| 25908 | if wireType != 2 { |
| 25909 | return fmt.Errorf("proto: wrong wireType = %d for field Perm", wireType) |
| 25910 | } |
| 25911 | var msglen int |
| 25912 | for shift := uint(0); ; shift += 7 { |
| 25913 | if shift >= 64 { |
| 25914 | return ErrIntOverflowRpc |
| 25915 | } |
| 25916 | if iNdEx >= l { |
| 25917 | return io.ErrUnexpectedEOF |
| 25918 | } |
| 25919 | b := dAtA[iNdEx] |
| 25920 | iNdEx++ |
| 25921 | msglen |= int(b&0x7F) << shift |
| 25922 | if b < 0x80 { |
| 25923 | break |
| 25924 | } |
| 25925 | } |
| 25926 | if msglen < 0 { |
| 25927 | return ErrInvalidLengthRpc |
| 25928 | } |
| 25929 | postIndex := iNdEx + msglen |
| 25930 | if postIndex < 0 { |
| 25931 | return ErrInvalidLengthRpc |
| 25932 | } |
| 25933 | if postIndex > l { |
| 25934 | return io.ErrUnexpectedEOF |
| 25935 | } |
| 25936 | m.Perm = append(m.Perm, &authpb.Permission{}) |
| 25937 | if err := m.Perm[len(m.Perm)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 25938 | return err |
| 25939 | } |
| 25940 | iNdEx = postIndex |
| 25941 | default: |
| 25942 | iNdEx = preIndex |
| 25943 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 25944 | if err != nil { |
| 25945 | return err |
| 25946 | } |
| 25947 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 25948 | return ErrInvalidLengthRpc |
| 25949 | } |
| 25950 | if (iNdEx + skippy) > l { |
| 25951 | return io.ErrUnexpectedEOF |
| 25952 | } |
| 25953 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 25954 | iNdEx += skippy |
| 25955 | } |
| 25956 | } |
| 25957 | |
| 25958 | if iNdEx > l { |
| 25959 | return io.ErrUnexpectedEOF |
| 25960 | } |
| 25961 | return nil |
| 25962 | } |
| 25963 | func (m *AuthRoleListResponse) Unmarshal(dAtA []byte) error { |
| 25964 | l := len(dAtA) |
| 25965 | iNdEx := 0 |
| 25966 | for iNdEx < l { |
| 25967 | preIndex := iNdEx |
| 25968 | var wire uint64 |
| 25969 | for shift := uint(0); ; shift += 7 { |
| 25970 | if shift >= 64 { |
| 25971 | return ErrIntOverflowRpc |
| 25972 | } |
| 25973 | if iNdEx >= l { |
| 25974 | return io.ErrUnexpectedEOF |
| 25975 | } |
| 25976 | b := dAtA[iNdEx] |
| 25977 | iNdEx++ |
| 25978 | wire |= uint64(b&0x7F) << shift |
| 25979 | if b < 0x80 { |
| 25980 | break |
| 25981 | } |
| 25982 | } |
| 25983 | fieldNum := int32(wire >> 3) |
| 25984 | wireType := int(wire & 0x7) |
| 25985 | if wireType == 4 { |
| 25986 | return fmt.Errorf("proto: AuthRoleListResponse: wiretype end group for non-group") |
| 25987 | } |
| 25988 | if fieldNum <= 0 { |
| 25989 | return fmt.Errorf("proto: AuthRoleListResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 25990 | } |
| 25991 | switch fieldNum { |
| 25992 | case 1: |
| 25993 | if wireType != 2 { |
| 25994 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 25995 | } |
| 25996 | var msglen int |
| 25997 | for shift := uint(0); ; shift += 7 { |
| 25998 | if shift >= 64 { |
| 25999 | return ErrIntOverflowRpc |
| 26000 | } |
| 26001 | if iNdEx >= l { |
| 26002 | return io.ErrUnexpectedEOF |
| 26003 | } |
| 26004 | b := dAtA[iNdEx] |
| 26005 | iNdEx++ |
| 26006 | msglen |= int(b&0x7F) << shift |
| 26007 | if b < 0x80 { |
| 26008 | break |
| 26009 | } |
| 26010 | } |
| 26011 | if msglen < 0 { |
| 26012 | return ErrInvalidLengthRpc |
| 26013 | } |
| 26014 | postIndex := iNdEx + msglen |
| 26015 | if postIndex < 0 { |
| 26016 | return ErrInvalidLengthRpc |
| 26017 | } |
| 26018 | if postIndex > l { |
| 26019 | return io.ErrUnexpectedEOF |
| 26020 | } |
| 26021 | if m.Header == nil { |
| 26022 | m.Header = &ResponseHeader{} |
| 26023 | } |
| 26024 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 26025 | return err |
| 26026 | } |
| 26027 | iNdEx = postIndex |
| 26028 | case 2: |
| 26029 | if wireType != 2 { |
| 26030 | return fmt.Errorf("proto: wrong wireType = %d for field Roles", wireType) |
| 26031 | } |
| 26032 | var stringLen uint64 |
| 26033 | for shift := uint(0); ; shift += 7 { |
| 26034 | if shift >= 64 { |
| 26035 | return ErrIntOverflowRpc |
| 26036 | } |
| 26037 | if iNdEx >= l { |
| 26038 | return io.ErrUnexpectedEOF |
| 26039 | } |
| 26040 | b := dAtA[iNdEx] |
| 26041 | iNdEx++ |
| 26042 | stringLen |= uint64(b&0x7F) << shift |
| 26043 | if b < 0x80 { |
| 26044 | break |
| 26045 | } |
| 26046 | } |
| 26047 | intStringLen := int(stringLen) |
| 26048 | if intStringLen < 0 { |
| 26049 | return ErrInvalidLengthRpc |
| 26050 | } |
| 26051 | postIndex := iNdEx + intStringLen |
| 26052 | if postIndex < 0 { |
| 26053 | return ErrInvalidLengthRpc |
| 26054 | } |
| 26055 | if postIndex > l { |
| 26056 | return io.ErrUnexpectedEOF |
| 26057 | } |
| 26058 | m.Roles = append(m.Roles, string(dAtA[iNdEx:postIndex])) |
| 26059 | iNdEx = postIndex |
| 26060 | default: |
| 26061 | iNdEx = preIndex |
| 26062 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 26063 | if err != nil { |
| 26064 | return err |
| 26065 | } |
| 26066 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 26067 | return ErrInvalidLengthRpc |
| 26068 | } |
| 26069 | if (iNdEx + skippy) > l { |
| 26070 | return io.ErrUnexpectedEOF |
| 26071 | } |
| 26072 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 26073 | iNdEx += skippy |
| 26074 | } |
| 26075 | } |
| 26076 | |
| 26077 | if iNdEx > l { |
| 26078 | return io.ErrUnexpectedEOF |
| 26079 | } |
| 26080 | return nil |
| 26081 | } |
| 26082 | func (m *AuthUserListResponse) Unmarshal(dAtA []byte) error { |
| 26083 | l := len(dAtA) |
| 26084 | iNdEx := 0 |
| 26085 | for iNdEx < l { |
| 26086 | preIndex := iNdEx |
| 26087 | var wire uint64 |
| 26088 | for shift := uint(0); ; shift += 7 { |
| 26089 | if shift >= 64 { |
| 26090 | return ErrIntOverflowRpc |
| 26091 | } |
| 26092 | if iNdEx >= l { |
| 26093 | return io.ErrUnexpectedEOF |
| 26094 | } |
| 26095 | b := dAtA[iNdEx] |
| 26096 | iNdEx++ |
| 26097 | wire |= uint64(b&0x7F) << shift |
| 26098 | if b < 0x80 { |
| 26099 | break |
| 26100 | } |
| 26101 | } |
| 26102 | fieldNum := int32(wire >> 3) |
| 26103 | wireType := int(wire & 0x7) |
| 26104 | if wireType == 4 { |
| 26105 | return fmt.Errorf("proto: AuthUserListResponse: wiretype end group for non-group") |
| 26106 | } |
| 26107 | if fieldNum <= 0 { |
| 26108 | return fmt.Errorf("proto: AuthUserListResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 26109 | } |
| 26110 | switch fieldNum { |
| 26111 | case 1: |
| 26112 | if wireType != 2 { |
| 26113 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 26114 | } |
| 26115 | var msglen int |
| 26116 | for shift := uint(0); ; shift += 7 { |
| 26117 | if shift >= 64 { |
| 26118 | return ErrIntOverflowRpc |
| 26119 | } |
| 26120 | if iNdEx >= l { |
| 26121 | return io.ErrUnexpectedEOF |
| 26122 | } |
| 26123 | b := dAtA[iNdEx] |
| 26124 | iNdEx++ |
| 26125 | msglen |= int(b&0x7F) << shift |
| 26126 | if b < 0x80 { |
| 26127 | break |
| 26128 | } |
| 26129 | } |
| 26130 | if msglen < 0 { |
| 26131 | return ErrInvalidLengthRpc |
| 26132 | } |
| 26133 | postIndex := iNdEx + msglen |
| 26134 | if postIndex < 0 { |
| 26135 | return ErrInvalidLengthRpc |
| 26136 | } |
| 26137 | if postIndex > l { |
| 26138 | return io.ErrUnexpectedEOF |
| 26139 | } |
| 26140 | if m.Header == nil { |
| 26141 | m.Header = &ResponseHeader{} |
| 26142 | } |
| 26143 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 26144 | return err |
| 26145 | } |
| 26146 | iNdEx = postIndex |
| 26147 | case 2: |
| 26148 | if wireType != 2 { |
| 26149 | return fmt.Errorf("proto: wrong wireType = %d for field Users", wireType) |
| 26150 | } |
| 26151 | var stringLen uint64 |
| 26152 | for shift := uint(0); ; shift += 7 { |
| 26153 | if shift >= 64 { |
| 26154 | return ErrIntOverflowRpc |
| 26155 | } |
| 26156 | if iNdEx >= l { |
| 26157 | return io.ErrUnexpectedEOF |
| 26158 | } |
| 26159 | b := dAtA[iNdEx] |
| 26160 | iNdEx++ |
| 26161 | stringLen |= uint64(b&0x7F) << shift |
| 26162 | if b < 0x80 { |
| 26163 | break |
| 26164 | } |
| 26165 | } |
| 26166 | intStringLen := int(stringLen) |
| 26167 | if intStringLen < 0 { |
| 26168 | return ErrInvalidLengthRpc |
| 26169 | } |
| 26170 | postIndex := iNdEx + intStringLen |
| 26171 | if postIndex < 0 { |
| 26172 | return ErrInvalidLengthRpc |
| 26173 | } |
| 26174 | if postIndex > l { |
| 26175 | return io.ErrUnexpectedEOF |
| 26176 | } |
| 26177 | m.Users = append(m.Users, string(dAtA[iNdEx:postIndex])) |
| 26178 | iNdEx = postIndex |
| 26179 | default: |
| 26180 | iNdEx = preIndex |
| 26181 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 26182 | if err != nil { |
| 26183 | return err |
| 26184 | } |
| 26185 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 26186 | return ErrInvalidLengthRpc |
| 26187 | } |
| 26188 | if (iNdEx + skippy) > l { |
| 26189 | return io.ErrUnexpectedEOF |
| 26190 | } |
| 26191 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 26192 | iNdEx += skippy |
| 26193 | } |
| 26194 | } |
| 26195 | |
| 26196 | if iNdEx > l { |
| 26197 | return io.ErrUnexpectedEOF |
| 26198 | } |
| 26199 | return nil |
| 26200 | } |
| 26201 | func (m *AuthRoleDeleteResponse) Unmarshal(dAtA []byte) error { |
| 26202 | l := len(dAtA) |
| 26203 | iNdEx := 0 |
| 26204 | for iNdEx < l { |
| 26205 | preIndex := iNdEx |
| 26206 | var wire uint64 |
| 26207 | for shift := uint(0); ; shift += 7 { |
| 26208 | if shift >= 64 { |
| 26209 | return ErrIntOverflowRpc |
| 26210 | } |
| 26211 | if iNdEx >= l { |
| 26212 | return io.ErrUnexpectedEOF |
| 26213 | } |
| 26214 | b := dAtA[iNdEx] |
| 26215 | iNdEx++ |
| 26216 | wire |= uint64(b&0x7F) << shift |
| 26217 | if b < 0x80 { |
| 26218 | break |
| 26219 | } |
| 26220 | } |
| 26221 | fieldNum := int32(wire >> 3) |
| 26222 | wireType := int(wire & 0x7) |
| 26223 | if wireType == 4 { |
| 26224 | return fmt.Errorf("proto: AuthRoleDeleteResponse: wiretype end group for non-group") |
| 26225 | } |
| 26226 | if fieldNum <= 0 { |
| 26227 | return fmt.Errorf("proto: AuthRoleDeleteResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 26228 | } |
| 26229 | switch fieldNum { |
| 26230 | case 1: |
| 26231 | if wireType != 2 { |
| 26232 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 26233 | } |
| 26234 | var msglen int |
| 26235 | for shift := uint(0); ; shift += 7 { |
| 26236 | if shift >= 64 { |
| 26237 | return ErrIntOverflowRpc |
| 26238 | } |
| 26239 | if iNdEx >= l { |
| 26240 | return io.ErrUnexpectedEOF |
| 26241 | } |
| 26242 | b := dAtA[iNdEx] |
| 26243 | iNdEx++ |
| 26244 | msglen |= int(b&0x7F) << shift |
| 26245 | if b < 0x80 { |
| 26246 | break |
| 26247 | } |
| 26248 | } |
| 26249 | if msglen < 0 { |
| 26250 | return ErrInvalidLengthRpc |
| 26251 | } |
| 26252 | postIndex := iNdEx + msglen |
| 26253 | if postIndex < 0 { |
| 26254 | return ErrInvalidLengthRpc |
| 26255 | } |
| 26256 | if postIndex > l { |
| 26257 | return io.ErrUnexpectedEOF |
| 26258 | } |
| 26259 | if m.Header == nil { |
| 26260 | m.Header = &ResponseHeader{} |
| 26261 | } |
| 26262 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 26263 | return err |
| 26264 | } |
| 26265 | iNdEx = postIndex |
| 26266 | default: |
| 26267 | iNdEx = preIndex |
| 26268 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 26269 | if err != nil { |
| 26270 | return err |
| 26271 | } |
| 26272 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 26273 | return ErrInvalidLengthRpc |
| 26274 | } |
| 26275 | if (iNdEx + skippy) > l { |
| 26276 | return io.ErrUnexpectedEOF |
| 26277 | } |
| 26278 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 26279 | iNdEx += skippy |
| 26280 | } |
| 26281 | } |
| 26282 | |
| 26283 | if iNdEx > l { |
| 26284 | return io.ErrUnexpectedEOF |
| 26285 | } |
| 26286 | return nil |
| 26287 | } |
| 26288 | func (m *AuthRoleGrantPermissionResponse) Unmarshal(dAtA []byte) error { |
| 26289 | l := len(dAtA) |
| 26290 | iNdEx := 0 |
| 26291 | for iNdEx < l { |
| 26292 | preIndex := iNdEx |
| 26293 | var wire uint64 |
| 26294 | for shift := uint(0); ; shift += 7 { |
| 26295 | if shift >= 64 { |
| 26296 | return ErrIntOverflowRpc |
| 26297 | } |
| 26298 | if iNdEx >= l { |
| 26299 | return io.ErrUnexpectedEOF |
| 26300 | } |
| 26301 | b := dAtA[iNdEx] |
| 26302 | iNdEx++ |
| 26303 | wire |= uint64(b&0x7F) << shift |
| 26304 | if b < 0x80 { |
| 26305 | break |
| 26306 | } |
| 26307 | } |
| 26308 | fieldNum := int32(wire >> 3) |
| 26309 | wireType := int(wire & 0x7) |
| 26310 | if wireType == 4 { |
| 26311 | return fmt.Errorf("proto: AuthRoleGrantPermissionResponse: wiretype end group for non-group") |
| 26312 | } |
| 26313 | if fieldNum <= 0 { |
| 26314 | return fmt.Errorf("proto: AuthRoleGrantPermissionResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 26315 | } |
| 26316 | switch fieldNum { |
| 26317 | case 1: |
| 26318 | if wireType != 2 { |
| 26319 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 26320 | } |
| 26321 | var msglen int |
| 26322 | for shift := uint(0); ; shift += 7 { |
| 26323 | if shift >= 64 { |
| 26324 | return ErrIntOverflowRpc |
| 26325 | } |
| 26326 | if iNdEx >= l { |
| 26327 | return io.ErrUnexpectedEOF |
| 26328 | } |
| 26329 | b := dAtA[iNdEx] |
| 26330 | iNdEx++ |
| 26331 | msglen |= int(b&0x7F) << shift |
| 26332 | if b < 0x80 { |
| 26333 | break |
| 26334 | } |
| 26335 | } |
| 26336 | if msglen < 0 { |
| 26337 | return ErrInvalidLengthRpc |
| 26338 | } |
| 26339 | postIndex := iNdEx + msglen |
| 26340 | if postIndex < 0 { |
| 26341 | return ErrInvalidLengthRpc |
| 26342 | } |
| 26343 | if postIndex > l { |
| 26344 | return io.ErrUnexpectedEOF |
| 26345 | } |
| 26346 | if m.Header == nil { |
| 26347 | m.Header = &ResponseHeader{} |
| 26348 | } |
| 26349 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 26350 | return err |
| 26351 | } |
| 26352 | iNdEx = postIndex |
| 26353 | default: |
| 26354 | iNdEx = preIndex |
| 26355 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 26356 | if err != nil { |
| 26357 | return err |
| 26358 | } |
| 26359 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 26360 | return ErrInvalidLengthRpc |
| 26361 | } |
| 26362 | if (iNdEx + skippy) > l { |
| 26363 | return io.ErrUnexpectedEOF |
| 26364 | } |
| 26365 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 26366 | iNdEx += skippy |
| 26367 | } |
| 26368 | } |
| 26369 | |
| 26370 | if iNdEx > l { |
| 26371 | return io.ErrUnexpectedEOF |
| 26372 | } |
| 26373 | return nil |
| 26374 | } |
| 26375 | func (m *AuthRoleRevokePermissionResponse) Unmarshal(dAtA []byte) error { |
| 26376 | l := len(dAtA) |
| 26377 | iNdEx := 0 |
| 26378 | for iNdEx < l { |
| 26379 | preIndex := iNdEx |
| 26380 | var wire uint64 |
| 26381 | for shift := uint(0); ; shift += 7 { |
| 26382 | if shift >= 64 { |
| 26383 | return ErrIntOverflowRpc |
| 26384 | } |
| 26385 | if iNdEx >= l { |
| 26386 | return io.ErrUnexpectedEOF |
| 26387 | } |
| 26388 | b := dAtA[iNdEx] |
| 26389 | iNdEx++ |
| 26390 | wire |= uint64(b&0x7F) << shift |
| 26391 | if b < 0x80 { |
| 26392 | break |
| 26393 | } |
| 26394 | } |
| 26395 | fieldNum := int32(wire >> 3) |
| 26396 | wireType := int(wire & 0x7) |
| 26397 | if wireType == 4 { |
| 26398 | return fmt.Errorf("proto: AuthRoleRevokePermissionResponse: wiretype end group for non-group") |
| 26399 | } |
| 26400 | if fieldNum <= 0 { |
| 26401 | return fmt.Errorf("proto: AuthRoleRevokePermissionResponse: illegal tag %d (wire type %d)", fieldNum, wire) |
| 26402 | } |
| 26403 | switch fieldNum { |
| 26404 | case 1: |
| 26405 | if wireType != 2 { |
| 26406 | return fmt.Errorf("proto: wrong wireType = %d for field Header", wireType) |
| 26407 | } |
| 26408 | var msglen int |
| 26409 | for shift := uint(0); ; shift += 7 { |
| 26410 | if shift >= 64 { |
| 26411 | return ErrIntOverflowRpc |
| 26412 | } |
| 26413 | if iNdEx >= l { |
| 26414 | return io.ErrUnexpectedEOF |
| 26415 | } |
| 26416 | b := dAtA[iNdEx] |
| 26417 | iNdEx++ |
| 26418 | msglen |= int(b&0x7F) << shift |
| 26419 | if b < 0x80 { |
| 26420 | break |
| 26421 | } |
| 26422 | } |
| 26423 | if msglen < 0 { |
| 26424 | return ErrInvalidLengthRpc |
| 26425 | } |
| 26426 | postIndex := iNdEx + msglen |
| 26427 | if postIndex < 0 { |
| 26428 | return ErrInvalidLengthRpc |
| 26429 | } |
| 26430 | if postIndex > l { |
| 26431 | return io.ErrUnexpectedEOF |
| 26432 | } |
| 26433 | if m.Header == nil { |
| 26434 | m.Header = &ResponseHeader{} |
| 26435 | } |
| 26436 | if err := m.Header.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 26437 | return err |
| 26438 | } |
| 26439 | iNdEx = postIndex |
| 26440 | default: |
| 26441 | iNdEx = preIndex |
| 26442 | skippy, err := skipRpc(dAtA[iNdEx:]) |
| 26443 | if err != nil { |
| 26444 | return err |
| 26445 | } |
| 26446 | if (skippy < 0) || (iNdEx+skippy) < 0 { |
| 26447 | return ErrInvalidLengthRpc |
| 26448 | } |
| 26449 | if (iNdEx + skippy) > l { |
| 26450 | return io.ErrUnexpectedEOF |
| 26451 | } |
| 26452 | m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) |
| 26453 | iNdEx += skippy |
| 26454 | } |
| 26455 | } |
| 26456 | |
| 26457 | if iNdEx > l { |
| 26458 | return io.ErrUnexpectedEOF |
| 26459 | } |
| 26460 | return nil |
| 26461 | } |
| 26462 | func skipRpc(dAtA []byte) (n int, err error) { |
| 26463 | l := len(dAtA) |
| 26464 | iNdEx := 0 |
| 26465 | depth := 0 |
| 26466 | for iNdEx < l { |
| 26467 | var wire uint64 |
| 26468 | for shift := uint(0); ; shift += 7 { |
| 26469 | if shift >= 64 { |
| 26470 | return 0, ErrIntOverflowRpc |
| 26471 | } |
| 26472 | if iNdEx >= l { |
| 26473 | return 0, io.ErrUnexpectedEOF |
| 26474 | } |
| 26475 | b := dAtA[iNdEx] |
| 26476 | iNdEx++ |
| 26477 | wire |= (uint64(b) & 0x7F) << shift |
| 26478 | if b < 0x80 { |
| 26479 | break |
| 26480 | } |
| 26481 | } |
| 26482 | wireType := int(wire & 0x7) |
| 26483 | switch wireType { |
| 26484 | case 0: |
| 26485 | for shift := uint(0); ; shift += 7 { |
| 26486 | if shift >= 64 { |
| 26487 | return 0, ErrIntOverflowRpc |
| 26488 | } |
| 26489 | if iNdEx >= l { |
| 26490 | return 0, io.ErrUnexpectedEOF |
| 26491 | } |
| 26492 | iNdEx++ |
| 26493 | if dAtA[iNdEx-1] < 0x80 { |
| 26494 | break |
| 26495 | } |
| 26496 | } |
| 26497 | case 1: |
| 26498 | iNdEx += 8 |
| 26499 | case 2: |
| 26500 | var length int |
| 26501 | for shift := uint(0); ; shift += 7 { |
| 26502 | if shift >= 64 { |
| 26503 | return 0, ErrIntOverflowRpc |
| 26504 | } |
| 26505 | if iNdEx >= l { |
| 26506 | return 0, io.ErrUnexpectedEOF |
| 26507 | } |
| 26508 | b := dAtA[iNdEx] |
| 26509 | iNdEx++ |
| 26510 | length |= (int(b) & 0x7F) << shift |
| 26511 | if b < 0x80 { |
| 26512 | break |
| 26513 | } |
| 26514 | } |
| 26515 | if length < 0 { |
| 26516 | return 0, ErrInvalidLengthRpc |
| 26517 | } |
| 26518 | iNdEx += length |
| 26519 | case 3: |
| 26520 | depth++ |
| 26521 | case 4: |
| 26522 | if depth == 0 { |
| 26523 | return 0, ErrUnexpectedEndOfGroupRpc |
| 26524 | } |
| 26525 | depth-- |
| 26526 | case 5: |
| 26527 | iNdEx += 4 |
| 26528 | default: |
| 26529 | return 0, fmt.Errorf("proto: illegal wireType %d", wireType) |
| 26530 | } |
| 26531 | if iNdEx < 0 { |
| 26532 | return 0, ErrInvalidLengthRpc |
| 26533 | } |
| 26534 | if depth == 0 { |
| 26535 | return iNdEx, nil |
| 26536 | } |
| 26537 | } |
| 26538 | return 0, io.ErrUnexpectedEOF |
| 26539 | } |
| 26540 | |
| 26541 | var ( |
| 26542 | ErrInvalidLengthRpc = fmt.Errorf("proto: negative length found during unmarshaling") |
| 26543 | ErrIntOverflowRpc = fmt.Errorf("proto: integer overflow") |
| 26544 | ErrUnexpectedEndOfGroupRpc = fmt.Errorf("proto: unexpected end of group") |
| 26545 | ) |