diff --git a/google-cloud-bigquery/clirr-ignored-differences.xml b/google-cloud-bigquery/clirr-ignored-differences.xml
index 9c69fd6a6..e55ea7ea5 100644
--- a/google-cloud-bigquery/clirr-ignored-differences.xml
+++ b/google-cloud-bigquery/clirr-ignored-differences.xml
@@ -129,4 +129,9 @@
com/google/cloud/bigquery/StandardTableDefinition*
*BigLakeConfiguration(*)
-
\ No newline at end of file
+
+ 7005
+ com/google/cloud/bigquery/TableResult*
+ *setTotalRows(*)
+
+
diff --git a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/TableResult.java b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/TableResult.java
index 1b4b0e101..b60c8be5a 100644
--- a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/TableResult.java
+++ b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/TableResult.java
@@ -39,7 +39,18 @@ public abstract static class Builder {
* Sets the total number of rows in the complete result set, which can be more than the number
* of rows in the first page of results returned by {@link #getValues()}.
*/
- public abstract TableResult.Builder setTotalRows(Long totalRows);
+ public abstract TableResult.Builder setTotalRows(long totalRows);
+
+ /**
+ * Sets the total number of rows in the complete result set, which can be more than the number
+ * of rows in the first page of results returned by {@link #getValues()}.
+ *
+ * @deprecated use {@link setTotalRows(long)} instead.
+ */
+ @Deprecated
+ public TableResult.Builder setTotalRows(Long totalRows) {
+ return setTotalRows((long) totalRows);
+ }
public abstract TableResult.Builder setJobId(JobId jobId);