oh-my-muse/docs/api-contracts/generated/java/com/muse/dto/MetaSchemaDeprecateResponse.java
zizi 10d1f97d3f feat(api): 全量补齐 6 模块 OpenAPI 契约(229 接口)+ 重新生成类型
Content 50 + AI 39 + Knowledge 59 + Market 32 + Account 33 + Meta 16 = 229
修复 Knowledge YAML 重复 key
重新生成 TypeScript 类型包(7 文件)+ Java DTO 骨架(626 类)
2026-05-24 15:06:11 +08:00

232 lines
7.3 KiB
Java

package com.muse.dto;
import java.net.URI;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.muse.dto.MetaSchemaDeprecateResponseNextActionsInner;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.springframework.lang.Nullable;
import java.io.Serializable;
import java.time.OffsetDateTime;
import jakarta.validation.Valid;
import jakarta.validation.constraints.*;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.*;
import jakarta.annotation.Generated;
/**
* MetaSchemaDeprecateResponse
*/
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2026-05-24T15:05:54.603829+08:00[Asia/Shanghai]", comments = "Generator version: 7.22.0")
public class MetaSchemaDeprecateResponse implements Serializable {
private static final long serialVersionUID = 1L;
private @Nullable String schemaKey;
private @Nullable Integer version;
@Valid
private List<String> deprecatedFields = new ArrayList<>();
private @Nullable Boolean entireVersionDeprecated;
private @Nullable Integer affectedProjectionCount;
@Valid
private List<@Valid MetaSchemaDeprecateResponseNextActionsInner> nextActions = new ArrayList<>();
public MetaSchemaDeprecateResponse schemaKey(@Nullable String schemaKey) {
this.schemaKey = schemaKey;
return this;
}
/**
* Get schemaKey
* @return schemaKey
*/
@Schema(name = "schemaKey", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("schemaKey")
public @Nullable String getSchemaKey() {
return schemaKey;
}
@JsonProperty("schemaKey")
public void setSchemaKey(@Nullable String schemaKey) {
this.schemaKey = schemaKey;
}
public MetaSchemaDeprecateResponse version(@Nullable Integer version) {
this.version = version;
return this;
}
/**
* Get version
* @return version
*/
@Schema(name = "version", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("version")
public @Nullable Integer getVersion() {
return version;
}
@JsonProperty("version")
public void setVersion(@Nullable Integer version) {
this.version = version;
}
public MetaSchemaDeprecateResponse deprecatedFields(List<String> deprecatedFields) {
this.deprecatedFields = deprecatedFields;
return this;
}
public MetaSchemaDeprecateResponse addDeprecatedFieldsItem(String deprecatedFieldsItem) {
if (this.deprecatedFields == null) {
this.deprecatedFields = new ArrayList<>();
}
this.deprecatedFields.add(deprecatedFieldsItem);
return this;
}
/**
* 已废弃字段列表
* @return deprecatedFields
*/
@Schema(name = "deprecatedFields", description = "已废弃字段列表", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("deprecatedFields")
public List<String> getDeprecatedFields() {
return deprecatedFields;
}
@JsonProperty("deprecatedFields")
public void setDeprecatedFields(List<String> deprecatedFields) {
this.deprecatedFields = deprecatedFields;
}
public MetaSchemaDeprecateResponse entireVersionDeprecated(@Nullable Boolean entireVersionDeprecated) {
this.entireVersionDeprecated = entireVersionDeprecated;
return this;
}
/**
* Get entireVersionDeprecated
* @return entireVersionDeprecated
*/
@Schema(name = "entireVersionDeprecated", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("entireVersionDeprecated")
public @Nullable Boolean getEntireVersionDeprecated() {
return entireVersionDeprecated;
}
@JsonProperty("entireVersionDeprecated")
public void setEntireVersionDeprecated(@Nullable Boolean entireVersionDeprecated) {
this.entireVersionDeprecated = entireVersionDeprecated;
}
public MetaSchemaDeprecateResponse affectedProjectionCount(@Nullable Integer affectedProjectionCount) {
this.affectedProjectionCount = affectedProjectionCount;
return this;
}
/**
* Get affectedProjectionCount
* @return affectedProjectionCount
*/
@Schema(name = "affectedProjectionCount", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("affectedProjectionCount")
public @Nullable Integer getAffectedProjectionCount() {
return affectedProjectionCount;
}
@JsonProperty("affectedProjectionCount")
public void setAffectedProjectionCount(@Nullable Integer affectedProjectionCount) {
this.affectedProjectionCount = affectedProjectionCount;
}
public MetaSchemaDeprecateResponse nextActions(List<@Valid MetaSchemaDeprecateResponseNextActionsInner> nextActions) {
this.nextActions = nextActions;
return this;
}
public MetaSchemaDeprecateResponse addNextActionsItem(MetaSchemaDeprecateResponseNextActionsInner nextActionsItem) {
if (this.nextActions == null) {
this.nextActions = new ArrayList<>();
}
this.nextActions.add(nextActionsItem);
return this;
}
/**
* Get nextActions
* @return nextActions
*/
@Valid
@Schema(name = "nextActions", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("nextActions")
public List<@Valid MetaSchemaDeprecateResponseNextActionsInner> getNextActions() {
return nextActions;
}
@JsonProperty("nextActions")
public void setNextActions(List<@Valid MetaSchemaDeprecateResponseNextActionsInner> nextActions) {
this.nextActions = nextActions;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
MetaSchemaDeprecateResponse metaSchemaDeprecateResponse = (MetaSchemaDeprecateResponse) o;
return Objects.equals(this.schemaKey, metaSchemaDeprecateResponse.schemaKey) &&
Objects.equals(this.version, metaSchemaDeprecateResponse.version) &&
Objects.equals(this.deprecatedFields, metaSchemaDeprecateResponse.deprecatedFields) &&
Objects.equals(this.entireVersionDeprecated, metaSchemaDeprecateResponse.entireVersionDeprecated) &&
Objects.equals(this.affectedProjectionCount, metaSchemaDeprecateResponse.affectedProjectionCount) &&
Objects.equals(this.nextActions, metaSchemaDeprecateResponse.nextActions);
}
@Override
public int hashCode() {
return Objects.hash(schemaKey, version, deprecatedFields, entireVersionDeprecated, affectedProjectionCount, nextActions);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class MetaSchemaDeprecateResponse {\n");
sb.append(" schemaKey: ").append(toIndentedString(schemaKey)).append("\n");
sb.append(" version: ").append(toIndentedString(version)).append("\n");
sb.append(" deprecatedFields: ").append(toIndentedString(deprecatedFields)).append("\n");
sb.append(" entireVersionDeprecated: ").append(toIndentedString(entireVersionDeprecated)).append("\n");
sb.append(" affectedProjectionCount: ").append(toIndentedString(affectedProjectionCount)).append("\n");
sb.append(" nextActions: ").append(toIndentedString(nextActions)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(@Nullable Object o) {
return o == null ? "null" : o.toString().replace("\n", "\n ");
}
}