Skip to content

Commit 5177422

Browse files
chore(internal): codegen related update
1 parent 244ec60 commit 5177422

32 files changed

+381
-154
lines changed

scrapegraphai-java-core/src/main/kotlin/com/scrapegraphai/api/core/Timeout.kt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,14 @@ private constructor(
157157
return true
158158
}
159159

160-
return /* spotless:off */ other is Timeout && connect == other.connect && read == other.read && write == other.write && request == other.request /* spotless:on */
160+
return other is Timeout &&
161+
connect == other.connect &&
162+
read == other.read &&
163+
write == other.write &&
164+
request == other.request
161165
}
162166

163-
override fun hashCode(): Int = /* spotless:off */ Objects.hash(connect, read, write, request) /* spotless:on */
167+
override fun hashCode(): Int = Objects.hash(connect, read, write, request)
164168

165169
override fun toString() =
166170
"Timeout{connect=$connect, read=$read, write=$write, request=$request}"

scrapegraphai-java-core/src/main/kotlin/com/scrapegraphai/api/models/crawl/CrawlRetrieveResultsParams.kt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,10 +182,13 @@ private constructor(
182182
return true
183183
}
184184

185-
return /* spotless:off */ other is CrawlRetrieveResultsParams && taskId == other.taskId && additionalHeaders == other.additionalHeaders && additionalQueryParams == other.additionalQueryParams /* spotless:on */
185+
return other is CrawlRetrieveResultsParams &&
186+
taskId == other.taskId &&
187+
additionalHeaders == other.additionalHeaders &&
188+
additionalQueryParams == other.additionalQueryParams
186189
}
187190

188-
override fun hashCode(): Int = /* spotless:off */ Objects.hash(taskId, additionalHeaders, additionalQueryParams) /* spotless:on */
191+
override fun hashCode(): Int = Objects.hash(taskId, additionalHeaders, additionalQueryParams)
189192

190193
override fun toString() =
191194
"CrawlRetrieveResultsParams{taskId=$taskId, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams}"

scrapegraphai-java-core/src/main/kotlin/com/scrapegraphai/api/models/crawl/CrawlRetrieveResultsResponse.kt

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -342,10 +342,10 @@ private constructor(
342342
return true
343343
}
344344

345-
return /* spotless:off */ other is Result && jsonValue == other.jsonValue && string == other.string /* spotless:on */
345+
return other is Result && jsonValue == other.jsonValue && string == other.string
346346
}
347347

348-
override fun hashCode(): Int = /* spotless:off */ Objects.hash(jsonValue, string) /* spotless:on */
348+
override fun hashCode(): Int = Objects.hash(jsonValue, string)
349349

350350
override fun toString(): String =
351351
when {
@@ -578,7 +578,7 @@ private constructor(
578578
return true
579579
}
580580

581-
return /* spotless:off */ other is Status && value == other.value /* spotless:on */
581+
return other is Status && value == other.value
582582
}
583583

584584
override fun hashCode() = value.hashCode()
@@ -591,12 +591,17 @@ private constructor(
591591
return true
592592
}
593593

594-
return /* spotless:off */ other is CrawlRetrieveResultsResponse && result == other.result && status == other.status && taskId == other.taskId && traceback == other.traceback && additionalProperties == other.additionalProperties /* spotless:on */
594+
return other is CrawlRetrieveResultsResponse &&
595+
result == other.result &&
596+
status == other.status &&
597+
taskId == other.taskId &&
598+
traceback == other.traceback &&
599+
additionalProperties == other.additionalProperties
595600
}
596601

597-
/* spotless:off */
598-
private val hashCode: Int by lazy { Objects.hash(result, status, taskId, traceback, additionalProperties) }
599-
/* spotless:on */
602+
private val hashCode: Int by lazy {
603+
Objects.hash(result, status, taskId, traceback, additionalProperties)
604+
}
600605

601606
override fun hashCode(): Int = hashCode
602607

scrapegraphai-java-core/src/main/kotlin/com/scrapegraphai/api/models/crawl/CrawlStartParams.kt

Lines changed: 37 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -865,12 +865,33 @@ private constructor(
865865
return true
866866
}
867867

868-
return /* spotless:off */ other is Body && url == other.url && depth == other.depth && extractionMode == other.extractionMode && maxPages == other.maxPages && prompt == other.prompt && renderHeavyJs == other.renderHeavyJs && rules == other.rules && schema == other.schema && sitemap == other.sitemap && additionalProperties == other.additionalProperties /* spotless:on */
868+
return other is Body &&
869+
url == other.url &&
870+
depth == other.depth &&
871+
extractionMode == other.extractionMode &&
872+
maxPages == other.maxPages &&
873+
prompt == other.prompt &&
874+
renderHeavyJs == other.renderHeavyJs &&
875+
rules == other.rules &&
876+
schema == other.schema &&
877+
sitemap == other.sitemap &&
878+
additionalProperties == other.additionalProperties
869879
}
870880

871-
/* spotless:off */
872-
private val hashCode: Int by lazy { Objects.hash(url, depth, extractionMode, maxPages, prompt, renderHeavyJs, rules, schema, sitemap, additionalProperties) }
873-
/* spotless:on */
881+
private val hashCode: Int by lazy {
882+
Objects.hash(
883+
url,
884+
depth,
885+
extractionMode,
886+
maxPages,
887+
prompt,
888+
renderHeavyJs,
889+
rules,
890+
schema,
891+
sitemap,
892+
additionalProperties,
893+
)
894+
}
874895

875896
override fun hashCode(): Int = hashCode
876897

@@ -1065,12 +1086,15 @@ private constructor(
10651086
return true
10661087
}
10671088

1068-
return /* spotless:off */ other is Rules && exclude == other.exclude && sameDomain == other.sameDomain && additionalProperties == other.additionalProperties /* spotless:on */
1089+
return other is Rules &&
1090+
exclude == other.exclude &&
1091+
sameDomain == other.sameDomain &&
1092+
additionalProperties == other.additionalProperties
10691093
}
10701094

1071-
/* spotless:off */
1072-
private val hashCode: Int by lazy { Objects.hash(exclude, sameDomain, additionalProperties) }
1073-
/* spotless:on */
1095+
private val hashCode: Int by lazy {
1096+
Objects.hash(exclude, sameDomain, additionalProperties)
1097+
}
10741098

10751099
override fun hashCode(): Int = hashCode
10761100

@@ -1083,10 +1107,13 @@ private constructor(
10831107
return true
10841108
}
10851109

1086-
return /* spotless:off */ other is CrawlStartParams && body == other.body && additionalHeaders == other.additionalHeaders && additionalQueryParams == other.additionalQueryParams /* spotless:on */
1110+
return other is CrawlStartParams &&
1111+
body == other.body &&
1112+
additionalHeaders == other.additionalHeaders &&
1113+
additionalQueryParams == other.additionalQueryParams
10871114
}
10881115

1089-
override fun hashCode(): Int = /* spotless:off */ Objects.hash(body, additionalHeaders, additionalQueryParams) /* spotless:on */
1116+
override fun hashCode(): Int = Objects.hash(body, additionalHeaders, additionalQueryParams)
10901117

10911118
override fun toString() =
10921119
"CrawlStartParams{body=$body, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams}"

scrapegraphai-java-core/src/main/kotlin/com/scrapegraphai/api/models/crawl/CrawlStartResponse.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,12 +141,12 @@ private constructor(
141141
return true
142142
}
143143

144-
return /* spotless:off */ other is CrawlStartResponse && taskId == other.taskId && additionalProperties == other.additionalProperties /* spotless:on */
144+
return other is CrawlStartResponse &&
145+
taskId == other.taskId &&
146+
additionalProperties == other.additionalProperties
145147
}
146148

147-
/* spotless:off */
148149
private val hashCode: Int by lazy { Objects.hash(taskId, additionalProperties) }
149-
/* spotless:on */
150150

151151
override fun hashCode(): Int = hashCode
152152

scrapegraphai-java-core/src/main/kotlin/com/scrapegraphai/api/models/credits/CreditRetrieveParams.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,12 @@ private constructor(
158158
return true
159159
}
160160

161-
return /* spotless:off */ other is CreditRetrieveParams && additionalHeaders == other.additionalHeaders && additionalQueryParams == other.additionalQueryParams /* spotless:on */
161+
return other is CreditRetrieveParams &&
162+
additionalHeaders == other.additionalHeaders &&
163+
additionalQueryParams == other.additionalQueryParams
162164
}
163165

164-
override fun hashCode(): Int = /* spotless:off */ Objects.hash(additionalHeaders, additionalQueryParams) /* spotless:on */
166+
override fun hashCode(): Int = Objects.hash(additionalHeaders, additionalQueryParams)
165167

166168
override fun toString() =
167169
"CreditRetrieveParams{additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams}"

scrapegraphai-java-core/src/main/kotlin/com/scrapegraphai/api/models/credits/CreditRetrieveResponse.kt

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -197,12 +197,15 @@ private constructor(
197197
return true
198198
}
199199

200-
return /* spotless:off */ other is CreditRetrieveResponse && remainingCredits == other.remainingCredits && totalCreditsUsed == other.totalCreditsUsed && additionalProperties == other.additionalProperties /* spotless:on */
200+
return other is CreditRetrieveResponse &&
201+
remainingCredits == other.remainingCredits &&
202+
totalCreditsUsed == other.totalCreditsUsed &&
203+
additionalProperties == other.additionalProperties
201204
}
202205

203-
/* spotless:off */
204-
private val hashCode: Int by lazy { Objects.hash(remainingCredits, totalCreditsUsed, additionalProperties) }
205-
/* spotless:on */
206+
private val hashCode: Int by lazy {
207+
Objects.hash(remainingCredits, totalCreditsUsed, additionalProperties)
208+
}
206209

207210
override fun hashCode(): Int = hashCode
208211

scrapegraphai-java-core/src/main/kotlin/com/scrapegraphai/api/models/feedback/FeedbackSubmitParams.kt

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -537,12 +537,16 @@ private constructor(
537537
return true
538538
}
539539

540-
return /* spotless:off */ other is Body && rating == other.rating && requestId == other.requestId && feedbackText == other.feedbackText && additionalProperties == other.additionalProperties /* spotless:on */
540+
return other is Body &&
541+
rating == other.rating &&
542+
requestId == other.requestId &&
543+
feedbackText == other.feedbackText &&
544+
additionalProperties == other.additionalProperties
541545
}
542546

543-
/* spotless:off */
544-
private val hashCode: Int by lazy { Objects.hash(rating, requestId, feedbackText, additionalProperties) }
545-
/* spotless:on */
547+
private val hashCode: Int by lazy {
548+
Objects.hash(rating, requestId, feedbackText, additionalProperties)
549+
}
546550

547551
override fun hashCode(): Int = hashCode
548552

@@ -555,10 +559,13 @@ private constructor(
555559
return true
556560
}
557561

558-
return /* spotless:off */ other is FeedbackSubmitParams && body == other.body && additionalHeaders == other.additionalHeaders && additionalQueryParams == other.additionalQueryParams /* spotless:on */
562+
return other is FeedbackSubmitParams &&
563+
body == other.body &&
564+
additionalHeaders == other.additionalHeaders &&
565+
additionalQueryParams == other.additionalQueryParams
559566
}
560567

561-
override fun hashCode(): Int = /* spotless:off */ Objects.hash(body, additionalHeaders, additionalQueryParams) /* spotless:on */
568+
override fun hashCode(): Int = Objects.hash(body, additionalHeaders, additionalQueryParams)
562569

563570
override fun toString() =
564571
"FeedbackSubmitParams{body=$body, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams}"

scrapegraphai-java-core/src/main/kotlin/com/scrapegraphai/api/models/feedback/FeedbackSubmitResponse.kt

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -248,12 +248,17 @@ private constructor(
248248
return true
249249
}
250250

251-
return /* spotless:off */ other is FeedbackSubmitResponse && feedbackId == other.feedbackId && feedbackTimestamp == other.feedbackTimestamp && message == other.message && requestId == other.requestId && additionalProperties == other.additionalProperties /* spotless:on */
251+
return other is FeedbackSubmitResponse &&
252+
feedbackId == other.feedbackId &&
253+
feedbackTimestamp == other.feedbackTimestamp &&
254+
message == other.message &&
255+
requestId == other.requestId &&
256+
additionalProperties == other.additionalProperties
252257
}
253258

254-
/* spotless:off */
255-
private val hashCode: Int by lazy { Objects.hash(feedbackId, feedbackTimestamp, message, requestId, additionalProperties) }
256-
/* spotless:on */
259+
private val hashCode: Int by lazy {
260+
Objects.hash(feedbackId, feedbackTimestamp, message, requestId, additionalProperties)
261+
}
257262

258263
override fun hashCode(): Int = hashCode
259264

scrapegraphai-java-core/src/main/kotlin/com/scrapegraphai/api/models/generateschema/GenerateSchemaCreateParams.kt

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -420,12 +420,15 @@ private constructor(
420420
return true
421421
}
422422

423-
return /* spotless:off */ other is Body && userPrompt == other.userPrompt && existingSchema == other.existingSchema && additionalProperties == other.additionalProperties /* spotless:on */
423+
return other is Body &&
424+
userPrompt == other.userPrompt &&
425+
existingSchema == other.existingSchema &&
426+
additionalProperties == other.additionalProperties
424427
}
425428

426-
/* spotless:off */
427-
private val hashCode: Int by lazy { Objects.hash(userPrompt, existingSchema, additionalProperties) }
428-
/* spotless:on */
429+
private val hashCode: Int by lazy {
430+
Objects.hash(userPrompt, existingSchema, additionalProperties)
431+
}
429432

430433
override fun hashCode(): Int = hashCode
431434

@@ -438,10 +441,13 @@ private constructor(
438441
return true
439442
}
440443

441-
return /* spotless:off */ other is GenerateSchemaCreateParams && body == other.body && additionalHeaders == other.additionalHeaders && additionalQueryParams == other.additionalQueryParams /* spotless:on */
444+
return other is GenerateSchemaCreateParams &&
445+
body == other.body &&
446+
additionalHeaders == other.additionalHeaders &&
447+
additionalQueryParams == other.additionalQueryParams
442448
}
443449

444-
override fun hashCode(): Int = /* spotless:off */ Objects.hash(body, additionalHeaders, additionalQueryParams) /* spotless:on */
450+
override fun hashCode(): Int = Objects.hash(body, additionalHeaders, additionalQueryParams)
445451

446452
override fun toString() =
447453
"GenerateSchemaCreateParams{body=$body, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams}"

0 commit comments

Comments
 (0)