224 lines
6.8 KiB
Java
224 lines
6.8 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 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;
|
|
|
|
/**
|
|
* 作品维度 MetaSchema 投影摘要
|
|
*/
|
|
|
|
@Schema(name = "MetaProjectionSummary", description = "作品维度 MetaSchema 投影摘要")
|
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2026-05-24T16:47:40.290595+08:00[Asia/Shanghai]", comments = "Generator version: 7.22.0")
|
|
public class MetaProjectionSummary implements Serializable {
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
private String projectionKey;
|
|
|
|
private @Nullable String projectionName;
|
|
|
|
private Integer schemaVersion;
|
|
|
|
private Integer projectionVersion;
|
|
|
|
private @Nullable Integer dataRevision;
|
|
|
|
private @Nullable Integer fieldCount;
|
|
|
|
public MetaProjectionSummary() {
|
|
super();
|
|
}
|
|
|
|
/**
|
|
* Constructor with only required parameters
|
|
*/
|
|
public MetaProjectionSummary(String projectionKey, Integer schemaVersion, Integer projectionVersion) {
|
|
this.projectionKey = projectionKey;
|
|
this.schemaVersion = schemaVersion;
|
|
this.projectionVersion = projectionVersion;
|
|
}
|
|
|
|
public MetaProjectionSummary projectionKey(String projectionKey) {
|
|
this.projectionKey = projectionKey;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* 投影标识,如 setting、worldview、character
|
|
* @return projectionKey
|
|
*/
|
|
@NotNull
|
|
@Schema(name = "projectionKey", description = "投影标识,如 setting、worldview、character", requiredMode = Schema.RequiredMode.REQUIRED)
|
|
@JsonProperty("projectionKey")
|
|
public String getProjectionKey() {
|
|
return projectionKey;
|
|
}
|
|
|
|
@JsonProperty("projectionKey")
|
|
public void setProjectionKey(String projectionKey) {
|
|
this.projectionKey = projectionKey;
|
|
}
|
|
|
|
public MetaProjectionSummary projectionName(@Nullable String projectionName) {
|
|
this.projectionName = projectionName;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* 投影名称
|
|
* @return projectionName
|
|
*/
|
|
|
|
@Schema(name = "projectionName", description = "投影名称", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("projectionName")
|
|
public @Nullable String getProjectionName() {
|
|
return projectionName;
|
|
}
|
|
|
|
@JsonProperty("projectionName")
|
|
public void setProjectionName(@Nullable String projectionName) {
|
|
this.projectionName = projectionName;
|
|
}
|
|
|
|
public MetaProjectionSummary schemaVersion(Integer schemaVersion) {
|
|
this.schemaVersion = schemaVersion;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* 本次投影使用的 MetaSchema 版本
|
|
* @return schemaVersion
|
|
*/
|
|
@NotNull
|
|
@Schema(name = "schemaVersion", description = "本次投影使用的 MetaSchema 版本", requiredMode = Schema.RequiredMode.REQUIRED)
|
|
@JsonProperty("schemaVersion")
|
|
public Integer getSchemaVersion() {
|
|
return schemaVersion;
|
|
}
|
|
|
|
@JsonProperty("schemaVersion")
|
|
public void setSchemaVersion(Integer schemaVersion) {
|
|
this.schemaVersion = schemaVersion;
|
|
}
|
|
|
|
public MetaProjectionSummary projectionVersion(Integer projectionVersion) {
|
|
this.projectionVersion = projectionVersion;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* 可见投影版本,用于判断前端缓存是否过期
|
|
* @return projectionVersion
|
|
*/
|
|
@NotNull
|
|
@Schema(name = "projectionVersion", description = "可见投影版本,用于判断前端缓存是否过期", requiredMode = Schema.RequiredMode.REQUIRED)
|
|
@JsonProperty("projectionVersion")
|
|
public Integer getProjectionVersion() {
|
|
return projectionVersion;
|
|
}
|
|
|
|
@JsonProperty("projectionVersion")
|
|
public void setProjectionVersion(Integer projectionVersion) {
|
|
this.projectionVersion = projectionVersion;
|
|
}
|
|
|
|
public MetaProjectionSummary dataRevision(@Nullable Integer dataRevision) {
|
|
this.dataRevision = dataRevision;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* 目标对象动态字段数据 revision
|
|
* @return dataRevision
|
|
*/
|
|
|
|
@Schema(name = "dataRevision", description = "目标对象动态字段数据 revision", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("dataRevision")
|
|
public @Nullable Integer getDataRevision() {
|
|
return dataRevision;
|
|
}
|
|
|
|
@JsonProperty("dataRevision")
|
|
public void setDataRevision(@Nullable Integer dataRevision) {
|
|
this.dataRevision = dataRevision;
|
|
}
|
|
|
|
public MetaProjectionSummary fieldCount(@Nullable Integer fieldCount) {
|
|
this.fieldCount = fieldCount;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* 可见字段数量
|
|
* @return fieldCount
|
|
*/
|
|
|
|
@Schema(name = "fieldCount", description = "可见字段数量", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("fieldCount")
|
|
public @Nullable Integer getFieldCount() {
|
|
return fieldCount;
|
|
}
|
|
|
|
@JsonProperty("fieldCount")
|
|
public void setFieldCount(@Nullable Integer fieldCount) {
|
|
this.fieldCount = fieldCount;
|
|
}
|
|
|
|
@Override
|
|
public boolean equals(Object o) {
|
|
if (this == o) {
|
|
return true;
|
|
}
|
|
if (o == null || getClass() != o.getClass()) {
|
|
return false;
|
|
}
|
|
MetaProjectionSummary metaProjectionSummary = (MetaProjectionSummary) o;
|
|
return Objects.equals(this.projectionKey, metaProjectionSummary.projectionKey) &&
|
|
Objects.equals(this.projectionName, metaProjectionSummary.projectionName) &&
|
|
Objects.equals(this.schemaVersion, metaProjectionSummary.schemaVersion) &&
|
|
Objects.equals(this.projectionVersion, metaProjectionSummary.projectionVersion) &&
|
|
Objects.equals(this.dataRevision, metaProjectionSummary.dataRevision) &&
|
|
Objects.equals(this.fieldCount, metaProjectionSummary.fieldCount);
|
|
}
|
|
|
|
@Override
|
|
public int hashCode() {
|
|
return Objects.hash(projectionKey, projectionName, schemaVersion, projectionVersion, dataRevision, fieldCount);
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append("class MetaProjectionSummary {\n");
|
|
sb.append(" projectionKey: ").append(toIndentedString(projectionKey)).append("\n");
|
|
sb.append(" projectionName: ").append(toIndentedString(projectionName)).append("\n");
|
|
sb.append(" schemaVersion: ").append(toIndentedString(schemaVersion)).append("\n");
|
|
sb.append(" projectionVersion: ").append(toIndentedString(projectionVersion)).append("\n");
|
|
sb.append(" dataRevision: ").append(toIndentedString(dataRevision)).append("\n");
|
|
sb.append(" fieldCount: ").append(toIndentedString(fieldCount)).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 ");
|
|
}
|
|
}
|
|
|