target.apidocs.com.google.api.services.directory.model.CalendarResource.html Maven / Gradle / Ivy
CalendarResource (Admin SDK API directory_v1-rev20220802-2.0.0)
com.google.api.services.directory.model
Class CalendarResource
- 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.CalendarResource
-
public final class CalendarResource
extends GenericJson
Public API: Resources.calendars
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
CalendarResource()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
CalendarResource
clone()
String
getBuildingId()
Unique ID for the building a resource is located in.
Integer
getCapacity()
Capacity of a resource, number of seats in a room.
String
getEtags()
ETag of the resource.
Object
getFeatureInstances()
Instances of features for the calendar resource.
String
getFloorName()
Name of the floor a resource is located on.
String
getFloorSection()
Name of the section within a floor a resource is located in.
String
getGeneratedResourceName()
The read-only auto-generated name of the calendar resource which includes metadata about the
resource such as building name, floor, capacity, etc.
String
getKind()
The type of the resource.
String
getResourceCategory()
The category of the calendar resource.
String
getResourceDescription()
Description of the resource, visible only to admins.
String
getResourceEmail()
The read-only email for the calendar resource.
String
getResourceId()
The unique ID for the calendar resource.
String
getResourceName()
The name of the calendar resource.
String
getResourceType()
The type of the calendar resource, intended for non-room resources.
String
getUserVisibleDescription()
Description of the resource, visible to users and admins.
CalendarResource
set(String fieldName,
Object value)
CalendarResource
setBuildingId(String buildingId)
Unique ID for the building a resource is located in.
CalendarResource
setCapacity(Integer capacity)
Capacity of a resource, number of seats in a room.
CalendarResource
setEtags(String etags)
ETag of the resource.
CalendarResource
setFeatureInstances(Object featureInstances)
Instances of features for the calendar resource.
CalendarResource
setFloorName(String floorName)
Name of the floor a resource is located on.
CalendarResource
setFloorSection(String floorSection)
Name of the section within a floor a resource is located in.
CalendarResource
setGeneratedResourceName(String generatedResourceName)
The read-only auto-generated name of the calendar resource which includes metadata about the
resource such as building name, floor, capacity, etc.
CalendarResource
setKind(String kind)
The type of the resource.
CalendarResource
setResourceCategory(String resourceCategory)
The category of the calendar resource.
CalendarResource
setResourceDescription(String resourceDescription)
Description of the resource, visible only to admins.
CalendarResource
setResourceEmail(String resourceEmail)
The read-only email for the calendar resource.
CalendarResource
setResourceId(String resourceId)
The unique ID for the calendar resource.
CalendarResource
setResourceName(String resourceName)
The name of the calendar resource.
CalendarResource
setResourceType(String resourceType)
The type of the calendar resource, intended for non-room resources.
CalendarResource
setUserVisibleDescription(String userVisibleDescription)
Description of the resource, visible to users and admins.
-
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
-
getBuildingId
public String getBuildingId()
Unique ID for the building a resource is located in.
- Returns:
- value or
null
for none
-
setBuildingId
public CalendarResource setBuildingId(String buildingId)
Unique ID for the building a resource is located in.
- Parameters:
buildingId
- buildingId or null
for none
-
getCapacity
public Integer getCapacity()
Capacity of a resource, number of seats in a room.
- Returns:
- value or
null
for none
-
setCapacity
public CalendarResource setCapacity(Integer capacity)
Capacity of a resource, number of seats in a room.
- Parameters:
capacity
- capacity or null
for none
-
getEtags
public String getEtags()
ETag of the resource.
- Returns:
- value or
null
for none
-
setEtags
public CalendarResource setEtags(String etags)
ETag of the resource.
- Parameters:
etags
- etags or null
for none
-
getFeatureInstances
public Object getFeatureInstances()
Instances of features for the calendar resource.
- Returns:
- value or
null
for none
-
setFeatureInstances
public CalendarResource setFeatureInstances(Object featureInstances)
Instances of features for the calendar resource.
- Parameters:
featureInstances
- featureInstances or null
for none
-
getFloorName
public String getFloorName()
Name of the floor a resource is located on.
- Returns:
- value or
null
for none
-
setFloorName
public CalendarResource setFloorName(String floorName)
Name of the floor a resource is located on.
- Parameters:
floorName
- floorName or null
for none
-
getFloorSection
public String getFloorSection()
Name of the section within a floor a resource is located in.
- Returns:
- value or
null
for none
-
setFloorSection
public CalendarResource setFloorSection(String floorSection)
Name of the section within a floor a resource is located in.
- Parameters:
floorSection
- floorSection or null
for none
-
getGeneratedResourceName
public String getGeneratedResourceName()
The read-only auto-generated name of the calendar resource which includes metadata about the
resource such as building name, floor, capacity, etc. For example, "NYC-2-Training Room 1A
(16)".
- Returns:
- value or
null
for none
-
setGeneratedResourceName
public CalendarResource setGeneratedResourceName(String generatedResourceName)
The read-only auto-generated name of the calendar resource which includes metadata about the
resource such as building name, floor, capacity, etc. For example, "NYC-2-Training Room 1A
(16)".
- Parameters:
generatedResourceName
- generatedResourceName or null
for none
-
getKind
public String getKind()
The type of the resource. For calendar resources, the value is
`admin#directory#resources#calendars#CalendarResource`.
- Returns:
- value or
null
for none
-
setKind
public CalendarResource setKind(String kind)
The type of the resource. For calendar resources, the value is
`admin#directory#resources#calendars#CalendarResource`.
- Parameters:
kind
- kind or null
for none
-
getResourceCategory
public String getResourceCategory()
The category of the calendar resource. Either CONFERENCE_ROOM or OTHER. Legacy data is set to
CATEGORY_UNKNOWN.
- Returns:
- value or
null
for none
-
setResourceCategory
public CalendarResource setResourceCategory(String resourceCategory)
The category of the calendar resource. Either CONFERENCE_ROOM or OTHER. Legacy data is set to
CATEGORY_UNKNOWN.
- Parameters:
resourceCategory
- resourceCategory or null
for none
-
getResourceDescription
public String getResourceDescription()
Description of the resource, visible only to admins.
- Returns:
- value or
null
for none
-
setResourceDescription
public CalendarResource setResourceDescription(String resourceDescription)
Description of the resource, visible only to admins.
- Parameters:
resourceDescription
- resourceDescription or null
for none
-
getResourceEmail
public String getResourceEmail()
The read-only email for the calendar resource. Generated as part of creating a new calendar
resource.
- Returns:
- value or
null
for none
-
setResourceEmail
public CalendarResource setResourceEmail(String resourceEmail)
The read-only email for the calendar resource. Generated as part of creating a new calendar
resource.
- Parameters:
resourceEmail
- resourceEmail or null
for none
-
getResourceId
public String getResourceId()
The unique ID for the calendar resource.
- Returns:
- value or
null
for none
-
setResourceId
public CalendarResource setResourceId(String resourceId)
The unique ID for the calendar resource.
- Parameters:
resourceId
- resourceId or null
for none
-
getResourceName
public String getResourceName()
The name of the calendar resource. For example, "Training Room 1A".
- Returns:
- value or
null
for none
-
setResourceName
public CalendarResource setResourceName(String resourceName)
The name of the calendar resource. For example, "Training Room 1A".
- Parameters:
resourceName
- resourceName or null
for none
-
getResourceType
public String getResourceType()
The type of the calendar resource, intended for non-room resources.
- Returns:
- value or
null
for none
-
setResourceType
public CalendarResource setResourceType(String resourceType)
The type of the calendar resource, intended for non-room resources.
- Parameters:
resourceType
- resourceType or null
for none
-
getUserVisibleDescription
public String getUserVisibleDescription()
Description of the resource, visible to users and admins.
- Returns:
- value or
null
for none
-
setUserVisibleDescription
public CalendarResource setUserVisibleDescription(String userVisibleDescription)
Description of the resource, visible to users and admins.
- Parameters:
userVisibleDescription
- userVisibleDescription or null
for none
-
set
public CalendarResource set(String fieldName,
Object value)
- Overrides:
set
in class GenericJson
-
clone
public CalendarResource clone()
- Overrides:
clone
in class GenericJson
Copyright © 2011–2022 Google. All rights reserved.