|
17 | 17 | package com.google.api.services.chat.v1.model; |
18 | 18 |
|
19 | 19 | /** |
20 | | - * Represents a custom emoji. |
| 20 | + * Represents a [custom emoji](https://support.google.com/chat/answer/12800149). |
21 | 21 | * |
22 | 22 | * <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is |
23 | 23 | * transmitted over HTTP when working with the Google Chat API. For a detailed explanation see: |
|
29 | 29 | @SuppressWarnings("javadoc") |
30 | 30 | public final class CustomEmoji extends com.google.api.client.json.GenericJson { |
31 | 31 |
|
| 32 | + /** |
| 33 | + * Optional. Immutable. User-provided name for the custom emoji, which is unique within the |
| 34 | + * organization. Required when the custom emoji is created, output only otherwise. Emoji names |
| 35 | + * must start and end with colons, must be lowercase and can only contain alphanumeric characters, |
| 36 | + * hyphens, and underscores. Hyphens and underscores should be used to separate words and cannot |
| 37 | + * be used consecutively. Example: `:valid-emoji-name:` |
| 38 | + * The value may be {@code null}. |
| 39 | + */ |
| 40 | + @com.google.api.client.util.Key |
| 41 | + private java.lang.String emojiName; |
| 42 | + |
| 43 | + /** |
| 44 | + * Identifier. The resource name of the custom emoji, assigned by the server. Format: |
| 45 | + * `customEmojis/{customEmoji}` |
| 46 | + * The value may be {@code null}. |
| 47 | + */ |
| 48 | + @com.google.api.client.util.Key |
| 49 | + private java.lang.String name; |
| 50 | + |
| 51 | + /** |
| 52 | + * Optional. Input only. Payload data. Required when the custom emoji is created. |
| 53 | + * The value may be {@code null}. |
| 54 | + */ |
| 55 | + @com.google.api.client.util.Key |
| 56 | + private CustomEmojiPayload payload; |
| 57 | + |
| 58 | + /** |
| 59 | + * Output only. A temporary image URL for the custom emoji, valid for at least 10 minutes. Note |
| 60 | + * that this is not populated in the response when the custom emoji is created. |
| 61 | + * The value may be {@code null}. |
| 62 | + */ |
| 63 | + @com.google.api.client.util.Key |
| 64 | + private java.lang.String temporaryImageUri; |
| 65 | + |
32 | 66 | /** |
33 | 67 | * Output only. Unique key for the custom emoji resource. |
34 | 68 | * The value may be {@code null}. |
35 | 69 | */ |
36 | 70 | @com.google.api.client.util.Key |
37 | 71 | private java.lang.String uid; |
38 | 72 |
|
| 73 | + /** |
| 74 | + * Optional. Immutable. User-provided name for the custom emoji, which is unique within the |
| 75 | + * organization. Required when the custom emoji is created, output only otherwise. Emoji names |
| 76 | + * must start and end with colons, must be lowercase and can only contain alphanumeric characters, |
| 77 | + * hyphens, and underscores. Hyphens and underscores should be used to separate words and cannot |
| 78 | + * be used consecutively. Example: `:valid-emoji-name:` |
| 79 | + * @return value or {@code null} for none |
| 80 | + */ |
| 81 | + public java.lang.String getEmojiName() { |
| 82 | + return emojiName; |
| 83 | + } |
| 84 | + |
| 85 | + /** |
| 86 | + * Optional. Immutable. User-provided name for the custom emoji, which is unique within the |
| 87 | + * organization. Required when the custom emoji is created, output only otherwise. Emoji names |
| 88 | + * must start and end with colons, must be lowercase and can only contain alphanumeric characters, |
| 89 | + * hyphens, and underscores. Hyphens and underscores should be used to separate words and cannot |
| 90 | + * be used consecutively. Example: `:valid-emoji-name:` |
| 91 | + * @param emojiName emojiName or {@code null} for none |
| 92 | + */ |
| 93 | + public CustomEmoji setEmojiName(java.lang.String emojiName) { |
| 94 | + this.emojiName = emojiName; |
| 95 | + return this; |
| 96 | + } |
| 97 | + |
| 98 | + /** |
| 99 | + * Identifier. The resource name of the custom emoji, assigned by the server. Format: |
| 100 | + * `customEmojis/{customEmoji}` |
| 101 | + * @return value or {@code null} for none |
| 102 | + */ |
| 103 | + public java.lang.String getName() { |
| 104 | + return name; |
| 105 | + } |
| 106 | + |
| 107 | + /** |
| 108 | + * Identifier. The resource name of the custom emoji, assigned by the server. Format: |
| 109 | + * `customEmojis/{customEmoji}` |
| 110 | + * @param name name or {@code null} for none |
| 111 | + */ |
| 112 | + public CustomEmoji setName(java.lang.String name) { |
| 113 | + this.name = name; |
| 114 | + return this; |
| 115 | + } |
| 116 | + |
| 117 | + /** |
| 118 | + * Optional. Input only. Payload data. Required when the custom emoji is created. |
| 119 | + * @return value or {@code null} for none |
| 120 | + */ |
| 121 | + public CustomEmojiPayload getPayload() { |
| 122 | + return payload; |
| 123 | + } |
| 124 | + |
| 125 | + /** |
| 126 | + * Optional. Input only. Payload data. Required when the custom emoji is created. |
| 127 | + * @param payload payload or {@code null} for none |
| 128 | + */ |
| 129 | + public CustomEmoji setPayload(CustomEmojiPayload payload) { |
| 130 | + this.payload = payload; |
| 131 | + return this; |
| 132 | + } |
| 133 | + |
| 134 | + /** |
| 135 | + * Output only. A temporary image URL for the custom emoji, valid for at least 10 minutes. Note |
| 136 | + * that this is not populated in the response when the custom emoji is created. |
| 137 | + * @return value or {@code null} for none |
| 138 | + */ |
| 139 | + public java.lang.String getTemporaryImageUri() { |
| 140 | + return temporaryImageUri; |
| 141 | + } |
| 142 | + |
| 143 | + /** |
| 144 | + * Output only. A temporary image URL for the custom emoji, valid for at least 10 minutes. Note |
| 145 | + * that this is not populated in the response when the custom emoji is created. |
| 146 | + * @param temporaryImageUri temporaryImageUri or {@code null} for none |
| 147 | + */ |
| 148 | + public CustomEmoji setTemporaryImageUri(java.lang.String temporaryImageUri) { |
| 149 | + this.temporaryImageUri = temporaryImageUri; |
| 150 | + return this; |
| 151 | + } |
| 152 | + |
39 | 153 | /** |
40 | 154 | * Output only. Unique key for the custom emoji resource. |
41 | 155 | * @return value or {@code null} for none |
|
0 commit comments