Class FileCreateParams.Body.Builder
- 
                    
                    
- All Implemented Interfaces:
 
public final class FileCreateParams.Body.BuilderA builder for Body.
 
- 
                
                    
                    
- 
                                
                            
                                
Method Summary
- 
                    
                    
                    
- 
                                
                            
                                
Method Detail
- 
                                        
fileId
final FileCreateParams.Body.Builder fileId(String fileId)
A File ID that the vector store should use. Useful for tools like
file_searchthat can access files. 
- 
                                        
fileId
final FileCreateParams.Body.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.
 
- 
                                        
attributes
final FileCreateParams.Body.Builder attributes(FileCreateParams.Attributes attributes)
Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard. Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters, booleans, or numbers.
 
- 
                                        
attributes
final FileCreateParams.Body.Builder attributes(Optional<FileCreateParams.Attributes> attributes)
Alias for calling Builder.attributes with
attributes.orElse(null). 
- 
                                        
attributes
final FileCreateParams.Body.Builder attributes(JsonField<FileCreateParams.Attributes> attributes)
Sets Builder.attributes to an arbitrary JSON value.
You should usually call Builder.attributes with a well-typed Attributes value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
 
- 
                                        
chunkingStrategy
final FileCreateParams.Body.Builder chunkingStrategy(FileChunkingStrategyParam chunkingStrategy)
The chunking strategy used to chunk the file(s). If not set, will use the
autostrategy. Only applicable iffile_idsis non-empty. 
- 
                                        
chunkingStrategy
final FileCreateParams.Body.Builder chunkingStrategy(JsonField<FileChunkingStrategyParam> chunkingStrategy)
Sets Builder.chunkingStrategy to an arbitrary JSON value.
You should usually call Builder.chunkingStrategy with a well-typed FileChunkingStrategyParam value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
 
- 
                                        
chunkingStrategy
final FileCreateParams.Body.Builder chunkingStrategy(AutoFileChunkingStrategyParam auto)
Alias for calling chunkingStrategy with
FileChunkingStrategyParam.ofAuto(auto). 
- 
                                        
chunkingStrategy
final FileCreateParams.Body.Builder chunkingStrategy(StaticFileChunkingStrategyObjectParam static_)
Alias for calling chunkingStrategy with
FileChunkingStrategyParam.ofStatic(static_). 
- 
                                        
staticChunkingStrategy
final FileCreateParams.Body.Builder staticChunkingStrategy(StaticFileChunkingStrategy static_)
Alias for calling chunkingStrategy with the following:
StaticFileChunkingStrategyObjectParam.builder() .static_(static_) .build() 
- 
                                        
additionalProperties
final FileCreateParams.Body.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
 
- 
                                        
putAdditionalProperty
final FileCreateParams.Body.Builder putAdditionalProperty(String key, JsonValue value)
 
- 
                                        
putAllAdditionalProperties
final FileCreateParams.Body.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
 
- 
                                        
removeAdditionalProperty
final FileCreateParams.Body.Builder removeAdditionalProperty(String key)
 
- 
                                        
removeAllAdditionalProperties
final FileCreateParams.Body.Builder removeAllAdditionalProperties(Set<String> keys)
 
- 
                                        
build
final FileCreateParams.Body build()
Returns an immutable instance of Body.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.fileId() 
 - 
                                        
 
 - 
                                
                            
                                
 
 - 
                    
                    
                    
 
 -