All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.api.services.androidpublisher.model.User Maven / Gradle / Ivy

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

/**
 * A user resource.
 *
 * 

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 Android Developer 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 User extends com.google.api.client.json.GenericJson { /** * Output only. The state of the user's access to the Play Console. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String accessState; /** * Permissions for the user which apply across the developer account. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List developerAccountPermissions; /** * Immutable. The user's email address. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String email; /** * The time at which the user's access expires, if set. When setting this value, it must always be * in the future. * The value may be {@code null}. */ @com.google.api.client.util.Key private String expirationTime; /** * Output only. Per-app permissions for the user. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List grants; static { // hack to force ProGuard to consider Grant used, since otherwise it would be stripped out // see https://github.com/google/google-api-java-client/issues/543 com.google.api.client.util.Data.nullOf(Grant.class); } /** * Required. Resource name for this user, following the pattern * "developers/{developer}/users/{email}". * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String name; /** * Output only. Whether there are more permissions for the user that are not represented here. * This can happen if the caller does not have permission to manage all apps in the account. This * is also `true` if this user is the account owner. If this field is `true`, it should be taken * as a signal that this user cannot be fully managed via the API. That is, the API caller is not * be able to manage all of the permissions this user holds, either because it doesn't know about * them or because the user is the account owner. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Boolean partial; /** * Output only. The state of the user's access to the Play Console. * @return value or {@code null} for none */ public java.lang.String getAccessState() { return accessState; } /** * Output only. The state of the user's access to the Play Console. * @param accessState accessState or {@code null} for none */ public User setAccessState(java.lang.String accessState) { this.accessState = accessState; return this; } /** * Permissions for the user which apply across the developer account. * @return value or {@code null} for none */ public java.util.List getDeveloperAccountPermissions() { return developerAccountPermissions; } /** * Permissions for the user which apply across the developer account. * @param developerAccountPermissions developerAccountPermissions or {@code null} for none */ public User setDeveloperAccountPermissions(java.util.List developerAccountPermissions) { this.developerAccountPermissions = developerAccountPermissions; return this; } /** * Immutable. The user's email address. * @return value or {@code null} for none */ public java.lang.String getEmail() { return email; } /** * Immutable. The user's email address. * @param email email or {@code null} for none */ public User setEmail(java.lang.String email) { this.email = email; return this; } /** * The time at which the user's access expires, if set. When setting this value, it must always be * in the future. * @return value or {@code null} for none */ public String getExpirationTime() { return expirationTime; } /** * The time at which the user's access expires, if set. When setting this value, it must always be * in the future. * @param expirationTime expirationTime or {@code null} for none */ public User setExpirationTime(String expirationTime) { this.expirationTime = expirationTime; return this; } /** * Output only. Per-app permissions for the user. * @return value or {@code null} for none */ public java.util.List getGrants() { return grants; } /** * Output only. Per-app permissions for the user. * @param grants grants or {@code null} for none */ public User setGrants(java.util.List grants) { this.grants = grants; return this; } /** * Required. Resource name for this user, following the pattern * "developers/{developer}/users/{email}". * @return value or {@code null} for none */ public java.lang.String getName() { return name; } /** * Required. Resource name for this user, following the pattern * "developers/{developer}/users/{email}". * @param name name or {@code null} for none */ public User setName(java.lang.String name) { this.name = name; return this; } /** * Output only. Whether there are more permissions for the user that are not represented here. * This can happen if the caller does not have permission to manage all apps in the account. This * is also `true` if this user is the account owner. If this field is `true`, it should be taken * as a signal that this user cannot be fully managed via the API. That is, the API caller is not * be able to manage all of the permissions this user holds, either because it doesn't know about * them or because the user is the account owner. * @return value or {@code null} for none */ public java.lang.Boolean getPartial() { return partial; } /** * Output only. Whether there are more permissions for the user that are not represented here. * This can happen if the caller does not have permission to manage all apps in the account. This * is also `true` if this user is the account owner. If this field is `true`, it should be taken * as a signal that this user cannot be fully managed via the API. That is, the API caller is not * be able to manage all of the permissions this user holds, either because it doesn't know about * them or because the user is the account owner. * @param partial partial or {@code null} for none */ public User setPartial(java.lang.Boolean partial) { this.partial = partial; return this; } @Override public User set(String fieldName, Object value) { return (User) super.set(fieldName, value); } @Override public User clone() { return (User) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy