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

com.google.api.services.gmail.model.History Maven / Gradle / Ivy

There is a newer version: v1-rev20240520-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.gmail.model;

/**
 * A record of a change to the user's mailbox. Each history change may affect multiple messages in
 * multiple ways.
 *
 * 

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 Gmail 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 History extends com.google.api.client.json.GenericJson { /** * The mailbox sequence ID. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.math.BigInteger id; /** * Labels added to messages in this history record. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List labelsAdded; /** * Labels removed from messages in this history record. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List labelsRemoved; /** * List of messages changed in this history record. The fields for specific change types, such as * `messagesAdded` may duplicate messages in this field. We recommend using the specific change- * type fields instead of this. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List messages; /** * Messages added to the mailbox in this history record. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List messagesAdded; /** * Messages deleted (not Trashed) from the mailbox in this history record. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List messagesDeleted; /** * The mailbox sequence ID. * @return value or {@code null} for none */ public java.math.BigInteger getId() { return id; } /** * The mailbox sequence ID. * @param id id or {@code null} for none */ public History setId(java.math.BigInteger id) { this.id = id; return this; } /** * Labels added to messages in this history record. * @return value or {@code null} for none */ public java.util.List getLabelsAdded() { return labelsAdded; } /** * Labels added to messages in this history record. * @param labelsAdded labelsAdded or {@code null} for none */ public History setLabelsAdded(java.util.List labelsAdded) { this.labelsAdded = labelsAdded; return this; } /** * Labels removed from messages in this history record. * @return value or {@code null} for none */ public java.util.List getLabelsRemoved() { return labelsRemoved; } /** * Labels removed from messages in this history record. * @param labelsRemoved labelsRemoved or {@code null} for none */ public History setLabelsRemoved(java.util.List labelsRemoved) { this.labelsRemoved = labelsRemoved; return this; } /** * List of messages changed in this history record. The fields for specific change types, such as * `messagesAdded` may duplicate messages in this field. We recommend using the specific change- * type fields instead of this. * @return value or {@code null} for none */ public java.util.List getMessages() { return messages; } /** * List of messages changed in this history record. The fields for specific change types, such as * `messagesAdded` may duplicate messages in this field. We recommend using the specific change- * type fields instead of this. * @param messages messages or {@code null} for none */ public History setMessages(java.util.List messages) { this.messages = messages; return this; } /** * Messages added to the mailbox in this history record. * @return value or {@code null} for none */ public java.util.List getMessagesAdded() { return messagesAdded; } /** * Messages added to the mailbox in this history record. * @param messagesAdded messagesAdded or {@code null} for none */ public History setMessagesAdded(java.util.List messagesAdded) { this.messagesAdded = messagesAdded; return this; } /** * Messages deleted (not Trashed) from the mailbox in this history record. * @return value or {@code null} for none */ public java.util.List getMessagesDeleted() { return messagesDeleted; } /** * Messages deleted (not Trashed) from the mailbox in this history record. * @param messagesDeleted messagesDeleted or {@code null} for none */ public History setMessagesDeleted(java.util.List messagesDeleted) { this.messagesDeleted = messagesDeleted; return this; } @Override public History set(String fieldName, Object value) { return (History) super.set(fieldName, value); } @Override public History clone() { return (History) super.clone(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy