@@ -83,6 +83,18 @@ public final class Backup extends com.google.api.client.json.GenericJson {
83
83
@ com .google .api .client .util .Key
84
84
private java .util .List <EncryptionInfo > encryptionInformation ;
85
85
86
+ /**
87
+ * Output only. For a backup in an incremental backup chain, this is the storage space needed to
88
+ * keep the data that has changed since the previous backup. For all other backups, this is always
89
+ * the size of the backup. This value may change if backups on the same chain get deleted or
90
+ * expired. This field can be used to calculate the total storage space used by a set of backups.
91
+ * For example, the total space used by all backups of a database can be computed by summing up
92
+ * this field.
93
+ * The value may be {@code null}.
94
+ */
95
+ @ com .google .api .client .util .Key @ com .google .api .client .json .JsonString
96
+ private java .lang .Long exclusiveSizeBytes ;
97
+
86
98
/**
87
99
* Required for the CreateBackup operation. The expiration time of the backup, with microseconds
88
100
* granularity that must be at least 6 hours and at most 366 days from the time the CreateBackup
@@ -93,6 +105,27 @@ public final class Backup extends com.google.api.client.json.GenericJson {
93
105
@ com .google .api .client .util .Key
94
106
private String expireTime ;
95
107
108
+ /**
109
+ * Output only. The number of bytes that will be freed by deleting this backup. This value will be
110
+ * zero if, for example, this backup is part of an incremental backup chain and younger backups in
111
+ * the chain require that we keep its data. For backups not in an incremental backup chain, this
112
+ * is always the size of the backup. This value may change if backups on the same chain get
113
+ * created, deleted or expired.
114
+ * The value may be {@code null}.
115
+ */
116
+ @ com .google .api .client .util .Key @ com .google .api .client .json .JsonString
117
+ private java .lang .Long freeableSizeBytes ;
118
+
119
+ /**
120
+ * Output only. Populated only for backups in an incremental backup chain. Backups share the same
121
+ * chain id if and only if they belong to the same incremental backup chain. Use this field to
122
+ * determine which backups are part of the same incremental backup chain. The ordering of backups
123
+ * in the chain can be determined by ordering the backup `version_time`.
124
+ * The value may be {@code null}.
125
+ */
126
+ @ com .google .api .client .util .Key
127
+ private java .lang .String incrementalBackupChainId ;
128
+
96
129
/**
97
130
* Output only. The max allowed expiration time of the backup, with microseconds granularity. A
98
131
* backup's expiration time can be configured in multiple APIs: CreateBackup, UpdateBackup,
@@ -115,6 +148,17 @@ public final class Backup extends com.google.api.client.json.GenericJson {
115
148
@ com .google .api .client .util .Key
116
149
private java .lang .String name ;
117
150
151
+ /**
152
+ * Output only. Data deleted at a time older than this is guaranteed not to be retained in order
153
+ * to support this backup. For a backup in an incremental backup chain, this is the version time
154
+ * of the oldest backup that exists or ever existed in the chain. For all other backups, this is
155
+ * the version time of the backup. This field can be used to understand what data is being
156
+ * retained by the backup system.
157
+ * The value may be {@code null}.
158
+ */
159
+ @ com .google .api .client .util .Key
160
+ private String oldestVersionTime ;
161
+
118
162
/**
119
163
* Output only. The names of the destination backups being created by copying this source backup.
120
164
* The backup names are of the form `projects//instances//backups/`. Referencing backups may exist
@@ -138,7 +182,8 @@ public final class Backup extends com.google.api.client.json.GenericJson {
138
182
private java .util .List <java .lang .String > referencingDatabases ;
139
183
140
184
/**
141
- * Output only. Size of the backup in bytes.
185
+ * Output only. Size of the backup in bytes. For a backup in an incremental backup chain, this is
186
+ * the sum of the `exclusive_size_bytes` of itself and all older backups in the chain.
142
187
* The value may be {@code null}.
143
188
*/
144
189
@ com .google .api .client .util .Key @ com .google .api .client .json .JsonString
@@ -286,6 +331,33 @@ public Backup setEncryptionInformation(java.util.List<EncryptionInfo> encryption
286
331
return this ;
287
332
}
288
333
334
+ /**
335
+ * Output only. For a backup in an incremental backup chain, this is the storage space needed to
336
+ * keep the data that has changed since the previous backup. For all other backups, this is always
337
+ * the size of the backup. This value may change if backups on the same chain get deleted or
338
+ * expired. This field can be used to calculate the total storage space used by a set of backups.
339
+ * For example, the total space used by all backups of a database can be computed by summing up
340
+ * this field.
341
+ * @return value or {@code null} for none
342
+ */
343
+ public java .lang .Long getExclusiveSizeBytes () {
344
+ return exclusiveSizeBytes ;
345
+ }
346
+
347
+ /**
348
+ * Output only. For a backup in an incremental backup chain, this is the storage space needed to
349
+ * keep the data that has changed since the previous backup. For all other backups, this is always
350
+ * the size of the backup. This value may change if backups on the same chain get deleted or
351
+ * expired. This field can be used to calculate the total storage space used by a set of backups.
352
+ * For example, the total space used by all backups of a database can be computed by summing up
353
+ * this field.
354
+ * @param exclusiveSizeBytes exclusiveSizeBytes or {@code null} for none
355
+ */
356
+ public Backup setExclusiveSizeBytes (java .lang .Long exclusiveSizeBytes ) {
357
+ this .exclusiveSizeBytes = exclusiveSizeBytes ;
358
+ return this ;
359
+ }
360
+
289
361
/**
290
362
* Required for the CreateBackup operation. The expiration time of the backup, with microseconds
291
363
* granularity that must be at least 6 hours and at most 366 days from the time the CreateBackup
@@ -309,6 +381,54 @@ public Backup setExpireTime(String expireTime) {
309
381
return this ;
310
382
}
311
383
384
+ /**
385
+ * Output only. The number of bytes that will be freed by deleting this backup. This value will be
386
+ * zero if, for example, this backup is part of an incremental backup chain and younger backups in
387
+ * the chain require that we keep its data. For backups not in an incremental backup chain, this
388
+ * is always the size of the backup. This value may change if backups on the same chain get
389
+ * created, deleted or expired.
390
+ * @return value or {@code null} for none
391
+ */
392
+ public java .lang .Long getFreeableSizeBytes () {
393
+ return freeableSizeBytes ;
394
+ }
395
+
396
+ /**
397
+ * Output only. The number of bytes that will be freed by deleting this backup. This value will be
398
+ * zero if, for example, this backup is part of an incremental backup chain and younger backups in
399
+ * the chain require that we keep its data. For backups not in an incremental backup chain, this
400
+ * is always the size of the backup. This value may change if backups on the same chain get
401
+ * created, deleted or expired.
402
+ * @param freeableSizeBytes freeableSizeBytes or {@code null} for none
403
+ */
404
+ public Backup setFreeableSizeBytes (java .lang .Long freeableSizeBytes ) {
405
+ this .freeableSizeBytes = freeableSizeBytes ;
406
+ return this ;
407
+ }
408
+
409
+ /**
410
+ * Output only. Populated only for backups in an incremental backup chain. Backups share the same
411
+ * chain id if and only if they belong to the same incremental backup chain. Use this field to
412
+ * determine which backups are part of the same incremental backup chain. The ordering of backups
413
+ * in the chain can be determined by ordering the backup `version_time`.
414
+ * @return value or {@code null} for none
415
+ */
416
+ public java .lang .String getIncrementalBackupChainId () {
417
+ return incrementalBackupChainId ;
418
+ }
419
+
420
+ /**
421
+ * Output only. Populated only for backups in an incremental backup chain. Backups share the same
422
+ * chain id if and only if they belong to the same incremental backup chain. Use this field to
423
+ * determine which backups are part of the same incremental backup chain. The ordering of backups
424
+ * in the chain can be determined by ordering the backup `version_time`.
425
+ * @param incrementalBackupChainId incrementalBackupChainId or {@code null} for none
426
+ */
427
+ public Backup setIncrementalBackupChainId (java .lang .String incrementalBackupChainId ) {
428
+ this .incrementalBackupChainId = incrementalBackupChainId ;
429
+ return this ;
430
+ }
431
+
312
432
/**
313
433
* Output only. The max allowed expiration time of the backup, with microseconds granularity. A
314
434
* backup's expiration time can be configured in multiple APIs: CreateBackup, UpdateBackup,
@@ -359,6 +479,31 @@ public Backup setName(java.lang.String name) {
359
479
return this ;
360
480
}
361
481
482
+ /**
483
+ * Output only. Data deleted at a time older than this is guaranteed not to be retained in order
484
+ * to support this backup. For a backup in an incremental backup chain, this is the version time
485
+ * of the oldest backup that exists or ever existed in the chain. For all other backups, this is
486
+ * the version time of the backup. This field can be used to understand what data is being
487
+ * retained by the backup system.
488
+ * @return value or {@code null} for none
489
+ */
490
+ public String getOldestVersionTime () {
491
+ return oldestVersionTime ;
492
+ }
493
+
494
+ /**
495
+ * Output only. Data deleted at a time older than this is guaranteed not to be retained in order
496
+ * to support this backup. For a backup in an incremental backup chain, this is the version time
497
+ * of the oldest backup that exists or ever existed in the chain. For all other backups, this is
498
+ * the version time of the backup. This field can be used to understand what data is being
499
+ * retained by the backup system.
500
+ * @param oldestVersionTime oldestVersionTime or {@code null} for none
501
+ */
502
+ public Backup setOldestVersionTime (String oldestVersionTime ) {
503
+ this .oldestVersionTime = oldestVersionTime ;
504
+ return this ;
505
+ }
506
+
362
507
/**
363
508
* Output only. The names of the destination backups being created by copying this source backup.
364
509
* The backup names are of the form `projects//instances//backups/`. Referencing backups may exist
@@ -410,15 +555,17 @@ public Backup setReferencingDatabases(java.util.List<java.lang.String> referenci
410
555
}
411
556
412
557
/**
413
- * Output only. Size of the backup in bytes.
558
+ * Output only. Size of the backup in bytes. For a backup in an incremental backup chain, this is
559
+ * the sum of the `exclusive_size_bytes` of itself and all older backups in the chain.
414
560
* @return value or {@code null} for none
415
561
*/
416
562
public java .lang .Long getSizeBytes () {
417
563
return sizeBytes ;
418
564
}
419
565
420
566
/**
421
- * Output only. Size of the backup in bytes.
567
+ * Output only. Size of the backup in bytes. For a backup in an incremental backup chain, this is
568
+ * the sum of the `exclusive_size_bytes` of itself and all older backups in the chain.
422
569
* @param sizeBytes sizeBytes or {@code null} for none
423
570
*/
424
571
public Backup setSizeBytes (java .lang .Long sizeBytes ) {
0 commit comments