Skip to content

Commit b81e68b

Browse files
committed
generate compute
1 parent 5eacf13 commit b81e68b

118 files changed

Lines changed: 29783 additions & 36 deletions

File tree

Some content is hidden

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

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

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ public final class AccessConfig implements ApiMessage {
2828
private final String kind;
2929
private final String name;
3030
private final String natIP;
31+
private final String networkTier;
3132
private final String publicPtrDomainName;
3233
private final Boolean setPublicPtr;
3334
private final String type;
@@ -36,6 +37,7 @@ private AccessConfig() {
3637
this.kind = null;
3738
this.name = null;
3839
this.natIP = null;
40+
this.networkTier = null;
3941
this.publicPtrDomainName = null;
4042
this.setPublicPtr = null;
4143
this.type = null;
@@ -45,12 +47,14 @@ private AccessConfig(
4547
String kind,
4648
String name,
4749
String natIP,
50+
String networkTier,
4851
String publicPtrDomainName,
4952
Boolean setPublicPtr,
5053
String type) {
5154
this.kind = kind;
5255
this.name = name;
5356
this.natIP = natIP;
57+
this.networkTier = networkTier;
5458
this.publicPtrDomainName = publicPtrDomainName;
5559
this.setPublicPtr = setPublicPtr;
5660
this.type = type;
@@ -67,6 +71,9 @@ public Object getFieldValue(String fieldName) {
6771
if (fieldName.equals("natIP")) {
6872
return natIP;
6973
}
74+
if (fieldName.equals("networkTier")) {
75+
return networkTier;
76+
}
7077
if (fieldName.equals("publicPtrDomainName")) {
7178
return publicPtrDomainName;
7279
}
@@ -103,6 +110,10 @@ public String getNatIP() {
103110
return natIP;
104111
}
105112

113+
public String getNetworkTier() {
114+
return networkTier;
115+
}
116+
106117
public String getPublicPtrDomainName() {
107118
return publicPtrDomainName;
108119
}
@@ -141,6 +152,7 @@ public static class Builder {
141152
private String kind;
142153
private String name;
143154
private String natIP;
155+
private String networkTier;
144156
private String publicPtrDomainName;
145157
private Boolean setPublicPtr;
146158
private String type;
@@ -158,6 +170,9 @@ public Builder mergeFrom(AccessConfig other) {
158170
if (other.getNatIP() != null) {
159171
this.natIP = other.natIP;
160172
}
173+
if (other.getNetworkTier() != null) {
174+
this.networkTier = other.networkTier;
175+
}
161176
if (other.getPublicPtrDomainName() != null) {
162177
this.publicPtrDomainName = other.publicPtrDomainName;
163178
}
@@ -174,6 +189,7 @@ public Builder mergeFrom(AccessConfig other) {
174189
this.kind = source.kind;
175190
this.name = source.name;
176191
this.natIP = source.natIP;
192+
this.networkTier = source.networkTier;
177193
this.publicPtrDomainName = source.publicPtrDomainName;
178194
this.setPublicPtr = source.setPublicPtr;
179195
this.type = source.type;
@@ -206,6 +222,15 @@ public Builder setNatIP(String natIP) {
206222
return this;
207223
}
208224

225+
public String getNetworkTier() {
226+
return networkTier;
227+
}
228+
229+
public Builder setNetworkTier(String networkTier) {
230+
this.networkTier = networkTier;
231+
return this;
232+
}
233+
209234
public String getPublicPtrDomainName() {
210235
return publicPtrDomainName;
211236
}
@@ -235,14 +260,16 @@ public Builder setType(String type) {
235260

236261
public AccessConfig build() {
237262

238-
return new AccessConfig(kind, name, natIP, publicPtrDomainName, setPublicPtr, type);
263+
return new AccessConfig(
264+
kind, name, natIP, networkTier, publicPtrDomainName, setPublicPtr, type);
239265
}
240266

241267
public Builder clone() {
242268
Builder newBuilder = new Builder();
243269
newBuilder.setKind(this.kind);
244270
newBuilder.setName(this.name);
245271
newBuilder.setNatIP(this.natIP);
272+
newBuilder.setNetworkTier(this.networkTier);
246273
newBuilder.setPublicPtrDomainName(this.publicPtrDomainName);
247274
newBuilder.setSetPublicPtr(this.setPublicPtr);
248275
newBuilder.setType(this.type);
@@ -262,6 +289,9 @@ public String toString() {
262289
+ "natIP="
263290
+ natIP
264291
+ ", "
292+
+ "networkTier="
293+
+ networkTier
294+
+ ", "
265295
+ "publicPtrDomainName="
266296
+ publicPtrDomainName
267297
+ ", "
@@ -283,6 +313,7 @@ public boolean equals(Object o) {
283313
return Objects.equals(this.kind, that.getKind())
284314
&& Objects.equals(this.name, that.getName())
285315
&& Objects.equals(this.natIP, that.getNatIP())
316+
&& Objects.equals(this.networkTier, that.getNetworkTier())
286317
&& Objects.equals(this.publicPtrDomainName, that.getPublicPtrDomainName())
287318
&& Objects.equals(this.setPublicPtr, that.getSetPublicPtr())
288319
&& Objects.equals(this.type, that.getType());
@@ -292,6 +323,6 @@ public boolean equals(Object o) {
292323

293324
@Override
294325
public int hashCode() {
295-
return Objects.hash(kind, name, natIP, publicPtrDomainName, setPublicPtr, type);
326+
return Objects.hash(kind, name, natIP, networkTier, publicPtrDomainName, setPublicPtr, type);
296327
}
297328
}

0 commit comments

Comments
 (0)