Class BetaManagedAgentsUserLocation
-
- All Implemented Interfaces:
public final class BetaManagedAgentsUserLocationApproximate user location for search result localization.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaManagedAgentsUserLocation.BuilderA builder for BetaManagedAgentsUserLocation.
-
Method Summary
Modifier and Type Method Description final Optional<String>city()City name. final Optional<String>country()Two-letter ISO 3166-1 country code, uppercase. final Optional<String>region()Region or state name. final Optional<String>timezone()IANA timezone identifier, e.g. final JsonValue_type()Location precision. final JsonField<String>_city()Returns the raw JSON value of city. final JsonField<String>_country()Returns the raw JSON value of country. final JsonField<String>_region()Returns the raw JSON value of region. final JsonField<String>_timezone()Returns the raw JSON value of timezone. final Map<String, JsonValue>_additionalProperties()final BetaManagedAgentsUserLocation.BuildertoBuilder()final BetaManagedAgentsUserLocationvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaManagedAgentsUserLocation.Builderbuilder()Returns a mutable builder for constructing an instance of BetaManagedAgentsUserLocation. -
-
Method Detail
-
_type
final JsonValue _type()
Location precision. Only "approximate" is supported.
Expected to always return the following:
JsonValue.from("approximate")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_city
final JsonField<String> _city()
Returns the raw JSON value of city.
Unlike city, this method doesn't throw if the JSON field has an unexpected type.
-
_country
final JsonField<String> _country()
Returns the raw JSON value of country.
Unlike country, this method doesn't throw if the JSON field has an unexpected type.
-
_region
final JsonField<String> _region()
Returns the raw JSON value of region.
Unlike region, this method doesn't throw if the JSON field has an unexpected type.
-
_timezone
final JsonField<String> _timezone()
Returns the raw JSON value of timezone.
Unlike timezone, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaManagedAgentsUserLocation.Builder toBuilder()
-
validate
final BetaManagedAgentsUserLocation validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static BetaManagedAgentsUserLocation.Builder builder()
Returns a mutable builder for constructing an instance of BetaManagedAgentsUserLocation.
-
-
-
-