Record Class OpenAiApi.ChatCompletionRequest.WebSearchOptions.UserLocation.Approximate
java.lang.Object
java.lang.Record
org.springframework.ai.openai.api.OpenAiApi.ChatCompletionRequest.WebSearchOptions.UserLocation.Approximate
- Enclosing class:
- OpenAiApi.ChatCompletionRequest.WebSearchOptions.UserLocation
-
Constructor Summary
ConstructorsConstructorDescriptionApproximate(String city, String country, String region, String timezone) Creates an instance of aApproximaterecord class. -
Method Summary
Modifier and TypeMethodDescriptioncity()Returns the value of thecityrecord component.country()Returns the value of thecountryrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.region()Returns the value of theregionrecord component.timezone()Returns the value of thetimezonerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Approximate
Creates an instance of aApproximaterecord class.- Parameters:
city- the value for thecityrecord componentcountry- the value for thecountryrecord componentregion- the value for theregionrecord componenttimezone- the value for thetimezonerecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
city
Returns the value of thecityrecord component.- Returns:
- the value of the
cityrecord component
-
country
Returns the value of thecountryrecord component.- Returns:
- the value of the
countryrecord component
-
region
Returns the value of theregionrecord component.- Returns:
- the value of the
regionrecord component
-
timezone
Returns the value of thetimezonerecord component.- Returns:
- the value of the
timezonerecord component
-