github.com/insionng/yougam@v0.0.0-20170714101924-2bc18d833463/libraries/pingcap/go-hbase/proto/Client.pb.go (about) 1 // Code generated by protoc-gen-go. 2 // source: Client.proto 3 // DO NOT EDIT! 4 5 package proto 6 7 import proto1 "github.com/insionng/yougam/libraries/golang/protobuf/proto" 8 import math "math" 9 10 // Reference imports to suppress errors if they are not otherwise used. 11 var _ = proto1.Marshal 12 var _ = math.Inf 13 14 type MutationProto_Durability int32 15 16 const ( 17 MutationProto_USE_DEFAULT MutationProto_Durability = 0 18 MutationProto_SKIP_WAL MutationProto_Durability = 1 19 MutationProto_ASYNC_WAL MutationProto_Durability = 2 20 MutationProto_SYNC_WAL MutationProto_Durability = 3 21 MutationProto_FSYNC_WAL MutationProto_Durability = 4 22 ) 23 24 var MutationProto_Durability_name = map[int32]string{ 25 0: "USE_DEFAULT", 26 1: "SKIP_WAL", 27 2: "ASYNC_WAL", 28 3: "SYNC_WAL", 29 4: "FSYNC_WAL", 30 } 31 var MutationProto_Durability_value = map[string]int32{ 32 "USE_DEFAULT": 0, 33 "SKIP_WAL": 1, 34 "ASYNC_WAL": 2, 35 "SYNC_WAL": 3, 36 "FSYNC_WAL": 4, 37 } 38 39 func (x MutationProto_Durability) Enum() *MutationProto_Durability { 40 p := new(MutationProto_Durability) 41 *p = x 42 return p 43 } 44 func (x MutationProto_Durability) String() string { 45 return proto1.EnumName(MutationProto_Durability_name, int32(x)) 46 } 47 func (x *MutationProto_Durability) UnmarshalJSON(data []byte) error { 48 value, err := proto1.UnmarshalJSONEnum(MutationProto_Durability_value, data, "MutationProto_Durability") 49 if err != nil { 50 return err 51 } 52 *x = MutationProto_Durability(value) 53 return nil 54 } 55 56 type MutationProto_MutationType int32 57 58 const ( 59 MutationProto_APPEND MutationProto_MutationType = 0 60 MutationProto_INCREMENT MutationProto_MutationType = 1 61 MutationProto_PUT MutationProto_MutationType = 2 62 MutationProto_DELETE MutationProto_MutationType = 3 63 ) 64 65 var MutationProto_MutationType_name = map[int32]string{ 66 0: "APPEND", 67 1: "INCREMENT", 68 2: "PUT", 69 3: "DELETE", 70 } 71 var MutationProto_MutationType_value = map[string]int32{ 72 "APPEND": 0, 73 "INCREMENT": 1, 74 "PUT": 2, 75 "DELETE": 3, 76 } 77 78 func (x MutationProto_MutationType) Enum() *MutationProto_MutationType { 79 p := new(MutationProto_MutationType) 80 *p = x 81 return p 82 } 83 func (x MutationProto_MutationType) String() string { 84 return proto1.EnumName(MutationProto_MutationType_name, int32(x)) 85 } 86 func (x *MutationProto_MutationType) UnmarshalJSON(data []byte) error { 87 value, err := proto1.UnmarshalJSONEnum(MutationProto_MutationType_value, data, "MutationProto_MutationType") 88 if err != nil { 89 return err 90 } 91 *x = MutationProto_MutationType(value) 92 return nil 93 } 94 95 type MutationProto_DeleteType int32 96 97 const ( 98 MutationProto_DELETE_ONE_VERSION MutationProto_DeleteType = 0 99 MutationProto_DELETE_MULTIPLE_VERSIONS MutationProto_DeleteType = 1 100 MutationProto_DELETE_FAMILY MutationProto_DeleteType = 2 101 MutationProto_DELETE_FAMILY_VERSION MutationProto_DeleteType = 3 102 ) 103 104 var MutationProto_DeleteType_name = map[int32]string{ 105 0: "DELETE_ONE_VERSION", 106 1: "DELETE_MULTIPLE_VERSIONS", 107 2: "DELETE_FAMILY", 108 3: "DELETE_FAMILY_VERSION", 109 } 110 var MutationProto_DeleteType_value = map[string]int32{ 111 "DELETE_ONE_VERSION": 0, 112 "DELETE_MULTIPLE_VERSIONS": 1, 113 "DELETE_FAMILY": 2, 114 "DELETE_FAMILY_VERSION": 3, 115 } 116 117 func (x MutationProto_DeleteType) Enum() *MutationProto_DeleteType { 118 p := new(MutationProto_DeleteType) 119 *p = x 120 return p 121 } 122 func (x MutationProto_DeleteType) String() string { 123 return proto1.EnumName(MutationProto_DeleteType_name, int32(x)) 124 } 125 func (x *MutationProto_DeleteType) UnmarshalJSON(data []byte) error { 126 value, err := proto1.UnmarshalJSONEnum(MutationProto_DeleteType_value, data, "MutationProto_DeleteType") 127 if err != nil { 128 return err 129 } 130 *x = MutationProto_DeleteType(value) 131 return nil 132 } 133 134 // * 135 // The protocol buffer version of Authorizations. 136 type Authorizations struct { 137 Label []string `protobuf:"bytes,1,rep,name=label" json:"label,omitempty"` 138 XXX_unrecognized []byte `json:"-"` 139 } 140 141 func (m *Authorizations) Reset() { *m = Authorizations{} } 142 func (m *Authorizations) String() string { return proto1.CompactTextString(m) } 143 func (*Authorizations) ProtoMessage() {} 144 145 func (m *Authorizations) GetLabel() []string { 146 if m != nil { 147 return m.Label 148 } 149 return nil 150 } 151 152 // * 153 // The protocol buffer version of CellVisibility. 154 type CellVisibility struct { 155 Expression *string `protobuf:"bytes,1,req,name=expression" json:"expression,omitempty"` 156 XXX_unrecognized []byte `json:"-"` 157 } 158 159 func (m *CellVisibility) Reset() { *m = CellVisibility{} } 160 func (m *CellVisibility) String() string { return proto1.CompactTextString(m) } 161 func (*CellVisibility) ProtoMessage() {} 162 163 func (m *CellVisibility) GetExpression() string { 164 if m != nil && m.Expression != nil { 165 return *m.Expression 166 } 167 return "" 168 } 169 170 // * 171 // Container for a list of column qualifier names of a family. 172 type Column struct { 173 Family []byte `protobuf:"bytes,1,req,name=family" json:"family,omitempty"` 174 Qualifier [][]byte `protobuf:"bytes,2,rep,name=qualifier" json:"qualifier,omitempty"` 175 XXX_unrecognized []byte `json:"-"` 176 } 177 178 func (m *Column) Reset() { *m = Column{} } 179 func (m *Column) String() string { return proto1.CompactTextString(m) } 180 func (*Column) ProtoMessage() {} 181 182 func (m *Column) GetFamily() []byte { 183 if m != nil { 184 return m.Family 185 } 186 return nil 187 } 188 189 func (m *Column) GetQualifier() [][]byte { 190 if m != nil { 191 return m.Qualifier 192 } 193 return nil 194 } 195 196 // * 197 // The protocol buffer version of Get. 198 // Unless existence_only is specified, return all the requested data 199 // for the row that matches exactly, or the one that immediately 200 // precedes it if closest_row_before is specified. 201 type Get struct { 202 Row []byte `protobuf:"bytes,1,req,name=row" json:"row,omitempty"` 203 Column []*Column `protobuf:"bytes,2,rep,name=column" json:"column,omitempty"` 204 Attribute []*NameBytesPair `protobuf:"bytes,3,rep,name=attribute" json:"attribute,omitempty"` 205 Filter *Filter `protobuf:"bytes,4,opt,name=filter" json:"filter,omitempty"` 206 TimeRange *TimeRange `protobuf:"bytes,5,opt,name=time_range" json:"time_range,omitempty"` 207 MaxVersions *uint32 `protobuf:"varint,6,opt,name=max_versions,def=1" json:"max_versions,omitempty"` 208 CacheBlocks *bool `protobuf:"varint,7,opt,name=cache_blocks,def=1" json:"cache_blocks,omitempty"` 209 StoreLimit *uint32 `protobuf:"varint,8,opt,name=store_limit" json:"store_limit,omitempty"` 210 StoreOffset *uint32 `protobuf:"varint,9,opt,name=store_offset" json:"store_offset,omitempty"` 211 // The result isn't asked for, just check for 212 // the existence. 213 ExistenceOnly *bool `protobuf:"varint,10,opt,name=existence_only,def=0" json:"existence_only,omitempty"` 214 // If the row to get doesn't exist, return the 215 // closest row before. 216 ClosestRowBefore *bool `protobuf:"varint,11,opt,name=closest_row_before,def=0" json:"closest_row_before,omitempty"` 217 XXX_unrecognized []byte `json:"-"` 218 } 219 220 func (m *Get) Reset() { *m = Get{} } 221 func (m *Get) String() string { return proto1.CompactTextString(m) } 222 func (*Get) ProtoMessage() {} 223 224 const Default_Get_MaxVersions uint32 = 1 225 const Default_Get_CacheBlocks bool = true 226 const Default_Get_ExistenceOnly bool = false 227 const Default_Get_ClosestRowBefore bool = false 228 229 func (m *Get) GetRow() []byte { 230 if m != nil { 231 return m.Row 232 } 233 return nil 234 } 235 236 func (m *Get) GetColumn() []*Column { 237 if m != nil { 238 return m.Column 239 } 240 return nil 241 } 242 243 func (m *Get) GetAttribute() []*NameBytesPair { 244 if m != nil { 245 return m.Attribute 246 } 247 return nil 248 } 249 250 func (m *Get) GetFilter() *Filter { 251 if m != nil { 252 return m.Filter 253 } 254 return nil 255 } 256 257 func (m *Get) GetTimeRange() *TimeRange { 258 if m != nil { 259 return m.TimeRange 260 } 261 return nil 262 } 263 264 func (m *Get) GetMaxVersions() uint32 { 265 if m != nil && m.MaxVersions != nil { 266 return *m.MaxVersions 267 } 268 return Default_Get_MaxVersions 269 } 270 271 func (m *Get) GetCacheBlocks() bool { 272 if m != nil && m.CacheBlocks != nil { 273 return *m.CacheBlocks 274 } 275 return Default_Get_CacheBlocks 276 } 277 278 func (m *Get) GetStoreLimit() uint32 { 279 if m != nil && m.StoreLimit != nil { 280 return *m.StoreLimit 281 } 282 return 0 283 } 284 285 func (m *Get) GetStoreOffset() uint32 { 286 if m != nil && m.StoreOffset != nil { 287 return *m.StoreOffset 288 } 289 return 0 290 } 291 292 func (m *Get) GetExistenceOnly() bool { 293 if m != nil && m.ExistenceOnly != nil { 294 return *m.ExistenceOnly 295 } 296 return Default_Get_ExistenceOnly 297 } 298 299 func (m *Get) GetClosestRowBefore() bool { 300 if m != nil && m.ClosestRowBefore != nil { 301 return *m.ClosestRowBefore 302 } 303 return Default_Get_ClosestRowBefore 304 } 305 306 type Result struct { 307 // Result includes the Cells or else it just has a count of Cells 308 // that are carried otherwise. 309 Cell []*Cell `protobuf:"bytes,1,rep,name=cell" json:"cell,omitempty"` 310 // The below count is set when the associated cells are 311 // not part of this protobuf message; they are passed alongside 312 // and then this Message is just a placeholder with metadata. 313 // The count is needed to know how many to peel off the block of Cells as 314 // ours. NOTE: This is different from the pb managed cell_count of the 315 // 'cell' field above which is non-null when the cells are pb'd. 316 AssociatedCellCount *int32 `protobuf:"varint,2,opt,name=associated_cell_count" json:"associated_cell_count,omitempty"` 317 // used for Get to check existence only. Not set if existence_only was not set to true 318 // in the query. 319 Exists *bool `protobuf:"varint,3,opt,name=exists" json:"exists,omitempty"` 320 XXX_unrecognized []byte `json:"-"` 321 } 322 323 func (m *Result) Reset() { *m = Result{} } 324 func (m *Result) String() string { return proto1.CompactTextString(m) } 325 func (*Result) ProtoMessage() {} 326 327 func (m *Result) GetCell() []*Cell { 328 if m != nil { 329 return m.Cell 330 } 331 return nil 332 } 333 334 func (m *Result) GetAssociatedCellCount() int32 { 335 if m != nil && m.AssociatedCellCount != nil { 336 return *m.AssociatedCellCount 337 } 338 return 0 339 } 340 341 func (m *Result) GetExists() bool { 342 if m != nil && m.Exists != nil { 343 return *m.Exists 344 } 345 return false 346 } 347 348 // * 349 // The get request. Perform a single Get operation. 350 type GetRequest struct { 351 Region *RegionSpecifier `protobuf:"bytes,1,req,name=region" json:"region,omitempty"` 352 Get *Get `protobuf:"bytes,2,req,name=get" json:"get,omitempty"` 353 XXX_unrecognized []byte `json:"-"` 354 } 355 356 func (m *GetRequest) Reset() { *m = GetRequest{} } 357 func (m *GetRequest) String() string { return proto1.CompactTextString(m) } 358 func (*GetRequest) ProtoMessage() {} 359 360 func (m *GetRequest) GetRegion() *RegionSpecifier { 361 if m != nil { 362 return m.Region 363 } 364 return nil 365 } 366 367 func (m *GetRequest) GetGet() *Get { 368 if m != nil { 369 return m.Get 370 } 371 return nil 372 } 373 374 type GetResponse struct { 375 Result *Result `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"` 376 XXX_unrecognized []byte `json:"-"` 377 } 378 379 func (m *GetResponse) Reset() { *m = GetResponse{} } 380 func (m *GetResponse) String() string { return proto1.CompactTextString(m) } 381 func (*GetResponse) ProtoMessage() {} 382 383 func (m *GetResponse) GetResult() *Result { 384 if m != nil { 385 return m.Result 386 } 387 return nil 388 } 389 390 // * 391 // Condition to check if the value of a given cell (row, 392 // family, qualifier) matches a value via a given comparator. 393 // 394 // Condition is used in check and mutate operations. 395 type Condition struct { 396 Row []byte `protobuf:"bytes,1,req,name=row" json:"row,omitempty"` 397 Family []byte `protobuf:"bytes,2,req,name=family" json:"family,omitempty"` 398 Qualifier []byte `protobuf:"bytes,3,req,name=qualifier" json:"qualifier,omitempty"` 399 CompareType *CompareType `protobuf:"varint,4,req,name=compare_type,enum=proto.CompareType" json:"compare_type,omitempty"` 400 Comparator *Comparator `protobuf:"bytes,5,req,name=comparator" json:"comparator,omitempty"` 401 XXX_unrecognized []byte `json:"-"` 402 } 403 404 func (m *Condition) Reset() { *m = Condition{} } 405 func (m *Condition) String() string { return proto1.CompactTextString(m) } 406 func (*Condition) ProtoMessage() {} 407 408 func (m *Condition) GetRow() []byte { 409 if m != nil { 410 return m.Row 411 } 412 return nil 413 } 414 415 func (m *Condition) GetFamily() []byte { 416 if m != nil { 417 return m.Family 418 } 419 return nil 420 } 421 422 func (m *Condition) GetQualifier() []byte { 423 if m != nil { 424 return m.Qualifier 425 } 426 return nil 427 } 428 429 func (m *Condition) GetCompareType() CompareType { 430 if m != nil && m.CompareType != nil { 431 return *m.CompareType 432 } 433 return CompareType_LESS 434 } 435 436 func (m *Condition) GetComparator() *Comparator { 437 if m != nil { 438 return m.Comparator 439 } 440 return nil 441 } 442 443 // * 444 // A specific mutation inside a mutate request. 445 // It can be an append, increment, put or delete based 446 // on the mutation type. It can be fully filled in or 447 // only metadata present because data is being carried 448 // elsewhere outside of pb. 449 type MutationProto struct { 450 Row []byte `protobuf:"bytes,1,opt,name=row" json:"row,omitempty"` 451 MutateType *MutationProto_MutationType `protobuf:"varint,2,opt,name=mutate_type,enum=proto.MutationProto_MutationType" json:"mutate_type,omitempty"` 452 ColumnValue []*MutationProto_ColumnValue `protobuf:"bytes,3,rep,name=column_value" json:"column_value,omitempty"` 453 Timestamp *uint64 `protobuf:"varint,4,opt,name=timestamp" json:"timestamp,omitempty"` 454 Attribute []*NameBytesPair `protobuf:"bytes,5,rep,name=attribute" json:"attribute,omitempty"` 455 Durability *MutationProto_Durability `protobuf:"varint,6,opt,name=durability,enum=proto.MutationProto_Durability,def=0" json:"durability,omitempty"` 456 // For some mutations, a result may be returned, in which case, 457 // time range can be specified for potential performance gain 458 TimeRange *TimeRange `protobuf:"bytes,7,opt,name=time_range" json:"time_range,omitempty"` 459 // The below count is set when the associated cells are NOT 460 // part of this protobuf message; they are passed alongside 461 // and then this Message is a placeholder with metadata. The 462 // count is needed to know how many to peel off the block of Cells as 463 // ours. NOTE: This is different from the pb managed cell_count of the 464 // 'cell' field above which is non-null when the cells are pb'd. 465 AssociatedCellCount *int32 `protobuf:"varint,8,opt,name=associated_cell_count" json:"associated_cell_count,omitempty"` 466 Nonce *uint64 `protobuf:"varint,9,opt,name=nonce" json:"nonce,omitempty"` 467 XXX_unrecognized []byte `json:"-"` 468 } 469 470 func (m *MutationProto) Reset() { *m = MutationProto{} } 471 func (m *MutationProto) String() string { return proto1.CompactTextString(m) } 472 func (*MutationProto) ProtoMessage() {} 473 474 const Default_MutationProto_Durability MutationProto_Durability = MutationProto_USE_DEFAULT 475 476 func (m *MutationProto) GetRow() []byte { 477 if m != nil { 478 return m.Row 479 } 480 return nil 481 } 482 483 func (m *MutationProto) GetMutateType() MutationProto_MutationType { 484 if m != nil && m.MutateType != nil { 485 return *m.MutateType 486 } 487 return MutationProto_APPEND 488 } 489 490 func (m *MutationProto) GetColumnValue() []*MutationProto_ColumnValue { 491 if m != nil { 492 return m.ColumnValue 493 } 494 return nil 495 } 496 497 func (m *MutationProto) GetTimestamp() uint64 { 498 if m != nil && m.Timestamp != nil { 499 return *m.Timestamp 500 } 501 return 0 502 } 503 504 func (m *MutationProto) GetAttribute() []*NameBytesPair { 505 if m != nil { 506 return m.Attribute 507 } 508 return nil 509 } 510 511 func (m *MutationProto) GetDurability() MutationProto_Durability { 512 if m != nil && m.Durability != nil { 513 return *m.Durability 514 } 515 return Default_MutationProto_Durability 516 } 517 518 func (m *MutationProto) GetTimeRange() *TimeRange { 519 if m != nil { 520 return m.TimeRange 521 } 522 return nil 523 } 524 525 func (m *MutationProto) GetAssociatedCellCount() int32 { 526 if m != nil && m.AssociatedCellCount != nil { 527 return *m.AssociatedCellCount 528 } 529 return 0 530 } 531 532 func (m *MutationProto) GetNonce() uint64 { 533 if m != nil && m.Nonce != nil { 534 return *m.Nonce 535 } 536 return 0 537 } 538 539 type MutationProto_ColumnValue struct { 540 Family []byte `protobuf:"bytes,1,req,name=family" json:"family,omitempty"` 541 QualifierValue []*MutationProto_ColumnValue_QualifierValue `protobuf:"bytes,2,rep,name=qualifier_value" json:"qualifier_value,omitempty"` 542 XXX_unrecognized []byte `json:"-"` 543 } 544 545 func (m *MutationProto_ColumnValue) Reset() { *m = MutationProto_ColumnValue{} } 546 func (m *MutationProto_ColumnValue) String() string { return proto1.CompactTextString(m) } 547 func (*MutationProto_ColumnValue) ProtoMessage() {} 548 549 func (m *MutationProto_ColumnValue) GetFamily() []byte { 550 if m != nil { 551 return m.Family 552 } 553 return nil 554 } 555 556 func (m *MutationProto_ColumnValue) GetQualifierValue() []*MutationProto_ColumnValue_QualifierValue { 557 if m != nil { 558 return m.QualifierValue 559 } 560 return nil 561 } 562 563 type MutationProto_ColumnValue_QualifierValue struct { 564 Qualifier []byte `protobuf:"bytes,1,opt,name=qualifier" json:"qualifier,omitempty"` 565 Value []byte `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"` 566 Timestamp *uint64 `protobuf:"varint,3,opt,name=timestamp" json:"timestamp,omitempty"` 567 DeleteType *MutationProto_DeleteType `protobuf:"varint,4,opt,name=delete_type,enum=proto.MutationProto_DeleteType" json:"delete_type,omitempty"` 568 Tags []byte `protobuf:"bytes,5,opt,name=tags" json:"tags,omitempty"` 569 XXX_unrecognized []byte `json:"-"` 570 } 571 572 func (m *MutationProto_ColumnValue_QualifierValue) Reset() { 573 *m = MutationProto_ColumnValue_QualifierValue{} 574 } 575 func (m *MutationProto_ColumnValue_QualifierValue) String() string { return proto1.CompactTextString(m) } 576 func (*MutationProto_ColumnValue_QualifierValue) ProtoMessage() {} 577 578 func (m *MutationProto_ColumnValue_QualifierValue) GetQualifier() []byte { 579 if m != nil { 580 return m.Qualifier 581 } 582 return nil 583 } 584 585 func (m *MutationProto_ColumnValue_QualifierValue) GetValue() []byte { 586 if m != nil { 587 return m.Value 588 } 589 return nil 590 } 591 592 func (m *MutationProto_ColumnValue_QualifierValue) GetTimestamp() uint64 { 593 if m != nil && m.Timestamp != nil { 594 return *m.Timestamp 595 } 596 return 0 597 } 598 599 func (m *MutationProto_ColumnValue_QualifierValue) GetDeleteType() MutationProto_DeleteType { 600 if m != nil && m.DeleteType != nil { 601 return *m.DeleteType 602 } 603 return MutationProto_DELETE_ONE_VERSION 604 } 605 606 func (m *MutationProto_ColumnValue_QualifierValue) GetTags() []byte { 607 if m != nil { 608 return m.Tags 609 } 610 return nil 611 } 612 613 // * 614 // The mutate request. Perform a single Mutate operation. 615 // 616 // Optionally, you can specify a condition. The mutate 617 // will take place only if the condition is met. Otherwise, 618 // the mutate will be ignored. In the response result, 619 // parameter processed is used to indicate if the mutate 620 // actually happened. 621 type MutateRequest struct { 622 Region *RegionSpecifier `protobuf:"bytes,1,req,name=region" json:"region,omitempty"` 623 Mutation *MutationProto `protobuf:"bytes,2,req,name=mutation" json:"mutation,omitempty"` 624 Condition *Condition `protobuf:"bytes,3,opt,name=condition" json:"condition,omitempty"` 625 NonceGroup *uint64 `protobuf:"varint,4,opt,name=nonce_group" json:"nonce_group,omitempty"` 626 XXX_unrecognized []byte `json:"-"` 627 } 628 629 func (m *MutateRequest) Reset() { *m = MutateRequest{} } 630 func (m *MutateRequest) String() string { return proto1.CompactTextString(m) } 631 func (*MutateRequest) ProtoMessage() {} 632 633 func (m *MutateRequest) GetRegion() *RegionSpecifier { 634 if m != nil { 635 return m.Region 636 } 637 return nil 638 } 639 640 func (m *MutateRequest) GetMutation() *MutationProto { 641 if m != nil { 642 return m.Mutation 643 } 644 return nil 645 } 646 647 func (m *MutateRequest) GetCondition() *Condition { 648 if m != nil { 649 return m.Condition 650 } 651 return nil 652 } 653 654 func (m *MutateRequest) GetNonceGroup() uint64 { 655 if m != nil && m.NonceGroup != nil { 656 return *m.NonceGroup 657 } 658 return 0 659 } 660 661 type MutateResponse struct { 662 Result *Result `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"` 663 // used for mutate to indicate processed only 664 Processed *bool `protobuf:"varint,2,opt,name=processed" json:"processed,omitempty"` 665 XXX_unrecognized []byte `json:"-"` 666 } 667 668 func (m *MutateResponse) Reset() { *m = MutateResponse{} } 669 func (m *MutateResponse) String() string { return proto1.CompactTextString(m) } 670 func (*MutateResponse) ProtoMessage() {} 671 672 func (m *MutateResponse) GetResult() *Result { 673 if m != nil { 674 return m.Result 675 } 676 return nil 677 } 678 679 func (m *MutateResponse) GetProcessed() bool { 680 if m != nil && m.Processed != nil { 681 return *m.Processed 682 } 683 return false 684 } 685 686 // * 687 // Instead of get from a table, you can scan it with optional filters. 688 // You can specify the row key range, time range, the columns/families 689 // to scan and so on. 690 // 691 // This scan is used the first time in a scan request. The response of 692 // the initial scan will return a scanner id, which should be used to 693 // fetch result batches later on before it is closed. 694 type Scan struct { 695 Column []*Column `protobuf:"bytes,1,rep,name=column" json:"column,omitempty"` 696 Attribute []*NameBytesPair `protobuf:"bytes,2,rep,name=attribute" json:"attribute,omitempty"` 697 StartRow []byte `protobuf:"bytes,3,opt,name=start_row" json:"start_row,omitempty"` 698 StopRow []byte `protobuf:"bytes,4,opt,name=stop_row" json:"stop_row,omitempty"` 699 Filter *Filter `protobuf:"bytes,5,opt,name=filter" json:"filter,omitempty"` 700 TimeRange *TimeRange `protobuf:"bytes,6,opt,name=time_range" json:"time_range,omitempty"` 701 MaxVersions *uint32 `protobuf:"varint,7,opt,name=max_versions,def=1" json:"max_versions,omitempty"` 702 CacheBlocks *bool `protobuf:"varint,8,opt,name=cache_blocks,def=1" json:"cache_blocks,omitempty"` 703 BatchSize *uint32 `protobuf:"varint,9,opt,name=batch_size" json:"batch_size,omitempty"` 704 MaxResultSize *uint64 `protobuf:"varint,10,opt,name=max_result_size" json:"max_result_size,omitempty"` 705 StoreLimit *uint32 `protobuf:"varint,11,opt,name=store_limit" json:"store_limit,omitempty"` 706 StoreOffset *uint32 `protobuf:"varint,12,opt,name=store_offset" json:"store_offset,omitempty"` 707 LoadColumnFamiliesOnDemand *bool `protobuf:"varint,13,opt,name=load_column_families_on_demand" json:"load_column_families_on_demand,omitempty"` 708 Small *bool `protobuf:"varint,14,opt,name=small" json:"small,omitempty"` 709 Reversed *bool `protobuf:"varint,15,opt,name=reversed,def=0" json:"reversed,omitempty"` 710 Caching *uint32 `protobuf:"varint,17,opt,name=caching" json:"caching,omitempty"` 711 XXX_unrecognized []byte `json:"-"` 712 } 713 714 func (m *Scan) Reset() { *m = Scan{} } 715 func (m *Scan) String() string { return proto1.CompactTextString(m) } 716 func (*Scan) ProtoMessage() {} 717 718 const Default_Scan_MaxVersions uint32 = 1 719 const Default_Scan_CacheBlocks bool = true 720 const Default_Scan_Reversed bool = false 721 722 func (m *Scan) GetColumn() []*Column { 723 if m != nil { 724 return m.Column 725 } 726 return nil 727 } 728 729 func (m *Scan) GetAttribute() []*NameBytesPair { 730 if m != nil { 731 return m.Attribute 732 } 733 return nil 734 } 735 736 func (m *Scan) GetStartRow() []byte { 737 if m != nil { 738 return m.StartRow 739 } 740 return nil 741 } 742 743 func (m *Scan) GetStopRow() []byte { 744 if m != nil { 745 return m.StopRow 746 } 747 return nil 748 } 749 750 func (m *Scan) GetFilter() *Filter { 751 if m != nil { 752 return m.Filter 753 } 754 return nil 755 } 756 757 func (m *Scan) GetTimeRange() *TimeRange { 758 if m != nil { 759 return m.TimeRange 760 } 761 return nil 762 } 763 764 func (m *Scan) GetMaxVersions() uint32 { 765 if m != nil && m.MaxVersions != nil { 766 return *m.MaxVersions 767 } 768 return Default_Scan_MaxVersions 769 } 770 771 func (m *Scan) GetCacheBlocks() bool { 772 if m != nil && m.CacheBlocks != nil { 773 return *m.CacheBlocks 774 } 775 return Default_Scan_CacheBlocks 776 } 777 778 func (m *Scan) GetBatchSize() uint32 { 779 if m != nil && m.BatchSize != nil { 780 return *m.BatchSize 781 } 782 return 0 783 } 784 785 func (m *Scan) GetMaxResultSize() uint64 { 786 if m != nil && m.MaxResultSize != nil { 787 return *m.MaxResultSize 788 } 789 return 0 790 } 791 792 func (m *Scan) GetStoreLimit() uint32 { 793 if m != nil && m.StoreLimit != nil { 794 return *m.StoreLimit 795 } 796 return 0 797 } 798 799 func (m *Scan) GetStoreOffset() uint32 { 800 if m != nil && m.StoreOffset != nil { 801 return *m.StoreOffset 802 } 803 return 0 804 } 805 806 func (m *Scan) GetLoadColumnFamiliesOnDemand() bool { 807 if m != nil && m.LoadColumnFamiliesOnDemand != nil { 808 return *m.LoadColumnFamiliesOnDemand 809 } 810 return false 811 } 812 813 func (m *Scan) GetSmall() bool { 814 if m != nil && m.Small != nil { 815 return *m.Small 816 } 817 return false 818 } 819 820 func (m *Scan) GetReversed() bool { 821 if m != nil && m.Reversed != nil { 822 return *m.Reversed 823 } 824 return Default_Scan_Reversed 825 } 826 827 func (m *Scan) GetCaching() uint32 { 828 if m != nil && m.Caching != nil { 829 return *m.Caching 830 } 831 return 0 832 } 833 834 // * 835 // A scan request. Initially, it should specify a scan. Later on, you 836 // can use the scanner id returned to fetch result batches with a different 837 // scan request. 838 // 839 // The scanner will remain open if there are more results, and it's not 840 // asked to be closed explicitly. 841 // 842 // You can fetch the results and ask the scanner to be closed to save 843 // a trip if you are not interested in remaining results. 844 type ScanRequest struct { 845 Region *RegionSpecifier `protobuf:"bytes,1,opt,name=region" json:"region,omitempty"` 846 Scan *Scan `protobuf:"bytes,2,opt,name=scan" json:"scan,omitempty"` 847 ScannerId *uint64 `protobuf:"varint,3,opt,name=scanner_id" json:"scanner_id,omitempty"` 848 NumberOfRows *uint32 `protobuf:"varint,4,opt,name=number_of_rows" json:"number_of_rows,omitempty"` 849 CloseScanner *bool `protobuf:"varint,5,opt,name=close_scanner" json:"close_scanner,omitempty"` 850 NextCallSeq *uint64 `protobuf:"varint,6,opt,name=next_call_seq" json:"next_call_seq,omitempty"` 851 XXX_unrecognized []byte `json:"-"` 852 } 853 854 func (m *ScanRequest) Reset() { *m = ScanRequest{} } 855 func (m *ScanRequest) String() string { return proto1.CompactTextString(m) } 856 func (*ScanRequest) ProtoMessage() {} 857 858 func (m *ScanRequest) GetRegion() *RegionSpecifier { 859 if m != nil { 860 return m.Region 861 } 862 return nil 863 } 864 865 func (m *ScanRequest) GetScan() *Scan { 866 if m != nil { 867 return m.Scan 868 } 869 return nil 870 } 871 872 func (m *ScanRequest) GetScannerId() uint64 { 873 if m != nil && m.ScannerId != nil { 874 return *m.ScannerId 875 } 876 return 0 877 } 878 879 func (m *ScanRequest) GetNumberOfRows() uint32 { 880 if m != nil && m.NumberOfRows != nil { 881 return *m.NumberOfRows 882 } 883 return 0 884 } 885 886 func (m *ScanRequest) GetCloseScanner() bool { 887 if m != nil && m.CloseScanner != nil { 888 return *m.CloseScanner 889 } 890 return false 891 } 892 893 func (m *ScanRequest) GetNextCallSeq() uint64 { 894 if m != nil && m.NextCallSeq != nil { 895 return *m.NextCallSeq 896 } 897 return 0 898 } 899 900 // * 901 // The scan response. If there are no more results, more_results will 902 // be false. If it is not specified, it means there are more. 903 type ScanResponse struct { 904 // This field is filled in if we are doing cellblocks. A cellblock is made up 905 // of all Cells serialized out as one cellblock BUT responses from a server 906 // have their Cells grouped by Result. So we can reconstitute the 907 // Results on the client-side, this field is a list of counts of Cells 908 // in each Result that makes up the response. For example, if this field 909 // has 3, 3, 3 in it, then we know that on the client, we are to make 910 // three Results each of three Cells each. 911 CellsPerResult []uint32 `protobuf:"varint,1,rep,name=cells_per_result" json:"cells_per_result,omitempty"` 912 ScannerId *uint64 `protobuf:"varint,2,opt,name=scanner_id" json:"scanner_id,omitempty"` 913 MoreResults *bool `protobuf:"varint,3,opt,name=more_results" json:"more_results,omitempty"` 914 Ttl *uint32 `protobuf:"varint,4,opt,name=ttl" json:"ttl,omitempty"` 915 // If cells are not carried in an accompanying cellblock, then they are pb'd here. 916 // This field is mutually exclusive with cells_per_result (since the Cells will 917 // be inside the pb'd Result) 918 Results []*Result `protobuf:"bytes,5,rep,name=results" json:"results,omitempty"` 919 // A server may choose to limit the number of results returned to the client for 920 // reasons such as the size in bytes or quantity of results accumulated. This field 921 // will true when more results exist in the current region. 922 MoreResultsInRegion *bool `protobuf:"varint,8,opt,name=more_results_in_region" json:"more_results_in_region,omitempty"` 923 XXX_unrecognized []byte `json:"-"` 924 } 925 926 func (m *ScanResponse) Reset() { *m = ScanResponse{} } 927 func (m *ScanResponse) String() string { return proto1.CompactTextString(m) } 928 func (*ScanResponse) ProtoMessage() {} 929 930 func (m *ScanResponse) GetCellsPerResult() []uint32 { 931 if m != nil { 932 return m.CellsPerResult 933 } 934 return nil 935 } 936 937 func (m *ScanResponse) GetScannerId() uint64 { 938 if m != nil && m.ScannerId != nil { 939 return *m.ScannerId 940 } 941 return 0 942 } 943 944 func (m *ScanResponse) GetMoreResults() bool { 945 if m != nil && m.MoreResults != nil { 946 return *m.MoreResults 947 } 948 return false 949 } 950 951 func (m *ScanResponse) GetTtl() uint32 { 952 if m != nil && m.Ttl != nil { 953 return *m.Ttl 954 } 955 return 0 956 } 957 958 func (m *ScanResponse) GetResults() []*Result { 959 if m != nil { 960 return m.Results 961 } 962 return nil 963 } 964 965 func (m *ScanResponse) GetMoreResultsInRegion() bool { 966 if m != nil && m.MoreResultsInRegion != nil { 967 return *m.MoreResultsInRegion 968 } 969 return false 970 } 971 972 // * 973 // Atomically bulk load multiple HFiles (say from different column families) 974 // into an open region. 975 type BulkLoadHFileRequest struct { 976 Region *RegionSpecifier `protobuf:"bytes,1,req,name=region" json:"region,omitempty"` 977 FamilyPath []*BulkLoadHFileRequest_FamilyPath `protobuf:"bytes,2,rep,name=family_path" json:"family_path,omitempty"` 978 AssignSeqNum *bool `protobuf:"varint,3,opt,name=assign_seq_num" json:"assign_seq_num,omitempty"` 979 XXX_unrecognized []byte `json:"-"` 980 } 981 982 func (m *BulkLoadHFileRequest) Reset() { *m = BulkLoadHFileRequest{} } 983 func (m *BulkLoadHFileRequest) String() string { return proto1.CompactTextString(m) } 984 func (*BulkLoadHFileRequest) ProtoMessage() {} 985 986 func (m *BulkLoadHFileRequest) GetRegion() *RegionSpecifier { 987 if m != nil { 988 return m.Region 989 } 990 return nil 991 } 992 993 func (m *BulkLoadHFileRequest) GetFamilyPath() []*BulkLoadHFileRequest_FamilyPath { 994 if m != nil { 995 return m.FamilyPath 996 } 997 return nil 998 } 999 1000 func (m *BulkLoadHFileRequest) GetAssignSeqNum() bool { 1001 if m != nil && m.AssignSeqNum != nil { 1002 return *m.AssignSeqNum 1003 } 1004 return false 1005 } 1006 1007 type BulkLoadHFileRequest_FamilyPath struct { 1008 Family []byte `protobuf:"bytes,1,req,name=family" json:"family,omitempty"` 1009 Path *string `protobuf:"bytes,2,req,name=path" json:"path,omitempty"` 1010 XXX_unrecognized []byte `json:"-"` 1011 } 1012 1013 func (m *BulkLoadHFileRequest_FamilyPath) Reset() { *m = BulkLoadHFileRequest_FamilyPath{} } 1014 func (m *BulkLoadHFileRequest_FamilyPath) String() string { return proto1.CompactTextString(m) } 1015 func (*BulkLoadHFileRequest_FamilyPath) ProtoMessage() {} 1016 1017 func (m *BulkLoadHFileRequest_FamilyPath) GetFamily() []byte { 1018 if m != nil { 1019 return m.Family 1020 } 1021 return nil 1022 } 1023 1024 func (m *BulkLoadHFileRequest_FamilyPath) GetPath() string { 1025 if m != nil && m.Path != nil { 1026 return *m.Path 1027 } 1028 return "" 1029 } 1030 1031 type BulkLoadHFileResponse struct { 1032 Loaded *bool `protobuf:"varint,1,req,name=loaded" json:"loaded,omitempty"` 1033 XXX_unrecognized []byte `json:"-"` 1034 } 1035 1036 func (m *BulkLoadHFileResponse) Reset() { *m = BulkLoadHFileResponse{} } 1037 func (m *BulkLoadHFileResponse) String() string { return proto1.CompactTextString(m) } 1038 func (*BulkLoadHFileResponse) ProtoMessage() {} 1039 1040 func (m *BulkLoadHFileResponse) GetLoaded() bool { 1041 if m != nil && m.Loaded != nil { 1042 return *m.Loaded 1043 } 1044 return false 1045 } 1046 1047 type CoprocessorServiceCall struct { 1048 Row []byte `protobuf:"bytes,1,req,name=row" json:"row,omitempty"` 1049 ServiceName *string `protobuf:"bytes,2,req,name=service_name" json:"service_name,omitempty"` 1050 MethodName *string `protobuf:"bytes,3,req,name=method_name" json:"method_name,omitempty"` 1051 Request []byte `protobuf:"bytes,4,req,name=request" json:"request,omitempty"` 1052 XXX_unrecognized []byte `json:"-"` 1053 } 1054 1055 func (m *CoprocessorServiceCall) Reset() { *m = CoprocessorServiceCall{} } 1056 func (m *CoprocessorServiceCall) String() string { return proto1.CompactTextString(m) } 1057 func (*CoprocessorServiceCall) ProtoMessage() {} 1058 1059 func (m *CoprocessorServiceCall) GetRow() []byte { 1060 if m != nil { 1061 return m.Row 1062 } 1063 return nil 1064 } 1065 1066 func (m *CoprocessorServiceCall) GetServiceName() string { 1067 if m != nil && m.ServiceName != nil { 1068 return *m.ServiceName 1069 } 1070 return "" 1071 } 1072 1073 func (m *CoprocessorServiceCall) GetMethodName() string { 1074 if m != nil && m.MethodName != nil { 1075 return *m.MethodName 1076 } 1077 return "" 1078 } 1079 1080 func (m *CoprocessorServiceCall) GetRequest() []byte { 1081 if m != nil { 1082 return m.Request 1083 } 1084 return nil 1085 } 1086 1087 type CoprocessorServiceResult struct { 1088 Value *NameBytesPair `protobuf:"bytes,1,opt,name=value" json:"value,omitempty"` 1089 XXX_unrecognized []byte `json:"-"` 1090 } 1091 1092 func (m *CoprocessorServiceResult) Reset() { *m = CoprocessorServiceResult{} } 1093 func (m *CoprocessorServiceResult) String() string { return proto1.CompactTextString(m) } 1094 func (*CoprocessorServiceResult) ProtoMessage() {} 1095 1096 func (m *CoprocessorServiceResult) GetValue() *NameBytesPair { 1097 if m != nil { 1098 return m.Value 1099 } 1100 return nil 1101 } 1102 1103 type CoprocessorServiceRequest struct { 1104 Region *RegionSpecifier `protobuf:"bytes,1,req,name=region" json:"region,omitempty"` 1105 Call *CoprocessorServiceCall `protobuf:"bytes,2,req,name=call" json:"call,omitempty"` 1106 XXX_unrecognized []byte `json:"-"` 1107 } 1108 1109 func (m *CoprocessorServiceRequest) Reset() { *m = CoprocessorServiceRequest{} } 1110 func (m *CoprocessorServiceRequest) String() string { return proto1.CompactTextString(m) } 1111 func (*CoprocessorServiceRequest) ProtoMessage() {} 1112 1113 func (m *CoprocessorServiceRequest) GetRegion() *RegionSpecifier { 1114 if m != nil { 1115 return m.Region 1116 } 1117 return nil 1118 } 1119 1120 func (m *CoprocessorServiceRequest) GetCall() *CoprocessorServiceCall { 1121 if m != nil { 1122 return m.Call 1123 } 1124 return nil 1125 } 1126 1127 type CoprocessorServiceResponse struct { 1128 Region *RegionSpecifier `protobuf:"bytes,1,req,name=region" json:"region,omitempty"` 1129 Value *NameBytesPair `protobuf:"bytes,2,req,name=value" json:"value,omitempty"` 1130 XXX_unrecognized []byte `json:"-"` 1131 } 1132 1133 func (m *CoprocessorServiceResponse) Reset() { *m = CoprocessorServiceResponse{} } 1134 func (m *CoprocessorServiceResponse) String() string { return proto1.CompactTextString(m) } 1135 func (*CoprocessorServiceResponse) ProtoMessage() {} 1136 1137 func (m *CoprocessorServiceResponse) GetRegion() *RegionSpecifier { 1138 if m != nil { 1139 return m.Region 1140 } 1141 return nil 1142 } 1143 1144 func (m *CoprocessorServiceResponse) GetValue() *NameBytesPair { 1145 if m != nil { 1146 return m.Value 1147 } 1148 return nil 1149 } 1150 1151 // Either a Get or a Mutation 1152 type Action struct { 1153 // If part of a multi action, useful aligning 1154 // result with what was originally submitted. 1155 Index *uint32 `protobuf:"varint,1,opt,name=index" json:"index,omitempty"` 1156 Mutation *MutationProto `protobuf:"bytes,2,opt,name=mutation" json:"mutation,omitempty"` 1157 Get *Get `protobuf:"bytes,3,opt,name=get" json:"get,omitempty"` 1158 ServiceCall *CoprocessorServiceCall `protobuf:"bytes,4,opt,name=service_call" json:"service_call,omitempty"` 1159 XXX_unrecognized []byte `json:"-"` 1160 } 1161 1162 func (m *Action) Reset() { *m = Action{} } 1163 func (m *Action) String() string { return proto1.CompactTextString(m) } 1164 func (*Action) ProtoMessage() {} 1165 1166 func (m *Action) GetIndex() uint32 { 1167 if m != nil && m.Index != nil { 1168 return *m.Index 1169 } 1170 return 0 1171 } 1172 1173 func (m *Action) GetMutation() *MutationProto { 1174 if m != nil { 1175 return m.Mutation 1176 } 1177 return nil 1178 } 1179 1180 func (m *Action) GetGet() *Get { 1181 if m != nil { 1182 return m.Get 1183 } 1184 return nil 1185 } 1186 1187 func (m *Action) GetServiceCall() *CoprocessorServiceCall { 1188 if m != nil { 1189 return m.ServiceCall 1190 } 1191 return nil 1192 } 1193 1194 // * 1195 // Actions to run against a Region. 1196 type RegionAction struct { 1197 Region *RegionSpecifier `protobuf:"bytes,1,req,name=region" json:"region,omitempty"` 1198 // When set, run mutations as atomic unit. 1199 Atomic *bool `protobuf:"varint,2,opt,name=atomic" json:"atomic,omitempty"` 1200 Action []*Action `protobuf:"bytes,3,rep,name=action" json:"action,omitempty"` 1201 XXX_unrecognized []byte `json:"-"` 1202 } 1203 1204 func (m *RegionAction) Reset() { *m = RegionAction{} } 1205 func (m *RegionAction) String() string { return proto1.CompactTextString(m) } 1206 func (*RegionAction) ProtoMessage() {} 1207 1208 func (m *RegionAction) GetRegion() *RegionSpecifier { 1209 if m != nil { 1210 return m.Region 1211 } 1212 return nil 1213 } 1214 1215 func (m *RegionAction) GetAtomic() bool { 1216 if m != nil && m.Atomic != nil { 1217 return *m.Atomic 1218 } 1219 return false 1220 } 1221 1222 func (m *RegionAction) GetAction() []*Action { 1223 if m != nil { 1224 return m.Action 1225 } 1226 return nil 1227 } 1228 1229 // 1230 // Statistics about the current load on the region 1231 type RegionLoadStats struct { 1232 // Percent load on the memstore. Guaranteed to be positive, between 0 and 100. 1233 MemstoreLoad *int32 `protobuf:"varint,1,opt,name=memstoreLoad,def=0" json:"memstoreLoad,omitempty"` 1234 // Percent JVM heap occupancy. Guaranteed to be positive, between 0 and 100. 1235 // We can move this to "ServerLoadStats" should we develop them. 1236 HeapOccupancy *int32 `protobuf:"varint,2,opt,name=heapOccupancy,def=0" json:"heapOccupancy,omitempty"` 1237 XXX_unrecognized []byte `json:"-"` 1238 } 1239 1240 func (m *RegionLoadStats) Reset() { *m = RegionLoadStats{} } 1241 func (m *RegionLoadStats) String() string { return proto1.CompactTextString(m) } 1242 func (*RegionLoadStats) ProtoMessage() {} 1243 1244 const Default_RegionLoadStats_MemstoreLoad int32 = 0 1245 const Default_RegionLoadStats_HeapOccupancy int32 = 0 1246 1247 func (m *RegionLoadStats) GetMemstoreLoad() int32 { 1248 if m != nil && m.MemstoreLoad != nil { 1249 return *m.MemstoreLoad 1250 } 1251 return Default_RegionLoadStats_MemstoreLoad 1252 } 1253 1254 func (m *RegionLoadStats) GetHeapOccupancy() int32 { 1255 if m != nil && m.HeapOccupancy != nil { 1256 return *m.HeapOccupancy 1257 } 1258 return Default_RegionLoadStats_HeapOccupancy 1259 } 1260 1261 // * 1262 // Either a Result or an Exception NameBytesPair (keyed by 1263 // exception name whose value is the exception stringified) 1264 // or maybe empty if no result and no exception. 1265 type ResultOrException struct { 1266 // If part of a multi call, save original index of the list of all 1267 // passed so can align this response w/ original request. 1268 Index *uint32 `protobuf:"varint,1,opt,name=index" json:"index,omitempty"` 1269 Result *Result `protobuf:"bytes,2,opt,name=result" json:"result,omitempty"` 1270 Exception *NameBytesPair `protobuf:"bytes,3,opt,name=exception" json:"exception,omitempty"` 1271 // result if this was a coprocessor service call 1272 ServiceResult *CoprocessorServiceResult `protobuf:"bytes,4,opt,name=service_result" json:"service_result,omitempty"` 1273 // current load on the region 1274 LoadStats *RegionLoadStats `protobuf:"bytes,5,opt,name=loadStats" json:"loadStats,omitempty"` 1275 XXX_unrecognized []byte `json:"-"` 1276 } 1277 1278 func (m *ResultOrException) Reset() { *m = ResultOrException{} } 1279 func (m *ResultOrException) String() string { return proto1.CompactTextString(m) } 1280 func (*ResultOrException) ProtoMessage() {} 1281 1282 func (m *ResultOrException) GetIndex() uint32 { 1283 if m != nil && m.Index != nil { 1284 return *m.Index 1285 } 1286 return 0 1287 } 1288 1289 func (m *ResultOrException) GetResult() *Result { 1290 if m != nil { 1291 return m.Result 1292 } 1293 return nil 1294 } 1295 1296 func (m *ResultOrException) GetException() *NameBytesPair { 1297 if m != nil { 1298 return m.Exception 1299 } 1300 return nil 1301 } 1302 1303 func (m *ResultOrException) GetServiceResult() *CoprocessorServiceResult { 1304 if m != nil { 1305 return m.ServiceResult 1306 } 1307 return nil 1308 } 1309 1310 func (m *ResultOrException) GetLoadStats() *RegionLoadStats { 1311 if m != nil { 1312 return m.LoadStats 1313 } 1314 return nil 1315 } 1316 1317 // * 1318 // The result of a RegionAction. 1319 type RegionActionResult struct { 1320 ResultOrException []*ResultOrException `protobuf:"bytes,1,rep,name=resultOrException" json:"resultOrException,omitempty"` 1321 // If the operation failed globally for this region, this exception is set 1322 Exception *NameBytesPair `protobuf:"bytes,2,opt,name=exception" json:"exception,omitempty"` 1323 XXX_unrecognized []byte `json:"-"` 1324 } 1325 1326 func (m *RegionActionResult) Reset() { *m = RegionActionResult{} } 1327 func (m *RegionActionResult) String() string { return proto1.CompactTextString(m) } 1328 func (*RegionActionResult) ProtoMessage() {} 1329 1330 func (m *RegionActionResult) GetResultOrException() []*ResultOrException { 1331 if m != nil { 1332 return m.ResultOrException 1333 } 1334 return nil 1335 } 1336 1337 func (m *RegionActionResult) GetException() *NameBytesPair { 1338 if m != nil { 1339 return m.Exception 1340 } 1341 return nil 1342 } 1343 1344 // * 1345 // Execute a list of actions on a given region in order. 1346 // Nothing prevents a request to contains a set of RegionAction on the same region. 1347 // For this reason, the matching between the MultiRequest and the MultiResponse is not 1348 // done by the region specifier but by keeping the order of the RegionActionResult vs. 1349 // the order of the RegionAction. 1350 type MultiRequest struct { 1351 RegionAction []*RegionAction `protobuf:"bytes,1,rep,name=regionAction" json:"regionAction,omitempty"` 1352 NonceGroup *uint64 `protobuf:"varint,2,opt,name=nonceGroup" json:"nonceGroup,omitempty"` 1353 Condition *Condition `protobuf:"bytes,3,opt,name=condition" json:"condition,omitempty"` 1354 XXX_unrecognized []byte `json:"-"` 1355 } 1356 1357 func (m *MultiRequest) Reset() { *m = MultiRequest{} } 1358 func (m *MultiRequest) String() string { return proto1.CompactTextString(m) } 1359 func (*MultiRequest) ProtoMessage() {} 1360 1361 func (m *MultiRequest) GetRegionAction() []*RegionAction { 1362 if m != nil { 1363 return m.RegionAction 1364 } 1365 return nil 1366 } 1367 1368 func (m *MultiRequest) GetNonceGroup() uint64 { 1369 if m != nil && m.NonceGroup != nil { 1370 return *m.NonceGroup 1371 } 1372 return 0 1373 } 1374 1375 func (m *MultiRequest) GetCondition() *Condition { 1376 if m != nil { 1377 return m.Condition 1378 } 1379 return nil 1380 } 1381 1382 type MultiResponse struct { 1383 RegionActionResult []*RegionActionResult `protobuf:"bytes,1,rep,name=regionActionResult" json:"regionActionResult,omitempty"` 1384 // used for mutate to indicate processed only 1385 Processed *bool `protobuf:"varint,2,opt,name=processed" json:"processed,omitempty"` 1386 XXX_unrecognized []byte `json:"-"` 1387 } 1388 1389 func (m *MultiResponse) Reset() { *m = MultiResponse{} } 1390 func (m *MultiResponse) String() string { return proto1.CompactTextString(m) } 1391 func (*MultiResponse) ProtoMessage() {} 1392 1393 func (m *MultiResponse) GetRegionActionResult() []*RegionActionResult { 1394 if m != nil { 1395 return m.RegionActionResult 1396 } 1397 return nil 1398 } 1399 1400 func (m *MultiResponse) GetProcessed() bool { 1401 if m != nil && m.Processed != nil { 1402 return *m.Processed 1403 } 1404 return false 1405 } 1406 1407 func init() { 1408 proto1.RegisterEnum("proto.MutationProto_Durability", MutationProto_Durability_name, MutationProto_Durability_value) 1409 proto1.RegisterEnum("proto.MutationProto_MutationType", MutationProto_MutationType_name, MutationProto_MutationType_value) 1410 proto1.RegisterEnum("proto.MutationProto_DeleteType", MutationProto_DeleteType_name, MutationProto_DeleteType_value) 1411 }