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

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

There is a newer version: v3-rev20241027-2.0.0
Show newest version
/*
 * 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.drive.model;

/**
 * Information about a Drive user.
 *
 * 

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 Drive 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. A plain text displayable name for this user. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String displayName; /** * Output only. The email address of the user. This may not be present in certain contexts if the * user has not made their email address visible to the requester. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String emailAddress; /** * Output only. Identifies what kind of resource this is. Value: the fixed string `"drive#user"`. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String kind; /** * Output only. Whether this user is the requesting user. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Boolean me; /** * Output only. The user's ID as visible in Permission resources. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String permissionId; /** * Output only. A link to the user's profile photo, if available. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String photoLink; /** * Output only. A plain text displayable name for this user. * @return value or {@code null} for none */ public java.lang.String getDisplayName() { return displayName; } /** * Output only. A plain text displayable name for this user. * @param displayName displayName or {@code null} for none */ public User setDisplayName(java.lang.String displayName) { this.displayName = displayName; return this; } /** * Output only. The email address of the user. This may not be present in certain contexts if the * user has not made their email address visible to the requester. * @return value or {@code null} for none */ public java.lang.String getEmailAddress() { return emailAddress; } /** * Output only. The email address of the user. This may not be present in certain contexts if the * user has not made their email address visible to the requester. * @param emailAddress emailAddress or {@code null} for none */ public User setEmailAddress(java.lang.String emailAddress) { this.emailAddress = emailAddress; return this; } /** * Output only. Identifies what kind of resource this is. Value: the fixed string `"drive#user"`. * @return value or {@code null} for none */ public java.lang.String getKind() { return kind; } /** * Output only. Identifies what kind of resource this is. Value: the fixed string `"drive#user"`. * @param kind kind or {@code null} for none */ public User setKind(java.lang.String kind) { this.kind = kind; return this; } /** * Output only. Whether this user is the requesting user. * @return value or {@code null} for none */ public java.lang.Boolean getMe() { return me; } /** * Output only. Whether this user is the requesting user. * @param me me or {@code null} for none */ public User setMe(java.lang.Boolean me) { this.me = me; return this; } /** * Output only. The user's ID as visible in Permission resources. * @return value or {@code null} for none */ public java.lang.String getPermissionId() { return permissionId; } /** * Output only. The user's ID as visible in Permission resources. * @param permissionId permissionId or {@code null} for none */ public User setPermissionId(java.lang.String permissionId) { this.permissionId = permissionId; return this; } /** * Output only. A link to the user's profile photo, if available. * @return value or {@code null} for none */ public java.lang.String getPhotoLink() { return photoLink; } /** * Output only. A link to the user's profile photo, if available. * @param photoLink photoLink or {@code null} for none */ public User setPhotoLink(java.lang.String photoLink) { this.photoLink = photoLink; 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 - 2024 Weber Informatics LLC | Privacy Policy