/*
 * 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.identitytoolkit.v1.model;

/**
 * Response message for SignInWithGameCenter
 *
 * <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 Identity Toolkit 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 GoogleCloudIdentitytoolkitV1SignInWithGameCenterResponse extends com.google.api.client.json.GenericJson {

  /**
   * Display name of the authenticated user.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String displayName;

  /**
   * The number of seconds until the ID token expires.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key @com.google.api.client.json.JsonString
  private java.lang.Long expiresIn;

  /**
   * The user's Game Center game player ID. A unique identifier for a player of the game.
   * https://developer.apple.com/documentation/gamekit/gkplayer/3113960-gameplayerid
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String gamePlayerId;

  /**
   * An Identity Platform ID token for the authenticated user.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String idToken;

  /**
   * Whether the logged in user was created by this request.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.Boolean isNewUser;

  /**
   * The ID of the authenticated user. Always present in the response.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String localId;

  /**
   * The user's Game Center player ID. Pass `playerID` along with `gamePlayerID` and `teamPlayerID`
   * to initiate the migration of a user's Game Center player ID to `gamePlayerID`.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String playerId;

  /**
   * An Identity Platform refresh token for the authenticated user.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String refreshToken;

  /**
   * The user's Game Center team player ID. A unique identifier for a player of all the games that
   * you distribute using your developer account.
   * https://developer.apple.com/documentation/gamekit/gkplayer/3174857-teamplayerid
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String teamPlayerId;

  /**
   * Display name of the authenticated user.
   * @return value or {@code null} for none
   */
  public java.lang.String getDisplayName() {
    return displayName;
  }

  /**
   * Display name of the authenticated user.
   * @param displayName displayName or {@code null} for none
   */
  public GoogleCloudIdentitytoolkitV1SignInWithGameCenterResponse setDisplayName(java.lang.String displayName) {
    this.displayName = displayName;
    return this;
  }

  /**
   * The number of seconds until the ID token expires.
   * @return value or {@code null} for none
   */
  public java.lang.Long getExpiresIn() {
    return expiresIn;
  }

  /**
   * The number of seconds until the ID token expires.
   * @param expiresIn expiresIn or {@code null} for none
   */
  public GoogleCloudIdentitytoolkitV1SignInWithGameCenterResponse setExpiresIn(java.lang.Long expiresIn) {
    this.expiresIn = expiresIn;
    return this;
  }

  /**
   * The user's Game Center game player ID. A unique identifier for a player of the game.
   * https://developer.apple.com/documentation/gamekit/gkplayer/3113960-gameplayerid
   * @return value or {@code null} for none
   */
  public java.lang.String getGamePlayerId() {
    return gamePlayerId;
  }

  /**
   * The user's Game Center game player ID. A unique identifier for a player of the game.
   * https://developer.apple.com/documentation/gamekit/gkplayer/3113960-gameplayerid
   * @param gamePlayerId gamePlayerId or {@code null} for none
   */
  public GoogleCloudIdentitytoolkitV1SignInWithGameCenterResponse setGamePlayerId(java.lang.String gamePlayerId) {
    this.gamePlayerId = gamePlayerId;
    return this;
  }

  /**
   * An Identity Platform ID token for the authenticated user.
   * @return value or {@code null} for none
   */
  public java.lang.String getIdToken() {
    return idToken;
  }

  /**
   * An Identity Platform ID token for the authenticated user.
   * @param idToken idToken or {@code null} for none
   */
  public GoogleCloudIdentitytoolkitV1SignInWithGameCenterResponse setIdToken(java.lang.String idToken) {
    this.idToken = idToken;
    return this;
  }

  /**
   * Whether the logged in user was created by this request.
   * @return value or {@code null} for none
   */
  public java.lang.Boolean getIsNewUser() {
    return isNewUser;
  }

  /**
   * Whether the logged in user was created by this request.
   * @param isNewUser isNewUser or {@code null} for none
   */
  public GoogleCloudIdentitytoolkitV1SignInWithGameCenterResponse setIsNewUser(java.lang.Boolean isNewUser) {
    this.isNewUser = isNewUser;
    return this;
  }

  /**
   * The ID of the authenticated user. Always present in the response.
   * @return value or {@code null} for none
   */
  public java.lang.String getLocalId() {
    return localId;
  }

  /**
   * The ID of the authenticated user. Always present in the response.
   * @param localId localId or {@code null} for none
   */
  public GoogleCloudIdentitytoolkitV1SignInWithGameCenterResponse setLocalId(java.lang.String localId) {
    this.localId = localId;
    return this;
  }

  /**
   * The user's Game Center player ID. Pass `playerID` along with `gamePlayerID` and `teamPlayerID`
   * to initiate the migration of a user's Game Center player ID to `gamePlayerID`.
   * @return value or {@code null} for none
   */
  public java.lang.String getPlayerId() {
    return playerId;
  }

  /**
   * The user's Game Center player ID. Pass `playerID` along with `gamePlayerID` and `teamPlayerID`
   * to initiate the migration of a user's Game Center player ID to `gamePlayerID`.
   * @param playerId playerId or {@code null} for none
   */
  public GoogleCloudIdentitytoolkitV1SignInWithGameCenterResponse setPlayerId(java.lang.String playerId) {
    this.playerId = playerId;
    return this;
  }

  /**
   * An Identity Platform refresh token for the authenticated user.
   * @return value or {@code null} for none
   */
  public java.lang.String getRefreshToken() {
    return refreshToken;
  }

  /**
   * An Identity Platform refresh token for the authenticated user.
   * @param refreshToken refreshToken or {@code null} for none
   */
  public GoogleCloudIdentitytoolkitV1SignInWithGameCenterResponse setRefreshToken(java.lang.String refreshToken) {
    this.refreshToken = refreshToken;
    return this;
  }

  /**
   * The user's Game Center team player ID. A unique identifier for a player of all the games that
   * you distribute using your developer account.
   * https://developer.apple.com/documentation/gamekit/gkplayer/3174857-teamplayerid
   * @return value or {@code null} for none
   */
  public java.lang.String getTeamPlayerId() {
    return teamPlayerId;
  }

  /**
   * The user's Game Center team player ID. A unique identifier for a player of all the games that
   * you distribute using your developer account.
   * https://developer.apple.com/documentation/gamekit/gkplayer/3174857-teamplayerid
   * @param teamPlayerId teamPlayerId or {@code null} for none
   */
  public GoogleCloudIdentitytoolkitV1SignInWithGameCenterResponse setTeamPlayerId(java.lang.String teamPlayerId) {
    this.teamPlayerId = teamPlayerId;
    return this;
  }

  @Override
  public GoogleCloudIdentitytoolkitV1SignInWithGameCenterResponse set(String fieldName, Object value) {
    return (GoogleCloudIdentitytoolkitV1SignInWithGameCenterResponse) super.set(fieldName, value);
  }

  @Override
  public GoogleCloudIdentitytoolkitV1SignInWithGameCenterResponse clone() {
    return (GoogleCloudIdentitytoolkitV1SignInWithGameCenterResponse) super.clone();
  }

}
