com.google.api.services.drive.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.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.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String emailAddress;
/**
* Output only. Whether this user is the same as the authenticated user for whom the request was
* made.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.Boolean isAuthenticatedUser;
/**
* Output only. This is always `drive#user`.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String kind;
/**
* Output only. The user's ID as visible in the permissions collection.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String permissionId;
/**
* Output only. The user's profile picture.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private Picture picture;
/**
* 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.
* @return value or {@code null} for none
*/
public java.lang.String getEmailAddress() {
return emailAddress;
}
/**
* Output only. The email address of the user.
* @param emailAddress emailAddress or {@code null} for none
*/
public User setEmailAddress(java.lang.String emailAddress) {
this.emailAddress = emailAddress;
return this;
}
/**
* Output only. Whether this user is the same as the authenticated user for whom the request was
* made.
* @return value or {@code null} for none
*/
public java.lang.Boolean getIsAuthenticatedUser() {
return isAuthenticatedUser;
}
/**
* Output only. Whether this user is the same as the authenticated user for whom the request was
* made.
* @param isAuthenticatedUser isAuthenticatedUser or {@code null} for none
*/
public User setIsAuthenticatedUser(java.lang.Boolean isAuthenticatedUser) {
this.isAuthenticatedUser = isAuthenticatedUser;
return this;
}
/**
* Output only. This is always `drive#user`.
* @return value or {@code null} for none
*/
public java.lang.String getKind() {
return kind;
}
/**
* Output only. This is always `drive#user`.
* @param kind kind or {@code null} for none
*/
public User setKind(java.lang.String kind) {
this.kind = kind;
return this;
}
/**
* Output only. The user's ID as visible in the permissions collection.
* @return value or {@code null} for none
*/
public java.lang.String getPermissionId() {
return permissionId;
}
/**
* Output only. The user's ID as visible in the permissions collection.
* @param permissionId permissionId or {@code null} for none
*/
public User setPermissionId(java.lang.String permissionId) {
this.permissionId = permissionId;
return this;
}
/**
* Output only. The user's profile picture.
* @return value or {@code null} for none
*/
public Picture getPicture() {
return picture;
}
/**
* Output only. The user's profile picture.
* @param picture picture or {@code null} for none
*/
public User setPicture(Picture picture) {
this.picture = picture;
return this;
}
@Override
public User set(String fieldName, Object value) {
return (User) super.set(fieldName, value);
}
@Override
public User clone() {
return (User) super.clone();
}
/**
* Output only. The user's profile picture.
*/
public static final class Picture extends com.google.api.client.json.GenericJson {
/**
* Output Only. A URL that points to a profile picture of this user.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String url;
/**
* Output Only. A URL that points to a profile picture of this user.
* @return value or {@code null} for none
*/
public java.lang.String getUrl() {
return url;
}
/**
* Output Only. A URL that points to a profile picture of this user.
* @param url url or {@code null} for none
*/
public Picture setUrl(java.lang.String url) {
this.url = url;
return this;
}
@Override
public Picture set(String fieldName, Object value) {
return (Picture) super.set(fieldName, value);
}
@Override
public Picture clone() {
return (Picture) super.clone();
}
}
}