Record Class GroundingMetadata.Segment
java.lang.Object
java.lang.Record
dev.langchain4j.model.googleai.GroundingMetadata.Segment
- Enclosing class:
GroundingMetadata
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionendIndex()Returns the value of theendIndexrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thepartIndexrecord component.Returns the value of thestartIndexrecord component.text()Returns the value of thetextrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Segment
Creates an instance of aSegmentrecord class.- Parameters:
partIndex- the value for thepartIndexrecord componentstartIndex- the value for thestartIndexrecord componentendIndex- the value for theendIndexrecord componenttext- the value for thetextrecord 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). -
partIndex
Returns the value of thepartIndexrecord component.- Returns:
- the value of the
partIndexrecord component
-
startIndex
Returns the value of thestartIndexrecord component.- Returns:
- the value of the
startIndexrecord component
-
endIndex
Returns the value of theendIndexrecord component.- Returns:
- the value of the
endIndexrecord component
-
text
Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord component
-