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

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

There is a newer version: v3-rev20240903-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;

/**
 * Representation of a change to a file or Team Drive.
 *
 * 

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 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 Change extends com.google.api.client.json.GenericJson { /** * Whether the file or Team Drive has been removed from this list of changes, for example by * deletion or loss of access. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Boolean deleted; /** * The updated state of the file. Present if the type is file and the file has not been removed * from this list of changes. * The value may be {@code null}. */ @com.google.api.client.util.Key private File file; /** * The ID of the file associated with this change. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String fileId; /** * The ID of the change. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.lang.Long id; /** * This is always drive#change. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String kind; /** * The time of this modification. * The value may be {@code null}. */ @com.google.api.client.util.Key private com.google.api.client.util.DateTime modificationDate; /** * A link back to this change. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String selfLink; /** * The updated state of the Team Drive. Present if the type is teamDrive, the user is still a * member of the Team Drive, and the Team Drive has not been deleted. * The value may be {@code null}. */ @com.google.api.client.util.Key private TeamDrive teamDrive; /** * The ID of the Team Drive associated with this change. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String teamDriveId; /** * The type of the change. Possible values are file and teamDrive. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String type; /** * Whether the file or Team Drive has been removed from this list of changes, for example by * deletion or loss of access. * @return value or {@code null} for none */ public java.lang.Boolean getDeleted() { return deleted; } /** * Whether the file or Team Drive has been removed from this list of changes, for example by * deletion or loss of access. * @param deleted deleted or {@code null} for none */ public Change setDeleted(java.lang.Boolean deleted) { this.deleted = deleted; return this; } /** * The updated state of the file. Present if the type is file and the file has not been removed * from this list of changes. * @return value or {@code null} for none */ public File getFile() { return file; } /** * The updated state of the file. Present if the type is file and the file has not been removed * from this list of changes. * @param file file or {@code null} for none */ public Change setFile(File file) { this.file = file; return this; } /** * The ID of the file associated with this change. * @return value or {@code null} for none */ public java.lang.String getFileId() { return fileId; } /** * The ID of the file associated with this change. * @param fileId fileId or {@code null} for none */ public Change setFileId(java.lang.String fileId) { this.fileId = fileId; return this; } /** * The ID of the change. * @return value or {@code null} for none */ public java.lang.Long getId() { return id; } /** * The ID of the change. * @param id id or {@code null} for none */ public Change setId(java.lang.Long id) { this.id = id; return this; } /** * This is always drive#change. * @return value or {@code null} for none */ public java.lang.String getKind() { return kind; } /** * This is always drive#change. * @param kind kind or {@code null} for none */ public Change setKind(java.lang.String kind) { this.kind = kind; return this; } /** * The time of this modification. * @return value or {@code null} for none */ public com.google.api.client.util.DateTime getModificationDate() { return modificationDate; } /** * The time of this modification. * @param modificationDate modificationDate or {@code null} for none */ public Change setModificationDate(com.google.api.client.util.DateTime modificationDate) { this.modificationDate = modificationDate; return this; } /** * A link back to this change. * @return value or {@code null} for none */ public java.lang.String getSelfLink() { return selfLink; } /** * A link back to this change. * @param selfLink selfLink or {@code null} for none */ public Change setSelfLink(java.lang.String selfLink) { this.selfLink = selfLink; return this; } /** * The updated state of the Team Drive. Present if the type is teamDrive, the user is still a * member of the Team Drive, and the Team Drive has not been deleted. * @return value or {@code null} for none */ public TeamDrive getTeamDrive() { return teamDrive; } /** * The updated state of the Team Drive. Present if the type is teamDrive, the user is still a * member of the Team Drive, and the Team Drive has not been deleted. * @param teamDrive teamDrive or {@code null} for none */ public Change setTeamDrive(TeamDrive teamDrive) { this.teamDrive = teamDrive; return this; } /** * The ID of the Team Drive associated with this change. * @return value or {@code null} for none */ public java.lang.String getTeamDriveId() { return teamDriveId; } /** * The ID of the Team Drive associated with this change. * @param teamDriveId teamDriveId or {@code null} for none */ public Change setTeamDriveId(java.lang.String teamDriveId) { this.teamDriveId = teamDriveId; return this; } /** * The type of the change. Possible values are file and teamDrive. * @return value or {@code null} for none */ public java.lang.String getType() { return type; } /** * The type of the change. Possible values are file and teamDrive. * @param type type or {@code null} for none */ public Change setType(java.lang.String type) { this.type = type; return this; } @Override public Change set(String fieldName, Object value) { return (Change) super.set(fieldName, value); } @Override public Change clone() { return (Change) super.clone(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy