|
17 | 17 |
|
18 | 18 | import com.google.api.core.BetaApi; |
19 | 19 | import com.google.api.gax.httpjson.ApiMessage; |
20 | | -import java.util.ArrayList; |
| 20 | +import java.util.LinkedList; |
21 | 21 | import java.util.List; |
22 | 22 | import java.util.Objects; |
23 | 23 | import javax.annotation.Generated; |
@@ -334,13 +334,16 @@ public List<GuestOsFeature> getGuestOsFeaturesList() { |
334 | 334 |
|
335 | 335 | public Builder addAllGuestOsFeatures(List<GuestOsFeature> guestOsFeatures) { |
336 | 336 | if (this.guestOsFeatures == null) { |
337 | | - this.guestOsFeatures = new ArrayList<>(guestOsFeatures.size()); |
| 337 | + this.guestOsFeatures = new LinkedList<>(); |
338 | 338 | } |
339 | 339 | this.guestOsFeatures.addAll(guestOsFeatures); |
340 | 340 | return this; |
341 | 341 | } |
342 | 342 |
|
343 | 343 | public Builder addGuestOsFeatures(GuestOsFeature guestOsFeatures) { |
| 344 | + if (this.guestOsFeatures == null) { |
| 345 | + this.guestOsFeatures = new LinkedList<>(); |
| 346 | + } |
344 | 347 | this.guestOsFeatures.add(guestOsFeatures); |
345 | 348 | return this; |
346 | 349 | } |
@@ -387,13 +390,16 @@ public List<String> getLicensesList() { |
387 | 390 |
|
388 | 391 | public Builder addAllLicenses(List<String> licenses) { |
389 | 392 | if (this.licenses == null) { |
390 | | - this.licenses = new ArrayList<>(licenses.size()); |
| 393 | + this.licenses = new LinkedList<>(); |
391 | 394 | } |
392 | 395 | this.licenses.addAll(licenses); |
393 | 396 | return this; |
394 | 397 | } |
395 | 398 |
|
396 | 399 | public Builder addLicenses(String licenses) { |
| 400 | + if (this.licenses == null) { |
| 401 | + this.licenses = new LinkedList<>(); |
| 402 | + } |
397 | 403 | this.licenses.add(licenses); |
398 | 404 | return this; |
399 | 405 | } |
|
0 commit comments