target.apidocs.com.google.api.services.calendar.model.EventBirthdayProperties.html Maven / Gradle / Ivy
The newest version!
EventBirthdayProperties (Calendar API v3-rev20241101-2.0.0)
com.google.api.services.calendar.model
Class EventBirthdayProperties
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.calendar.model.EventBirthdayProperties
-
public final class EventBirthdayProperties
extends com.google.api.client.json.GenericJson
Model definition for EventBirthdayProperties.
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 Calendar 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
com.google.api.client.util.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
EventBirthdayProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
EventBirthdayProperties
clone()
String
getContact()
Resource name of the contact this birthday event is linked to.
String
getCustomTypeName()
Custom type label specified for this event.
String
getType()
Type of birthday or special event.
EventBirthdayProperties
set(String fieldName,
Object value)
EventBirthdayProperties
setContact(String contact)
Resource name of the contact this birthday event is linked to.
EventBirthdayProperties
setCustomTypeName(String customTypeName)
Custom type label specified for this event.
EventBirthdayProperties
setType(String type)
Type of birthday or special event.
-
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
-
getContact
public String getContact()
Resource name of the contact this birthday event is linked to. This can be used to fetch
contact details from People API. Format: "people/c12345". Read-only.
- Returns:
- value or
null
for none
-
setContact
public EventBirthdayProperties setContact(String contact)
Resource name of the contact this birthday event is linked to. This can be used to fetch
contact details from People API. Format: "people/c12345". Read-only.
- Parameters:
contact
- contact or null
for none
-
getCustomTypeName
public String getCustomTypeName()
Custom type label specified for this event. This is populated if birthdayProperties.type is set
to "custom". Read-only.
- Returns:
- value or
null
for none
-
setCustomTypeName
public EventBirthdayProperties setCustomTypeName(String customTypeName)
Custom type label specified for this event. This is populated if birthdayProperties.type is set
to "custom". Read-only.
- Parameters:
customTypeName
- customTypeName or null
for none
-
getType
public String getType()
Type of birthday or special event. Possible values are: - "anniversary" - An anniversary other
than birthday. Always has a contact. - "birthday" - A birthday event. This is the default
value. - "custom" - A special date whose label is further specified in the customTypeName
field. Always has a contact. - "other" - A special date which does not fall into the other
categories, and does not have a custom label. Always has a contact. - "self" - Calendar
owner's own birthday. Cannot have a contact. The Calendar API only supports creating events
with the type "birthday". The type cannot be changed after the event is created.
- Returns:
- value or
null
for none
-
setType
public EventBirthdayProperties setType(String type)
Type of birthday or special event. Possible values are: - "anniversary" - An anniversary other
than birthday. Always has a contact. - "birthday" - A birthday event. This is the default
value. - "custom" - A special date whose label is further specified in the customTypeName
field. Always has a contact. - "other" - A special date which does not fall into the other
categories, and does not have a custom label. Always has a contact. - "self" - Calendar
owner's own birthday. Cannot have a contact. The Calendar API only supports creating events
with the type "birthday". The type cannot be changed after the event is created.
- Parameters:
type
- type or null
for none
-
set
public EventBirthdayProperties set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public EventBirthdayProperties clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2024 Weber Informatics LLC | Privacy Policy