Class CreateEvalJsonlRunDataSource.Builder
-
- All Implemented Interfaces:
public final class CreateEvalJsonlRunDataSource.Builder
A builder for CreateEvalJsonlRunDataSource.
-
-
Method Summary
-
-
Method Detail
-
source
final CreateEvalJsonlRunDataSource.Builder source(CreateEvalJsonlRunDataSource.Source source)
-
source
final CreateEvalJsonlRunDataSource.Builder source(JsonField<CreateEvalJsonlRunDataSource.Source> source)
Sets Builder.source to an arbitrary JSON value.
You should usually call Builder.source with a well-typed Source value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
source
final CreateEvalJsonlRunDataSource.Builder source(CreateEvalJsonlRunDataSource.Source.FileContent fileContent)
Alias for calling source with
Source.ofFileContent(fileContent)
.
-
source
final CreateEvalJsonlRunDataSource.Builder source(CreateEvalJsonlRunDataSource.Source.FileId fileId)
Alias for calling source with
Source.ofFileId(fileId)
.
-
fileContentSource
final CreateEvalJsonlRunDataSource.Builder fileContentSource(List<CreateEvalJsonlRunDataSource.Source.FileContent.Content> content)
Alias for calling source with the following:
Source.FileContent.builder() .content(content) .build()
-
fileIdSource
final CreateEvalJsonlRunDataSource.Builder fileIdSource(String id)
Alias for calling source with the following:
Source.FileId.builder() .id(id) .build()
-
type
final CreateEvalJsonlRunDataSource.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("jsonl")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final CreateEvalJsonlRunDataSource.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final CreateEvalJsonlRunDataSource.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final CreateEvalJsonlRunDataSource.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final CreateEvalJsonlRunDataSource.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final CreateEvalJsonlRunDataSource.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final CreateEvalJsonlRunDataSource build()
Returns an immutable instance of CreateEvalJsonlRunDataSource.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.source()
-
-
-
-