Class ChatCompletionCreateParams.WebSearchOptions.UserLocation.Approximate.Builder
-
- All Implemented Interfaces:
public final class ChatCompletionCreateParams.WebSearchOptions.UserLocation.Approximate.Builder
A builder for Approximate.
-
-
Method Summary
-
-
Method Detail
-
city
final ChatCompletionCreateParams.WebSearchOptions.UserLocation.Approximate.Builder city(String city)
Free text input for the city of the user, e.g.
San Francisco
.
-
city
final ChatCompletionCreateParams.WebSearchOptions.UserLocation.Approximate.Builder city(JsonField<String> city)
Sets Builder.city to an arbitrary JSON value.
You should usually call Builder.city with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
country
final ChatCompletionCreateParams.WebSearchOptions.UserLocation.Approximate.Builder country(String country)
The two-letter ISO country code of the user, e.g.
US
.
-
country
final ChatCompletionCreateParams.WebSearchOptions.UserLocation.Approximate.Builder country(JsonField<String> country)
Sets Builder.country to an arbitrary JSON value.
You should usually call Builder.country with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
region
final ChatCompletionCreateParams.WebSearchOptions.UserLocation.Approximate.Builder region(String region)
Free text input for the region of the user, e.g.
California
.
-
region
final ChatCompletionCreateParams.WebSearchOptions.UserLocation.Approximate.Builder region(JsonField<String> region)
Sets Builder.region to an arbitrary JSON value.
You should usually call Builder.region with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
timezone
final ChatCompletionCreateParams.WebSearchOptions.UserLocation.Approximate.Builder timezone(String timezone)
The IANA timezone of the user, e.g.
America/Los_Angeles
.
-
timezone
final ChatCompletionCreateParams.WebSearchOptions.UserLocation.Approximate.Builder timezone(JsonField<String> timezone)
Sets Builder.timezone to an arbitrary JSON value.
You should usually call Builder.timezone with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ChatCompletionCreateParams.WebSearchOptions.UserLocation.Approximate.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ChatCompletionCreateParams.WebSearchOptions.UserLocation.Approximate.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ChatCompletionCreateParams.WebSearchOptions.UserLocation.Approximate.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ChatCompletionCreateParams.WebSearchOptions.UserLocation.Approximate.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ChatCompletionCreateParams.WebSearchOptions.UserLocation.Approximate.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ChatCompletionCreateParams.WebSearchOptions.UserLocation.Approximate build()
Returns an immutable instance of Approximate.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-