Class ResponseUsage
- 
                    
                    - All Implemented Interfaces:
 
 public final class ResponseUsageRepresents token usage details including input tokens, output tokens, a breakdown of output tokens, and the total tokens used. 
- 
                
                    
                    - 
                                
                            
                                Nested Class SummaryNested Classes Modifier and Type Class Description public final classResponseUsage.BuilderA builder for ResponseUsage. public final classResponseUsage.InputTokensDetailsA detailed breakdown of the input tokens. public final classResponseUsage.OutputTokensDetailsA detailed breakdown of the output tokens. 
 - 
                                
                            
                                Method SummaryModifier and Type Method Description final LonginputTokens()The number of input tokens. final ResponseUsage.InputTokensDetailsinputTokensDetails()A detailed breakdown of the input tokens. final LongoutputTokens()The number of output tokens. final ResponseUsage.OutputTokensDetailsoutputTokensDetails()A detailed breakdown of the output tokens. final LongtotalTokens()The total number of tokens used. final JsonField<Long>_inputTokens()Returns the raw JSON value of inputTokens. final JsonField<ResponseUsage.InputTokensDetails>_inputTokensDetails()Returns the raw JSON value of inputTokensDetails. final JsonField<Long>_outputTokens()Returns the raw JSON value of outputTokens. final JsonField<ResponseUsage.OutputTokensDetails>_outputTokensDetails()Returns the raw JSON value of outputTokensDetails. final JsonField<Long>_totalTokens()Returns the raw JSON value of totalTokens. final Map<String, JsonValue>_additionalProperties()final ResponseUsage.BuildertoBuilder()final ResponseUsagevalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ResponseUsage.Builderbuilder()Returns a mutable builder for constructing an instance of ResponseUsage. - 
                    
                    
                    - 
                                
                            
                                Method Detail- 
                                        inputTokensfinal Long inputTokens() The number of input tokens. 
 - 
                                        inputTokensDetailsfinal ResponseUsage.InputTokensDetails inputTokensDetails() A detailed breakdown of the input tokens. 
 - 
                                        outputTokensfinal Long outputTokens() The number of output tokens. 
 - 
                                        outputTokensDetailsfinal ResponseUsage.OutputTokensDetails outputTokensDetails() A detailed breakdown of the output tokens. 
 - 
                                        totalTokensfinal Long totalTokens() The total number of tokens used. 
 - 
                                        _inputTokensfinal JsonField<Long> _inputTokens() Returns the raw JSON value of inputTokens. Unlike inputTokens, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _inputTokensDetailsfinal JsonField<ResponseUsage.InputTokensDetails> _inputTokensDetails() Returns the raw JSON value of inputTokensDetails. Unlike inputTokensDetails, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _outputTokensfinal JsonField<Long> _outputTokens() Returns the raw JSON value of outputTokens. Unlike outputTokens, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _outputTokensDetailsfinal JsonField<ResponseUsage.OutputTokensDetails> _outputTokensDetails() Returns the raw JSON value of outputTokensDetails. Unlike outputTokensDetails, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _totalTokensfinal JsonField<Long> _totalTokens() Returns the raw JSON value of totalTokens. Unlike totalTokens, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _additionalPropertiesfinal Map<String, JsonValue> _additionalProperties() 
 - 
                                        toBuilderfinal ResponseUsage.Builder toBuilder() 
 - 
                                        validatefinal ResponseUsage validate() 
 - 
                                        builderfinal static ResponseUsage.Builder builder() Returns a mutable builder for constructing an instance of ResponseUsage. The following fields are required: .inputTokens() .inputTokensDetails() .outputTokens() .outputTokensDetails() .totalTokens()
 
- 
                                        
 
- 
                                
                            
                                
 
- 
                    
                    
                    
 
-