@@ -132,6 +132,20 @@ public abstract static class Builder
132
132
133
133
public abstract Builder setNumLongTermBytes (Long numLongTermBytes );
134
134
135
+ public abstract Builder setNumTimeTravelPhysicalBytes (Long numTimeTravelPhysicalBytes );
136
+
137
+ public abstract Builder setNumTotalLogicalBytes (Long numTotalLogicalBytes );
138
+
139
+ public abstract Builder setNumActiveLogicalBytes (Long numActiveLogicalBytes );
140
+
141
+ public abstract Builder setNumLongTermLogicalBytes (Long numLongTermLogicalBytes );
142
+
143
+ public abstract Builder setNumTotalPhysicalBytes (Long numTotalPhysicalBytes );
144
+
145
+ public abstract Builder setNumActivePhysicalBytes (Long numActivePhysicalBytes );
146
+
147
+ public abstract Builder setNumLongTermPhysicalBytes (Long numLongTermPhysicalBytes );
148
+
135
149
public abstract Builder setNumRows (Long numRows );
136
150
137
151
public abstract Builder setLocation (String location );
@@ -180,6 +194,62 @@ public abstract static class Builder
180
194
@ Nullable
181
195
public abstract Long getNumLongTermBytes ();
182
196
197
+ /**
198
+ * Returns the number of time travel physical bytes.
199
+ *
200
+ * @see <a href="https://cloud.google.com/bigquery/pricing#storage">Storage Pricing</a>
201
+ */
202
+ @ Nullable
203
+ public abstract Long getNumTimeTravelPhysicalBytes ();
204
+
205
+ /**
206
+ * Returns the number of total logical bytes.
207
+ *
208
+ * @see <a href="https://cloud.google.com/bigquery/pricing#storage">Storage Pricing</a>
209
+ */
210
+ @ Nullable
211
+ public abstract Long getNumTotalLogicalBytes ();
212
+
213
+ /**
214
+ * Returns the number of active logical bytes.
215
+ *
216
+ * @see <a href="https://cloud.google.com/bigquery/pricing#storage">Storage Pricing</a>
217
+ */
218
+ @ Nullable
219
+ public abstract Long getNumActiveLogicalBytes ();
220
+
221
+ /**
222
+ * Returns the number of long term logical bytes.
223
+ *
224
+ * @see <a href="https://cloud.google.com/bigquery/pricing#storage">Storage Pricing</a>
225
+ */
226
+ @ Nullable
227
+ public abstract Long getNumLongTermLogicalBytes ();
228
+
229
+ /**
230
+ * Returns the number of total physical bytes.
231
+ *
232
+ * @see <a href="https://cloud.google.com/bigquery/pricing#storage">Storage Pricing</a>
233
+ */
234
+ @ Nullable
235
+ public abstract Long getNumTotalPhysicalBytes ();
236
+
237
+ /**
238
+ * Returns the number of active physical bytes.
239
+ *
240
+ * @see <a href="https://cloud.google.com/bigquery/pricing#storage">Storage Pricing</a>
241
+ */
242
+ @ Nullable
243
+ public abstract Long getNumActivePhysicalBytes ();
244
+
245
+ /**
246
+ * Returns the number of long term physical bytes.
247
+ *
248
+ * @see <a href="https://cloud.google.com/bigquery/pricing#storage">Storage Pricing</a>
249
+ */
250
+ @ Nullable
251
+ public abstract Long getNumLongTermPhysicalBytes ();
252
+
183
253
/** Returns the number of rows in this table, excluding any data in the streaming buffer. */
184
254
@ Nullable
185
255
public abstract Long getNumRows ();
@@ -255,6 +325,13 @@ Table toPb() {
255
325
}
256
326
tablePb .setNumBytes (getNumBytes ());
257
327
tablePb .setNumLongTermBytes (getNumLongTermBytes ());
328
+ tablePb .setNumTimeTravelPhysicalBytes (getNumTimeTravelPhysicalBytes ());
329
+ tablePb .setNumTotalLogicalBytes (getNumTotalLogicalBytes ());
330
+ tablePb .setNumActiveLogicalBytes (getNumActiveLogicalBytes ());
331
+ tablePb .setNumLongTermLogicalBytes (getNumLongTermLogicalBytes ());
332
+ tablePb .setNumTotalPhysicalBytes (getNumTotalPhysicalBytes ());
333
+ tablePb .setNumActivePhysicalBytes (getNumActivePhysicalBytes ());
334
+ tablePb .setNumLongTermPhysicalBytes (getNumLongTermPhysicalBytes ());
258
335
tablePb .setLocation (getLocation ());
259
336
if (getStreamingBuffer () != null ) {
260
337
tablePb .setStreamingBuffer (getStreamingBuffer ().toPb ());
@@ -308,6 +385,27 @@ static StandardTableDefinition fromPb(Table tablePb) {
308
385
if (tablePb .getNumLongTermBytes () != null ) {
309
386
builder .setNumLongTermBytes (tablePb .getNumLongTermBytes ());
310
387
}
388
+ if (tablePb .getNumTimeTravelPhysicalBytes () != null ) {
389
+ builder .setNumTimeTravelPhysicalBytes (tablePb .getNumTimeTravelPhysicalBytes ());
390
+ }
391
+ if (tablePb .getNumTotalLogicalBytes () != null ) {
392
+ builder .setNumTotalLogicalBytes (tablePb .getNumTotalLogicalBytes ());
393
+ }
394
+ if (tablePb .getNumActiveLogicalBytes () != null ) {
395
+ builder .setNumActiveLogicalBytes (tablePb .getNumActiveLogicalBytes ());
396
+ }
397
+ if (tablePb .getNumLongTermLogicalBytes () != null ) {
398
+ builder .setNumLongTermLogicalBytes (tablePb .getNumLongTermLogicalBytes ());
399
+ }
400
+ if (tablePb .getNumTotalPhysicalBytes () != null ) {
401
+ builder .setNumTotalPhysicalBytes (tablePb .getNumTotalPhysicalBytes ());
402
+ }
403
+ if (tablePb .getNumActivePhysicalBytes () != null ) {
404
+ builder .setNumActivePhysicalBytes (tablePb .getNumActivePhysicalBytes ());
405
+ }
406
+ if (tablePb .getNumLongTermPhysicalBytes () != null ) {
407
+ builder .setNumLongTermPhysicalBytes (tablePb .getNumLongTermPhysicalBytes ());
408
+ }
311
409
if (tablePb .getTableConstraints () != null ) {
312
410
builder .setTableConstraints (TableConstraints .fromPb (tablePb .getTableConstraints ()));
313
411
}
0 commit comments