Skip to content

Commit

Permalink
generate compute
Browse files Browse the repository at this point in the history
  • Loading branch information
andreamlin committed Aug 9, 2018
1 parent 5eacf13 commit b81e68b
Show file tree
Hide file tree
Showing 118 changed files with 29,783 additions and 36 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public final class AccessConfig implements ApiMessage {
private final String kind;
private final String name;
private final String natIP;
private final String networkTier;
private final String publicPtrDomainName;
private final Boolean setPublicPtr;
private final String type;
Expand All @@ -36,6 +37,7 @@ private AccessConfig() {
this.kind = null;
this.name = null;
this.natIP = null;
this.networkTier = null;
this.publicPtrDomainName = null;
this.setPublicPtr = null;
this.type = null;
Expand All @@ -45,12 +47,14 @@ private AccessConfig(
String kind,
String name,
String natIP,
String networkTier,
String publicPtrDomainName,
Boolean setPublicPtr,
String type) {
this.kind = kind;
this.name = name;
this.natIP = natIP;
this.networkTier = networkTier;
this.publicPtrDomainName = publicPtrDomainName;
this.setPublicPtr = setPublicPtr;
this.type = type;
Expand All @@ -67,6 +71,9 @@ public Object getFieldValue(String fieldName) {
if (fieldName.equals("natIP")) {
return natIP;
}
if (fieldName.equals("networkTier")) {
return networkTier;
}
if (fieldName.equals("publicPtrDomainName")) {
return publicPtrDomainName;
}
Expand Down Expand Up @@ -103,6 +110,10 @@ public String getNatIP() {
return natIP;
}

public String getNetworkTier() {
return networkTier;
}

public String getPublicPtrDomainName() {
return publicPtrDomainName;
}
Expand Down Expand Up @@ -141,6 +152,7 @@ public static class Builder {
private String kind;
private String name;
private String natIP;
private String networkTier;
private String publicPtrDomainName;
private Boolean setPublicPtr;
private String type;
Expand All @@ -158,6 +170,9 @@ public Builder mergeFrom(AccessConfig other) {
if (other.getNatIP() != null) {
this.natIP = other.natIP;
}
if (other.getNetworkTier() != null) {
this.networkTier = other.networkTier;
}
if (other.getPublicPtrDomainName() != null) {
this.publicPtrDomainName = other.publicPtrDomainName;
}
Expand All @@ -174,6 +189,7 @@ public Builder mergeFrom(AccessConfig other) {
this.kind = source.kind;
this.name = source.name;
this.natIP = source.natIP;
this.networkTier = source.networkTier;
this.publicPtrDomainName = source.publicPtrDomainName;
this.setPublicPtr = source.setPublicPtr;
this.type = source.type;
Expand Down Expand Up @@ -206,6 +222,15 @@ public Builder setNatIP(String natIP) {
return this;
}

public String getNetworkTier() {
return networkTier;
}

public Builder setNetworkTier(String networkTier) {
this.networkTier = networkTier;
return this;
}

public String getPublicPtrDomainName() {
return publicPtrDomainName;
}
Expand Down Expand Up @@ -235,14 +260,16 @@ public Builder setType(String type) {

public AccessConfig build() {

return new AccessConfig(kind, name, natIP, publicPtrDomainName, setPublicPtr, type);
return new AccessConfig(
kind, name, natIP, networkTier, publicPtrDomainName, setPublicPtr, type);
}

public Builder clone() {
Builder newBuilder = new Builder();
newBuilder.setKind(this.kind);
newBuilder.setName(this.name);
newBuilder.setNatIP(this.natIP);
newBuilder.setNetworkTier(this.networkTier);
newBuilder.setPublicPtrDomainName(this.publicPtrDomainName);
newBuilder.setSetPublicPtr(this.setPublicPtr);
newBuilder.setType(this.type);
Expand All @@ -262,6 +289,9 @@ public String toString() {
+ "natIP="
+ natIP
+ ", "
+ "networkTier="
+ networkTier
+ ", "
+ "publicPtrDomainName="
+ publicPtrDomainName
+ ", "
Expand All @@ -283,6 +313,7 @@ public boolean equals(Object o) {
return Objects.equals(this.kind, that.getKind())
&& Objects.equals(this.name, that.getName())
&& Objects.equals(this.natIP, that.getNatIP())
&& Objects.equals(this.networkTier, that.getNetworkTier())
&& Objects.equals(this.publicPtrDomainName, that.getPublicPtrDomainName())
&& Objects.equals(this.setPublicPtr, that.getSetPublicPtr())
&& Objects.equals(this.type, that.getType());
Expand All @@ -292,6 +323,6 @@ public boolean equals(Object o) {

@Override
public int hashCode() {
return Objects.hash(kind, name, natIP, publicPtrDomainName, setPublicPtr, type);
return Objects.hash(kind, name, natIP, networkTier, publicPtrDomainName, setPublicPtr, type);
}
}
Loading

0 comments on commit b81e68b

Please sign in to comment.