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:
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{@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.ListThis 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.MapThis 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.MapThis 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