target.apidocs.com.google.api.services.directory.model.Building.html Maven / Gradle / Ivy
Building (Admin SDK API directory_v1-rev20220125-1.32.1)
com.google.api.services.directory.model
Class Building
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.directory.model.Building
-
public final class Building
extends GenericJson
Public API: Resources.buildings
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 Admin SDK API. For a detailed explanation see:
https://developers.google.com/api-client-library/java/google-http-java-client/json
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
Building()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Building
clone()
BuildingAddress
getAddress()
The postal address of the building.
String
getBuildingId()
Unique identifier for the building.
String
getBuildingName()
The building name as seen by users in Calendar.
BuildingCoordinates
getCoordinates()
The geographic coordinates of the center of the building, expressed as latitude and longitude
in decimal degrees.
String
getDescription()
A brief description of the building.
String
getEtags()
ETag of the resource.
List<String>
getFloorNames()
The display names for all floors in this building.
String
getKind()
Kind of resource this is.
Building
set(String fieldName,
Object value)
Building
setAddress(BuildingAddress address)
The postal address of the building.
Building
setBuildingId(String buildingId)
Unique identifier for the building.
Building
setBuildingName(String buildingName)
The building name as seen by users in Calendar.
Building
setCoordinates(BuildingCoordinates coordinates)
The geographic coordinates of the center of the building, expressed as latitude and longitude
in decimal degrees.
Building
setDescription(String description)
A brief description of the building.
Building
setEtags(String etags)
ETag of the resource.
Building
setFloorNames(List<String> floorNames)
The display names for all floors in this building.
Building
setKind(String kind)
Kind of resource this is.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getAddress
public BuildingAddress getAddress()
The postal address of the building. See [`PostalAddress`](/my-
business/reference/rest/v4/PostalAddress) for details. Note that only a single address line and
region code are required.
- Returns:
- value or
null
for none
-
setAddress
public Building setAddress(BuildingAddress address)
The postal address of the building. See [`PostalAddress`](/my-
business/reference/rest/v4/PostalAddress) for details. Note that only a single address line and
region code are required.
- Parameters:
address
- address or null
for none
-
getBuildingId
public String getBuildingId()
Unique identifier for the building. The maximum length is 100 characters.
- Returns:
- value or
null
for none
-
setBuildingId
public Building setBuildingId(String buildingId)
Unique identifier for the building. The maximum length is 100 characters.
- Parameters:
buildingId
- buildingId or null
for none
-
getBuildingName
public String getBuildingName()
The building name as seen by users in Calendar. Must be unique for the customer. For example,
"NYC-CHEL". The maximum length is 100 characters.
- Returns:
- value or
null
for none
-
setBuildingName
public Building setBuildingName(String buildingName)
The building name as seen by users in Calendar. Must be unique for the customer. For example,
"NYC-CHEL". The maximum length is 100 characters.
- Parameters:
buildingName
- buildingName or null
for none
-
getCoordinates
public BuildingCoordinates getCoordinates()
The geographic coordinates of the center of the building, expressed as latitude and longitude
in decimal degrees.
- Returns:
- value or
null
for none
-
setCoordinates
public Building setCoordinates(BuildingCoordinates coordinates)
The geographic coordinates of the center of the building, expressed as latitude and longitude
in decimal degrees.
- Parameters:
coordinates
- coordinates or null
for none
-
getDescription
public String getDescription()
A brief description of the building. For example, "Chelsea Market".
- Returns:
- value or
null
for none
-
setDescription
public Building setDescription(String description)
A brief description of the building. For example, "Chelsea Market".
- Parameters:
description
- description or null
for none
-
getEtags
public String getEtags()
ETag of the resource.
- Returns:
- value or
null
for none
-
setEtags
public Building setEtags(String etags)
ETag of the resource.
- Parameters:
etags
- etags or null
for none
-
getFloorNames
public List<String> getFloorNames()
The display names for all floors in this building. The floors are expected to be sorted in
ascending order, from lowest floor to highest floor. For example, ["B2", "B1", "L", "1", "2",
"2M", "3", "PH"] Must contain at least one entry.
- Returns:
- value or
null
for none
-
setFloorNames
public Building setFloorNames(List<String> floorNames)
The display names for all floors in this building. The floors are expected to be sorted in
ascending order, from lowest floor to highest floor. For example, ["B2", "B1", "L", "1", "2",
"2M", "3", "PH"] Must contain at least one entry.
- Parameters:
floorNames
- floorNames or null
for none
-
getKind
public String getKind()
Kind of resource this is.
- Returns:
- value or
null
for none
-
setKind
public Building setKind(String kind)
Kind of resource this is.
- Parameters:
kind
- kind or null
for none
-
set
public Building set(String fieldName,
Object value)
- Overrides:
set
in class GenericJson
-
clone
public Building clone()
- Overrides:
clone
in class GenericJson
Copyright © 2011–2022 Google. All rights reserved.