@@ -36,6 +36,12 @@ private constructor(
3636
3737 fun repo (): Optional <String > = Optional .ofNullable(repo)
3838
39+ /* *
40+ * @throws LangChainInvalidDataException if the JSON field has an unexpected type (e.g. if the
41+ * server responded with an unexpected value).
42+ */
43+ fun description (): Optional <String > = body.description()
44+
3945 /* *
4046 * This arbitrary value can be deserialized into a custom type using the `convert` method:
4147 * ```java
@@ -61,6 +67,13 @@ private constructor(
6167 */
6268 fun _skipWebhooks (): JsonValue = body._skipWebhooks ()
6369
70+ /* *
71+ * Returns the raw JSON value of [description].
72+ *
73+ * Unlike [description], this method doesn't throw if the JSON field has an unexpected type.
74+ */
75+ fun _description (): JsonField <String > = body._description ()
76+
6477 /* *
6578 * Returns the raw JSON value of [parentCommit].
6679 *
@@ -121,12 +134,24 @@ private constructor(
121134 *
122135 * This is generally only useful if you are already constructing the body separately.
123136 * Otherwise, it's more convenient to use the top-level setters instead:
137+ * - [description]
124138 * - [manifest]
125139 * - [parentCommit]
126140 * - [skipWebhooks]
127141 */
128142 fun body (body : Body ) = apply { this .body = body.toBuilder() }
129143
144+ fun description (description : String ) = apply { body.description(description) }
145+
146+ /* *
147+ * Sets [Builder.description] to an arbitrary JSON value.
148+ *
149+ * You should usually call [Builder.description] with a well-typed [String] value instead.
150+ * This method is primarily for setting the field to an undocumented or not yet supported
151+ * value.
152+ */
153+ fun description (description : JsonField <String >) = apply { body.description(description) }
154+
130155 fun manifest (manifest : JsonValue ) = apply { body.manifest(manifest) }
131156
132157 fun parentCommit (parentCommit : String ) = apply { body.parentCommit(parentCommit) }
@@ -303,6 +328,7 @@ private constructor(
303328 class Body
304329 @JsonCreator(mode = JsonCreator .Mode .DISABLED )
305330 private constructor (
331+ private val description: JsonField <String >,
306332 private val manifest: JsonValue ,
307333 private val parentCommit: JsonField <String >,
308334 private val skipWebhooks: JsonValue ,
@@ -311,14 +337,23 @@ private constructor(
311337
312338 @JsonCreator
313339 private constructor (
340+ @JsonProperty(" description" )
341+ @ExcludeMissing
342+ description: JsonField <String > = JsonMissing .of(),
314343 @JsonProperty(" manifest" ) @ExcludeMissing manifest: JsonValue = JsonMissing .of(),
315344 @JsonProperty(" parent_commit" )
316345 @ExcludeMissing
317346 parentCommit: JsonField <String > = JsonMissing .of(),
318347 @JsonProperty(" skip_webhooks" )
319348 @ExcludeMissing
320349 skipWebhooks: JsonValue = JsonMissing .of(),
321- ) : this (manifest, parentCommit, skipWebhooks, mutableMapOf ())
350+ ) : this (description, manifest, parentCommit, skipWebhooks, mutableMapOf ())
351+
352+ /* *
353+ * @throws LangChainInvalidDataException if the JSON field has an unexpected type (e.g. if
354+ * the server responded with an unexpected value).
355+ */
356+ fun description (): Optional <String > = description.getOptional(" description" )
322357
323358 /* *
324359 * This arbitrary value can be deserialized into a custom type using the `convert` method:
@@ -345,6 +380,15 @@ private constructor(
345380 */
346381 @JsonProperty(" skip_webhooks" ) @ExcludeMissing fun _skipWebhooks (): JsonValue = skipWebhooks
347382
383+ /* *
384+ * Returns the raw JSON value of [description].
385+ *
386+ * Unlike [description], this method doesn't throw if the JSON field has an unexpected type.
387+ */
388+ @JsonProperty(" description" )
389+ @ExcludeMissing
390+ fun _description (): JsonField <String > = description
391+
348392 /* *
349393 * Returns the raw JSON value of [parentCommit].
350394 *
@@ -376,19 +420,34 @@ private constructor(
376420 /* * A builder for [Body]. */
377421 class Builder internal constructor() {
378422
423+ private var description: JsonField <String > = JsonMissing .of()
379424 private var manifest: JsonValue = JsonMissing .of()
380425 private var parentCommit: JsonField <String > = JsonMissing .of()
381426 private var skipWebhooks: JsonValue = JsonMissing .of()
382427 private var additionalProperties: MutableMap <String , JsonValue > = mutableMapOf ()
383428
384429 @JvmSynthetic
385430 internal fun from (body : Body ) = apply {
431+ description = body.description
386432 manifest = body.manifest
387433 parentCommit = body.parentCommit
388434 skipWebhooks = body.skipWebhooks
389435 additionalProperties = body.additionalProperties.toMutableMap()
390436 }
391437
438+ fun description (description : String ) = description(JsonField .of(description))
439+
440+ /* *
441+ * Sets [Builder.description] to an arbitrary JSON value.
442+ *
443+ * You should usually call [Builder.description] with a well-typed [String] value
444+ * instead. This method is primarily for setting the field to an undocumented or not yet
445+ * supported value.
446+ */
447+ fun description (description : JsonField <String >) = apply {
448+ this .description = description
449+ }
450+
392451 fun manifest (manifest : JsonValue ) = apply { this .manifest = manifest }
393452
394453 fun parentCommit (parentCommit : String ) = parentCommit(JsonField .of(parentCommit))
@@ -435,7 +494,13 @@ private constructor(
435494 * Further updates to this [Builder] will not mutate the returned instance.
436495 */
437496 fun build (): Body =
438- Body (manifest, parentCommit, skipWebhooks, additionalProperties.toMutableMap())
497+ Body (
498+ description,
499+ manifest,
500+ parentCommit,
501+ skipWebhooks,
502+ additionalProperties.toMutableMap(),
503+ )
439504 }
440505
441506 private var validated: Boolean = false
@@ -445,6 +510,7 @@ private constructor(
445510 return @apply
446511 }
447512
513+ description()
448514 parentCommit()
449515 validated = true
450516 }
@@ -464,28 +530,31 @@ private constructor(
464530 * Used for best match union deserialization.
465531 */
466532 @JvmSynthetic
467- internal fun validity (): Int = (if (parentCommit.asKnown().isPresent) 1 else 0 )
533+ internal fun validity (): Int =
534+ (if (description.asKnown().isPresent) 1 else 0 ) +
535+ (if (parentCommit.asKnown().isPresent) 1 else 0 )
468536
469537 override fun equals (other : Any? ): Boolean {
470538 if (this == = other) {
471539 return true
472540 }
473541
474542 return other is Body &&
543+ description == other.description &&
475544 manifest == other.manifest &&
476545 parentCommit == other.parentCommit &&
477546 skipWebhooks == other.skipWebhooks &&
478547 additionalProperties == other.additionalProperties
479548 }
480549
481550 private val hashCode: Int by lazy {
482- Objects .hash(manifest, parentCommit, skipWebhooks, additionalProperties)
551+ Objects .hash(description, manifest, parentCommit, skipWebhooks, additionalProperties)
483552 }
484553
485554 override fun hashCode (): Int = hashCode
486555
487556 override fun toString () =
488- " Body{manifest=$manifest , parentCommit=$parentCommit , skipWebhooks=$skipWebhooks , additionalProperties=$additionalProperties }"
557+ " Body{description= $description , manifest=$manifest , parentCommit=$parentCommit , skipWebhooks=$skipWebhooks , additionalProperties=$additionalProperties }"
489558 }
490559
491560 override fun equals (other : Any? ): Boolean {
0 commit comments