Skip to content

Commit

Permalink
Regenerate compute client (#4662)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation authored and sduskis committed Mar 8, 2019
1 parent 83ea49e commit 11cc527
Show file tree
Hide file tree
Showing 12 changed files with 568 additions and 81 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public final class BackendService implements ApiMessage {
private final BackendServiceCdnPolicy cdnPolicy;
private final ConnectionDraining connectionDraining;
private final String creationTimestamp;
private final List<String> customRequestHeaders;
private final String description;
private final Boolean enableCDN;
private final String fingerprint;
Expand All @@ -59,6 +60,7 @@ private BackendService() {
this.cdnPolicy = null;
this.connectionDraining = null;
this.creationTimestamp = null;
this.customRequestHeaders = null;
this.description = null;
this.enableCDN = null;
this.fingerprint = null;
Expand All @@ -84,6 +86,7 @@ private BackendService(
BackendServiceCdnPolicy cdnPolicy,
ConnectionDraining connectionDraining,
String creationTimestamp,
List<String> customRequestHeaders,
String description,
Boolean enableCDN,
String fingerprint,
Expand All @@ -106,6 +109,7 @@ private BackendService(
this.cdnPolicy = cdnPolicy;
this.connectionDraining = connectionDraining;
this.creationTimestamp = creationTimestamp;
this.customRequestHeaders = customRequestHeaders;
this.description = description;
this.enableCDN = enableCDN;
this.fingerprint = fingerprint;
Expand Down Expand Up @@ -142,6 +146,9 @@ public Object getFieldValue(String fieldName) {
if ("creationTimestamp".equals(fieldName)) {
return creationTimestamp;
}
if ("customRequestHeaders".equals(fieldName)) {
return customRequestHeaders;
}
if ("description".equals(fieldName)) {
return description;
}
Expand Down Expand Up @@ -244,6 +251,11 @@ public String getCreationTimestamp() {
return creationTimestamp;
}

/** Headers that the HTTP/S load balancer should add to proxied requests. */
public List<String> getCustomRequestHeadersList() {
return customRequestHeaders;
}

/**
* An optional description of this resource. Provide this property when you create the resource.
*/
Expand Down Expand Up @@ -422,6 +434,7 @@ public static class Builder {
private BackendServiceCdnPolicy cdnPolicy;
private ConnectionDraining connectionDraining;
private String creationTimestamp;
private List<String> customRequestHeaders;
private String description;
private Boolean enableCDN;
private String fingerprint;
Expand Down Expand Up @@ -459,6 +472,9 @@ public Builder mergeFrom(BackendService other) {
if (other.getCreationTimestamp() != null) {
this.creationTimestamp = other.creationTimestamp;
}
if (other.getCustomRequestHeadersList() != null) {
this.customRequestHeaders = other.customRequestHeaders;
}
if (other.getDescription() != null) {
this.description = other.description;
}
Expand Down Expand Up @@ -519,6 +535,7 @@ public Builder mergeFrom(BackendService other) {
this.cdnPolicy = source.cdnPolicy;
this.connectionDraining = source.connectionDraining;
this.creationTimestamp = source.creationTimestamp;
this.customRequestHeaders = source.customRequestHeaders;
this.description = source.description;
this.enableCDN = source.enableCDN;
this.fingerprint = source.fingerprint;
Expand Down Expand Up @@ -615,6 +632,29 @@ public Builder setCreationTimestamp(String creationTimestamp) {
return this;
}

/** Headers that the HTTP/S load balancer should add to proxied requests. */
public List<String> getCustomRequestHeadersList() {
return customRequestHeaders;
}

/** Headers that the HTTP/S load balancer should add to proxied requests. */
public Builder addAllCustomRequestHeaders(List<String> customRequestHeaders) {
if (this.customRequestHeaders == null) {
this.customRequestHeaders = new LinkedList<>();
}
this.customRequestHeaders.addAll(customRequestHeaders);
return this;
}

/** Headers that the HTTP/S load balancer should add to proxied requests. */
public Builder addCustomRequestHeaders(String customRequestHeaders) {
if (this.customRequestHeaders == null) {
this.customRequestHeaders = new LinkedList<>();
}
this.customRequestHeaders.add(customRequestHeaders);
return this;
}

/**
* An optional description of this resource. Provide this property when you create the resource.
*/
Expand Down Expand Up @@ -961,6 +1001,7 @@ public BackendService build() {
cdnPolicy,
connectionDraining,
creationTimestamp,
customRequestHeaders,
description,
enableCDN,
fingerprint,
Expand All @@ -987,6 +1028,7 @@ public Builder clone() {
newBuilder.setCdnPolicy(this.cdnPolicy);
newBuilder.setConnectionDraining(this.connectionDraining);
newBuilder.setCreationTimestamp(this.creationTimestamp);
newBuilder.addAllCustomRequestHeaders(this.customRequestHeaders);
newBuilder.setDescription(this.description);
newBuilder.setEnableCDN(this.enableCDN);
newBuilder.setFingerprint(this.fingerprint);
Expand Down Expand Up @@ -1026,6 +1068,9 @@ public String toString() {
+ "creationTimestamp="
+ creationTimestamp
+ ", "
+ "customRequestHeaders="
+ customRequestHeaders
+ ", "
+ "description="
+ description
+ ", "
Expand Down Expand Up @@ -1091,6 +1136,7 @@ public boolean equals(Object o) {
&& Objects.equals(this.cdnPolicy, that.getCdnPolicy())
&& Objects.equals(this.connectionDraining, that.getConnectionDraining())
&& Objects.equals(this.creationTimestamp, that.getCreationTimestamp())
&& Objects.equals(this.customRequestHeaders, that.getCustomRequestHeadersList())
&& Objects.equals(this.description, that.getDescription())
&& Objects.equals(this.enableCDN, that.getEnableCDN())
&& Objects.equals(this.fingerprint, that.getFingerprint())
Expand Down Expand Up @@ -1120,6 +1166,7 @@ public int hashCode() {
cdnPolicy,
connectionDraining,
creationTimestamp,
customRequestHeaders,
description,
enableCDN,
fingerprint,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public Expr getCondition() {
* <p>&#42; `group:{emailid}`: An email address that represents a Google group. For example,
* `admins{@literal @}example.com`.
*
* <p>&#42; `domain:{domain}`: A Google Apps domain name that represents all the users of that
* <p>&#42; `domain:{domain}`: The G Suite domain (primary) that represents all the users of that
* domain. For example, `google.com` or `example.com`.
*/
public List<String> getMembersList() {
Expand Down Expand Up @@ -205,8 +205,8 @@ public Builder setCondition(Expr condition) {
* <p>&#42; `group:{emailid}`: An email address that represents a Google group. For example,
* `admins{@literal @}example.com`.
*
* <p>&#42; `domain:{domain}`: A Google Apps domain name that represents all the users of that
* domain. For example, `google.com` or `example.com`.
* <p>&#42; `domain:{domain}`: The G Suite domain (primary) that represents all the users of
* that domain. For example, `google.com` or `example.com`.
*/
public List<String> getMembersList() {
return members;
Expand All @@ -231,8 +231,8 @@ public List<String> getMembersList() {
* <p>&#42; `group:{emailid}`: An email address that represents a Google group. For example,
* `admins{@literal @}example.com`.
*
* <p>&#42; `domain:{domain}`: A Google Apps domain name that represents all the users of that
* domain. For example, `google.com` or `example.com`.
* <p>&#42; `domain:{domain}`: The G Suite domain (primary) that represents all the users of
* that domain. For example, `google.com` or `example.com`.
*/
public Builder addAllMembers(List<String> members) {
if (this.members == null) {
Expand Down Expand Up @@ -261,8 +261,8 @@ public Builder addAllMembers(List<String> members) {
* <p>&#42; `group:{emailid}`: An email address that represents a Google group. For example,
* `admins{@literal @}example.com`.
*
* <p>&#42; `domain:{domain}`: A Google Apps domain name that represents all the users of that
* domain. For example, `google.com` or `example.com`.
* <p>&#42; `domain:{domain}`: The G Suite domain (primary) that represents all the users of
* that domain. For example, `google.com` or `example.com`.
*/
public Builder addMembers(String members) {
if (this.members == null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,11 @@ public String getReplacement() {
}

/**
* The deprecation state of this resource. This can be DEPRECATED, OBSOLETE, or DELETED.
* Operations which create a new resource using a DEPRECATED resource will return successfully,
* but with a warning indicating the deprecated resource and recommending its replacement.
* Operations which use OBSOLETE or DELETED resources will be rejected and result in an error.
* The deprecation state of this resource. This can be ACTIVE DEPRECATED, OBSOLETE, or DELETED.
* Operations which communicate the end of life date for an image, can use ACTIVE. Operations
* which create a new resource using a DEPRECATED resource will return successfully, but with a
* warning indicating the deprecated resource and recommending its replacement. Operations which
* use OBSOLETE or DELETED resources will be rejected and result in an error.
*/
public String getState() {
return state;
Expand Down Expand Up @@ -266,20 +267,22 @@ public Builder setReplacement(String replacement) {
}

/**
* The deprecation state of this resource. This can be DEPRECATED, OBSOLETE, or DELETED.
* Operations which create a new resource using a DEPRECATED resource will return successfully,
* but with a warning indicating the deprecated resource and recommending its replacement.
* Operations which use OBSOLETE or DELETED resources will be rejected and result in an error.
* The deprecation state of this resource. This can be ACTIVE DEPRECATED, OBSOLETE, or DELETED.
* Operations which communicate the end of life date for an image, can use ACTIVE. Operations
* which create a new resource using a DEPRECATED resource will return successfully, but with a
* warning indicating the deprecated resource and recommending its replacement. Operations which
* use OBSOLETE or DELETED resources will be rejected and result in an error.
*/
public String getState() {
return state;
}

/**
* The deprecation state of this resource. This can be DEPRECATED, OBSOLETE, or DELETED.
* Operations which create a new resource using a DEPRECATED resource will return successfully,
* but with a warning indicating the deprecated resource and recommending its replacement.
* Operations which use OBSOLETE or DELETED resources will be rejected and result in an error.
* The deprecation state of this resource. This can be ACTIVE DEPRECATED, OBSOLETE, or DELETED.
* Operations which communicate the end of life date for an image, can use ACTIVE. Operations
* which create a new resource using a DEPRECATED resource will return successfully, but with a
* warning indicating the deprecated resource and recommending its replacement. Operations which
* use OBSOLETE or DELETED resources will be rejected and result in an error.
*/
public Builder setState(String state) {
this.state = state;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public final class HealthCheck implements ApiMessage {
private final String creationTimestamp;
private final String description;
private final Integer healthyThreshold;
private final Http2HealthCheck http2HealthCheck;
private final HttpHealthCheck httpHealthCheck;
private final HttpSHealthCheck httpsHealthCheck;
private final String id;
Expand All @@ -50,6 +51,7 @@ private HealthCheck() {
this.creationTimestamp = null;
this.description = null;
this.healthyThreshold = null;
this.http2HealthCheck = null;
this.httpHealthCheck = null;
this.httpsHealthCheck = null;
this.id = null;
Expand All @@ -68,6 +70,7 @@ private HealthCheck(
String creationTimestamp,
String description,
Integer healthyThreshold,
Http2HealthCheck http2HealthCheck,
HttpHealthCheck httpHealthCheck,
HttpSHealthCheck httpsHealthCheck,
String id,
Expand All @@ -83,6 +86,7 @@ private HealthCheck(
this.creationTimestamp = creationTimestamp;
this.description = description;
this.healthyThreshold = healthyThreshold;
this.http2HealthCheck = http2HealthCheck;
this.httpHealthCheck = httpHealthCheck;
this.httpsHealthCheck = httpsHealthCheck;
this.id = id;
Expand Down Expand Up @@ -110,6 +114,9 @@ public Object getFieldValue(String fieldName) {
if ("healthyThreshold".equals(fieldName)) {
return healthyThreshold;
}
if ("http2HealthCheck".equals(fieldName)) {
return http2HealthCheck;
}
if ("httpHealthCheck".equals(fieldName)) {
return httpHealthCheck;
}
Expand Down Expand Up @@ -189,6 +196,10 @@ public Integer getHealthyThreshold() {
return healthyThreshold;
}

public Http2HealthCheck getHttp2HealthCheck() {
return http2HealthCheck;
}

public HttpHealthCheck getHttpHealthCheck() {
return httpHealthCheck;
}
Expand Down Expand Up @@ -285,6 +296,7 @@ public static class Builder {
private String creationTimestamp;
private String description;
private Integer healthyThreshold;
private Http2HealthCheck http2HealthCheck;
private HttpHealthCheck httpHealthCheck;
private HttpSHealthCheck httpsHealthCheck;
private String id;
Expand Down Expand Up @@ -313,6 +325,9 @@ public Builder mergeFrom(HealthCheck other) {
if (other.getHealthyThreshold() != null) {
this.healthyThreshold = other.healthyThreshold;
}
if (other.getHttp2HealthCheck() != null) {
this.http2HealthCheck = other.http2HealthCheck;
}
if (other.getHttpHealthCheck() != null) {
this.httpHealthCheck = other.httpHealthCheck;
}
Expand Down Expand Up @@ -354,6 +369,7 @@ public Builder mergeFrom(HealthCheck other) {
this.creationTimestamp = source.creationTimestamp;
this.description = source.description;
this.healthyThreshold = source.healthyThreshold;
this.http2HealthCheck = source.http2HealthCheck;
this.httpHealthCheck = source.httpHealthCheck;
this.httpsHealthCheck = source.httpsHealthCheck;
this.id = source.id;
Expand Down Expand Up @@ -421,6 +437,15 @@ public Builder setHealthyThreshold(Integer healthyThreshold) {
return this;
}

public Http2HealthCheck getHttp2HealthCheck() {
return http2HealthCheck;
}

public Builder setHttp2HealthCheck(Http2HealthCheck http2HealthCheck) {
this.http2HealthCheck = http2HealthCheck;
return this;
}

public HttpHealthCheck getHttpHealthCheck() {
return httpHealthCheck;
}
Expand Down Expand Up @@ -579,6 +604,7 @@ public HealthCheck build() {
creationTimestamp,
description,
healthyThreshold,
http2HealthCheck,
httpHealthCheck,
httpsHealthCheck,
id,
Expand All @@ -598,6 +624,7 @@ public Builder clone() {
newBuilder.setCreationTimestamp(this.creationTimestamp);
newBuilder.setDescription(this.description);
newBuilder.setHealthyThreshold(this.healthyThreshold);
newBuilder.setHttp2HealthCheck(this.http2HealthCheck);
newBuilder.setHttpHealthCheck(this.httpHealthCheck);
newBuilder.setHttpsHealthCheck(this.httpsHealthCheck);
newBuilder.setId(this.id);
Expand Down Expand Up @@ -628,6 +655,9 @@ public String toString() {
+ "healthyThreshold="
+ healthyThreshold
+ ", "
+ "http2HealthCheck="
+ http2HealthCheck
+ ", "
+ "httpHealthCheck="
+ httpHealthCheck
+ ", "
Expand Down Expand Up @@ -674,6 +704,7 @@ public boolean equals(Object o) {
&& Objects.equals(this.creationTimestamp, that.getCreationTimestamp())
&& Objects.equals(this.description, that.getDescription())
&& Objects.equals(this.healthyThreshold, that.getHealthyThreshold())
&& Objects.equals(this.http2HealthCheck, that.getHttp2HealthCheck())
&& Objects.equals(this.httpHealthCheck, that.getHttpHealthCheck())
&& Objects.equals(this.httpsHealthCheck, that.getHttpsHealthCheck())
&& Objects.equals(this.id, that.getId())
Expand All @@ -696,6 +727,7 @@ public int hashCode() {
creationTimestamp,
description,
healthyThreshold,
http2HealthCheck,
httpHealthCheck,
httpsHealthCheck,
id,
Expand Down
Loading

0 comments on commit 11cc527

Please sign in to comment.