@@ -60,6 +60,12 @@ private constructor(
6060 */
6161 fun readme (): Optional <String > = body.readme()
6262
63+ /* *
64+ * @throws LangChainInvalidDataException if the JSON field has an unexpected type (e.g. if the
65+ * server responded with an unexpected value).
66+ */
67+ fun restrictedMode (): Optional <Boolean > = body.restrictedMode()
68+
6369 /* *
6470 * @throws LangChainInvalidDataException if the JSON field has an unexpected type (e.g. if the
6571 * server responded with an unexpected value).
@@ -94,6 +100,13 @@ private constructor(
94100 */
95101 fun _readme (): JsonField <String > = body._readme ()
96102
103+ /* *
104+ * Returns the raw JSON value of [restrictedMode].
105+ *
106+ * Unlike [restrictedMode], this method doesn't throw if the JSON field has an unexpected type.
107+ */
108+ fun _restrictedMode (): JsonField <Boolean > = body._restrictedMode ()
109+
97110 /* *
98111 * Returns the raw JSON value of [tags].
99112 *
@@ -158,7 +171,7 @@ private constructor(
158171 * - [isArchived]
159172 * - [isPublic]
160173 * - [readme]
161- * - [tags ]
174+ * - [restrictedMode ]
162175 * - etc.
163176 */
164177 fun body (body : Body ) = apply { this .body = body.toBuilder() }
@@ -232,6 +245,30 @@ private constructor(
232245 */
233246 fun readme (readme : JsonField <String >) = apply { body.readme(readme) }
234247
248+ fun restrictedMode (restrictedMode : Boolean? ) = apply { body.restrictedMode(restrictedMode) }
249+
250+ /* *
251+ * Alias for [Builder.restrictedMode].
252+ *
253+ * This unboxed primitive overload exists for backwards compatibility.
254+ */
255+ fun restrictedMode (restrictedMode : Boolean ) = restrictedMode(restrictedMode as Boolean? )
256+
257+ /* * Alias for calling [Builder.restrictedMode] with `restrictedMode.orElse(null)`. */
258+ fun restrictedMode (restrictedMode : Optional <Boolean >) =
259+ restrictedMode(restrictedMode.getOrNull())
260+
261+ /* *
262+ * Sets [Builder.restrictedMode] to an arbitrary JSON value.
263+ *
264+ * You should usually call [Builder.restrictedMode] with a well-typed [Boolean] value
265+ * instead. This method is primarily for setting the field to an undocumented or not yet
266+ * supported value.
267+ */
268+ fun restrictedMode (restrictedMode : JsonField <Boolean >) = apply {
269+ body.restrictedMode(restrictedMode)
270+ }
271+
235272 fun tags (tags : List <String >? ) = apply { body.tags(tags) }
236273
237274 /* * Alias for calling [Builder.tags] with `tags.orElse(null)`. */
@@ -413,6 +450,7 @@ private constructor(
413450 private val isArchived: JsonField <Boolean >,
414451 private val isPublic: JsonField <Boolean >,
415452 private val readme: JsonField <String >,
453+ private val restrictedMode: JsonField <Boolean >,
416454 private val tags: JsonField <List <String >>,
417455 private val additionalProperties: MutableMap <String , JsonValue >,
418456 ) {
@@ -429,8 +467,11 @@ private constructor(
429467 @ExcludeMissing
430468 isPublic: JsonField <Boolean > = JsonMissing .of(),
431469 @JsonProperty(" readme" ) @ExcludeMissing readme: JsonField <String > = JsonMissing .of(),
470+ @JsonProperty(" restricted_mode" )
471+ @ExcludeMissing
472+ restrictedMode: JsonField <Boolean > = JsonMissing .of(),
432473 @JsonProperty(" tags" ) @ExcludeMissing tags: JsonField <List <String >> = JsonMissing .of(),
433- ) : this (description, isArchived, isPublic, readme, tags, mutableMapOf ())
474+ ) : this (description, isArchived, isPublic, readme, restrictedMode, tags, mutableMapOf ())
434475
435476 /* *
436477 * @throws LangChainInvalidDataException if the JSON field has an unexpected type (e.g. if
@@ -456,6 +497,12 @@ private constructor(
456497 */
457498 fun readme (): Optional <String > = readme.getOptional(" readme" )
458499
500+ /* *
501+ * @throws LangChainInvalidDataException if the JSON field has an unexpected type (e.g. if
502+ * the server responded with an unexpected value).
503+ */
504+ fun restrictedMode (): Optional <Boolean > = restrictedMode.getOptional(" restricted_mode" )
505+
459506 /* *
460507 * @throws LangChainInvalidDataException if the JSON field has an unexpected type (e.g. if
461508 * the server responded with an unexpected value).
@@ -494,6 +541,16 @@ private constructor(
494541 */
495542 @JsonProperty(" readme" ) @ExcludeMissing fun _readme (): JsonField <String > = readme
496543
544+ /* *
545+ * Returns the raw JSON value of [restrictedMode].
546+ *
547+ * Unlike [restrictedMode], this method doesn't throw if the JSON field has an unexpected
548+ * type.
549+ */
550+ @JsonProperty(" restricted_mode" )
551+ @ExcludeMissing
552+ fun _restrictedMode (): JsonField <Boolean > = restrictedMode
553+
497554 /* *
498555 * Returns the raw JSON value of [tags].
499556 *
@@ -526,6 +583,7 @@ private constructor(
526583 private var isArchived: JsonField <Boolean > = JsonMissing .of()
527584 private var isPublic: JsonField <Boolean > = JsonMissing .of()
528585 private var readme: JsonField <String > = JsonMissing .of()
586+ private var restrictedMode: JsonField <Boolean > = JsonMissing .of()
529587 private var tags: JsonField <MutableList <String >>? = null
530588 private var additionalProperties: MutableMap <String , JsonValue > = mutableMapOf ()
531589
@@ -535,6 +593,7 @@ private constructor(
535593 isArchived = body.isArchived
536594 isPublic = body.isPublic
537595 readme = body.readme
596+ restrictedMode = body.restrictedMode
538597 tags = body.tags.map { it.toMutableList() }
539598 additionalProperties = body.additionalProperties.toMutableMap()
540599 }
@@ -611,6 +670,31 @@ private constructor(
611670 */
612671 fun readme (readme : JsonField <String >) = apply { this .readme = readme }
613672
673+ fun restrictedMode (restrictedMode : Boolean? ) =
674+ restrictedMode(JsonField .ofNullable(restrictedMode))
675+
676+ /* *
677+ * Alias for [Builder.restrictedMode].
678+ *
679+ * This unboxed primitive overload exists for backwards compatibility.
680+ */
681+ fun restrictedMode (restrictedMode : Boolean ) = restrictedMode(restrictedMode as Boolean? )
682+
683+ /* * Alias for calling [Builder.restrictedMode] with `restrictedMode.orElse(null)`. */
684+ fun restrictedMode (restrictedMode : Optional <Boolean >) =
685+ restrictedMode(restrictedMode.getOrNull())
686+
687+ /* *
688+ * Sets [Builder.restrictedMode] to an arbitrary JSON value.
689+ *
690+ * You should usually call [Builder.restrictedMode] with a well-typed [Boolean] value
691+ * instead. This method is primarily for setting the field to an undocumented or not yet
692+ * supported value.
693+ */
694+ fun restrictedMode (restrictedMode : JsonField <Boolean >) = apply {
695+ this .restrictedMode = restrictedMode
696+ }
697+
614698 fun tags (tags : List <String >? ) = tags(JsonField .ofNullable(tags))
615699
616700 /* * Alias for calling [Builder.tags] with `tags.orElse(null)`. */
@@ -667,6 +751,7 @@ private constructor(
667751 isArchived,
668752 isPublic,
669753 readme,
754+ restrictedMode,
670755 (tags ? : JsonMissing .of()).map { it.toImmutable() },
671756 additionalProperties.toMutableMap(),
672757 )
@@ -683,6 +768,7 @@ private constructor(
683768 isArchived()
684769 isPublic()
685770 readme()
771+ restrictedMode()
686772 tags()
687773 validated = true
688774 }
@@ -707,6 +793,7 @@ private constructor(
707793 (if (isArchived.asKnown().isPresent) 1 else 0 ) +
708794 (if (isPublic.asKnown().isPresent) 1 else 0 ) +
709795 (if (readme.asKnown().isPresent) 1 else 0 ) +
796+ (if (restrictedMode.asKnown().isPresent) 1 else 0 ) +
710797 (tags.asKnown().getOrNull()?.size ? : 0 )
711798
712799 override fun equals (other : Any? ): Boolean {
@@ -719,18 +806,27 @@ private constructor(
719806 isArchived == other.isArchived &&
720807 isPublic == other.isPublic &&
721808 readme == other.readme &&
809+ restrictedMode == other.restrictedMode &&
722810 tags == other.tags &&
723811 additionalProperties == other.additionalProperties
724812 }
725813
726814 private val hashCode: Int by lazy {
727- Objects .hash(description, isArchived, isPublic, readme, tags, additionalProperties)
815+ Objects .hash(
816+ description,
817+ isArchived,
818+ isPublic,
819+ readme,
820+ restrictedMode,
821+ tags,
822+ additionalProperties,
823+ )
728824 }
729825
730826 override fun hashCode (): Int = hashCode
731827
732828 override fun toString () =
733- " Body{description=$description , isArchived=$isArchived , isPublic=$isPublic , readme=$readme , tags=$tags , additionalProperties=$additionalProperties }"
829+ " Body{description=$description , isArchived=$isArchived , isPublic=$isPublic , readme=$readme , restrictedMode= $restrictedMode , tags=$tags , additionalProperties=$additionalProperties }"
734830 }
735831
736832 override fun equals (other : Any? ): Boolean {
0 commit comments