Class ConversationItemContent.Builder
- 
                    
                    
- All Implemented Interfaces:
 
public final class ConversationItemContent.BuilderA builder for ConversationItemContent.
 
- 
                
                    
                    
- 
                                
                            
                                
Method Summary
- 
                    
                    
                    
- 
                                
                            
                                
Method Detail
- 
                                        
id
final ConversationItemContent.Builder id(String id)
ID of a previous conversation item to reference (for
item_referencecontent types inresponse.createevents). These can reference both client and server created items. 
- 
                                        
id
final ConversationItemContent.Builder id(JsonField<String> id)
Sets Builder.id to an arbitrary JSON value.
You should usually call Builder.id with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
 
- 
                                        
audio
final ConversationItemContent.Builder audio(String audio)
Base64-encoded audio bytes, used for
input_audiocontent type. 
- 
                                        
audio
final ConversationItemContent.Builder audio(JsonField<String> audio)
Sets Builder.audio to an arbitrary JSON value.
You should usually call Builder.audio with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
 
- 
                                        
text
final ConversationItemContent.Builder text(String text)
The text content, used for
input_textandtextcontent types. 
- 
                                        
text
final ConversationItemContent.Builder text(JsonField<String> text)
Sets Builder.text to an arbitrary JSON value.
You should usually call Builder.text with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
 
- 
                                        
transcript
final ConversationItemContent.Builder transcript(String transcript)
The transcript of the audio, used for
input_audioandaudiocontent types. 
- 
                                        
transcript
final ConversationItemContent.Builder transcript(JsonField<String> transcript)
Sets Builder.transcript to an arbitrary JSON value.
You should usually call Builder.transcript 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 ConversationItemContent.Builder type(ConversationItemContent.Type type)
The content type (
input_text,input_audio,item_reference,text,audio). 
- 
                                        
type
final ConversationItemContent.Builder type(JsonField<ConversationItemContent.Type> type)
Sets Builder.type to an arbitrary JSON value.
You should usually call Builder.type with a well-typed Type value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
 
- 
                                        
additionalProperties
final ConversationItemContent.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
 
- 
                                        
putAdditionalProperty
final ConversationItemContent.Builder putAdditionalProperty(String key, JsonValue value)
 
- 
                                        
putAllAdditionalProperties
final ConversationItemContent.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
 
- 
                                        
removeAdditionalProperty
final ConversationItemContent.Builder removeAdditionalProperty(String key)
 
- 
                                        
removeAllAdditionalProperties
final ConversationItemContent.Builder removeAllAdditionalProperties(Set<String> keys)
 
- 
                                        
build
final ConversationItemContent build()
Returns an immutable instance of ConversationItemContent.
Further updates to this Builder will not mutate the returned instance.
 
 - 
                                        
 
 - 
                                
                            
                                
 
 - 
                    
                    
                    
 
 -