Skip to content

Commit

Permalink
Regenerate compute (#3642)
Browse files Browse the repository at this point in the history
  • Loading branch information
andreamlin committed Sep 5, 2018
1 parent 9f1a96b commit 7f3ab97
Show file tree
Hide file tree
Showing 43 changed files with 10,692 additions and 12 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
@Generated("by GAPIC")
@BetaApi
public final class AttachedDiskInitializeParams implements ApiMessage {
private final String description;
private final String diskName;
private final String diskSizeGb;
private final String diskType;
Expand All @@ -34,6 +35,7 @@ public final class AttachedDiskInitializeParams implements ApiMessage {
private final CustomerEncryptionKey sourceImageEncryptionKey;

private AttachedDiskInitializeParams() {
this.description = null;
this.diskName = null;
this.diskSizeGb = null;
this.diskType = null;
Expand All @@ -43,12 +45,14 @@ private AttachedDiskInitializeParams() {
}

private AttachedDiskInitializeParams(
String description,
String diskName,
String diskSizeGb,
String diskType,
Map<String, String> labels,
String sourceImage,
CustomerEncryptionKey sourceImageEncryptionKey) {
this.description = description;
this.diskName = diskName;
this.diskSizeGb = diskSizeGb;
this.diskType = diskType;
Expand All @@ -59,6 +63,9 @@ private AttachedDiskInitializeParams(

@Override
public Object getFieldValue(String fieldName) {
if (fieldName.equals("description")) {
return description;
}
if (fieldName.equals("diskName")) {
return diskName;
}
Expand Down Expand Up @@ -92,6 +99,10 @@ public List<String> getFieldMask() {
return null;
}

public String getDescription() {
return description;
}

public String getDiskName() {
return diskName;
}
Expand Down Expand Up @@ -139,6 +150,7 @@ public static AttachedDiskInitializeParams getDefaultInstance() {
}

public static class Builder {
private String description;
private String diskName;
private String diskSizeGb;
private String diskType;
Expand All @@ -150,6 +162,9 @@ public static class Builder {

public Builder mergeFrom(AttachedDiskInitializeParams other) {
if (other == AttachedDiskInitializeParams.getDefaultInstance()) return this;
if (other.getDescription() != null) {
this.description = other.description;
}
if (other.getDiskName() != null) {
this.diskName = other.diskName;
}
Expand All @@ -172,6 +187,7 @@ public Builder mergeFrom(AttachedDiskInitializeParams other) {
}

Builder(AttachedDiskInitializeParams source) {
this.description = source.description;
this.diskName = source.diskName;
this.diskSizeGb = source.diskSizeGb;
this.diskType = source.diskType;
Expand All @@ -180,6 +196,15 @@ public Builder mergeFrom(AttachedDiskInitializeParams other) {
this.sourceImageEncryptionKey = source.sourceImageEncryptionKey;
}

public String getDescription() {
return description;
}

public Builder setDescription(String description) {
this.description = description;
return this;
}

public String getDiskName() {
return diskName;
}
Expand Down Expand Up @@ -237,11 +262,18 @@ public Builder setSourceImageEncryptionKey(CustomerEncryptionKey sourceImageEncr
public AttachedDiskInitializeParams build() {

return new AttachedDiskInitializeParams(
diskName, diskSizeGb, diskType, labels, sourceImage, sourceImageEncryptionKey);
description,
diskName,
diskSizeGb,
diskType,
labels,
sourceImage,
sourceImageEncryptionKey);
}

public Builder clone() {
Builder newBuilder = new Builder();
newBuilder.setDescription(this.description);
newBuilder.setDiskName(this.diskName);
newBuilder.setDiskSizeGb(this.diskSizeGb);
newBuilder.setDiskType(this.diskType);
Expand All @@ -255,6 +287,9 @@ public Builder clone() {
@Override
public String toString() {
return "AttachedDiskInitializeParams{"
+ "description="
+ description
+ ", "
+ "diskName="
+ diskName
+ ", "
Expand Down Expand Up @@ -282,7 +317,8 @@ public boolean equals(Object o) {
}
if (o instanceof AttachedDiskInitializeParams) {
AttachedDiskInitializeParams that = (AttachedDiskInitializeParams) o;
return Objects.equals(this.diskName, that.getDiskName())
return Objects.equals(this.description, that.getDescription())
&& Objects.equals(this.diskName, that.getDiskName())
&& Objects.equals(this.diskSizeGb, that.getDiskSizeGb())
&& Objects.equals(this.diskType, that.getDiskType())
&& Objects.equals(this.labels, that.getLabelsMap())
Expand All @@ -295,6 +331,6 @@ public boolean equals(Object o) {
@Override
public int hashCode() {
return Objects.hash(
diskName, diskSizeGb, diskType, labels, sourceImage, sourceImageEncryptionKey);
description, diskName, diskSizeGb, diskType, labels, sourceImage, sourceImageEncryptionKey);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public final class BackendService implements ApiMessage {
private final String portName;
private final String protocol;
private final String region;
private final String securityPolicy;
private final String selfLink;
private final String sessionAffinity;
private final Integer timeoutSec;
Expand All @@ -67,6 +68,7 @@ private BackendService() {
this.portName = null;
this.protocol = null;
this.region = null;
this.securityPolicy = null;
this.selfLink = null;
this.sessionAffinity = null;
this.timeoutSec = null;
Expand All @@ -91,6 +93,7 @@ private BackendService(
String portName,
String protocol,
String region,
String securityPolicy,
String selfLink,
String sessionAffinity,
Integer timeoutSec) {
Expand All @@ -112,6 +115,7 @@ private BackendService(
this.portName = portName;
this.protocol = protocol;
this.region = region;
this.securityPolicy = securityPolicy;
this.selfLink = selfLink;
this.sessionAffinity = sessionAffinity;
this.timeoutSec = timeoutSec;
Expand Down Expand Up @@ -173,6 +177,9 @@ public Object getFieldValue(String fieldName) {
if (fieldName.equals("region")) {
return region;
}
if (fieldName.equals("securityPolicy")) {
return securityPolicy;
}
if (fieldName.equals("selfLink")) {
return selfLink;
}
Expand Down Expand Up @@ -269,6 +276,10 @@ public String getRegion() {
return region;
}

public String getSecurityPolicy() {
return securityPolicy;
}

public String getSelfLink() {
return selfLink;
}
Expand Down Expand Up @@ -322,6 +333,7 @@ public static class Builder {
private String portName;
private String protocol;
private String region;
private String securityPolicy;
private String selfLink;
private String sessionAffinity;
private Integer timeoutSec;
Expand Down Expand Up @@ -384,6 +396,9 @@ public Builder mergeFrom(BackendService other) {
if (other.getRegion() != null) {
this.region = other.region;
}
if (other.getSecurityPolicy() != null) {
this.securityPolicy = other.securityPolicy;
}
if (other.getSelfLink() != null) {
this.selfLink = other.selfLink;
}
Expand Down Expand Up @@ -415,6 +430,7 @@ public Builder mergeFrom(BackendService other) {
this.portName = source.portName;
this.protocol = source.protocol;
this.region = source.region;
this.securityPolicy = source.securityPolicy;
this.selfLink = source.selfLink;
this.sessionAffinity = source.sessionAffinity;
this.timeoutSec = source.timeoutSec;
Expand Down Expand Up @@ -604,6 +620,15 @@ public Builder setRegion(String region) {
return this;
}

public String getSecurityPolicy() {
return securityPolicy;
}

public Builder setSecurityPolicy(String securityPolicy) {
this.securityPolicy = securityPolicy;
return this;
}

public String getSelfLink() {
return selfLink;
}
Expand Down Expand Up @@ -652,6 +677,7 @@ public BackendService build() {
portName,
protocol,
region,
securityPolicy,
selfLink,
sessionAffinity,
timeoutSec);
Expand All @@ -677,6 +703,7 @@ public Builder clone() {
newBuilder.setPortName(this.portName);
newBuilder.setProtocol(this.protocol);
newBuilder.setRegion(this.region);
newBuilder.setSecurityPolicy(this.securityPolicy);
newBuilder.setSelfLink(this.selfLink);
newBuilder.setSessionAffinity(this.sessionAffinity);
newBuilder.setTimeoutSec(this.timeoutSec);
Expand Down Expand Up @@ -741,6 +768,9 @@ public String toString() {
+ "region="
+ region
+ ", "
+ "securityPolicy="
+ securityPolicy
+ ", "
+ "selfLink="
+ selfLink
+ ", "
Expand Down Expand Up @@ -777,6 +807,7 @@ public boolean equals(Object o) {
&& Objects.equals(this.portName, that.getPortName())
&& Objects.equals(this.protocol, that.getProtocol())
&& Objects.equals(this.region, that.getRegion())
&& Objects.equals(this.securityPolicy, that.getSecurityPolicy())
&& Objects.equals(this.selfLink, that.getSelfLink())
&& Objects.equals(this.sessionAffinity, that.getSessionAffinity())
&& Objects.equals(this.timeoutSec, that.getTimeoutSec());
Expand Down Expand Up @@ -805,6 +836,7 @@ public int hashCode() {
portName,
protocol,
region,
securityPolicy,
selfLink,
sessionAffinity,
timeoutSec);
Expand Down
Loading

0 comments on commit 7f3ab97

Please sign in to comment.