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
/*
 * Copyright 2010 Google Inc.
 *
 * 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/google/apis-client-generator/
 * (build: 2016-05-27 16:00:31 UTC)
 * on 2016-07-28 at 20:39:30 UTC 
 * Modify at your own risk.
 */

package com.google.api.services.drive.model;

/**
 * A change to a file.
 *
 * 

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 { /** * The updated state of the file. Present if the file has not been removed. * The value may be {@code null}. */ @com.google.api.client.util.Key private File file; /** * The ID of the file which has changed. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String fileId; /** * This is always drive#change. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String kind; /** * Whether the file has been removed from the view of the changes list, for example by deletion or * lost access. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Boolean removed; /** * The time of this change (RFC 3339 date-time). * The value may be {@code null}. */ @com.google.api.client.util.Key private com.google.api.client.util.DateTime time; /** * The updated state of the file. Present if the file has not been removed. * @return value or {@code null} for none */ public File getFile() { return file; } /** * The updated state of the file. Present if the file has not been removed. * @param file file or {@code null} for none */ public Change setFile(File file) { this.file = file; return this; } /** * The ID of the file which has changed. * @return value or {@code null} for none */ public java.lang.String getFileId() { return fileId; } /** * The ID of the file which has changed. * @param fileId fileId or {@code null} for none */ public Change setFileId(java.lang.String fileId) { this.fileId = fileId; 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; } /** * Whether the file has been removed from the view of the changes list, for example by deletion or * lost access. * @return value or {@code null} for none */ public java.lang.Boolean getRemoved() { return removed; } /** * Whether the file has been removed from the view of the changes list, for example by deletion or * lost access. * @param removed removed or {@code null} for none */ public Change setRemoved(java.lang.Boolean removed) { this.removed = removed; return this; } /** * The time of this change (RFC 3339 date-time). * @return value or {@code null} for none */ public com.google.api.client.util.DateTime getTime() { return time; } /** * The time of this change (RFC 3339 date-time). * @param time time or {@code null} for none */ public Change setTime(com.google.api.client.util.DateTime time) { this.time = time; 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