428 lines
13 KiB
Java
428 lines
13 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.fasterxml.jackson.annotation.JsonTypeName;
|
|
import com.muse.dto.GetGlobalKBDocument200ResponseAllOfDataVersionsInner;
|
|
import java.time.OffsetDateTime;
|
|
import java.util.ArrayList;
|
|
import java.util.Arrays;
|
|
import java.util.List;
|
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
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;
|
|
|
|
/**
|
|
* GetGlobalKBDocument200ResponseAllOfData
|
|
*/
|
|
|
|
@JsonTypeName("getGlobalKBDocument_200_response_allOf_data")
|
|
@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 GetGlobalKBDocument200ResponseAllOfData implements Serializable {
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
private @Nullable String documentId;
|
|
|
|
private @Nullable String name;
|
|
|
|
private @Nullable String type;
|
|
|
|
private @Nullable Integer size;
|
|
|
|
private @Nullable Integer currentVersion;
|
|
|
|
private @Nullable String scanStatus;
|
|
|
|
private @Nullable String processingStatus;
|
|
|
|
private @Nullable Boolean isSearchable;
|
|
|
|
private @Nullable Boolean isGenerative;
|
|
|
|
private @Nullable String parseStatus;
|
|
|
|
private @Nullable String indexStatus;
|
|
|
|
private @Nullable String failureReason;
|
|
|
|
@Valid
|
|
private List<@Valid GetGlobalKBDocument200ResponseAllOfDataVersionsInner> versions = new ArrayList<>();
|
|
|
|
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
|
|
private @Nullable OffsetDateTime updatedAt;
|
|
|
|
public GetGlobalKBDocument200ResponseAllOfData documentId(@Nullable String documentId) {
|
|
this.documentId = documentId;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get documentId
|
|
* @return documentId
|
|
*/
|
|
|
|
@Schema(name = "documentId", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("documentId")
|
|
public @Nullable String getDocumentId() {
|
|
return documentId;
|
|
}
|
|
|
|
@JsonProperty("documentId")
|
|
public void setDocumentId(@Nullable String documentId) {
|
|
this.documentId = documentId;
|
|
}
|
|
|
|
public GetGlobalKBDocument200ResponseAllOfData name(@Nullable String name) {
|
|
this.name = name;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get name
|
|
* @return name
|
|
*/
|
|
|
|
@Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("name")
|
|
public @Nullable String getName() {
|
|
return name;
|
|
}
|
|
|
|
@JsonProperty("name")
|
|
public void setName(@Nullable String name) {
|
|
this.name = name;
|
|
}
|
|
|
|
public GetGlobalKBDocument200ResponseAllOfData type(@Nullable String type) {
|
|
this.type = type;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get type
|
|
* @return type
|
|
*/
|
|
|
|
@Schema(name = "type", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("type")
|
|
public @Nullable String getType() {
|
|
return type;
|
|
}
|
|
|
|
@JsonProperty("type")
|
|
public void setType(@Nullable String type) {
|
|
this.type = type;
|
|
}
|
|
|
|
public GetGlobalKBDocument200ResponseAllOfData size(@Nullable Integer size) {
|
|
this.size = size;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get size
|
|
* @return size
|
|
*/
|
|
|
|
@Schema(name = "size", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("size")
|
|
public @Nullable Integer getSize() {
|
|
return size;
|
|
}
|
|
|
|
@JsonProperty("size")
|
|
public void setSize(@Nullable Integer size) {
|
|
this.size = size;
|
|
}
|
|
|
|
public GetGlobalKBDocument200ResponseAllOfData currentVersion(@Nullable Integer currentVersion) {
|
|
this.currentVersion = currentVersion;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get currentVersion
|
|
* @return currentVersion
|
|
*/
|
|
|
|
@Schema(name = "currentVersion", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("currentVersion")
|
|
public @Nullable Integer getCurrentVersion() {
|
|
return currentVersion;
|
|
}
|
|
|
|
@JsonProperty("currentVersion")
|
|
public void setCurrentVersion(@Nullable Integer currentVersion) {
|
|
this.currentVersion = currentVersion;
|
|
}
|
|
|
|
public GetGlobalKBDocument200ResponseAllOfData scanStatus(@Nullable String scanStatus) {
|
|
this.scanStatus = scanStatus;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get scanStatus
|
|
* @return scanStatus
|
|
*/
|
|
|
|
@Schema(name = "scanStatus", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("scanStatus")
|
|
public @Nullable String getScanStatus() {
|
|
return scanStatus;
|
|
}
|
|
|
|
@JsonProperty("scanStatus")
|
|
public void setScanStatus(@Nullable String scanStatus) {
|
|
this.scanStatus = scanStatus;
|
|
}
|
|
|
|
public GetGlobalKBDocument200ResponseAllOfData processingStatus(@Nullable String processingStatus) {
|
|
this.processingStatus = processingStatus;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get processingStatus
|
|
* @return processingStatus
|
|
*/
|
|
|
|
@Schema(name = "processingStatus", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("processingStatus")
|
|
public @Nullable String getProcessingStatus() {
|
|
return processingStatus;
|
|
}
|
|
|
|
@JsonProperty("processingStatus")
|
|
public void setProcessingStatus(@Nullable String processingStatus) {
|
|
this.processingStatus = processingStatus;
|
|
}
|
|
|
|
public GetGlobalKBDocument200ResponseAllOfData isSearchable(@Nullable Boolean isSearchable) {
|
|
this.isSearchable = isSearchable;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get isSearchable
|
|
* @return isSearchable
|
|
*/
|
|
|
|
@Schema(name = "isSearchable", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("isSearchable")
|
|
public @Nullable Boolean getIsSearchable() {
|
|
return isSearchable;
|
|
}
|
|
|
|
@JsonProperty("isSearchable")
|
|
public void setIsSearchable(@Nullable Boolean isSearchable) {
|
|
this.isSearchable = isSearchable;
|
|
}
|
|
|
|
public GetGlobalKBDocument200ResponseAllOfData isGenerative(@Nullable Boolean isGenerative) {
|
|
this.isGenerative = isGenerative;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get isGenerative
|
|
* @return isGenerative
|
|
*/
|
|
|
|
@Schema(name = "isGenerative", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("isGenerative")
|
|
public @Nullable Boolean getIsGenerative() {
|
|
return isGenerative;
|
|
}
|
|
|
|
@JsonProperty("isGenerative")
|
|
public void setIsGenerative(@Nullable Boolean isGenerative) {
|
|
this.isGenerative = isGenerative;
|
|
}
|
|
|
|
public GetGlobalKBDocument200ResponseAllOfData parseStatus(@Nullable String parseStatus) {
|
|
this.parseStatus = parseStatus;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get parseStatus
|
|
* @return parseStatus
|
|
*/
|
|
|
|
@Schema(name = "parseStatus", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("parseStatus")
|
|
public @Nullable String getParseStatus() {
|
|
return parseStatus;
|
|
}
|
|
|
|
@JsonProperty("parseStatus")
|
|
public void setParseStatus(@Nullable String parseStatus) {
|
|
this.parseStatus = parseStatus;
|
|
}
|
|
|
|
public GetGlobalKBDocument200ResponseAllOfData indexStatus(@Nullable String indexStatus) {
|
|
this.indexStatus = indexStatus;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get indexStatus
|
|
* @return indexStatus
|
|
*/
|
|
|
|
@Schema(name = "indexStatus", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("indexStatus")
|
|
public @Nullable String getIndexStatus() {
|
|
return indexStatus;
|
|
}
|
|
|
|
@JsonProperty("indexStatus")
|
|
public void setIndexStatus(@Nullable String indexStatus) {
|
|
this.indexStatus = indexStatus;
|
|
}
|
|
|
|
public GetGlobalKBDocument200ResponseAllOfData failureReason(@Nullable String failureReason) {
|
|
this.failureReason = failureReason;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get failureReason
|
|
* @return failureReason
|
|
*/
|
|
|
|
@Schema(name = "failureReason", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("failureReason")
|
|
public @Nullable String getFailureReason() {
|
|
return failureReason;
|
|
}
|
|
|
|
@JsonProperty("failureReason")
|
|
public void setFailureReason(@Nullable String failureReason) {
|
|
this.failureReason = failureReason;
|
|
}
|
|
|
|
public GetGlobalKBDocument200ResponseAllOfData versions(List<@Valid GetGlobalKBDocument200ResponseAllOfDataVersionsInner> versions) {
|
|
this.versions = versions;
|
|
return this;
|
|
}
|
|
|
|
public GetGlobalKBDocument200ResponseAllOfData addVersionsItem(GetGlobalKBDocument200ResponseAllOfDataVersionsInner versionsItem) {
|
|
if (this.versions == null) {
|
|
this.versions = new ArrayList<>();
|
|
}
|
|
this.versions.add(versionsItem);
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get versions
|
|
* @return versions
|
|
*/
|
|
@Valid
|
|
@Schema(name = "versions", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("versions")
|
|
public List<@Valid GetGlobalKBDocument200ResponseAllOfDataVersionsInner> getVersions() {
|
|
return versions;
|
|
}
|
|
|
|
@JsonProperty("versions")
|
|
public void setVersions(List<@Valid GetGlobalKBDocument200ResponseAllOfDataVersionsInner> versions) {
|
|
this.versions = versions;
|
|
}
|
|
|
|
public GetGlobalKBDocument200ResponseAllOfData updatedAt(@Nullable OffsetDateTime updatedAt) {
|
|
this.updatedAt = updatedAt;
|
|
return this;
|
|
}
|
|
|
|
/**
|
|
* Get updatedAt
|
|
* @return updatedAt
|
|
*/
|
|
@Valid
|
|
@Schema(name = "updatedAt", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
|
@JsonProperty("updatedAt")
|
|
public @Nullable OffsetDateTime getUpdatedAt() {
|
|
return updatedAt;
|
|
}
|
|
|
|
@JsonProperty("updatedAt")
|
|
public void setUpdatedAt(@Nullable OffsetDateTime updatedAt) {
|
|
this.updatedAt = updatedAt;
|
|
}
|
|
|
|
@Override
|
|
public boolean equals(Object o) {
|
|
if (this == o) {
|
|
return true;
|
|
}
|
|
if (o == null || getClass() != o.getClass()) {
|
|
return false;
|
|
}
|
|
GetGlobalKBDocument200ResponseAllOfData getGlobalKBDocument200ResponseAllOfData = (GetGlobalKBDocument200ResponseAllOfData) o;
|
|
return Objects.equals(this.documentId, getGlobalKBDocument200ResponseAllOfData.documentId) &&
|
|
Objects.equals(this.name, getGlobalKBDocument200ResponseAllOfData.name) &&
|
|
Objects.equals(this.type, getGlobalKBDocument200ResponseAllOfData.type) &&
|
|
Objects.equals(this.size, getGlobalKBDocument200ResponseAllOfData.size) &&
|
|
Objects.equals(this.currentVersion, getGlobalKBDocument200ResponseAllOfData.currentVersion) &&
|
|
Objects.equals(this.scanStatus, getGlobalKBDocument200ResponseAllOfData.scanStatus) &&
|
|
Objects.equals(this.processingStatus, getGlobalKBDocument200ResponseAllOfData.processingStatus) &&
|
|
Objects.equals(this.isSearchable, getGlobalKBDocument200ResponseAllOfData.isSearchable) &&
|
|
Objects.equals(this.isGenerative, getGlobalKBDocument200ResponseAllOfData.isGenerative) &&
|
|
Objects.equals(this.parseStatus, getGlobalKBDocument200ResponseAllOfData.parseStatus) &&
|
|
Objects.equals(this.indexStatus, getGlobalKBDocument200ResponseAllOfData.indexStatus) &&
|
|
Objects.equals(this.failureReason, getGlobalKBDocument200ResponseAllOfData.failureReason) &&
|
|
Objects.equals(this.versions, getGlobalKBDocument200ResponseAllOfData.versions) &&
|
|
Objects.equals(this.updatedAt, getGlobalKBDocument200ResponseAllOfData.updatedAt);
|
|
}
|
|
|
|
@Override
|
|
public int hashCode() {
|
|
return Objects.hash(documentId, name, type, size, currentVersion, scanStatus, processingStatus, isSearchable, isGenerative, parseStatus, indexStatus, failureReason, versions, updatedAt);
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append("class GetGlobalKBDocument200ResponseAllOfData {\n");
|
|
sb.append(" documentId: ").append(toIndentedString(documentId)).append("\n");
|
|
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
|
sb.append(" type: ").append(toIndentedString(type)).append("\n");
|
|
sb.append(" size: ").append(toIndentedString(size)).append("\n");
|
|
sb.append(" currentVersion: ").append(toIndentedString(currentVersion)).append("\n");
|
|
sb.append(" scanStatus: ").append(toIndentedString(scanStatus)).append("\n");
|
|
sb.append(" processingStatus: ").append(toIndentedString(processingStatus)).append("\n");
|
|
sb.append(" isSearchable: ").append(toIndentedString(isSearchable)).append("\n");
|
|
sb.append(" isGenerative: ").append(toIndentedString(isGenerative)).append("\n");
|
|
sb.append(" parseStatus: ").append(toIndentedString(parseStatus)).append("\n");
|
|
sb.append(" indexStatus: ").append(toIndentedString(indexStatus)).append("\n");
|
|
sb.append(" failureReason: ").append(toIndentedString(failureReason)).append("\n");
|
|
sb.append(" versions: ").append(toIndentedString(versions)).append("\n");
|
|
sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).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 ");
|
|
}
|
|
}
|
|
|