Class ChatCompletionUserMessageParam.Content
- 
                    
                    - All Implemented Interfaces:
 
 public final class ChatCompletionUserMessageParam.ContentThe contents of the user message. 
- 
                
                    
                    - 
                                
                            
                                Nested Class SummaryNested Classes Modifier and Type Class Description public interfaceChatCompletionUserMessageParam.Content.VisitorAn interface that defines how to map each variant of Content to a value of type T. 
 - 
                                
                            
                                Method SummaryModifier and Type Method Description final Optional<String>text()The text contents of the message. final Optional<List<ChatCompletionContentPart>>arrayOfContentParts()An array of content parts with a defined type. final BooleanisText()final BooleanisArrayOfContentParts()final StringasText()The text contents of the message. final List<ChatCompletionContentPart>asArrayOfContentParts()An array of content parts with a defined type. final Optional<JsonValue>_json()final <T extends Any> Taccept(ChatCompletionUserMessageParam.Content.Visitor<T> visitor)final ChatCompletionUserMessageParam.Contentvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ChatCompletionUserMessageParam.ContentofText(String text)The text contents of the message. final static ChatCompletionUserMessageParam.ContentofArrayOfContentParts(List<ChatCompletionContentPart> arrayOfContentParts)An array of content parts with a defined type. - 
                    
                    
                    - 
                                
                            
                                Method Detail- 
                                        arrayOfContentPartsfinal Optional<List<ChatCompletionContentPart>> arrayOfContentParts() An array of content parts with a defined type. Supported options differ based on the model being used to generate the response. Can contain text, image, or audio inputs. 
 - 
                                        isArrayOfContentPartsfinal Boolean isArrayOfContentParts() 
 - 
                                        asArrayOfContentPartsfinal List<ChatCompletionContentPart> asArrayOfContentParts() An array of content parts with a defined type. Supported options differ based on the model being used to generate the response. Can contain text, image, or audio inputs. 
 - 
                                        acceptfinal <T extends Any> T accept(ChatCompletionUserMessageParam.Content.Visitor<T> visitor) 
 - 
                                        validatefinal ChatCompletionUserMessageParam.Content validate() 
 - 
                                        ofTextfinal static ChatCompletionUserMessageParam.Content ofText(String text) The text contents of the message. 
 - 
                                        ofArrayOfContentPartsfinal static ChatCompletionUserMessageParam.Content ofArrayOfContentParts(List<ChatCompletionContentPart> arrayOfContentParts) An array of content parts with a defined type. Supported options differ based on the model being used to generate the response. Can contain text, image, or audio inputs. 
 
- 
                                        
 
- 
                                
                            
                                
 
- 
                    
                    
                    
 
-