|
| 1 | +/* |
| 2 | + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except |
| 3 | + * in compliance with the License. You may obtain a copy of the License at |
| 4 | + * |
| 5 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 6 | + * |
| 7 | + * Unless required by applicable law or agreed to in writing, software distributed under the License |
| 8 | + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express |
| 9 | + * or implied. See the License for the specific language governing permissions and limitations under |
| 10 | + * the License. |
| 11 | + */ |
| 12 | +/* |
| 13 | + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ |
| 14 | + * Modify at your own risk. |
| 15 | + */ |
| 16 | + |
| 17 | +package com.google.api.services.calendar.model; |
| 18 | + |
| 19 | +/** |
| 20 | + * Model definition for EventBirthdayProperties. |
| 21 | + * |
| 22 | + * <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is |
| 23 | + * transmitted over HTTP when working with the Calendar API. For a detailed explanation see: |
| 24 | + * <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a> |
| 25 | + * </p> |
| 26 | + * |
| 27 | + * @author Google, Inc. |
| 28 | + */ |
| 29 | +@SuppressWarnings("javadoc") |
| 30 | +public final class EventBirthdayProperties extends com.google.api.client.json.GenericJson { |
| 31 | + |
| 32 | + /** |
| 33 | + * Resource name of the contact this birthday event is linked to. This can be used to fetch |
| 34 | + * contact details from People API. Format: "people/c12345". Read-only. |
| 35 | + * The value may be {@code null}. |
| 36 | + */ |
| 37 | + @com.google.api.client.util.Key |
| 38 | + private java.lang.String contact; |
| 39 | + |
| 40 | + /** |
| 41 | + * Custom type label specified for this event. This is populated if birthdayProperties.type is set |
| 42 | + * to "custom". Read-only. |
| 43 | + * The value may be {@code null}. |
| 44 | + */ |
| 45 | + @com.google.api.client.util.Key |
| 46 | + private java.lang.String customTypeName; |
| 47 | + |
| 48 | + /** |
| 49 | + * Type of birthday or special event. Possible values are: - "anniversary" - An anniversary other |
| 50 | + * than birthday. Always has a contact. - "birthday" - A birthday event. This is the default |
| 51 | + * value. - "custom" - A special date whose label is further specified in the customTypeName |
| 52 | + * field. Always has a contact. - "other" - A special date which does not fall into the other |
| 53 | + * categories, and does not have a custom label. Always has a contact. - "self" - Calendar |
| 54 | + * owner's own birthday. Cannot have a contact. The Calendar API only supports creating events |
| 55 | + * with the type "birthday". The type cannot be changed after the event is created. |
| 56 | + * The value may be {@code null}. |
| 57 | + */ |
| 58 | + @com.google.api.client.util.Key |
| 59 | + private java.lang.String type; |
| 60 | + |
| 61 | + /** |
| 62 | + * Resource name of the contact this birthday event is linked to. This can be used to fetch |
| 63 | + * contact details from People API. Format: "people/c12345". Read-only. |
| 64 | + * @return value or {@code null} for none |
| 65 | + */ |
| 66 | + public java.lang.String getContact() { |
| 67 | + return contact; |
| 68 | + } |
| 69 | + |
| 70 | + /** |
| 71 | + * Resource name of the contact this birthday event is linked to. This can be used to fetch |
| 72 | + * contact details from People API. Format: "people/c12345". Read-only. |
| 73 | + * @param contact contact or {@code null} for none |
| 74 | + */ |
| 75 | + public EventBirthdayProperties setContact(java.lang.String contact) { |
| 76 | + this.contact = contact; |
| 77 | + return this; |
| 78 | + } |
| 79 | + |
| 80 | + /** |
| 81 | + * Custom type label specified for this event. This is populated if birthdayProperties.type is set |
| 82 | + * to "custom". Read-only. |
| 83 | + * @return value or {@code null} for none |
| 84 | + */ |
| 85 | + public java.lang.String getCustomTypeName() { |
| 86 | + return customTypeName; |
| 87 | + } |
| 88 | + |
| 89 | + /** |
| 90 | + * Custom type label specified for this event. This is populated if birthdayProperties.type is set |
| 91 | + * to "custom". Read-only. |
| 92 | + * @param customTypeName customTypeName or {@code null} for none |
| 93 | + */ |
| 94 | + public EventBirthdayProperties setCustomTypeName(java.lang.String customTypeName) { |
| 95 | + this.customTypeName = customTypeName; |
| 96 | + return this; |
| 97 | + } |
| 98 | + |
| 99 | + /** |
| 100 | + * Type of birthday or special event. Possible values are: - "anniversary" - An anniversary other |
| 101 | + * than birthday. Always has a contact. - "birthday" - A birthday event. This is the default |
| 102 | + * value. - "custom" - A special date whose label is further specified in the customTypeName |
| 103 | + * field. Always has a contact. - "other" - A special date which does not fall into the other |
| 104 | + * categories, and does not have a custom label. Always has a contact. - "self" - Calendar |
| 105 | + * owner's own birthday. Cannot have a contact. The Calendar API only supports creating events |
| 106 | + * with the type "birthday". The type cannot be changed after the event is created. |
| 107 | + * @return value or {@code null} for none |
| 108 | + */ |
| 109 | + public java.lang.String getType() { |
| 110 | + return type; |
| 111 | + } |
| 112 | + |
| 113 | + /** |
| 114 | + * Type of birthday or special event. Possible values are: - "anniversary" - An anniversary other |
| 115 | + * than birthday. Always has a contact. - "birthday" - A birthday event. This is the default |
| 116 | + * value. - "custom" - A special date whose label is further specified in the customTypeName |
| 117 | + * field. Always has a contact. - "other" - A special date which does not fall into the other |
| 118 | + * categories, and does not have a custom label. Always has a contact. - "self" - Calendar |
| 119 | + * owner's own birthday. Cannot have a contact. The Calendar API only supports creating events |
| 120 | + * with the type "birthday". The type cannot be changed after the event is created. |
| 121 | + * @param type type or {@code null} for none |
| 122 | + */ |
| 123 | + public EventBirthdayProperties setType(java.lang.String type) { |
| 124 | + this.type = type; |
| 125 | + return this; |
| 126 | + } |
| 127 | + |
| 128 | + @Override |
| 129 | + public EventBirthdayProperties set(String fieldName, Object value) { |
| 130 | + return (EventBirthdayProperties) super.set(fieldName, value); |
| 131 | + } |
| 132 | + |
| 133 | + @Override |
| 134 | + public EventBirthdayProperties clone() { |
| 135 | + return (EventBirthdayProperties) super.clone(); |
| 136 | + } |
| 137 | + |
| 138 | +} |
0 commit comments