Class Message.Attachment.Builder
- 
                    
                    
- All Implemented Interfaces:
 
public final class Message.Attachment.BuilderA builder for Attachment.
 
- 
                
                    
                    
- 
                                
                            
                                
Method Summary
- 
                    
                    
                    
- 
                                
                            
                                
Method Detail
- 
                                        
fileId
final Message.Attachment.Builder fileId(String fileId)
The ID of the file to attach to the message.
 
- 
                                        
fileId
final Message.Attachment.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.
 
- 
                                        
tools
final Message.Attachment.Builder tools(List<Message.Attachment.Tool> tools)
The tools to add this file to.
 
- 
                                        
tools
final Message.Attachment.Builder tools(JsonField<List<Message.Attachment.Tool>> tools)
Sets Builder.tools to an arbitrary JSON value.
You should usually call Builder.tools with a well-typed
List<Tool>value instead. This method is primarily for setting the field to an undocumented or not yet supported value. 
- 
                                        
addTool
final Message.Attachment.Builder addTool(Message.Attachment.Tool tool)
 
- 
                                        
addTool
final Message.Attachment.Builder addTool(CodeInterpreterTool codeInterpreter)
Alias for calling addTool with
Tool.ofCodeInterpreter(codeInterpreter). 
- 
                                        
addToolAssistantToolsFileSearchTypeOnly
final Message.Attachment.Builder addToolAssistantToolsFileSearchTypeOnly()
Alias for calling addTool with
Tool.ofAssistantToolsFileSearchTypeOnly(). 
- 
                                        
additionalProperties
final Message.Attachment.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
 
- 
                                        
putAdditionalProperty
final Message.Attachment.Builder putAdditionalProperty(String key, JsonValue value)
 
- 
                                        
putAllAdditionalProperties
final Message.Attachment.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
 
- 
                                        
removeAdditionalProperty
final Message.Attachment.Builder removeAdditionalProperty(String key)
 
- 
                                        
removeAllAdditionalProperties
final Message.Attachment.Builder removeAllAdditionalProperties(Set<String> keys)
 
- 
                                        
build
final Message.Attachment build()
Returns an immutable instance of Attachment.
Further updates to this Builder will not mutate the returned instance.
 
 - 
                                        
 
 - 
                                
                            
                                
 
 - 
                    
                    
                    
 
 -