public final class Location
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Google My Business API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
Location() |
Modifier and Type | Method and Description |
---|---|
Location |
clone() |
java.util.List<Category> |
getAdditionalCategories()
Additional categories to describe your business.
|
java.util.List<java.lang.String> |
getAdditionalPhones()
Up to two phone numbers (mobile or landline, no fax) at which your business can be called, in
addition to your primary phone number.
|
PostalAddress |
getAddress()
A precise, accurate address to describe your business location.
|
AdWordsLocationExtensions |
getAdWordsLocationExtensions()
Additional information that is surfaced in AdWords.
|
java.util.List<Attribute> |
getAttributes()
Attributes for this location.
|
java.util.List<java.lang.String> |
getLabels()
A collection of free-form strings to allow you to tag your business.
|
java.lang.String |
getLanguageCode()
The language of the location.
|
LatLng |
getLatlng()
User-provided latitude and longitude.
|
LocationKey |
getLocationKey()
A collection of keys that link this business to other Google properties, such as a Google+ page
and Google Maps Places.
|
java.lang.String |
getLocationName()
Location name should reflect your business's real-world name, as used consistently on your
storefront, website, and stationery, and as known to customers.
|
LocationState |
getLocationState()
Output only.
|
Metadata |
getMetadata()
Output Only.
|
java.lang.String |
getName()
Google identifier for this location in the form:
`accounts/{account_id}/locations/{location_id}`
In the context of matches, this field will not be populated.
|
OpenInfo |
getOpenInfo()
A flag that indicates whether the location is currently open for business.
|
java.util.List<PriceList> |
getPriceLists()
Price list information for this location.
|
Category |
getPrimaryCategory()
Category that best describes the core business this location engages in.
|
java.lang.String |
getPrimaryPhone()
A phone number that connects to your individual business location as directly as possible.
|
Profile |
getProfile()
Describes your business in your own voice and shares with users the unique story of your
business and offerings.
|
BusinessHours |
getRegularHours()
Operating hours for the business.
|
RelationshipData |
getRelationshipData()
All locations and chain related to this one.
|
ServiceAreaBusiness |
getServiceArea()
Service area businesses provide their service at the customer's location.
|
SpecialHours |
getSpecialHours()
Special hours for the business.
|
java.lang.String |
getStoreCode()
External identifier for this location, which must be unique inside a given account.
|
java.lang.String |
getWebsiteUrl()
A URL for this business.
|
Location |
set(java.lang.String fieldName,
java.lang.Object value) |
Location |
setAdditionalCategories(java.util.List<Category> additionalCategories)
Additional categories to describe your business.
|
Location |
setAdditionalPhones(java.util.List<java.lang.String> additionalPhones)
Up to two phone numbers (mobile or landline, no fax) at which your business can be called, in
addition to your primary phone number.
|
Location |
setAddress(PostalAddress address)
A precise, accurate address to describe your business location.
|
Location |
setAdWordsLocationExtensions(AdWordsLocationExtensions adWordsLocationExtensions)
Additional information that is surfaced in AdWords.
|
Location |
setAttributes(java.util.List<Attribute> attributes)
Attributes for this location.
|
Location |
setLabels(java.util.List<java.lang.String> labels)
A collection of free-form strings to allow you to tag your business.
|
Location |
setLanguageCode(java.lang.String languageCode)
The language of the location.
|
Location |
setLatlng(LatLng latlng)
User-provided latitude and longitude.
|
Location |
setLocationKey(LocationKey locationKey)
A collection of keys that link this business to other Google properties, such as a Google+ page
and Google Maps Places.
|
Location |
setLocationName(java.lang.String locationName)
Location name should reflect your business's real-world name, as used consistently on your
storefront, website, and stationery, and as known to customers.
|
Location |
setLocationState(LocationState locationState)
Output only.
|
Location |
setMetadata(Metadata metadata)
Output Only.
|
Location |
setName(java.lang.String name)
Google identifier for this location in the form:
`accounts/{account_id}/locations/{location_id}`
In the context of matches, this field will not be populated.
|
Location |
setOpenInfo(OpenInfo openInfo)
A flag that indicates whether the location is currently open for business.
|
Location |
setPriceLists(java.util.List<PriceList> priceLists)
Price list information for this location.
|
Location |
setPrimaryCategory(Category primaryCategory)
Category that best describes the core business this location engages in.
|
Location |
setPrimaryPhone(java.lang.String primaryPhone)
A phone number that connects to your individual business location as directly as possible.
|
Location |
setProfile(Profile profile)
Describes your business in your own voice and shares with users the unique story of your
business and offerings.
|
Location |
setRegularHours(BusinessHours regularHours)
Operating hours for the business.
|
Location |
setRelationshipData(RelationshipData relationshipData)
All locations and chain related to this one.
|
Location |
setServiceArea(ServiceAreaBusiness serviceArea)
Service area businesses provide their service at the customer's location.
|
Location |
setSpecialHours(SpecialHours specialHours)
Special hours for the business.
|
Location |
setStoreCode(java.lang.String storeCode)
External identifier for this location, which must be unique inside a given account.
|
Location |
setWebsiteUrl(java.lang.String websiteUrl)
A URL for this business.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public AdWordsLocationExtensions getAdWordsLocationExtensions()
null
for nonepublic Location setAdWordsLocationExtensions(AdWordsLocationExtensions adWordsLocationExtensions)
adWordsLocationExtensions
- adWordsLocationExtensions or null
for nonepublic java.util.List<Category> getAdditionalCategories()
null
for nonepublic Location setAdditionalCategories(java.util.List<Category> additionalCategories)
additionalCategories
- additionalCategories or null
for nonepublic java.util.List<java.lang.String> getAdditionalPhones()
null
for nonepublic Location setAdditionalPhones(java.util.List<java.lang.String> additionalPhones)
additionalPhones
- additionalPhones or null
for nonepublic PostalAddress getAddress()
null
for nonepublic Location setAddress(PostalAddress address)
address
- address or null
for nonepublic java.util.List<Attribute> getAttributes()
null
for nonepublic Location setAttributes(java.util.List<Attribute> attributes)
attributes
- attributes or null
for nonepublic java.util.List<java.lang.String> getLabels()
null
for nonepublic Location setLabels(java.util.List<java.lang.String> labels)
labels
- labels or null
for nonepublic java.lang.String getLanguageCode()
null
for nonepublic Location setLanguageCode(java.lang.String languageCode)
languageCode
- languageCode or null
for nonepublic LatLng getLatlng()
null
for nonepublic Location setLatlng(LatLng latlng)
latlng
- latlng or null
for nonepublic LocationKey getLocationKey()
null
for nonepublic Location setLocationKey(LocationKey locationKey)
locationKey
- locationKey or null
for nonepublic java.lang.String getLocationName()
null
for nonepublic Location setLocationName(java.lang.String locationName)
locationName
- locationName or null
for nonepublic LocationState getLocationState()
null
for nonepublic Location setLocationState(LocationState locationState)
locationState
- locationState or null
for nonepublic Metadata getMetadata()
null
for nonepublic Location setMetadata(Metadata metadata)
metadata
- metadata or null
for nonepublic java.lang.String getName()
null
for nonepublic Location setName(java.lang.String name)
name
- name or null
for nonepublic OpenInfo getOpenInfo()
null
for nonepublic Location setOpenInfo(OpenInfo openInfo)
openInfo
- openInfo or null
for nonepublic java.util.List<PriceList> getPriceLists()
null
for nonepublic Location setPriceLists(java.util.List<PriceList> priceLists)
priceLists
- priceLists or null
for nonepublic Category getPrimaryCategory()
null
for nonepublic Location setPrimaryCategory(Category primaryCategory)
primaryCategory
- primaryCategory or null
for nonepublic java.lang.String getPrimaryPhone()
null
for nonepublic Location setPrimaryPhone(java.lang.String primaryPhone)
primaryPhone
- primaryPhone or null
for nonepublic Profile getProfile()
null
for nonepublic Location setProfile(Profile profile)
profile
- profile or null
for nonepublic BusinessHours getRegularHours()
null
for nonepublic Location setRegularHours(BusinessHours regularHours)
regularHours
- regularHours or null
for nonepublic RelationshipData getRelationshipData()
null
for nonepublic Location setRelationshipData(RelationshipData relationshipData)
relationshipData
- relationshipData or null
for nonepublic ServiceAreaBusiness getServiceArea()
null
for nonepublic Location setServiceArea(ServiceAreaBusiness serviceArea)
serviceArea
- serviceArea or null
for nonepublic SpecialHours getSpecialHours()
null
for nonepublic Location setSpecialHours(SpecialHours specialHours)
specialHours
- specialHours or null
for nonepublic java.lang.String getStoreCode()
null
for nonepublic Location setStoreCode(java.lang.String storeCode)
storeCode
- storeCode or null
for nonepublic java.lang.String getWebsiteUrl()
null
for nonepublic Location setWebsiteUrl(java.lang.String websiteUrl)
websiteUrl
- websiteUrl or null
for nonepublic Location set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public Location clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011-2018 Google. All Rights Reserved.