@@ -25,6 +25,8 @@ private constructor(
2525 private val nameContains: String? ,
2626 private val offset: Long? ,
2727 private val queueType: QueueType ? ,
28+ private val sortBy: String? ,
29+ private val sortByDesc: Boolean? ,
2830 private val tagValueId: List <String >? ,
2931 private val additionalHeaders: Headers ,
3032 private val additionalQueryParams: QueryParams ,
@@ -46,6 +48,10 @@ private constructor(
4648
4749 fun queueType (): Optional <QueueType > = Optional .ofNullable(queueType)
4850
51+ fun sortBy (): Optional <String > = Optional .ofNullable(sortBy)
52+
53+ fun sortByDesc (): Optional <Boolean > = Optional .ofNullable(sortByDesc)
54+
4955 fun tagValueId (): Optional <List <String >> = Optional .ofNullable(tagValueId)
5056
5157 /* * Additional headers to send with the request. */
@@ -78,6 +84,8 @@ private constructor(
7884 private var nameContains: String? = null
7985 private var offset: Long? = null
8086 private var queueType: QueueType ? = null
87+ private var sortBy: String? = null
88+ private var sortByDesc: Boolean? = null
8189 private var tagValueId: MutableList <String >? = null
8290 private var additionalHeaders: Headers .Builder = Headers .builder()
8391 private var additionalQueryParams: QueryParams .Builder = QueryParams .builder()
@@ -95,6 +103,8 @@ private constructor(
95103 nameContains = annotationQueueRetrieveAnnotationQueuesParams.nameContains
96104 offset = annotationQueueRetrieveAnnotationQueuesParams.offset
97105 queueType = annotationQueueRetrieveAnnotationQueuesParams.queueType
106+ sortBy = annotationQueueRetrieveAnnotationQueuesParams.sortBy
107+ sortByDesc = annotationQueueRetrieveAnnotationQueuesParams.sortByDesc
98108 tagValueId = annotationQueueRetrieveAnnotationQueuesParams.tagValueId?.toMutableList()
99109 additionalHeaders =
100110 annotationQueueRetrieveAnnotationQueuesParams.additionalHeaders.toBuilder()
@@ -170,6 +180,23 @@ private constructor(
170180 /* * Alias for calling [Builder.queueType] with `queueType.orElse(null)`. */
171181 fun queueType (queueType : Optional <QueueType >) = queueType(queueType.getOrNull())
172182
183+ fun sortBy (sortBy : String? ) = apply { this .sortBy = sortBy }
184+
185+ /* * Alias for calling [Builder.sortBy] with `sortBy.orElse(null)`. */
186+ fun sortBy (sortBy : Optional <String >) = sortBy(sortBy.getOrNull())
187+
188+ fun sortByDesc (sortByDesc : Boolean? ) = apply { this .sortByDesc = sortByDesc }
189+
190+ /* *
191+ * Alias for [Builder.sortByDesc].
192+ *
193+ * This unboxed primitive overload exists for backwards compatibility.
194+ */
195+ fun sortByDesc (sortByDesc : Boolean ) = sortByDesc(sortByDesc as Boolean? )
196+
197+ /* * Alias for calling [Builder.sortByDesc] with `sortByDesc.orElse(null)`. */
198+ fun sortByDesc (sortByDesc : Optional <Boolean >) = sortByDesc(sortByDesc.getOrNull())
199+
173200 fun tagValueId (tagValueId : List <String >? ) = apply {
174201 this .tagValueId = tagValueId?.toMutableList()
175202 }
@@ -299,6 +326,8 @@ private constructor(
299326 nameContains,
300327 offset,
301328 queueType,
329+ sortBy,
330+ sortByDesc,
302331 tagValueId?.toImmutable(),
303332 additionalHeaders.build(),
304333 additionalQueryParams.build(),
@@ -318,6 +347,8 @@ private constructor(
318347 nameContains?.let { put(" name_contains" , it) }
319348 offset?.let { put(" offset" , it.toString()) }
320349 queueType?.let { put(" queue_type" , it.toString()) }
350+ sortBy?.let { put(" sort_by" , it) }
351+ sortByDesc?.let { put(" sort_by_desc" , it.toString()) }
321352 tagValueId?.let { put(" tag_value_id" , it.joinToString(" ," )) }
322353 putAll(additionalQueryParams)
323354 }
@@ -466,6 +497,8 @@ private constructor(
466497 nameContains == other.nameContains &&
467498 offset == other.offset &&
468499 queueType == other.queueType &&
500+ sortBy == other.sortBy &&
501+ sortByDesc == other.sortByDesc &&
469502 tagValueId == other.tagValueId &&
470503 additionalHeaders == other.additionalHeaders &&
471504 additionalQueryParams == other.additionalQueryParams
@@ -481,11 +514,13 @@ private constructor(
481514 nameContains,
482515 offset,
483516 queueType,
517+ sortBy,
518+ sortByDesc,
484519 tagValueId,
485520 additionalHeaders,
486521 additionalQueryParams,
487522 )
488523
489524 override fun toString () =
490- " AnnotationQueueRetrieveAnnotationQueuesParams{assignedToMe=$assignedToMe , datasetId=$datasetId , ids=$ids , limit=$limit , name=$name , nameContains=$nameContains , offset=$offset , queueType=$queueType , tagValueId=$tagValueId , additionalHeaders=$additionalHeaders , additionalQueryParams=$additionalQueryParams }"
525+ " AnnotationQueueRetrieveAnnotationQueuesParams{assignedToMe=$assignedToMe , datasetId=$datasetId , ids=$ids , limit=$limit , name=$name , nameContains=$nameContains , offset=$offset , queueType=$queueType , sortBy= $sortBy , sortByDesc= $sortByDesc , tagValueId=$tagValueId , additionalHeaders=$additionalHeaders , additionalQueryParams=$additionalQueryParams }"
491526}
0 commit comments