diff --git a/.release-please-manifest.json b/.release-please-manifest.json
index 4f9005e..b5db7ce 100644
--- a/.release-please-manifest.json
+++ b/.release-please-manifest.json
@@ -1,3 +1,3 @@
{
- ".": "0.1.0-alpha.6"
+ ".": "0.1.0-alpha.7"
}
\ No newline at end of file
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 7541afa..81f94dc 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,14 @@
# Changelog
+## 0.1.0-alpha.7 (2024-11-21)
+
+Full Changelog: [v0.1.0-alpha.6...v0.1.0-alpha.7](https://github.com/openlayer-ai/openlayer-java/compare/v0.1.0-alpha.6...v0.1.0-alpha.7)
+
+### Chores
+
+* **internal:** codegen related update ([#52](https://github.com/openlayer-ai/openlayer-java/issues/52)) ([224921d](https://github.com/openlayer-ai/openlayer-java/commit/224921d231f065fe66c42ab53fce59a8d0efbde0))
+* rebuild project due to codegen change ([#50](https://github.com/openlayer-ai/openlayer-java/issues/50)) ([49217e1](https://github.com/openlayer-ai/openlayer-java/commit/49217e1b55888fd18cd1ac1979036450e290a6f4))
+
## 0.1.0-alpha.6 (2024-11-14)
Full Changelog: [v0.1.0-alpha.5...v0.1.0-alpha.6](https://github.com/openlayer-ai/openlayer-java/compare/v0.1.0-alpha.5...v0.1.0-alpha.6)
diff --git a/README.md b/README.md
index 51acf28..90baf65 100644
--- a/README.md
+++ b/README.md
@@ -2,7 +2,7 @@
-[](https://central.sonatype.com/artifact/com.openlayer.api/openlayer-java/0.1.0-alpha.6)
+[](https://central.sonatype.com/artifact/com.openlayer.api/openlayer-java/0.1.0-alpha.7)
@@ -27,7 +27,7 @@ The REST API documentation can be foundĀ on [openlayer.com](https://openlayer.co
```kotlin
-implementation("com.openlayer.api:openlayer-java:0.1.0-alpha.6")
+implementation("com.openlayer.api:openlayer-java:0.1.0-alpha.7")
```
#### Maven
@@ -36,7 +36,7 @@ implementation("com.openlayer.api:openlayer-java:0.1.0-alpha.6")
com.openlayer.api
openlayer-java
- 0.1.0-alpha.6
+ 0.1.0-alpha.7
```
diff --git a/build.gradle.kts b/build.gradle.kts
index 8677c5b..0e68081 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -4,7 +4,7 @@ plugins {
allprojects {
group = "com.openlayer.api"
- version = "0.1.0-alpha.6" // x-release-please-version
+ version = "0.1.0-alpha.7" // x-release-please-version
}
diff --git a/openlayer-java-core/build.gradle.kts b/openlayer-java-core/build.gradle.kts
index 0faaabb..cbb56c6 100644
--- a/openlayer-java-core/build.gradle.kts
+++ b/openlayer-java-core/build.gradle.kts
@@ -4,13 +4,13 @@ plugins {
}
dependencies {
- api("com.fasterxml.jackson.core:jackson-core:2.14.3")
- api("com.fasterxml.jackson.core:jackson-databind:2.14.3")
+ api("com.fasterxml.jackson.core:jackson-core:2.18.1")
+ api("com.fasterxml.jackson.core:jackson-databind:2.18.1")
- implementation("com.fasterxml.jackson.core:jackson-annotations:2.14.3")
- implementation("com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.14.3")
- implementation("com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.14.3")
- implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.14.3")
+ implementation("com.fasterxml.jackson.core:jackson-annotations:2.18.1")
+ implementation("com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.18.1")
+ implementation("com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.18.1")
+ implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.18.1")
implementation("org.apache.httpcomponents.core5:httpcore5:5.2.4")
implementation("org.apache.httpcomponents.client5:httpclient5:5.3.1")
@@ -20,4 +20,7 @@ dependencies {
testImplementation("org.assertj:assertj-core:3.25.3")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.9.3")
testImplementation("org.junit.jupiter:junit-jupiter-params:5.9.3")
+ testImplementation("org.mockito:mockito-core:5.14.2")
+ testImplementation("org.mockito:mockito-junit-jupiter:5.14.2")
+ testImplementation("org.mockito.kotlin:mockito-kotlin:4.1.0")
}
diff --git a/openlayer-java-core/src/main/kotlin/com/openlayer/api/core/PhantomReachable.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/core/PhantomReachable.kt
index ad26316..7030243 100644
--- a/openlayer-java-core/src/main/kotlin/com/openlayer/api/core/PhantomReachable.kt
+++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/core/PhantomReachable.kt
@@ -15,10 +15,20 @@ internal fun closeWhenPhantomReachable(observed: Any, closeable: AutoCloseable)
check(observed !== closeable) {
"`observed` cannot be the same object as `closeable` because it would never become phantom reachable"
}
- closeWhenPhantomReachable?.let { it(observed, closeable::close) }
+ closeWhenPhantomReachable(observed, closeable::close)
}
-private val closeWhenPhantomReachable: ((Any, AutoCloseable) -> Unit)? by lazy {
+/**
+ * Calls [close] when [observed] becomes only phantom reachable.
+ *
+ * This is a wrapper around a Java 9+ [java.lang.ref.Cleaner], or a no-op in older Java versions.
+ */
+@JvmSynthetic
+internal fun closeWhenPhantomReachable(observed: Any, close: () -> Unit) {
+ closeWhenPhantomReachable?.let { it(observed, close) }
+}
+
+private val closeWhenPhantomReachable: ((Any, () -> Unit) -> Unit)? by lazy {
try {
val cleanerClass = Class.forName("java.lang.ref.Cleaner")
val cleanerCreate = cleanerClass.getMethod("create")
@@ -26,9 +36,9 @@ private val closeWhenPhantomReachable: ((Any, AutoCloseable) -> Unit)? by lazy {
cleanerClass.getMethod("register", Any::class.java, Runnable::class.java)
val cleanerObject = cleanerCreate.invoke(null);
- { observed, closeable ->
+ { observed, close ->
try {
- cleanerRegister.invoke(cleanerObject, observed, Runnable { closeable.close() })
+ cleanerRegister.invoke(cleanerObject, observed, Runnable { close() })
} catch (e: ReflectiveOperationException) {
if (e is InvocationTargetException) {
when (val cause = e.cause) {
diff --git a/openlayer-java-core/src/main/kotlin/com/openlayer/api/errors/OpenlayerError.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/errors/OpenlayerError.kt
index 582b268..0376b43 100644
--- a/openlayer-java-core/src/main/kotlin/com/openlayer/api/errors/OpenlayerError.kt
+++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/errors/OpenlayerError.kt
@@ -19,20 +19,6 @@ private constructor(
val additionalProperties: Map,
) {
- override fun equals(other: Any?): Boolean {
- if (this === other) {
- return true
- }
-
- return /* spotless:off */ other is OpenlayerError && this.additionalProperties == other.additionalProperties /* spotless:on */
- }
-
- override fun hashCode(): Int {
- return /* spotless:off */ Objects.hash(additionalProperties) /* spotless:on */
- }
-
- override fun toString() = "OpenlayerError{additionalProperties=$additionalProperties}"
-
fun toBuilder() = Builder().from(this)
companion object {
@@ -71,4 +57,16 @@ private constructor(
fun build(): OpenlayerError = OpenlayerError(additionalProperties.toImmutable())
}
+
+ override fun equals(other: Any?): Boolean {
+ if (this === other) {
+ return true
+ }
+
+ return /* spotless:off */ other is OpenlayerError && additionalProperties == other.additionalProperties /* spotless:on */
+ }
+
+ override fun hashCode(): Int = /* spotless:off */ Objects.hash(additionalProperties) /* spotless:on */
+
+ override fun toString() = "OpenlayerError{additionalProperties=$additionalProperties}"
}
diff --git a/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/CommitTestResultListParams.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/CommitTestResultListParams.kt
index 2f44b32..396ffaf 100644
--- a/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/CommitTestResultListParams.kt
+++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/CommitTestResultListParams.kt
@@ -68,12 +68,10 @@ constructor(
return true
}
- return /* spotless:off */ other is CommitTestResultListParams && this.projectVersionId == other.projectVersionId && this.includeArchived == other.includeArchived && this.page == other.page && this.perPage == other.perPage && this.status == other.status && this.type == other.type && this.additionalHeaders == other.additionalHeaders && this.additionalQueryParams == other.additionalQueryParams /* spotless:on */
+ return /* spotless:off */ other is CommitTestResultListParams && projectVersionId == other.projectVersionId && includeArchived == other.includeArchived && page == other.page && perPage == other.perPage && status == other.status && type == other.type && additionalHeaders == other.additionalHeaders && additionalQueryParams == other.additionalQueryParams /* spotless:on */
}
- override fun hashCode(): Int {
- return /* spotless:off */ Objects.hash(projectVersionId, includeArchived, page, perPage, status, type, additionalHeaders, additionalQueryParams) /* spotless:on */
- }
+ override fun hashCode(): Int = /* spotless:off */ Objects.hash(projectVersionId, includeArchived, page, perPage, status, type, additionalHeaders, additionalQueryParams) /* spotless:on */
override fun toString() =
"CommitTestResultListParams{projectVersionId=$projectVersionId, includeArchived=$includeArchived, page=$page, perPage=$perPage, status=$status, type=$type, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams}"
@@ -260,7 +258,7 @@ constructor(
return true
}
- return /* spotless:off */ other is Status && this.value == other.value /* spotless:on */
+ return /* spotless:off */ other is Status && value == other.value /* spotless:on */
}
override fun hashCode() = value.hashCode()
@@ -335,7 +333,7 @@ constructor(
return true
}
- return /* spotless:off */ other is Type && this.value == other.value /* spotless:on */
+ return /* spotless:off */ other is Type && value == other.value /* spotless:on */
}
override fun hashCode() = value.hashCode()
diff --git a/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/CommitTestResultListResponse.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/CommitTestResultListResponse.kt
index be9a40d..f56cb31 100644
--- a/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/CommitTestResultListResponse.kt
+++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/CommitTestResultListResponse.kt
@@ -396,7 +396,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is Status && this.value == other.value /* spotless:on */
+ return /* spotless:off */ other is Status && value == other.value /* spotless:on */
}
override fun hashCode() = value.hashCode()
@@ -1208,15 +1208,13 @@ private constructor(
return true
}
- return /* spotless:off */ other is Value && this.number == other.number && this.bool == other.bool && this.string == other.string && this.strings == other.strings /* spotless:on */
+ return /* spotless:off */ other is Value && number == other.number && bool == other.bool && string == other.string && strings == other.strings /* spotless:on */
}
- override fun hashCode(): Int {
- return /* spotless:off */ Objects.hash(number, bool, string, strings) /* spotless:on */
- }
+ override fun hashCode(): Int = /* spotless:off */ Objects.hash(number, bool, string, strings) /* spotless:on */
- override fun toString(): String {
- return when {
+ override fun toString(): String =
+ when {
number != null -> "Value{number=$number}"
bool != null -> "Value{bool=$bool}"
string != null -> "Value{string=$string}"
@@ -1224,7 +1222,6 @@ private constructor(
_json != null -> "Value{_unknown=$_json}"
else -> throw IllegalStateException("Invalid Value")
}
- }
companion object {
@@ -1298,17 +1295,14 @@ private constructor(
return true
}
- return /* spotless:off */ other is Threshold && this.measurement == other.measurement && this.insightName == other.insightName && this.insightParameters == other.insightParameters && this.operator == other.operator && this.value == other.value && this.additionalProperties == other.additionalProperties /* spotless:on */
+ return /* spotless:off */ other is Threshold && measurement == other.measurement && insightName == other.insightName && insightParameters == other.insightParameters && operator == other.operator && value == other.value && additionalProperties == other.additionalProperties /* spotless:on */
}
- private var hashCode: Int = 0
+ /* spotless:off */
+ private val hashCode: Int by lazy { Objects.hash(measurement, insightName, insightParameters, operator, value, additionalProperties) }
+ /* spotless:on */
- override fun hashCode(): Int {
- if (hashCode == 0) {
- hashCode = /* spotless:off */ Objects.hash(measurement, insightName, insightParameters, operator, value, additionalProperties) /* spotless:on */
- }
- return hashCode
- }
+ override fun hashCode(): Int = hashCode
override fun toString() =
"Threshold{measurement=$measurement, insightName=$insightName, insightParameters=$insightParameters, operator=$operator, value=$value, additionalProperties=$additionalProperties}"
@@ -1319,17 +1313,14 @@ private constructor(
return true
}
- return /* spotless:off */ other is Goal && this.id == other.id && this.number == other.number && this.name == other.name && this.dateCreated == other.dateCreated && this.dateUpdated == other.dateUpdated && this.description == other.description && this.evaluationWindow == other.evaluationWindow && this.delayWindow == other.delayWindow && this.type == other.type && this.subtype == other.subtype && this.creatorId == other.creatorId && this.originProjectVersionId == other.originProjectVersionId && this.thresholds == other.thresholds && this.archived == other.archived && this.dateArchived == other.dateArchived && this.suggested == other.suggested && this.commentCount == other.commentCount && this.usesMlModel == other.usesMlModel && this.usesValidationDataset == other.usesValidationDataset && this.usesTrainingDataset == other.usesTrainingDataset && this.usesReferenceDataset == other.usesReferenceDataset && this.usesProductionData == other.usesProductionData && this.additionalProperties == other.additionalProperties /* spotless:on */
+ return /* spotless:off */ other is Goal && id == other.id && number == other.number && name == other.name && dateCreated == other.dateCreated && dateUpdated == other.dateUpdated && description == other.description && evaluationWindow == other.evaluationWindow && delayWindow == other.delayWindow && type == other.type && subtype == other.subtype && creatorId == other.creatorId && originProjectVersionId == other.originProjectVersionId && thresholds == other.thresholds && archived == other.archived && dateArchived == other.dateArchived && suggested == other.suggested && commentCount == other.commentCount && usesMlModel == other.usesMlModel && usesValidationDataset == other.usesValidationDataset && usesTrainingDataset == other.usesTrainingDataset && usesReferenceDataset == other.usesReferenceDataset && usesProductionData == other.usesProductionData && additionalProperties == other.additionalProperties /* spotless:on */
}
- private var hashCode: Int = 0
+ /* spotless:off */
+ private val hashCode: Int by lazy { Objects.hash(id, number, name, dateCreated, dateUpdated, description, evaluationWindow, delayWindow, type, subtype, creatorId, originProjectVersionId, thresholds, archived, dateArchived, suggested, commentCount, usesMlModel, usesValidationDataset, usesTrainingDataset, usesReferenceDataset, usesProductionData, additionalProperties) }
+ /* spotless:on */
- override fun hashCode(): Int {
- if (hashCode == 0) {
- hashCode = /* spotless:off */ Objects.hash(id, number, name, dateCreated, dateUpdated, description, evaluationWindow, delayWindow, type, subtype, creatorId, originProjectVersionId, thresholds, archived, dateArchived, suggested, commentCount, usesMlModel, usesValidationDataset, usesTrainingDataset, usesReferenceDataset, usesProductionData, additionalProperties) /* spotless:on */
- }
- return hashCode
- }
+ override fun hashCode(): Int = hashCode
override fun toString() =
"Goal{id=$id, number=$number, name=$name, dateCreated=$dateCreated, dateUpdated=$dateUpdated, description=$description, evaluationWindow=$evaluationWindow, delayWindow=$delayWindow, type=$type, subtype=$subtype, creatorId=$creatorId, originProjectVersionId=$originProjectVersionId, thresholds=$thresholds, archived=$archived, dateArchived=$dateArchived, suggested=$suggested, commentCount=$commentCount, usesMlModel=$usesMlModel, usesValidationDataset=$usesValidationDataset, usesTrainingDataset=$usesTrainingDataset, usesReferenceDataset=$usesReferenceDataset, usesProductionData=$usesProductionData, additionalProperties=$additionalProperties}"
@@ -1340,17 +1331,14 @@ private constructor(
return true
}
- return /* spotless:off */ other is Item && this.id == other.id && this.goal == other.goal && this.goalId == other.goalId && this.projectVersionId == other.projectVersionId && this.inferencePipelineId == other.inferencePipelineId && this.dateCreated == other.dateCreated && this.dateUpdated == other.dateUpdated && this.dateDataStarts == other.dateDataStarts && this.dateDataEnds == other.dateDataEnds && this.status == other.status && this.statusMessage == other.statusMessage && this.additionalProperties == other.additionalProperties /* spotless:on */
+ return /* spotless:off */ other is Item && id == other.id && goal == other.goal && goalId == other.goalId && projectVersionId == other.projectVersionId && inferencePipelineId == other.inferencePipelineId && dateCreated == other.dateCreated && dateUpdated == other.dateUpdated && dateDataStarts == other.dateDataStarts && dateDataEnds == other.dateDataEnds && status == other.status && statusMessage == other.statusMessage && additionalProperties == other.additionalProperties /* spotless:on */
}
- private var hashCode: Int = 0
+ /* spotless:off */
+ private val hashCode: Int by lazy { Objects.hash(id, goal, goalId, projectVersionId, inferencePipelineId, dateCreated, dateUpdated, dateDataStarts, dateDataEnds, status, statusMessage, additionalProperties) }
+ /* spotless:on */
- override fun hashCode(): Int {
- if (hashCode == 0) {
- hashCode = /* spotless:off */ Objects.hash(id, goal, goalId, projectVersionId, inferencePipelineId, dateCreated, dateUpdated, dateDataStarts, dateDataEnds, status, statusMessage, additionalProperties) /* spotless:on */
- }
- return hashCode
- }
+ override fun hashCode(): Int = hashCode
override fun toString() =
"Item{id=$id, goal=$goal, goalId=$goalId, projectVersionId=$projectVersionId, inferencePipelineId=$inferencePipelineId, dateCreated=$dateCreated, dateUpdated=$dateUpdated, dateDataStarts=$dateDataStarts, dateDataEnds=$dateDataEnds, status=$status, statusMessage=$statusMessage, additionalProperties=$additionalProperties}"
@@ -1361,17 +1349,14 @@ private constructor(
return true
}
- return /* spotless:off */ other is CommitTestResultListResponse && this.items == other.items && this.additionalProperties == other.additionalProperties /* spotless:on */
+ return /* spotless:off */ other is CommitTestResultListResponse && items == other.items && additionalProperties == other.additionalProperties /* spotless:on */
}
- private var hashCode: Int = 0
+ /* spotless:off */
+ private val hashCode: Int by lazy { Objects.hash(items, additionalProperties) }
+ /* spotless:on */
- override fun hashCode(): Int {
- if (hashCode == 0) {
- hashCode = /* spotless:off */ Objects.hash(items, additionalProperties) /* spotless:on */
- }
- return hashCode
- }
+ override fun hashCode(): Int = hashCode
override fun toString() =
"CommitTestResultListResponse{items=$items, additionalProperties=$additionalProperties}"
diff --git a/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/InferencePipelineDataStreamParams.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/InferencePipelineDataStreamParams.kt
index e30f47a..c40003a 100644
--- a/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/InferencePipelineDataStreamParams.kt
+++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/InferencePipelineDataStreamParams.kt
@@ -139,17 +139,14 @@ constructor(
return true
}
- return /* spotless:off */ other is InferencePipelineDataStreamBody && this.config == other.config && this.rows == other.rows && this.additionalProperties == other.additionalProperties /* spotless:on */
+ return /* spotless:off */ other is InferencePipelineDataStreamBody && config == other.config && rows == other.rows && additionalProperties == other.additionalProperties /* spotless:on */
}
- private var hashCode: Int = 0
+ /* spotless:off */
+ private val hashCode: Int by lazy { Objects.hash(config, rows, additionalProperties) }
+ /* spotless:on */
- override fun hashCode(): Int {
- if (hashCode == 0) {
- hashCode = /* spotless:off */ Objects.hash(config, rows, additionalProperties) /* spotless:on */
- }
- return hashCode
- }
+ override fun hashCode(): Int = hashCode
override fun toString() =
"InferencePipelineDataStreamBody{config=$config, rows=$rows, additionalProperties=$additionalProperties}"
@@ -166,12 +163,10 @@ constructor(
return true
}
- return /* spotless:off */ other is InferencePipelineDataStreamParams && this.inferencePipelineId == other.inferencePipelineId && this.config == other.config && this.rows == other.rows && this.additionalHeaders == other.additionalHeaders && this.additionalQueryParams == other.additionalQueryParams && this.additionalBodyProperties == other.additionalBodyProperties /* spotless:on */
+ return /* spotless:off */ other is InferencePipelineDataStreamParams && inferencePipelineId == other.inferencePipelineId && config == other.config && rows == other.rows && additionalHeaders == other.additionalHeaders && additionalQueryParams == other.additionalQueryParams && additionalBodyProperties == other.additionalBodyProperties /* spotless:on */
}
- override fun hashCode(): Int {
- return /* spotless:off */ Objects.hash(inferencePipelineId, config, rows, additionalHeaders, additionalQueryParams, additionalBodyProperties) /* spotless:on */
- }
+ override fun hashCode(): Int = /* spotless:off */ Objects.hash(inferencePipelineId, config, rows, additionalHeaders, additionalQueryParams, additionalBodyProperties) /* spotless:on */
override fun toString() =
"InferencePipelineDataStreamParams{inferencePipelineId=$inferencePipelineId, config=$config, rows=$rows, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams, additionalBodyProperties=$additionalBodyProperties}"
@@ -452,15 +447,13 @@ constructor(
return true
}
- return /* spotless:off */ other is Config && this.llmData == other.llmData && this.tabularClassificationData == other.tabularClassificationData && this.tabularRegressionData == other.tabularRegressionData && this.textClassificationData == other.textClassificationData /* spotless:on */
+ return /* spotless:off */ other is Config && llmData == other.llmData && tabularClassificationData == other.tabularClassificationData && tabularRegressionData == other.tabularRegressionData && textClassificationData == other.textClassificationData /* spotless:on */
}
- override fun hashCode(): Int {
- return /* spotless:off */ Objects.hash(llmData, tabularClassificationData, tabularRegressionData, textClassificationData) /* spotless:on */
- }
+ override fun hashCode(): Int = /* spotless:off */ Objects.hash(llmData, tabularClassificationData, tabularRegressionData, textClassificationData) /* spotless:on */
- override fun toString(): String {
- return when {
+ override fun toString(): String =
+ when {
llmData != null -> "Config{llmData=$llmData}"
tabularClassificationData != null ->
"Config{tabularClassificationData=$tabularClassificationData}"
@@ -471,7 +464,6 @@ constructor(
_json != null -> "Config{_unknown=$_json}"
else -> throw IllegalStateException("Invalid Config")
}
- }
companion object {
@@ -1042,17 +1034,14 @@ constructor(
return true
}
- return /* spotless:off */ other is Prompt && this.role == other.role && this.content == other.content && this.additionalProperties == other.additionalProperties /* spotless:on */
+ return /* spotless:off */ other is Prompt && role == other.role && content == other.content && additionalProperties == other.additionalProperties /* spotless:on */
}
- private var hashCode: Int = 0
+ /* spotless:off */
+ private val hashCode: Int by lazy { Objects.hash(role, content, additionalProperties) }
+ /* spotless:on */
- override fun hashCode(): Int {
- if (hashCode == 0) {
- hashCode = /* spotless:off */ Objects.hash(role, content, additionalProperties) /* spotless:on */
- }
- return hashCode
- }
+ override fun hashCode(): Int = hashCode
override fun toString() =
"Prompt{role=$role, content=$content, additionalProperties=$additionalProperties}"
@@ -1063,17 +1052,14 @@ constructor(
return true
}
- return /* spotless:off */ other is LlmData && this.numOfTokenColumnName == other.numOfTokenColumnName && this.contextColumnName == other.contextColumnName && this.costColumnName == other.costColumnName && this.groundTruthColumnName == other.groundTruthColumnName && this.inferenceIdColumnName == other.inferenceIdColumnName && this.inputVariableNames == other.inputVariableNames && this.latencyColumnName == other.latencyColumnName && this.metadata == other.metadata && this.outputColumnName == other.outputColumnName && this.prompt == other.prompt && this.questionColumnName == other.questionColumnName && this.timestampColumnName == other.timestampColumnName && this.additionalProperties == other.additionalProperties /* spotless:on */
+ return /* spotless:off */ other is LlmData && numOfTokenColumnName == other.numOfTokenColumnName && contextColumnName == other.contextColumnName && costColumnName == other.costColumnName && groundTruthColumnName == other.groundTruthColumnName && inferenceIdColumnName == other.inferenceIdColumnName && inputVariableNames == other.inputVariableNames && latencyColumnName == other.latencyColumnName && metadata == other.metadata && outputColumnName == other.outputColumnName && prompt == other.prompt && questionColumnName == other.questionColumnName && timestampColumnName == other.timestampColumnName && additionalProperties == other.additionalProperties /* spotless:on */
}
- private var hashCode: Int = 0
+ /* spotless:off */
+ private val hashCode: Int by lazy { Objects.hash(numOfTokenColumnName, contextColumnName, costColumnName, groundTruthColumnName, inferenceIdColumnName, inputVariableNames, latencyColumnName, metadata, outputColumnName, prompt, questionColumnName, timestampColumnName, additionalProperties) }
+ /* spotless:on */
- override fun hashCode(): Int {
- if (hashCode == 0) {
- hashCode = /* spotless:off */ Objects.hash(numOfTokenColumnName, contextColumnName, costColumnName, groundTruthColumnName, inferenceIdColumnName, inputVariableNames, latencyColumnName, metadata, outputColumnName, prompt, questionColumnName, timestampColumnName, additionalProperties) /* spotless:on */
- }
- return hashCode
- }
+ override fun hashCode(): Int = hashCode
override fun toString() =
"LlmData{numOfTokenColumnName=$numOfTokenColumnName, contextColumnName=$contextColumnName, costColumnName=$costColumnName, groundTruthColumnName=$groundTruthColumnName, inferenceIdColumnName=$inferenceIdColumnName, inputVariableNames=$inputVariableNames, latencyColumnName=$latencyColumnName, metadata=$metadata, outputColumnName=$outputColumnName, prompt=$prompt, questionColumnName=$questionColumnName, timestampColumnName=$timestampColumnName, additionalProperties=$additionalProperties}"
@@ -1448,17 +1434,14 @@ constructor(
return true
}
- return /* spotless:off */ other is TabularClassificationData && this.categoricalFeatureNames == other.categoricalFeatureNames && this.classNames == other.classNames && this.featureNames == other.featureNames && this.inferenceIdColumnName == other.inferenceIdColumnName && this.labelColumnName == other.labelColumnName && this.latencyColumnName == other.latencyColumnName && this.metadata == other.metadata && this.predictionsColumnName == other.predictionsColumnName && this.predictionScoresColumnName == other.predictionScoresColumnName && this.timestampColumnName == other.timestampColumnName && this.additionalProperties == other.additionalProperties /* spotless:on */
+ return /* spotless:off */ other is TabularClassificationData && categoricalFeatureNames == other.categoricalFeatureNames && classNames == other.classNames && featureNames == other.featureNames && inferenceIdColumnName == other.inferenceIdColumnName && labelColumnName == other.labelColumnName && latencyColumnName == other.latencyColumnName && metadata == other.metadata && predictionsColumnName == other.predictionsColumnName && predictionScoresColumnName == other.predictionScoresColumnName && timestampColumnName == other.timestampColumnName && additionalProperties == other.additionalProperties /* spotless:on */
}
- private var hashCode: Int = 0
+ /* spotless:off */
+ private val hashCode: Int by lazy { Objects.hash(categoricalFeatureNames, classNames, featureNames, inferenceIdColumnName, labelColumnName, latencyColumnName, metadata, predictionsColumnName, predictionScoresColumnName, timestampColumnName, additionalProperties) }
+ /* spotless:on */
- override fun hashCode(): Int {
- if (hashCode == 0) {
- hashCode = /* spotless:off */ Objects.hash(categoricalFeatureNames, classNames, featureNames, inferenceIdColumnName, labelColumnName, latencyColumnName, metadata, predictionsColumnName, predictionScoresColumnName, timestampColumnName, additionalProperties) /* spotless:on */
- }
- return hashCode
- }
+ override fun hashCode(): Int = hashCode
override fun toString() =
"TabularClassificationData{categoricalFeatureNames=$categoricalFeatureNames, classNames=$classNames, featureNames=$featureNames, inferenceIdColumnName=$inferenceIdColumnName, labelColumnName=$labelColumnName, latencyColumnName=$latencyColumnName, metadata=$metadata, predictionsColumnName=$predictionsColumnName, predictionScoresColumnName=$predictionScoresColumnName, timestampColumnName=$timestampColumnName, additionalProperties=$additionalProperties}"
@@ -1749,17 +1732,14 @@ constructor(
return true
}
- return /* spotless:off */ other is TabularRegressionData && this.categoricalFeatureNames == other.categoricalFeatureNames && this.featureNames == other.featureNames && this.inferenceIdColumnName == other.inferenceIdColumnName && this.latencyColumnName == other.latencyColumnName && this.metadata == other.metadata && this.predictionsColumnName == other.predictionsColumnName && this.targetColumnName == other.targetColumnName && this.timestampColumnName == other.timestampColumnName && this.additionalProperties == other.additionalProperties /* spotless:on */
+ return /* spotless:off */ other is TabularRegressionData && categoricalFeatureNames == other.categoricalFeatureNames && featureNames == other.featureNames && inferenceIdColumnName == other.inferenceIdColumnName && latencyColumnName == other.latencyColumnName && metadata == other.metadata && predictionsColumnName == other.predictionsColumnName && targetColumnName == other.targetColumnName && timestampColumnName == other.timestampColumnName && additionalProperties == other.additionalProperties /* spotless:on */
}
- private var hashCode: Int = 0
+ /* spotless:off */
+ private val hashCode: Int by lazy { Objects.hash(categoricalFeatureNames, featureNames, inferenceIdColumnName, latencyColumnName, metadata, predictionsColumnName, targetColumnName, timestampColumnName, additionalProperties) }
+ /* spotless:on */
- override fun hashCode(): Int {
- if (hashCode == 0) {
- hashCode = /* spotless:off */ Objects.hash(categoricalFeatureNames, featureNames, inferenceIdColumnName, latencyColumnName, metadata, predictionsColumnName, targetColumnName, timestampColumnName, additionalProperties) /* spotless:on */
- }
- return hashCode
- }
+ override fun hashCode(): Int = hashCode
override fun toString() =
"TabularRegressionData{categoricalFeatureNames=$categoricalFeatureNames, featureNames=$featureNames, inferenceIdColumnName=$inferenceIdColumnName, latencyColumnName=$latencyColumnName, metadata=$metadata, predictionsColumnName=$predictionsColumnName, targetColumnName=$targetColumnName, timestampColumnName=$timestampColumnName, additionalProperties=$additionalProperties}"
@@ -2096,17 +2076,14 @@ constructor(
return true
}
- return /* spotless:off */ other is TextClassificationData && this.classNames == other.classNames && this.inferenceIdColumnName == other.inferenceIdColumnName && this.labelColumnName == other.labelColumnName && this.latencyColumnName == other.latencyColumnName && this.metadata == other.metadata && this.predictionsColumnName == other.predictionsColumnName && this.predictionScoresColumnName == other.predictionScoresColumnName && this.textColumnName == other.textColumnName && this.timestampColumnName == other.timestampColumnName && this.additionalProperties == other.additionalProperties /* spotless:on */
+ return /* spotless:off */ other is TextClassificationData && classNames == other.classNames && inferenceIdColumnName == other.inferenceIdColumnName && labelColumnName == other.labelColumnName && latencyColumnName == other.latencyColumnName && metadata == other.metadata && predictionsColumnName == other.predictionsColumnName && predictionScoresColumnName == other.predictionScoresColumnName && textColumnName == other.textColumnName && timestampColumnName == other.timestampColumnName && additionalProperties == other.additionalProperties /* spotless:on */
}
- private var hashCode: Int = 0
+ /* spotless:off */
+ private val hashCode: Int by lazy { Objects.hash(classNames, inferenceIdColumnName, labelColumnName, latencyColumnName, metadata, predictionsColumnName, predictionScoresColumnName, textColumnName, timestampColumnName, additionalProperties) }
+ /* spotless:on */
- override fun hashCode(): Int {
- if (hashCode == 0) {
- hashCode = /* spotless:off */ Objects.hash(classNames, inferenceIdColumnName, labelColumnName, latencyColumnName, metadata, predictionsColumnName, predictionScoresColumnName, textColumnName, timestampColumnName, additionalProperties) /* spotless:on */
- }
- return hashCode
- }
+ override fun hashCode(): Int = hashCode
override fun toString() =
"TextClassificationData{classNames=$classNames, inferenceIdColumnName=$inferenceIdColumnName, labelColumnName=$labelColumnName, latencyColumnName=$latencyColumnName, metadata=$metadata, predictionsColumnName=$predictionsColumnName, predictionScoresColumnName=$predictionScoresColumnName, textColumnName=$textColumnName, timestampColumnName=$timestampColumnName, additionalProperties=$additionalProperties}"
@@ -2160,17 +2137,14 @@ constructor(
return true
}
- return /* spotless:off */ other is Row && this.additionalProperties == other.additionalProperties /* spotless:on */
+ return /* spotless:off */ other is Row && additionalProperties == other.additionalProperties /* spotless:on */
}
- private var hashCode: Int = 0
+ /* spotless:off */
+ private val hashCode: Int by lazy { Objects.hash(additionalProperties) }
+ /* spotless:on */
- override fun hashCode(): Int {
- if (hashCode == 0) {
- hashCode = /* spotless:off */ Objects.hash(additionalProperties) /* spotless:on */
- }
- return hashCode
- }
+ override fun hashCode(): Int = hashCode
override fun toString() = "Row{additionalProperties=$additionalProperties}"
}
diff --git a/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/InferencePipelineDataStreamResponse.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/InferencePipelineDataStreamResponse.kt
index 3d53c52..df9b175 100644
--- a/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/InferencePipelineDataStreamResponse.kt
+++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/InferencePipelineDataStreamResponse.kt
@@ -99,7 +99,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is Success && this.value == other.value /* spotless:on */
+ return /* spotless:off */ other is Success && value == other.value /* spotless:on */
}
override fun hashCode() = value.hashCode()
@@ -142,17 +142,14 @@ private constructor(
return true
}
- return /* spotless:off */ other is InferencePipelineDataStreamResponse && this.success == other.success && this.additionalProperties == other.additionalProperties /* spotless:on */
+ return /* spotless:off */ other is InferencePipelineDataStreamResponse && success == other.success && additionalProperties == other.additionalProperties /* spotless:on */
}
- private var hashCode: Int = 0
+ /* spotless:off */
+ private val hashCode: Int by lazy { Objects.hash(success, additionalProperties) }
+ /* spotless:on */
- override fun hashCode(): Int {
- if (hashCode == 0) {
- hashCode = /* spotless:off */ Objects.hash(success, additionalProperties) /* spotless:on */
- }
- return hashCode
- }
+ override fun hashCode(): Int = hashCode
override fun toString() =
"InferencePipelineDataStreamResponse{success=$success, additionalProperties=$additionalProperties}"
diff --git a/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/InferencePipelineDeleteParams.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/InferencePipelineDeleteParams.kt
index 709bf37..e33dbae 100644
--- a/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/InferencePipelineDeleteParams.kt
+++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/InferencePipelineDeleteParams.kt
@@ -48,12 +48,10 @@ constructor(
return true
}
- return /* spotless:off */ other is InferencePipelineDeleteParams && this.inferencePipelineId == other.inferencePipelineId && this.additionalHeaders == other.additionalHeaders && this.additionalQueryParams == other.additionalQueryParams && this.additionalBodyProperties == other.additionalBodyProperties /* spotless:on */
+ return /* spotless:off */ other is InferencePipelineDeleteParams && inferencePipelineId == other.inferencePipelineId && additionalHeaders == other.additionalHeaders && additionalQueryParams == other.additionalQueryParams && additionalBodyProperties == other.additionalBodyProperties /* spotless:on */
}
- override fun hashCode(): Int {
- return /* spotless:off */ Objects.hash(inferencePipelineId, additionalHeaders, additionalQueryParams, additionalBodyProperties) /* spotless:on */
- }
+ override fun hashCode(): Int = /* spotless:off */ Objects.hash(inferencePipelineId, additionalHeaders, additionalQueryParams, additionalBodyProperties) /* spotless:on */
override fun toString() =
"InferencePipelineDeleteParams{inferencePipelineId=$inferencePipelineId, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams, additionalBodyProperties=$additionalBodyProperties}"
diff --git a/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/InferencePipelineRetrieveParams.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/InferencePipelineRetrieveParams.kt
index 950a922..98f5e83 100644
--- a/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/InferencePipelineRetrieveParams.kt
+++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/InferencePipelineRetrieveParams.kt
@@ -37,12 +37,10 @@ constructor(
return true
}
- return /* spotless:off */ other is InferencePipelineRetrieveParams && this.inferencePipelineId == other.inferencePipelineId && this.additionalHeaders == other.additionalHeaders && this.additionalQueryParams == other.additionalQueryParams /* spotless:on */
+ return /* spotless:off */ other is InferencePipelineRetrieveParams && inferencePipelineId == other.inferencePipelineId && additionalHeaders == other.additionalHeaders && additionalQueryParams == other.additionalQueryParams /* spotless:on */
}
- override fun hashCode(): Int {
- return /* spotless:off */ Objects.hash(inferencePipelineId, additionalHeaders, additionalQueryParams) /* spotless:on */
- }
+ override fun hashCode(): Int = /* spotless:off */ Objects.hash(inferencePipelineId, additionalHeaders, additionalQueryParams) /* spotless:on */
override fun toString() =
"InferencePipelineRetrieveParams{inferencePipelineId=$inferencePipelineId, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams}"
diff --git a/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/InferencePipelineRetrieveResponse.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/InferencePipelineRetrieveResponse.kt
index a500b3a..be0f1d5 100644
--- a/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/InferencePipelineRetrieveResponse.kt
+++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/InferencePipelineRetrieveResponse.kt
@@ -458,17 +458,14 @@ private constructor(
return true
}
- return /* spotless:off */ other is Links && this.app == other.app && this.additionalProperties == other.additionalProperties /* spotless:on */
+ return /* spotless:off */ other is Links && app == other.app && additionalProperties == other.additionalProperties /* spotless:on */
}
- private var hashCode: Int = 0
+ /* spotless:off */
+ private val hashCode: Int by lazy { Objects.hash(app, additionalProperties) }
+ /* spotless:on */
- override fun hashCode(): Int {
- if (hashCode == 0) {
- hashCode = /* spotless:off */ Objects.hash(app, additionalProperties) /* spotless:on */
- }
- return hashCode
- }
+ override fun hashCode(): Int = hashCode
override fun toString() = "Links{app=$app, additionalProperties=$additionalProperties}"
}
@@ -486,7 +483,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is Status && this.value == other.value /* spotless:on */
+ return /* spotless:off */ other is Status && value == other.value /* spotless:on */
}
override fun hashCode() = value.hashCode()
@@ -559,17 +556,14 @@ private constructor(
return true
}
- return /* spotless:off */ other is InferencePipelineRetrieveResponse && this.id == other.id && this.projectId == other.projectId && this.name == other.name && this.dateCreated == other.dateCreated && this.dateUpdated == other.dateUpdated && this.dateLastSampleReceived == other.dateLastSampleReceived && this.description == other.description && this.dateLastEvaluated == other.dateLastEvaluated && this.dateOfNextEvaluation == other.dateOfNextEvaluation && this.passingGoalCount == other.passingGoalCount && this.failingGoalCount == other.failingGoalCount && this.totalGoalCount == other.totalGoalCount && this.status == other.status && this.statusMessage == other.statusMessage && this.links == other.links && this.additionalProperties == other.additionalProperties /* spotless:on */
+ return /* spotless:off */ other is InferencePipelineRetrieveResponse && id == other.id && projectId == other.projectId && name == other.name && dateCreated == other.dateCreated && dateUpdated == other.dateUpdated && dateLastSampleReceived == other.dateLastSampleReceived && description == other.description && dateLastEvaluated == other.dateLastEvaluated && dateOfNextEvaluation == other.dateOfNextEvaluation && passingGoalCount == other.passingGoalCount && failingGoalCount == other.failingGoalCount && totalGoalCount == other.totalGoalCount && status == other.status && statusMessage == other.statusMessage && links == other.links && additionalProperties == other.additionalProperties /* spotless:on */
}
- private var hashCode: Int = 0
+ /* spotless:off */
+ private val hashCode: Int by lazy { Objects.hash(id, projectId, name, dateCreated, dateUpdated, dateLastSampleReceived, description, dateLastEvaluated, dateOfNextEvaluation, passingGoalCount, failingGoalCount, totalGoalCount, status, statusMessage, links, additionalProperties) }
+ /* spotless:on */
- override fun hashCode(): Int {
- if (hashCode == 0) {
- hashCode = /* spotless:off */ Objects.hash(id, projectId, name, dateCreated, dateUpdated, dateLastSampleReceived, description, dateLastEvaluated, dateOfNextEvaluation, passingGoalCount, failingGoalCount, totalGoalCount, status, statusMessage, links, additionalProperties) /* spotless:on */
- }
- return hashCode
- }
+ override fun hashCode(): Int = hashCode
override fun toString() =
"InferencePipelineRetrieveResponse{id=$id, projectId=$projectId, name=$name, dateCreated=$dateCreated, dateUpdated=$dateUpdated, dateLastSampleReceived=$dateLastSampleReceived, description=$description, dateLastEvaluated=$dateLastEvaluated, dateOfNextEvaluation=$dateOfNextEvaluation, passingGoalCount=$passingGoalCount, failingGoalCount=$failingGoalCount, totalGoalCount=$totalGoalCount, status=$status, statusMessage=$statusMessage, links=$links, additionalProperties=$additionalProperties}"
diff --git a/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/InferencePipelineRowUpdateParams.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/InferencePipelineRowUpdateParams.kt
index 7062d0b..a5730f7 100644
--- a/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/InferencePipelineRowUpdateParams.kt
+++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/InferencePipelineRowUpdateParams.kt
@@ -130,17 +130,14 @@ constructor(
return true
}
- return /* spotless:off */ other is InferencePipelineRowUpdateBody && this.row == other.row && this.config == other.config && this.additionalProperties == other.additionalProperties /* spotless:on */
+ return /* spotless:off */ other is InferencePipelineRowUpdateBody && row == other.row && config == other.config && additionalProperties == other.additionalProperties /* spotless:on */
}
- private var hashCode: Int = 0
+ /* spotless:off */
+ private val hashCode: Int by lazy { Objects.hash(row, config, additionalProperties) }
+ /* spotless:on */
- override fun hashCode(): Int {
- if (hashCode == 0) {
- hashCode = /* spotless:off */ Objects.hash(row, config, additionalProperties) /* spotless:on */
- }
- return hashCode
- }
+ override fun hashCode(): Int = hashCode
override fun toString() =
"InferencePipelineRowUpdateBody{row=$row, config=$config, additionalProperties=$additionalProperties}"
@@ -157,12 +154,10 @@ constructor(
return true
}
- return /* spotless:off */ other is InferencePipelineRowUpdateParams && this.inferencePipelineId == other.inferencePipelineId && this.row == other.row && this.config == other.config && this.inferenceId == other.inferenceId && this.additionalHeaders == other.additionalHeaders && this.additionalQueryParams == other.additionalQueryParams && this.additionalBodyProperties == other.additionalBodyProperties /* spotless:on */
+ return /* spotless:off */ other is InferencePipelineRowUpdateParams && inferencePipelineId == other.inferencePipelineId && row == other.row && config == other.config && inferenceId == other.inferenceId && additionalHeaders == other.additionalHeaders && additionalQueryParams == other.additionalQueryParams && additionalBodyProperties == other.additionalBodyProperties /* spotless:on */
}
- override fun hashCode(): Int {
- return /* spotless:off */ Objects.hash(inferencePipelineId, row, config, inferenceId, additionalHeaders, additionalQueryParams, additionalBodyProperties) /* spotless:on */
- }
+ override fun hashCode(): Int = /* spotless:off */ Objects.hash(inferencePipelineId, row, config, inferenceId, additionalHeaders, additionalQueryParams, additionalBodyProperties) /* spotless:on */
override fun toString() =
"InferencePipelineRowUpdateParams{inferencePipelineId=$inferencePipelineId, row=$row, config=$config, inferenceId=$inferenceId, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams, additionalBodyProperties=$additionalBodyProperties}"
@@ -475,17 +470,14 @@ constructor(
return true
}
- return /* spotless:off */ other is Config && this.inferenceIdColumnName == other.inferenceIdColumnName && this.latencyColumnName == other.latencyColumnName && this.timestampColumnName == other.timestampColumnName && this.groundTruthColumnName == other.groundTruthColumnName && this.humanFeedbackColumnName == other.humanFeedbackColumnName && this.additionalProperties == other.additionalProperties /* spotless:on */
+ return /* spotless:off */ other is Config && inferenceIdColumnName == other.inferenceIdColumnName && latencyColumnName == other.latencyColumnName && timestampColumnName == other.timestampColumnName && groundTruthColumnName == other.groundTruthColumnName && humanFeedbackColumnName == other.humanFeedbackColumnName && additionalProperties == other.additionalProperties /* spotless:on */
}
- private var hashCode: Int = 0
+ /* spotless:off */
+ private val hashCode: Int by lazy { Objects.hash(inferenceIdColumnName, latencyColumnName, timestampColumnName, groundTruthColumnName, humanFeedbackColumnName, additionalProperties) }
+ /* spotless:on */
- override fun hashCode(): Int {
- if (hashCode == 0) {
- hashCode = /* spotless:off */ Objects.hash(inferenceIdColumnName, latencyColumnName, timestampColumnName, groundTruthColumnName, humanFeedbackColumnName, additionalProperties) /* spotless:on */
- }
- return hashCode
- }
+ override fun hashCode(): Int = hashCode
override fun toString() =
"Config{inferenceIdColumnName=$inferenceIdColumnName, latencyColumnName=$latencyColumnName, timestampColumnName=$timestampColumnName, groundTruthColumnName=$groundTruthColumnName, humanFeedbackColumnName=$humanFeedbackColumnName, additionalProperties=$additionalProperties}"
diff --git a/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/InferencePipelineRowUpdateResponse.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/InferencePipelineRowUpdateResponse.kt
index 595d237..f1558f5 100644
--- a/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/InferencePipelineRowUpdateResponse.kt
+++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/InferencePipelineRowUpdateResponse.kt
@@ -98,7 +98,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is Success && this.value == other.value /* spotless:on */
+ return /* spotless:off */ other is Success && value == other.value /* spotless:on */
}
override fun hashCode() = value.hashCode()
@@ -141,17 +141,14 @@ private constructor(
return true
}
- return /* spotless:off */ other is InferencePipelineRowUpdateResponse && this.success == other.success && this.additionalProperties == other.additionalProperties /* spotless:on */
+ return /* spotless:off */ other is InferencePipelineRowUpdateResponse && success == other.success && additionalProperties == other.additionalProperties /* spotless:on */
}
- private var hashCode: Int = 0
+ /* spotless:off */
+ private val hashCode: Int by lazy { Objects.hash(success, additionalProperties) }
+ /* spotless:on */
- override fun hashCode(): Int {
- if (hashCode == 0) {
- hashCode = /* spotless:off */ Objects.hash(success, additionalProperties) /* spotless:on */
- }
- return hashCode
- }
+ override fun hashCode(): Int = hashCode
override fun toString() =
"InferencePipelineRowUpdateResponse{success=$success, additionalProperties=$additionalProperties}"
diff --git a/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/InferencePipelineTestResultListParams.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/InferencePipelineTestResultListParams.kt
index 183f81f..86dbafb 100644
--- a/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/InferencePipelineTestResultListParams.kt
+++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/InferencePipelineTestResultListParams.kt
@@ -64,12 +64,10 @@ constructor(
return true
}
- return /* spotless:off */ other is InferencePipelineTestResultListParams && this.inferencePipelineId == other.inferencePipelineId && this.page == other.page && this.perPage == other.perPage && this.status == other.status && this.type == other.type && this.additionalHeaders == other.additionalHeaders && this.additionalQueryParams == other.additionalQueryParams /* spotless:on */
+ return /* spotless:off */ other is InferencePipelineTestResultListParams && inferencePipelineId == other.inferencePipelineId && page == other.page && perPage == other.perPage && status == other.status && type == other.type && additionalHeaders == other.additionalHeaders && additionalQueryParams == other.additionalQueryParams /* spotless:on */
}
- override fun hashCode(): Int {
- return /* spotless:off */ Objects.hash(inferencePipelineId, page, perPage, status, type, additionalHeaders, additionalQueryParams) /* spotless:on */
- }
+ override fun hashCode(): Int = /* spotless:off */ Objects.hash(inferencePipelineId, page, perPage, status, type, additionalHeaders, additionalQueryParams) /* spotless:on */
override fun toString() =
"InferencePipelineTestResultListParams{inferencePipelineId=$inferencePipelineId, page=$page, perPage=$perPage, status=$status, type=$type, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams}"
@@ -252,7 +250,7 @@ constructor(
return true
}
- return /* spotless:off */ other is Status && this.value == other.value /* spotless:on */
+ return /* spotless:off */ other is Status && value == other.value /* spotless:on */
}
override fun hashCode() = value.hashCode()
@@ -327,7 +325,7 @@ constructor(
return true
}
- return /* spotless:off */ other is Type && this.value == other.value /* spotless:on */
+ return /* spotless:off */ other is Type && value == other.value /* spotless:on */
}
override fun hashCode() = value.hashCode()
diff --git a/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/InferencePipelineTestResultListResponse.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/InferencePipelineTestResultListResponse.kt
index 0078c11..3064e4f 100644
--- a/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/InferencePipelineTestResultListResponse.kt
+++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/InferencePipelineTestResultListResponse.kt
@@ -398,7 +398,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is Status && this.value == other.value /* spotless:on */
+ return /* spotless:off */ other is Status && value == other.value /* spotless:on */
}
override fun hashCode() = value.hashCode()
@@ -1210,15 +1210,13 @@ private constructor(
return true
}
- return /* spotless:off */ other is Value && this.number == other.number && this.bool == other.bool && this.string == other.string && this.strings == other.strings /* spotless:on */
+ return /* spotless:off */ other is Value && number == other.number && bool == other.bool && string == other.string && strings == other.strings /* spotless:on */
}
- override fun hashCode(): Int {
- return /* spotless:off */ Objects.hash(number, bool, string, strings) /* spotless:on */
- }
+ override fun hashCode(): Int = /* spotless:off */ Objects.hash(number, bool, string, strings) /* spotless:on */
- override fun toString(): String {
- return when {
+ override fun toString(): String =
+ when {
number != null -> "Value{number=$number}"
bool != null -> "Value{bool=$bool}"
string != null -> "Value{string=$string}"
@@ -1226,7 +1224,6 @@ private constructor(
_json != null -> "Value{_unknown=$_json}"
else -> throw IllegalStateException("Invalid Value")
}
- }
companion object {
@@ -1300,17 +1297,14 @@ private constructor(
return true
}
- return /* spotless:off */ other is Threshold && this.measurement == other.measurement && this.insightName == other.insightName && this.insightParameters == other.insightParameters && this.operator == other.operator && this.value == other.value && this.additionalProperties == other.additionalProperties /* spotless:on */
+ return /* spotless:off */ other is Threshold && measurement == other.measurement && insightName == other.insightName && insightParameters == other.insightParameters && operator == other.operator && value == other.value && additionalProperties == other.additionalProperties /* spotless:on */
}
- private var hashCode: Int = 0
+ /* spotless:off */
+ private val hashCode: Int by lazy { Objects.hash(measurement, insightName, insightParameters, operator, value, additionalProperties) }
+ /* spotless:on */
- override fun hashCode(): Int {
- if (hashCode == 0) {
- hashCode = /* spotless:off */ Objects.hash(measurement, insightName, insightParameters, operator, value, additionalProperties) /* spotless:on */
- }
- return hashCode
- }
+ override fun hashCode(): Int = hashCode
override fun toString() =
"Threshold{measurement=$measurement, insightName=$insightName, insightParameters=$insightParameters, operator=$operator, value=$value, additionalProperties=$additionalProperties}"
@@ -1321,17 +1315,14 @@ private constructor(
return true
}
- return /* spotless:off */ other is Goal && this.id == other.id && this.number == other.number && this.name == other.name && this.dateCreated == other.dateCreated && this.dateUpdated == other.dateUpdated && this.description == other.description && this.evaluationWindow == other.evaluationWindow && this.delayWindow == other.delayWindow && this.type == other.type && this.subtype == other.subtype && this.creatorId == other.creatorId && this.originProjectVersionId == other.originProjectVersionId && this.thresholds == other.thresholds && this.archived == other.archived && this.dateArchived == other.dateArchived && this.suggested == other.suggested && this.commentCount == other.commentCount && this.usesMlModel == other.usesMlModel && this.usesValidationDataset == other.usesValidationDataset && this.usesTrainingDataset == other.usesTrainingDataset && this.usesReferenceDataset == other.usesReferenceDataset && this.usesProductionData == other.usesProductionData && this.additionalProperties == other.additionalProperties /* spotless:on */
+ return /* spotless:off */ other is Goal && id == other.id && number == other.number && name == other.name && dateCreated == other.dateCreated && dateUpdated == other.dateUpdated && description == other.description && evaluationWindow == other.evaluationWindow && delayWindow == other.delayWindow && type == other.type && subtype == other.subtype && creatorId == other.creatorId && originProjectVersionId == other.originProjectVersionId && thresholds == other.thresholds && archived == other.archived && dateArchived == other.dateArchived && suggested == other.suggested && commentCount == other.commentCount && usesMlModel == other.usesMlModel && usesValidationDataset == other.usesValidationDataset && usesTrainingDataset == other.usesTrainingDataset && usesReferenceDataset == other.usesReferenceDataset && usesProductionData == other.usesProductionData && additionalProperties == other.additionalProperties /* spotless:on */
}
- private var hashCode: Int = 0
+ /* spotless:off */
+ private val hashCode: Int by lazy { Objects.hash(id, number, name, dateCreated, dateUpdated, description, evaluationWindow, delayWindow, type, subtype, creatorId, originProjectVersionId, thresholds, archived, dateArchived, suggested, commentCount, usesMlModel, usesValidationDataset, usesTrainingDataset, usesReferenceDataset, usesProductionData, additionalProperties) }
+ /* spotless:on */
- override fun hashCode(): Int {
- if (hashCode == 0) {
- hashCode = /* spotless:off */ Objects.hash(id, number, name, dateCreated, dateUpdated, description, evaluationWindow, delayWindow, type, subtype, creatorId, originProjectVersionId, thresholds, archived, dateArchived, suggested, commentCount, usesMlModel, usesValidationDataset, usesTrainingDataset, usesReferenceDataset, usesProductionData, additionalProperties) /* spotless:on */
- }
- return hashCode
- }
+ override fun hashCode(): Int = hashCode
override fun toString() =
"Goal{id=$id, number=$number, name=$name, dateCreated=$dateCreated, dateUpdated=$dateUpdated, description=$description, evaluationWindow=$evaluationWindow, delayWindow=$delayWindow, type=$type, subtype=$subtype, creatorId=$creatorId, originProjectVersionId=$originProjectVersionId, thresholds=$thresholds, archived=$archived, dateArchived=$dateArchived, suggested=$suggested, commentCount=$commentCount, usesMlModel=$usesMlModel, usesValidationDataset=$usesValidationDataset, usesTrainingDataset=$usesTrainingDataset, usesReferenceDataset=$usesReferenceDataset, usesProductionData=$usesProductionData, additionalProperties=$additionalProperties}"
@@ -1342,17 +1333,14 @@ private constructor(
return true
}
- return /* spotless:off */ other is Item && this.id == other.id && this.goal == other.goal && this.goalId == other.goalId && this.projectVersionId == other.projectVersionId && this.inferencePipelineId == other.inferencePipelineId && this.dateCreated == other.dateCreated && this.dateUpdated == other.dateUpdated && this.dateDataStarts == other.dateDataStarts && this.dateDataEnds == other.dateDataEnds && this.status == other.status && this.statusMessage == other.statusMessage && this.additionalProperties == other.additionalProperties /* spotless:on */
+ return /* spotless:off */ other is Item && id == other.id && goal == other.goal && goalId == other.goalId && projectVersionId == other.projectVersionId && inferencePipelineId == other.inferencePipelineId && dateCreated == other.dateCreated && dateUpdated == other.dateUpdated && dateDataStarts == other.dateDataStarts && dateDataEnds == other.dateDataEnds && status == other.status && statusMessage == other.statusMessage && additionalProperties == other.additionalProperties /* spotless:on */
}
- private var hashCode: Int = 0
+ /* spotless:off */
+ private val hashCode: Int by lazy { Objects.hash(id, goal, goalId, projectVersionId, inferencePipelineId, dateCreated, dateUpdated, dateDataStarts, dateDataEnds, status, statusMessage, additionalProperties) }
+ /* spotless:on */
- override fun hashCode(): Int {
- if (hashCode == 0) {
- hashCode = /* spotless:off */ Objects.hash(id, goal, goalId, projectVersionId, inferencePipelineId, dateCreated, dateUpdated, dateDataStarts, dateDataEnds, status, statusMessage, additionalProperties) /* spotless:on */
- }
- return hashCode
- }
+ override fun hashCode(): Int = hashCode
override fun toString() =
"Item{id=$id, goal=$goal, goalId=$goalId, projectVersionId=$projectVersionId, inferencePipelineId=$inferencePipelineId, dateCreated=$dateCreated, dateUpdated=$dateUpdated, dateDataStarts=$dateDataStarts, dateDataEnds=$dateDataEnds, status=$status, statusMessage=$statusMessage, additionalProperties=$additionalProperties}"
@@ -1363,17 +1351,14 @@ private constructor(
return true
}
- return /* spotless:off */ other is InferencePipelineTestResultListResponse && this.items == other.items && this.additionalProperties == other.additionalProperties /* spotless:on */
+ return /* spotless:off */ other is InferencePipelineTestResultListResponse && items == other.items && additionalProperties == other.additionalProperties /* spotless:on */
}
- private var hashCode: Int = 0
+ /* spotless:off */
+ private val hashCode: Int by lazy { Objects.hash(items, additionalProperties) }
+ /* spotless:on */
- override fun hashCode(): Int {
- if (hashCode == 0) {
- hashCode = /* spotless:off */ Objects.hash(items, additionalProperties) /* spotless:on */
- }
- return hashCode
- }
+ override fun hashCode(): Int = hashCode
override fun toString() =
"InferencePipelineTestResultListResponse{items=$items, additionalProperties=$additionalProperties}"
diff --git a/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/InferencePipelineUpdateParams.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/InferencePipelineUpdateParams.kt
index f5810d6..1cdd4dd 100644
--- a/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/InferencePipelineUpdateParams.kt
+++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/InferencePipelineUpdateParams.kt
@@ -149,17 +149,14 @@ constructor(
return true
}
- return /* spotless:off */ other is InferencePipelineUpdateBody && this.description == other.description && this.name == other.name && this.referenceDatasetUri == other.referenceDatasetUri && this.additionalProperties == other.additionalProperties /* spotless:on */
+ return /* spotless:off */ other is InferencePipelineUpdateBody && description == other.description && name == other.name && referenceDatasetUri == other.referenceDatasetUri && additionalProperties == other.additionalProperties /* spotless:on */
}
- private var hashCode: Int = 0
+ /* spotless:off */
+ private val hashCode: Int by lazy { Objects.hash(description, name, referenceDatasetUri, additionalProperties) }
+ /* spotless:on */
- override fun hashCode(): Int {
- if (hashCode == 0) {
- hashCode = /* spotless:off */ Objects.hash(description, name, referenceDatasetUri, additionalProperties) /* spotless:on */
- }
- return hashCode
- }
+ override fun hashCode(): Int = hashCode
override fun toString() =
"InferencePipelineUpdateBody{description=$description, name=$name, referenceDatasetUri=$referenceDatasetUri, additionalProperties=$additionalProperties}"
@@ -176,12 +173,10 @@ constructor(
return true
}
- return /* spotless:off */ other is InferencePipelineUpdateParams && this.inferencePipelineId == other.inferencePipelineId && this.description == other.description && this.name == other.name && this.referenceDatasetUri == other.referenceDatasetUri && this.additionalHeaders == other.additionalHeaders && this.additionalQueryParams == other.additionalQueryParams && this.additionalBodyProperties == other.additionalBodyProperties /* spotless:on */
+ return /* spotless:off */ other is InferencePipelineUpdateParams && inferencePipelineId == other.inferencePipelineId && description == other.description && name == other.name && referenceDatasetUri == other.referenceDatasetUri && additionalHeaders == other.additionalHeaders && additionalQueryParams == other.additionalQueryParams && additionalBodyProperties == other.additionalBodyProperties /* spotless:on */
}
- override fun hashCode(): Int {
- return /* spotless:off */ Objects.hash(inferencePipelineId, description, name, referenceDatasetUri, additionalHeaders, additionalQueryParams, additionalBodyProperties) /* spotless:on */
- }
+ override fun hashCode(): Int = /* spotless:off */ Objects.hash(inferencePipelineId, description, name, referenceDatasetUri, additionalHeaders, additionalQueryParams, additionalBodyProperties) /* spotless:on */
override fun toString() =
"InferencePipelineUpdateParams{inferencePipelineId=$inferencePipelineId, description=$description, name=$name, referenceDatasetUri=$referenceDatasetUri, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams, additionalBodyProperties=$additionalBodyProperties}"
diff --git a/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/InferencePipelineUpdateResponse.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/InferencePipelineUpdateResponse.kt
index f5cdb6c..f026d6f 100644
--- a/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/InferencePipelineUpdateResponse.kt
+++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/InferencePipelineUpdateResponse.kt
@@ -457,17 +457,14 @@ private constructor(
return true
}
- return /* spotless:off */ other is Links && this.app == other.app && this.additionalProperties == other.additionalProperties /* spotless:on */
+ return /* spotless:off */ other is Links && app == other.app && additionalProperties == other.additionalProperties /* spotless:on */
}
- private var hashCode: Int = 0
+ /* spotless:off */
+ private val hashCode: Int by lazy { Objects.hash(app, additionalProperties) }
+ /* spotless:on */
- override fun hashCode(): Int {
- if (hashCode == 0) {
- hashCode = /* spotless:off */ Objects.hash(app, additionalProperties) /* spotless:on */
- }
- return hashCode
- }
+ override fun hashCode(): Int = hashCode
override fun toString() = "Links{app=$app, additionalProperties=$additionalProperties}"
}
@@ -485,7 +482,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is Status && this.value == other.value /* spotless:on */
+ return /* spotless:off */ other is Status && value == other.value /* spotless:on */
}
override fun hashCode() = value.hashCode()
@@ -558,17 +555,14 @@ private constructor(
return true
}
- return /* spotless:off */ other is InferencePipelineUpdateResponse && this.id == other.id && this.projectId == other.projectId && this.name == other.name && this.dateCreated == other.dateCreated && this.dateUpdated == other.dateUpdated && this.dateLastSampleReceived == other.dateLastSampleReceived && this.description == other.description && this.dateLastEvaluated == other.dateLastEvaluated && this.dateOfNextEvaluation == other.dateOfNextEvaluation && this.passingGoalCount == other.passingGoalCount && this.failingGoalCount == other.failingGoalCount && this.totalGoalCount == other.totalGoalCount && this.status == other.status && this.statusMessage == other.statusMessage && this.links == other.links && this.additionalProperties == other.additionalProperties /* spotless:on */
+ return /* spotless:off */ other is InferencePipelineUpdateResponse && id == other.id && projectId == other.projectId && name == other.name && dateCreated == other.dateCreated && dateUpdated == other.dateUpdated && dateLastSampleReceived == other.dateLastSampleReceived && description == other.description && dateLastEvaluated == other.dateLastEvaluated && dateOfNextEvaluation == other.dateOfNextEvaluation && passingGoalCount == other.passingGoalCount && failingGoalCount == other.failingGoalCount && totalGoalCount == other.totalGoalCount && status == other.status && statusMessage == other.statusMessage && links == other.links && additionalProperties == other.additionalProperties /* spotless:on */
}
- private var hashCode: Int = 0
+ /* spotless:off */
+ private val hashCode: Int by lazy { Objects.hash(id, projectId, name, dateCreated, dateUpdated, dateLastSampleReceived, description, dateLastEvaluated, dateOfNextEvaluation, passingGoalCount, failingGoalCount, totalGoalCount, status, statusMessage, links, additionalProperties) }
+ /* spotless:on */
- override fun hashCode(): Int {
- if (hashCode == 0) {
- hashCode = /* spotless:off */ Objects.hash(id, projectId, name, dateCreated, dateUpdated, dateLastSampleReceived, description, dateLastEvaluated, dateOfNextEvaluation, passingGoalCount, failingGoalCount, totalGoalCount, status, statusMessage, links, additionalProperties) /* spotless:on */
- }
- return hashCode
- }
+ override fun hashCode(): Int = hashCode
override fun toString() =
"InferencePipelineUpdateResponse{id=$id, projectId=$projectId, name=$name, dateCreated=$dateCreated, dateUpdated=$dateUpdated, dateLastSampleReceived=$dateLastSampleReceived, description=$description, dateLastEvaluated=$dateLastEvaluated, dateOfNextEvaluation=$dateOfNextEvaluation, passingGoalCount=$passingGoalCount, failingGoalCount=$failingGoalCount, totalGoalCount=$totalGoalCount, status=$status, statusMessage=$statusMessage, links=$links, additionalProperties=$additionalProperties}"
diff --git a/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/ProjectCommitCreateParams.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/ProjectCommitCreateParams.kt
index 173a2b1..3655b82 100644
--- a/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/ProjectCommitCreateParams.kt
+++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/ProjectCommitCreateParams.kt
@@ -162,17 +162,14 @@ constructor(
return true
}
- return /* spotless:off */ other is ProjectCommitCreateBody && this.commit == other.commit && this.storageUri == other.storageUri && this.archived == other.archived && this.deploymentStatus == other.deploymentStatus && this.additionalProperties == other.additionalProperties /* spotless:on */
+ return /* spotless:off */ other is ProjectCommitCreateBody && commit == other.commit && storageUri == other.storageUri && archived == other.archived && deploymentStatus == other.deploymentStatus && additionalProperties == other.additionalProperties /* spotless:on */
}
- private var hashCode: Int = 0
+ /* spotless:off */
+ private val hashCode: Int by lazy { Objects.hash(commit, storageUri, archived, deploymentStatus, additionalProperties) }
+ /* spotless:on */
- override fun hashCode(): Int {
- if (hashCode == 0) {
- hashCode = /* spotless:off */ Objects.hash(commit, storageUri, archived, deploymentStatus, additionalProperties) /* spotless:on */
- }
- return hashCode
- }
+ override fun hashCode(): Int = hashCode
override fun toString() =
"ProjectCommitCreateBody{commit=$commit, storageUri=$storageUri, archived=$archived, deploymentStatus=$deploymentStatus, additionalProperties=$additionalProperties}"
@@ -189,12 +186,10 @@ constructor(
return true
}
- return /* spotless:off */ other is ProjectCommitCreateParams && this.projectId == other.projectId && this.commit == other.commit && this.storageUri == other.storageUri && this.archived == other.archived && this.deploymentStatus == other.deploymentStatus && this.additionalHeaders == other.additionalHeaders && this.additionalQueryParams == other.additionalQueryParams && this.additionalBodyProperties == other.additionalBodyProperties /* spotless:on */
+ return /* spotless:off */ other is ProjectCommitCreateParams && projectId == other.projectId && commit == other.commit && storageUri == other.storageUri && archived == other.archived && deploymentStatus == other.deploymentStatus && additionalHeaders == other.additionalHeaders && additionalQueryParams == other.additionalQueryParams && additionalBodyProperties == other.additionalBodyProperties /* spotless:on */
}
- override fun hashCode(): Int {
- return /* spotless:off */ Objects.hash(projectId, commit, storageUri, archived, deploymentStatus, additionalHeaders, additionalQueryParams, additionalBodyProperties) /* spotless:on */
- }
+ override fun hashCode(): Int = /* spotless:off */ Objects.hash(projectId, commit, storageUri, archived, deploymentStatus, additionalHeaders, additionalQueryParams, additionalBodyProperties) /* spotless:on */
override fun toString() =
"ProjectCommitCreateParams{projectId=$projectId, commit=$commit, storageUri=$storageUri, archived=$archived, deploymentStatus=$deploymentStatus, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams, additionalBodyProperties=$additionalBodyProperties}"
@@ -567,17 +562,14 @@ constructor(
return true
}
- return /* spotless:off */ other is Commit && this.id == other.id && this.authorId == other.authorId && this.dateCreated == other.dateCreated && this.fileSize == other.fileSize && this.message == other.message && this.mlModelId == other.mlModelId && this.validationDatasetId == other.validationDatasetId && this.trainingDatasetId == other.trainingDatasetId && this.storageUri == other.storageUri && this.gitCommitSha == other.gitCommitSha && this.gitCommitRef == other.gitCommitRef && this.gitCommitUrl == other.gitCommitUrl && this.additionalProperties == other.additionalProperties /* spotless:on */
+ return /* spotless:off */ other is Commit && id == other.id && authorId == other.authorId && dateCreated == other.dateCreated && fileSize == other.fileSize && message == other.message && mlModelId == other.mlModelId && validationDatasetId == other.validationDatasetId && trainingDatasetId == other.trainingDatasetId && storageUri == other.storageUri && gitCommitSha == other.gitCommitSha && gitCommitRef == other.gitCommitRef && gitCommitUrl == other.gitCommitUrl && additionalProperties == other.additionalProperties /* spotless:on */
}
- private var hashCode: Int = 0
+ /* spotless:off */
+ private val hashCode: Int by lazy { Objects.hash(id, authorId, dateCreated, fileSize, message, mlModelId, validationDatasetId, trainingDatasetId, storageUri, gitCommitSha, gitCommitRef, gitCommitUrl, additionalProperties) }
+ /* spotless:on */
- override fun hashCode(): Int {
- if (hashCode == 0) {
- hashCode = /* spotless:off */ Objects.hash(id, authorId, dateCreated, fileSize, message, mlModelId, validationDatasetId, trainingDatasetId, storageUri, gitCommitSha, gitCommitRef, gitCommitUrl, additionalProperties) /* spotless:on */
- }
- return hashCode
- }
+ override fun hashCode(): Int = hashCode
override fun toString() =
"Commit{id=$id, authorId=$authorId, dateCreated=$dateCreated, fileSize=$fileSize, message=$message, mlModelId=$mlModelId, validationDatasetId=$validationDatasetId, trainingDatasetId=$trainingDatasetId, storageUri=$storageUri, gitCommitSha=$gitCommitSha, gitCommitRef=$gitCommitRef, gitCommitUrl=$gitCommitUrl, additionalProperties=$additionalProperties}"
@@ -596,7 +588,7 @@ constructor(
return true
}
- return /* spotless:off */ other is Status && this.value == other.value /* spotless:on */
+ return /* spotless:off */ other is Status && value == other.value /* spotless:on */
}
override fun hashCode() = value.hashCode()
@@ -724,17 +716,14 @@ constructor(
return true
}
- return /* spotless:off */ other is Links && this.app == other.app && this.additionalProperties == other.additionalProperties /* spotless:on */
+ return /* spotless:off */ other is Links && app == other.app && additionalProperties == other.additionalProperties /* spotless:on */
}
- private var hashCode: Int = 0
+ /* spotless:off */
+ private val hashCode: Int by lazy { Objects.hash(app, additionalProperties) }
+ /* spotless:on */
- override fun hashCode(): Int {
- if (hashCode == 0) {
- hashCode = /* spotless:off */ Objects.hash(app, additionalProperties) /* spotless:on */
- }
- return hashCode
- }
+ override fun hashCode(): Int = hashCode
override fun toString() = "Links{app=$app, additionalProperties=$additionalProperties}"
}
diff --git a/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/ProjectCommitCreateResponse.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/ProjectCommitCreateResponse.kt
index 2e8ac57..e30f951 100644
--- a/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/ProjectCommitCreateResponse.kt
+++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/ProjectCommitCreateResponse.kt
@@ -746,17 +746,14 @@ private constructor(
return true
}
- return /* spotless:off */ other is Commit && this.id == other.id && this.authorId == other.authorId && this.dateCreated == other.dateCreated && this.fileSize == other.fileSize && this.message == other.message && this.mlModelId == other.mlModelId && this.validationDatasetId == other.validationDatasetId && this.trainingDatasetId == other.trainingDatasetId && this.storageUri == other.storageUri && this.gitCommitSha == other.gitCommitSha && this.gitCommitRef == other.gitCommitRef && this.gitCommitUrl == other.gitCommitUrl && this.additionalProperties == other.additionalProperties /* spotless:on */
+ return /* spotless:off */ other is Commit && id == other.id && authorId == other.authorId && dateCreated == other.dateCreated && fileSize == other.fileSize && message == other.message && mlModelId == other.mlModelId && validationDatasetId == other.validationDatasetId && trainingDatasetId == other.trainingDatasetId && storageUri == other.storageUri && gitCommitSha == other.gitCommitSha && gitCommitRef == other.gitCommitRef && gitCommitUrl == other.gitCommitUrl && additionalProperties == other.additionalProperties /* spotless:on */
}
- private var hashCode: Int = 0
+ /* spotless:off */
+ private val hashCode: Int by lazy { Objects.hash(id, authorId, dateCreated, fileSize, message, mlModelId, validationDatasetId, trainingDatasetId, storageUri, gitCommitSha, gitCommitRef, gitCommitUrl, additionalProperties) }
+ /* spotless:on */
- override fun hashCode(): Int {
- if (hashCode == 0) {
- hashCode = /* spotless:off */ Objects.hash(id, authorId, dateCreated, fileSize, message, mlModelId, validationDatasetId, trainingDatasetId, storageUri, gitCommitSha, gitCommitRef, gitCommitUrl, additionalProperties) /* spotless:on */
- }
- return hashCode
- }
+ override fun hashCode(): Int = hashCode
override fun toString() =
"Commit{id=$id, authorId=$authorId, dateCreated=$dateCreated, fileSize=$fileSize, message=$message, mlModelId=$mlModelId, validationDatasetId=$validationDatasetId, trainingDatasetId=$trainingDatasetId, storageUri=$storageUri, gitCommitSha=$gitCommitSha, gitCommitRef=$gitCommitRef, gitCommitUrl=$gitCommitUrl, additionalProperties=$additionalProperties}"
@@ -775,7 +772,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is Status && this.value == other.value /* spotless:on */
+ return /* spotless:off */ other is Status && value == other.value /* spotless:on */
}
override fun hashCode() = value.hashCode()
@@ -914,17 +911,14 @@ private constructor(
return true
}
- return /* spotless:off */ other is Links && this.app == other.app && this.additionalProperties == other.additionalProperties /* spotless:on */
+ return /* spotless:off */ other is Links && app == other.app && additionalProperties == other.additionalProperties /* spotless:on */
}
- private var hashCode: Int = 0
+ /* spotless:off */
+ private val hashCode: Int by lazy { Objects.hash(app, additionalProperties) }
+ /* spotless:on */
- override fun hashCode(): Int {
- if (hashCode == 0) {
- hashCode = /* spotless:off */ Objects.hash(app, additionalProperties) /* spotless:on */
- }
- return hashCode
- }
+ override fun hashCode(): Int = hashCode
override fun toString() = "Links{app=$app, additionalProperties=$additionalProperties}"
}
@@ -934,17 +928,14 @@ private constructor(
return true
}
- return /* spotless:off */ other is ProjectCommitCreateResponse && this.id == other.id && this.dateCreated == other.dateCreated && this.status == other.status && this.statusMessage == other.statusMessage && this.projectId == other.projectId && this.storageUri == other.storageUri && this.commit == other.commit && this.deploymentStatus == other.deploymentStatus && this.mlModelId == other.mlModelId && this.validationDatasetId == other.validationDatasetId && this.trainingDatasetId == other.trainingDatasetId && this.archived == other.archived && this.dateArchived == other.dateArchived && this.passingGoalCount == other.passingGoalCount && this.failingGoalCount == other.failingGoalCount && this.totalGoalCount == other.totalGoalCount && this.links == other.links && this.additionalProperties == other.additionalProperties /* spotless:on */
+ return /* spotless:off */ other is ProjectCommitCreateResponse && id == other.id && dateCreated == other.dateCreated && status == other.status && statusMessage == other.statusMessage && projectId == other.projectId && storageUri == other.storageUri && commit == other.commit && deploymentStatus == other.deploymentStatus && mlModelId == other.mlModelId && validationDatasetId == other.validationDatasetId && trainingDatasetId == other.trainingDatasetId && archived == other.archived && dateArchived == other.dateArchived && passingGoalCount == other.passingGoalCount && failingGoalCount == other.failingGoalCount && totalGoalCount == other.totalGoalCount && links == other.links && additionalProperties == other.additionalProperties /* spotless:on */
}
- private var hashCode: Int = 0
+ /* spotless:off */
+ private val hashCode: Int by lazy { Objects.hash(id, dateCreated, status, statusMessage, projectId, storageUri, commit, deploymentStatus, mlModelId, validationDatasetId, trainingDatasetId, archived, dateArchived, passingGoalCount, failingGoalCount, totalGoalCount, links, additionalProperties) }
+ /* spotless:on */
- override fun hashCode(): Int {
- if (hashCode == 0) {
- hashCode = /* spotless:off */ Objects.hash(id, dateCreated, status, statusMessage, projectId, storageUri, commit, deploymentStatus, mlModelId, validationDatasetId, trainingDatasetId, archived, dateArchived, passingGoalCount, failingGoalCount, totalGoalCount, links, additionalProperties) /* spotless:on */
- }
- return hashCode
- }
+ override fun hashCode(): Int = hashCode
override fun toString() =
"ProjectCommitCreateResponse{id=$id, dateCreated=$dateCreated, status=$status, statusMessage=$statusMessage, projectId=$projectId, storageUri=$storageUri, commit=$commit, deploymentStatus=$deploymentStatus, mlModelId=$mlModelId, validationDatasetId=$validationDatasetId, trainingDatasetId=$trainingDatasetId, archived=$archived, dateArchived=$dateArchived, passingGoalCount=$passingGoalCount, failingGoalCount=$failingGoalCount, totalGoalCount=$totalGoalCount, links=$links, additionalProperties=$additionalProperties}"
diff --git a/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/ProjectCommitListParams.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/ProjectCommitListParams.kt
index e8fa829..9a24957 100644
--- a/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/ProjectCommitListParams.kt
+++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/ProjectCommitListParams.kt
@@ -51,12 +51,10 @@ constructor(
return true
}
- return /* spotless:off */ other is ProjectCommitListParams && this.projectId == other.projectId && this.page == other.page && this.perPage == other.perPage && this.additionalHeaders == other.additionalHeaders && this.additionalQueryParams == other.additionalQueryParams /* spotless:on */
+ return /* spotless:off */ other is ProjectCommitListParams && projectId == other.projectId && page == other.page && perPage == other.perPage && additionalHeaders == other.additionalHeaders && additionalQueryParams == other.additionalQueryParams /* spotless:on */
}
- override fun hashCode(): Int {
- return /* spotless:off */ Objects.hash(projectId, page, perPage, additionalHeaders, additionalQueryParams) /* spotless:on */
- }
+ override fun hashCode(): Int = /* spotless:off */ Objects.hash(projectId, page, perPage, additionalHeaders, additionalQueryParams) /* spotless:on */
override fun toString() =
"ProjectCommitListParams{projectId=$projectId, page=$page, perPage=$perPage, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams}"
diff --git a/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/ProjectCommitListResponse.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/ProjectCommitListResponse.kt
index 8d5edb0..86cc5fc 100644
--- a/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/ProjectCommitListResponse.kt
+++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/ProjectCommitListResponse.kt
@@ -826,17 +826,14 @@ private constructor(
return true
}
- return /* spotless:off */ other is Commit && this.id == other.id && this.authorId == other.authorId && this.dateCreated == other.dateCreated && this.fileSize == other.fileSize && this.message == other.message && this.mlModelId == other.mlModelId && this.validationDatasetId == other.validationDatasetId && this.trainingDatasetId == other.trainingDatasetId && this.storageUri == other.storageUri && this.gitCommitSha == other.gitCommitSha && this.gitCommitRef == other.gitCommitRef && this.gitCommitUrl == other.gitCommitUrl && this.additionalProperties == other.additionalProperties /* spotless:on */
+ return /* spotless:off */ other is Commit && id == other.id && authorId == other.authorId && dateCreated == other.dateCreated && fileSize == other.fileSize && message == other.message && mlModelId == other.mlModelId && validationDatasetId == other.validationDatasetId && trainingDatasetId == other.trainingDatasetId && storageUri == other.storageUri && gitCommitSha == other.gitCommitSha && gitCommitRef == other.gitCommitRef && gitCommitUrl == other.gitCommitUrl && additionalProperties == other.additionalProperties /* spotless:on */
}
- private var hashCode: Int = 0
+ /* spotless:off */
+ private val hashCode: Int by lazy { Objects.hash(id, authorId, dateCreated, fileSize, message, mlModelId, validationDatasetId, trainingDatasetId, storageUri, gitCommitSha, gitCommitRef, gitCommitUrl, additionalProperties) }
+ /* spotless:on */
- override fun hashCode(): Int {
- if (hashCode == 0) {
- hashCode = /* spotless:off */ Objects.hash(id, authorId, dateCreated, fileSize, message, mlModelId, validationDatasetId, trainingDatasetId, storageUri, gitCommitSha, gitCommitRef, gitCommitUrl, additionalProperties) /* spotless:on */
- }
- return hashCode
- }
+ override fun hashCode(): Int = hashCode
override fun toString() =
"Commit{id=$id, authorId=$authorId, dateCreated=$dateCreated, fileSize=$fileSize, message=$message, mlModelId=$mlModelId, validationDatasetId=$validationDatasetId, trainingDatasetId=$trainingDatasetId, storageUri=$storageUri, gitCommitSha=$gitCommitSha, gitCommitRef=$gitCommitRef, gitCommitUrl=$gitCommitUrl, additionalProperties=$additionalProperties}"
@@ -855,7 +852,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is Status && this.value == other.value /* spotless:on */
+ return /* spotless:off */ other is Status && value == other.value /* spotless:on */
}
override fun hashCode() = value.hashCode()
@@ -995,17 +992,14 @@ private constructor(
return true
}
- return /* spotless:off */ other is Links && this.app == other.app && this.additionalProperties == other.additionalProperties /* spotless:on */
+ return /* spotless:off */ other is Links && app == other.app && additionalProperties == other.additionalProperties /* spotless:on */
}
- private var hashCode: Int = 0
+ /* spotless:off */
+ private val hashCode: Int by lazy { Objects.hash(app, additionalProperties) }
+ /* spotless:on */
- override fun hashCode(): Int {
- if (hashCode == 0) {
- hashCode = /* spotless:off */ Objects.hash(app, additionalProperties) /* spotless:on */
- }
- return hashCode
- }
+ override fun hashCode(): Int = hashCode
override fun toString() = "Links{app=$app, additionalProperties=$additionalProperties}"
}
@@ -1015,17 +1009,14 @@ private constructor(
return true
}
- return /* spotless:off */ other is Item && this.id == other.id && this.dateCreated == other.dateCreated && this.status == other.status && this.statusMessage == other.statusMessage && this.projectId == other.projectId && this.storageUri == other.storageUri && this.commit == other.commit && this.deploymentStatus == other.deploymentStatus && this.mlModelId == other.mlModelId && this.validationDatasetId == other.validationDatasetId && this.trainingDatasetId == other.trainingDatasetId && this.archived == other.archived && this.dateArchived == other.dateArchived && this.passingGoalCount == other.passingGoalCount && this.failingGoalCount == other.failingGoalCount && this.totalGoalCount == other.totalGoalCount && this.links == other.links && this.additionalProperties == other.additionalProperties /* spotless:on */
+ return /* spotless:off */ other is Item && id == other.id && dateCreated == other.dateCreated && status == other.status && statusMessage == other.statusMessage && projectId == other.projectId && storageUri == other.storageUri && commit == other.commit && deploymentStatus == other.deploymentStatus && mlModelId == other.mlModelId && validationDatasetId == other.validationDatasetId && trainingDatasetId == other.trainingDatasetId && archived == other.archived && dateArchived == other.dateArchived && passingGoalCount == other.passingGoalCount && failingGoalCount == other.failingGoalCount && totalGoalCount == other.totalGoalCount && links == other.links && additionalProperties == other.additionalProperties /* spotless:on */
}
- private var hashCode: Int = 0
+ /* spotless:off */
+ private val hashCode: Int by lazy { Objects.hash(id, dateCreated, status, statusMessage, projectId, storageUri, commit, deploymentStatus, mlModelId, validationDatasetId, trainingDatasetId, archived, dateArchived, passingGoalCount, failingGoalCount, totalGoalCount, links, additionalProperties) }
+ /* spotless:on */
- override fun hashCode(): Int {
- if (hashCode == 0) {
- hashCode = /* spotless:off */ Objects.hash(id, dateCreated, status, statusMessage, projectId, storageUri, commit, deploymentStatus, mlModelId, validationDatasetId, trainingDatasetId, archived, dateArchived, passingGoalCount, failingGoalCount, totalGoalCount, links, additionalProperties) /* spotless:on */
- }
- return hashCode
- }
+ override fun hashCode(): Int = hashCode
override fun toString() =
"Item{id=$id, dateCreated=$dateCreated, status=$status, statusMessage=$statusMessage, projectId=$projectId, storageUri=$storageUri, commit=$commit, deploymentStatus=$deploymentStatus, mlModelId=$mlModelId, validationDatasetId=$validationDatasetId, trainingDatasetId=$trainingDatasetId, archived=$archived, dateArchived=$dateArchived, passingGoalCount=$passingGoalCount, failingGoalCount=$failingGoalCount, totalGoalCount=$totalGoalCount, links=$links, additionalProperties=$additionalProperties}"
@@ -1036,17 +1027,14 @@ private constructor(
return true
}
- return /* spotless:off */ other is ProjectCommitListResponse && this.items == other.items && this.additionalProperties == other.additionalProperties /* spotless:on */
+ return /* spotless:off */ other is ProjectCommitListResponse && items == other.items && additionalProperties == other.additionalProperties /* spotless:on */
}
- private var hashCode: Int = 0
+ /* spotless:off */
+ private val hashCode: Int by lazy { Objects.hash(items, additionalProperties) }
+ /* spotless:on */
- override fun hashCode(): Int {
- if (hashCode == 0) {
- hashCode = /* spotless:off */ Objects.hash(items, additionalProperties) /* spotless:on */
- }
- return hashCode
- }
+ override fun hashCode(): Int = hashCode
override fun toString() =
"ProjectCommitListResponse{items=$items, additionalProperties=$additionalProperties}"
diff --git a/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/ProjectCreateParams.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/ProjectCreateParams.kt
index 07714dd..b653db0 100644
--- a/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/ProjectCreateParams.kt
+++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/ProjectCreateParams.kt
@@ -135,17 +135,14 @@ constructor(
return true
}
- return /* spotless:off */ other is ProjectCreateBody && this.name == other.name && this.taskType == other.taskType && this.description == other.description && this.additionalProperties == other.additionalProperties /* spotless:on */
+ return /* spotless:off */ other is ProjectCreateBody && name == other.name && taskType == other.taskType && description == other.description && additionalProperties == other.additionalProperties /* spotless:on */
}
- private var hashCode: Int = 0
+ /* spotless:off */
+ private val hashCode: Int by lazy { Objects.hash(name, taskType, description, additionalProperties) }
+ /* spotless:on */
- override fun hashCode(): Int {
- if (hashCode == 0) {
- hashCode = /* spotless:off */ Objects.hash(name, taskType, description, additionalProperties) /* spotless:on */
- }
- return hashCode
- }
+ override fun hashCode(): Int = hashCode
override fun toString() =
"ProjectCreateBody{name=$name, taskType=$taskType, description=$description, additionalProperties=$additionalProperties}"
@@ -162,12 +159,10 @@ constructor(
return true
}
- return /* spotless:off */ other is ProjectCreateParams && this.name == other.name && this.taskType == other.taskType && this.description == other.description && this.additionalHeaders == other.additionalHeaders && this.additionalQueryParams == other.additionalQueryParams && this.additionalBodyProperties == other.additionalBodyProperties /* spotless:on */
+ return /* spotless:off */ other is ProjectCreateParams && name == other.name && taskType == other.taskType && description == other.description && additionalHeaders == other.additionalHeaders && additionalQueryParams == other.additionalQueryParams && additionalBodyProperties == other.additionalBodyProperties /* spotless:on */
}
- override fun hashCode(): Int {
- return /* spotless:off */ Objects.hash(name, taskType, description, additionalHeaders, additionalQueryParams, additionalBodyProperties) /* spotless:on */
- }
+ override fun hashCode(): Int = /* spotless:off */ Objects.hash(name, taskType, description, additionalHeaders, additionalQueryParams, additionalBodyProperties) /* spotless:on */
override fun toString() =
"ProjectCreateParams{name=$name, taskType=$taskType, description=$description, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams, additionalBodyProperties=$additionalBodyProperties}"
@@ -400,17 +395,14 @@ constructor(
return true
}
- return /* spotless:off */ other is Links && this.app == other.app && this.additionalProperties == other.additionalProperties /* spotless:on */
+ return /* spotless:off */ other is Links && app == other.app && additionalProperties == other.additionalProperties /* spotless:on */
}
- private var hashCode: Int = 0
+ /* spotless:off */
+ private val hashCode: Int by lazy { Objects.hash(app, additionalProperties) }
+ /* spotless:on */
- override fun hashCode(): Int {
- if (hashCode == 0) {
- hashCode = /* spotless:off */ Objects.hash(app, additionalProperties) /* spotless:on */
- }
- return hashCode
- }
+ override fun hashCode(): Int = hashCode
override fun toString() = "Links{app=$app, additionalProperties=$additionalProperties}"
}
@@ -428,7 +420,7 @@ constructor(
return true
}
- return /* spotless:off */ other is Source && this.value == other.value /* spotless:on */
+ return /* spotless:off */ other is Source && value == other.value /* spotless:on */
}
override fun hashCode() = value.hashCode()
@@ -491,7 +483,7 @@ constructor(
return true
}
- return /* spotless:off */ other is TaskType && this.value == other.value /* spotless:on */
+ return /* spotless:off */ other is TaskType && value == other.value /* spotless:on */
}
override fun hashCode() = value.hashCode()
@@ -702,17 +694,14 @@ constructor(
return true
}
- return /* spotless:off */ other is GitRepo && this.id == other.id && this.gitId == other.gitId && this.dateConnected == other.dateConnected && this.dateUpdated == other.dateUpdated && this.branch == other.branch && this.name == other.name && this.private_ == other.private_ && this.slug == other.slug && this.url == other.url && this.rootDir == other.rootDir && this.projectId == other.projectId && this.gitAccountId == other.gitAccountId && this.additionalProperties == other.additionalProperties /* spotless:on */
+ return /* spotless:off */ other is GitRepo && id == other.id && gitId == other.gitId && dateConnected == other.dateConnected && dateUpdated == other.dateUpdated && branch == other.branch && name == other.name && private_ == other.private_ && slug == other.slug && url == other.url && rootDir == other.rootDir && projectId == other.projectId && gitAccountId == other.gitAccountId && additionalProperties == other.additionalProperties /* spotless:on */
}
- private var hashCode: Int = 0
+ /* spotless:off */
+ private val hashCode: Int by lazy { Objects.hash(id, gitId, dateConnected, dateUpdated, branch, name, private_, slug, url, rootDir, projectId, gitAccountId, additionalProperties) }
+ /* spotless:on */
- override fun hashCode(): Int {
- if (hashCode == 0) {
- hashCode = /* spotless:off */ Objects.hash(id, gitId, dateConnected, dateUpdated, branch, name, private_, slug, url, rootDir, projectId, gitAccountId, additionalProperties) /* spotless:on */
- }
- return hashCode
- }
+ override fun hashCode(): Int = hashCode
override fun toString() =
"GitRepo{id=$id, gitId=$gitId, dateConnected=$dateConnected, dateUpdated=$dateUpdated, branch=$branch, name=$name, private_=$private_, slug=$slug, url=$url, rootDir=$rootDir, projectId=$projectId, gitAccountId=$gitAccountId, additionalProperties=$additionalProperties}"
diff --git a/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/ProjectCreateResponse.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/ProjectCreateResponse.kt
index 1f4629e..97a47a2 100644
--- a/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/ProjectCreateResponse.kt
+++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/ProjectCreateResponse.kt
@@ -466,17 +466,14 @@ private constructor(
return true
}
- return /* spotless:off */ other is Links && this.app == other.app && this.additionalProperties == other.additionalProperties /* spotless:on */
+ return /* spotless:off */ other is Links && app == other.app && additionalProperties == other.additionalProperties /* spotless:on */
}
- private var hashCode: Int = 0
+ /* spotless:off */
+ private val hashCode: Int by lazy { Objects.hash(app, additionalProperties) }
+ /* spotless:on */
- override fun hashCode(): Int {
- if (hashCode == 0) {
- hashCode = /* spotless:off */ Objects.hash(app, additionalProperties) /* spotless:on */
- }
- return hashCode
- }
+ override fun hashCode(): Int = hashCode
override fun toString() = "Links{app=$app, additionalProperties=$additionalProperties}"
}
@@ -494,7 +491,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is Source && this.value == other.value /* spotless:on */
+ return /* spotless:off */ other is Source && value == other.value /* spotless:on */
}
override fun hashCode() = value.hashCode()
@@ -557,7 +554,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is TaskType && this.value == other.value /* spotless:on */
+ return /* spotless:off */ other is TaskType && value == other.value /* spotless:on */
}
override fun hashCode() = value.hashCode()
@@ -860,17 +857,14 @@ private constructor(
return true
}
- return /* spotless:off */ other is GitRepo && this.id == other.id && this.gitId == other.gitId && this.dateConnected == other.dateConnected && this.dateUpdated == other.dateUpdated && this.branch == other.branch && this.name == other.name && this.private_ == other.private_ && this.slug == other.slug && this.url == other.url && this.rootDir == other.rootDir && this.projectId == other.projectId && this.gitAccountId == other.gitAccountId && this.additionalProperties == other.additionalProperties /* spotless:on */
+ return /* spotless:off */ other is GitRepo && id == other.id && gitId == other.gitId && dateConnected == other.dateConnected && dateUpdated == other.dateUpdated && branch == other.branch && name == other.name && private_ == other.private_ && slug == other.slug && url == other.url && rootDir == other.rootDir && projectId == other.projectId && gitAccountId == other.gitAccountId && additionalProperties == other.additionalProperties /* spotless:on */
}
- private var hashCode: Int = 0
+ /* spotless:off */
+ private val hashCode: Int by lazy { Objects.hash(id, gitId, dateConnected, dateUpdated, branch, name, private_, slug, url, rootDir, projectId, gitAccountId, additionalProperties) }
+ /* spotless:on */
- override fun hashCode(): Int {
- if (hashCode == 0) {
- hashCode = /* spotless:off */ Objects.hash(id, gitId, dateConnected, dateUpdated, branch, name, private_, slug, url, rootDir, projectId, gitAccountId, additionalProperties) /* spotless:on */
- }
- return hashCode
- }
+ override fun hashCode(): Int = hashCode
override fun toString() =
"GitRepo{id=$id, gitId=$gitId, dateConnected=$dateConnected, dateUpdated=$dateUpdated, branch=$branch, name=$name, private_=$private_, slug=$slug, url=$url, rootDir=$rootDir, projectId=$projectId, gitAccountId=$gitAccountId, additionalProperties=$additionalProperties}"
@@ -881,17 +875,14 @@ private constructor(
return true
}
- return /* spotless:off */ other is ProjectCreateResponse && this.id == other.id && this.workspaceId == other.workspaceId && this.creatorId == other.creatorId && this.name == other.name && this.dateCreated == other.dateCreated && this.dateUpdated == other.dateUpdated && this.description == other.description && this.source == other.source && this.taskType == other.taskType && this.versionCount == other.versionCount && this.inferencePipelineCount == other.inferencePipelineCount && this.goalCount == other.goalCount && this.developmentGoalCount == other.developmentGoalCount && this.monitoringGoalCount == other.monitoringGoalCount && this.links == other.links && this.gitRepo == other.gitRepo && this.additionalProperties == other.additionalProperties /* spotless:on */
+ return /* spotless:off */ other is ProjectCreateResponse && id == other.id && workspaceId == other.workspaceId && creatorId == other.creatorId && name == other.name && dateCreated == other.dateCreated && dateUpdated == other.dateUpdated && description == other.description && source == other.source && taskType == other.taskType && versionCount == other.versionCount && inferencePipelineCount == other.inferencePipelineCount && goalCount == other.goalCount && developmentGoalCount == other.developmentGoalCount && monitoringGoalCount == other.monitoringGoalCount && links == other.links && gitRepo == other.gitRepo && additionalProperties == other.additionalProperties /* spotless:on */
}
- private var hashCode: Int = 0
+ /* spotless:off */
+ private val hashCode: Int by lazy { Objects.hash(id, workspaceId, creatorId, name, dateCreated, dateUpdated, description, source, taskType, versionCount, inferencePipelineCount, goalCount, developmentGoalCount, monitoringGoalCount, links, gitRepo, additionalProperties) }
+ /* spotless:on */
- override fun hashCode(): Int {
- if (hashCode == 0) {
- hashCode = /* spotless:off */ Objects.hash(id, workspaceId, creatorId, name, dateCreated, dateUpdated, description, source, taskType, versionCount, inferencePipelineCount, goalCount, developmentGoalCount, monitoringGoalCount, links, gitRepo, additionalProperties) /* spotless:on */
- }
- return hashCode
- }
+ override fun hashCode(): Int = hashCode
override fun toString() =
"ProjectCreateResponse{id=$id, workspaceId=$workspaceId, creatorId=$creatorId, name=$name, dateCreated=$dateCreated, dateUpdated=$dateUpdated, description=$description, source=$source, taskType=$taskType, versionCount=$versionCount, inferencePipelineCount=$inferencePipelineCount, goalCount=$goalCount, developmentGoalCount=$developmentGoalCount, monitoringGoalCount=$monitoringGoalCount, links=$links, gitRepo=$gitRepo, additionalProperties=$additionalProperties}"
diff --git a/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/ProjectInferencePipelineCreateParams.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/ProjectInferencePipelineCreateParams.kt
index cc96492..a0d47c6 100644
--- a/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/ProjectInferencePipelineCreateParams.kt
+++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/ProjectInferencePipelineCreateParams.kt
@@ -131,17 +131,14 @@ constructor(
return true
}
- return /* spotless:off */ other is ProjectInferencePipelineCreateBody && this.description == other.description && this.name == other.name && this.additionalProperties == other.additionalProperties /* spotless:on */
+ return /* spotless:off */ other is ProjectInferencePipelineCreateBody && description == other.description && name == other.name && additionalProperties == other.additionalProperties /* spotless:on */
}
- private var hashCode: Int = 0
+ /* spotless:off */
+ private val hashCode: Int by lazy { Objects.hash(description, name, additionalProperties) }
+ /* spotless:on */
- override fun hashCode(): Int {
- if (hashCode == 0) {
- hashCode = /* spotless:off */ Objects.hash(description, name, additionalProperties) /* spotless:on */
- }
- return hashCode
- }
+ override fun hashCode(): Int = hashCode
override fun toString() =
"ProjectInferencePipelineCreateBody{description=$description, name=$name, additionalProperties=$additionalProperties}"
@@ -158,12 +155,10 @@ constructor(
return true
}
- return /* spotless:off */ other is ProjectInferencePipelineCreateParams && this.projectId == other.projectId && this.description == other.description && this.name == other.name && this.additionalHeaders == other.additionalHeaders && this.additionalQueryParams == other.additionalQueryParams && this.additionalBodyProperties == other.additionalBodyProperties /* spotless:on */
+ return /* spotless:off */ other is ProjectInferencePipelineCreateParams && projectId == other.projectId && description == other.description && name == other.name && additionalHeaders == other.additionalHeaders && additionalQueryParams == other.additionalQueryParams && additionalBodyProperties == other.additionalBodyProperties /* spotless:on */
}
- override fun hashCode(): Int {
- return /* spotless:off */ Objects.hash(projectId, description, name, additionalHeaders, additionalQueryParams, additionalBodyProperties) /* spotless:on */
- }
+ override fun hashCode(): Int = /* spotless:off */ Objects.hash(projectId, description, name, additionalHeaders, additionalQueryParams, additionalBodyProperties) /* spotless:on */
override fun toString() =
"ProjectInferencePipelineCreateParams{projectId=$projectId, description=$description, name=$name, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams, additionalBodyProperties=$additionalBodyProperties}"
@@ -396,17 +391,14 @@ constructor(
return true
}
- return /* spotless:off */ other is Links && this.app == other.app && this.additionalProperties == other.additionalProperties /* spotless:on */
+ return /* spotless:off */ other is Links && app == other.app && additionalProperties == other.additionalProperties /* spotless:on */
}
- private var hashCode: Int = 0
+ /* spotless:off */
+ private val hashCode: Int by lazy { Objects.hash(app, additionalProperties) }
+ /* spotless:on */
- override fun hashCode(): Int {
- if (hashCode == 0) {
- hashCode = /* spotless:off */ Objects.hash(app, additionalProperties) /* spotless:on */
- }
- return hashCode
- }
+ override fun hashCode(): Int = hashCode
override fun toString() = "Links{app=$app, additionalProperties=$additionalProperties}"
}
@@ -424,7 +416,7 @@ constructor(
return true
}
- return /* spotless:off */ other is Status && this.value == other.value /* spotless:on */
+ return /* spotless:off */ other is Status && value == other.value /* spotless:on */
}
override fun hashCode() = value.hashCode()
diff --git a/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/ProjectInferencePipelineCreateResponse.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/ProjectInferencePipelineCreateResponse.kt
index 55d61de..0ff2530 100644
--- a/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/ProjectInferencePipelineCreateResponse.kt
+++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/ProjectInferencePipelineCreateResponse.kt
@@ -459,17 +459,14 @@ private constructor(
return true
}
- return /* spotless:off */ other is Links && this.app == other.app && this.additionalProperties == other.additionalProperties /* spotless:on */
+ return /* spotless:off */ other is Links && app == other.app && additionalProperties == other.additionalProperties /* spotless:on */
}
- private var hashCode: Int = 0
+ /* spotless:off */
+ private val hashCode: Int by lazy { Objects.hash(app, additionalProperties) }
+ /* spotless:on */
- override fun hashCode(): Int {
- if (hashCode == 0) {
- hashCode = /* spotless:off */ Objects.hash(app, additionalProperties) /* spotless:on */
- }
- return hashCode
- }
+ override fun hashCode(): Int = hashCode
override fun toString() = "Links{app=$app, additionalProperties=$additionalProperties}"
}
@@ -487,7 +484,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is Status && this.value == other.value /* spotless:on */
+ return /* spotless:off */ other is Status && value == other.value /* spotless:on */
}
override fun hashCode() = value.hashCode()
@@ -560,17 +557,14 @@ private constructor(
return true
}
- return /* spotless:off */ other is ProjectInferencePipelineCreateResponse && this.id == other.id && this.projectId == other.projectId && this.name == other.name && this.dateCreated == other.dateCreated && this.dateUpdated == other.dateUpdated && this.dateLastSampleReceived == other.dateLastSampleReceived && this.description == other.description && this.dateLastEvaluated == other.dateLastEvaluated && this.dateOfNextEvaluation == other.dateOfNextEvaluation && this.passingGoalCount == other.passingGoalCount && this.failingGoalCount == other.failingGoalCount && this.totalGoalCount == other.totalGoalCount && this.status == other.status && this.statusMessage == other.statusMessage && this.links == other.links && this.additionalProperties == other.additionalProperties /* spotless:on */
+ return /* spotless:off */ other is ProjectInferencePipelineCreateResponse && id == other.id && projectId == other.projectId && name == other.name && dateCreated == other.dateCreated && dateUpdated == other.dateUpdated && dateLastSampleReceived == other.dateLastSampleReceived && description == other.description && dateLastEvaluated == other.dateLastEvaluated && dateOfNextEvaluation == other.dateOfNextEvaluation && passingGoalCount == other.passingGoalCount && failingGoalCount == other.failingGoalCount && totalGoalCount == other.totalGoalCount && status == other.status && statusMessage == other.statusMessage && links == other.links && additionalProperties == other.additionalProperties /* spotless:on */
}
- private var hashCode: Int = 0
+ /* spotless:off */
+ private val hashCode: Int by lazy { Objects.hash(id, projectId, name, dateCreated, dateUpdated, dateLastSampleReceived, description, dateLastEvaluated, dateOfNextEvaluation, passingGoalCount, failingGoalCount, totalGoalCount, status, statusMessage, links, additionalProperties) }
+ /* spotless:on */
- override fun hashCode(): Int {
- if (hashCode == 0) {
- hashCode = /* spotless:off */ Objects.hash(id, projectId, name, dateCreated, dateUpdated, dateLastSampleReceived, description, dateLastEvaluated, dateOfNextEvaluation, passingGoalCount, failingGoalCount, totalGoalCount, status, statusMessage, links, additionalProperties) /* spotless:on */
- }
- return hashCode
- }
+ override fun hashCode(): Int = hashCode
override fun toString() =
"ProjectInferencePipelineCreateResponse{id=$id, projectId=$projectId, name=$name, dateCreated=$dateCreated, dateUpdated=$dateUpdated, dateLastSampleReceived=$dateLastSampleReceived, description=$description, dateLastEvaluated=$dateLastEvaluated, dateOfNextEvaluation=$dateOfNextEvaluation, passingGoalCount=$passingGoalCount, failingGoalCount=$failingGoalCount, totalGoalCount=$totalGoalCount, status=$status, statusMessage=$statusMessage, links=$links, additionalProperties=$additionalProperties}"
diff --git a/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/ProjectInferencePipelineListParams.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/ProjectInferencePipelineListParams.kt
index a31fa56..52fa03f 100644
--- a/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/ProjectInferencePipelineListParams.kt
+++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/ProjectInferencePipelineListParams.kt
@@ -55,12 +55,10 @@ constructor(
return true
}
- return /* spotless:off */ other is ProjectInferencePipelineListParams && this.projectId == other.projectId && this.name == other.name && this.page == other.page && this.perPage == other.perPage && this.additionalHeaders == other.additionalHeaders && this.additionalQueryParams == other.additionalQueryParams /* spotless:on */
+ return /* spotless:off */ other is ProjectInferencePipelineListParams && projectId == other.projectId && name == other.name && page == other.page && perPage == other.perPage && additionalHeaders == other.additionalHeaders && additionalQueryParams == other.additionalQueryParams /* spotless:on */
}
- override fun hashCode(): Int {
- return /* spotless:off */ Objects.hash(projectId, name, page, perPage, additionalHeaders, additionalQueryParams) /* spotless:on */
- }
+ override fun hashCode(): Int = /* spotless:off */ Objects.hash(projectId, name, page, perPage, additionalHeaders, additionalQueryParams) /* spotless:on */
override fun toString() =
"ProjectInferencePipelineListParams{projectId=$projectId, name=$name, page=$page, perPage=$perPage, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams}"
diff --git a/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/ProjectInferencePipelineListResponse.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/ProjectInferencePipelineListResponse.kt
index 7198d6b..daac734 100644
--- a/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/ProjectInferencePipelineListResponse.kt
+++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/ProjectInferencePipelineListResponse.kt
@@ -535,17 +535,14 @@ private constructor(
return true
}
- return /* spotless:off */ other is Links && this.app == other.app && this.additionalProperties == other.additionalProperties /* spotless:on */
+ return /* spotless:off */ other is Links && app == other.app && additionalProperties == other.additionalProperties /* spotless:on */
}
- private var hashCode: Int = 0
+ /* spotless:off */
+ private val hashCode: Int by lazy { Objects.hash(app, additionalProperties) }
+ /* spotless:on */
- override fun hashCode(): Int {
- if (hashCode == 0) {
- hashCode = /* spotless:off */ Objects.hash(app, additionalProperties) /* spotless:on */
- }
- return hashCode
- }
+ override fun hashCode(): Int = hashCode
override fun toString() = "Links{app=$app, additionalProperties=$additionalProperties}"
}
@@ -563,7 +560,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is Status && this.value == other.value /* spotless:on */
+ return /* spotless:off */ other is Status && value == other.value /* spotless:on */
}
override fun hashCode() = value.hashCode()
@@ -636,17 +633,14 @@ private constructor(
return true
}
- return /* spotless:off */ other is Item && this.id == other.id && this.projectId == other.projectId && this.name == other.name && this.dateCreated == other.dateCreated && this.dateUpdated == other.dateUpdated && this.dateLastSampleReceived == other.dateLastSampleReceived && this.description == other.description && this.dateLastEvaluated == other.dateLastEvaluated && this.dateOfNextEvaluation == other.dateOfNextEvaluation && this.passingGoalCount == other.passingGoalCount && this.failingGoalCount == other.failingGoalCount && this.totalGoalCount == other.totalGoalCount && this.status == other.status && this.statusMessage == other.statusMessage && this.links == other.links && this.additionalProperties == other.additionalProperties /* spotless:on */
+ return /* spotless:off */ other is Item && id == other.id && projectId == other.projectId && name == other.name && dateCreated == other.dateCreated && dateUpdated == other.dateUpdated && dateLastSampleReceived == other.dateLastSampleReceived && description == other.description && dateLastEvaluated == other.dateLastEvaluated && dateOfNextEvaluation == other.dateOfNextEvaluation && passingGoalCount == other.passingGoalCount && failingGoalCount == other.failingGoalCount && totalGoalCount == other.totalGoalCount && status == other.status && statusMessage == other.statusMessage && links == other.links && additionalProperties == other.additionalProperties /* spotless:on */
}
- private var hashCode: Int = 0
+ /* spotless:off */
+ private val hashCode: Int by lazy { Objects.hash(id, projectId, name, dateCreated, dateUpdated, dateLastSampleReceived, description, dateLastEvaluated, dateOfNextEvaluation, passingGoalCount, failingGoalCount, totalGoalCount, status, statusMessage, links, additionalProperties) }
+ /* spotless:on */
- override fun hashCode(): Int {
- if (hashCode == 0) {
- hashCode = /* spotless:off */ Objects.hash(id, projectId, name, dateCreated, dateUpdated, dateLastSampleReceived, description, dateLastEvaluated, dateOfNextEvaluation, passingGoalCount, failingGoalCount, totalGoalCount, status, statusMessage, links, additionalProperties) /* spotless:on */
- }
- return hashCode
- }
+ override fun hashCode(): Int = hashCode
override fun toString() =
"Item{id=$id, projectId=$projectId, name=$name, dateCreated=$dateCreated, dateUpdated=$dateUpdated, dateLastSampleReceived=$dateLastSampleReceived, description=$description, dateLastEvaluated=$dateLastEvaluated, dateOfNextEvaluation=$dateOfNextEvaluation, passingGoalCount=$passingGoalCount, failingGoalCount=$failingGoalCount, totalGoalCount=$totalGoalCount, status=$status, statusMessage=$statusMessage, links=$links, additionalProperties=$additionalProperties}"
@@ -657,17 +651,14 @@ private constructor(
return true
}
- return /* spotless:off */ other is ProjectInferencePipelineListResponse && this.items == other.items && this.additionalProperties == other.additionalProperties /* spotless:on */
+ return /* spotless:off */ other is ProjectInferencePipelineListResponse && items == other.items && additionalProperties == other.additionalProperties /* spotless:on */
}
- private var hashCode: Int = 0
+ /* spotless:off */
+ private val hashCode: Int by lazy { Objects.hash(items, additionalProperties) }
+ /* spotless:on */
- override fun hashCode(): Int {
- if (hashCode == 0) {
- hashCode = /* spotless:off */ Objects.hash(items, additionalProperties) /* spotless:on */
- }
- return hashCode
- }
+ override fun hashCode(): Int = hashCode
override fun toString() =
"ProjectInferencePipelineListResponse{items=$items, additionalProperties=$additionalProperties}"
diff --git a/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/ProjectListParams.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/ProjectListParams.kt
index 549ccf6..4e2ac99 100644
--- a/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/ProjectListParams.kt
+++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/ProjectListParams.kt
@@ -54,12 +54,10 @@ constructor(
return true
}
- return /* spotless:off */ other is ProjectListParams && this.name == other.name && this.page == other.page && this.perPage == other.perPage && this.taskType == other.taskType && this.additionalHeaders == other.additionalHeaders && this.additionalQueryParams == other.additionalQueryParams /* spotless:on */
+ return /* spotless:off */ other is ProjectListParams && name == other.name && page == other.page && perPage == other.perPage && taskType == other.taskType && additionalHeaders == other.additionalHeaders && additionalQueryParams == other.additionalQueryParams /* spotless:on */
}
- override fun hashCode(): Int {
- return /* spotless:off */ Objects.hash(name, page, perPage, taskType, additionalHeaders, additionalQueryParams) /* spotless:on */
- }
+ override fun hashCode(): Int = /* spotless:off */ Objects.hash(name, page, perPage, taskType, additionalHeaders, additionalQueryParams) /* spotless:on */
override fun toString() =
"ProjectListParams{name=$name, page=$page, perPage=$perPage, taskType=$taskType, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams}"
@@ -225,7 +223,7 @@ constructor(
return true
}
- return /* spotless:off */ other is TaskType && this.value == other.value /* spotless:on */
+ return /* spotless:off */ other is TaskType && value == other.value /* spotless:on */
}
override fun hashCode() = value.hashCode()
diff --git a/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/ProjectListResponse.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/ProjectListResponse.kt
index 51765d9..1876dfc 100644
--- a/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/ProjectListResponse.kt
+++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/ProjectListResponse.kt
@@ -542,17 +542,14 @@ private constructor(
return true
}
- return /* spotless:off */ other is Links && this.app == other.app && this.additionalProperties == other.additionalProperties /* spotless:on */
+ return /* spotless:off */ other is Links && app == other.app && additionalProperties == other.additionalProperties /* spotless:on */
}
- private var hashCode: Int = 0
+ /* spotless:off */
+ private val hashCode: Int by lazy { Objects.hash(app, additionalProperties) }
+ /* spotless:on */
- override fun hashCode(): Int {
- if (hashCode == 0) {
- hashCode = /* spotless:off */ Objects.hash(app, additionalProperties) /* spotless:on */
- }
- return hashCode
- }
+ override fun hashCode(): Int = hashCode
override fun toString() = "Links{app=$app, additionalProperties=$additionalProperties}"
}
@@ -570,7 +567,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is Source && this.value == other.value /* spotless:on */
+ return /* spotless:off */ other is Source && value == other.value /* spotless:on */
}
override fun hashCode() = value.hashCode()
@@ -633,7 +630,7 @@ private constructor(
return true
}
- return /* spotless:off */ other is TaskType && this.value == other.value /* spotless:on */
+ return /* spotless:off */ other is TaskType && value == other.value /* spotless:on */
}
override fun hashCode() = value.hashCode()
@@ -939,17 +936,14 @@ private constructor(
return true
}
- return /* spotless:off */ other is GitRepo && this.id == other.id && this.gitId == other.gitId && this.dateConnected == other.dateConnected && this.dateUpdated == other.dateUpdated && this.branch == other.branch && this.name == other.name && this.private_ == other.private_ && this.slug == other.slug && this.url == other.url && this.rootDir == other.rootDir && this.projectId == other.projectId && this.gitAccountId == other.gitAccountId && this.additionalProperties == other.additionalProperties /* spotless:on */
+ return /* spotless:off */ other is GitRepo && id == other.id && gitId == other.gitId && dateConnected == other.dateConnected && dateUpdated == other.dateUpdated && branch == other.branch && name == other.name && private_ == other.private_ && slug == other.slug && url == other.url && rootDir == other.rootDir && projectId == other.projectId && gitAccountId == other.gitAccountId && additionalProperties == other.additionalProperties /* spotless:on */
}
- private var hashCode: Int = 0
+ /* spotless:off */
+ private val hashCode: Int by lazy { Objects.hash(id, gitId, dateConnected, dateUpdated, branch, name, private_, slug, url, rootDir, projectId, gitAccountId, additionalProperties) }
+ /* spotless:on */
- override fun hashCode(): Int {
- if (hashCode == 0) {
- hashCode = /* spotless:off */ Objects.hash(id, gitId, dateConnected, dateUpdated, branch, name, private_, slug, url, rootDir, projectId, gitAccountId, additionalProperties) /* spotless:on */
- }
- return hashCode
- }
+ override fun hashCode(): Int = hashCode
override fun toString() =
"GitRepo{id=$id, gitId=$gitId, dateConnected=$dateConnected, dateUpdated=$dateUpdated, branch=$branch, name=$name, private_=$private_, slug=$slug, url=$url, rootDir=$rootDir, projectId=$projectId, gitAccountId=$gitAccountId, additionalProperties=$additionalProperties}"
@@ -960,17 +954,14 @@ private constructor(
return true
}
- return /* spotless:off */ other is Item && this.id == other.id && this.workspaceId == other.workspaceId && this.creatorId == other.creatorId && this.name == other.name && this.dateCreated == other.dateCreated && this.dateUpdated == other.dateUpdated && this.description == other.description && this.source == other.source && this.taskType == other.taskType && this.versionCount == other.versionCount && this.inferencePipelineCount == other.inferencePipelineCount && this.goalCount == other.goalCount && this.developmentGoalCount == other.developmentGoalCount && this.monitoringGoalCount == other.monitoringGoalCount && this.links == other.links && this.gitRepo == other.gitRepo && this.additionalProperties == other.additionalProperties /* spotless:on */
+ return /* spotless:off */ other is Item && id == other.id && workspaceId == other.workspaceId && creatorId == other.creatorId && name == other.name && dateCreated == other.dateCreated && dateUpdated == other.dateUpdated && description == other.description && source == other.source && taskType == other.taskType && versionCount == other.versionCount && inferencePipelineCount == other.inferencePipelineCount && goalCount == other.goalCount && developmentGoalCount == other.developmentGoalCount && monitoringGoalCount == other.monitoringGoalCount && links == other.links && gitRepo == other.gitRepo && additionalProperties == other.additionalProperties /* spotless:on */
}
- private var hashCode: Int = 0
+ /* spotless:off */
+ private val hashCode: Int by lazy { Objects.hash(id, workspaceId, creatorId, name, dateCreated, dateUpdated, description, source, taskType, versionCount, inferencePipelineCount, goalCount, developmentGoalCount, monitoringGoalCount, links, gitRepo, additionalProperties) }
+ /* spotless:on */
- override fun hashCode(): Int {
- if (hashCode == 0) {
- hashCode = /* spotless:off */ Objects.hash(id, workspaceId, creatorId, name, dateCreated, dateUpdated, description, source, taskType, versionCount, inferencePipelineCount, goalCount, developmentGoalCount, monitoringGoalCount, links, gitRepo, additionalProperties) /* spotless:on */
- }
- return hashCode
- }
+ override fun hashCode(): Int = hashCode
override fun toString() =
"Item{id=$id, workspaceId=$workspaceId, creatorId=$creatorId, name=$name, dateCreated=$dateCreated, dateUpdated=$dateUpdated, description=$description, source=$source, taskType=$taskType, versionCount=$versionCount, inferencePipelineCount=$inferencePipelineCount, goalCount=$goalCount, developmentGoalCount=$developmentGoalCount, monitoringGoalCount=$monitoringGoalCount, links=$links, gitRepo=$gitRepo, additionalProperties=$additionalProperties}"
@@ -981,17 +972,14 @@ private constructor(
return true
}
- return /* spotless:off */ other is ProjectListResponse && this.items == other.items && this.additionalProperties == other.additionalProperties /* spotless:on */
+ return /* spotless:off */ other is ProjectListResponse && items == other.items && additionalProperties == other.additionalProperties /* spotless:on */
}
- private var hashCode: Int = 0
+ /* spotless:off */
+ private val hashCode: Int by lazy { Objects.hash(items, additionalProperties) }
+ /* spotless:on */
- override fun hashCode(): Int {
- if (hashCode == 0) {
- hashCode = /* spotless:off */ Objects.hash(items, additionalProperties) /* spotless:on */
- }
- return hashCode
- }
+ override fun hashCode(): Int = hashCode
override fun toString() =
"ProjectListResponse{items=$items, additionalProperties=$additionalProperties}"
diff --git a/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/StoragePresignedUrlCreateParams.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/StoragePresignedUrlCreateParams.kt
index 942acb5..a006bab 100644
--- a/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/StoragePresignedUrlCreateParams.kt
+++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/StoragePresignedUrlCreateParams.kt
@@ -47,12 +47,10 @@ constructor(
return true
}
- return /* spotless:off */ other is StoragePresignedUrlCreateParams && this.objectName == other.objectName && this.additionalHeaders == other.additionalHeaders && this.additionalQueryParams == other.additionalQueryParams && this.additionalBodyProperties == other.additionalBodyProperties /* spotless:on */
+ return /* spotless:off */ other is StoragePresignedUrlCreateParams && objectName == other.objectName && additionalHeaders == other.additionalHeaders && additionalQueryParams == other.additionalQueryParams && additionalBodyProperties == other.additionalBodyProperties /* spotless:on */
}
- override fun hashCode(): Int {
- return /* spotless:off */ Objects.hash(objectName, additionalHeaders, additionalQueryParams, additionalBodyProperties) /* spotless:on */
- }
+ override fun hashCode(): Int = /* spotless:off */ Objects.hash(objectName, additionalHeaders, additionalQueryParams, additionalBodyProperties) /* spotless:on */
override fun toString() =
"StoragePresignedUrlCreateParams{objectName=$objectName, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams, additionalBodyProperties=$additionalBodyProperties}"
diff --git a/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/StoragePresignedUrlCreateResponse.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/StoragePresignedUrlCreateResponse.kt
index 9806bbe..bfbca98 100644
--- a/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/StoragePresignedUrlCreateResponse.kt
+++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/StoragePresignedUrlCreateResponse.kt
@@ -125,17 +125,14 @@ private constructor(
return true
}
- return /* spotless:off */ other is StoragePresignedUrlCreateResponse && this.url == other.url && this.fields == other.fields && this.storageUri == other.storageUri && this.additionalProperties == other.additionalProperties /* spotless:on */
+ return /* spotless:off */ other is StoragePresignedUrlCreateResponse && url == other.url && fields == other.fields && storageUri == other.storageUri && additionalProperties == other.additionalProperties /* spotless:on */
}
- private var hashCode: Int = 0
+ /* spotless:off */
+ private val hashCode: Int by lazy { Objects.hash(url, fields, storageUri, additionalProperties) }
+ /* spotless:on */
- override fun hashCode(): Int {
- if (hashCode == 0) {
- hashCode = /* spotless:off */ Objects.hash(url, fields, storageUri, additionalProperties) /* spotless:on */
- }
- return hashCode
- }
+ override fun hashCode(): Int = hashCode
override fun toString() =
"StoragePresignedUrlCreateResponse{url=$url, fields=$fields, storageUri=$storageUri, additionalProperties=$additionalProperties}"