From 58c92d2a1937b08fb3691d30c40ee854e3fefac1 Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Thu, 13 Aug 2026 17:52:11 -0700 Subject: [PATCH] chore: regenerate games client --- .../v1/2.0.0/README.md | 4 +- .../com/google/api/services/games/Games.java | 143 ++++++++++++++ .../games/model/BatchRecordEventsRequest.java | 169 ++++++++++++++++ .../model/BatchRecordEventsResponse.java | 70 +++++++ .../services/games/model/PlayerGameEvent.java | 155 +++++++++++++++ .../services/games/model/PropertyValue.java | 187 ++++++++++++++++++ .../api/services/games/model/Status.java | 128 ++++++++++++ .../v1/2.0.0/pom.xml | 4 +- .../google-api-services-games/v1/README.md | 4 +- 9 files changed, 858 insertions(+), 6 deletions(-) create mode 100644 clients/google-api-services-games/v1/2.0.0/com/google/api/services/games/model/BatchRecordEventsRequest.java create mode 100644 clients/google-api-services-games/v1/2.0.0/com/google/api/services/games/model/BatchRecordEventsResponse.java create mode 100644 clients/google-api-services-games/v1/2.0.0/com/google/api/services/games/model/PlayerGameEvent.java create mode 100644 clients/google-api-services-games/v1/2.0.0/com/google/api/services/games/model/PropertyValue.java create mode 100644 clients/google-api-services-games/v1/2.0.0/com/google/api/services/games/model/Status.java diff --git a/clients/google-api-services-games/v1/2.0.0/README.md b/clients/google-api-services-games/v1/2.0.0/README.md index 0863af46be3..3c776f01ce7 100644 --- a/clients/google-api-services-games/v1/2.0.0/README.md +++ b/clients/google-api-services-games/v1/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-games - v1-rev20260416-2.0.0 + v1-rev20260730-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-games:v1-rev20260416-2.0.0' + implementation 'com.google.apis:google-api-services-games:v1-rev20260730-2.0.0' } ``` diff --git a/clients/google-api-services-games/v1/2.0.0/com/google/api/services/games/Games.java b/clients/google-api-services-games/v1/2.0.0/com/google/api/services/games/Games.java index 1f4ac40e78f..6e345fe33ec 100644 --- a/clients/google-api-services-games/v1/2.0.0/com/google/api/services/games/Games.java +++ b/clients/google-api-services-games/v1/2.0.0/com/google/api/services/games/Games.java @@ -3183,6 +3183,149 @@ public ListCategoriesByPlayer set(String parameterName, Object value) { } + /** + * An accessor for creating requests from the PlayerGameEvents collection. + * + *

The typical use is:

+ *
+   *   {@code Games games = new Games(...);}
+   *   {@code Games.PlayerGameEvents.List request = games.playerGameEvents().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public PlayerGameEvents playerGameEvents() { + return new PlayerGameEvents(); + } + + /** + * The "playerGameEvents" collection of methods. + */ + public class PlayerGameEvents { + + /** + * Records a batch of player game events for a specific player. This method allows sending multiple + * events in a single request. + * + * Create a request for the method "playerGameEvents.batchRecordEvents". + * + * This request holds the parameters needed by the games server. After setting any optional + * parameters, call the {@link BatchRecordEvents#execute()} method to invoke the remote operation. + * + * @param playerId Required. The player ID of the player that performed the events. + * @param content the {@link com.google.api.services.games.model.BatchRecordEventsRequest} + * @return the request + */ + public BatchRecordEvents batchRecordEvents(java.lang.String playerId, com.google.api.services.games.model.BatchRecordEventsRequest content) throws java.io.IOException { + BatchRecordEvents result = new BatchRecordEvents(playerId, content); + initialize(result); + return result; + } + + public class BatchRecordEvents extends GamesRequest { + + private static final String REST_PATH = "games/v1/players/{playerId}/gameEvents:batchRecordEvents"; + + /** + * Records a batch of player game events for a specific player. This method allows sending + * multiple events in a single request. + * + * Create a request for the method "playerGameEvents.batchRecordEvents". + * + * This request holds the parameters needed by the the games server. After setting any optional + * parameters, call the {@link BatchRecordEvents#execute()} method to invoke the remote operation. + *

{@link BatchRecordEvents#initialize(com.google.api.client.googleapis.services.AbstractGoogl + * eClientRequest)} must be called to initialize this instance immediately after invoking the + * constructor.

+ * + * @param playerId Required. The player ID of the player that performed the events. + * @param content the {@link com.google.api.services.games.model.BatchRecordEventsRequest} + * @since 1.13 + */ + protected BatchRecordEvents(java.lang.String playerId, com.google.api.services.games.model.BatchRecordEventsRequest content) { + super(Games.this, "POST", REST_PATH, content, com.google.api.services.games.model.BatchRecordEventsResponse.class); + this.playerId = com.google.api.client.util.Preconditions.checkNotNull(playerId, "Required parameter playerId must be specified."); + } + + @Override + public BatchRecordEvents set$Xgafv(java.lang.String $Xgafv) { + return (BatchRecordEvents) super.set$Xgafv($Xgafv); + } + + @Override + public BatchRecordEvents setAccessToken(java.lang.String accessToken) { + return (BatchRecordEvents) super.setAccessToken(accessToken); + } + + @Override + public BatchRecordEvents setAlt(java.lang.String alt) { + return (BatchRecordEvents) super.setAlt(alt); + } + + @Override + public BatchRecordEvents setCallback(java.lang.String callback) { + return (BatchRecordEvents) super.setCallback(callback); + } + + @Override + public BatchRecordEvents setFields(java.lang.String fields) { + return (BatchRecordEvents) super.setFields(fields); + } + + @Override + public BatchRecordEvents setKey(java.lang.String key) { + return (BatchRecordEvents) super.setKey(key); + } + + @Override + public BatchRecordEvents setOauthToken(java.lang.String oauthToken) { + return (BatchRecordEvents) super.setOauthToken(oauthToken); + } + + @Override + public BatchRecordEvents setPrettyPrint(java.lang.Boolean prettyPrint) { + return (BatchRecordEvents) super.setPrettyPrint(prettyPrint); + } + + @Override + public BatchRecordEvents setQuotaUser(java.lang.String quotaUser) { + return (BatchRecordEvents) super.setQuotaUser(quotaUser); + } + + @Override + public BatchRecordEvents setUploadType(java.lang.String uploadType) { + return (BatchRecordEvents) super.setUploadType(uploadType); + } + + @Override + public BatchRecordEvents setUploadProtocol(java.lang.String uploadProtocol) { + return (BatchRecordEvents) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The player ID of the player that performed the events. */ + @com.google.api.client.util.Key + private java.lang.String playerId; + + /** Required. The player ID of the player that performed the events. + */ + public java.lang.String getPlayerId() { + return playerId; + } + + /** Required. The player ID of the player that performed the events. */ + public BatchRecordEvents setPlayerId(java.lang.String playerId) { + this.playerId = playerId; + return this; + } + + @Override + public BatchRecordEvents set(String parameterName, Object value) { + return (BatchRecordEvents) super.set(parameterName, value); + } + } + + } + /** * An accessor for creating requests from the Players collection. * diff --git a/clients/google-api-services-games/v1/2.0.0/com/google/api/services/games/model/BatchRecordEventsRequest.java b/clients/google-api-services-games/v1/2.0.0/com/google/api/services/games/model/BatchRecordEventsRequest.java new file mode 100644 index 00000000000..8c9d72be34c --- /dev/null +++ b/clients/google-api-services-games/v1/2.0.0/com/google/api/services/games/model/BatchRecordEventsRequest.java @@ -0,0 +1,169 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.games.model; + +/** + * Request message for PlayerGameEvents.BatchRecordEvents Next ID: 7 + * + *

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 Google Play Games Services API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class BatchRecordEventsRequest extends com.google.api.client.json.GenericJson { + + /** + * Optional. The DroidGuard blob generated by the client. This is used to detect abuse signals + * from the devices + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String droidGuardBlob; + + /** + * Required. A list of player game events to be recorded. Maximum of 30 events per batch request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List events; + + /** + * Required. Application package name (e.g., "com.example.game"). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String packageName; + + /** + * Required. The time from the client when this specific batch of events was submitted. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String requestTime; + + /** + * Optional. The salt used to generate content binding for the DroidGuard blob. This is used to + * prevent replay attacks. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String salt; + + /** + * Optional. The DroidGuard blob generated by the client. This is used to detect abuse signals + * from the devices + * @return value or {@code null} for none + */ + public java.lang.String getDroidGuardBlob() { + return droidGuardBlob; + } + + /** + * Optional. The DroidGuard blob generated by the client. This is used to detect abuse signals + * from the devices + * @param droidGuardBlob droidGuardBlob or {@code null} for none + */ + public BatchRecordEventsRequest setDroidGuardBlob(java.lang.String droidGuardBlob) { + this.droidGuardBlob = droidGuardBlob; + return this; + } + + /** + * Required. A list of player game events to be recorded. Maximum of 30 events per batch request. + * @return value or {@code null} for none + */ + public java.util.List getEvents() { + return events; + } + + /** + * Required. A list of player game events to be recorded. Maximum of 30 events per batch request. + * @param events events or {@code null} for none + */ + public BatchRecordEventsRequest setEvents(java.util.List events) { + this.events = events; + return this; + } + + /** + * Required. Application package name (e.g., "com.example.game"). + * @return value or {@code null} for none + */ + public java.lang.String getPackageName() { + return packageName; + } + + /** + * Required. Application package name (e.g., "com.example.game"). + * @param packageName packageName or {@code null} for none + */ + public BatchRecordEventsRequest setPackageName(java.lang.String packageName) { + this.packageName = packageName; + return this; + } + + /** + * Required. The time from the client when this specific batch of events was submitted. + * @return value or {@code null} for none + */ + public String getRequestTime() { + return requestTime; + } + + /** + * Required. The time from the client when this specific batch of events was submitted. + * @param requestTime requestTime or {@code null} for none + */ + public BatchRecordEventsRequest setRequestTime(String requestTime) { + this.requestTime = requestTime; + return this; + } + + /** + * Optional. The salt used to generate content binding for the DroidGuard blob. This is used to + * prevent replay attacks. + * @return value or {@code null} for none + */ + public java.lang.String getSalt() { + return salt; + } + + /** + * Optional. The salt used to generate content binding for the DroidGuard blob. This is used to + * prevent replay attacks. + * @param salt salt or {@code null} for none + */ + public BatchRecordEventsRequest setSalt(java.lang.String salt) { + this.salt = salt; + return this; + } + + @Override + public BatchRecordEventsRequest set(String fieldName, Object value) { + return (BatchRecordEventsRequest) super.set(fieldName, value); + } + + @Override + public BatchRecordEventsRequest clone() { + return (BatchRecordEventsRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-games/v1/2.0.0/com/google/api/services/games/model/BatchRecordEventsResponse.java b/clients/google-api-services-games/v1/2.0.0/com/google/api/services/games/model/BatchRecordEventsResponse.java new file mode 100644 index 00000000000..e4adb6e559d --- /dev/null +++ b/clients/google-api-services-games/v1/2.0.0/com/google/api/services/games/model/BatchRecordEventsResponse.java @@ -0,0 +1,70 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.games.model; + +/** + * A successful response indicates that the batch of events has been processed. + * + *

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 Google Play Games Services API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class BatchRecordEventsResponse extends com.google.api.client.json.GenericJson { + + /** + * Map of failed events, keyed by their zero-based index in `BatchRecordEventsRequest.events`. + * Omitted keys indicate successful recording. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map failedRequests; + + /** + * Map of failed events, keyed by their zero-based index in `BatchRecordEventsRequest.events`. + * Omitted keys indicate successful recording. + * @return value or {@code null} for none + */ + public java.util.Map getFailedRequests() { + return failedRequests; + } + + /** + * Map of failed events, keyed by their zero-based index in `BatchRecordEventsRequest.events`. + * Omitted keys indicate successful recording. + * @param failedRequests failedRequests or {@code null} for none + */ + public BatchRecordEventsResponse setFailedRequests(java.util.Map failedRequests) { + this.failedRequests = failedRequests; + return this; + } + + @Override + public BatchRecordEventsResponse set(String fieldName, Object value) { + return (BatchRecordEventsResponse) super.set(fieldName, value); + } + + @Override + public BatchRecordEventsResponse clone() { + return (BatchRecordEventsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-games/v1/2.0.0/com/google/api/services/games/model/PlayerGameEvent.java b/clients/google-api-services-games/v1/2.0.0/com/google/api/services/games/model/PlayerGameEvent.java new file mode 100644 index 00000000000..091100dcd81 --- /dev/null +++ b/clients/google-api-services-games/v1/2.0.0/com/google/api/services/games/model/PlayerGameEvent.java @@ -0,0 +1,155 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.games.model; + +/** + * A representation of a single player game event triggered by a player's event in a game. This + * might be completing a level, unlocking an item, or finishing a match. + * + *

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 Google Play Games Services API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class PlayerGameEvent extends com.google.api.client.json.GenericJson { + + /** + * Required. A unique client-generated UUID for this specific event instance. Used for server-side + * idempotency and deduplication. Submitting an event with a previously recorded event_id for the + * same player will be ignored. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String eventId; + + /** + * Required. Client-defined name of the event (e.g., "run_completed", "level_up"). Maximum length: + * 100 characters. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String eventName; + + /** + * Optional. Key-value properties providing details about the event. - Maximum number of + * properties: 25. - Property key maximum length: 100 characters. - String values within + * PropertyValue maximum length: 1024 characters. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map eventProperties; + + /** + * Required. The time from the client when this specific event was performed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String eventTime; + + /** + * Required. A unique client-generated UUID for this specific event instance. Used for server-side + * idempotency and deduplication. Submitting an event with a previously recorded event_id for the + * same player will be ignored. + * @return value or {@code null} for none + */ + public java.lang.String getEventId() { + return eventId; + } + + /** + * Required. A unique client-generated UUID for this specific event instance. Used for server-side + * idempotency and deduplication. Submitting an event with a previously recorded event_id for the + * same player will be ignored. + * @param eventId eventId or {@code null} for none + */ + public PlayerGameEvent setEventId(java.lang.String eventId) { + this.eventId = eventId; + return this; + } + + /** + * Required. Client-defined name of the event (e.g., "run_completed", "level_up"). Maximum length: + * 100 characters. + * @return value or {@code null} for none + */ + public java.lang.String getEventName() { + return eventName; + } + + /** + * Required. Client-defined name of the event (e.g., "run_completed", "level_up"). Maximum length: + * 100 characters. + * @param eventName eventName or {@code null} for none + */ + public PlayerGameEvent setEventName(java.lang.String eventName) { + this.eventName = eventName; + return this; + } + + /** + * Optional. Key-value properties providing details about the event. - Maximum number of + * properties: 25. - Property key maximum length: 100 characters. - String values within + * PropertyValue maximum length: 1024 characters. + * @return value or {@code null} for none + */ + public java.util.Map getEventProperties() { + return eventProperties; + } + + /** + * Optional. Key-value properties providing details about the event. - Maximum number of + * properties: 25. - Property key maximum length: 100 characters. - String values within + * PropertyValue maximum length: 1024 characters. + * @param eventProperties eventProperties or {@code null} for none + */ + public PlayerGameEvent setEventProperties(java.util.Map eventProperties) { + this.eventProperties = eventProperties; + return this; + } + + /** + * Required. The time from the client when this specific event was performed. + * @return value or {@code null} for none + */ + public String getEventTime() { + return eventTime; + } + + /** + * Required. The time from the client when this specific event was performed. + * @param eventTime eventTime or {@code null} for none + */ + public PlayerGameEvent setEventTime(String eventTime) { + this.eventTime = eventTime; + return this; + } + + @Override + public PlayerGameEvent set(String fieldName, Object value) { + return (PlayerGameEvent) super.set(fieldName, value); + } + + @Override + public PlayerGameEvent clone() { + return (PlayerGameEvent) super.clone(); + } + +} diff --git a/clients/google-api-services-games/v1/2.0.0/com/google/api/services/games/model/PropertyValue.java b/clients/google-api-services-games/v1/2.0.0/com/google/api/services/games/model/PropertyValue.java new file mode 100644 index 00000000000..3f55b82f0b0 --- /dev/null +++ b/clients/google-api-services-games/v1/2.0.0/com/google/api/services/games/model/PropertyValue.java @@ -0,0 +1,187 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.games.model; + +/** + * Wrapper for the value. + * + *

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 Google Play Games Services API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class PropertyValue extends com.google.api.client.json.GenericJson { + + /** + * A boolean value. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean boolValue; + + /** + * A double value. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double doubleValue; + + /** + * A duration value. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String durationValue; + + /** + * An integer value. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long intValue; + + /** + * A string value. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String stringValue; + + /** + * A timestamp value. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String timestampValue; + + /** + * A boolean value. + * @return value or {@code null} for none + */ + public java.lang.Boolean getBoolValue() { + return boolValue; + } + + /** + * A boolean value. + * @param boolValue boolValue or {@code null} for none + */ + public PropertyValue setBoolValue(java.lang.Boolean boolValue) { + this.boolValue = boolValue; + return this; + } + + /** + * A double value. + * @return value or {@code null} for none + */ + public java.lang.Double getDoubleValue() { + return doubleValue; + } + + /** + * A double value. + * @param doubleValue doubleValue or {@code null} for none + */ + public PropertyValue setDoubleValue(java.lang.Double doubleValue) { + this.doubleValue = doubleValue; + return this; + } + + /** + * A duration value. + * @return value or {@code null} for none + */ + public String getDurationValue() { + return durationValue; + } + + /** + * A duration value. + * @param durationValue durationValue or {@code null} for none + */ + public PropertyValue setDurationValue(String durationValue) { + this.durationValue = durationValue; + return this; + } + + /** + * An integer value. + * @return value or {@code null} for none + */ + public java.lang.Long getIntValue() { + return intValue; + } + + /** + * An integer value. + * @param intValue intValue or {@code null} for none + */ + public PropertyValue setIntValue(java.lang.Long intValue) { + this.intValue = intValue; + return this; + } + + /** + * A string value. + * @return value or {@code null} for none + */ + public java.lang.String getStringValue() { + return stringValue; + } + + /** + * A string value. + * @param stringValue stringValue or {@code null} for none + */ + public PropertyValue setStringValue(java.lang.String stringValue) { + this.stringValue = stringValue; + return this; + } + + /** + * A timestamp value. + * @return value or {@code null} for none + */ + public String getTimestampValue() { + return timestampValue; + } + + /** + * A timestamp value. + * @param timestampValue timestampValue or {@code null} for none + */ + public PropertyValue setTimestampValue(String timestampValue) { + this.timestampValue = timestampValue; + return this; + } + + @Override + public PropertyValue set(String fieldName, Object value) { + return (PropertyValue) super.set(fieldName, value); + } + + @Override + public PropertyValue clone() { + return (PropertyValue) super.clone(); + } + +} diff --git a/clients/google-api-services-games/v1/2.0.0/com/google/api/services/games/model/Status.java b/clients/google-api-services-games/v1/2.0.0/com/google/api/services/games/model/Status.java new file mode 100644 index 00000000000..0824aca9c91 --- /dev/null +++ b/clients/google-api-services-games/v1/2.0.0/com/google/api/services/games/model/Status.java @@ -0,0 +1,128 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.games.model; + +/** + * The `Status` type defines a logical error model that is suitable for different programming + * environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). + * Each `Status` message contains three pieces of data: error code, error message, and error + * details. You can find out more about this error model and how to work with it in the [API Design + * Guide](https://cloud.google.com/apis/design/errors). + * + *

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 Google Play Games Services API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Status extends com.google.api.client.json.GenericJson { + + /** + * The status code, which should be an enum value of google.rpc.Code. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer code; + + /** + * A list of messages that carry the error details. There is a common set of message types for + * APIs to use. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List> details; + + /** + * A developer-facing error message, which should be in English. Any user-facing error message + * should be localized and sent in the google.rpc.Status.details field, or localized by the + * client. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String message; + + /** + * The status code, which should be an enum value of google.rpc.Code. + * @return value or {@code null} for none + */ + public java.lang.Integer getCode() { + return code; + } + + /** + * The status code, which should be an enum value of google.rpc.Code. + * @param code code or {@code null} for none + */ + public Status setCode(java.lang.Integer code) { + this.code = code; + return this; + } + + /** + * A list of messages that carry the error details. There is a common set of message types for + * APIs to use. + * @return value or {@code null} for none + */ + public java.util.List> getDetails() { + return details; + } + + /** + * A list of messages that carry the error details. There is a common set of message types for + * APIs to use. + * @param details details or {@code null} for none + */ + public Status setDetails(java.util.List> details) { + this.details = details; + return this; + } + + /** + * A developer-facing error message, which should be in English. Any user-facing error message + * should be localized and sent in the google.rpc.Status.details field, or localized by the + * client. + * @return value or {@code null} for none + */ + public java.lang.String getMessage() { + return message; + } + + /** + * A developer-facing error message, which should be in English. Any user-facing error message + * should be localized and sent in the google.rpc.Status.details field, or localized by the + * client. + * @param message message or {@code null} for none + */ + public Status setMessage(java.lang.String message) { + this.message = message; + return this; + } + + @Override + public Status set(String fieldName, Object value) { + return (Status) super.set(fieldName, value); + } + + @Override + public Status clone() { + return (Status) super.clone(); + } + +} diff --git a/clients/google-api-services-games/v1/2.0.0/pom.xml b/clients/google-api-services-games/v1/2.0.0/pom.xml index 754771e4474..94c5abd4e6f 100644 --- a/clients/google-api-services-games/v1/2.0.0/pom.xml +++ b/clients/google-api-services-games/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-games - v1-rev20260416-2.0.0 - Google Play Games Services API v1-rev20260416-2.0.0 + v1-rev20260730-2.0.0 + Google Play Games Services API v1-rev20260730-2.0.0 jar 2011 diff --git a/clients/google-api-services-games/v1/README.md b/clients/google-api-services-games/v1/README.md index 0863af46be3..3c776f01ce7 100644 --- a/clients/google-api-services-games/v1/README.md +++ b/clients/google-api-services-games/v1/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-games - v1-rev20260416-2.0.0 + v1-rev20260730-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-games:v1-rev20260416-2.0.0' + implementation 'com.google.apis:google-api-services-games:v1-rev20260730-2.0.0' } ```