Record Class GeminiCaches.GeminiCachedContent.UsageMetadata
java.lang.Object
java.lang.Record
dev.langchain4j.model.googleai.GeminiCaches.GeminiCachedContent.UsageMetadata
- Enclosing class:
GeminiCaches.GeminiCachedContent
-
Constructor Summary
ConstructorsConstructorDescriptionUsageMetadata(Integer totalTokenCount) Creates an instance of aUsageMetadatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.Returns the value of thetotalTokenCountrecord component.
-
Constructor Details
-
UsageMetadata
Creates an instance of aUsageMetadatarecord class.- Parameters:
totalTokenCount- the value for thetotalTokenCountrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
totalTokenCount
Returns the value of thetotalTokenCountrecord component.- Returns:
- the value of the
totalTokenCountrecord component
-