Skip to content

Commit 7b4cb5d

Browse files
committed
regen from latest discovery doc
1 parent 6f43028 commit 7b4cb5d

File tree

76 files changed

+11474
-184
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+11474
-184
lines changed

google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AcceleratorTypeClient.java

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -297,8 +297,7 @@ public final AggregatedListAcceleratorTypesPagedResponse aggregatedListAccelerat
297297

298298
// AUTO-GENERATED DOCUMENTATION AND METHOD
299299
/**
300-
* Returns the specified accelerator type. Get a list of available accelerator types by making a
301-
* list() request.
300+
* Returns the specified accelerator type.
302301
*
303302
* <p>Sample code:
304303
*
@@ -324,8 +323,7 @@ public final AcceleratorType getAcceleratorType(ProjectZoneAcceleratorTypeName a
324323

325324
// AUTO-GENERATED DOCUMENTATION AND METHOD
326325
/**
327-
* Returns the specified accelerator type. Get a list of available accelerator types by making a
328-
* list() request.
326+
* Returns the specified accelerator type.
329327
*
330328
* <p>Sample code:
331329
*
@@ -349,8 +347,7 @@ public final AcceleratorType getAcceleratorType(String acceleratorType) {
349347

350348
// AUTO-GENERATED DOCUMENTATION AND METHOD
351349
/**
352-
* Returns the specified accelerator type. Get a list of available accelerator types by making a
353-
* list() request.
350+
* Returns the specified accelerator type.
354351
*
355352
* <p>Sample code:
356353
*
@@ -374,8 +371,7 @@ public final AcceleratorType getAcceleratorType(GetAcceleratorTypeHttpRequest re
374371

375372
// AUTO-GENERATED DOCUMENTATION AND METHOD
376373
/**
377-
* Returns the specified accelerator type. Get a list of available accelerator types by making a
378-
* list() request.
374+
* Returns the specified accelerator type.
379375
*
380376
* <p>Sample code:
381377
*

google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AttachDiskInstanceHttpRequest.java

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ public final class AttachDiskInstanceHttpRequest implements ApiMessage {
3333
private final AttachedDisk attachedDiskResource;
3434
private final String callback;
3535
private final String fields;
36+
private final Boolean forceAttach;
3637
private final String instance;
3738
private final String key;
3839
private final String prettyPrint;
@@ -45,6 +46,7 @@ private AttachDiskInstanceHttpRequest() {
4546
this.attachedDiskResource = null;
4647
this.callback = null;
4748
this.fields = null;
49+
this.forceAttach = null;
4850
this.instance = null;
4951
this.key = null;
5052
this.prettyPrint = null;
@@ -58,6 +60,7 @@ private AttachDiskInstanceHttpRequest(
5860
AttachedDisk attachedDiskResource,
5961
String callback,
6062
String fields,
63+
Boolean forceAttach,
6164
String instance,
6265
String key,
6366
String prettyPrint,
@@ -68,6 +71,7 @@ private AttachDiskInstanceHttpRequest(
6871
this.attachedDiskResource = attachedDiskResource;
6972
this.callback = callback;
7073
this.fields = fields;
74+
this.forceAttach = forceAttach;
7175
this.instance = instance;
7276
this.key = key;
7377
this.prettyPrint = prettyPrint;
@@ -92,6 +96,9 @@ public Map<String, List<String>> populateFieldsInMap(Set<String> fieldNames) {
9296
if (fieldNames.contains("fields") && fields != null) {
9397
fieldMap.put("fields", Collections.singletonList(String.valueOf(fields)));
9498
}
99+
if (fieldNames.contains("forceAttach") && forceAttach != null) {
100+
fieldMap.put("forceAttach", Collections.singletonList(String.valueOf(forceAttach)));
101+
}
95102
if (fieldNames.contains("instance") && instance != null) {
96103
fieldMap.put("instance", Collections.singletonList(String.valueOf(instance)));
97104
}
@@ -127,6 +134,9 @@ public String getFieldStringValue(String fieldName) {
127134
if (fieldName.equals("fields")) {
128135
return String.valueOf(fields);
129136
}
137+
if (fieldName.equals("forceAttach")) {
138+
return String.valueOf(forceAttach);
139+
}
130140
if (fieldName.equals("instance")) {
131141
return String.valueOf(instance);
132142
}
@@ -170,6 +180,10 @@ public String getFields() {
170180
return fields;
171181
}
172182

183+
public Boolean getForceAttach() {
184+
return forceAttach;
185+
}
186+
173187
public String getInstance() {
174188
return instance;
175189
}
@@ -221,6 +235,7 @@ public static class Builder {
221235
private AttachedDisk attachedDiskResource;
222236
private String callback;
223237
private String fields;
238+
private Boolean forceAttach;
224239
private String instance;
225240
private String key;
226241
private String prettyPrint;
@@ -244,6 +259,9 @@ public Builder mergeFrom(AttachDiskInstanceHttpRequest other) {
244259
if (other.getFields() != null) {
245260
this.fields = other.fields;
246261
}
262+
if (other.getForceAttach() != null) {
263+
this.forceAttach = other.forceAttach;
264+
}
247265
if (other.getInstance() != null) {
248266
this.instance = other.instance;
249267
}
@@ -270,6 +288,7 @@ public Builder mergeFrom(AttachDiskInstanceHttpRequest other) {
270288
this.attachedDiskResource = source.attachedDiskResource;
271289
this.callback = source.callback;
272290
this.fields = source.fields;
291+
this.forceAttach = source.forceAttach;
273292
this.instance = source.instance;
274293
this.key = source.key;
275294
this.prettyPrint = source.prettyPrint;
@@ -314,6 +333,15 @@ public Builder setFields(String fields) {
314333
return this;
315334
}
316335

336+
public Boolean getForceAttach() {
337+
return forceAttach;
338+
}
339+
340+
public Builder setForceAttach(Boolean forceAttach) {
341+
this.forceAttach = forceAttach;
342+
return this;
343+
}
344+
317345
public String getInstance() {
318346
return instance;
319347
}
@@ -383,6 +411,7 @@ public AttachDiskInstanceHttpRequest build() {
383411
attachedDiskResource,
384412
callback,
385413
fields,
414+
forceAttach,
386415
instance,
387416
key,
388417
prettyPrint,
@@ -397,6 +426,7 @@ public Builder clone() {
397426
newBuilder.setAttachedDiskResource(this.attachedDiskResource);
398427
newBuilder.setCallback(this.callback);
399428
newBuilder.setFields(this.fields);
429+
newBuilder.setForceAttach(this.forceAttach);
400430
newBuilder.setInstance(this.instance);
401431
newBuilder.setKey(this.key);
402432
newBuilder.setPrettyPrint(this.prettyPrint);
@@ -422,6 +452,9 @@ public String toString() {
422452
+ "fields="
423453
+ fields
424454
+ ", "
455+
+ "forceAttach="
456+
+ forceAttach
457+
+ ", "
425458
+ "instance="
426459
+ instance
427460
+ ", "
@@ -453,6 +486,7 @@ public boolean equals(Object o) {
453486
&& Objects.equals(this.attachedDiskResource, that.getAttachedDiskResource())
454487
&& Objects.equals(this.callback, that.getCallback())
455488
&& Objects.equals(this.fields, that.getFields())
489+
&& Objects.equals(this.forceAttach, that.getForceAttach())
456490
&& Objects.equals(this.instance, that.getInstance())
457491
&& Objects.equals(this.key, that.getKey())
458492
&& Objects.equals(this.prettyPrint, that.getPrettyPrint())
@@ -470,6 +504,7 @@ public int hashCode() {
470504
attachedDiskResource,
471505
callback,
472506
fields,
507+
forceAttach,
473508
instance,
474509
key,
475510
prettyPrint,

google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalerClient.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ public final UnaryCallable<DeleteAutoscalerHttpRequest, Operation> deleteAutosca
418418

419419
// AUTO-GENERATED DOCUMENTATION AND METHOD
420420
/**
421-
* Returns the specified autoscaler resource. Get a list of available autoscalers by making a
421+
* Returns the specified autoscaler resource. Gets a list of available autoscalers by making a
422422
* list() request.
423423
*
424424
* <p>Sample code:
@@ -445,7 +445,7 @@ public final Autoscaler getAutoscaler(ProjectZoneAutoscalerName autoscaler) {
445445

446446
// AUTO-GENERATED DOCUMENTATION AND METHOD
447447
/**
448-
* Returns the specified autoscaler resource. Get a list of available autoscalers by making a
448+
* Returns the specified autoscaler resource. Gets a list of available autoscalers by making a
449449
* list() request.
450450
*
451451
* <p>Sample code:
@@ -470,7 +470,7 @@ public final Autoscaler getAutoscaler(String autoscaler) {
470470

471471
// AUTO-GENERATED DOCUMENTATION AND METHOD
472472
/**
473-
* Returns the specified autoscaler resource. Get a list of available autoscalers by making a
473+
* Returns the specified autoscaler resource. Gets a list of available autoscalers by making a
474474
* list() request.
475475
*
476476
* <p>Sample code:
@@ -495,7 +495,7 @@ public final Autoscaler getAutoscaler(GetAutoscalerHttpRequest request) {
495495

496496
// AUTO-GENERATED DOCUMENTATION AND METHOD
497497
/**
498-
* Returns the specified autoscaler resource. Get a list of available autoscalers by making a
498+
* Returns the specified autoscaler resource. Gets a list of available autoscalers by making a
499499
* list() request.
500500
*
501501
* <p>Sample code:

google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendBucketClient.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -282,8 +282,8 @@ public final Operation deleteBackendBucket(DeleteBackendBucketHttpRequest reques
282282

283283
// AUTO-GENERATED DOCUMENTATION AND METHOD
284284
/**
285-
* Returns the specified BackendBucket resource. Get a list of available backend buckets by making
286-
* a list() request.
285+
* Returns the specified BackendBucket resource. Gets a list of available backend buckets by
286+
* making a list() request.
287287
*
288288
* <p>Sample code:
289289
*
@@ -309,8 +309,8 @@ public final BackendBucket getBackendBucket(ProjectGlobalBackendBucketName backe
309309

310310
// AUTO-GENERATED DOCUMENTATION AND METHOD
311311
/**
312-
* Returns the specified BackendBucket resource. Get a list of available backend buckets by making
313-
* a list() request.
312+
* Returns the specified BackendBucket resource. Gets a list of available backend buckets by
313+
* making a list() request.
314314
*
315315
* <p>Sample code:
316316
*
@@ -334,8 +334,8 @@ public final BackendBucket getBackendBucket(String backendBucket) {
334334

335335
// AUTO-GENERATED DOCUMENTATION AND METHOD
336336
/**
337-
* Returns the specified BackendBucket resource. Get a list of available backend buckets by making
338-
* a list() request.
337+
* Returns the specified BackendBucket resource. Gets a list of available backend buckets by
338+
* making a list() request.
339339
*
340340
* <p>Sample code:
341341
*
@@ -359,8 +359,8 @@ public final BackendBucket getBackendBucket(GetBackendBucketHttpRequest request)
359359

360360
// AUTO-GENERATED DOCUMENTATION AND METHOD
361361
/**
362-
* Returns the specified BackendBucket resource. Get a list of available backend buckets by making
363-
* a list() request.
362+
* Returns the specified BackendBucket resource. Gets a list of available backend buckets by
363+
* making a list() request.
364364
*
365365
* <p>Sample code:
366366
*

google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendServiceClient.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ public final Operation deleteBackendService(DeleteBackendServiceHttpRequest requ
428428

429429
// AUTO-GENERATED DOCUMENTATION AND METHOD
430430
/**
431-
* Returns the specified BackendService resource. Get a list of available backend services by
431+
* Returns the specified BackendService resource. Gets a list of available backend services by
432432
* making a list() request.
433433
*
434434
* <p>Sample code:
@@ -455,7 +455,7 @@ public final BackendService getBackendService(ProjectGlobalBackendServiceName ba
455455

456456
// AUTO-GENERATED DOCUMENTATION AND METHOD
457457
/**
458-
* Returns the specified BackendService resource. Get a list of available backend services by
458+
* Returns the specified BackendService resource. Gets a list of available backend services by
459459
* making a list() request.
460460
*
461461
* <p>Sample code:
@@ -480,7 +480,7 @@ public final BackendService getBackendService(String backendService) {
480480

481481
// AUTO-GENERATED DOCUMENTATION AND METHOD
482482
/**
483-
* Returns the specified BackendService resource. Get a list of available backend services by
483+
* Returns the specified BackendService resource. Gets a list of available backend services by
484484
* making a list() request.
485485
*
486486
* <p>Sample code:
@@ -505,7 +505,7 @@ public final BackendService getBackendService(GetBackendServiceHttpRequest reque
505505

506506
// AUTO-GENERATED DOCUMENTATION AND METHOD
507507
/**
508-
* Returns the specified BackendService resource. Get a list of available backend services by
508+
* Returns the specified BackendService resource. Gets a list of available backend services by
509509
* making a list() request.
510510
*
511511
* <p>Sample code:

0 commit comments

Comments
 (0)