@@ -50,6 +50,15 @@ public com.google.api.services.compute.model.Zone apply(Zone region) {
5050
5151 private static final long serialVersionUID = 6113636504417213010L ;
5252
53+ private final ZoneId zoneId ;
54+ private final BigInteger id ;
55+ private final String creationTimestamp ;
56+ private final String description ;
57+ private final String selfLink ;
58+ private final Status status ;
59+ private final List <MaintenanceWindow > maintenanceWindows ;
60+ private final RegionId region ;
61+
5362 /**
5463 * Status of the region.
5564 */
@@ -166,19 +175,10 @@ static MaintenanceWindow fromPb(MaintenanceWindows windowPb) {
166175 }
167176 }
168177
169- private final ZoneId zoneId ;
170- private final Long id ;
171- private final String creationTimestamp ;
172- private final String description ;
173- private final String selfLink ;
174- private final Status status ;
175- private final List <MaintenanceWindow > maintenanceWindows ;
176- private final RegionId region ;
177-
178178 static final class Builder {
179179
180180 private ZoneId zoneId ;
181- private Long id ;
181+ private BigInteger id ;
182182 private String creationTimestamp ;
183183 private String description ;
184184 private String selfLink ;
@@ -193,7 +193,7 @@ Builder zoneId(ZoneId zoneId) {
193193 return this ;
194194 }
195195
196- Builder id (Long id ) {
196+ Builder id (BigInteger id ) {
197197 this .id = id ;
198198 return this ;
199199 }
@@ -270,7 +270,7 @@ public String description() {
270270 /**
271271 * Returns an unique identifier for the zone; defined by the service.
272272 */
273- public Long id () {
273+ public BigInteger id () {
274274 return id ;
275275 }
276276
@@ -333,7 +333,7 @@ public boolean equals(Object obj) {
333333 com .google .api .services .compute .model .Zone toPb () {
334334 com .google .api .services .compute .model .Zone zonePb =
335335 new com .google .api .services .compute .model .Zone ();
336- zonePb .setId (BigInteger . valueOf ( id ) );
336+ zonePb .setId (id );
337337 zonePb .setCreationTimestamp (creationTimestamp );
338338 zonePb .setName (zoneId .zone ());
339339 zonePb .setDescription (description );
@@ -356,9 +356,7 @@ static Builder builder() {
356356 static Zone fromPb (com .google .api .services .compute .model .Zone zonePb ) {
357357 Builder builder = builder ();
358358 builder .zoneId (ZoneId .fromUrl (zonePb .getSelfLink ()));
359- if (zonePb .getId () != null ) {
360- builder .id (zonePb .getId ().longValue ());
361- }
359+ builder .id (zonePb .getId ());
362360 builder .creationTimestamp (zonePb .getCreationTimestamp ());
363361 builder .description (zonePb .getDescription ());
364362 builder .selfLink (zonePb .getSelfLink ());
0 commit comments