Commit 5060696
authored
feat: add value_bitmask_filter to the read API (#16898)
This PR was created outside of librarian due to b/501132869. b/501132869
should be resolved soon. In the meantime, we need to publish
`value_bitmask_filter` to avoid blocking other teams.
Steps used to create this PR
- Clone
[googleapis/googleapis](https://github.com/googleapis/googleapis) and
checkout the last generated commit
`a6cbf809c4c165e618ee23a059442af90a80a0f5` which matches what we have in
.librarian/state.yaml
https://github.com/googleapis/google-cloud-python/blob/8fa0f81cb35f93210ffb2020a8bc822a9eee5ec4/.librarian/state.yaml#L1169
- Apply this diff
```
(py392) partheniou@partheniou-vm-3:~/git/googleapis$ git diff
diff --git a/google/bigtable/v2/data.proto b/google/bigtable/v2/data.proto
index 8320a0c22f..af354b05a2 100644
--- a/google/bigtable/v2/data.proto
+++ b/google/bigtable/v2/data.proto
@@ -255,6 +255,15 @@ message ValueRange {
}
}
+// Restricts the output to cells whose values match the given bitmask.
+message ValueBitmask {
+ // Required. Mask applied to the value.
+ // Evaluated as: `(value & mask) == mask`
+ // The mask length must exactly match the value length, otherwise the cell is
+ // not considered a match.
+ bytes mask = 1 [(google.api.field_behavior) = REQUIRED];
+}
+
// Takes a row as input and produces an alternate view of the row based on
// specified rules. For example, a RowFilter might trim down a row to include
// just the cells from columns matching a given regular expression, or might
@@ -514,6 +523,12 @@ message RowFilter {
// will be applied to separate copies of the input. This may be relaxed in
// the future.
string apply_label_transformer = 19;
+
+ // Matches only cells with values that satisfy the condition `(value & mask)
+ // == mask`.
+ // The mask length must exactly match the value length, otherwise the cell
+ // is not considered a match.
+ ValueBitmask value_bitmask_filter = 20;
}
}
```
- Clone this repo. Checkout commit
`6cb5af5227e09e99ee12bb3542374f683b75d4b4` which is the last commit
where generation was run:
https://github.com/googleapis/google-cloud-python/commits/main/packages/google-cloud-bigtable
- Run `legacylibrarian generate
--api-source=<path/to/clone/of/googleapis>
--library=google-cloud-bigtable` to regenerate the library using the
local version of googleapis
- Revert changes to `.librarian/state.yaml`
Closes #168841 parent 83bffc2 commit 5060696
3 files changed
Lines changed: 36 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| 83 | + | |
83 | 84 | | |
84 | 85 | | |
85 | 86 | | |
| |||
245 | 246 | | |
246 | 247 | | |
247 | 248 | | |
| 249 | + | |
248 | 250 | | |
249 | 251 | | |
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
| |||
132 | 133 | | |
133 | 134 | | |
134 | 135 | | |
| 136 | + | |
135 | 137 | | |
136 | 138 | | |
137 | 139 | | |
| |||
Lines changed: 32 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| |||
558 | 559 | | |
559 | 560 | | |
560 | 561 | | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
561 | 580 | | |
562 | 581 | | |
563 | 582 | | |
| |||
805 | 824 | | |
806 | 825 | | |
807 | 826 | | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
808 | 834 | | |
809 | 835 | | |
810 | 836 | | |
| |||
1012 | 1038 | | |
1013 | 1039 | | |
1014 | 1040 | | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
1015 | 1047 | | |
1016 | 1048 | | |
1017 | 1049 | | |
| |||
0 commit comments