Class InputFileContent.Builder
-
- All Implemented Interfaces:
public final class InputFileContent.Builder
A builder for InputFileContent.
-
-
Method Summary
-
-
Method Detail
-
fileId
final InputFileContent.Builder fileId(String fileId)
The ID of the file to be sent to the model.
-
fileId
final InputFileContent.Builder fileId(Optional<String> fileId)
Alias for calling Builder.fileId with
fileId.orElse(null)
.
-
fileId
final InputFileContent.Builder fileId(JsonField<String> fileId)
Sets Builder.fileId to an arbitrary JSON value.
You should usually call Builder.fileId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final InputFileContent.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("input_file")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
fileUrl
final InputFileContent.Builder fileUrl(String fileUrl)
The URL of the file to be sent to the model.
-
fileUrl
final InputFileContent.Builder fileUrl(JsonField<String> fileUrl)
Sets Builder.fileUrl to an arbitrary JSON value.
You should usually call Builder.fileUrl with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
filename
final InputFileContent.Builder filename(String filename)
The name of the file to be sent to the model.
-
filename
final InputFileContent.Builder filename(JsonField<String> filename)
Sets Builder.filename to an arbitrary JSON value.
You should usually call Builder.filename with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final InputFileContent.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final InputFileContent.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final InputFileContent.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final InputFileContent.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final InputFileContent.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final InputFileContent build()
Returns an immutable instance of InputFileContent.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.fileId()
-
-
-
-