Class ChatCompletionContentPart.File.Builder
-
- All Implemented Interfaces:
public final class ChatCompletionContentPart.File.Builder
A builder for File.
-
-
Method Summary
Modifier and Type Method Description final ChatCompletionContentPart.File.Builder
file(ChatCompletionContentPart.File.FileObject file)
final ChatCompletionContentPart.File.Builder
file(JsonField<ChatCompletionContentPart.File.FileObject> file)
Sets Builder.file to an arbitrary JSON value. final ChatCompletionContentPart.File.Builder
type(JsonValue type)
Sets the field to an arbitrary JSON value. final ChatCompletionContentPart.File.Builder
additionalProperties(Map<String, JsonValue> additionalProperties)
final ChatCompletionContentPart.File.Builder
putAdditionalProperty(String key, JsonValue value)
final ChatCompletionContentPart.File.Builder
putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
final ChatCompletionContentPart.File.Builder
removeAdditionalProperty(String key)
final ChatCompletionContentPart.File.Builder
removeAllAdditionalProperties(Set<String> keys)
final ChatCompletionContentPart.File
build()
Returns an immutable instance of File. -
-
Method Detail
-
file
final ChatCompletionContentPart.File.Builder file(ChatCompletionContentPart.File.FileObject file)
-
file
final ChatCompletionContentPart.File.Builder file(JsonField<ChatCompletionContentPart.File.FileObject> file)
Sets Builder.file to an arbitrary JSON value.
You should usually call Builder.file with a well-typed FileObject value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final ChatCompletionContentPart.File.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("file")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ChatCompletionContentPart.File.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ChatCompletionContentPart.File.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ChatCompletionContentPart.File.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ChatCompletionContentPart.File.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ChatCompletionContentPart.File.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ChatCompletionContentPart.File build()
Returns an immutable instance of File.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.file()
-
-
-
-