Class ResponseTextDeltaEvent.Builder
- 
                    
                    
- All Implemented Interfaces:
 
public final class ResponseTextDeltaEvent.BuilderA builder for ResponseTextDeltaEvent.
 
- 
                
                    
                    
- 
                                
                            
                                
Method Summary
- 
                    
                    
                    
- 
                                
                            
                                
Method Detail
- 
                                        
contentIndex
final ResponseTextDeltaEvent.Builder contentIndex(Long contentIndex)
The index of the content part that the text delta was added to.
 
- 
                                        
contentIndex
final ResponseTextDeltaEvent.Builder contentIndex(JsonField<Long> contentIndex)
Sets Builder.contentIndex to an arbitrary JSON value.
You should usually call Builder.contentIndex with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
 
- 
                                        
delta
final ResponseTextDeltaEvent.Builder delta(String delta)
The text delta that was added.
 
- 
                                        
delta
final ResponseTextDeltaEvent.Builder delta(JsonField<String> delta)
Sets Builder.delta to an arbitrary JSON value.
You should usually call Builder.delta with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
 
- 
                                        
itemId
final ResponseTextDeltaEvent.Builder itemId(String itemId)
The ID of the output item that the text delta was added to.
 
- 
                                        
itemId
final ResponseTextDeltaEvent.Builder itemId(JsonField<String> itemId)
Sets Builder.itemId to an arbitrary JSON value.
You should usually call Builder.itemId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
 
- 
                                        
logprobs
final ResponseTextDeltaEvent.Builder logprobs(List<ResponseTextDeltaEvent.Logprob> logprobs)
The log probabilities of the tokens in the delta.
 
- 
                                        
logprobs
final ResponseTextDeltaEvent.Builder logprobs(JsonField<List<ResponseTextDeltaEvent.Logprob>> logprobs)
Sets Builder.logprobs to an arbitrary JSON value.
You should usually call Builder.logprobs with a well-typed
List<Logprob>value instead. This method is primarily for setting the field to an undocumented or not yet supported value. 
- 
                                        
addLogprob
final ResponseTextDeltaEvent.Builder addLogprob(ResponseTextDeltaEvent.Logprob logprob)
 
- 
                                        
outputIndex
final ResponseTextDeltaEvent.Builder outputIndex(Long outputIndex)
The index of the output item that the text delta was added to.
 
- 
                                        
outputIndex
final ResponseTextDeltaEvent.Builder outputIndex(JsonField<Long> outputIndex)
Sets Builder.outputIndex to an arbitrary JSON value.
You should usually call Builder.outputIndex with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
 
- 
                                        
sequenceNumber
final ResponseTextDeltaEvent.Builder sequenceNumber(Long sequenceNumber)
The sequence number for this event.
 
- 
                                        
sequenceNumber
final ResponseTextDeltaEvent.Builder sequenceNumber(JsonField<Long> sequenceNumber)
Sets Builder.sequenceNumber to an arbitrary JSON value.
You should usually call Builder.sequenceNumber with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
 
- 
                                        
type
final ResponseTextDeltaEvent.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("response.output_text.delta")This method is primarily for setting the field to an undocumented or not yet supported value.
 
- 
                                        
additionalProperties
final ResponseTextDeltaEvent.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
 
- 
                                        
putAdditionalProperty
final ResponseTextDeltaEvent.Builder putAdditionalProperty(String key, JsonValue value)
 
- 
                                        
putAllAdditionalProperties
final ResponseTextDeltaEvent.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
 
- 
                                        
removeAdditionalProperty
final ResponseTextDeltaEvent.Builder removeAdditionalProperty(String key)
 
- 
                                        
removeAllAdditionalProperties
final ResponseTextDeltaEvent.Builder removeAllAdditionalProperties(Set<String> keys)
 
- 
                                        
build
final ResponseTextDeltaEvent build()
Returns an immutable instance of ResponseTextDeltaEvent.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.contentIndex() .delta() .itemId() .logprobs() .outputIndex() .sequenceNumber() 
 - 
                                        
 
 - 
                                
                            
                                
 
 - 
                    
                    
                    
 
 -