|
| 1 | +/* |
| 2 | + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except |
| 3 | + * in compliance with the License. You may obtain a copy of the License at |
| 4 | + * |
| 5 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 6 | + * |
| 7 | + * Unless required by applicable law or agreed to in writing, software distributed under the License |
| 8 | + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express |
| 9 | + * or implied. See the License for the specific language governing permissions and limitations under |
| 10 | + * the License. |
| 11 | + */ |
| 12 | +/* |
| 13 | + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ |
| 14 | + * Modify at your own risk. |
| 15 | + */ |
| 16 | + |
| 17 | +package com.google.api.services.workspaceevents.v1.model; |
| 18 | + |
| 19 | +/** |
| 20 | + * Additional supported options for serving Drive events. |
| 21 | + * |
| 22 | + * <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is |
| 23 | + * transmitted over HTTP when working with the Google Workspace Events API. For a detailed |
| 24 | + * explanation see: |
| 25 | + * <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a> |
| 26 | + * </p> |
| 27 | + * |
| 28 | + * @author Google, Inc. |
| 29 | + */ |
| 30 | +@SuppressWarnings("javadoc") |
| 31 | +public final class DriveOptions extends com.google.api.client.json.GenericJson { |
| 32 | + |
| 33 | + /** |
| 34 | + * Optional. Immutable. For subscriptions to Google Drive events, whether to receive events about |
| 35 | + * Drive files that are children of the target folder or shared drive. * If `false`, the |
| 36 | + * subscription only receives events about changes to the folder or shared drive that's specified |
| 37 | + * as the `targetResource`. * If `true`, the `mimeType` field of the `file` resource must be set |
| 38 | + * to `application/vnd.google-apps.folder`. For details, see [Google Drive event |
| 39 | + * types](https://developers.google.com/workspace/events/guides/events-drive#event-types). |
| 40 | + * The value may be {@code null}. |
| 41 | + */ |
| 42 | + @com.google.api.client.util.Key |
| 43 | + private java.lang.Boolean includeDescendants; |
| 44 | + |
| 45 | + /** |
| 46 | + * Optional. Immutable. For subscriptions to Google Drive events, whether to receive events about |
| 47 | + * Drive files that are children of the target folder or shared drive. * If `false`, the |
| 48 | + * subscription only receives events about changes to the folder or shared drive that's specified |
| 49 | + * as the `targetResource`. * If `true`, the `mimeType` field of the `file` resource must be set |
| 50 | + * to `application/vnd.google-apps.folder`. For details, see [Google Drive event |
| 51 | + * types](https://developers.google.com/workspace/events/guides/events-drive#event-types). |
| 52 | + * @return value or {@code null} for none |
| 53 | + */ |
| 54 | + public java.lang.Boolean getIncludeDescendants() { |
| 55 | + return includeDescendants; |
| 56 | + } |
| 57 | + |
| 58 | + /** |
| 59 | + * Optional. Immutable. For subscriptions to Google Drive events, whether to receive events about |
| 60 | + * Drive files that are children of the target folder or shared drive. * If `false`, the |
| 61 | + * subscription only receives events about changes to the folder or shared drive that's specified |
| 62 | + * as the `targetResource`. * If `true`, the `mimeType` field of the `file` resource must be set |
| 63 | + * to `application/vnd.google-apps.folder`. For details, see [Google Drive event |
| 64 | + * types](https://developers.google.com/workspace/events/guides/events-drive#event-types). |
| 65 | + * @param includeDescendants includeDescendants or {@code null} for none |
| 66 | + */ |
| 67 | + public DriveOptions setIncludeDescendants(java.lang.Boolean includeDescendants) { |
| 68 | + this.includeDescendants = includeDescendants; |
| 69 | + return this; |
| 70 | + } |
| 71 | + |
| 72 | + @Override |
| 73 | + public DriveOptions set(String fieldName, Object value) { |
| 74 | + return (DriveOptions) super.set(fieldName, value); |
| 75 | + } |
| 76 | + |
| 77 | + @Override |
| 78 | + public DriveOptions clone() { |
| 79 | + return (DriveOptions) super.clone(); |
| 80 | + } |
| 81 | + |
| 82 | +} |
0 commit comments