21
21
import com .google .cloud .spanner .encryption .BackupEncryptionConfig ;
22
22
import com .google .cloud .spanner .encryption .EncryptionInfo ;
23
23
import com .google .spanner .admin .database .v1 .Database ;
24
+
25
+ import javax .annotation .Nullable ;
24
26
import java .util .List ;
25
27
import java .util .Objects ;
26
- import javax .annotation .Nullable ;
27
28
28
29
/** Represents a Cloud Spanner database backup. */
29
30
public class BackupInfo {
@@ -100,7 +101,7 @@ protected Builder setMaxExpireTime(Timestamp maxExpireTime) {
100
101
*
101
102
* <p>Returns the names of the destination backups being created by copying this source backup.
102
103
*/
103
- protected Builder addAllReferencingBackups (List <String > referencingBackup ) {
104
+ protected Builder addAllReferencingBackups (List <String > referencingBackups ) {
104
105
throw new UnsupportedOperationException ("Unimplemented" );
105
106
}
106
107
}
@@ -116,7 +117,7 @@ abstract static class BuilderImpl extends Builder {
116
117
private EncryptionInfo encryptionInfo ;
117
118
private com .google .spanner .admin .database .v1 .Backup proto ;
118
119
private Timestamp maxExpireTime ;
119
- private List <String > referencingBackup ;
120
+ private List <String > referencingBackups ;
120
121
121
122
BuilderImpl (BackupId id ) {
122
123
this .id = Preconditions .checkNotNull (id );
@@ -133,7 +134,7 @@ abstract static class BuilderImpl extends Builder {
133
134
this .encryptionInfo = other .encryptionInfo ;
134
135
this .proto = other .proto ;
135
136
this .maxExpireTime = other .maxExpireTime ;
136
- this .referencingBackup = other .referencingBackup ;
137
+ this .referencingBackups = other .referencingBackups ;
137
138
}
138
139
139
140
@ Override
@@ -188,14 +189,14 @@ Builder setProto(@Nullable com.google.spanner.admin.database.v1.Backup proto) {
188
189
}
189
190
190
191
@ Override
191
- public Builder setMaxExpireTime (Timestamp maxExpireTime ) {
192
+ protected Builder setMaxExpireTime (Timestamp maxExpireTime ) {
192
193
this .maxExpireTime = Preconditions .checkNotNull (maxExpireTime );
193
194
return this ;
194
195
}
195
196
196
197
@ Override
197
- public Builder addAllReferencingBackups (List <String > referencingBackup ) {
198
- this .referencingBackup = Preconditions .checkNotNull (referencingBackup );
198
+ protected Builder addAllReferencingBackups (List <String > referencingBackups ) {
199
+ this .referencingBackups = Preconditions .checkNotNull (referencingBackups );
199
200
return this ;
200
201
}
201
202
}
@@ -220,7 +221,7 @@ public enum State {
220
221
private final EncryptionInfo encryptionInfo ;
221
222
private final com .google .spanner .admin .database .v1 .Backup proto ;
222
223
private final Timestamp maxExpireTime ;
223
- private final List <String > referencingBackup ;
224
+ private final List <String > referencingBackups ;
224
225
225
226
BackupInfo (BuilderImpl builder ) {
226
227
this .id = builder .id ;
@@ -233,7 +234,7 @@ public enum State {
233
234
this .database = builder .database ;
234
235
this .proto = builder .proto ;
235
236
this .maxExpireTime = builder .maxExpireTime ;
236
- this .referencingBackup = builder .referencingBackup ;
237
+ this .referencingBackups = builder .referencingBackups ;
237
238
}
238
239
239
240
/** Returns the backup id. */
@@ -301,8 +302,8 @@ public Timestamp getMaxExpireTime() {
301
302
* Returns the names of the destination backups being created by copying this source backup {@link
302
303
* Backup}.
303
304
*/
304
- public List <String > getReferencingBackup () {
305
- return referencingBackup ;
305
+ public List <String > getReferencingBackups () {
306
+ return referencingBackups ;
306
307
}
307
308
308
309
@ Override
@@ -323,7 +324,7 @@ public boolean equals(Object o) {
323
324
&& Objects .equals (versionTime , that .versionTime )
324
325
&& Objects .equals (database , that .database )
325
326
&& Objects .equals (maxExpireTime , that .maxExpireTime )
326
- && Objects .equals (referencingBackup , that .referencingBackup );
327
+ && Objects .equals (referencingBackups , that .referencingBackups );
327
328
}
328
329
329
330
@ Override
@@ -338,7 +339,7 @@ public int hashCode() {
338
339
versionTime ,
339
340
database ,
340
341
maxExpireTime ,
341
- referencingBackup );
342
+ referencingBackups );
342
343
}
343
344
344
345
@ Override
@@ -354,6 +355,6 @@ public String toString() {
354
355
versionTime ,
355
356
database ,
356
357
maxExpireTime ,
357
- referencingBackup );
358
+ referencingBackups );
358
359
}
359
360
}
0 commit comments