Record Class GroundingMetadata.GroundingChunk
java.lang.Object
java.lang.Record
dev.langchain4j.model.googleai.GroundingMetadata.GroundingChunk
- Enclosing class:
GroundingMetadata
public static record GroundingMetadata.GroundingChunk(GroundingMetadata.GroundingChunk.Web web, GroundingMetadata.GroundingChunk.RetrievedContext retrievedContext, GroundingMetadata.GroundingChunk.Maps maps)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionGroundingChunk(GroundingMetadata.GroundingChunk.Web web, GroundingMetadata.GroundingChunk.RetrievedContext retrievedContext, GroundingMetadata.GroundingChunk.Maps maps) Creates an instance of aGroundingChunkrecord 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.maps()Returns the value of themapsrecord component.Returns the value of theretrievedContextrecord component.final StringtoString()Returns a string representation of this record class.web()Returns the value of thewebrecord component.
-
Constructor Details
-
GroundingChunk
public GroundingChunk(GroundingMetadata.GroundingChunk.Web web, GroundingMetadata.GroundingChunk.RetrievedContext retrievedContext, GroundingMetadata.GroundingChunk.Maps maps) Creates an instance of aGroundingChunkrecord class.- Parameters:
web- the value for thewebrecord componentretrievedContext- the value for theretrievedContextrecord componentmaps- the value for themapsrecord 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). -
web
Returns the value of thewebrecord component.- Returns:
- the value of the
webrecord component
-
retrievedContext
Returns the value of theretrievedContextrecord component.- Returns:
- the value of the
retrievedContextrecord component
-
maps
Returns the value of themapsrecord component.- Returns:
- the value of the
mapsrecord component
-