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-texttospeech/google-cloud-clients/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/Address.java
+96Lines changed: 96 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,10 @@ public final class Address implements ApiMessage {
34
34
privatefinalStringipVersion;
35
35
privatefinalStringkind;
36
36
privatefinalStringname;
37
+
privatefinalStringnetwork;
37
38
privatefinalStringnetworkTier;
39
+
privatefinalIntegerprefixLength;
40
+
privatefinalStringpurpose;
38
41
privatefinalStringregion;
39
42
privatefinalStringselfLink;
40
43
privatefinalStringstatus;
@@ -50,7 +53,10 @@ private Address() {
50
53
this.ipVersion = null;
51
54
this.kind = null;
52
55
this.name = null;
56
+
this.network = null;
53
57
this.networkTier = null;
58
+
this.prefixLength = null;
59
+
this.purpose = null;
54
60
this.region = null;
55
61
this.selfLink = null;
56
62
this.status = null;
@@ -67,7 +73,10 @@ private Address(
67
73
StringipVersion,
68
74
Stringkind,
69
75
Stringname,
76
+
Stringnetwork,
70
77
StringnetworkTier,
78
+
IntegerprefixLength,
79
+
Stringpurpose,
71
80
Stringregion,
72
81
StringselfLink,
73
82
Stringstatus,
@@ -81,7 +90,10 @@ private Address(
81
90
this.ipVersion = ipVersion;
82
91
this.kind = kind;
83
92
this.name = name;
93
+
this.network = network;
84
94
this.networkTier = networkTier;
95
+
this.prefixLength = prefixLength;
96
+
this.purpose = purpose;
85
97
this.region = region;
86
98
this.selfLink = selfLink;
87
99
this.status = status;
@@ -115,9 +127,18 @@ public Object getFieldValue(String fieldName) {
115
127
if (fieldName.equals("name")) {
116
128
returnname;
117
129
}
130
+
if (fieldName.equals("network")) {
131
+
returnnetwork;
132
+
}
118
133
if (fieldName.equals("networkTier")) {
119
134
returnnetworkTier;
120
135
}
136
+
if (fieldName.equals("prefixLength")) {
137
+
returnprefixLength;
138
+
}
139
+
if (fieldName.equals("purpose")) {
140
+
returnpurpose;
141
+
}
121
142
if (fieldName.equals("region")) {
122
143
returnregion;
123
144
}
@@ -180,10 +201,22 @@ public String getName() {
180
201
returnname;
181
202
}
182
203
204
+
publicStringgetNetwork() {
205
+
returnnetwork;
206
+
}
207
+
183
208
publicStringgetNetworkTier() {
184
209
returnnetworkTier;
185
210
}
186
211
212
+
publicIntegergetPrefixLength() {
213
+
returnprefixLength;
214
+
}
215
+
216
+
publicStringgetPurpose() {
217
+
returnpurpose;
218
+
}
219
+
187
220
publicStringgetRegion() {
188
221
returnregion;
189
222
}
@@ -235,7 +268,10 @@ public static class Builder {
235
268
privateStringipVersion;
236
269
privateStringkind;
237
270
privateStringname;
271
+
privateStringnetwork;
238
272
privateStringnetworkTier;
273
+
privateIntegerprefixLength;
274
+
privateStringpurpose;
239
275
privateStringregion;
240
276
privateStringselfLink;
241
277
privateStringstatus;
@@ -270,9 +306,18 @@ public Builder mergeFrom(Address other) {
270
306
if (other.getName() != null) {
271
307
this.name = other.name;
272
308
}
309
+
if (other.getNetwork() != null) {
310
+
this.network = other.network;
311
+
}
273
312
if (other.getNetworkTier() != null) {
274
313
this.networkTier = other.networkTier;
275
314
}
315
+
if (other.getPrefixLength() != null) {
316
+
this.prefixLength = other.prefixLength;
317
+
}
318
+
if (other.getPurpose() != null) {
319
+
this.purpose = other.purpose;
320
+
}
276
321
if (other.getRegion() != null) {
277
322
this.region = other.region;
278
323
}
@@ -300,7 +345,10 @@ public Builder mergeFrom(Address other) {
300
345
this.ipVersion = source.ipVersion;
301
346
this.kind = source.kind;
302
347
this.name = source.name;
348
+
this.network = source.network;
303
349
this.networkTier = source.networkTier;
350
+
this.prefixLength = source.prefixLength;
351
+
this.purpose = source.purpose;
304
352
this.region = source.region;
305
353
this.selfLink = source.selfLink;
306
354
this.status = source.status;
@@ -380,6 +428,15 @@ public Builder setName(String name) {
380
428
returnthis;
381
429
}
382
430
431
+
publicStringgetNetwork() {
432
+
returnnetwork;
433
+
}
434
+
435
+
publicBuildersetNetwork(Stringnetwork) {
436
+
this.network = network;
437
+
returnthis;
438
+
}
439
+
383
440
publicStringgetNetworkTier() {
384
441
returnnetworkTier;
385
442
}
@@ -389,6 +446,24 @@ public Builder setNetworkTier(String networkTier) {
0 commit comments