Skip to content

Commit 7f3ab97

Browse files
authored
Regenerate compute (#3642)
1 parent 9f1a96b commit 7f3ab97

File tree

43 files changed

+10692
-12
lines changed

Some content is hidden

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

43 files changed

+10692
-12
lines changed

google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AddRuleSecurityPolicyHttpRequest.java

Lines changed: 413 additions & 0 deletions
Large diffs are not rendered by default.

google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AttachedDiskInitializeParams.java

Lines changed: 39 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
@Generated("by GAPIC")
2727
@BetaApi
2828
public final class AttachedDiskInitializeParams implements ApiMessage {
29+
private final String description;
2930
private final String diskName;
3031
private final String diskSizeGb;
3132
private final String diskType;
@@ -34,6 +35,7 @@ public final class AttachedDiskInitializeParams implements ApiMessage {
3435
private final CustomerEncryptionKey sourceImageEncryptionKey;
3536

3637
private AttachedDiskInitializeParams() {
38+
this.description = null;
3739
this.diskName = null;
3840
this.diskSizeGb = null;
3941
this.diskType = null;
@@ -43,12 +45,14 @@ private AttachedDiskInitializeParams() {
4345
}
4446

4547
private AttachedDiskInitializeParams(
48+
String description,
4649
String diskName,
4750
String diskSizeGb,
4851
String diskType,
4952
Map<String, String> labels,
5053
String sourceImage,
5154
CustomerEncryptionKey sourceImageEncryptionKey) {
55+
this.description = description;
5256
this.diskName = diskName;
5357
this.diskSizeGb = diskSizeGb;
5458
this.diskType = diskType;
@@ -59,6 +63,9 @@ private AttachedDiskInitializeParams(
5963

6064
@Override
6165
public Object getFieldValue(String fieldName) {
66+
if (fieldName.equals("description")) {
67+
return description;
68+
}
6269
if (fieldName.equals("diskName")) {
6370
return diskName;
6471
}
@@ -92,6 +99,10 @@ public List<String> getFieldMask() {
9299
return null;
93100
}
94101

102+
public String getDescription() {
103+
return description;
104+
}
105+
95106
public String getDiskName() {
96107
return diskName;
97108
}
@@ -139,6 +150,7 @@ public static AttachedDiskInitializeParams getDefaultInstance() {
139150
}
140151

141152
public static class Builder {
153+
private String description;
142154
private String diskName;
143155
private String diskSizeGb;
144156
private String diskType;
@@ -150,6 +162,9 @@ public static class Builder {
150162

151163
public Builder mergeFrom(AttachedDiskInitializeParams other) {
152164
if (other == AttachedDiskInitializeParams.getDefaultInstance()) return this;
165+
if (other.getDescription() != null) {
166+
this.description = other.description;
167+
}
153168
if (other.getDiskName() != null) {
154169
this.diskName = other.diskName;
155170
}
@@ -172,6 +187,7 @@ public Builder mergeFrom(AttachedDiskInitializeParams other) {
172187
}
173188

174189
Builder(AttachedDiskInitializeParams source) {
190+
this.description = source.description;
175191
this.diskName = source.diskName;
176192
this.diskSizeGb = source.diskSizeGb;
177193
this.diskType = source.diskType;
@@ -180,6 +196,15 @@ public Builder mergeFrom(AttachedDiskInitializeParams other) {
180196
this.sourceImageEncryptionKey = source.sourceImageEncryptionKey;
181197
}
182198

199+
public String getDescription() {
200+
return description;
201+
}
202+
203+
public Builder setDescription(String description) {
204+
this.description = description;
205+
return this;
206+
}
207+
183208
public String getDiskName() {
184209
return diskName;
185210
}
@@ -237,11 +262,18 @@ public Builder setSourceImageEncryptionKey(CustomerEncryptionKey sourceImageEncr
237262
public AttachedDiskInitializeParams build() {
238263

239264
return new AttachedDiskInitializeParams(
240-
diskName, diskSizeGb, diskType, labels, sourceImage, sourceImageEncryptionKey);
265+
description,
266+
diskName,
267+
diskSizeGb,
268+
diskType,
269+
labels,
270+
sourceImage,
271+
sourceImageEncryptionKey);
241272
}
242273

243274
public Builder clone() {
244275
Builder newBuilder = new Builder();
276+
newBuilder.setDescription(this.description);
245277
newBuilder.setDiskName(this.diskName);
246278
newBuilder.setDiskSizeGb(this.diskSizeGb);
247279
newBuilder.setDiskType(this.diskType);
@@ -255,6 +287,9 @@ public Builder clone() {
255287
@Override
256288
public String toString() {
257289
return "AttachedDiskInitializeParams{"
290+
+ "description="
291+
+ description
292+
+ ", "
258293
+ "diskName="
259294
+ diskName
260295
+ ", "
@@ -282,7 +317,8 @@ public boolean equals(Object o) {
282317
}
283318
if (o instanceof AttachedDiskInitializeParams) {
284319
AttachedDiskInitializeParams that = (AttachedDiskInitializeParams) o;
285-
return Objects.equals(this.diskName, that.getDiskName())
320+
return Objects.equals(this.description, that.getDescription())
321+
&& Objects.equals(this.diskName, that.getDiskName())
286322
&& Objects.equals(this.diskSizeGb, that.getDiskSizeGb())
287323
&& Objects.equals(this.diskType, that.getDiskType())
288324
&& Objects.equals(this.labels, that.getLabelsMap())
@@ -295,6 +331,6 @@ public boolean equals(Object o) {
295331
@Override
296332
public int hashCode() {
297333
return Objects.hash(
298-
diskName, diskSizeGb, diskType, labels, sourceImage, sourceImageEncryptionKey);
334+
description, diskName, diskSizeGb, diskType, labels, sourceImage, sourceImageEncryptionKey);
299335
}
300336
}

google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/BackendService.java

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ public final class BackendService implements ApiMessage {
4444
private final String portName;
4545
private final String protocol;
4646
private final String region;
47+
private final String securityPolicy;
4748
private final String selfLink;
4849
private final String sessionAffinity;
4950
private final Integer timeoutSec;
@@ -67,6 +68,7 @@ private BackendService() {
6768
this.portName = null;
6869
this.protocol = null;
6970
this.region = null;
71+
this.securityPolicy = null;
7072
this.selfLink = null;
7173
this.sessionAffinity = null;
7274
this.timeoutSec = null;
@@ -91,6 +93,7 @@ private BackendService(
9193
String portName,
9294
String protocol,
9395
String region,
96+
String securityPolicy,
9497
String selfLink,
9598
String sessionAffinity,
9699
Integer timeoutSec) {
@@ -112,6 +115,7 @@ private BackendService(
112115
this.portName = portName;
113116
this.protocol = protocol;
114117
this.region = region;
118+
this.securityPolicy = securityPolicy;
115119
this.selfLink = selfLink;
116120
this.sessionAffinity = sessionAffinity;
117121
this.timeoutSec = timeoutSec;
@@ -173,6 +177,9 @@ public Object getFieldValue(String fieldName) {
173177
if (fieldName.equals("region")) {
174178
return region;
175179
}
180+
if (fieldName.equals("securityPolicy")) {
181+
return securityPolicy;
182+
}
176183
if (fieldName.equals("selfLink")) {
177184
return selfLink;
178185
}
@@ -269,6 +276,10 @@ public String getRegion() {
269276
return region;
270277
}
271278

279+
public String getSecurityPolicy() {
280+
return securityPolicy;
281+
}
282+
272283
public String getSelfLink() {
273284
return selfLink;
274285
}
@@ -322,6 +333,7 @@ public static class Builder {
322333
private String portName;
323334
private String protocol;
324335
private String region;
336+
private String securityPolicy;
325337
private String selfLink;
326338
private String sessionAffinity;
327339
private Integer timeoutSec;
@@ -384,6 +396,9 @@ public Builder mergeFrom(BackendService other) {
384396
if (other.getRegion() != null) {
385397
this.region = other.region;
386398
}
399+
if (other.getSecurityPolicy() != null) {
400+
this.securityPolicy = other.securityPolicy;
401+
}
387402
if (other.getSelfLink() != null) {
388403
this.selfLink = other.selfLink;
389404
}
@@ -415,6 +430,7 @@ public Builder mergeFrom(BackendService other) {
415430
this.portName = source.portName;
416431
this.protocol = source.protocol;
417432
this.region = source.region;
433+
this.securityPolicy = source.securityPolicy;
418434
this.selfLink = source.selfLink;
419435
this.sessionAffinity = source.sessionAffinity;
420436
this.timeoutSec = source.timeoutSec;
@@ -604,6 +620,15 @@ public Builder setRegion(String region) {
604620
return this;
605621
}
606622

623+
public String getSecurityPolicy() {
624+
return securityPolicy;
625+
}
626+
627+
public Builder setSecurityPolicy(String securityPolicy) {
628+
this.securityPolicy = securityPolicy;
629+
return this;
630+
}
631+
607632
public String getSelfLink() {
608633
return selfLink;
609634
}
@@ -652,6 +677,7 @@ public BackendService build() {
652677
portName,
653678
protocol,
654679
region,
680+
securityPolicy,
655681
selfLink,
656682
sessionAffinity,
657683
timeoutSec);
@@ -677,6 +703,7 @@ public Builder clone() {
677703
newBuilder.setPortName(this.portName);
678704
newBuilder.setProtocol(this.protocol);
679705
newBuilder.setRegion(this.region);
706+
newBuilder.setSecurityPolicy(this.securityPolicy);
680707
newBuilder.setSelfLink(this.selfLink);
681708
newBuilder.setSessionAffinity(this.sessionAffinity);
682709
newBuilder.setTimeoutSec(this.timeoutSec);
@@ -741,6 +768,9 @@ public String toString() {
741768
+ "region="
742769
+ region
743770
+ ", "
771+
+ "securityPolicy="
772+
+ securityPolicy
773+
+ ", "
744774
+ "selfLink="
745775
+ selfLink
746776
+ ", "
@@ -777,6 +807,7 @@ public boolean equals(Object o) {
777807
&& Objects.equals(this.portName, that.getPortName())
778808
&& Objects.equals(this.protocol, that.getProtocol())
779809
&& Objects.equals(this.region, that.getRegion())
810+
&& Objects.equals(this.securityPolicy, that.getSecurityPolicy())
780811
&& Objects.equals(this.selfLink, that.getSelfLink())
781812
&& Objects.equals(this.sessionAffinity, that.getSessionAffinity())
782813
&& Objects.equals(this.timeoutSec, that.getTimeoutSec());
@@ -805,6 +836,7 @@ public int hashCode() {
805836
portName,
806837
protocol,
807838
region,
839+
securityPolicy,
808840
selfLink,
809841
sessionAffinity,
810842
timeoutSec);

0 commit comments

Comments
 (0)