|
| 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.datalineage.v1.model; |
| 18 | + |
| 19 | +/** |
| 20 | + * Configuration for Data Lineage. Defines different configuration options for Lineage customers to |
| 21 | + * control behaviour of lineage systems. |
| 22 | + * |
| 23 | + * <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is |
| 24 | + * transmitted over HTTP when working with the Data Lineage API. For a detailed 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 GoogleCloudDatacatalogLineageConfigmanagementV1Config extends com.google.api.client.json.GenericJson { |
| 32 | + |
| 33 | + /** |
| 34 | + * Optional. `etag` is used for optimistic concurrency control as a way to help prevent |
| 35 | + * simultaneous updates of a config from overwriting each other. It is required that systems make |
| 36 | + * use of the `etag` in the read-modify-write cycle to perform config updates in order to avoid |
| 37 | + * race conditions: An `etag` is returned in the response to `GetConfig`, and systems are expected |
| 38 | + * to put that etag in the request to `UpdateConfig` to ensure that their change will be applied |
| 39 | + * to the same version of the config. If an `etag` is not provided in the call to `UpdateConfig`, |
| 40 | + * then the existing config, if any, will be overwritten. |
| 41 | + * The value may be {@code null}. |
| 42 | + */ |
| 43 | + @com.google.api.client.util.Key |
| 44 | + private java.lang.String etag; |
| 45 | + |
| 46 | + /** |
| 47 | + * Optional. Ingestion rule for Data Lineage ingestion. |
| 48 | + * The value may be {@code null}. |
| 49 | + */ |
| 50 | + @com.google.api.client.util.Key |
| 51 | + private GoogleCloudDatacatalogLineageConfigmanagementV1ConfigIngestion ingestion; |
| 52 | + |
| 53 | + /** |
| 54 | + * Identifier. The resource name of the config. Format: |
| 55 | + * `organizations/{organization_id}/locations/global/config` |
| 56 | + * `folders/{folder_id}/locations/global/config` `projects/{project_id}/locations/global/config` |
| 57 | + * `projects/{project_number}/locations/global/config` |
| 58 | + * The value may be {@code null}. |
| 59 | + */ |
| 60 | + @com.google.api.client.util.Key |
| 61 | + private java.lang.String name; |
| 62 | + |
| 63 | + /** |
| 64 | + * Optional. `etag` is used for optimistic concurrency control as a way to help prevent |
| 65 | + * simultaneous updates of a config from overwriting each other. It is required that systems make |
| 66 | + * use of the `etag` in the read-modify-write cycle to perform config updates in order to avoid |
| 67 | + * race conditions: An `etag` is returned in the response to `GetConfig`, and systems are expected |
| 68 | + * to put that etag in the request to `UpdateConfig` to ensure that their change will be applied |
| 69 | + * to the same version of the config. If an `etag` is not provided in the call to `UpdateConfig`, |
| 70 | + * then the existing config, if any, will be overwritten. |
| 71 | + * @return value or {@code null} for none |
| 72 | + */ |
| 73 | + public java.lang.String getEtag() { |
| 74 | + return etag; |
| 75 | + } |
| 76 | + |
| 77 | + /** |
| 78 | + * Optional. `etag` is used for optimistic concurrency control as a way to help prevent |
| 79 | + * simultaneous updates of a config from overwriting each other. It is required that systems make |
| 80 | + * use of the `etag` in the read-modify-write cycle to perform config updates in order to avoid |
| 81 | + * race conditions: An `etag` is returned in the response to `GetConfig`, and systems are expected |
| 82 | + * to put that etag in the request to `UpdateConfig` to ensure that their change will be applied |
| 83 | + * to the same version of the config. If an `etag` is not provided in the call to `UpdateConfig`, |
| 84 | + * then the existing config, if any, will be overwritten. |
| 85 | + * @param etag etag or {@code null} for none |
| 86 | + */ |
| 87 | + public GoogleCloudDatacatalogLineageConfigmanagementV1Config setEtag(java.lang.String etag) { |
| 88 | + this.etag = etag; |
| 89 | + return this; |
| 90 | + } |
| 91 | + |
| 92 | + /** |
| 93 | + * Optional. Ingestion rule for Data Lineage ingestion. |
| 94 | + * @return value or {@code null} for none |
| 95 | + */ |
| 96 | + public GoogleCloudDatacatalogLineageConfigmanagementV1ConfigIngestion getIngestion() { |
| 97 | + return ingestion; |
| 98 | + } |
| 99 | + |
| 100 | + /** |
| 101 | + * Optional. Ingestion rule for Data Lineage ingestion. |
| 102 | + * @param ingestion ingestion or {@code null} for none |
| 103 | + */ |
| 104 | + public GoogleCloudDatacatalogLineageConfigmanagementV1Config setIngestion(GoogleCloudDatacatalogLineageConfigmanagementV1ConfigIngestion ingestion) { |
| 105 | + this.ingestion = ingestion; |
| 106 | + return this; |
| 107 | + } |
| 108 | + |
| 109 | + /** |
| 110 | + * Identifier. The resource name of the config. Format: |
| 111 | + * `organizations/{organization_id}/locations/global/config` |
| 112 | + * `folders/{folder_id}/locations/global/config` `projects/{project_id}/locations/global/config` |
| 113 | + * `projects/{project_number}/locations/global/config` |
| 114 | + * @return value or {@code null} for none |
| 115 | + */ |
| 116 | + public java.lang.String getName() { |
| 117 | + return name; |
| 118 | + } |
| 119 | + |
| 120 | + /** |
| 121 | + * Identifier. The resource name of the config. Format: |
| 122 | + * `organizations/{organization_id}/locations/global/config` |
| 123 | + * `folders/{folder_id}/locations/global/config` `projects/{project_id}/locations/global/config` |
| 124 | + * `projects/{project_number}/locations/global/config` |
| 125 | + * @param name name or {@code null} for none |
| 126 | + */ |
| 127 | + public GoogleCloudDatacatalogLineageConfigmanagementV1Config setName(java.lang.String name) { |
| 128 | + this.name = name; |
| 129 | + return this; |
| 130 | + } |
| 131 | + |
| 132 | + @Override |
| 133 | + public GoogleCloudDatacatalogLineageConfigmanagementV1Config set(String fieldName, Object value) { |
| 134 | + return (GoogleCloudDatacatalogLineageConfigmanagementV1Config) super.set(fieldName, value); |
| 135 | + } |
| 136 | + |
| 137 | + @Override |
| 138 | + public GoogleCloudDatacatalogLineageConfigmanagementV1Config clone() { |
| 139 | + return (GoogleCloudDatacatalogLineageConfigmanagementV1Config) super.clone(); |
| 140 | + } |
| 141 | + |
| 142 | +} |
0 commit comments