Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,7 @@ private constructor(
)
}

@JvmSynthetic
internal fun _body(): Optional<Map<String, JsonValue>> =
fun _body(): Optional<Map<String, JsonValue>> =
Optional.ofNullable(additionalBodyProperties.ifEmpty { null })

fun _pathParam(index: Int): String =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,17 @@ private constructor(
this.inferencePipelineId = inferencePipelineId
}

/**
* Sets the entire request body.
*
* This is generally only useful if you are already constructing the body separately.
* Otherwise, it's more convenient to use the top-level setters instead:
* - [description]
* - [name]
* - [referenceDatasetUri]
*/
fun body(body: Body) = apply { this.body = body.toBuilder() }

/** The inference pipeline description. */
fun description(description: String?) = apply { body.description(description) }

Expand Down Expand Up @@ -309,7 +320,7 @@ private constructor(
)
}

@JvmSynthetic internal fun _body(): Body = body
fun _body(): Body = body

fun _pathParam(index: Int): String =
when (index) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,16 @@ private constructor(
this.inferencePipelineId = inferencePipelineId
}

/**
* Sets the entire request body.
*
* This is generally only useful if you are already constructing the body separately.
* Otherwise, it's more convenient to use the top-level setters instead:
* - [config]
* - [rows]
*/
fun body(body: Body) = apply { this.body = body.toBuilder() }

/** Configuration for the data stream. Depends on your **Openlayer project task type**. */
fun config(config: Config) = apply { body.config(config) }

Expand Down Expand Up @@ -312,7 +322,7 @@ private constructor(
)
}

@JvmSynthetic internal fun _body(): Body = body
fun _body(): Body = body

fun _pathParam(index: Int): String =
when (index) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,16 @@ private constructor(
/** Specify the inference id as a query param. */
fun inferenceId(inferenceId: String) = apply { this.inferenceId = inferenceId }

/**
* Sets the entire request body.
*
* This is generally only useful if you are already constructing the body separately.
* Otherwise, it's more convenient to use the top-level setters instead:
* - [row]
* - [config]
*/
fun body(body: Body) = apply { this.body = body.toBuilder() }

fun row(row: JsonValue) = apply { body.row(row) }

fun config(config: Config?) = apply { body.config(config) }
Expand Down Expand Up @@ -254,7 +264,7 @@ private constructor(
)
}

@JvmSynthetic internal fun _body(): Body = body
fun _body(): Body = body

fun _pathParam(index: Int): String =
when (index) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,20 @@ private constructor(
additionalQueryParams = projectCreateParams.additionalQueryParams.toBuilder()
}

/**
* Sets the entire request body.
*
* This is generally only useful if you are already constructing the body separately.
* Otherwise, it's more convenient to use the top-level setters instead:
* - [id]
* - [creatorId]
* - [dateCreated]
* - [dateUpdated]
* - [developmentGoalCount]
* - etc.
*/
fun body(body: Body) = apply { this.body = body.toBuilder() }

/** The project id. */
fun id(id: String) = apply { body.id(id) }

Expand Down Expand Up @@ -685,7 +699,7 @@ private constructor(
)
}

@JvmSynthetic internal fun _body(): Body = body
fun _body(): Body = body

override fun _headers(): Headers = additionalHeaders

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,20 @@ private constructor(

fun pathProjectId(pathProjectId: String) = apply { this.pathProjectId = pathProjectId }

/**
* Sets the entire request body.
*
* This is generally only useful if you are already constructing the body separately.
* Otherwise, it's more convenient to use the top-level setters instead:
* - [id]
* - [commit]
* - [dateArchived]
* - [dateCreated]
* - [failingGoalCount]
* - etc.
*/
fun body(body: Body) = apply { this.body = body.toBuilder() }

/** The project version (commit) id. */
fun id(id: String) = apply { body.id(id) }

Expand Down Expand Up @@ -760,7 +774,7 @@ private constructor(
)
}

@JvmSynthetic internal fun _body(): Body = body
fun _body(): Body = body

fun _pathParam(index: Int): String =
when (index) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,20 @@ private constructor(

fun pathProjectId(pathProjectId: String) = apply { this.pathProjectId = pathProjectId }

/**
* Sets the entire request body.
*
* This is generally only useful if you are already constructing the body separately.
* Otherwise, it's more convenient to use the top-level setters instead:
* - [id]
* - [dateCreated]
* - [dateLastEvaluated]
* - [dateLastSampleReceived]
* - [dateOfNextEvaluation]
* - etc.
*/
fun body(body: Body) = apply { this.body = body.toBuilder() }

/** The inference pipeline id. */
fun id(id: String) = apply { body.id(id) }

Expand Down Expand Up @@ -782,7 +796,7 @@ private constructor(
)
}

@JvmSynthetic internal fun _body(): Body = body
fun _body(): Body = body

fun _pathParam(index: Int): String =
when (index) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,7 @@ private constructor(
)
}

@JvmSynthetic
internal fun _body(): Optional<Map<String, JsonValue>> =
fun _body(): Optional<Map<String, JsonValue>> =
Optional.ofNullable(additionalBodyProperties.ifEmpty { null })

override fun _headers(): Headers = additionalHeaders
Expand Down