Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@
public class Error
// CHECKSTYLE:ON
{
@JsonProperty("code")
private String code;

@JsonProperty("message")
private String message;

@JsonProperty("param")
private String param;

Expand All @@ -37,168 +43,162 @@ public class Error
@JsonProperty("inner_error")
private InnerError innerError;

@JsonProperty("code")
private String code;

@JsonProperty("message")
private String message;

@JsonAnySetter @JsonAnyGetter
private final Map<String, Object> cloudSdkCustomFields = new LinkedHashMap<>();

/**
* Set the param of this {@link Error} instance and return the same instance.
* Set the code of this {@link Error} instance and return the same instance.
*
* @param param The param of this {@link Error}
* @param code The code of this {@link Error}
* @return The same instance of this {@link Error} class
*/
@Nonnull
public Error param(@Nullable final String param) {
this.param = param;
public Error code(@Nullable final String code) {
this.code = code;
return this;
}

/**
* Get param
* Get code
*
* @return param The param of this {@link Error} instance.
* @return code The code of this {@link Error} instance.
*/
@Nonnull
public String getParam() {
return param;
public String getCode() {
return code;
}

/**
* Set the param of this {@link Error} instance.
* Set the code of this {@link Error} instance.
*
* @param param The param of this {@link Error}
* @param code The code of this {@link Error}
*/
public void setParam(@Nullable final String param) {
this.param = param;
public void setCode(@Nullable final String code) {
this.code = code;
}

/**
* Set the type of this {@link Error} instance and return the same instance.
* Set the message of this {@link Error} instance and return the same instance.
*
* @param type The type of this {@link Error}
* @param message The message of this {@link Error}
* @return The same instance of this {@link Error} class
*/
@Nonnull
public Error type(@Nullable final String type) {
this.type = type;
public Error message(@Nullable final String message) {
this.message = message;
return this;
}

/**
* Get type
* Get message
*
* @return type The type of this {@link Error} instance.
* @return message The message of this {@link Error} instance.
*/
@Nonnull
public String getType() {
return type;
public String getMessage() {
return message;
}

/**
* Set the type of this {@link Error} instance.
* Set the message of this {@link Error} instance.
*
* @param type The type of this {@link Error}
* @param message The message of this {@link Error}
*/
public void setType(@Nullable final String type) {
this.type = type;
public void setMessage(@Nullable final String message) {
this.message = message;
}

/**
* Set the innerError of this {@link Error} instance and return the same instance.
* Set the param of this {@link Error} instance and return the same instance.
*
* @param innerError The innerError of this {@link Error}
* @param param The param of this {@link Error}
* @return The same instance of this {@link Error} class
*/
@Nonnull
public Error innerError(@Nullable final InnerError innerError) {
this.innerError = innerError;
public Error param(@Nullable final String param) {
this.param = param;
return this;
}

/**
* Get innerError
* Get param
*
* @return innerError The innerError of this {@link Error} instance.
* @return param The param of this {@link Error} instance.
*/
@Nonnull
public InnerError getInnerError() {
return innerError;
public String getParam() {
return param;
}

/**
* Set the innerError of this {@link Error} instance.
* Set the param of this {@link Error} instance.
*
* @param innerError The innerError of this {@link Error}
* @param param The param of this {@link Error}
*/
public void setInnerError(@Nullable final InnerError innerError) {
this.innerError = innerError;
public void setParam(@Nullable final String param) {
this.param = param;
}

/**
* Set the code of this {@link Error} instance and return the same instance.
* Set the type of this {@link Error} instance and return the same instance.
*
* @param code The code of this {@link Error}
* @param type The type of this {@link Error}
* @return The same instance of this {@link Error} class
*/
@Nonnull
public Error code(@Nullable final String code) {
this.code = code;
public Error type(@Nullable final String type) {
this.type = type;
return this;
}

/**
* Get code
* Get type
*
* @return code The code of this {@link Error} instance.
* @return type The type of this {@link Error} instance.
*/
@Nonnull
public String getCode() {
return code;
public String getType() {
return type;
}

/**
* Set the code of this {@link Error} instance.
* Set the type of this {@link Error} instance.
*
* @param code The code of this {@link Error}
* @param type The type of this {@link Error}
*/
public void setCode(@Nullable final String code) {
this.code = code;
public void setType(@Nullable final String type) {
this.type = type;
}

/**
* Set the message of this {@link Error} instance and return the same instance.
* Set the innerError of this {@link Error} instance and return the same instance.
*
* @param message The message of this {@link Error}
* @param innerError The innerError of this {@link Error}
* @return The same instance of this {@link Error} class
*/
@Nonnull
public Error message(@Nullable final String message) {
this.message = message;
public Error innerError(@Nullable final InnerError innerError) {
this.innerError = innerError;
return this;
}

/**
* Get message
* Get innerError
*
* @return message The message of this {@link Error} instance.
* @return innerError The innerError of this {@link Error} instance.
*/
@Nonnull
public String getMessage() {
return message;
public InnerError getInnerError() {
return innerError;
}

/**
* Set the message of this {@link Error} instance.
* Set the innerError of this {@link Error} instance.
*
* @param message The message of this {@link Error}
* @param innerError The innerError of this {@link Error}
*/
public void setMessage(@Nullable final String message) {
this.message = message;
public void setInnerError(@Nullable final InnerError innerError) {
this.innerError = innerError;
}

/**
Expand Down Expand Up @@ -239,11 +239,11 @@ public Object getCustomField(@Nonnull final String name) throws NoSuchElementExc
@Nonnull
public Map<String, Object> toMap() {
final Map<String, Object> declaredFields = new LinkedHashMap<>(cloudSdkCustomFields);
if (code != null) declaredFields.put("code", code);
if (message != null) declaredFields.put("message", message);
if (param != null) declaredFields.put("param", param);
if (type != null) declaredFields.put("type", type);
if (innerError != null) declaredFields.put("innerError", innerError);
if (code != null) declaredFields.put("code", code);
if (message != null) declaredFields.put("message", message);
return declaredFields;
}

Expand All @@ -269,28 +269,28 @@ public boolean equals(@Nullable final java.lang.Object o) {
}
final Error error = (Error) o;
return Objects.equals(this.cloudSdkCustomFields, error.cloudSdkCustomFields)
&& Objects.equals(this.code, error.code)
&& Objects.equals(this.message, error.message)
&& Objects.equals(this.param, error.param)
&& Objects.equals(this.type, error.type)
&& Objects.equals(this.innerError, error.innerError)
&& Objects.equals(this.code, error.code)
&& Objects.equals(this.message, error.message);
&& Objects.equals(this.innerError, error.innerError);
}

@Override
public int hashCode() {
return Objects.hash(param, type, innerError, code, message, cloudSdkCustomFields);
return Objects.hash(code, message, param, type, innerError, cloudSdkCustomFields);
}

@Override
@Nonnull
public String toString() {
final StringBuilder sb = new StringBuilder();
sb.append("class Error {\n");
sb.append(" code: ").append(toIndentedString(code)).append("\n");
sb.append(" message: ").append(toIndentedString(message)).append("\n");
sb.append(" param: ").append(toIndentedString(param)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" innerError: ").append(toIndentedString(innerError)).append("\n");
sb.append(" code: ").append(toIndentedString(code)).append("\n");
sb.append(" message: ").append(toIndentedString(message)).append("\n");
cloudSdkCustomFields.forEach(
(k, v) ->
sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n"));
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
<maven.compiler.proc>full</maven.compiler.proc>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.build.outputTimestamp>2025-04-03T13:23:00Z</project.build.outputTimestamp>
<cloud-sdk.version>5.24.0</cloud-sdk.version>
<cloud-sdk.version>5.25.0</cloud-sdk.version>
<junit-jupiter.version>6.0.1</junit-jupiter.version>
<wiremock.version>3.13.2</wiremock.version>
<assertj-core.version>3.27.6</assertj-core.version>
Expand Down Expand Up @@ -299,7 +299,7 @@
<plugin>
<groupId>org.openapitools</groupId>
<artifactId>openapi-generator-maven-plugin</artifactId>
<version>7.17.0</version>
<version>7.18.0</version>
</plugin>
</plugins>
</pluginManagement>
Expand Down