Skip to content

Commit 0a01f7a

Browse files
Praful Makanisduskis
authored andcommitted
---
yaml --- r: 18409 b: refs/heads/autosynth-compute c: a1679e4 h: refs/heads/master i: 18407: 9b483e4
1 parent 76d013f commit 0a01f7a

16 files changed

Lines changed: 134 additions & 286 deletions

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ refs/tags/v0.64.0: 456e8fbd129deced3ca025f239a2d8a82bde1d0a
112112
refs/tags/v0.65.0: 10939381ffe0b8da32db4fe3087c86e3aa7f3e55
113113
refs/tags/v0.66.0: ed6a3f57cbdaa20339a1995f7d7d53b172a5b8ef
114114
refs/tags/v0.67.0: 30b56f02092efc6f3c3667650ea8b8825003e0b7
115-
refs/heads/autosynth-compute: 8e86445e504cea6f99b9fb237bfd7f0e5ef8b3ce
115+
refs/heads/autosynth-compute: a1679e4551b3bc0f9f78db47cc0e7747121a88cf
116116
refs/heads/autosynth-container: f6384095f50b31bfc8208542a49181e158d3681c
117117
refs/heads/autosynth-monitoring: e67db7395a868e5f6ecc3476eb4a91c47abd4234
118118
refs/heads/autosynth-pubsub: fd363d13793a853214eb8193c922b28c54e7a6b3

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

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,10 @@ public String getFields() {
158158
return fields;
159159
}
160160

161-
/** Whether to force attach the disk even if it's currently attached to another instance. */
161+
/**
162+
* Whether to force attach the disk even if it's currently attached to another instance. This is
163+
* only available for regional disks.
164+
*/
162165
public Boolean getForceAttach() {
163166
return forceAttach;
164167
}
@@ -345,12 +348,18 @@ public Builder setFields(String fields) {
345348
return this;
346349
}
347350

348-
/** Whether to force attach the disk even if it's currently attached to another instance. */
351+
/**
352+
* Whether to force attach the disk even if it's currently attached to another instance. This is
353+
* only available for regional disks.
354+
*/
349355
public Boolean getForceAttach() {
350356
return forceAttach;
351357
}
352358

353-
/** Whether to force attach the disk even if it's currently attached to another instance. */
359+
/**
360+
* Whether to force attach the disk even if it's currently attached to another instance. This is
361+
* only available for regional disks.
362+
*/
354363
public Builder setForceAttach(Boolean forceAttach) {
355364
this.forceAttach = forceAttach;
356365
return this;

branches/autosynth-compute/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Condition.java

Lines changed: 40 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,21 +31,25 @@ public final class Condition implements ApiMessage {
3131
private final String op;
3232
private final String svc;
3333
private final String sys;
34+
private final String value;
3435
private final List<String> values;
3536

3637
private Condition() {
3738
this.iam = null;
3839
this.op = null;
3940
this.svc = null;
4041
this.sys = null;
42+
this.value = null;
4143
this.values = null;
4244
}
4345

44-
private Condition(String iam, String op, String svc, String sys, List<String> values) {
46+
private Condition(
47+
String iam, String op, String svc, String sys, String value, List<String> values) {
4548
this.iam = iam;
4649
this.op = op;
4750
this.svc = svc;
4851
this.sys = sys;
52+
this.value = value;
4953
this.values = values;
5054
}
5155

@@ -63,6 +67,9 @@ public Object getFieldValue(String fieldName) {
6367
if ("sys".equals(fieldName)) {
6468
return sys;
6569
}
70+
if ("value".equals(fieldName)) {
71+
return value;
72+
}
6673
if ("values".equals(fieldName)) {
6774
return values;
6875
}
@@ -110,7 +117,12 @@ public String getSys() {
110117
return sys;
111118
}
112119

113-
/** The objects of the condition. */
120+
/** DEPRECATED. Use 'values' instead. */
121+
public String getValue() {
122+
return value;
123+
}
124+
125+
/** The objects of the condition. This is mutually exclusive with 'value'. */
114126
public List<String> getValuesList() {
115127
return values;
116128
}
@@ -142,6 +154,7 @@ public static class Builder {
142154
private String op;
143155
private String svc;
144156
private String sys;
157+
private String value;
145158
private List<String> values;
146159

147160
Builder() {}
@@ -160,6 +173,9 @@ public Builder mergeFrom(Condition other) {
160173
if (other.getSys() != null) {
161174
this.sys = other.sys;
162175
}
176+
if (other.getValue() != null) {
177+
this.value = other.value;
178+
}
163179
if (other.getValuesList() != null) {
164180
this.values = other.values;
165181
}
@@ -171,6 +187,7 @@ public Builder mergeFrom(Condition other) {
171187
this.op = source.op;
172188
this.svc = source.svc;
173189
this.sys = source.sys;
190+
this.value = source.value;
174191
this.values = source.values;
175192
}
176193

@@ -224,12 +241,23 @@ public Builder setSys(String sys) {
224241
return this;
225242
}
226243

227-
/** The objects of the condition. */
244+
/** DEPRECATED. Use 'values' instead. */
245+
public String getValue() {
246+
return value;
247+
}
248+
249+
/** DEPRECATED. Use 'values' instead. */
250+
public Builder setValue(String value) {
251+
this.value = value;
252+
return this;
253+
}
254+
255+
/** The objects of the condition. This is mutually exclusive with 'value'. */
228256
public List<String> getValuesList() {
229257
return values;
230258
}
231259

232-
/** The objects of the condition. */
260+
/** The objects of the condition. This is mutually exclusive with 'value'. */
233261
public Builder addAllValues(List<String> values) {
234262
if (this.values == null) {
235263
this.values = new LinkedList<>();
@@ -238,7 +266,7 @@ public Builder addAllValues(List<String> values) {
238266
return this;
239267
}
240268

241-
/** The objects of the condition. */
269+
/** The objects of the condition. This is mutually exclusive with 'value'. */
242270
public Builder addValues(String values) {
243271
if (this.values == null) {
244272
this.values = new LinkedList<>();
@@ -249,7 +277,7 @@ public Builder addValues(String values) {
249277

250278
public Condition build() {
251279

252-
return new Condition(iam, op, svc, sys, values);
280+
return new Condition(iam, op, svc, sys, value, values);
253281
}
254282

255283
public Builder clone() {
@@ -258,6 +286,7 @@ public Builder clone() {
258286
newBuilder.setOp(this.op);
259287
newBuilder.setSvc(this.svc);
260288
newBuilder.setSys(this.sys);
289+
newBuilder.setValue(this.value);
261290
newBuilder.addAllValues(this.values);
262291
return newBuilder;
263292
}
@@ -278,6 +307,9 @@ public String toString() {
278307
+ "sys="
279308
+ sys
280309
+ ", "
310+
+ "value="
311+
+ value
312+
+ ", "
281313
+ "values="
282314
+ values
283315
+ "}";
@@ -294,13 +326,14 @@ public boolean equals(Object o) {
294326
&& Objects.equals(this.op, that.getOp())
295327
&& Objects.equals(this.svc, that.getSvc())
296328
&& Objects.equals(this.sys, that.getSys())
329+
&& Objects.equals(this.value, that.getValue())
297330
&& Objects.equals(this.values, that.getValuesList());
298331
}
299332
return false;
300333
}
301334

302335
@Override
303336
public int hashCode() {
304-
return Objects.hash(iam, op, svc, sys, values);
337+
return Objects.hash(iam, op, svc, sys, value, values);
305338
}
306339
}

branches/autosynth-compute/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ForwardingRule.java

Lines changed: 5 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
* beta.regionForwardingRules ==) (== resource_for v1.regionForwardingRules ==)
3535
*/
3636
public final class ForwardingRule implements ApiMessage {
37-
private final Boolean allPorts;
3837
private final String backendService;
3938
private final String creationTimestamp;
4039
private final String description;
@@ -62,7 +61,6 @@ public final class ForwardingRule implements ApiMessage {
6261
private final String target;
6362

6463
private ForwardingRule() {
65-
this.allPorts = null;
6664
this.backendService = null;
6765
this.creationTimestamp = null;
6866
this.description = null;
@@ -86,7 +84,6 @@ private ForwardingRule() {
8684
}
8785

8886
private ForwardingRule(
89-
Boolean allPorts,
9087
String backendService,
9188
String creationTimestamp,
9289
String description,
@@ -107,7 +104,6 @@ private ForwardingRule(
107104
String serviceName,
108105
String subnetwork,
109106
String target) {
110-
this.allPorts = allPorts;
111107
this.backendService = backendService;
112108
this.creationTimestamp = creationTimestamp;
113109
this.description = description;
@@ -132,9 +128,6 @@ private ForwardingRule(
132128

133129
@Override
134130
public Object getFieldValue(String fieldName) {
135-
if ("allPorts".equals(fieldName)) {
136-
return allPorts;
137-
}
138131
if ("backendService".equals(fieldName)) {
139132
return backendService;
140133
}
@@ -216,19 +209,6 @@ public List<String> getFieldMask() {
216209
return null;
217210
}
218211

219-
/**
220-
* This field is used along with the backend_service field for internal load balancing or with the
221-
* target field for internal TargetInstance. This field cannot be used with port or portRange
222-
* fields.
223-
*
224-
* <p>When the load balancing scheme is INTERNAL and protocol is TCP/UDP, specify this field to
225-
* allow packets addressed to any ports will be forwarded to the backends configured with this
226-
* forwarding rule.
227-
*/
228-
public Boolean getAllPorts() {
229-
return allPorts;
230-
}
231-
232212
/**
233213
* This field is only used for INTERNAL load balancing.
234214
*
@@ -447,8 +427,8 @@ public String getSubnetwork() {
447427
* The URL of the target resource to receive the matched traffic. For regional forwarding rules,
448428
* this target must live in the same region as the forwarding rule. For global forwarding rules,
449429
* this target must be a global load balancing resource. The forwarded traffic must be of a type
450-
* appropriate to the target object. For INTERNAL_SELF_MANAGED load balancing, only HTTP and HTTPS
451-
* targets are valid.
430+
* appropriate to the target object. For INTERNAL_SELF_MANAGED" load balancing, only HTTP and
431+
* HTTPS targets are valid.
452432
*/
453433
public String getTarget() {
454434
return target;
@@ -477,7 +457,6 @@ public static ForwardingRule getDefaultInstance() {
477457
}
478458

479459
public static class Builder {
480-
private Boolean allPorts;
481460
private String backendService;
482461
private String creationTimestamp;
483462
private String description;
@@ -503,9 +482,6 @@ public static class Builder {
503482

504483
public Builder mergeFrom(ForwardingRule other) {
505484
if (other == ForwardingRule.getDefaultInstance()) return this;
506-
if (other.getAllPorts() != null) {
507-
this.allPorts = other.allPorts;
508-
}
509485
if (other.getBackendService() != null) {
510486
this.backendService = other.backendService;
511487
}
@@ -570,7 +546,6 @@ public Builder mergeFrom(ForwardingRule other) {
570546
}
571547

572548
Builder(ForwardingRule source) {
573-
this.allPorts = source.allPorts;
574549
this.backendService = source.backendService;
575550
this.creationTimestamp = source.creationTimestamp;
576551
this.description = source.description;
@@ -593,33 +568,6 @@ public Builder mergeFrom(ForwardingRule other) {
593568
this.target = source.target;
594569
}
595570

596-
/**
597-
* This field is used along with the backend_service field for internal load balancing or with
598-
* the target field for internal TargetInstance. This field cannot be used with port or
599-
* portRange fields.
600-
*
601-
* <p>When the load balancing scheme is INTERNAL and protocol is TCP/UDP, specify this field to
602-
* allow packets addressed to any ports will be forwarded to the backends configured with this
603-
* forwarding rule.
604-
*/
605-
public Boolean getAllPorts() {
606-
return allPorts;
607-
}
608-
609-
/**
610-
* This field is used along with the backend_service field for internal load balancing or with
611-
* the target field for internal TargetInstance. This field cannot be used with port or
612-
* portRange fields.
613-
*
614-
* <p>When the load balancing scheme is INTERNAL and protocol is TCP/UDP, specify this field to
615-
* allow packets addressed to any ports will be forwarded to the backends configured with this
616-
* forwarding rule.
617-
*/
618-
public Builder setAllPorts(Boolean allPorts) {
619-
this.allPorts = allPorts;
620-
return this;
621-
}
622-
623571
/**
624572
* This field is only used for INTERNAL load balancing.
625573
*
@@ -1097,7 +1045,7 @@ public Builder setSubnetwork(String subnetwork) {
10971045
* The URL of the target resource to receive the matched traffic. For regional forwarding rules,
10981046
* this target must live in the same region as the forwarding rule. For global forwarding rules,
10991047
* this target must be a global load balancing resource. The forwarded traffic must be of a type
1100-
* appropriate to the target object. For INTERNAL_SELF_MANAGED load balancing, only HTTP and
1048+
* appropriate to the target object. For INTERNAL_SELF_MANAGED" load balancing, only HTTP and
11011049
* HTTPS targets are valid.
11021050
*/
11031051
public String getTarget() {
@@ -1108,7 +1056,7 @@ public String getTarget() {
11081056
* The URL of the target resource to receive the matched traffic. For regional forwarding rules,
11091057
* this target must live in the same region as the forwarding rule. For global forwarding rules,
11101058
* this target must be a global load balancing resource. The forwarded traffic must be of a type
1111-
* appropriate to the target object. For INTERNAL_SELF_MANAGED load balancing, only HTTP and
1059+
* appropriate to the target object. For INTERNAL_SELF_MANAGED" load balancing, only HTTP and
11121060
* HTTPS targets are valid.
11131061
*/
11141062
public Builder setTarget(String target) {
@@ -1119,7 +1067,6 @@ public Builder setTarget(String target) {
11191067
public ForwardingRule build() {
11201068

11211069
return new ForwardingRule(
1122-
allPorts,
11231070
backendService,
11241071
creationTimestamp,
11251072
description,
@@ -1144,7 +1091,6 @@ public ForwardingRule build() {
11441091

11451092
public Builder clone() {
11461093
Builder newBuilder = new Builder();
1147-
newBuilder.setAllPorts(this.allPorts);
11481094
newBuilder.setBackendService(this.backendService);
11491095
newBuilder.setCreationTimestamp(this.creationTimestamp);
11501096
newBuilder.setDescription(this.description);
@@ -1172,9 +1118,6 @@ public Builder clone() {
11721118
@Override
11731119
public String toString() {
11741120
return "ForwardingRule{"
1175-
+ "allPorts="
1176-
+ allPorts
1177-
+ ", "
11781121
+ "backendService="
11791122
+ backendService
11801123
+ ", "
@@ -1244,8 +1187,7 @@ public boolean equals(Object o) {
12441187
}
12451188
if (o instanceof ForwardingRule) {
12461189
ForwardingRule that = (ForwardingRule) o;
1247-
return Objects.equals(this.allPorts, that.getAllPorts())
1248-
&& Objects.equals(this.backendService, that.getBackendService())
1190+
return Objects.equals(this.backendService, that.getBackendService())
12491191
&& Objects.equals(this.creationTimestamp, that.getCreationTimestamp())
12501192
&& Objects.equals(this.description, that.getDescription())
12511193
&& Objects.equals(this.iPAddress, that.getIPAddress())
@@ -1272,7 +1214,6 @@ public boolean equals(Object o) {
12721214
@Override
12731215
public int hashCode() {
12741216
return Objects.hash(
1275-
allPorts,
12761217
backendService,
12771218
creationTimestamp,
12781219
description,

0 commit comments

Comments
 (0)