Skip to content

Commit f0f057c

Browse files
1 parent d2fcbca commit f0f057c

File tree

8 files changed

+1060
-37
lines changed

8 files changed

+1060
-37
lines changed

clients/google-api-services-chat/v1/2.0.0/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-chat</artifactId>
25-
<version>v1-rev20250316-2.0.0</version>
25+
<version>v1-rev20250417-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-chat:v1-rev20250316-2.0.0'
38+
implementation 'com.google.apis:google-api-services-chat:v1-rev20250417-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-chat/v1/2.0.0/com/google/api/services/chat/v1/HangoutsChat.java

Lines changed: 704 additions & 30 deletions
Large diffs are not rendered by default.

clients/google-api-services-chat/v1/2.0.0/com/google/api/services/chat/v1/HangoutsChatScopes.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@ public class HangoutsChatScopes {
5353
/** Private Service: https://www.googleapis.com/auth/chat.bot. */
5454
public static final String CHAT_BOT = "https://www.googleapis.com/auth/chat.bot";
5555

56+
/** View, create, and delete custom emoji in Google Chat. */
57+
public static final String CHAT_CUSTOMEMOJIS = "https://www.googleapis.com/auth/chat.customemojis";
58+
59+
/** View custom emoji in Google Chat. */
60+
public static final String CHAT_CUSTOMEMOJIS_READONLY = "https://www.googleapis.com/auth/chat.customemojis.readonly";
61+
5662
/** Delete conversations and spaces and remove access to associated files in Google Chat. */
5763
public static final String CHAT_DELETE = "https://www.googleapis.com/auth/chat.delete";
5864

@@ -121,6 +127,8 @@ public static java.util.Set<String> all() {
121127
set.add(CHAT_APP_SPACES);
122128
set.add(CHAT_APP_SPACES_CREATE);
123129
set.add(CHAT_BOT);
130+
set.add(CHAT_CUSTOMEMOJIS);
131+
set.add(CHAT_CUSTOMEMOJIS_READONLY);
124132
set.add(CHAT_DELETE);
125133
set.add(CHAT_IMPORT);
126134
set.add(CHAT_MEMBERSHIPS);

clients/google-api-services-chat/v1/2.0.0/com/google/api/services/chat/v1/model/CustomEmoji.java

Lines changed: 115 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
package com.google.api.services.chat.v1.model;
1818

1919
/**
20-
* Represents a custom emoji.
20+
* Represents a [custom emoji](https://support.google.com/chat/answer/12800149).
2121
*
2222
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
2323
* transmitted over HTTP when working with the Google Chat API. For a detailed explanation see:
@@ -29,13 +29,127 @@
2929
@SuppressWarnings("javadoc")
3030
public final class CustomEmoji extends com.google.api.client.json.GenericJson {
3131

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+
3266
/**
3367
* Output only. Unique key for the custom emoji resource.
3468
* The value may be {@code null}.
3569
*/
3670
@com.google.api.client.util.Key
3771
private java.lang.String uid;
3872

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+
39153
/**
40154
* Output only. Unique key for the custom emoji resource.
41155
* @return value or {@code null} for none
Lines changed: 128 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,128 @@
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.chat.v1.model;
18+
19+
/**
20+
* Payload data for the custom emoji.
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 Google Chat 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 CustomEmojiPayload extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Required. Input only. The image used for the custom emoji. The payload must be under 256 KB and
34+
* the dimension of the image must be square and between 64 and 500 pixels. The restrictions are
35+
* subject to change.
36+
* The value may be {@code null}.
37+
*/
38+
@com.google.api.client.util.Key
39+
private java.lang.String fileContent;
40+
41+
/**
42+
* Required. Input only. The image file name. Supported file extensions: `.png`, `.jpg`, `.gif`.
43+
* The value may be {@code null}.
44+
*/
45+
@com.google.api.client.util.Key
46+
private java.lang.String filename;
47+
48+
/**
49+
* Required. Input only. The image used for the custom emoji. The payload must be under 256 KB and
50+
* the dimension of the image must be square and between 64 and 500 pixels. The restrictions are
51+
* subject to change.
52+
* @see #decodeFileContent()
53+
* @return value or {@code null} for none
54+
*/
55+
public java.lang.String getFileContent() {
56+
return fileContent;
57+
}
58+
59+
/**
60+
* Required. Input only. The image used for the custom emoji. The payload must be under 256 KB and
61+
* the dimension of the image must be square and between 64 and 500 pixels. The restrictions are
62+
* subject to change.
63+
* @see #getFileContent()
64+
* @return Base64 decoded value or {@code null} for none
65+
*
66+
* @since 1.14
67+
*/
68+
public byte[] decodeFileContent() {
69+
return com.google.api.client.util.Base64.decodeBase64(fileContent);
70+
}
71+
72+
/**
73+
* Required. Input only. The image used for the custom emoji. The payload must be under 256 KB and
74+
* the dimension of the image must be square and between 64 and 500 pixels. The restrictions are
75+
* subject to change.
76+
* @see #encodeFileContent()
77+
* @param fileContent fileContent or {@code null} for none
78+
*/
79+
public CustomEmojiPayload setFileContent(java.lang.String fileContent) {
80+
this.fileContent = fileContent;
81+
return this;
82+
}
83+
84+
/**
85+
* Required. Input only. The image used for the custom emoji. The payload must be under 256 KB and
86+
* the dimension of the image must be square and between 64 and 500 pixels. The restrictions are
87+
* subject to change.
88+
* @see #setFileContent()
89+
*
90+
* <p>
91+
* The value is encoded Base64 or {@code null} for none.
92+
* </p>
93+
*
94+
* @since 1.14
95+
*/
96+
public CustomEmojiPayload encodeFileContent(byte[] fileContent) {
97+
this.fileContent = com.google.api.client.util.Base64.encodeBase64URLSafeString(fileContent);
98+
return this;
99+
}
100+
101+
/**
102+
* Required. Input only. The image file name. Supported file extensions: `.png`, `.jpg`, `.gif`.
103+
* @return value or {@code null} for none
104+
*/
105+
public java.lang.String getFilename() {
106+
return filename;
107+
}
108+
109+
/**
110+
* Required. Input only. The image file name. Supported file extensions: `.png`, `.jpg`, `.gif`.
111+
* @param filename filename or {@code null} for none
112+
*/
113+
public CustomEmojiPayload setFilename(java.lang.String filename) {
114+
this.filename = filename;
115+
return this;
116+
}
117+
118+
@Override
119+
public CustomEmojiPayload set(String fieldName, Object value) {
120+
return (CustomEmojiPayload) super.set(fieldName, value);
121+
}
122+
123+
@Override
124+
public CustomEmojiPayload clone() {
125+
return (CustomEmojiPayload) super.clone();
126+
}
127+
128+
}

0 commit comments

Comments
 (0)