package com.qianwen.smartman.modules.dnc.entity; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableName; import java.io.Serializable; import com.qianwen.core.mp.base.BaseEntity; @TableName(ResourceFile.TABLE_NAME) public class ResourceFile extends BaseEntity implements Serializable { protected static final String TABLE_NAME = "blade_blade_resource_file"; private static final long serialVersionUID = 1; @TableField("tenant_id") private String tenantId; @TableField("display_name") private String displayName; @TableField("content_length") private Long contentLength; @TableField("content_type") private String contentType; @TableField("suffix") private String suffix; @TableField("object_key") private String objectKey; @TableField("content_md5") private String contentMd5; @TableField("file_type") private Integer fileType; @TableField("resource_id") private Long resourceId; public boolean equals(final Object o) { if (o == this) { return true; } if (o instanceof ResourceFile) { ResourceFile other = (ResourceFile) o; if (other.canEqual(this) && super.equals(o)) { Object this$contentLength = getContentLength(); Object other$contentLength = other.getContentLength(); if (this$contentLength == null) { if (other$contentLength != null) { return false; } } else if (!this$contentLength.equals(other$contentLength)) { return false; } Object this$fileType = getFileType(); Object other$fileType = other.getFileType(); if (this$fileType == null) { if (other$fileType != null) { return false; } } else if (!this$fileType.equals(other$fileType)) { return false; } Object this$resourceId = getResourceId(); Object other$resourceId = other.getResourceId(); if (this$resourceId == null) { if (other$resourceId != null) { return false; } } else if (!this$resourceId.equals(other$resourceId)) { return false; } Object this$tenantId = getTenantId(); Object other$tenantId = other.getTenantId(); if (this$tenantId == null) { if (other$tenantId != null) { return false; } } else if (!this$tenantId.equals(other$tenantId)) { return false; } Object this$displayName = getDisplayName(); Object other$displayName = other.getDisplayName(); if (this$displayName == null) { if (other$displayName != null) { return false; } } else if (!this$displayName.equals(other$displayName)) { return false; } Object this$contentType = getContentType(); Object other$contentType = other.getContentType(); if (this$contentType == null) { if (other$contentType != null) { return false; } } else if (!this$contentType.equals(other$contentType)) { return false; } Object this$suffix = getSuffix(); Object other$suffix = other.getSuffix(); if (this$suffix == null) { if (other$suffix != null) { return false; } } else if (!this$suffix.equals(other$suffix)) { return false; } Object this$objectKey = getObjectKey(); Object other$objectKey = other.getObjectKey(); if (this$objectKey == null) { if (other$objectKey != null) { return false; } } else if (!this$objectKey.equals(other$objectKey)) { return false; } Object this$contentMd5 = getContentMd5(); Object other$contentMd5 = other.getContentMd5(); return this$contentMd5 == null ? other$contentMd5 == null : this$contentMd5.equals(other$contentMd5); } return false; } return false; } protected boolean canEqual(final Object other) { return other instanceof ResourceFile; } public int hashCode() { int result = super.hashCode(); Object $contentLength = getContentLength(); int result2 = (result * 59) + ($contentLength == null ? 43 : $contentLength.hashCode()); Object $fileType = getFileType(); int result3 = (result2 * 59) + ($fileType == null ? 43 : $fileType.hashCode()); Object $resourceId = getResourceId(); int result4 = (result3 * 59) + ($resourceId == null ? 43 : $resourceId.hashCode()); Object $tenantId = getTenantId(); int result5 = (result4 * 59) + ($tenantId == null ? 43 : $tenantId.hashCode()); Object $displayName = getDisplayName(); int result6 = (result5 * 59) + ($displayName == null ? 43 : $displayName.hashCode()); Object $contentType = getContentType(); int result7 = (result6 * 59) + ($contentType == null ? 43 : $contentType.hashCode()); Object $suffix = getSuffix(); int result8 = (result7 * 59) + ($suffix == null ? 43 : $suffix.hashCode()); Object $objectKey = getObjectKey(); int result9 = (result8 * 59) + ($objectKey == null ? 43 : $objectKey.hashCode()); Object $contentMd5 = getContentMd5(); return (result9 * 59) + ($contentMd5 == null ? 43 : $contentMd5.hashCode()); } public void setTenantId(final String tenantId) { this.tenantId = tenantId; } public void setDisplayName(final String displayName) { this.displayName = displayName; } public void setContentLength(final Long contentLength) { this.contentLength = contentLength; } public void setContentType(final String contentType) { this.contentType = contentType; } public void setSuffix(final String suffix) { this.suffix = suffix; } public void setObjectKey(final String objectKey) { this.objectKey = objectKey; } public void setContentMd5(final String contentMd5) { this.contentMd5 = contentMd5; } public void setFileType(final Integer fileType) { this.fileType = fileType; } public void setResourceId(final Long resourceId) { this.resourceId = resourceId; } public String toString() { return "ResourceFile(tenantId=" + getTenantId() + ", displayName=" + getDisplayName() + ", contentLength=" + getContentLength() + ", contentType=" + getContentType() + ", suffix=" + getSuffix() + ", objectKey=" + getObjectKey() + ", contentMd5=" + getContentMd5() + ", fileType=" + getFileType() + ", resourceId=" + getResourceId() + ")"; } /* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/dnc/entity/ResourceFile$ResourceFileBuilder.class */ public static class ResourceFileBuilder { private String tenantId; private String displayName; private boolean contentLength$set; private Long contentLength$value; private String contentType; private String suffix; private String objectKey; private String contentMd5; private Integer fileType; private Long resourceId; ResourceFileBuilder() { } public ResourceFileBuilder tenantId(final String tenantId) { this.tenantId = tenantId; return this; } public ResourceFileBuilder displayName(final String displayName) { this.displayName = displayName; return this; } public ResourceFileBuilder contentLength(final Long contentLength) { this.contentLength$value = contentLength; this.contentLength$set = true; return this; } public ResourceFileBuilder contentType(final String contentType) { this.contentType = contentType; return this; } public ResourceFileBuilder suffix(final String suffix) { this.suffix = suffix; return this; } public ResourceFileBuilder objectKey(final String objectKey) { this.objectKey = objectKey; return this; } public ResourceFileBuilder contentMd5(final String contentMd5) { this.contentMd5 = contentMd5; return this; } public ResourceFileBuilder fileType(final Integer fileType) { this.fileType = fileType; return this; } public ResourceFileBuilder resourceId(final Long resourceId) { this.resourceId = resourceId; return this; } public ResourceFile build() { Long contentLength$value = this.contentLength$value; if (!this.contentLength$set) { contentLength$value = ResourceFile.access$000(); } return new ResourceFile(this.tenantId, this.displayName, contentLength$value, this.contentType, this.suffix, this.objectKey, this.contentMd5, this.fileType, this.resourceId); } public String toString() { return "ResourceFile.ResourceFileBuilder(tenantId=" + this.tenantId + ", displayName=" + this.displayName + ", contentLength$value=" + this.contentLength$value + ", contentType=" + this.contentType + ", suffix=" + this.suffix + ", objectKey=" + this.objectKey + ", contentMd5=" + this.contentMd5 + ", fileType=" + this.fileType + ", resourceId=" + this.resourceId + ")"; } } private static Long $default$contentLength() { return 0L; } public static ResourceFileBuilder builder() { return new ResourceFileBuilder(); } public ResourceFile(final String tenantId, final String displayName, final Long contentLength, final String contentType, final String suffix, final String objectKey, final String contentMd5, final Integer fileType, final Long resourceId) { this.tenantId = tenantId; this.displayName = displayName; this.contentLength = contentLength; this.contentType = contentType; this.suffix = suffix; this.objectKey = objectKey; this.contentMd5 = contentMd5; this.fileType = fileType; this.resourceId = resourceId; } public ResourceFile() { this.contentLength = $default$contentLength(); } static /* synthetic */ Long access$000() { return $default$contentLength(); } public String getTenantId() { return this.tenantId; } public String getDisplayName() { return this.displayName; } public Long getContentLength() { return this.contentLength; } public String getContentType() { return this.contentType; } public String getSuffix() { return this.suffix; } public String getObjectKey() { return this.objectKey; } public String getContentMd5() { return this.contentMd5; } public Integer getFileType() { return this.fileType; } public Long getResourceId() { return this.resourceId; } }