Skip to content

Commit

Permalink
chore(internal): codegen related update (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Nov 21, 2024
1 parent 95066db commit 58407f3
Show file tree
Hide file tree
Showing 200 changed files with 2,096 additions and 3,418 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,6 @@ private constructor(
@JsonAnyGetter val additionalProperties: Map<String, JsonValue>,
) {

override fun equals(other: Any?): Boolean {
if (this === other) {
return true
}

return /* spotless:off */ other is BraintrustError && this.additionalProperties == other.additionalProperties /* spotless:on */
}

override fun hashCode(): Int {
return /* spotless:off */ Objects.hash(additionalProperties) /* spotless:on */
}

override fun toString() = "BraintrustError{additionalProperties=$additionalProperties}"

fun toBuilder() = Builder().from(this)

companion object {
Expand Down Expand Up @@ -68,4 +54,16 @@ private constructor(

fun build(): BraintrustError = BraintrustError(additionalProperties.toImmutable())
}

override fun equals(other: Any?): Boolean {
if (this === other) {
return true
}

return /* spotless:off */ other is BraintrustError && additionalProperties == other.additionalProperties /* spotless:on */
}

override fun hashCode(): Int = /* spotless:off */ Objects.hash(additionalProperties) /* spotless:on */

override fun toString() = "BraintrustError{additionalProperties=$additionalProperties}"
}
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ private constructor(
return true
}

return /* spotless:off */ other is ObjectType && this.value == other.value /* spotless:on */
return /* spotless:off */ other is ObjectType && value == other.value /* spotless:on */
}

override fun hashCode() = value.hashCode()
Expand Down Expand Up @@ -438,7 +438,7 @@ private constructor(
return true
}

return /* spotless:off */ other is Permission && this.value == other.value /* spotless:on */
return /* spotless:off */ other is Permission && value == other.value /* spotless:on */
}

override fun hashCode() = value.hashCode()
Expand Down Expand Up @@ -531,7 +531,7 @@ private constructor(
return true
}

return /* spotless:off */ other is RestrictObjectType && this.value == other.value /* spotless:on */
return /* spotless:off */ other is RestrictObjectType && value == other.value /* spotless:on */
}

override fun hashCode() = value.hashCode()
Expand Down Expand Up @@ -634,17 +634,14 @@ private constructor(
return true
}

return /* spotless:off */ other is Acl && this.id == other.id && this.objectType == other.objectType && this.objectId == other.objectId && this.userId == other.userId && this.groupId == other.groupId && this.permission == other.permission && this.restrictObjectType == other.restrictObjectType && this.roleId == other.roleId && this._objectOrgId == other._objectOrgId && this.created == other.created && this.additionalProperties == other.additionalProperties /* spotless:on */
return /* spotless:off */ other is Acl && id == other.id && objectType == other.objectType && objectId == other.objectId && userId == other.userId && groupId == other.groupId && permission == other.permission && restrictObjectType == other.restrictObjectType && roleId == other.roleId && _objectOrgId == other._objectOrgId && created == other.created && additionalProperties == other.additionalProperties /* spotless:on */
}

private var hashCode: Int = 0
/* spotless:off */
private val hashCode: Int by lazy { Objects.hash(id, objectType, objectId, userId, groupId, permission, restrictObjectType, roleId, _objectOrgId, created, additionalProperties) }
/* spotless:on */

override fun hashCode(): Int {
if (hashCode == 0) {
hashCode = /* spotless:off */ Objects.hash(id, objectType, objectId, userId, groupId, permission, restrictObjectType, roleId, _objectOrgId, created, additionalProperties) /* spotless:on */
}
return hashCode
}
override fun hashCode(): Int = hashCode

override fun toString() =
"Acl{id=$id, objectType=$objectType, objectId=$objectId, userId=$userId, groupId=$groupId, permission=$permission, restrictObjectType=$restrictObjectType, roleId=$roleId, _objectOrgId=$_objectOrgId, created=$created, additionalProperties=$additionalProperties}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,17 +155,14 @@ constructor(
return true
}

return /* spotless:off */ other is AclBatchUpdateBody && this.addAcls == other.addAcls && this.removeAcls == other.removeAcls && this.additionalProperties == other.additionalProperties /* spotless:on */
return /* spotless:off */ other is AclBatchUpdateBody && addAcls == other.addAcls && removeAcls == other.removeAcls && additionalProperties == other.additionalProperties /* spotless:on */
}

private var hashCode: Int = 0
/* spotless:off */
private val hashCode: Int by lazy { Objects.hash(addAcls, removeAcls, additionalProperties) }
/* spotless:on */

override fun hashCode(): Int {
if (hashCode == 0) {
hashCode = /* spotless:off */ Objects.hash(addAcls, removeAcls, additionalProperties) /* spotless:on */
}
return hashCode
}
override fun hashCode(): Int = hashCode

override fun toString() =
"AclBatchUpdateBody{addAcls=$addAcls, removeAcls=$removeAcls, additionalProperties=$additionalProperties}"
Expand All @@ -182,12 +179,10 @@ constructor(
return true
}

return /* spotless:off */ other is AclBatchUpdateParams && this.addAcls == other.addAcls && this.removeAcls == other.removeAcls && this.additionalHeaders == other.additionalHeaders && this.additionalQueryParams == other.additionalQueryParams && this.additionalBodyProperties == other.additionalBodyProperties /* spotless:on */
return /* spotless:off */ other is AclBatchUpdateParams && addAcls == other.addAcls && removeAcls == other.removeAcls && additionalHeaders == other.additionalHeaders && additionalQueryParams == other.additionalQueryParams && additionalBodyProperties == other.additionalBodyProperties /* spotless:on */
}

override fun hashCode(): Int {
return /* spotless:off */ Objects.hash(addAcls, removeAcls, additionalHeaders, additionalQueryParams, additionalBodyProperties) /* spotless:on */
}
override fun hashCode(): Int = /* spotless:off */ Objects.hash(addAcls, removeAcls, additionalHeaders, additionalQueryParams, additionalBodyProperties) /* spotless:on */

override fun toString() =
"AclBatchUpdateParams{addAcls=$addAcls, removeAcls=$removeAcls, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams, additionalBodyProperties=$additionalBodyProperties}"
Expand Down Expand Up @@ -572,7 +567,7 @@ constructor(
return true
}

return /* spotless:off */ other is ObjectType && this.value == other.value /* spotless:on */
return /* spotless:off */ other is ObjectType && value == other.value /* spotless:on */
}

override fun hashCode() = value.hashCode()
Expand Down Expand Up @@ -683,7 +678,7 @@ constructor(
return true
}

return /* spotless:off */ other is Permission && this.value == other.value /* spotless:on */
return /* spotless:off */ other is Permission && value == other.value /* spotless:on */
}

override fun hashCode() = value.hashCode()
Expand Down Expand Up @@ -776,7 +771,7 @@ constructor(
return true
}

return /* spotless:off */ other is RestrictObjectType && this.value == other.value /* spotless:on */
return /* spotless:off */ other is RestrictObjectType && value == other.value /* spotless:on */
}

override fun hashCode() = value.hashCode()
Expand Down Expand Up @@ -880,17 +875,14 @@ constructor(
return true
}

return /* spotless:off */ other is AddAcl && this.objectType == other.objectType && this.objectId == other.objectId && this.userId == other.userId && this.groupId == other.groupId && this.permission == other.permission && this.restrictObjectType == other.restrictObjectType && this.roleId == other.roleId && this.additionalProperties == other.additionalProperties /* spotless:on */
return /* spotless:off */ other is AddAcl && objectType == other.objectType && objectId == other.objectId && userId == other.userId && groupId == other.groupId && permission == other.permission && restrictObjectType == other.restrictObjectType && roleId == other.roleId && additionalProperties == other.additionalProperties /* spotless:on */
}

private var hashCode: Int = 0
/* spotless:off */
private val hashCode: Int by lazy { Objects.hash(objectType, objectId, userId, groupId, permission, restrictObjectType, roleId, additionalProperties) }
/* spotless:on */

override fun hashCode(): Int {
if (hashCode == 0) {
hashCode = /* spotless:off */ Objects.hash(objectType, objectId, userId, groupId, permission, restrictObjectType, roleId, additionalProperties) /* spotless:on */
}
return hashCode
}
override fun hashCode(): Int = hashCode

override fun toString() =
"AddAcl{objectType=$objectType, objectId=$objectId, userId=$userId, groupId=$groupId, permission=$permission, restrictObjectType=$restrictObjectType, roleId=$roleId, additionalProperties=$additionalProperties}"
Expand Down Expand Up @@ -1068,7 +1060,7 @@ constructor(
return true
}

return /* spotless:off */ other is ObjectType && this.value == other.value /* spotless:on */
return /* spotless:off */ other is ObjectType && value == other.value /* spotless:on */
}

override fun hashCode() = value.hashCode()
Expand Down Expand Up @@ -1179,7 +1171,7 @@ constructor(
return true
}

return /* spotless:off */ other is Permission && this.value == other.value /* spotless:on */
return /* spotless:off */ other is Permission && value == other.value /* spotless:on */
}

override fun hashCode() = value.hashCode()
Expand Down Expand Up @@ -1272,7 +1264,7 @@ constructor(
return true
}

return /* spotless:off */ other is RestrictObjectType && this.value == other.value /* spotless:on */
return /* spotless:off */ other is RestrictObjectType && value == other.value /* spotless:on */
}

override fun hashCode() = value.hashCode()
Expand Down Expand Up @@ -1376,17 +1368,14 @@ constructor(
return true
}

return /* spotless:off */ other is RemoveAcl && this.objectType == other.objectType && this.objectId == other.objectId && this.userId == other.userId && this.groupId == other.groupId && this.permission == other.permission && this.restrictObjectType == other.restrictObjectType && this.roleId == other.roleId && this.additionalProperties == other.additionalProperties /* spotless:on */
return /* spotless:off */ other is RemoveAcl && objectType == other.objectType && objectId == other.objectId && userId == other.userId && groupId == other.groupId && permission == other.permission && restrictObjectType == other.restrictObjectType && roleId == other.roleId && additionalProperties == other.additionalProperties /* spotless:on */
}

private var hashCode: Int = 0
/* spotless:off */
private val hashCode: Int by lazy { Objects.hash(objectType, objectId, userId, groupId, permission, restrictObjectType, roleId, additionalProperties) }
/* spotless:on */

override fun hashCode(): Int {
if (hashCode == 0) {
hashCode = /* spotless:off */ Objects.hash(objectType, objectId, userId, groupId, permission, restrictObjectType, roleId, additionalProperties) /* spotless:on */
}
return hashCode
}
override fun hashCode(): Int = hashCode

override fun toString() =
"RemoveAcl{objectType=$objectType, objectId=$objectId, userId=$userId, groupId=$groupId, permission=$permission, restrictObjectType=$restrictObjectType, roleId=$roleId, additionalProperties=$additionalProperties}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,17 +185,14 @@ private constructor(
return true
}

return /* spotless:off */ other is AclBatchUpdateResponse && this.addedAcls == other.addedAcls && this.removedAcls == other.removedAcls && this.additionalProperties == other.additionalProperties /* spotless:on */
return /* spotless:off */ other is AclBatchUpdateResponse && addedAcls == other.addedAcls && removedAcls == other.removedAcls && additionalProperties == other.additionalProperties /* spotless:on */
}

private var hashCode: Int = 0
/* spotless:off */
private val hashCode: Int by lazy { Objects.hash(addedAcls, removedAcls, additionalProperties) }
/* spotless:on */

override fun hashCode(): Int {
if (hashCode == 0) {
hashCode = /* spotless:off */ Objects.hash(addedAcls, removedAcls, additionalProperties) /* spotless:on */
}
return hashCode
}
override fun hashCode(): Int = hashCode

override fun toString() =
"AclBatchUpdateResponse{addedAcls=$addedAcls, removedAcls=$removedAcls, additionalProperties=$additionalProperties}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,17 +228,14 @@ constructor(
return true
}

return /* spotless:off */ other is AclCreateBody && this.objectId == other.objectId && this.objectType == other.objectType && this.groupId == other.groupId && this.permission == other.permission && this.restrictObjectType == other.restrictObjectType && this.roleId == other.roleId && this.userId == other.userId && this.additionalProperties == other.additionalProperties /* spotless:on */
return /* spotless:off */ other is AclCreateBody && objectId == other.objectId && objectType == other.objectType && groupId == other.groupId && permission == other.permission && restrictObjectType == other.restrictObjectType && roleId == other.roleId && userId == other.userId && additionalProperties == other.additionalProperties /* spotless:on */
}

private var hashCode: Int = 0
/* spotless:off */
private val hashCode: Int by lazy { Objects.hash(objectId, objectType, groupId, permission, restrictObjectType, roleId, userId, additionalProperties) }
/* spotless:on */

override fun hashCode(): Int {
if (hashCode == 0) {
hashCode = /* spotless:off */ Objects.hash(objectId, objectType, groupId, permission, restrictObjectType, roleId, userId, additionalProperties) /* spotless:on */
}
return hashCode
}
override fun hashCode(): Int = hashCode

override fun toString() =
"AclCreateBody{objectId=$objectId, objectType=$objectType, groupId=$groupId, permission=$permission, restrictObjectType=$restrictObjectType, roleId=$roleId, userId=$userId, additionalProperties=$additionalProperties}"
Expand All @@ -255,12 +252,10 @@ constructor(
return true
}

return /* spotless:off */ other is AclCreateParams && this.objectId == other.objectId && this.objectType == other.objectType && this.groupId == other.groupId && this.permission == other.permission && this.restrictObjectType == other.restrictObjectType && this.roleId == other.roleId && this.userId == other.userId && this.additionalHeaders == other.additionalHeaders && this.additionalQueryParams == other.additionalQueryParams && this.additionalBodyProperties == other.additionalBodyProperties /* spotless:on */
return /* spotless:off */ other is AclCreateParams && objectId == other.objectId && objectType == other.objectType && groupId == other.groupId && permission == other.permission && restrictObjectType == other.restrictObjectType && roleId == other.roleId && userId == other.userId && additionalHeaders == other.additionalHeaders && additionalQueryParams == other.additionalQueryParams && additionalBodyProperties == other.additionalBodyProperties /* spotless:on */
}

override fun hashCode(): Int {
return /* spotless:off */ Objects.hash(objectId, objectType, groupId, permission, restrictObjectType, roleId, userId, additionalHeaders, additionalQueryParams, additionalBodyProperties) /* spotless:on */
}
override fun hashCode(): Int = /* spotless:off */ Objects.hash(objectId, objectType, groupId, permission, restrictObjectType, roleId, userId, additionalHeaders, additionalQueryParams, additionalBodyProperties) /* spotless:on */

override fun toString() =
"AclCreateParams{objectId=$objectId, objectType=$objectType, groupId=$groupId, permission=$permission, restrictObjectType=$restrictObjectType, roleId=$roleId, userId=$userId, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams, additionalBodyProperties=$additionalBodyProperties}"
Expand Down Expand Up @@ -481,7 +476,7 @@ constructor(
return true
}

return /* spotless:off */ other is ObjectType && this.value == other.value /* spotless:on */
return /* spotless:off */ other is ObjectType && value == other.value /* spotless:on */
}

override fun hashCode() = value.hashCode()
Expand Down Expand Up @@ -592,7 +587,7 @@ constructor(
return true
}

return /* spotless:off */ other is Permission && this.value == other.value /* spotless:on */
return /* spotless:off */ other is Permission && value == other.value /* spotless:on */
}

override fun hashCode() = value.hashCode()
Expand Down Expand Up @@ -685,7 +680,7 @@ constructor(
return true
}

return /* spotless:off */ other is RestrictObjectType && this.value == other.value /* spotless:on */
return /* spotless:off */ other is RestrictObjectType && value == other.value /* spotless:on */
}

override fun hashCode() = value.hashCode()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,10 @@ constructor(
return true
}

return /* spotless:off */ other is AclDeleteParams && this.aclId == other.aclId && this.additionalHeaders == other.additionalHeaders && this.additionalQueryParams == other.additionalQueryParams && this.additionalBodyProperties == other.additionalBodyProperties /* spotless:on */
return /* spotless:off */ other is AclDeleteParams && aclId == other.aclId && additionalHeaders == other.additionalHeaders && additionalQueryParams == other.additionalQueryParams && additionalBodyProperties == other.additionalBodyProperties /* spotless:on */
}

override fun hashCode(): Int {
return /* spotless:off */ Objects.hash(aclId, additionalHeaders, additionalQueryParams, additionalBodyProperties) /* spotless:on */
}
override fun hashCode(): Int = /* spotless:off */ Objects.hash(aclId, additionalHeaders, additionalQueryParams, additionalBodyProperties) /* spotless:on */

override fun toString() =
"AclDeleteParams{aclId=$aclId, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams, additionalBodyProperties=$additionalBodyProperties}"
Expand Down
Loading

0 comments on commit 58407f3

Please sign in to comment.