Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions clients/google-api-services-games/v1/2.0.0/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-games</artifactId>
<version>v1-rev20260416-2.0.0</version>
<version>v1-rev20260730-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -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'
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3183,6 +3183,149 @@ public ListCategoriesByPlayer set(String parameterName, Object value) {

}

/**
* An accessor for creating requests from the PlayerGameEvents collection.
*
* <p>The typical use is:</p>
* <pre>
* {@code Games games = new Games(...);}
* {@code Games.PlayerGameEvents.List request = games.playerGameEvents().list(parameters ...)}
* </pre>
*
* @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<com.google.api.services.games.model.BatchRecordEventsResponse> {

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.
* <p> {@link BatchRecordEvents#initialize(com.google.api.client.googleapis.services.AbstractGoogl
* eClientRequest)} must be called to initialize this instance immediately after invoking the
* constructor. </p>
*
* @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.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -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
*
* <p> 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:
* <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>
* </p>
*
* @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<PlayerGameEvent> 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<PlayerGameEvent> 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<PlayerGameEvent> 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();
}

}
Loading
Loading