Skip to content

Commit 2b2183b

Browse files
committed
add override for new bigtable rpc
1 parent a22bd65 commit 2b2183b

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

google/cloud/bigtable/internal/bigtable_channel_refresh.cc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,13 @@ BigtableChannelRefresh::ReadModifyWriteRow(
7171
return child_->ReadModifyWriteRow(client_context, options, request);
7272
}
7373

74+
StatusOr<google::bigtable::v2::PrepareQueryResponse>
75+
BigtableChannelRefresh::PrepareQuery(
76+
grpc::ClientContext& client_context, Options const& options,
77+
google::bigtable::v2::PrepareQueryRequest const& request) {
78+
return child_->PrepareQuery(client_context, options, request);
79+
}
80+
7481
std::unique_ptr<google::cloud::internal::StreamingReadRpc<
7582
google::bigtable::v2::ExecuteQueryResponse>>
7683
BigtableChannelRefresh::ExecuteQuery(

google/cloud/bigtable/internal/bigtable_channel_refresh.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ class BigtableChannelRefresh : public BigtableStub {
7777
grpc::ClientContext& client_context, Options const& options,
7878
google::bigtable::v2::ReadModifyWriteRowRequest const& request) override;
7979

80+
StatusOr<google::bigtable::v2::PrepareQueryResponse> PrepareQuery(
81+
grpc::ClientContext& client, Options const& options,
82+
google::bigtable::v2::PrepareQueryRequest const& request) override;
83+
8084
std::unique_ptr<google::cloud::internal::StreamingReadRpc<
8185
google::bigtable::v2::ExecuteQueryResponse>>
8286
ExecuteQuery(

google/cloud/bigtable/testing/mock_bigtable_stub.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@ class MockBigtableStub : public bigtable_internal::BigtableStub {
6262
(grpc::ClientContext&, Options const&,
6363
google::bigtable::v2::ReadModifyWriteRowRequest const&),
6464
(override));
65+
MOCK_METHOD(StatusOr<google::bigtable::v2::PrepareQueryResponse>,
66+
PrepareQuery,
67+
(grpc::ClientContext&, Options const&,
68+
google::bigtable::v2::PrepareQueryRequest const&),
69+
(override));
6570
MOCK_METHOD(std::unique_ptr<google::cloud::internal::StreamingReadRpc<
6671
google::bigtable::v2::ExecuteQueryResponse>>,
6772
ExecuteQuery,

0 commit comments

Comments
 (0)