From ddacb0bb5c2bcdcfd486e46b190e9f42b7621443 Mon Sep 17 00:00:00 2001 From: Rahul Kesharawni Date: Thu, 10 Jan 2019 15:25:27 +0530 Subject: [PATCH 1/2] exposing ReadRowSettings thru BigtableDataSettings --- .../cloud/bigtable/data/v2/BigtableDataSettings.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/BigtableDataSettings.java b/google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/BigtableDataSettings.java index 58991620a52b..86c5356f4ab9 100644 --- a/google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/BigtableDataSettings.java +++ b/google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/BigtableDataSettings.java @@ -97,6 +97,11 @@ public ServerStreamingCallSettings readRowsSettings() { return getTypedStubSettings().readRowsSettings(); } + /** Returns the object with the settings used for point reads via ReadRows. */ + public UnaryCallSettings readRowSettings() { + return getTypedStubSettings().readRowSettings(); + } + /** Returns the object with the settings used for calls to sampleRowKeys. */ public UnaryCallSettings> sampleRowKeysSettings() { return getTypedStubSettings().sampleRowKeysSettings(); @@ -227,6 +232,11 @@ public ServerStreamingCallSettings.Builder readRowsSettings() { return getTypedStubSettings().readRowsSettings(); } + /** Returns the builder for the settings used for point reads using readRow. */ + public UnaryCallSettings.Builder readRowSettings() { + return getTypedStubSettings().readRowSettings(); + } + /** Returns the builder for the settings used for calls to SampleRowKeysSettings. */ public UnaryCallSettings.Builder> sampleRowKeysSettings() { return getTypedStubSettings().sampleRowKeysSettings(); From fc97294f19487d9e622adace9ef47a57e7412584 Mon Sep 17 00:00:00 2001 From: Rahul Kesharawni Date: Thu, 10 Jan 2019 20:38:57 +0530 Subject: [PATCH 2/2] fixed typo error --- .../com/google/cloud/bigtable/data/v2/BigtableDataSettings.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/BigtableDataSettings.java b/google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/BigtableDataSettings.java index 86c5356f4ab9..cf7fd5255c8d 100644 --- a/google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/BigtableDataSettings.java +++ b/google-cloud-clients/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/BigtableDataSettings.java @@ -97,7 +97,7 @@ public ServerStreamingCallSettings readRowsSettings() { return getTypedStubSettings().readRowsSettings(); } - /** Returns the object with the settings used for point reads via ReadRows. */ + /** Returns the object with the settings used for point reads via ReadRow. */ public UnaryCallSettings readRowSettings() { return getTypedStubSettings().readRowSettings(); }