@@ -85,6 +85,12 @@ private constructor(
8585 */
8686 fun reservationMinutes (): Optional <Long > = body.reservationMinutes()
8787
88+ /* *
89+ * @throws LangChainInvalidDataException if the JSON field has an unexpected type (e.g. if the
90+ * server responded with an unexpected value).
91+ */
92+ fun reviewerAccessMode (): Optional <String > = body.reviewerAccessMode()
93+
8894 /* *
8995 * @throws LangChainInvalidDataException if the JSON field has an unexpected type (e.g. if the
9096 * server responded with an unexpected value).
@@ -175,6 +181,14 @@ private constructor(
175181 */
176182 fun _reservationMinutes (): JsonField <Long > = body._reservationMinutes ()
177183
184+ /* *
185+ * Returns the raw JSON value of [reviewerAccessMode].
186+ *
187+ * Unlike [reviewerAccessMode], this method doesn't throw if the JSON field has an unexpected
188+ * type.
189+ */
190+ fun _reviewerAccessMode (): JsonField <String > = body._reviewerAccessMode ()
191+
178192 /* *
179193 * Returns the raw JSON value of [rubricInstructions].
180194 *
@@ -422,6 +436,21 @@ private constructor(
422436 body.reservationMinutes(reservationMinutes)
423437 }
424438
439+ fun reviewerAccessMode (reviewerAccessMode : String ) = apply {
440+ body.reviewerAccessMode(reviewerAccessMode)
441+ }
442+
443+ /* *
444+ * Sets [Builder.reviewerAccessMode] to an arbitrary JSON value.
445+ *
446+ * You should usually call [Builder.reviewerAccessMode] with a well-typed [String] value
447+ * instead. This method is primarily for setting the field to an undocumented or not yet
448+ * supported value.
449+ */
450+ fun reviewerAccessMode (reviewerAccessMode : JsonField <String >) = apply {
451+ body.reviewerAccessMode(reviewerAccessMode)
452+ }
453+
425454 fun rubricInstructions (rubricInstructions : String? ) = apply {
426455 body.rubricInstructions(rubricInstructions)
427456 }
@@ -659,6 +688,7 @@ private constructor(
659688 private val metadata: JsonField <Metadata >,
660689 private val numReviewersPerItem: JsonField <Long >,
661690 private val reservationMinutes: JsonField <Long >,
691+ private val reviewerAccessMode: JsonField <String >,
662692 private val rubricInstructions: JsonField <String >,
663693 private val rubricItems: JsonField <List <AnnotationQueueRubricItemSchema >>,
664694 private val sessionIds: JsonField <List <String >>,
@@ -691,6 +721,9 @@ private constructor(
691721 @JsonProperty(" reservation_minutes" )
692722 @ExcludeMissing
693723 reservationMinutes: JsonField <Long > = JsonMissing .of(),
724+ @JsonProperty(" reviewer_access_mode" )
725+ @ExcludeMissing
726+ reviewerAccessMode: JsonField <String > = JsonMissing .of(),
694727 @JsonProperty(" rubric_instructions" )
695728 @ExcludeMissing
696729 rubricInstructions: JsonField <String > = JsonMissing .of(),
@@ -713,6 +746,7 @@ private constructor(
713746 metadata,
714747 numReviewersPerItem,
715748 reservationMinutes,
749+ reviewerAccessMode,
716750 rubricInstructions,
717751 rubricItems,
718752 sessionIds,
@@ -777,6 +811,13 @@ private constructor(
777811 fun reservationMinutes (): Optional <Long > =
778812 reservationMinutes.getOptional(" reservation_minutes" )
779813
814+ /* *
815+ * @throws LangChainInvalidDataException if the JSON field has an unexpected type (e.g. if
816+ * the server responded with an unexpected value).
817+ */
818+ fun reviewerAccessMode (): Optional <String > =
819+ reviewerAccessMode.getOptional(" reviewer_access_mode" )
820+
780821 /* *
781822 * @throws LangChainInvalidDataException if the JSON field has an unexpected type (e.g. if
782823 * the server responded with an unexpected value).
@@ -882,6 +923,16 @@ private constructor(
882923 @ExcludeMissing
883924 fun _reservationMinutes (): JsonField <Long > = reservationMinutes
884925
926+ /* *
927+ * Returns the raw JSON value of [reviewerAccessMode].
928+ *
929+ * Unlike [reviewerAccessMode], this method doesn't throw if the JSON field has an
930+ * unexpected type.
931+ */
932+ @JsonProperty(" reviewer_access_mode" )
933+ @ExcludeMissing
934+ fun _reviewerAccessMode (): JsonField <String > = reviewerAccessMode
935+
885936 /* *
886937 * Returns the raw JSON value of [rubricInstructions].
887938 *
@@ -956,6 +1007,7 @@ private constructor(
9561007 private var metadata: JsonField <Metadata > = JsonMissing .of()
9571008 private var numReviewersPerItem: JsonField <Long > = JsonMissing .of()
9581009 private var reservationMinutes: JsonField <Long > = JsonMissing .of()
1010+ private var reviewerAccessMode: JsonField <String > = JsonMissing .of()
9591011 private var rubricInstructions: JsonField <String > = JsonMissing .of()
9601012 private var rubricItems: JsonField <MutableList <AnnotationQueueRubricItemSchema >>? = null
9611013 private var sessionIds: JsonField <MutableList <String >>? = null
@@ -973,6 +1025,7 @@ private constructor(
9731025 metadata = body.metadata
9741026 numReviewersPerItem = body.numReviewersPerItem
9751027 reservationMinutes = body.reservationMinutes
1028+ reviewerAccessMode = body.reviewerAccessMode
9761029 rubricInstructions = body.rubricInstructions
9771030 rubricItems = body.rubricItems.map { it.toMutableList() }
9781031 sessionIds = body.sessionIds.map { it.toMutableList() }
@@ -1150,6 +1203,20 @@ private constructor(
11501203 this .reservationMinutes = reservationMinutes
11511204 }
11521205
1206+ fun reviewerAccessMode (reviewerAccessMode : String ) =
1207+ reviewerAccessMode(JsonField .of(reviewerAccessMode))
1208+
1209+ /* *
1210+ * Sets [Builder.reviewerAccessMode] to an arbitrary JSON value.
1211+ *
1212+ * You should usually call [Builder.reviewerAccessMode] with a well-typed [String] value
1213+ * instead. This method is primarily for setting the field to an undocumented or not yet
1214+ * supported value.
1215+ */
1216+ fun reviewerAccessMode (reviewerAccessMode : JsonField <String >) = apply {
1217+ this .reviewerAccessMode = reviewerAccessMode
1218+ }
1219+
11531220 fun rubricInstructions (rubricInstructions : String? ) =
11541221 rubricInstructions(JsonField .ofNullable(rubricInstructions))
11551222
@@ -1284,6 +1351,7 @@ private constructor(
12841351 metadata,
12851352 numReviewersPerItem,
12861353 reservationMinutes,
1354+ reviewerAccessMode,
12871355 rubricInstructions,
12881356 (rubricItems ? : JsonMissing .of()).map { it.toImmutable() },
12891357 (sessionIds ? : JsonMissing .of()).map { it.toImmutable() },
@@ -1308,6 +1376,7 @@ private constructor(
13081376 metadata().ifPresent { it.validate() }
13091377 numReviewersPerItem()
13101378 reservationMinutes()
1379+ reviewerAccessMode()
13111380 rubricInstructions()
13121381 rubricItems().ifPresent { it.forEach { it.validate() } }
13131382 sessionIds()
@@ -1340,6 +1409,7 @@ private constructor(
13401409 (metadata.asKnown().getOrNull()?.validity() ? : 0 ) +
13411410 (if (numReviewersPerItem.asKnown().isPresent) 1 else 0 ) +
13421411 (if (reservationMinutes.asKnown().isPresent) 1 else 0 ) +
1412+ (if (reviewerAccessMode.asKnown().isPresent) 1 else 0 ) +
13431413 (if (rubricInstructions.asKnown().isPresent) 1 else 0 ) +
13441414 (rubricItems.asKnown().getOrNull()?.sumOf { it.validity().toInt() } ? : 0 ) +
13451415 (sessionIds.asKnown().getOrNull()?.size ? : 0 ) +
@@ -1360,6 +1430,7 @@ private constructor(
13601430 metadata == other.metadata &&
13611431 numReviewersPerItem == other.numReviewersPerItem &&
13621432 reservationMinutes == other.reservationMinutes &&
1433+ reviewerAccessMode == other.reviewerAccessMode &&
13631434 rubricInstructions == other.rubricInstructions &&
13641435 rubricItems == other.rubricItems &&
13651436 sessionIds == other.sessionIds &&
@@ -1378,6 +1449,7 @@ private constructor(
13781449 metadata,
13791450 numReviewersPerItem,
13801451 reservationMinutes,
1452+ reviewerAccessMode,
13811453 rubricInstructions,
13821454 rubricItems,
13831455 sessionIds,
@@ -1389,7 +1461,7 @@ private constructor(
13891461 override fun hashCode (): Int = hashCode
13901462
13911463 override fun toString () =
1392- " Body{name=$name , id=$id , createdAt=$createdAt , defaultDataset=$defaultDataset , description=$description , enableReservations=$enableReservations , metadata=$metadata , numReviewersPerItem=$numReviewersPerItem , reservationMinutes=$reservationMinutes , rubricInstructions=$rubricInstructions , rubricItems=$rubricItems , sessionIds=$sessionIds , updatedAt=$updatedAt , additionalProperties=$additionalProperties }"
1464+ " Body{name=$name , id=$id , createdAt=$createdAt , defaultDataset=$defaultDataset , description=$description , enableReservations=$enableReservations , metadata=$metadata , numReviewersPerItem=$numReviewersPerItem , reservationMinutes=$reservationMinutes , reviewerAccessMode= $reviewerAccessMode , rubricInstructions=$rubricInstructions , rubricItems=$rubricItems , sessionIds=$sessionIds , updatedAt=$updatedAt , additionalProperties=$additionalProperties }"
13931465 }
13941466
13951467 class Metadata
0 commit comments