You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: branches/autosynth-pubsub/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ForwardingRule.java
+64Lines changed: 64 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -48,6 +48,8 @@ public final class ForwardingRule implements ApiMessage {
48
48
privatefinalList<String> ports;
49
49
privatefinalStringregion;
50
50
privatefinalStringselfLink;
51
+
privatefinalStringserviceLabel;
52
+
privatefinalStringserviceName;
51
53
privatefinalStringsubnetwork;
52
54
privatefinalStringtarget;
53
55
@@ -68,6 +70,8 @@ private ForwardingRule() {
68
70
this.ports = null;
69
71
this.region = null;
70
72
this.selfLink = null;
73
+
this.serviceLabel = null;
74
+
this.serviceName = null;
71
75
this.subnetwork = null;
72
76
this.target = null;
73
77
}
@@ -89,6 +93,8 @@ private ForwardingRule(
89
93
List<String> ports,
90
94
Stringregion,
91
95
StringselfLink,
96
+
StringserviceLabel,
97
+
StringserviceName,
92
98
Stringsubnetwork,
93
99
Stringtarget) {
94
100
this.backendService = backendService;
@@ -107,6 +113,8 @@ private ForwardingRule(
107
113
this.ports = ports;
108
114
this.region = region;
109
115
this.selfLink = selfLink;
116
+
this.serviceLabel = serviceLabel;
117
+
this.serviceName = serviceName;
110
118
this.subnetwork = subnetwork;
111
119
this.target = target;
112
120
}
@@ -161,6 +169,12 @@ public Object getFieldValue(String fieldName) {
161
169
if ("selfLink".equals(fieldName)) {
162
170
returnselfLink;
163
171
}
172
+
if ("serviceLabel".equals(fieldName)) {
173
+
returnserviceLabel;
174
+
}
175
+
if ("serviceName".equals(fieldName)) {
176
+
returnserviceName;
177
+
}
164
178
if ("subnetwork".equals(fieldName)) {
165
179
returnsubnetwork;
166
180
}
@@ -246,6 +260,14 @@ public String getSelfLink() {
246
260
returnselfLink;
247
261
}
248
262
263
+
publicStringgetServiceLabel() {
264
+
returnserviceLabel;
265
+
}
266
+
267
+
publicStringgetServiceName() {
268
+
returnserviceName;
269
+
}
270
+
249
271
publicStringgetSubnetwork() {
250
272
returnsubnetwork;
251
273
}
@@ -293,6 +315,8 @@ public static class Builder {
293
315
privateList<String> ports;
294
316
privateStringregion;
295
317
privateStringselfLink;
318
+
privateStringserviceLabel;
319
+
privateStringserviceName;
296
320
privateStringsubnetwork;
297
321
privateStringtarget;
298
322
@@ -348,6 +372,12 @@ public Builder mergeFrom(ForwardingRule other) {
348
372
if (other.getSelfLink() != null) {
349
373
this.selfLink = other.selfLink;
350
374
}
375
+
if (other.getServiceLabel() != null) {
376
+
this.serviceLabel = other.serviceLabel;
377
+
}
378
+
if (other.getServiceName() != null) {
379
+
this.serviceName = other.serviceName;
380
+
}
351
381
if (other.getSubnetwork() != null) {
352
382
this.subnetwork = other.subnetwork;
353
383
}
@@ -374,6 +404,8 @@ public Builder mergeFrom(ForwardingRule other) {
374
404
this.ports = source.ports;
375
405
this.region = source.region;
376
406
this.selfLink = source.selfLink;
407
+
this.serviceLabel = source.serviceLabel;
408
+
this.serviceName = source.serviceName;
377
409
this.subnetwork = source.subnetwork;
378
410
this.target = source.target;
379
411
}
@@ -533,6 +565,24 @@ public Builder setSelfLink(String selfLink) {
0 commit comments