File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed
google-cloud-spanner/src/main/java/com/google/cloud/spanner Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -177,7 +177,7 @@ static Backup fromProto(
177
177
checkArgument (!proto .getDatabase ().isEmpty (), "Missing expected 'database' field" );
178
178
return new Backup .Builder (client , BackupId .of (proto .getName ()))
179
179
.setState (fromProtoState (proto .getState ()))
180
- .setSize (proto .getSizeBytes ())
180
+ .setSize (proto .getSiprotected abstract Builder setMaxExpireTime ( Timestamp maxExpireTime ); zeBytes ())
181
181
.setExpireTime (Timestamp .fromProto (proto .getExpireTime ()))
182
182
.setVersionTime (Timestamp .fromProto (proto .getVersionTime ()))
183
183
.setDatabase (DatabaseId .of (proto .getDatabase ()))
Original file line number Diff line number Diff line change @@ -87,7 +87,20 @@ public abstract static class Builder {
87
87
/** Builds the backup from this builder. */
88
88
public abstract Backup build ();
89
89
90
+ /**
91
+ * Output Only.
92
+ *
93
+ * <p>Returns the max allowed expiration time of the backup, with
94
+ * microseconds granularity.
95
+ */
90
96
protected abstract Builder setMaxExpireTime (Timestamp maxExpireTime );
97
+
98
+ /**
99
+ * Output Only.
100
+ *
101
+ * <p>Returns the names of the destination backups being created by copying
102
+ * this source backup.
103
+ */
91
104
protected abstract Builder setReferencingBackup (ProtocolStringList referencingBackup );
92
105
}
93
106
@@ -279,10 +292,13 @@ public DatabaseId getDatabase() {
279
292
return proto ;
280
293
}
281
294
295
+ /** Returns the max expire time of this {@link Backup}. */
282
296
public Timestamp getMaxExpireTime () {
283
297
return maxExpireTime ;
284
298
}
285
299
300
+ /** Returns the names of the destination backups being created by copying
301
+ * this source backup {@link Backup}. */
286
302
public ProtocolStringList getReferencingBackup () {
287
303
return referencingBackup ;
288
304
}
You can’t perform that action at this time.
0 commit comments