001// Generated by delombok at Thu Aug 13 13:56:44 UTC 2026 002/* 003 * Copyright (c) 2010-2026 Mark Allen, Norbert Bartels. 004 * 005 * Permission is hereby granted, free of charge, to any person obtaining a copy 006 * of this software and associated documentation files (the "Software"), to deal 007 * in the Software without restriction, including without limitation the rights 008 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 009 * copies of the Software, and to permit persons to whom the Software is 010 * furnished to do so, subject to the following conditions: 011 * 012 * The above copyright notice and this permission notice shall be included in 013 * all copies or substantial portions of the Software. 014 * 015 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 016 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 017 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 018 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 019 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 020 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 021 * THE SOFTWARE. 022 */ 023package com.restfb.types; 024 025import com.restfb.Facebook; 026 027/** 028 * Represents a location (address and latitude/longitude). 029 * <p> 030 * This is used by several Graph API types, e.g. <tt>{@link Post}</tt> and <tt>{@link Page}</tt>. 031 * 032 * @author <a href="http://restfb.com">Mark Allen</a> 033 * @since 1.6.8 034 */ 035public class Location extends FacebookType { 036 /** 037 * The street address of this location. 038 */ 039 @Facebook 040 private String street; 041 /** 042 * The city name of this location. 043 */ 044 @Facebook 045 private String city; 046 /** 047 * City ID. Any city identified is also a city you can use for targeting ads. 048 */ 049 @Facebook("city_id") 050 private String cityId; 051 /** 052 * The state name of this location. 053 */ 054 @Facebook 055 private String state; 056 /** 057 * The country name of this location. 058 */ 059 @Facebook 060 private String country; 061 /** 062 * Country code 063 */ 064 @Facebook("country_code") 065 private String countryCode; 066 /** 067 * The postal code of this location. 068 */ 069 @Facebook 070 private String zip; 071 /** 072 * The latitude of this location. 073 */ 074 @Facebook 075 private Double latitude; 076 /** 077 * The longitude of this location. 078 */ 079 @Facebook 080 private Double longitude; 081 /** 082 * The region of this location. 083 */ 084 @Facebook 085 private String region; 086 /** 087 * Region ID. Specifies a geographic region, such as California. An identified region is the same as one you can use 088 * to target ads. 089 */ 090 @Facebook("region_id") 091 private String regionId; 092 /** 093 * The name of this location. 094 */ 095 @Facebook 096 private String name; 097 /** 098 * The parent location if this location is located within another location. 099 */ 100 @Facebook("located_in") 101 private String locatedIn; 102 private static final long serialVersionUID = 1L; 103 104 /** 105 * The street address of this location. 106 * 107 * @return The street address of this location. 108 */ 109 @java.lang.SuppressWarnings("all") 110 @lombok.Generated 111 public String getStreet() { 112 return this.street; 113 } 114 115 /** 116 * The street address of this location. 117 */ 118 @java.lang.SuppressWarnings("all") 119 @lombok.Generated 120 public void setStreet(final String street) { 121 this.street = street; 122 } 123 124 /** 125 * The city name of this location. 126 * 127 * @return The city name of this location. 128 */ 129 @java.lang.SuppressWarnings("all") 130 @lombok.Generated 131 public String getCity() { 132 return this.city; 133 } 134 135 /** 136 * The city name of this location. 137 */ 138 @java.lang.SuppressWarnings("all") 139 @lombok.Generated 140 public void setCity(final String city) { 141 this.city = city; 142 } 143 144 /** 145 * City ID. Any city identified is also a city you can use for targeting ads. 146 */ 147 @java.lang.SuppressWarnings("all") 148 @lombok.Generated 149 public String getCityId() { 150 return this.cityId; 151 } 152 153 /** 154 * City ID. Any city identified is also a city you can use for targeting ads. 155 */ 156 @java.lang.SuppressWarnings("all") 157 @lombok.Generated 158 public void setCityId(final String cityId) { 159 this.cityId = cityId; 160 } 161 162 /** 163 * The state name of this location. 164 * 165 * @return The state name of this location. 166 */ 167 @java.lang.SuppressWarnings("all") 168 @lombok.Generated 169 public String getState() { 170 return this.state; 171 } 172 173 /** 174 * The state name of this location. 175 */ 176 @java.lang.SuppressWarnings("all") 177 @lombok.Generated 178 public void setState(final String state) { 179 this.state = state; 180 } 181 182 /** 183 * The country name of this location. 184 * 185 * @return The country name of this location. 186 */ 187 @java.lang.SuppressWarnings("all") 188 @lombok.Generated 189 public String getCountry() { 190 return this.country; 191 } 192 193 /** 194 * The country name of this location. 195 */ 196 @java.lang.SuppressWarnings("all") 197 @lombok.Generated 198 public void setCountry(final String country) { 199 this.country = country; 200 } 201 202 /** 203 * Country code 204 * 205 * @return the country code 206 */ 207 @java.lang.SuppressWarnings("all") 208 @lombok.Generated 209 public String getCountryCode() { 210 return this.countryCode; 211 } 212 213 /** 214 * Country code 215 */ 216 @java.lang.SuppressWarnings("all") 217 @lombok.Generated 218 public void setCountryCode(final String countryCode) { 219 this.countryCode = countryCode; 220 } 221 222 /** 223 * The postal code of this location. 224 * 225 * @return The postal code of this location. 226 */ 227 @java.lang.SuppressWarnings("all") 228 @lombok.Generated 229 public String getZip() { 230 return this.zip; 231 } 232 233 /** 234 * The postal code of this location. 235 */ 236 @java.lang.SuppressWarnings("all") 237 @lombok.Generated 238 public void setZip(final String zip) { 239 this.zip = zip; 240 } 241 242 /** 243 * The latitude of this location. 244 * 245 * @return The latitude of this location. 246 */ 247 @java.lang.SuppressWarnings("all") 248 @lombok.Generated 249 public Double getLatitude() { 250 return this.latitude; 251 } 252 253 /** 254 * The latitude of this location. 255 */ 256 @java.lang.SuppressWarnings("all") 257 @lombok.Generated 258 public void setLatitude(final Double latitude) { 259 this.latitude = latitude; 260 } 261 262 /** 263 * The longitude of this location. 264 * 265 * @return The longitude of this location. 266 */ 267 @java.lang.SuppressWarnings("all") 268 @lombok.Generated 269 public Double getLongitude() { 270 return this.longitude; 271 } 272 273 /** 274 * The longitude of this location. 275 */ 276 @java.lang.SuppressWarnings("all") 277 @lombok.Generated 278 public void setLongitude(final Double longitude) { 279 this.longitude = longitude; 280 } 281 282 /** 283 * The region of this location. 284 * 285 * @return The region of this location 286 */ 287 @java.lang.SuppressWarnings("all") 288 @lombok.Generated 289 public String getRegion() { 290 return this.region; 291 } 292 293 /** 294 * The region of this location. 295 */ 296 @java.lang.SuppressWarnings("all") 297 @lombok.Generated 298 public void setRegion(final String region) { 299 this.region = region; 300 } 301 302 /** 303 * Region ID. Specifies a geographic region, such as California. An identified region is the same as one you can use 304 * to target ads. 305 * 306 * @return the region id 307 */ 308 @java.lang.SuppressWarnings("all") 309 @lombok.Generated 310 public String getRegionId() { 311 return this.regionId; 312 } 313 314 /** 315 * Region ID. Specifies a geographic region, such as California. An identified region is the same as one you can use 316 * to target ads. 317 */ 318 @java.lang.SuppressWarnings("all") 319 @lombok.Generated 320 public void setRegionId(final String regionId) { 321 this.regionId = regionId; 322 } 323 324 /** 325 * The name of this location. 326 * 327 * @return The name of this location 328 */ 329 @java.lang.SuppressWarnings("all") 330 @lombok.Generated 331 public String getName() { 332 return this.name; 333 } 334 335 /** 336 * The name of this location. 337 */ 338 @java.lang.SuppressWarnings("all") 339 @lombok.Generated 340 public void setName(final String name) { 341 this.name = name; 342 } 343 344 /** 345 * The parent location if this location is located within another location. 346 * 347 * @return The parent location if this location is located within another location 348 */ 349 @java.lang.SuppressWarnings("all") 350 @lombok.Generated 351 public String getLocatedIn() { 352 return this.locatedIn; 353 } 354 355 /** 356 * The parent location if this location is located within another location. 357 */ 358 @java.lang.SuppressWarnings("all") 359 @lombok.Generated 360 public void setLocatedIn(final String locatedIn) { 361 this.locatedIn = locatedIn; 362 } 363}