File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
google-cloud-spanner/src/main/java/com/google/cloud/spanner Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 2424import com .google .longrunning .Operation ;
2525import com .google .spanner .admin .database .v1 .CreateDatabaseMetadata ;
2626import com .google .spanner .admin .instance .v1 .AutoscalingConfig ;
27+ import com .google .spanner .admin .instance .v1 .Instance .Edition ;
2728import com .google .spanner .admin .instance .v1 .UpdateInstanceMetadata ;
2829import java .util .Map ;
2930
@@ -111,6 +112,12 @@ public Builder putAllLabels(Map<String, String> labels) {
111112 return this ;
112113 }
113114
115+ @ Override
116+ public Builder setEdition (Edition edition ) {
117+ infoBuilder .setEdition (edition );
118+ return this ;
119+ }
120+
114121 @ Override
115122 public Instance build () {
116123 return new Instance (this );
@@ -228,6 +235,7 @@ static Instance fromProto(
228235 .setCreateTime (Timestamp .fromProto (proto .getCreateTime ()))
229236 .setUpdateTime (Timestamp .fromProto (proto .getUpdateTime ()))
230237 .setAutoscalingConfig (proto .getAutoscalingConfig ())
238+ .setEdition (proto .getEdition ())
231239 .setProcessingUnits (proto .getProcessingUnits ());
232240 State state ;
233241 switch (proto .getState ()) {
You can’t perform that action at this time.
0 commit comments