diff --git a/clients/google-api-services-datacatalog/v1/2.0.0/README.md b/clients/google-api-services-datacatalog/v1/2.0.0/README.md
index f11f3993e83..554a24cf159 100644
--- a/clients/google-api-services-datacatalog/v1/2.0.0/README.md
+++ b/clients/google-api-services-datacatalog/v1/2.0.0/README.md
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
The typical use is:
- *
- * {@code DataCatalog datacatalog = new DataCatalog(...);}
- * {@code DataCatalog.Entries.List request = datacatalog.entries().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public Entries entries() {
- return new Entries();
- }
-
- /**
- * The "entries" collection of methods.
- */
- public class Entries {
-
- /**
- * Gets an entry by its target resource name. The resource name comes from the source Google Cloud
- * Platform service.
- *
- * Create a request for the method "entries.lookup".
- *
- * This request holds the parameters needed by the datacatalog server. After setting any optional
- * parameters, call the {@link Lookup#execute()} method to invoke the remote operation.
- *
- * @return the request
- */
- public Lookup lookup() throws java.io.IOException {
- Lookup result = new Lookup();
- initialize(result);
- return result;
- }
-
- public class Lookup extends DataCatalogRequest{@link - * Lookup#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @since 1.13 - */ - protected Lookup() { - super(DataCatalog.this, "GET", REST_PATH, null, com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1Entry.class); - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Lookup set$Xgafv(java.lang.String $Xgafv) { - return (Lookup) super.set$Xgafv($Xgafv); - } - - @Override - public Lookup setAccessToken(java.lang.String accessToken) { - return (Lookup) super.setAccessToken(accessToken); - } - - @Override - public Lookup setAlt(java.lang.String alt) { - return (Lookup) super.setAlt(alt); - } - - @Override - public Lookup setCallback(java.lang.String callback) { - return (Lookup) super.setCallback(callback); - } - - @Override - public Lookup setFields(java.lang.String fields) { - return (Lookup) super.setFields(fields); - } - - @Override - public Lookup setKey(java.lang.String key) { - return (Lookup) super.setKey(key); - } - - @Override - public Lookup setOauthToken(java.lang.String oauthToken) { - return (Lookup) super.setOauthToken(oauthToken); - } - - @Override - public Lookup setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Lookup) super.setPrettyPrint(prettyPrint); - } - - @Override - public Lookup setQuotaUser(java.lang.String quotaUser) { - return (Lookup) super.setQuotaUser(quotaUser); - } - - @Override - public Lookup setUploadType(java.lang.String uploadType) { - return (Lookup) super.setUploadType(uploadType); - } - - @Override - public Lookup setUploadProtocol(java.lang.String uploadProtocol) { - return (Lookup) super.setUploadProtocol(uploadProtocol); - } - - /** - * [Fully Qualified Name (FQN)](https://cloud.google.com//data-catalog/docs/fully-qualified- - * names) of the resource. FQNs take two forms: * For non-regionalized resources: - * `{SYSTEM}:{PROJECT}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}` * For regionalized resources: - * `{SYSTEM}:{PROJECT}.{LOCATION_ID}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}` Example for a - * DPMS table: - * `dataproc_metastore:{PROJECT_ID}.{LOCATION_ID}.{INSTANCE_ID}.{DATABASE_ID}.{TABLE_ID}` - */ - @com.google.api.client.util.Key - private java.lang.String fullyQualifiedName; - - /**[ Fully Qualified Name (FQN)](https://cloud.google.com//data-catalog/docs/fully-qualified-names) of - [ the resource. FQNs take two forms: * For non-regionalized resources: - [ `{SYSTEM}:{PROJECT}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}` * For regionalized resources: - [ `{SYSTEM}:{PROJECT}.{LOCATION_ID}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}` Example for a DPMS - [ table: `dataproc_metastore:{PROJECT_ID}.{LOCATION_ID}.{INSTANCE_ID}.{DATABASE_ID}.{TABLE_ID}` - [ - - */ - public java.lang.String getFullyQualifiedName() { - return fullyQualifiedName; - } - - /** - * [Fully Qualified Name (FQN)](https://cloud.google.com//data-catalog/docs/fully-qualified- - * names) of the resource. FQNs take two forms: * For non-regionalized resources: - * `{SYSTEM}:{PROJECT}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}` * For regionalized resources: - * `{SYSTEM}:{PROJECT}.{LOCATION_ID}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}` Example for a - * DPMS table: - * `dataproc_metastore:{PROJECT_ID}.{LOCATION_ID}.{INSTANCE_ID}.{DATABASE_ID}.{TABLE_ID}` - */ - public Lookup setFullyQualifiedName(java.lang.String fullyQualifiedName) { - this.fullyQualifiedName = fullyQualifiedName; - return this; - } - - /** - * The full name of the Google Cloud Platform resource the Data Catalog entry represents. For - * more information, see [Full Resource Name] - * (https://cloud.google.com/apis/design/resource_names#full_resource_name). Full names are - * case-sensitive. For example: * - * `//bigquery.googleapis.com/projects/{PROJECT_ID}/datasets/{DATASET_ID}/tables/{TABLE_ID}` * - * `//pubsub.googleapis.com/projects/{PROJECT_ID}/topics/{TOPIC_ID}` - */ - @com.google.api.client.util.Key - private java.lang.String linkedResource; - - /** The full name of the Google Cloud Platform resource the Data Catalog entry represents. For more - information, see [Full Resource Name] - (https://cloud.google.com/apis/design/resource_names#full_resource_name). Full names are case- - sensitive. For example: * - `//bigquery.googleapis.com/projects/{PROJECT_ID}/datasets/{DATASET_ID}/tables/{TABLE_ID}` * - `//pubsub.googleapis.com/projects/{PROJECT_ID}/topics/{TOPIC_ID}` - */ - public java.lang.String getLinkedResource() { - return linkedResource; - } - - /** - * The full name of the Google Cloud Platform resource the Data Catalog entry represents. For - * more information, see [Full Resource Name] - * (https://cloud.google.com/apis/design/resource_names#full_resource_name). Full names are - * case-sensitive. For example: * - * `//bigquery.googleapis.com/projects/{PROJECT_ID}/datasets/{DATASET_ID}/tables/{TABLE_ID}` * - * `//pubsub.googleapis.com/projects/{PROJECT_ID}/topics/{TOPIC_ID}` - */ - public Lookup setLinkedResource(java.lang.String linkedResource) { - this.linkedResource = linkedResource; - return this; - } - - /** - * Location where the lookup should be performed. Required to lookup entry that is not a part - * of `DPMS` or `DATAPLEX` `integrated_system` using its `fully_qualified_name`. Ignored in - * other cases. - */ - @com.google.api.client.util.Key - private java.lang.String location; - - /** Location where the lookup should be performed. Required to lookup entry that is not a part of - `DPMS` or `DATAPLEX` `integrated_system` using its `fully_qualified_name`. Ignored in other cases. - */ - public java.lang.String getLocation() { - return location; - } - - /** - * Location where the lookup should be performed. Required to lookup entry that is not a part - * of `DPMS` or `DATAPLEX` `integrated_system` using its `fully_qualified_name`. Ignored in - * other cases. - */ - public Lookup setLocation(java.lang.String location) { - this.location = location; - return this; - } - - /** - * Project where the lookup should be performed. Required to lookup entry that is not a part - * of `DPMS` or `DATAPLEX` `integrated_system` using its `fully_qualified_name`. Ignored in - * other cases. - */ - @com.google.api.client.util.Key - private java.lang.String project; - - /** Project where the lookup should be performed. Required to lookup entry that is not a part of `DPMS` - or `DATAPLEX` `integrated_system` using its `fully_qualified_name`. Ignored in other cases. - */ - public java.lang.String getProject() { - return project; - } - - /** - * Project where the lookup should be performed. Required to lookup entry that is not a part - * of `DPMS` or `DATAPLEX` `integrated_system` using its `fully_qualified_name`. Ignored in - * other cases. - */ - public Lookup setProject(java.lang.String project) { - this.project = project; - return this; - } - - /** - * The SQL name of the entry. SQL names are case-sensitive. Examples: * - * `pubsub.topic.{PROJECT_ID}.{TOPIC_ID}` * - * `pubsub.topic.{PROJECT_ID}.`\``{TOPIC.ID.SEPARATED.WITH.DOTS}`\` * - * `bigquery.table.{PROJECT_ID}.{DATASET_ID}.{TABLE_ID}` * - * `bigquery.dataset.{PROJECT_ID}.{DATASET_ID}` * - * `datacatalog.entry.{PROJECT_ID}.{LOCATION_ID}.{ENTRY_GROUP_ID}.{ENTRY_ID}` Identifiers - * (`*_ID`) should comply with the [Lexical structure in GoogleSQL] - * (https://cloud.google.com/bigquery/docs/reference/standard-sql/lexical). - */ - @com.google.api.client.util.Key - private java.lang.String sqlResource; - - /** The SQL name of the entry. SQL names are case-sensitive. Examples: * - `pubsub.topic.{PROJECT_ID}.{TOPIC_ID}` * - `pubsub.topic.{PROJECT_ID}.`\``{TOPIC.ID.SEPARATED.WITH.DOTS}`\` * - `bigquery.table.{PROJECT_ID}.{DATASET_ID}.{TABLE_ID}` * - `bigquery.dataset.{PROJECT_ID}.{DATASET_ID}` * - `datacatalog.entry.{PROJECT_ID}.{LOCATION_ID}.{ENTRY_GROUP_ID}.{ENTRY_ID}` Identifiers (`*_ID`) - should comply with the [Lexical structure in GoogleSQL] - (https://cloud.google.com/bigquery/docs/reference/standard-sql/lexical). - */ - public java.lang.String getSqlResource() { - return sqlResource; - } - - /** - * The SQL name of the entry. SQL names are case-sensitive. Examples: * - * `pubsub.topic.{PROJECT_ID}.{TOPIC_ID}` * - * `pubsub.topic.{PROJECT_ID}.`\``{TOPIC.ID.SEPARATED.WITH.DOTS}`\` * - * `bigquery.table.{PROJECT_ID}.{DATASET_ID}.{TABLE_ID}` * - * `bigquery.dataset.{PROJECT_ID}.{DATASET_ID}` * - * `datacatalog.entry.{PROJECT_ID}.{LOCATION_ID}.{ENTRY_GROUP_ID}.{ENTRY_ID}` Identifiers - * (`*_ID`) should comply with the [Lexical structure in GoogleSQL] - * (https://cloud.google.com/bigquery/docs/reference/standard-sql/lexical). - */ - public Lookup setSqlResource(java.lang.String sqlResource) { - this.sqlResource = sqlResource; - return this; - } - - @Override - public Lookup set(String parameterName, Object value) { - return (Lookup) super.set(parameterName, value); - } - } - - } - /** * An accessor for creating requests from the Organizations collection. * @@ -1350,229 +1056,177 @@ public SetConfig set(String parameterName, Object value) { } /** - * An accessor for creating requests from the EntryGroups collection. + * An accessor for creating requests from the Operations collection. * *The typical use is:
*
* {@code DataCatalog datacatalog = new DataCatalog(...);}
- * {@code DataCatalog.EntryGroups.List request = datacatalog.entryGroups().list(parameters ...)}
+ * {@code DataCatalog.Operations.List request = datacatalog.operations().list(parameters ...)}
*
*
* @return the resource collection
*/
- public EntryGroups entryGroups() {
- return new EntryGroups();
+ public Operations operations() {
+ return new Operations();
}
/**
- * The "entryGroups" collection of methods.
+ * The "operations" collection of methods.
*/
- public class EntryGroups {
+ public class Operations {
/**
- * Creates an entry group. An entry group contains logically related entries together with [Cloud
- * Identity and Access Management](/data-catalog/docs/concepts/iam) policies. These policies specify
- * users who can create, edit, and view entries within entry groups. Data Catalog automatically
- * creates entry groups with names that start with the `@` symbol for the following resources: *
- * BigQuery entries (`@bigquery`) * Pub/Sub topics (`@pubsub`) * Dataproc Metastore services
- * (`@dataproc_metastore_{SERVICE_NAME_HASH}`) You can create your own entry groups for Cloud
- * Storage fileset entries and custom entries together with the corresponding IAM policies. User-
- * created entry groups can't contain the `@` symbol, it is reserved for automatically created
- * groups. Entry groups, like entries, can be searched. A maximum of 10,000 entry groups may be
- * created per organization across all locations. You must enable the Data Catalog API in the
- * project identified by the `parent` parameter. For more information, see [Data Catalog resource
- * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).
+ * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to
+ * cancel the operation, but success is not guaranteed. If the server doesn't support this method,
+ * it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other
+ * methods to check whether the cancellation succeeded or whether the operation completed despite
+ * cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an
+ * operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to
+ * `Code.CANCELLED`.
*
- * Create a request for the method "entryGroups.create".
+ * Create a request for the method "operations.cancel".
*
* This request holds the parameters needed by the datacatalog server. After setting any optional
- * parameters, call the {@link Create#execute()} method to invoke the remote operation.
+ * parameters, call the {@link Cancel#execute()} method to invoke the remote operation.
*
- * @param parent Required. The names of the project and location that the new entry group belongs to. Note: The entry
- * group itself and its child resources might not be stored in the location specified in its
- * name.
- * @param content the {@link com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1EntryGroup}
+ * @param name The name of the operation resource to be cancelled.
* @return the request
*/
- public Create create(java.lang.String parent, com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1EntryGroup content) throws java.io.IOException {
- Create result = new Create(parent, content);
+ public Cancel cancel(java.lang.String name) throws java.io.IOException {
+ Cancel result = new Cancel(name);
initialize(result);
return result;
}
- public class Create extends DataCatalogRequest{@link - * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * Cancel#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.
* - * @param parent Required. The names of the project and location that the new entry group belongs to. Note: The entry - * group itself and its child resources might not be stored in the location specified in its - * name. - * @param content the {@link com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1EntryGroup} + * @param name The name of the operation resource to be cancelled. * @since 1.13 */ - protected Create(java.lang.String parent, com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1EntryGroup content) { - super(DataCatalog.this, "POST", REST_PATH, content, com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1EntryGroup.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + protected Cancel(java.lang.String name) { + super(DataCatalog.this, "POST", REST_PATH, null, com.google.api.services.datacatalog.v1.model.Empty.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); } } @Override - public Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); } @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); } @Override - public Create setAlt(java.lang.String alt) { - return (Create) super.setAlt(alt); + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); } @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); } @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); } @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); } @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); } @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); } @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); } @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); } @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) super.setUploadProtocol(uploadProtocol); + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); } - /** - * Required. The names of the project and location that the new entry group belongs to. - * Note: The entry group itself and its child resources might not be stored in the - * location specified in its name. - */ + /** The name of the operation resource to be cancelled. */ @com.google.api.client.util.Key - private java.lang.String parent; + private java.lang.String name; - /** Required. The names of the project and location that the new entry group belongs to. Note: The - entry group itself and its child resources might not be stored in the location specified in its - name. + /** The name of the operation resource to be cancelled. */ - public java.lang.String getParent() { - return parent; + public java.lang.String getName() { + return name; } - /** - * Required. The names of the project and location that the new entry group belongs to. - * Note: The entry group itself and its child resources might not be stored in the - * location specified in its name. - */ - public Create setParent(java.lang.String parent) { + /** The name of the operation resource to be cancelled. */ + public Cancel setName(java.lang.String name) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); } - this.parent = parent; + this.name = name; return this; } - /** - * Required. The ID of the entry group to create. The ID must contain only letters (a-z, - * A-Z), numbers (0-9), underscores (_), and must start with a letter or underscore. The - * maximum size is 64 bytes when encoded in UTF-8. - */ - @com.google.api.client.util.Key - private java.lang.String entryGroupId; - - /** Required. The ID of the entry group to create. The ID must contain only letters (a-z, A-Z), numbers - (0-9), underscores (_), and must start with a letter or underscore. The maximum size is 64 bytes - when encoded in UTF-8. - */ - public java.lang.String getEntryGroupId() { - return entryGroupId; - } - - /** - * Required. The ID of the entry group to create. The ID must contain only letters (a-z, - * A-Z), numbers (0-9), underscores (_), and must start with a letter or underscore. The - * maximum size is 64 bytes when encoded in UTF-8. - */ - public Create setEntryGroupId(java.lang.String entryGroupId) { - this.entryGroupId = entryGroupId; - return this; - } - - @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); + @Override + public Cancel set(String parameterName, Object value) { + return (Cancel) super.set(parameterName, value); } } /** - * Deletes an entry group. You must enable the Data Catalog API in the project identified by the - * `name` parameter. For more information, see [Data Catalog resource - * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). + * Deletes a long-running operation. This method indicates that the client is no longer interested + * in the operation result. It does not cancel the operation. If the server doesn't support this + * method, it returns `google.rpc.Code.UNIMPLEMENTED`. * - * Create a request for the method "entryGroups.delete". + * Create a request for the method "operations.delete". * * This request holds the parameters needed by the datacatalog server. After setting any optional * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * - * @param name Required. The name of the entry group to delete. + * @param name The name of the operation resource to be deleted. * @return the request */ public Delete delete(java.lang.String name) throws java.io.IOException { @@ -1586,14 +1240,14 @@ public class Delete extends DataCatalogRequest* {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.
* - * @param name Required. The name of the entry group to get. + * @param name The name of the operation resource. * @since 1.13 */ protected Get(java.lang.String name) { - super(DataCatalog.this, "GET", REST_PATH, null, com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1EntryGroup.class); + super(DataCatalog.this, "GET", REST_PATH, null, com.google.api.services.datacatalog.v1.model.Operation.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); } } @@ -1823,248 +1463,77 @@ public Get setUploadProtocol(java.lang.String uploadProtocol) { return (Get) super.setUploadProtocol(uploadProtocol); } - /** Required. The name of the entry group to get. */ + /** The name of the operation resource. */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The name of the entry group to get. + /** The name of the operation resource. */ public java.lang.String getName() { return name; } - /** Required. The name of the entry group to get. */ + /** The name of the operation resource. */ public Get setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); } this.name = name; return this; } - /** The fields to return. If empty or omitted, all fields are returned. */ - @com.google.api.client.util.Key - private String readMask; - - /** The fields to return. If empty or omitted, all fields are returned. - */ - public String getReadMask() { - return readMask; - } - - /** The fields to return. If empty or omitted, all fields are returned. */ - public Get setReadMask(String readMask) { - this.readMask = readMask; - return this; - } - @Override public Get set(String parameterName, Object value) { return (Get) super.set(parameterName, value); } } /** - * Gets the access control policy for a resource. May return: * A`NOT_FOUND` error if the resource - * doesn't exist or you don't have the permission to view it. * An empty policy if the resource - * exists but doesn't have a set policy. Supported resources are: - Tag templates - Entry groups - * Note: This method doesn't get policies from Google Cloud Platform resources ingested into Data - * Catalog. To call this method, you must have the following Google IAM permissions: - - * `datacatalog.tagTemplates.getIamPolicy` to get policies on tag templates. - - * `datacatalog.entryGroups.getIamPolicy` to get policies on entry groups. - * - * Create a request for the method "entryGroups.getIamPolicy". - * - * This request holds the parameters needed by the datacatalog server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. - * - * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @param content the {@link com.google.api.services.datacatalog.v1.model.GetIamPolicyRequest} - * @return the request - */ - public GetIamPolicy getIamPolicy(java.lang.String resource, com.google.api.services.datacatalog.v1.model.GetIamPolicyRequest content) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(resource, content); - initialize(result); - return result; - } - - public class GetIamPolicy extends DataCatalogRequest{@link - * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @param content the {@link com.google.api.services.datacatalog.v1.model.GetIamPolicyRequest} - * @since 1.13 - */ - protected GetIamPolicy(java.lang.String resource, com.google.api.services.datacatalog.v1.model.GetIamPolicyRequest content) { - super(DataCatalog.this, "POST", REST_PATH, content, com.google.api.services.datacatalog.v1.model.Policy.class); - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+$"); - } - } - - @Override - public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (GetIamPolicy) super.set$Xgafv($Xgafv); - } - - @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); - } - - @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); - } - - @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); - } - - @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); - } - - @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); - } - - @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); - } - - @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); - } - - @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); - } - - @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); - } - - @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); - } - - /** - * REQUIRED: The resource for which the policy is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. - */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** REQUIRED: The resource for which the policy is being requested. See [Resource - names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this - field. - */ - public java.lang.String getResource() { - return resource; - } - - /** - * REQUIRED: The resource for which the policy is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. - */ - public GetIamPolicy setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+$"); - } - this.resource = resource; - return this; - } - - @Override - public GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) super.set(parameterName, value); - } - } - /** - * Lists entry groups. + * Lists operations that match the specified filter in the request. If the server doesn't support + * this method, it returns `UNIMPLEMENTED`. * - * Create a request for the method "entryGroups.list". + * Create a request for the method "operations.list". * * This request holds the parameters needed by the datacatalog server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param parent Required. The name of the location that contains the entry groups to list. Can be provided as a URL. + * @param name The name of the operation's parent resource. * @return the request */ - public List list(java.lang.String parent) throws java.io.IOException { - List result = new List(parent); + public List list(java.lang.String name) throws java.io.IOException { + List result = new List(name); initialize(result); return result; } - public class List extends DataCatalogRequest* {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.
* - * @param parent Required. The name of the location that contains the entry groups to list. Can be provided as a URL. + * @param name The name of the operation's parent resource. * @since 1.13 */ - protected List(java.lang.String parent) { - super(DataCatalog.this, "GET", REST_PATH, null, com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1ListEntryGroupsResponse.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + protected List(java.lang.String name) { + super(DataCatalog.this, "GET", REST_PATH, null, com.google.api.services.datacatalog.v1.model.ListOperationsResponse.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + "^projects/[^/]+/locations/[^/]+$"); } } @@ -2134,6517 +1603,116 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { return (List) super.setUploadProtocol(uploadProtocol); } - /** - * Required. The name of the location that contains the entry groups to list. Can be - * provided as a URL. - */ + /** The name of the operation's parent resource. */ @com.google.api.client.util.Key - private java.lang.String parent; + private java.lang.String name; - /** Required. The name of the location that contains the entry groups to list. Can be provided as a - URL. + /** The name of the operation's parent resource. */ - public java.lang.String getParent() { - return parent; + public java.lang.String getName() { + return name; } - /** - * Required. The name of the location that contains the entry groups to list. Can be - * provided as a URL. - */ - public List setParent(java.lang.String parent) { + /** The name of the operation's parent resource. */ + public List setName(java.lang.String name) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + "^projects/[^/]+/locations/[^/]+$"); } - this.parent = parent; + this.name = name; return this; } - /** - * Optional. The maximum number of items to return. Default is 10. Maximum limit is 1000. - * Throws an invalid argument if `page_size` is greater than 1000. - */ + /** The standard list filter. */ @com.google.api.client.util.Key - private java.lang.Integer pageSize; + private java.lang.String filter; - /** Optional. The maximum number of items to return. Default is 10. Maximum limit is 1000. Throws an - invalid argument if `page_size` is greater than 1000. + /** The standard list filter. */ - public java.lang.Integer getPageSize() { - return pageSize; + public java.lang.String getFilter() { + return filter; } - /** - * Optional. The maximum number of items to return. Default is 10. Maximum limit is 1000. - * Throws an invalid argument if `page_size` is greater than 1000. - */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; + /** The standard list filter. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; return this; } - /** - * Optional. Pagination token that specifies the next page to return. If empty, returns - * the first page. - */ + /** The standard list page size. */ @com.google.api.client.util.Key - private java.lang.String pageToken; + private java.lang.Integer pageSize; - /** Optional. Pagination token that specifies the next page to return. If empty, returns the first - page. + /** The standard list page size. */ - public java.lang.String getPageToken() { - return pageToken; + public java.lang.Integer getPageSize() { + return pageSize; } - /** - * Optional. Pagination token that specifies the next page to return. If empty, returns - * the first page. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; + /** The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; return this; } - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Updates an entry group. You must enable the Data Catalog API in the project identified by the - * `entry_group.name` parameter. For more information, see [Data Catalog resource - * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). - * - * Create a request for the method "entryGroups.patch". - * - * This request holds the parameters needed by the datacatalog server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation. - * - * @param name Identifier. The resource name of the entry group in URL format. Note: The entry group itself and its - * child resources might not be stored in the location specified in its name. - * @param content the {@link com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1EntryGroup} - * @return the request - */ - public Patch patch(java.lang.String name, com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1EntryGroup content) throws java.io.IOException { - Patch result = new Patch(name, content); - initialize(result); - return result; - } - - public class Patch extends DataCatalogRequest{@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param name Identifier. The resource name of the entry group in URL format. Note: The entry group itself and its - * child resources might not be stored in the location specified in its name. - * @param content the {@link com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1EntryGroup} - * @since 1.13 - */ - protected Patch(java.lang.String name, com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1EntryGroup content) { - super(DataCatalog.this, "PATCH", REST_PATH, content, com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1EntryGroup.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+$"); - } - } - - @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); - } - - @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); - } - - @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); - } - - @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); - } - - @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); - } - - @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); - } - - @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); - } - - @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); - } - - @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); - } - - @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); - } - - @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); - } - - /** - * Identifier. The resource name of the entry group in URL format. Note: The entry group - * itself and its child resources might not be stored in the location specified in its - * name. - */ + /** The standard list page token. */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String pageToken; - /** Identifier. The resource name of the entry group in URL format. Note: The entry group itself and - its child resources might not be stored in the location specified in its name. + /** The standard list page token. */ - public java.lang.String getName() { - return name; + public java.lang.String getPageToken() { + return pageToken; } - /** - * Identifier. The resource name of the entry group in URL format. Note: The entry group - * itself and its child resources might not be stored in the location specified in its - * name. - */ - public Patch setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+$"); - } - this.name = name; + /** The standard list page token. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; return this; } /** - * Names of fields whose values to overwrite on an entry group. If this parameter is - * absent or empty, all modifiable fields are overwritten. If such fields are non-required - * and omitted in the request body, their values are emptied. + * When set to `true`, operations that are reachable are returned as normal, and those + * that are unreachable are returned in the ListOperationsResponse.unreachable field. This + * can only be `true` when reading across collections. For example, when `parent` is set + * to `"projects/example/locations/-"`. This field is not supported by default and will + * result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in + * service or product specific documentation. */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.Boolean returnPartialSuccess; - /** Names of fields whose values to overwrite on an entry group. If this parameter is absent or empty, - all modifiable fields are overwritten. If such fields are non-required and omitted in the request - body, their values are emptied. + /** When set to `true`, operations that are reachable are returned as normal, and those that are + unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` + when reading across collections. For example, when `parent` is set to + `"projects/example/locations/-"`. This field is not supported by default and will result in an + `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific + documentation. */ - public String getUpdateMask() { - return updateMask; + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; } /** - * Names of fields whose values to overwrite on an entry group. If this parameter is - * absent or empty, all modifiable fields are overwritten. If such fields are non-required - * and omitted in the request body, their values are emptied. + * When set to `true`, operations that are reachable are returned as normal, and those + * that are unreachable are returned in the ListOperationsResponse.unreachable field. This + * can only be `true` when reading across collections. For example, when `parent` is set + * to `"projects/example/locations/-"`. This field is not supported by default and will + * result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in + * service or product specific documentation. */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } - /** - * Sets an access control policy for a resource. Replaces any existing policy. Supported resources - * are: - Tag templates - Entry groups Note: This method sets policies only within Data Catalog and - * can't be used to manage policies in BigQuery, Pub/Sub, Dataproc Metastore, and any external - * Google Cloud Platform resources synced with the Data Catalog. To call this method, you must have - * the following Google IAM permissions: - `datacatalog.tagTemplates.setIamPolicy` to set policies - * on tag templates. - `datacatalog.entryGroups.setIamPolicy` to set policies on entry groups. - * - * Create a request for the method "entryGroups.setIamPolicy". - * - * This request holds the parameters needed by the datacatalog server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. - * - * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @param content the {@link com.google.api.services.datacatalog.v1.model.SetIamPolicyRequest} - * @return the request - */ - public SetIamPolicy setIamPolicy(java.lang.String resource, com.google.api.services.datacatalog.v1.model.SetIamPolicyRequest content) throws java.io.IOException { - SetIamPolicy result = new SetIamPolicy(resource, content); - initialize(result); - return result; - } - - public class SetIamPolicy extends DataCatalogRequest{@link - * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @param content the {@link com.google.api.services.datacatalog.v1.model.SetIamPolicyRequest} - * @since 1.13 - */ - protected SetIamPolicy(java.lang.String resource, com.google.api.services.datacatalog.v1.model.SetIamPolicyRequest content) { - super(DataCatalog.this, "POST", REST_PATH, content, com.google.api.services.datacatalog.v1.model.Policy.class); - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+$"); - } - } - - @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); - } - - @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); - } - - @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); - } - - @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); - } - - @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); - } - - @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); - } - - @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); - } - - @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); - } - @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); - } - - @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); - } - - @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); - } - - /** - * REQUIRED: The resource for which the policy is being specified. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. - */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** REQUIRED: The resource for which the policy is being specified. See [Resource - names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this - field. - */ - public java.lang.String getResource() { - return resource; - } - - /** - * REQUIRED: The resource for which the policy is being specified. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. - */ - public SetIamPolicy setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+$"); - } - this.resource = resource; - return this; - } - - @Override - public SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); - } - } - /** - * Gets your permissions on a resource. Returns an empty set of permissions if the resource doesn't - * exist. Supported resources are: - Tag templates - Entry groups Note: This method gets policies - * only within Data Catalog and can't be used to get policies from BigQuery, Pub/Sub, Dataproc - * Metastore, and any external Google Cloud Platform resources ingested into Data Catalog. No Google - * IAM permissions are required to call this method. - * - * Create a request for the method "entryGroups.testIamPermissions". - * - * This request holds the parameters needed by the datacatalog server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. - * - * @param resource REQUIRED: The resource for which the policy detail is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @param content the {@link com.google.api.services.datacatalog.v1.model.TestIamPermissionsRequest} - * @return the request - */ - public TestIamPermissions testIamPermissions(java.lang.String resource, com.google.api.services.datacatalog.v1.model.TestIamPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(resource, content); - initialize(result); - return result; - } - - public class TestIamPermissions extends DataCatalogRequest{@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.
- * - * @param resource REQUIRED: The resource for which the policy detail is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @param content the {@link com.google.api.services.datacatalog.v1.model.TestIamPermissionsRequest} - * @since 1.13 - */ - protected TestIamPermissions(java.lang.String resource, com.google.api.services.datacatalog.v1.model.TestIamPermissionsRequest content) { - super(DataCatalog.this, "POST", REST_PATH, content, com.google.api.services.datacatalog.v1.model.TestIamPermissionsResponse.class); - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+$"); - } - } - - @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); - } - - @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); - } - - @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); - } - - @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); - } - - @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); - } - - @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); - } - - @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); - } - - @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); - } - - @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); - } - - @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); - } - - @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); - } - - /** - * REQUIRED: The resource for which the policy detail is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. - */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** REQUIRED: The resource for which the policy detail is being requested. See [Resource - names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this - field. - */ - public java.lang.String getResource() { - return resource; - } - - /** - * REQUIRED: The resource for which the policy detail is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. - */ - public TestIamPermissions setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+$"); - } - this.resource = resource; - return this; - } - - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } - - /** - * An accessor for creating requests from the Entries collection. - * - *The typical use is:
- *
- * {@code DataCatalog datacatalog = new DataCatalog(...);}
- * {@code DataCatalog.Entries.List request = datacatalog.entries().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public Entries entries() {
- return new Entries();
- }
-
- /**
- * The "entries" collection of methods.
- */
- public class Entries {
-
- /**
- * Creates an entry. You can create entries only with 'FILESET', 'CLUSTER', 'DATA_STREAM', or custom
- * types. Data Catalog automatically creates entries with other types during metadata ingestion from
- * integrated systems. You must enable the Data Catalog API in the project identified by the
- * `parent` parameter. For more information, see [Data Catalog resource
- * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). An entry group
- * can have a maximum of 100,000 entries.
- *
- * Create a request for the method "entries.create".
- *
- * This request holds the parameters needed by the datacatalog server. After setting any optional
- * parameters, call the {@link Create#execute()} method to invoke the remote operation.
- *
- * @param parent Required. The name of the entry group this entry belongs to. Note: The entry itself and its child
- * resources might not be stored in the location specified in its name.
- * @param content the {@link com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1Entry}
- * @return the request
- */
- public Create create(java.lang.String parent, com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1Entry content) throws java.io.IOException {
- Create result = new Create(parent, content);
- initialize(result);
- return result;
- }
-
- public class Create extends DataCatalogRequest{@link - * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param parent Required. The name of the entry group this entry belongs to. Note: The entry itself and its child - * resources might not be stored in the location specified in its name. - * @param content the {@link com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1Entry} - * @since 1.13 - */ - protected Create(java.lang.String parent, com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1Entry content) { - super(DataCatalog.this, "POST", REST_PATH, content, com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1Entry.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+$"); - } - } - - @Override - public Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); - } - - @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); - } - - @Override - public Create setAlt(java.lang.String alt) { - return (Create) super.setAlt(alt); - } - - @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); - } - - @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); - } - - @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); - } - - @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); - } - - @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); - } - - @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); - } - - @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); - } - - @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The name of the entry group this entry belongs to. Note: The entry itself - * and its child resources might not be stored in the location specified in its name. - */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** Required. The name of the entry group this entry belongs to. Note: The entry itself and its child - resources might not be stored in the location specified in its name. - */ - public java.lang.String getParent() { - return parent; - } - - /** - * Required. The name of the entry group this entry belongs to. Note: The entry itself - * and its child resources might not be stored in the location specified in its name. - */ - public Create setParent(java.lang.String parent) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+$"); - } - this.parent = parent; - return this; - } - - /** - * Required. The ID of the entry to create. The ID must contain only letters (a-z, A-Z), - * numbers (0-9), and underscores (_). The maximum size is 64 bytes when encoded in - * UTF-8. - */ - @com.google.api.client.util.Key - private java.lang.String entryId; - - /** Required. The ID of the entry to create. The ID must contain only letters (a-z, A-Z), numbers - (0-9), and underscores (_). The maximum size is 64 bytes when encoded in UTF-8. - */ - public java.lang.String getEntryId() { - return entryId; - } - - /** - * Required. The ID of the entry to create. The ID must contain only letters (a-z, A-Z), - * numbers (0-9), and underscores (_). The maximum size is 64 bytes when encoded in - * UTF-8. - */ - public Create setEntryId(java.lang.String entryId) { - this.entryId = entryId; - return this; - } - - @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); - } - } - /** - * Deletes an existing entry. You can delete only the entries created by the CreateEntry method. You - * must enable the Data Catalog API in the project identified by the `name` parameter. For more - * information, see [Data Catalog resource project](https://cloud.google.com/data- - * catalog/docs/concepts/resource-project). - * - * Create a request for the method "entries.delete". - * - * This request holds the parameters needed by the datacatalog server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param name Required. The name of the entry to delete. - * @return the request - */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); - initialize(result); - return result; - } - - public class Delete extends DataCatalogRequest{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param name Required. The name of the entry to delete. - * @since 1.13 - */ - protected Delete(java.lang.String name) { - super(DataCatalog.this, "DELETE", REST_PATH, null, com.google.api.services.datacatalog.v1.model.Empty.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+/entries/[^/]+$"); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - /** Required. The name of the entry to delete. */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The name of the entry to delete. - */ - public java.lang.String getName() { - return name; - } - - /** Required. The name of the entry to delete. */ - public Delete setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+/entries/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Gets an entry. - * - * Create a request for the method "entries.get". - * - * This request holds the parameters needed by the datacatalog server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. - * - * @param name Required. The name of the entry to get. - * @return the request - */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); - initialize(result); - return result; - } - - public class Get extends DataCatalogRequest- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param name Required. The name of the entry to get. - * @since 1.13 - */ - protected Get(java.lang.String name) { - super(DataCatalog.this, "GET", REST_PATH, null, com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1Entry.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+/entries/[^/]+$"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } - - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } - - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } - - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } - - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } - - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } - - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } - - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } - - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } - - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } - - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } - - /** Required. The name of the entry to get. */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The name of the entry to get. - */ - public java.lang.String getName() { - return name; - } - - /** Required. The name of the entry to get. */ - public Get setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+/entries/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Gets the access control policy for a resource. May return: * A`NOT_FOUND` error if the resource - * doesn't exist or you don't have the permission to view it. * An empty policy if the resource - * exists but doesn't have a set policy. Supported resources are: - Tag templates - Entry groups - * Note: This method doesn't get policies from Google Cloud Platform resources ingested into Data - * Catalog. To call this method, you must have the following Google IAM permissions: - - * `datacatalog.tagTemplates.getIamPolicy` to get policies on tag templates. - - * `datacatalog.entryGroups.getIamPolicy` to get policies on entry groups. - * - * Create a request for the method "entries.getIamPolicy". - * - * This request holds the parameters needed by the datacatalog server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. - * - * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @param content the {@link com.google.api.services.datacatalog.v1.model.GetIamPolicyRequest} - * @return the request - */ - public GetIamPolicy getIamPolicy(java.lang.String resource, com.google.api.services.datacatalog.v1.model.GetIamPolicyRequest content) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(resource, content); - initialize(result); - return result; - } - - public class GetIamPolicy extends DataCatalogRequest{@link - * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @param content the {@link com.google.api.services.datacatalog.v1.model.GetIamPolicyRequest} - * @since 1.13 - */ - protected GetIamPolicy(java.lang.String resource, com.google.api.services.datacatalog.v1.model.GetIamPolicyRequest content) { - super(DataCatalog.this, "POST", REST_PATH, content, com.google.api.services.datacatalog.v1.model.Policy.class); - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+/entries/[^/]+$"); - } - } - - @Override - public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (GetIamPolicy) super.set$Xgafv($Xgafv); - } - - @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); - } - - @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); - } - - @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); - } - - @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); - } - - @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); - } - - @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); - } - - @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); - } - - @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); - } - - @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); - } - - @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); - } - - /** - * REQUIRED: The resource for which the policy is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. - */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** REQUIRED: The resource for which the policy is being requested. See [Resource - names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this - field. - */ - public java.lang.String getResource() { - return resource; - } - - /** - * REQUIRED: The resource for which the policy is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. - */ - public GetIamPolicy setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+/entries/[^/]+$"); - } - this.resource = resource; - return this; - } - - @Override - public GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) super.set(parameterName, value); - } - } - /** - * Imports entries from a source, such as data previously dumped into a Cloud Storage bucket, into - * Data Catalog. Import of entries is a sync operation that reconciles the state of the third-party - * system with the Data Catalog. `ImportEntries` accepts source data snapshots of a third-party - * system. Snapshot should be delivered as a .wire or base65-encoded .txt file containing a sequence - * of Protocol Buffer messages of DumpItem type. `ImportEntries` returns a long-running operation - * resource that can be queried with Operations.GetOperation to return ImportEntriesMetadata and an - * ImportEntriesResponse message. - * - * Create a request for the method "entries.import". - * - * This request holds the parameters needed by the datacatalog server. After setting any optional - * parameters, call the {@link DataCatalogImport#execute()} method to invoke the remote operation. - * - * @param parent Required. Target entry group for ingested entries. - * @param content the {@link com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1ImportEntriesRequest} - * @return the request - */ - public DataCatalogImport datacatalogImport(java.lang.String parent, com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1ImportEntriesRequest content) throws java.io.IOException { - DataCatalogImport result = new DataCatalogImport(parent, content); - initialize(result); - return result; - } - - public class DataCatalogImport extends DataCatalogRequest{@link DataCatalogImport#initialize(com.google.api.client.googleapis.services.Ab - * stractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.
- * - * @param parent Required. Target entry group for ingested entries. - * @param content the {@link com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1ImportEntriesRequest} - * @since 1.13 - */ - protected DataCatalogImport(java.lang.String parent, com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1ImportEntriesRequest content) { - super(DataCatalog.this, "POST", REST_PATH, content, com.google.api.services.datacatalog.v1.model.Operation.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+$"); - } - } - - @Override - public DataCatalogImport set$Xgafv(java.lang.String $Xgafv) { - return (DataCatalogImport) super.set$Xgafv($Xgafv); - } - - @Override - public DataCatalogImport setAccessToken(java.lang.String accessToken) { - return (DataCatalogImport) super.setAccessToken(accessToken); - } - - @Override - public DataCatalogImport setAlt(java.lang.String alt) { - return (DataCatalogImport) super.setAlt(alt); - } - - @Override - public DataCatalogImport setCallback(java.lang.String callback) { - return (DataCatalogImport) super.setCallback(callback); - } - - @Override - public DataCatalogImport setFields(java.lang.String fields) { - return (DataCatalogImport) super.setFields(fields); - } - - @Override - public DataCatalogImport setKey(java.lang.String key) { - return (DataCatalogImport) super.setKey(key); - } - - @Override - public DataCatalogImport setOauthToken(java.lang.String oauthToken) { - return (DataCatalogImport) super.setOauthToken(oauthToken); - } - - @Override - public DataCatalogImport setPrettyPrint(java.lang.Boolean prettyPrint) { - return (DataCatalogImport) super.setPrettyPrint(prettyPrint); - } - - @Override - public DataCatalogImport setQuotaUser(java.lang.String quotaUser) { - return (DataCatalogImport) super.setQuotaUser(quotaUser); - } - - @Override - public DataCatalogImport setUploadType(java.lang.String uploadType) { - return (DataCatalogImport) super.setUploadType(uploadType); - } - - @Override - public DataCatalogImport setUploadProtocol(java.lang.String uploadProtocol) { - return (DataCatalogImport) super.setUploadProtocol(uploadProtocol); - } - - /** Required. Target entry group for ingested entries. */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** Required. Target entry group for ingested entries. - */ - public java.lang.String getParent() { - return parent; - } - - /** Required. Target entry group for ingested entries. */ - public DataCatalogImport setParent(java.lang.String parent) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+$"); - } - this.parent = parent; - return this; - } - - @Override - public DataCatalogImport set(String parameterName, Object value) { - return (DataCatalogImport) super.set(parameterName, value); - } - } - /** - * Lists entries. Note: Currently, this method can list only custom entries. To get a list of both - * custom and automatically created entries, use SearchCatalog. - * - * Create a request for the method "entries.list". - * - * This request holds the parameters needed by the datacatalog server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. - * - * @param parent Required. The name of the entry group that contains the entries to list. Can be provided in URL - * format. - * @return the request - */ - public List list(java.lang.String parent) throws java.io.IOException { - List result = new List(parent); - initialize(result); - return result; - } - - public class List extends DataCatalogRequest- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param parent Required. The name of the entry group that contains the entries to list. Can be provided in URL - * format. - * @since 1.13 - */ - protected List(java.lang.String parent) { - super(DataCatalog.this, "GET", REST_PATH, null, com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1ListEntriesResponse.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+$"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } - - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } - - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } - - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } - - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } - - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } - - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } - - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } - - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } - - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } - - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The name of the entry group that contains the entries to list. Can be - * provided in URL format. - */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** Required. The name of the entry group that contains the entries to list. Can be provided in URL - format. - */ - public java.lang.String getParent() { - return parent; - } - - /** - * Required. The name of the entry group that contains the entries to list. Can be - * provided in URL format. - */ - public List setParent(java.lang.String parent) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+$"); - } - this.parent = parent; - return this; - } - - /** - * The maximum number of items to return. Default is 10. Maximum limit is 1000. Throws - * an invalid argument if `page_size` is more than 1000. - */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; - - /** The maximum number of items to return. Default is 10. Maximum limit is 1000. Throws an invalid - argument if `page_size` is more than 1000. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } - - /** - * The maximum number of items to return. Default is 10. Maximum limit is 1000. Throws - * an invalid argument if `page_size` is more than 1000. - */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } - - /** - * Pagination token that specifies the next page to return. If empty, the first page is - * returned. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** Pagination token that specifies the next page to return. If empty, the first page is returned. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** - * Pagination token that specifies the next page to return. If empty, the first page is - * returned. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * The fields to return for each entry. If empty or omitted, all fields are returned. - * For example, to return a list of entries with only the `name` field, set `read_mask` - * to only one path with the `name` value. - */ - @com.google.api.client.util.Key - private String readMask; - - /** The fields to return for each entry. If empty or omitted, all fields are returned. For example, to - return a list of entries with only the `name` field, set `read_mask` to only one path with the - `name` value. - */ - public String getReadMask() { - return readMask; - } - - /** - * The fields to return for each entry. If empty or omitted, all fields are returned. - * For example, to return a list of entries with only the `name` field, set `read_mask` - * to only one path with the `name` value. - */ - public List setReadMask(String readMask) { - this.readMask = readMask; - return this; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Modifies contacts, part of the business context of an Entry. To call this method, you must have - * the `datacatalog.entries.updateContacts` IAM permission on the corresponding project. - * - * Create a request for the method "entries.modifyEntryContacts". - * - * This request holds the parameters needed by the datacatalog server. After setting any optional - * parameters, call the {@link ModifyEntryContacts#execute()} method to invoke the remote operation. - * - * @param name Required. The full resource name of the entry. - * @param content the {@link com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1ModifyEntryContactsRequest} - * @return the request - */ - public ModifyEntryContacts modifyEntryContacts(java.lang.String name, com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1ModifyEntryContactsRequest content) throws java.io.IOException { - ModifyEntryContacts result = new ModifyEntryContacts(name, content); - initialize(result); - return result; - } - - public class ModifyEntryContacts extends DataCatalogRequest{@link ModifyEntryContacts#initialize(com.google.api.client.googleapis.services. - * AbstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.
- * - * @param name Required. The full resource name of the entry. - * @param content the {@link com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1ModifyEntryContactsRequest} - * @since 1.13 - */ - protected ModifyEntryContacts(java.lang.String name, com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1ModifyEntryContactsRequest content) { - super(DataCatalog.this, "POST", REST_PATH, content, com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1Contacts.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+/entries/[^/]+$"); - } - } - - @Override - public ModifyEntryContacts set$Xgafv(java.lang.String $Xgafv) { - return (ModifyEntryContacts) super.set$Xgafv($Xgafv); - } - - @Override - public ModifyEntryContacts setAccessToken(java.lang.String accessToken) { - return (ModifyEntryContacts) super.setAccessToken(accessToken); - } - - @Override - public ModifyEntryContacts setAlt(java.lang.String alt) { - return (ModifyEntryContacts) super.setAlt(alt); - } - - @Override - public ModifyEntryContacts setCallback(java.lang.String callback) { - return (ModifyEntryContacts) super.setCallback(callback); - } - - @Override - public ModifyEntryContacts setFields(java.lang.String fields) { - return (ModifyEntryContacts) super.setFields(fields); - } - - @Override - public ModifyEntryContacts setKey(java.lang.String key) { - return (ModifyEntryContacts) super.setKey(key); - } - - @Override - public ModifyEntryContacts setOauthToken(java.lang.String oauthToken) { - return (ModifyEntryContacts) super.setOauthToken(oauthToken); - } - - @Override - public ModifyEntryContacts setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ModifyEntryContacts) super.setPrettyPrint(prettyPrint); - } - - @Override - public ModifyEntryContacts setQuotaUser(java.lang.String quotaUser) { - return (ModifyEntryContacts) super.setQuotaUser(quotaUser); - } - - @Override - public ModifyEntryContacts setUploadType(java.lang.String uploadType) { - return (ModifyEntryContacts) super.setUploadType(uploadType); - } - - @Override - public ModifyEntryContacts setUploadProtocol(java.lang.String uploadProtocol) { - return (ModifyEntryContacts) super.setUploadProtocol(uploadProtocol); - } - - /** Required. The full resource name of the entry. */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The full resource name of the entry. - */ - public java.lang.String getName() { - return name; - } - - /** Required. The full resource name of the entry. */ - public ModifyEntryContacts setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+/entries/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public ModifyEntryContacts set(String parameterName, Object value) { - return (ModifyEntryContacts) super.set(parameterName, value); - } - } - /** - * Modifies entry overview, part of the business context of an Entry. To call this method, you must - * have the `datacatalog.entries.updateOverview` IAM permission on the corresponding project. - * - * Create a request for the method "entries.modifyEntryOverview". - * - * This request holds the parameters needed by the datacatalog server. After setting any optional - * parameters, call the {@link ModifyEntryOverview#execute()} method to invoke the remote operation. - * - * @param name Required. The full resource name of the entry. - * @param content the {@link com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1ModifyEntryOverviewRequest} - * @return the request - */ - public ModifyEntryOverview modifyEntryOverview(java.lang.String name, com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1ModifyEntryOverviewRequest content) throws java.io.IOException { - ModifyEntryOverview result = new ModifyEntryOverview(name, content); - initialize(result); - return result; - } - - public class ModifyEntryOverview extends DataCatalogRequest{@link ModifyEntryOverview#initialize(com.google.api.client.googleapis.services. - * AbstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.
- * - * @param name Required. The full resource name of the entry. - * @param content the {@link com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1ModifyEntryOverviewRequest} - * @since 1.13 - */ - protected ModifyEntryOverview(java.lang.String name, com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1ModifyEntryOverviewRequest content) { - super(DataCatalog.this, "POST", REST_PATH, content, com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1EntryOverview.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+/entries/[^/]+$"); - } - } - - @Override - public ModifyEntryOverview set$Xgafv(java.lang.String $Xgafv) { - return (ModifyEntryOverview) super.set$Xgafv($Xgafv); - } - - @Override - public ModifyEntryOverview setAccessToken(java.lang.String accessToken) { - return (ModifyEntryOverview) super.setAccessToken(accessToken); - } - - @Override - public ModifyEntryOverview setAlt(java.lang.String alt) { - return (ModifyEntryOverview) super.setAlt(alt); - } - - @Override - public ModifyEntryOverview setCallback(java.lang.String callback) { - return (ModifyEntryOverview) super.setCallback(callback); - } - - @Override - public ModifyEntryOverview setFields(java.lang.String fields) { - return (ModifyEntryOverview) super.setFields(fields); - } - - @Override - public ModifyEntryOverview setKey(java.lang.String key) { - return (ModifyEntryOverview) super.setKey(key); - } - - @Override - public ModifyEntryOverview setOauthToken(java.lang.String oauthToken) { - return (ModifyEntryOverview) super.setOauthToken(oauthToken); - } - - @Override - public ModifyEntryOverview setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ModifyEntryOverview) super.setPrettyPrint(prettyPrint); - } - - @Override - public ModifyEntryOverview setQuotaUser(java.lang.String quotaUser) { - return (ModifyEntryOverview) super.setQuotaUser(quotaUser); - } - - @Override - public ModifyEntryOverview setUploadType(java.lang.String uploadType) { - return (ModifyEntryOverview) super.setUploadType(uploadType); - } - - @Override - public ModifyEntryOverview setUploadProtocol(java.lang.String uploadProtocol) { - return (ModifyEntryOverview) super.setUploadProtocol(uploadProtocol); - } - - /** Required. The full resource name of the entry. */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The full resource name of the entry. - */ - public java.lang.String getName() { - return name; - } - - /** Required. The full resource name of the entry. */ - public ModifyEntryOverview setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+/entries/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public ModifyEntryOverview set(String parameterName, Object value) { - return (ModifyEntryOverview) super.set(parameterName, value); - } - } - /** - * Updates an existing entry. You must enable the Data Catalog API in the project identified by the - * `entry.name` parameter. For more information, see [Data Catalog resource - * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). - * - * Create a request for the method "entries.patch". - * - * This request holds the parameters needed by the datacatalog server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation. - * - * @param name Output only. Identifier. The resource name of an entry in URL format. Note: The entry itself and its - * child resources might not be stored in the location specified in its name. - * @param content the {@link com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1Entry} - * @return the request - */ - public Patch patch(java.lang.String name, com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1Entry content) throws java.io.IOException { - Patch result = new Patch(name, content); - initialize(result); - return result; - } - - public class Patch extends DataCatalogRequest{@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param name Output only. Identifier. The resource name of an entry in URL format. Note: The entry itself and its - * child resources might not be stored in the location specified in its name. - * @param content the {@link com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1Entry} - * @since 1.13 - */ - protected Patch(java.lang.String name, com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1Entry content) { - super(DataCatalog.this, "PATCH", REST_PATH, content, com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1Entry.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+/entries/[^/]+$"); - } - } - - @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); - } - - @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); - } - - @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); - } - - @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); - } - - @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); - } - - @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); - } - - @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); - } - - @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); - } - - @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); - } - - @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); - } - - @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); - } - - /** - * Output only. Identifier. The resource name of an entry in URL format. Note: The entry - * itself and its child resources might not be stored in the location specified in its - * name. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Output only. Identifier. The resource name of an entry in URL format. Note: The entry itself and - its child resources might not be stored in the location specified in its name. - */ - public java.lang.String getName() { - return name; - } - - /** - * Output only. Identifier. The resource name of an entry in URL format. Note: The entry - * itself and its child resources might not be stored in the location specified in its - * name. - */ - public Patch setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+/entries/[^/]+$"); - } - this.name = name; - return this; - } - - /** - * Names of fields whose values to overwrite on an entry. If this parameter is absent or - * empty, all modifiable fields are overwritten. If such fields are non-required and - * omitted in the request body, their values are emptied. You can modify only the fields - * listed below. For entries with type `DATA_STREAM`: * `schema` For entries with type - * `FILESET`: * `schema` * `display_name` * `description` * `gcs_fileset_spec` * - * `gcs_fileset_spec.file_patterns` For entries with `user_specified_type`: * `schema` * - * `display_name` * `description` * `user_specified_type` * `user_specified_system` * - * `linked_resource` * `source_system_timestamps` - */ - @com.google.api.client.util.Key - private String updateMask; - - /** Names of fields whose values to overwrite on an entry. If this parameter is absent or empty, all - modifiable fields are overwritten. If such fields are non-required and omitted in the request body, - their values are emptied. You can modify only the fields listed below. For entries with type - `DATA_STREAM`: * `schema` For entries with type `FILESET`: * `schema` * `display_name` * - `description` * `gcs_fileset_spec` * `gcs_fileset_spec.file_patterns` For entries with - `user_specified_type`: * `schema` * `display_name` * `description` * `user_specified_type` * - `user_specified_system` * `linked_resource` * `source_system_timestamps` - */ - public String getUpdateMask() { - return updateMask; - } - - /** - * Names of fields whose values to overwrite on an entry. If this parameter is absent or - * empty, all modifiable fields are overwritten. If such fields are non-required and - * omitted in the request body, their values are emptied. You can modify only the fields - * listed below. For entries with type `DATA_STREAM`: * `schema` For entries with type - * `FILESET`: * `schema` * `display_name` * `description` * `gcs_fileset_spec` * - * `gcs_fileset_spec.file_patterns` For entries with `user_specified_type`: * `schema` * - * `display_name` * `description` * `user_specified_type` * `user_specified_system` * - * `linked_resource` * `source_system_timestamps` - */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; - } - - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - /** - * Marks an Entry as starred by the current user. Starring information is private to each user. - * - * Create a request for the method "entries.star". - * - * This request holds the parameters needed by the datacatalog server. After setting any optional - * parameters, call the {@link Star#execute()} method to invoke the remote operation. - * - * @param name Required. The name of the entry to mark as starred. - * @param content the {@link com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1StarEntryRequest} - * @return the request - */ - public Star star(java.lang.String name, com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1StarEntryRequest content) throws java.io.IOException { - Star result = new Star(name, content); - initialize(result); - return result; - } - - public class Star extends DataCatalogRequest- * {@link Star#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param name Required. The name of the entry to mark as starred. - * @param content the {@link com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1StarEntryRequest} - * @since 1.13 - */ - protected Star(java.lang.String name, com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1StarEntryRequest content) { - super(DataCatalog.this, "POST", REST_PATH, content, com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1StarEntryResponse.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+/entries/[^/]+$"); - } - } - - @Override - public Star set$Xgafv(java.lang.String $Xgafv) { - return (Star) super.set$Xgafv($Xgafv); - } - - @Override - public Star setAccessToken(java.lang.String accessToken) { - return (Star) super.setAccessToken(accessToken); - } - - @Override - public Star setAlt(java.lang.String alt) { - return (Star) super.setAlt(alt); - } - - @Override - public Star setCallback(java.lang.String callback) { - return (Star) super.setCallback(callback); - } - - @Override - public Star setFields(java.lang.String fields) { - return (Star) super.setFields(fields); - } - - @Override - public Star setKey(java.lang.String key) { - return (Star) super.setKey(key); - } - - @Override - public Star setOauthToken(java.lang.String oauthToken) { - return (Star) super.setOauthToken(oauthToken); - } - - @Override - public Star setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Star) super.setPrettyPrint(prettyPrint); - } - - @Override - public Star setQuotaUser(java.lang.String quotaUser) { - return (Star) super.setQuotaUser(quotaUser); - } - - @Override - public Star setUploadType(java.lang.String uploadType) { - return (Star) super.setUploadType(uploadType); - } - - @Override - public Star setUploadProtocol(java.lang.String uploadProtocol) { - return (Star) super.setUploadProtocol(uploadProtocol); - } - - /** Required. The name of the entry to mark as starred. */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The name of the entry to mark as starred. - */ - public java.lang.String getName() { - return name; - } - - /** Required. The name of the entry to mark as starred. */ - public Star setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+/entries/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public Star set(String parameterName, Object value) { - return (Star) super.set(parameterName, value); - } - } - /** - * Gets your permissions on a resource. Returns an empty set of permissions if the resource doesn't - * exist. Supported resources are: - Tag templates - Entry groups Note: This method gets policies - * only within Data Catalog and can't be used to get policies from BigQuery, Pub/Sub, Dataproc - * Metastore, and any external Google Cloud Platform resources ingested into Data Catalog. No Google - * IAM permissions are required to call this method. - * - * Create a request for the method "entries.testIamPermissions". - * - * This request holds the parameters needed by the datacatalog server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. - * - * @param resource REQUIRED: The resource for which the policy detail is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @param content the {@link com.google.api.services.datacatalog.v1.model.TestIamPermissionsRequest} - * @return the request - */ - public TestIamPermissions testIamPermissions(java.lang.String resource, com.google.api.services.datacatalog.v1.model.TestIamPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(resource, content); - initialize(result); - return result; - } - - public class TestIamPermissions extends DataCatalogRequest{@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.
- * - * @param resource REQUIRED: The resource for which the policy detail is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @param content the {@link com.google.api.services.datacatalog.v1.model.TestIamPermissionsRequest} - * @since 1.13 - */ - protected TestIamPermissions(java.lang.String resource, com.google.api.services.datacatalog.v1.model.TestIamPermissionsRequest content) { - super(DataCatalog.this, "POST", REST_PATH, content, com.google.api.services.datacatalog.v1.model.TestIamPermissionsResponse.class); - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+/entries/[^/]+$"); - } - } - - @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); - } - - @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); - } - - @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); - } - - @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); - } - - @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); - } - - @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); - } - - @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); - } - - @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); - } - - @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); - } - - @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); - } - - @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); - } - - /** - * REQUIRED: The resource for which the policy detail is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. - */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** REQUIRED: The resource for which the policy detail is being requested. See [Resource - names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this - field. - */ - public java.lang.String getResource() { - return resource; - } - - /** - * REQUIRED: The resource for which the policy detail is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. - */ - public TestIamPermissions setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+/entries/[^/]+$"); - } - this.resource = resource; - return this; - } - - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } - /** - * Marks an Entry as NOT starred by the current user. Starring information is private to each user. - * - * Create a request for the method "entries.unstar". - * - * This request holds the parameters needed by the datacatalog server. After setting any optional - * parameters, call the {@link Unstar#execute()} method to invoke the remote operation. - * - * @param name Required. The name of the entry to mark as **not** starred. - * @param content the {@link com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1UnstarEntryRequest} - * @return the request - */ - public Unstar unstar(java.lang.String name, com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1UnstarEntryRequest content) throws java.io.IOException { - Unstar result = new Unstar(name, content); - initialize(result); - return result; - } - - public class Unstar extends DataCatalogRequest{@link - * Unstar#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param name Required. The name of the entry to mark as **not** starred. - * @param content the {@link com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1UnstarEntryRequest} - * @since 1.13 - */ - protected Unstar(java.lang.String name, com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1UnstarEntryRequest content) { - super(DataCatalog.this, "POST", REST_PATH, content, com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1UnstarEntryResponse.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+/entries/[^/]+$"); - } - } - - @Override - public Unstar set$Xgafv(java.lang.String $Xgafv) { - return (Unstar) super.set$Xgafv($Xgafv); - } - - @Override - public Unstar setAccessToken(java.lang.String accessToken) { - return (Unstar) super.setAccessToken(accessToken); - } - - @Override - public Unstar setAlt(java.lang.String alt) { - return (Unstar) super.setAlt(alt); - } - - @Override - public Unstar setCallback(java.lang.String callback) { - return (Unstar) super.setCallback(callback); - } - - @Override - public Unstar setFields(java.lang.String fields) { - return (Unstar) super.setFields(fields); - } - - @Override - public Unstar setKey(java.lang.String key) { - return (Unstar) super.setKey(key); - } - - @Override - public Unstar setOauthToken(java.lang.String oauthToken) { - return (Unstar) super.setOauthToken(oauthToken); - } - - @Override - public Unstar setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Unstar) super.setPrettyPrint(prettyPrint); - } - - @Override - public Unstar setQuotaUser(java.lang.String quotaUser) { - return (Unstar) super.setQuotaUser(quotaUser); - } - - @Override - public Unstar setUploadType(java.lang.String uploadType) { - return (Unstar) super.setUploadType(uploadType); - } - - @Override - public Unstar setUploadProtocol(java.lang.String uploadProtocol) { - return (Unstar) super.setUploadProtocol(uploadProtocol); - } - - /** Required. The name of the entry to mark as **not** starred. */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The name of the entry to mark as **not** starred. - */ - public java.lang.String getName() { - return name; - } - - /** Required. The name of the entry to mark as **not** starred. */ - public Unstar setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+/entries/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public Unstar set(String parameterName, Object value) { - return (Unstar) super.set(parameterName, value); - } - } - - /** - * An accessor for creating requests from the Tags collection. - * - *The typical use is:
- *
- * {@code DataCatalog datacatalog = new DataCatalog(...);}
- * {@code DataCatalog.Tags.List request = datacatalog.tags().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public Tags tags() {
- return new Tags();
- }
-
- /**
- * The "tags" collection of methods.
- */
- public class Tags {
-
- /**
- * Creates a tag and assigns it to: * An Entry if the method name is
- * `projects.locations.entryGroups.entries.tags.create`. * Or EntryGroupif the method name is
- * `projects.locations.entryGroups.tags.create`. Note: The project identified by the `parent`
- * parameter for the [tag] (https://cloud.google.com/data-
- * catalog/docs/reference/rest/v1/projects.locations.entryGroups.entries.tags/create#path-
- * parameters) and the [tag template] (https://cloud.google.com/data-
- * catalog/docs/reference/rest/v1/projects.locations.tagTemplates/create#path-parameters) used to
- * create the tag must be in the same organization.
- *
- * Create a request for the method "tags.create".
- *
- * This request holds the parameters needed by the datacatalog server. After setting any optional
- * parameters, call the {@link Create#execute()} method to invoke the remote operation.
- *
- * @param parent Required. The name of the resource to attach this tag to. Tags can be attached to entries or entry
- * groups. An entry can have up to 1000 attached tags. Note: The tag and its child resources
- * might not be stored in the location specified in its name.
- * @param content the {@link com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1Tag}
- * @return the request
- */
- public Create create(java.lang.String parent, com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1Tag content) throws java.io.IOException {
- Create result = new Create(parent, content);
- initialize(result);
- return result;
- }
-
- public class Create extends DataCatalogRequest{@link - * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param parent Required. The name of the resource to attach this tag to. Tags can be attached to entries or entry - * groups. An entry can have up to 1000 attached tags. Note: The tag and its child resources - * might not be stored in the location specified in its name. - * @param content the {@link com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1Tag} - * @since 1.13 - */ - protected Create(java.lang.String parent, com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1Tag content) { - super(DataCatalog.this, "POST", REST_PATH, content, com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1Tag.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+/entries/[^/]+$"); - } - } - - @Override - public Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); - } - - @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); - } - - @Override - public Create setAlt(java.lang.String alt) { - return (Create) super.setAlt(alt); - } - - @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); - } - - @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); - } - - @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); - } - - @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); - } - - @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); - } - - @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); - } - - @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); - } - - @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The name of the resource to attach this tag to. Tags can be attached to - * entries or entry groups. An entry can have up to 1000 attached tags. Note: The tag - * and its child resources might not be stored in the location specified in its name. - */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** Required. The name of the resource to attach this tag to. Tags can be attached to entries or entry - groups. An entry can have up to 1000 attached tags. Note: The tag and its child resources might not - be stored in the location specified in its name. - */ - public java.lang.String getParent() { - return parent; - } - - /** - * Required. The name of the resource to attach this tag to. Tags can be attached to - * entries or entry groups. An entry can have up to 1000 attached tags. Note: The tag - * and its child resources might not be stored in the location specified in its name. - */ - public Create setParent(java.lang.String parent) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+/entries/[^/]+$"); - } - this.parent = parent; - return this; - } - - @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); - } - } - /** - * Deletes a tag. - * - * Create a request for the method "tags.delete". - * - * This request holds the parameters needed by the datacatalog server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param name Required. The name of the tag to delete. - * @return the request - */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); - initialize(result); - return result; - } - - public class Delete extends DataCatalogRequest{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param name Required. The name of the tag to delete. - * @since 1.13 - */ - protected Delete(java.lang.String name) { - super(DataCatalog.this, "DELETE", REST_PATH, null, com.google.api.services.datacatalog.v1.model.Empty.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+/entries/[^/]+/tags/[^/]+$"); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - /** Required. The name of the tag to delete. */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The name of the tag to delete. - */ - public java.lang.String getName() { - return name; - } - - /** Required. The name of the tag to delete. */ - public Delete setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+/entries/[^/]+/tags/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Lists tags assigned to an Entry. The columns in the response are lowercased. - * - * Create a request for the method "tags.list". - * - * This request holds the parameters needed by the datacatalog server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. - * - * @param parent Required. The name of the Data Catalog resource to list the tags of. The resource can be an Entry or - * an EntryGroup (without `/entries/{entries}` at the end). - * @return the request - */ - public List list(java.lang.String parent) throws java.io.IOException { - List result = new List(parent); - initialize(result); - return result; - } - - public class List extends DataCatalogRequest- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param parent Required. The name of the Data Catalog resource to list the tags of. The resource can be an Entry or - * an EntryGroup (without `/entries/{entries}` at the end). - * @since 1.13 - */ - protected List(java.lang.String parent) { - super(DataCatalog.this, "GET", REST_PATH, null, com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1ListTagsResponse.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+/entries/[^/]+$"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } - - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } - - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } - - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } - - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } - - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } - - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } - - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } - - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } - - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } - - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The name of the Data Catalog resource to list the tags of. The resource - * can be an Entry or an EntryGroup (without `/entries/{entries}` at the end). - */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** Required. The name of the Data Catalog resource to list the tags of. The resource can be an Entry - or an EntryGroup (without `/entries/{entries}` at the end). - */ - public java.lang.String getParent() { - return parent; - } - - /** - * Required. The name of the Data Catalog resource to list the tags of. The resource - * can be an Entry or an EntryGroup (without `/entries/{entries}` at the end). - */ - public List setParent(java.lang.String parent) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+/entries/[^/]+$"); - } - this.parent = parent; - return this; - } - - /** The maximum number of tags to return. Default is 10. Maximum limit is 1000. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; - - /** The maximum number of tags to return. Default is 10. Maximum limit is 1000. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } - - /** The maximum number of tags to return. Default is 10. Maximum limit is 1000. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } - - /** - * Pagination token that specifies the next page to return. If empty, the first page - * is returned. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** Pagination token that specifies the next page to return. If empty, the first page is returned. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** - * Pagination token that specifies the next page to return. If empty, the first page - * is returned. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Updates an existing tag. - * - * Create a request for the method "tags.patch". - * - * This request holds the parameters needed by the datacatalog server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation. - * - * @param name Identifier. The resource name of the tag in URL format where tag ID is a system-generated - * identifier. Note: The tag itself might not be stored in the location specified in its - * name. - * @param content the {@link com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1Tag} - * @return the request - */ - public Patch patch(java.lang.String name, com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1Tag content) throws java.io.IOException { - Patch result = new Patch(name, content); - initialize(result); - return result; - } - - public class Patch extends DataCatalogRequest{@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param name Identifier. The resource name of the tag in URL format where tag ID is a system-generated - * identifier. Note: The tag itself might not be stored in the location specified in its - * name. - * @param content the {@link com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1Tag} - * @since 1.13 - */ - protected Patch(java.lang.String name, com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1Tag content) { - super(DataCatalog.this, "PATCH", REST_PATH, content, com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1Tag.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+/entries/[^/]+/tags/[^/]+$"); - } - } - - @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); - } - - @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); - } - - @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); - } - - @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); - } - - @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); - } - - @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); - } - - @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); - } - - @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); - } - - @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); - } - - @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); - } - - @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); - } - - /** - * Identifier. The resource name of the tag in URL format where tag ID is a system- - * generated identifier. Note: The tag itself might not be stored in the location - * specified in its name. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Identifier. The resource name of the tag in URL format where tag ID is a system-generated - identifier. Note: The tag itself might not be stored in the location specified in its name. - */ - public java.lang.String getName() { - return name; - } - - /** - * Identifier. The resource name of the tag in URL format where tag ID is a system- - * generated identifier. Note: The tag itself might not be stored in the location - * specified in its name. - */ - public Patch setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+/entries/[^/]+/tags/[^/]+$"); - } - this.name = name; - return this; - } - - /** - * Names of fields whose values to overwrite on a tag. Currently, a tag has the only - * modifiable field with the name `fields`. In general, if this parameter is absent or - * empty, all modifiable fields are overwritten. If such fields are non-required and - * omitted in the request body, their values are emptied. - */ - @com.google.api.client.util.Key - private String updateMask; - - /** Names of fields whose values to overwrite on a tag. Currently, a tag has the only modifiable field - with the name `fields`. In general, if this parameter is absent or empty, all modifiable fields are - overwritten. If such fields are non-required and omitted in the request body, their values are - emptied. - */ - public String getUpdateMask() { - return updateMask; - } - - /** - * Names of fields whose values to overwrite on a tag. Currently, a tag has the only - * modifiable field with the name `fields`. In general, if this parameter is absent or - * empty, all modifiable fields are overwritten. If such fields are non-required and - * omitted in the request body, their values are emptied. - */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; - } - - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - /** - * `ReconcileTags` creates or updates a list of tags on the entry. If the - * ReconcileTagsRequest.force_delete_missing parameter is set, the operation deletes tags not - * included in the input tag list. `ReconcileTags` returns a long-running operation resource that - * can be queried with Operations.GetOperation to return ReconcileTagsMetadata and a - * ReconcileTagsResponse message. Note: SearchCatalog might return stale search results for up to 24 - * hours after the `ReconcileTags` operation completes. - * - * Create a request for the method "tags.reconcile". - * - * This request holds the parameters needed by the datacatalog server. After setting any optional - * parameters, call the {@link Reconcile#execute()} method to invoke the remote operation. - * - * @param parent Required. Name of Entry to be tagged. - * @param content the {@link com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1ReconcileTagsRequest} - * @return the request - */ - public Reconcile reconcile(java.lang.String parent, com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1ReconcileTagsRequest content) throws java.io.IOException { - Reconcile result = new Reconcile(parent, content); - initialize(result); - return result; - } - - public class Reconcile extends DataCatalogRequest{@link - * Reconcile#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param parent Required. Name of Entry to be tagged. - * @param content the {@link com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1ReconcileTagsRequest} - * @since 1.13 - */ - protected Reconcile(java.lang.String parent, com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1ReconcileTagsRequest content) { - super(DataCatalog.this, "POST", REST_PATH, content, com.google.api.services.datacatalog.v1.model.Operation.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+/entries/[^/]+$"); - } - } - - @Override - public Reconcile set$Xgafv(java.lang.String $Xgafv) { - return (Reconcile) super.set$Xgafv($Xgafv); - } - - @Override - public Reconcile setAccessToken(java.lang.String accessToken) { - return (Reconcile) super.setAccessToken(accessToken); - } - - @Override - public Reconcile setAlt(java.lang.String alt) { - return (Reconcile) super.setAlt(alt); - } - - @Override - public Reconcile setCallback(java.lang.String callback) { - return (Reconcile) super.setCallback(callback); - } - - @Override - public Reconcile setFields(java.lang.String fields) { - return (Reconcile) super.setFields(fields); - } - - @Override - public Reconcile setKey(java.lang.String key) { - return (Reconcile) super.setKey(key); - } - - @Override - public Reconcile setOauthToken(java.lang.String oauthToken) { - return (Reconcile) super.setOauthToken(oauthToken); - } - - @Override - public Reconcile setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Reconcile) super.setPrettyPrint(prettyPrint); - } - - @Override - public Reconcile setQuotaUser(java.lang.String quotaUser) { - return (Reconcile) super.setQuotaUser(quotaUser); - } - - @Override - public Reconcile setUploadType(java.lang.String uploadType) { - return (Reconcile) super.setUploadType(uploadType); - } - - @Override - public Reconcile setUploadProtocol(java.lang.String uploadProtocol) { - return (Reconcile) super.setUploadProtocol(uploadProtocol); - } - - /** Required. Name of Entry to be tagged. */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** Required. Name of Entry to be tagged. - */ - public java.lang.String getParent() { - return parent; - } - - /** Required. Name of Entry to be tagged. */ - public Reconcile setParent(java.lang.String parent) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+/entries/[^/]+$"); - } - this.parent = parent; - return this; - } - - @Override - public Reconcile set(String parameterName, Object value) { - return (Reconcile) super.set(parameterName, value); - } - } - - } - } - /** - * An accessor for creating requests from the Tags collection. - * - *The typical use is:
- *
- * {@code DataCatalog datacatalog = new DataCatalog(...);}
- * {@code DataCatalog.Tags.List request = datacatalog.tags().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public Tags tags() {
- return new Tags();
- }
-
- /**
- * The "tags" collection of methods.
- */
- public class Tags {
-
- /**
- * Creates a tag and assigns it to: * An Entry if the method name is
- * `projects.locations.entryGroups.entries.tags.create`. * Or EntryGroupif the method name is
- * `projects.locations.entryGroups.tags.create`. Note: The project identified by the `parent`
- * parameter for the [tag] (https://cloud.google.com/data-
- * catalog/docs/reference/rest/v1/projects.locations.entryGroups.entries.tags/create#path-
- * parameters) and the [tag template] (https://cloud.google.com/data-
- * catalog/docs/reference/rest/v1/projects.locations.tagTemplates/create#path-parameters) used to
- * create the tag must be in the same organization.
- *
- * Create a request for the method "tags.create".
- *
- * This request holds the parameters needed by the datacatalog server. After setting any optional
- * parameters, call the {@link Create#execute()} method to invoke the remote operation.
- *
- * @param parent Required. The name of the resource to attach this tag to. Tags can be attached to entries or entry
- * groups. An entry can have up to 1000 attached tags. Note: The tag and its child resources
- * might not be stored in the location specified in its name.
- * @param content the {@link com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1Tag}
- * @return the request
- */
- public Create create(java.lang.String parent, com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1Tag content) throws java.io.IOException {
- Create result = new Create(parent, content);
- initialize(result);
- return result;
- }
-
- public class Create extends DataCatalogRequest{@link - * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param parent Required. The name of the resource to attach this tag to. Tags can be attached to entries or entry - * groups. An entry can have up to 1000 attached tags. Note: The tag and its child resources - * might not be stored in the location specified in its name. - * @param content the {@link com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1Tag} - * @since 1.13 - */ - protected Create(java.lang.String parent, com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1Tag content) { - super(DataCatalog.this, "POST", REST_PATH, content, com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1Tag.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+$"); - } - } - - @Override - public Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); - } - - @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); - } - - @Override - public Create setAlt(java.lang.String alt) { - return (Create) super.setAlt(alt); - } - - @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); - } - - @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); - } - - @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); - } - - @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); - } - - @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); - } - - @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); - } - - @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); - } - - @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The name of the resource to attach this tag to. Tags can be attached to - * entries or entry groups. An entry can have up to 1000 attached tags. Note: The tag - * and its child resources might not be stored in the location specified in its name. - */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** Required. The name of the resource to attach this tag to. Tags can be attached to entries or entry - groups. An entry can have up to 1000 attached tags. Note: The tag and its child resources might not - be stored in the location specified in its name. - */ - public java.lang.String getParent() { - return parent; - } - - /** - * Required. The name of the resource to attach this tag to. Tags can be attached to - * entries or entry groups. An entry can have up to 1000 attached tags. Note: The tag - * and its child resources might not be stored in the location specified in its name. - */ - public Create setParent(java.lang.String parent) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+$"); - } - this.parent = parent; - return this; - } - - @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); - } - } - /** - * Deletes a tag. - * - * Create a request for the method "tags.delete". - * - * This request holds the parameters needed by the datacatalog server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param name Required. The name of the tag to delete. - * @return the request - */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); - initialize(result); - return result; - } - - public class Delete extends DataCatalogRequest{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param name Required. The name of the tag to delete. - * @since 1.13 - */ - protected Delete(java.lang.String name) { - super(DataCatalog.this, "DELETE", REST_PATH, null, com.google.api.services.datacatalog.v1.model.Empty.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+/tags/[^/]+$"); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - /** Required. The name of the tag to delete. */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The name of the tag to delete. - */ - public java.lang.String getName() { - return name; - } - - /** Required. The name of the tag to delete. */ - public Delete setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+/tags/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Lists tags assigned to an Entry. The columns in the response are lowercased. - * - * Create a request for the method "tags.list". - * - * This request holds the parameters needed by the datacatalog server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. - * - * @param parent Required. The name of the Data Catalog resource to list the tags of. The resource can be an Entry or - * an EntryGroup (without `/entries/{entries}` at the end). - * @return the request - */ - public List list(java.lang.String parent) throws java.io.IOException { - List result = new List(parent); - initialize(result); - return result; - } - - public class List extends DataCatalogRequest- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param parent Required. The name of the Data Catalog resource to list the tags of. The resource can be an Entry or - * an EntryGroup (without `/entries/{entries}` at the end). - * @since 1.13 - */ - protected List(java.lang.String parent) { - super(DataCatalog.this, "GET", REST_PATH, null, com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1ListTagsResponse.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+$"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } - - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } - - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } - - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } - - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } - - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } - - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } - - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } - - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } - - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } - - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The name of the Data Catalog resource to list the tags of. The resource can - * be an Entry or an EntryGroup (without `/entries/{entries}` at the end). - */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** Required. The name of the Data Catalog resource to list the tags of. The resource can be an Entry - or an EntryGroup (without `/entries/{entries}` at the end). - */ - public java.lang.String getParent() { - return parent; - } - - /** - * Required. The name of the Data Catalog resource to list the tags of. The resource can - * be an Entry or an EntryGroup (without `/entries/{entries}` at the end). - */ - public List setParent(java.lang.String parent) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+$"); - } - this.parent = parent; - return this; - } - - /** The maximum number of tags to return. Default is 10. Maximum limit is 1000. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; - - /** The maximum number of tags to return. Default is 10. Maximum limit is 1000. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } - - /** The maximum number of tags to return. Default is 10. Maximum limit is 1000. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } - - /** - * Pagination token that specifies the next page to return. If empty, the first page is - * returned. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** Pagination token that specifies the next page to return. If empty, the first page is returned. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** - * Pagination token that specifies the next page to return. If empty, the first page is - * returned. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Updates an existing tag. - * - * Create a request for the method "tags.patch". - * - * This request holds the parameters needed by the datacatalog server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation. - * - * @param name Identifier. The resource name of the tag in URL format where tag ID is a system-generated - * identifier. Note: The tag itself might not be stored in the location specified in its - * name. - * @param content the {@link com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1Tag} - * @return the request - */ - public Patch patch(java.lang.String name, com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1Tag content) throws java.io.IOException { - Patch result = new Patch(name, content); - initialize(result); - return result; - } - - public class Patch extends DataCatalogRequest{@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param name Identifier. The resource name of the tag in URL format where tag ID is a system-generated - * identifier. Note: The tag itself might not be stored in the location specified in its - * name. - * @param content the {@link com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1Tag} - * @since 1.13 - */ - protected Patch(java.lang.String name, com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1Tag content) { - super(DataCatalog.this, "PATCH", REST_PATH, content, com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1Tag.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+/tags/[^/]+$"); - } - } - - @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); - } - - @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); - } - - @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); - } - - @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); - } - - @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); - } - - @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); - } - - @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); - } - - @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); - } - - @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); - } - - @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); - } - - @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); - } - - /** - * Identifier. The resource name of the tag in URL format where tag ID is a system- - * generated identifier. Note: The tag itself might not be stored in the location - * specified in its name. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Identifier. The resource name of the tag in URL format where tag ID is a system-generated - identifier. Note: The tag itself might not be stored in the location specified in its name. - */ - public java.lang.String getName() { - return name; - } - - /** - * Identifier. The resource name of the tag in URL format where tag ID is a system- - * generated identifier. Note: The tag itself might not be stored in the location - * specified in its name. - */ - public Patch setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+/tags/[^/]+$"); - } - this.name = name; - return this; - } - - /** - * Names of fields whose values to overwrite on a tag. Currently, a tag has the only - * modifiable field with the name `fields`. In general, if this parameter is absent or - * empty, all modifiable fields are overwritten. If such fields are non-required and - * omitted in the request body, their values are emptied. - */ - @com.google.api.client.util.Key - private String updateMask; - - /** Names of fields whose values to overwrite on a tag. Currently, a tag has the only modifiable field - with the name `fields`. In general, if this parameter is absent or empty, all modifiable fields are - overwritten. If such fields are non-required and omitted in the request body, their values are - emptied. - */ - public String getUpdateMask() { - return updateMask; - } - - /** - * Names of fields whose values to overwrite on a tag. Currently, a tag has the only - * modifiable field with the name `fields`. In general, if this parameter is absent or - * empty, all modifiable fields are overwritten. If such fields are non-required and - * omitted in the request body, their values are emptied. - */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; - } - - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - - } - } - /** - * An accessor for creating requests from the Operations collection. - * - *The typical use is:
- *
- * {@code DataCatalog datacatalog = new DataCatalog(...);}
- * {@code DataCatalog.Operations.List request = datacatalog.operations().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public Operations operations() {
- return new Operations();
- }
-
- /**
- * The "operations" collection of methods.
- */
- public class Operations {
-
- /**
- * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to
- * cancel the operation, but success is not guaranteed. If the server doesn't support this method,
- * it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other
- * methods to check whether the cancellation succeeded or whether the operation completed despite
- * cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an
- * operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to
- * `Code.CANCELLED`.
- *
- * Create a request for the method "operations.cancel".
- *
- * This request holds the parameters needed by the datacatalog server. After setting any optional
- * parameters, call the {@link Cancel#execute()} method to invoke the remote operation.
- *
- * @param name The name of the operation resource to be cancelled.
- * @return the request
- */
- public Cancel cancel(java.lang.String name) throws java.io.IOException {
- Cancel result = new Cancel(name);
- initialize(result);
- return result;
- }
-
- public class Cancel extends DataCatalogRequest{@link - * Cancel#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param name The name of the operation resource to be cancelled. - * @since 1.13 - */ - protected Cancel(java.lang.String name) { - super(DataCatalog.this, "POST", REST_PATH, null, com.google.api.services.datacatalog.v1.model.Empty.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); - } - } - - @Override - public Cancel set$Xgafv(java.lang.String $Xgafv) { - return (Cancel) super.set$Xgafv($Xgafv); - } - - @Override - public Cancel setAccessToken(java.lang.String accessToken) { - return (Cancel) super.setAccessToken(accessToken); - } - - @Override - public Cancel setAlt(java.lang.String alt) { - return (Cancel) super.setAlt(alt); - } - - @Override - public Cancel setCallback(java.lang.String callback) { - return (Cancel) super.setCallback(callback); - } - - @Override - public Cancel setFields(java.lang.String fields) { - return (Cancel) super.setFields(fields); - } - - @Override - public Cancel setKey(java.lang.String key) { - return (Cancel) super.setKey(key); - } - - @Override - public Cancel setOauthToken(java.lang.String oauthToken) { - return (Cancel) super.setOauthToken(oauthToken); - } - - @Override - public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Cancel) super.setPrettyPrint(prettyPrint); - } - - @Override - public Cancel setQuotaUser(java.lang.String quotaUser) { - return (Cancel) super.setQuotaUser(quotaUser); - } - - @Override - public Cancel setUploadType(java.lang.String uploadType) { - return (Cancel) super.setUploadType(uploadType); - } - - @Override - public Cancel setUploadProtocol(java.lang.String uploadProtocol) { - return (Cancel) super.setUploadProtocol(uploadProtocol); - } - - /** The name of the operation resource to be cancelled. */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** The name of the operation resource to be cancelled. - */ - public java.lang.String getName() { - return name; - } - - /** The name of the operation resource to be cancelled. */ - public Cancel setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public Cancel set(String parameterName, Object value) { - return (Cancel) super.set(parameterName, value); - } - } - /** - * Deletes a long-running operation. This method indicates that the client is no longer interested - * in the operation result. It does not cancel the operation. If the server doesn't support this - * method, it returns `google.rpc.Code.UNIMPLEMENTED`. - * - * Create a request for the method "operations.delete". - * - * This request holds the parameters needed by the datacatalog server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param name The name of the operation resource to be deleted. - * @return the request - */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); - initialize(result); - return result; - } - - public class Delete extends DataCatalogRequest{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param name The name of the operation resource to be deleted. - * @since 1.13 - */ - protected Delete(java.lang.String name) { - super(DataCatalog.this, "DELETE", REST_PATH, null, com.google.api.services.datacatalog.v1.model.Empty.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - /** The name of the operation resource to be deleted. */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** The name of the operation resource to be deleted. - */ - public java.lang.String getName() { - return name; - } - - /** The name of the operation resource to be deleted. */ - public Delete setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Gets the latest state of a long-running operation. Clients can use this method to poll the - * operation result at intervals as recommended by the API service. - * - * Create a request for the method "operations.get". - * - * This request holds the parameters needed by the datacatalog server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. - * - * @param name The name of the operation resource. - * @return the request - */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); - initialize(result); - return result; - } - - public class Get extends DataCatalogRequest- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param name The name of the operation resource. - * @since 1.13 - */ - protected Get(java.lang.String name) { - super(DataCatalog.this, "GET", REST_PATH, null, com.google.api.services.datacatalog.v1.model.Operation.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } - - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } - - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } - - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } - - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } - - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } - - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } - - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } - - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } - - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } - - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } - - /** The name of the operation resource. */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** The name of the operation resource. - */ - public java.lang.String getName() { - return name; - } - - /** The name of the operation resource. */ - public Get setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Lists operations that match the specified filter in the request. If the server doesn't support - * this method, it returns `UNIMPLEMENTED`. - * - * Create a request for the method "operations.list". - * - * This request holds the parameters needed by the datacatalog server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. - * - * @param name The name of the operation's parent resource. - * @return the request - */ - public List list(java.lang.String name) throws java.io.IOException { - List result = new List(name); - initialize(result); - return result; - } - - public class List extends DataCatalogRequest- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param name The name of the operation's parent resource. - * @since 1.13 - */ - protected List(java.lang.String name) { - super(DataCatalog.this, "GET", REST_PATH, null, com.google.api.services.datacatalog.v1.model.ListOperationsResponse.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } - - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } - - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } - - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } - - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } - - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } - - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } - - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } - - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } - - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } - - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } - - /** The name of the operation's parent resource. */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** The name of the operation's parent resource. - */ - public java.lang.String getName() { - return name; - } - - /** The name of the operation's parent resource. */ - public List setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); - } - this.name = name; - return this; - } - - /** The standard list filter. */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** The standard list filter. - */ - public java.lang.String getFilter() { - return filter; - } - - /** The standard list filter. */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } - - /** The standard list page size. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; - - /** The standard list page size. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } - - /** The standard list page size. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } - - /** The standard list page token. */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** The standard list page token. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** The standard list page token. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * When set to `true`, operations that are reachable are returned as normal, and those - * that are unreachable are returned in the ListOperationsResponse.unreachable field. This - * can only be `true` when reading across collections. For example, when `parent` is set - * to `"projects/example/locations/-"`. This field is not supported by default and will - * result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in - * service or product specific documentation. - */ - @com.google.api.client.util.Key - private java.lang.Boolean returnPartialSuccess; - - /** When set to `true`, operations that are reachable are returned as normal, and those that are - unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` - when reading across collections. For example, when `parent` is set to - `"projects/example/locations/-"`. This field is not supported by default and will result in an - `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific - documentation. - */ - public java.lang.Boolean getReturnPartialSuccess() { - return returnPartialSuccess; - } - - /** - * When set to `true`, operations that are reachable are returned as normal, and those - * that are unreachable are returned in the ListOperationsResponse.unreachable field. This - * can only be `true` when reading across collections. For example, when `parent` is set - * to `"projects/example/locations/-"`. This field is not supported by default and will - * result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in - * service or product specific documentation. - */ - public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { - this.returnPartialSuccess = returnPartialSuccess; - return this; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - - } - /** - * An accessor for creating requests from the TagTemplates collection. - * - *The typical use is:
- *
- * {@code DataCatalog datacatalog = new DataCatalog(...);}
- * {@code DataCatalog.TagTemplates.List request = datacatalog.tagTemplates().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public TagTemplates tagTemplates() {
- return new TagTemplates();
- }
-
- /**
- * The "tagTemplates" collection of methods.
- */
- public class TagTemplates {
-
- /**
- * Creates a tag template. You must enable the Data Catalog API in the project identified by the
- * `parent` parameter. For more information, see [Data Catalog resource project]
- * (https://cloud.google.com/data-catalog/docs/concepts/resource-project).
- *
- * Create a request for the method "tagTemplates.create".
- *
- * This request holds the parameters needed by the datacatalog server. After setting any optional
- * parameters, call the {@link Create#execute()} method to invoke the remote operation.
- *
- * @param parent Required. The name of the project and the template location [region](https://cloud.google.com/data-
- * catalog/docs/concepts/regions).
- * @param content the {@link com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1TagTemplate}
- * @return the request
- */
- public Create create(java.lang.String parent, com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1TagTemplate content) throws java.io.IOException {
- Create result = new Create(parent, content);
- initialize(result);
- return result;
- }
-
- public class Create extends DataCatalogRequest{@link - * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param parent Required. The name of the project and the template location [region](https://cloud.google.com/data- - * catalog/docs/concepts/regions). - * @param content the {@link com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1TagTemplate} - * @since 1.13 - */ - protected Create(java.lang.String parent, com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1TagTemplate content) { - super(DataCatalog.this, "POST", REST_PATH, content, com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1TagTemplate.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); - } - } - - @Override - public Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); - } - - @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); - } - - @Override - public Create setAlt(java.lang.String alt) { - return (Create) super.setAlt(alt); - } - - @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); - } - - @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); - } - - @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); - } - - @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); - } - - @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); - } - - @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); - } - - @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); - } - - @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The name of the project and the template location - * [region](https://cloud.google.com/data-catalog/docs/concepts/regions). - */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** Required. The name of the project and the template location [region](https://cloud.google.com/data- - catalog/docs/concepts/regions). - */ - public java.lang.String getParent() { - return parent; - } - - /** - * Required. The name of the project and the template location - * [region](https://cloud.google.com/data-catalog/docs/concepts/regions). - */ - public Create setParent(java.lang.String parent) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); - } - this.parent = parent; - return this; - } - - /** - * Required. The ID of the tag template to create. The ID must contain only lowercase - * letters (a-z), numbers (0-9), or underscores (_), and must start with a letter or - * underscore. The maximum size is 64 bytes when encoded in UTF-8. - */ - @com.google.api.client.util.Key - private java.lang.String tagTemplateId; - - /** Required. The ID of the tag template to create. The ID must contain only lowercase letters (a-z), - numbers (0-9), or underscores (_), and must start with a letter or underscore. The maximum size is - 64 bytes when encoded in UTF-8. - */ - public java.lang.String getTagTemplateId() { - return tagTemplateId; - } - - /** - * Required. The ID of the tag template to create. The ID must contain only lowercase - * letters (a-z), numbers (0-9), or underscores (_), and must start with a letter or - * underscore. The maximum size is 64 bytes when encoded in UTF-8. - */ - public Create setTagTemplateId(java.lang.String tagTemplateId) { - this.tagTemplateId = tagTemplateId; - return this; - } - - @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); - } - } - /** - * Deletes a tag template and all tags that use it. You must enable the Data Catalog API in the - * project identified by the `name` parameter. For more information, see [Data Catalog resource - * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). - * - * Create a request for the method "tagTemplates.delete". - * - * This request holds the parameters needed by the datacatalog server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param name Required. The name of the tag template to delete. - * @return the request - */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); - initialize(result); - return result; - } - - public class Delete extends DataCatalogRequest{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param name Required. The name of the tag template to delete. - * @since 1.13 - */ - protected Delete(java.lang.String name) { - super(DataCatalog.this, "DELETE", REST_PATH, null, com.google.api.services.datacatalog.v1.model.Empty.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/tagTemplates/[^/]+$"); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - /** Required. The name of the tag template to delete. */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The name of the tag template to delete. - */ - public java.lang.String getName() { - return name; - } - - /** Required. The name of the tag template to delete. */ - public Delete setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/tagTemplates/[^/]+$"); - } - this.name = name; - return this; - } - - /** - * Required. If true, deletes all tags that use this template. Currently, `true` is the - * only supported value. - */ - @com.google.api.client.util.Key - private java.lang.Boolean force; - - /** Required. If true, deletes all tags that use this template. Currently, `true` is the only supported - value. - */ - public java.lang.Boolean getForce() { - return force; - } - - /** - * Required. If true, deletes all tags that use this template. Currently, `true` is the - * only supported value. - */ - public Delete setForce(java.lang.Boolean force) { - this.force = force; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Gets a tag template. - * - * Create a request for the method "tagTemplates.get". - * - * This request holds the parameters needed by the datacatalog server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. - * - * @param name Required. The name of the tag template to get. - * @return the request - */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); - initialize(result); - return result; - } - - public class Get extends DataCatalogRequest- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param name Required. The name of the tag template to get. - * @since 1.13 - */ - protected Get(java.lang.String name) { - super(DataCatalog.this, "GET", REST_PATH, null, com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1TagTemplate.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/tagTemplates/[^/]+$"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } - - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } - - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } - - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } - - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } - - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } - - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } - - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } - - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } - - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } - - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } - - /** Required. The name of the tag template to get. */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The name of the tag template to get. - */ - public java.lang.String getName() { - return name; - } - - /** Required. The name of the tag template to get. */ - public Get setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/tagTemplates/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Gets the access control policy for a resource. May return: * A`NOT_FOUND` error if the resource - * doesn't exist or you don't have the permission to view it. * An empty policy if the resource - * exists but doesn't have a set policy. Supported resources are: - Tag templates - Entry groups - * Note: This method doesn't get policies from Google Cloud Platform resources ingested into Data - * Catalog. To call this method, you must have the following Google IAM permissions: - - * `datacatalog.tagTemplates.getIamPolicy` to get policies on tag templates. - - * `datacatalog.entryGroups.getIamPolicy` to get policies on entry groups. - * - * Create a request for the method "tagTemplates.getIamPolicy". - * - * This request holds the parameters needed by the datacatalog server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. - * - * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @param content the {@link com.google.api.services.datacatalog.v1.model.GetIamPolicyRequest} - * @return the request - */ - public GetIamPolicy getIamPolicy(java.lang.String resource, com.google.api.services.datacatalog.v1.model.GetIamPolicyRequest content) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(resource, content); - initialize(result); - return result; - } - - public class GetIamPolicy extends DataCatalogRequest{@link - * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @param content the {@link com.google.api.services.datacatalog.v1.model.GetIamPolicyRequest} - * @since 1.13 - */ - protected GetIamPolicy(java.lang.String resource, com.google.api.services.datacatalog.v1.model.GetIamPolicyRequest content) { - super(DataCatalog.this, "POST", REST_PATH, content, com.google.api.services.datacatalog.v1.model.Policy.class); - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/tagTemplates/[^/]+$"); - } - } - - @Override - public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (GetIamPolicy) super.set$Xgafv($Xgafv); - } - - @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); - } - - @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); - } - - @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); - } - - @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); - } - - @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); - } - - @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); - } - - @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); - } - - @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); - } - - @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); - } - - @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); - } - - /** - * REQUIRED: The resource for which the policy is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. - */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** REQUIRED: The resource for which the policy is being requested. See [Resource - names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this - field. - */ - public java.lang.String getResource() { - return resource; - } - - /** - * REQUIRED: The resource for which the policy is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. - */ - public GetIamPolicy setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/tagTemplates/[^/]+$"); - } - this.resource = resource; - return this; - } - - @Override - public GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) super.set(parameterName, value); - } - } - /** - * Updates a tag template. You can't update template fields with this method. These fields are - * separate resources with their own create, update, and delete methods. You must enable the Data - * Catalog API in the project identified by the `tag_template.name` parameter. For more information, - * see [Data Catalog resource project](https://cloud.google.com/data-catalog/docs/concepts/resource- - * project). - * - * Create a request for the method "tagTemplates.patch". - * - * This request holds the parameters needed by the datacatalog server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation. - * - * @param name Identifier. The resource name of the tag template in URL format. Note: The tag template itself and - * its child resources might not be stored in the location specified in its name. - * @param content the {@link com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1TagTemplate} - * @return the request - */ - public Patch patch(java.lang.String name, com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1TagTemplate content) throws java.io.IOException { - Patch result = new Patch(name, content); - initialize(result); - return result; - } - - public class Patch extends DataCatalogRequest{@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param name Identifier. The resource name of the tag template in URL format. Note: The tag template itself and - * its child resources might not be stored in the location specified in its name. - * @param content the {@link com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1TagTemplate} - * @since 1.13 - */ - protected Patch(java.lang.String name, com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1TagTemplate content) { - super(DataCatalog.this, "PATCH", REST_PATH, content, com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1TagTemplate.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/tagTemplates/[^/]+$"); - } - } - - @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); - } - - @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); - } - - @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); - } - - @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); - } - - @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); - } - - @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); - } - - @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); - } - - @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); - } - - @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); - } - - @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); - } - - @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); - } - - /** - * Identifier. The resource name of the tag template in URL format. Note: The tag template - * itself and its child resources might not be stored in the location specified in its - * name. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Identifier. The resource name of the tag template in URL format. Note: The tag template itself and - its child resources might not be stored in the location specified in its name. - */ - public java.lang.String getName() { - return name; - } - - /** - * Identifier. The resource name of the tag template in URL format. Note: The tag template - * itself and its child resources might not be stored in the location specified in its - * name. - */ - public Patch setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/tagTemplates/[^/]+$"); - } - this.name = name; - return this; - } - - /** - * Names of fields whose values to overwrite on a tag template. Currently, only - * `display_name` and `is_publicly_readable` can be overwritten. If this parameter is - * absent or empty, all modifiable fields are overwritten. If such fields are non-required - * and omitted in the request body, their values are emptied. Note: Updating the - * `is_publicly_readable` field may require up to 12 hours to take effect in search - * results. - */ - @com.google.api.client.util.Key - private String updateMask; - - /** Names of fields whose values to overwrite on a tag template. Currently, only `display_name` and - `is_publicly_readable` can be overwritten. If this parameter is absent or empty, all modifiable - fields are overwritten. If such fields are non-required and omitted in the request body, their - values are emptied. Note: Updating the `is_publicly_readable` field may require up to 12 hours to - take effect in search results. - */ - public String getUpdateMask() { - return updateMask; - } - - /** - * Names of fields whose values to overwrite on a tag template. Currently, only - * `display_name` and `is_publicly_readable` can be overwritten. If this parameter is - * absent or empty, all modifiable fields are overwritten. If such fields are non-required - * and omitted in the request body, their values are emptied. Note: Updating the - * `is_publicly_readable` field may require up to 12 hours to take effect in search - * results. - */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; - } - - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - /** - * Sets an access control policy for a resource. Replaces any existing policy. Supported resources - * are: - Tag templates - Entry groups Note: This method sets policies only within Data Catalog and - * can't be used to manage policies in BigQuery, Pub/Sub, Dataproc Metastore, and any external - * Google Cloud Platform resources synced with the Data Catalog. To call this method, you must have - * the following Google IAM permissions: - `datacatalog.tagTemplates.setIamPolicy` to set policies - * on tag templates. - `datacatalog.entryGroups.setIamPolicy` to set policies on entry groups. - * - * Create a request for the method "tagTemplates.setIamPolicy". - * - * This request holds the parameters needed by the datacatalog server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. - * - * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @param content the {@link com.google.api.services.datacatalog.v1.model.SetIamPolicyRequest} - * @return the request - */ - public SetIamPolicy setIamPolicy(java.lang.String resource, com.google.api.services.datacatalog.v1.model.SetIamPolicyRequest content) throws java.io.IOException { - SetIamPolicy result = new SetIamPolicy(resource, content); - initialize(result); - return result; - } - - public class SetIamPolicy extends DataCatalogRequest{@link - * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @param content the {@link com.google.api.services.datacatalog.v1.model.SetIamPolicyRequest} - * @since 1.13 - */ - protected SetIamPolicy(java.lang.String resource, com.google.api.services.datacatalog.v1.model.SetIamPolicyRequest content) { - super(DataCatalog.this, "POST", REST_PATH, content, com.google.api.services.datacatalog.v1.model.Policy.class); - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/tagTemplates/[^/]+$"); - } - } - - @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); - } - - @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); - } - - @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); - } - - @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); - } - - @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); - } - - @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); - } - - @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); - } - - @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); - } - - @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); - } - - @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); - } - - /** - * REQUIRED: The resource for which the policy is being specified. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. - */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** REQUIRED: The resource for which the policy is being specified. See [Resource - names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this - field. - */ - public java.lang.String getResource() { - return resource; - } - - /** - * REQUIRED: The resource for which the policy is being specified. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. - */ - public SetIamPolicy setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/tagTemplates/[^/]+$"); - } - this.resource = resource; - return this; - } - - @Override - public SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); - } - } - /** - * Gets your permissions on a resource. Returns an empty set of permissions if the resource doesn't - * exist. Supported resources are: - Tag templates - Entry groups Note: This method gets policies - * only within Data Catalog and can't be used to get policies from BigQuery, Pub/Sub, Dataproc - * Metastore, and any external Google Cloud Platform resources ingested into Data Catalog. No Google - * IAM permissions are required to call this method. - * - * Create a request for the method "tagTemplates.testIamPermissions". - * - * This request holds the parameters needed by the datacatalog server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. - * - * @param resource REQUIRED: The resource for which the policy detail is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @param content the {@link com.google.api.services.datacatalog.v1.model.TestIamPermissionsRequest} - * @return the request - */ - public TestIamPermissions testIamPermissions(java.lang.String resource, com.google.api.services.datacatalog.v1.model.TestIamPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(resource, content); - initialize(result); - return result; - } - - public class TestIamPermissions extends DataCatalogRequest{@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.
- * - * @param resource REQUIRED: The resource for which the policy detail is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @param content the {@link com.google.api.services.datacatalog.v1.model.TestIamPermissionsRequest} - * @since 1.13 - */ - protected TestIamPermissions(java.lang.String resource, com.google.api.services.datacatalog.v1.model.TestIamPermissionsRequest content) { - super(DataCatalog.this, "POST", REST_PATH, content, com.google.api.services.datacatalog.v1.model.TestIamPermissionsResponse.class); - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/tagTemplates/[^/]+$"); - } - } - - @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); - } - - @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); - } - - @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); - } - - @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); - } - - @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); - } - - @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); - } - - @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); - } - - @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); - } - - @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); - } - - @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); - } - - @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); - } - - /** - * REQUIRED: The resource for which the policy detail is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. - */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** REQUIRED: The resource for which the policy detail is being requested. See [Resource - names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this - field. - */ - public java.lang.String getResource() { - return resource; - } - - /** - * REQUIRED: The resource for which the policy detail is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. - */ - public TestIamPermissions setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/tagTemplates/[^/]+$"); - } - this.resource = resource; - return this; - } - - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } - - /** - * An accessor for creating requests from the Fields collection. - * - *The typical use is:
- *
- * {@code DataCatalog datacatalog = new DataCatalog(...);}
- * {@code DataCatalog.Fields.List request = datacatalog.fields().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public Fields fields() {
- return new Fields();
- }
-
- /**
- * The "fields" collection of methods.
- */
- public class Fields {
-
- /**
- * Creates a field in a tag template. You must enable the Data Catalog API in the project identified
- * by the `parent` parameter. For more information, see [Data Catalog resource
- * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).
- *
- * Create a request for the method "fields.create".
- *
- * This request holds the parameters needed by the datacatalog server. After setting any optional
- * parameters, call the {@link Create#execute()} method to invoke the remote operation.
- *
- * @param parent Required. The name of the project and the template location [region](https://cloud.google.com/data-
- * catalog/docs/concepts/regions).
- * @param content the {@link com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1TagTemplateField}
- * @return the request
- */
- public Create create(java.lang.String parent, com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1TagTemplateField content) throws java.io.IOException {
- Create result = new Create(parent, content);
- initialize(result);
- return result;
- }
-
- public class Create extends DataCatalogRequest{@link - * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param parent Required. The name of the project and the template location [region](https://cloud.google.com/data- - * catalog/docs/concepts/regions). - * @param content the {@link com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1TagTemplateField} - * @since 1.13 - */ - protected Create(java.lang.String parent, com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1TagTemplateField content) { - super(DataCatalog.this, "POST", REST_PATH, content, com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1TagTemplateField.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/tagTemplates/[^/]+$"); - } - } - - @Override - public Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); - } - - @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); - } - - @Override - public Create setAlt(java.lang.String alt) { - return (Create) super.setAlt(alt); - } - - @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); - } - - @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); - } - - @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); - } - - @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); - } - - @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); - } - - @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); - } - - @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); - } - - @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The name of the project and the template location - * [region](https://cloud.google.com/data-catalog/docs/concepts/regions). - */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** Required. The name of the project and the template location [region](https://cloud.google.com/data- - catalog/docs/concepts/regions). - */ - public java.lang.String getParent() { - return parent; - } - - /** - * Required. The name of the project and the template location - * [region](https://cloud.google.com/data-catalog/docs/concepts/regions). - */ - public Create setParent(java.lang.String parent) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/tagTemplates/[^/]+$"); - } - this.parent = parent; - return this; - } - - /** - * Required. The ID of the tag template field to create. Note: Adding a required field - * to an existing template is *not* allowed. Field IDs can contain letters (both - * uppercase and lowercase), numbers (0-9), underscores (_) and dashes (-). Field IDs - * must be at least 1 character long and at most 128 characters long. Field IDs must - * also be unique within their template. - */ - @com.google.api.client.util.Key - private java.lang.String tagTemplateFieldId; - - /** Required. The ID of the tag template field to create. Note: Adding a required field to an existing - template is *not* allowed. Field IDs can contain letters (both uppercase and lowercase), numbers - (0-9), underscores (_) and dashes (-). Field IDs must be at least 1 character long and at most 128 - characters long. Field IDs must also be unique within their template. - */ - public java.lang.String getTagTemplateFieldId() { - return tagTemplateFieldId; - } - - /** - * Required. The ID of the tag template field to create. Note: Adding a required field - * to an existing template is *not* allowed. Field IDs can contain letters (both - * uppercase and lowercase), numbers (0-9), underscores (_) and dashes (-). Field IDs - * must be at least 1 character long and at most 128 characters long. Field IDs must - * also be unique within their template. - */ - public Create setTagTemplateFieldId(java.lang.String tagTemplateFieldId) { - this.tagTemplateFieldId = tagTemplateFieldId; - return this; - } - - @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); - } - } - /** - * Deletes a field in a tag template and all uses of this field from the tags based on this - * template. You must enable the Data Catalog API in the project identified by the `name` parameter. - * For more information, see [Data Catalog resource project](https://cloud.google.com/data- - * catalog/docs/concepts/resource-project). - * - * Create a request for the method "fields.delete". - * - * This request holds the parameters needed by the datacatalog server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param name Required. The name of the tag template field to delete. - * @return the request - */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); - initialize(result); - return result; - } - - public class Delete extends DataCatalogRequest{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param name Required. The name of the tag template field to delete. - * @since 1.13 - */ - protected Delete(java.lang.String name) { - super(DataCatalog.this, "DELETE", REST_PATH, null, com.google.api.services.datacatalog.v1.model.Empty.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/tagTemplates/[^/]+/fields/[^/]+$"); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - /** Required. The name of the tag template field to delete. */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The name of the tag template field to delete. - */ - public java.lang.String getName() { - return name; - } - - /** Required. The name of the tag template field to delete. */ - public Delete setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/tagTemplates/[^/]+/fields/[^/]+$"); - } - this.name = name; - return this; - } - - /** - * Required. If true, deletes this field from any tags that use it. Currently, `true` is - * the only supported value. - */ - @com.google.api.client.util.Key - private java.lang.Boolean force; - - /** Required. If true, deletes this field from any tags that use it. Currently, `true` is the only - supported value. - */ - public java.lang.Boolean getForce() { - return force; - } - - /** - * Required. If true, deletes this field from any tags that use it. Currently, `true` is - * the only supported value. - */ - public Delete setForce(java.lang.Boolean force) { - this.force = force; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Updates a field in a tag template. You can't update the field type with this method. You must - * enable the Data Catalog API in the project identified by the `name` parameter. For more - * information, see [Data Catalog resource project](https://cloud.google.com/data- - * catalog/docs/concepts/resource-project). - * - * Create a request for the method "fields.patch". - * - * This request holds the parameters needed by the datacatalog server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation. - * - * @param name Required. The name of the tag template field. - * @param content the {@link com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1TagTemplateField} - * @return the request - */ - public Patch patch(java.lang.String name, com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1TagTemplateField content) throws java.io.IOException { - Patch result = new Patch(name, content); - initialize(result); - return result; - } - - public class Patch extends DataCatalogRequest{@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param name Required. The name of the tag template field. - * @param content the {@link com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1TagTemplateField} - * @since 1.13 - */ - protected Patch(java.lang.String name, com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1TagTemplateField content) { - super(DataCatalog.this, "PATCH", REST_PATH, content, com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1TagTemplateField.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/tagTemplates/[^/]+/fields/[^/]+$"); - } - } - - @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); - } - - @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); - } - - @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); - } - - @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); - } - - @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); - } - - @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); - } - - @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); - } - - @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); - } - - @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); - } - - @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); - } - - @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); - } - - /** Required. The name of the tag template field. */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The name of the tag template field. - */ - public java.lang.String getName() { - return name; - } - - /** Required. The name of the tag template field. */ - public Patch setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/tagTemplates/[^/]+/fields/[^/]+$"); - } - this.name = name; - return this; - } - - /** - * Optional. Names of fields whose values to overwrite on an individual field of a tag - * template. The following fields are modifiable: * `display_name` * `type.enum_type` * - * `is_required` If this parameter is absent or empty, all modifiable fields are - * overwritten. If such fields are non-required and omitted in the request body, their - * values are emptied with one exception: when updating an enum type, the provided - * values are merged with the existing values. Therefore, enum values can only be added, - * existing enum values cannot be deleted or renamed. Additionally, updating a template - * field from optional to required is *not* allowed. - */ - @com.google.api.client.util.Key - private String updateMask; - - /** Optional. Names of fields whose values to overwrite on an individual field of a tag template. The - following fields are modifiable: * `display_name` * `type.enum_type` * `is_required` If this - parameter is absent or empty, all modifiable fields are overwritten. If such fields are non- - required and omitted in the request body, their values are emptied with one exception: when - updating an enum type, the provided values are merged with the existing values. Therefore, enum - values can only be added, existing enum values cannot be deleted or renamed. Additionally, updating - a template field from optional to required is *not* allowed. - */ - public String getUpdateMask() { - return updateMask; - } - - /** - * Optional. Names of fields whose values to overwrite on an individual field of a tag - * template. The following fields are modifiable: * `display_name` * `type.enum_type` * - * `is_required` If this parameter is absent or empty, all modifiable fields are - * overwritten. If such fields are non-required and omitted in the request body, their - * values are emptied with one exception: when updating an enum type, the provided - * values are merged with the existing values. Therefore, enum values can only be added, - * existing enum values cannot be deleted or renamed. Additionally, updating a template - * field from optional to required is *not* allowed. - */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; - } - - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - /** - * Renames a field in a tag template. You must enable the Data Catalog API in the project identified - * by the `name` parameter. For more information, see [Data Catalog resource project] - * (https://cloud.google.com/data-catalog/docs/concepts/resource-project). - * - * Create a request for the method "fields.rename". - * - * This request holds the parameters needed by the datacatalog server. After setting any optional - * parameters, call the {@link Rename#execute()} method to invoke the remote operation. - * - * @param name Required. The name of the tag template field. - * @param content the {@link com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1RenameTagTemplateFieldRequest} - * @return the request - */ - public Rename rename(java.lang.String name, com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1RenameTagTemplateFieldRequest content) throws java.io.IOException { - Rename result = new Rename(name, content); - initialize(result); - return result; - } - - public class Rename extends DataCatalogRequest{@link - * Rename#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param name Required. The name of the tag template field. - * @param content the {@link com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1RenameTagTemplateFieldRequest} - * @since 1.13 - */ - protected Rename(java.lang.String name, com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1RenameTagTemplateFieldRequest content) { - super(DataCatalog.this, "POST", REST_PATH, content, com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1TagTemplateField.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/tagTemplates/[^/]+/fields/[^/]+$"); - } - } - - @Override - public Rename set$Xgafv(java.lang.String $Xgafv) { - return (Rename) super.set$Xgafv($Xgafv); - } - - @Override - public Rename setAccessToken(java.lang.String accessToken) { - return (Rename) super.setAccessToken(accessToken); - } - - @Override - public Rename setAlt(java.lang.String alt) { - return (Rename) super.setAlt(alt); - } - - @Override - public Rename setCallback(java.lang.String callback) { - return (Rename) super.setCallback(callback); - } - - @Override - public Rename setFields(java.lang.String fields) { - return (Rename) super.setFields(fields); - } - - @Override - public Rename setKey(java.lang.String key) { - return (Rename) super.setKey(key); - } - - @Override - public Rename setOauthToken(java.lang.String oauthToken) { - return (Rename) super.setOauthToken(oauthToken); - } - - @Override - public Rename setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Rename) super.setPrettyPrint(prettyPrint); - } - - @Override - public Rename setQuotaUser(java.lang.String quotaUser) { - return (Rename) super.setQuotaUser(quotaUser); - } - - @Override - public Rename setUploadType(java.lang.String uploadType) { - return (Rename) super.setUploadType(uploadType); - } - - @Override - public Rename setUploadProtocol(java.lang.String uploadProtocol) { - return (Rename) super.setUploadProtocol(uploadProtocol); - } - - /** Required. The name of the tag template field. */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The name of the tag template field. - */ - public java.lang.String getName() { - return name; - } - - /** Required. The name of the tag template field. */ - public Rename setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/tagTemplates/[^/]+/fields/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public Rename set(String parameterName, Object value) { - return (Rename) super.set(parameterName, value); - } - } - - /** - * An accessor for creating requests from the EnumValues collection. - * - *The typical use is:
- *
- * {@code DataCatalog datacatalog = new DataCatalog(...);}
- * {@code DataCatalog.EnumValues.List request = datacatalog.enumValues().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public EnumValues enumValues() {
- return new EnumValues();
- }
-
- /**
- * The "enumValues" collection of methods.
- */
- public class EnumValues {
-
- /**
- * Renames an enum value in a tag template. Within a single enum field, enum values must be unique.
- *
- * Create a request for the method "enumValues.rename".
- *
- * This request holds the parameters needed by the datacatalog server. After setting any optional
- * parameters, call the {@link Rename#execute()} method to invoke the remote operation.
- *
- * @param name Required. The name of the enum field value.
- * @param content the {@link com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1RenameTagTemplateFieldEnumValueRequest}
- * @return the request
- */
- public Rename rename(java.lang.String name, com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1RenameTagTemplateFieldEnumValueRequest content) throws java.io.IOException {
- Rename result = new Rename(name, content);
- initialize(result);
- return result;
- }
-
- public class Rename extends DataCatalogRequest{@link - * Rename#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param name Required. The name of the enum field value. - * @param content the {@link com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1RenameTagTemplateFieldEnumValueRequest} - * @since 1.13 - */ - protected Rename(java.lang.String name, com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1RenameTagTemplateFieldEnumValueRequest content) { - super(DataCatalog.this, "POST", REST_PATH, content, com.google.api.services.datacatalog.v1.model.GoogleCloudDatacatalogV1TagTemplateField.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/tagTemplates/[^/]+/fields/[^/]+/enumValues/[^/]+$"); - } - } - - @Override - public Rename set$Xgafv(java.lang.String $Xgafv) { - return (Rename) super.set$Xgafv($Xgafv); - } - - @Override - public Rename setAccessToken(java.lang.String accessToken) { - return (Rename) super.setAccessToken(accessToken); - } - - @Override - public Rename setAlt(java.lang.String alt) { - return (Rename) super.setAlt(alt); - } - - @Override - public Rename setCallback(java.lang.String callback) { - return (Rename) super.setCallback(callback); - } - - @Override - public Rename setFields(java.lang.String fields) { - return (Rename) super.setFields(fields); - } - - @Override - public Rename setKey(java.lang.String key) { - return (Rename) super.setKey(key); - } - - @Override - public Rename setOauthToken(java.lang.String oauthToken) { - return (Rename) super.setOauthToken(oauthToken); - } - - @Override - public Rename setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Rename) super.setPrettyPrint(prettyPrint); - } - - @Override - public Rename setQuotaUser(java.lang.String quotaUser) { - return (Rename) super.setQuotaUser(quotaUser); - } - - @Override - public Rename setUploadType(java.lang.String uploadType) { - return (Rename) super.setUploadType(uploadType); - } - - @Override - public Rename setUploadProtocol(java.lang.String uploadProtocol) { - return (Rename) super.setUploadProtocol(uploadProtocol); - } - - /** Required. The name of the enum field value. */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The name of the enum field value. - */ - public java.lang.String getName() { - return name; - } - - /** Required. The name of the enum field value. */ - public Rename setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/tagTemplates/[^/]+/fields/[^/]+/enumValues/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public Rename set(String parameterName, Object value) { - return (Rename) super.set(parameterName, value); - } - } - - } - } } /** * An accessor for creating requests from the Taxonomies collection. diff --git a/clients/google-api-services-datacatalog/v1/2.0.0/com/google/api/services/datacatalog/v1/model/GoogleCloudDatacatalogV1EntryGroup.java b/clients/google-api-services-datacatalog/v1/2.0.0/com/google/api/services/datacatalog/v1/model/GoogleCloudDatacatalogV1EntryGroup.java deleted file mode 100644 index a2cc7c4c09a..00000000000 --- a/clients/google-api-services-datacatalog/v1/2.0.0/com/google/api/services/datacatalog/v1/model/GoogleCloudDatacatalogV1EntryGroup.java +++ /dev/null @@ -1,182 +0,0 @@ -/* - * 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.datacatalog.v1.model; - -/** - * Entry group metadata. An `EntryGroup` resource represents a logical grouping of zero or more Data - * Catalog Entry resources. - * - *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 Google Cloud Data Catalog 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 GoogleCloudDatacatalogV1EntryGroup extends com.google.api.client.json.GenericJson { - - /** - * Output only. Timestamps of the entry group. Default value is empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private GoogleCloudDatacatalogV1SystemTimestamps dataCatalogTimestamps; - - /** - * Entry group description. Can consist of several sentences or paragraphs that describe the entry - * group contents. Default value is an empty string. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * A short name to identify the entry group, for example, "analytics data - jan 2011". Default - * value is an empty string. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String displayName; - - /** - * Identifier. The resource name of the entry group in URL format. Note: The entry group itself - * and its child resources might not be stored in the location specified in its name. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * Optional. When set to [true], it means DataCatalog EntryGroup was transferred to Dataplex - * Universal Catalog. It makes EntryGroup and its Entries to be read-only in DataCatalog. However, - * new Tags on EntryGroup and its Entries can be created. After setting the flag to [true] it - * cannot be unset. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean transferredToDataplex; - - /** - * Output only. Timestamps of the entry group. Default value is empty. - * @return value or {@code null} for none - */ - public GoogleCloudDatacatalogV1SystemTimestamps getDataCatalogTimestamps() { - return dataCatalogTimestamps; - } - - /** - * Output only. Timestamps of the entry group. Default value is empty. - * @param dataCatalogTimestamps dataCatalogTimestamps or {@code null} for none - */ - public GoogleCloudDatacatalogV1EntryGroup setDataCatalogTimestamps(GoogleCloudDatacatalogV1SystemTimestamps dataCatalogTimestamps) { - this.dataCatalogTimestamps = dataCatalogTimestamps; - return this; - } - - /** - * Entry group description. Can consist of several sentences or paragraphs that describe the entry - * group contents. Default value is an empty string. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * Entry group description. Can consist of several sentences or paragraphs that describe the entry - * group contents. Default value is an empty string. - * @param description description or {@code null} for none - */ - public GoogleCloudDatacatalogV1EntryGroup setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * A short name to identify the entry group, for example, "analytics data - jan 2011". Default - * value is an empty string. - * @return value or {@code null} for none - */ - public java.lang.String getDisplayName() { - return displayName; - } - - /** - * A short name to identify the entry group, for example, "analytics data - jan 2011". Default - * value is an empty string. - * @param displayName displayName or {@code null} for none - */ - public GoogleCloudDatacatalogV1EntryGroup setDisplayName(java.lang.String displayName) { - this.displayName = displayName; - return this; - } - - /** - * Identifier. The resource name of the entry group in URL format. Note: The entry group itself - * and its child resources might not be stored in the location specified in its name. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * Identifier. The resource name of the entry group in URL format. Note: The entry group itself - * and its child resources might not be stored in the location specified in its name. - * @param name name or {@code null} for none - */ - public GoogleCloudDatacatalogV1EntryGroup setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * Optional. When set to [true], it means DataCatalog EntryGroup was transferred to Dataplex - * Universal Catalog. It makes EntryGroup and its Entries to be read-only in DataCatalog. However, - * new Tags on EntryGroup and its Entries can be created. After setting the flag to [true] it - * cannot be unset. - * @return value or {@code null} for none - */ - public java.lang.Boolean getTransferredToDataplex() { - return transferredToDataplex; - } - - /** - * Optional. When set to [true], it means DataCatalog EntryGroup was transferred to Dataplex - * Universal Catalog. It makes EntryGroup and its Entries to be read-only in DataCatalog. However, - * new Tags on EntryGroup and its Entries can be created. After setting the flag to [true] it - * cannot be unset. - * @param transferredToDataplex transferredToDataplex or {@code null} for none - */ - public GoogleCloudDatacatalogV1EntryGroup setTransferredToDataplex(java.lang.Boolean transferredToDataplex) { - this.transferredToDataplex = transferredToDataplex; - return this; - } - - @Override - public GoogleCloudDatacatalogV1EntryGroup set(String fieldName, Object value) { - return (GoogleCloudDatacatalogV1EntryGroup) super.set(fieldName, value); - } - - @Override - public GoogleCloudDatacatalogV1EntryGroup clone() { - return (GoogleCloudDatacatalogV1EntryGroup) super.clone(); - } - -} diff --git a/clients/google-api-services-datacatalog/v1/2.0.0/com/google/api/services/datacatalog/v1/model/GoogleCloudDatacatalogV1FieldType.java b/clients/google-api-services-datacatalog/v1/2.0.0/com/google/api/services/datacatalog/v1/model/GoogleCloudDatacatalogV1FieldType.java deleted file mode 100644 index e44031db08b..00000000000 --- a/clients/google-api-services-datacatalog/v1/2.0.0/com/google/api/services/datacatalog/v1/model/GoogleCloudDatacatalogV1FieldType.java +++ /dev/null @@ -1,91 +0,0 @@ -/* - * 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.datacatalog.v1.model; - -/** - * Model definition for GoogleCloudDatacatalogV1FieldType. - * - *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 Google Cloud Data Catalog 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 GoogleCloudDatacatalogV1FieldType extends com.google.api.client.json.GenericJson { - - /** - * An enum type. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private GoogleCloudDatacatalogV1FieldTypeEnumType enumType; - - /** - * Primitive types, such as string, boolean, etc. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String primitiveType; - - /** - * An enum type. - * @return value or {@code null} for none - */ - public GoogleCloudDatacatalogV1FieldTypeEnumType getEnumType() { - return enumType; - } - - /** - * An enum type. - * @param enumType enumType or {@code null} for none - */ - public GoogleCloudDatacatalogV1FieldType setEnumType(GoogleCloudDatacatalogV1FieldTypeEnumType enumType) { - this.enumType = enumType; - return this; - } - - /** - * Primitive types, such as string, boolean, etc. - * @return value or {@code null} for none - */ - public java.lang.String getPrimitiveType() { - return primitiveType; - } - - /** - * Primitive types, such as string, boolean, etc. - * @param primitiveType primitiveType or {@code null} for none - */ - public GoogleCloudDatacatalogV1FieldType setPrimitiveType(java.lang.String primitiveType) { - this.primitiveType = primitiveType; - return this; - } - - @Override - public GoogleCloudDatacatalogV1FieldType set(String fieldName, Object value) { - return (GoogleCloudDatacatalogV1FieldType) super.set(fieldName, value); - } - - @Override - public GoogleCloudDatacatalogV1FieldType clone() { - return (GoogleCloudDatacatalogV1FieldType) super.clone(); - } - -} diff --git a/clients/google-api-services-datacatalog/v1/2.0.0/com/google/api/services/datacatalog/v1/model/GoogleCloudDatacatalogV1FieldTypeEnumType.java b/clients/google-api-services-datacatalog/v1/2.0.0/com/google/api/services/datacatalog/v1/model/GoogleCloudDatacatalogV1FieldTypeEnumType.java deleted file mode 100644 index 959e45e7f58..00000000000 --- a/clients/google-api-services-datacatalog/v1/2.0.0/com/google/api/services/datacatalog/v1/model/GoogleCloudDatacatalogV1FieldTypeEnumType.java +++ /dev/null @@ -1,79 +0,0 @@ -/* - * 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.datacatalog.v1.model; - -/** - * Model definition for GoogleCloudDatacatalogV1FieldTypeEnumType. - * - *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 Google Cloud Data Catalog 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 GoogleCloudDatacatalogV1FieldTypeEnumType extends com.google.api.client.json.GenericJson { - - /** - * The set of allowed values for this enum. This set must not be empty and can include up to 100 - * allowed values. The display names of the values in this set must not be empty and must be case- - * insensitively unique within this set. The order of items in this set is preserved. This field - * can be used to create, remove, and reorder enum values. To rename enum values, use the - * `RenameTagTemplateFieldEnumValue` method. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is - * transmitted over HTTP when working with the Google Cloud Data Catalog 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 GoogleCloudDatacatalogV1FieldTypeEnumTypeEnumValue extends com.google.api.client.json.GenericJson { - - /** - * Required. The display name of the enum value. Must not be an empty string. The name must - * contain only Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces ( ), and can't - * start or end with spaces. The maximum length is 200 characters. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String displayName; - - /** - * Required. The display name of the enum value. Must not be an empty string. The name must - * contain only Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces ( ), and can't - * start or end with spaces. The maximum length is 200 characters. - * @return value or {@code null} for none - */ - public java.lang.String getDisplayName() { - return displayName; - } - - /** - * Required. The display name of the enum value. Must not be an empty string. The name must - * contain only Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces ( ), and can't - * start or end with spaces. The maximum length is 200 characters. - * @param displayName displayName or {@code null} for none - */ - public GoogleCloudDatacatalogV1FieldTypeEnumTypeEnumValue setDisplayName(java.lang.String displayName) { - this.displayName = displayName; - return this; - } - - @Override - public GoogleCloudDatacatalogV1FieldTypeEnumTypeEnumValue set(String fieldName, Object value) { - return (GoogleCloudDatacatalogV1FieldTypeEnumTypeEnumValue) super.set(fieldName, value); - } - - @Override - public GoogleCloudDatacatalogV1FieldTypeEnumTypeEnumValue clone() { - return (GoogleCloudDatacatalogV1FieldTypeEnumTypeEnumValue) super.clone(); - } - -} diff --git a/clients/google-api-services-datacatalog/v1/2.0.0/com/google/api/services/datacatalog/v1/model/GoogleCloudDatacatalogV1ImportEntriesRequest.java b/clients/google-api-services-datacatalog/v1/2.0.0/com/google/api/services/datacatalog/v1/model/GoogleCloudDatacatalogV1ImportEntriesRequest.java deleted file mode 100644 index 45588f86815..00000000000 --- a/clients/google-api-services-datacatalog/v1/2.0.0/com/google/api/services/datacatalog/v1/model/GoogleCloudDatacatalogV1ImportEntriesRequest.java +++ /dev/null @@ -1,94 +0,0 @@ -/* - * 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.datacatalog.v1.model; - -/** - * Request message for ImportEntries method. - * - *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 Google Cloud Data Catalog 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 GoogleCloudDatacatalogV1ImportEntriesRequest extends com.google.api.client.json.GenericJson { - - /** - * Path to a Cloud Storage bucket that contains a dump ready for ingestion. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String gcsBucketPath; - - /** - * Optional. (Optional) Dataplex Universal Catalog task job id, if specified will be used as part - * of ImportEntries LRO ID - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String jobId; - - /** - * Path to a Cloud Storage bucket that contains a dump ready for ingestion. - * @return value or {@code null} for none - */ - public java.lang.String getGcsBucketPath() { - return gcsBucketPath; - } - - /** - * Path to a Cloud Storage bucket that contains a dump ready for ingestion. - * @param gcsBucketPath gcsBucketPath or {@code null} for none - */ - public GoogleCloudDatacatalogV1ImportEntriesRequest setGcsBucketPath(java.lang.String gcsBucketPath) { - this.gcsBucketPath = gcsBucketPath; - return this; - } - - /** - * Optional. (Optional) Dataplex Universal Catalog task job id, if specified will be used as part - * of ImportEntries LRO ID - * @return value or {@code null} for none - */ - public java.lang.String getJobId() { - return jobId; - } - - /** - * Optional. (Optional) Dataplex Universal Catalog task job id, if specified will be used as part - * of ImportEntries LRO ID - * @param jobId jobId or {@code null} for none - */ - public GoogleCloudDatacatalogV1ImportEntriesRequest setJobId(java.lang.String jobId) { - this.jobId = jobId; - return this; - } - - @Override - public GoogleCloudDatacatalogV1ImportEntriesRequest set(String fieldName, Object value) { - return (GoogleCloudDatacatalogV1ImportEntriesRequest) super.set(fieldName, value); - } - - @Override - public GoogleCloudDatacatalogV1ImportEntriesRequest clone() { - return (GoogleCloudDatacatalogV1ImportEntriesRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-datacatalog/v1/2.0.0/com/google/api/services/datacatalog/v1/model/GoogleCloudDatacatalogV1ListEntriesResponse.java b/clients/google-api-services-datacatalog/v1/2.0.0/com/google/api/services/datacatalog/v1/model/GoogleCloudDatacatalogV1ListEntriesResponse.java deleted file mode 100644 index 39aeb1df303..00000000000 --- a/clients/google-api-services-datacatalog/v1/2.0.0/com/google/api/services/datacatalog/v1/model/GoogleCloudDatacatalogV1ListEntriesResponse.java +++ /dev/null @@ -1,97 +0,0 @@ -/* - * 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.datacatalog.v1.model; - -/** - * Response message for ListEntries. - * - *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 Google Cloud Data Catalog 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 GoogleCloudDatacatalogV1ListEntriesResponse extends com.google.api.client.json.GenericJson { - - /** - * Entry details. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is - * transmitted over HTTP when working with the Google Cloud Data Catalog 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 GoogleCloudDatacatalogV1ListEntryGroupsResponse extends com.google.api.client.json.GenericJson { - - /** - * Entry group details. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is - * transmitted over HTTP when working with the Google Cloud Data Catalog 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 GoogleCloudDatacatalogV1ListTagsResponse extends com.google.api.client.json.GenericJson { - - /** - * Pagination token of the next results page. Empty if there are no more items in results. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String nextPageToken; - - /** - * Tag details. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is - * transmitted over HTTP when working with the Google Cloud Data Catalog 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 GoogleCloudDatacatalogV1ModifyEntryContactsRequest extends com.google.api.client.json.GenericJson { - - /** - * Required. The new value for the Contacts. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private GoogleCloudDatacatalogV1Contacts contacts; - - /** - * Required. The new value for the Contacts. - * @return value or {@code null} for none - */ - public GoogleCloudDatacatalogV1Contacts getContacts() { - return contacts; - } - - /** - * Required. The new value for the Contacts. - * @param contacts contacts or {@code null} for none - */ - public GoogleCloudDatacatalogV1ModifyEntryContactsRequest setContacts(GoogleCloudDatacatalogV1Contacts contacts) { - this.contacts = contacts; - return this; - } - - @Override - public GoogleCloudDatacatalogV1ModifyEntryContactsRequest set(String fieldName, Object value) { - return (GoogleCloudDatacatalogV1ModifyEntryContactsRequest) super.set(fieldName, value); - } - - @Override - public GoogleCloudDatacatalogV1ModifyEntryContactsRequest clone() { - return (GoogleCloudDatacatalogV1ModifyEntryContactsRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-datacatalog/v1/2.0.0/com/google/api/services/datacatalog/v1/model/GoogleCloudDatacatalogV1ModifyEntryOverviewRequest.java b/clients/google-api-services-datacatalog/v1/2.0.0/com/google/api/services/datacatalog/v1/model/GoogleCloudDatacatalogV1ModifyEntryOverviewRequest.java deleted file mode 100644 index 271702d7083..00000000000 --- a/clients/google-api-services-datacatalog/v1/2.0.0/com/google/api/services/datacatalog/v1/model/GoogleCloudDatacatalogV1ModifyEntryOverviewRequest.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * 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.datacatalog.v1.model; - -/** - * Request message for ModifyEntryOverview. - * - *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 Google Cloud Data Catalog 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 GoogleCloudDatacatalogV1ModifyEntryOverviewRequest extends com.google.api.client.json.GenericJson { - - /** - * Required. The new value for the Entry Overview. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private GoogleCloudDatacatalogV1EntryOverview entryOverview; - - /** - * Required. The new value for the Entry Overview. - * @return value or {@code null} for none - */ - public GoogleCloudDatacatalogV1EntryOverview getEntryOverview() { - return entryOverview; - } - - /** - * Required. The new value for the Entry Overview. - * @param entryOverview entryOverview or {@code null} for none - */ - public GoogleCloudDatacatalogV1ModifyEntryOverviewRequest setEntryOverview(GoogleCloudDatacatalogV1EntryOverview entryOverview) { - this.entryOverview = entryOverview; - return this; - } - - @Override - public GoogleCloudDatacatalogV1ModifyEntryOverviewRequest set(String fieldName, Object value) { - return (GoogleCloudDatacatalogV1ModifyEntryOverviewRequest) super.set(fieldName, value); - } - - @Override - public GoogleCloudDatacatalogV1ModifyEntryOverviewRequest clone() { - return (GoogleCloudDatacatalogV1ModifyEntryOverviewRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-datacatalog/v1/2.0.0/com/google/api/services/datacatalog/v1/model/GoogleCloudDatacatalogV1ReconcileTagsRequest.java b/clients/google-api-services-datacatalog/v1/2.0.0/com/google/api/services/datacatalog/v1/model/GoogleCloudDatacatalogV1ReconcileTagsRequest.java deleted file mode 100644 index b5412f984bc..00000000000 --- a/clients/google-api-services-datacatalog/v1/2.0.0/com/google/api/services/datacatalog/v1/model/GoogleCloudDatacatalogV1ReconcileTagsRequest.java +++ /dev/null @@ -1,118 +0,0 @@ -/* - * 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.datacatalog.v1.model; - -/** - * Request message for ReconcileTags. - * - *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 Google Cloud Data Catalog 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 GoogleCloudDatacatalogV1ReconcileTagsRequest extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean forceDeleteMissing; - - /** - * Required. The name of the tag template, which is used for reconciliation. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String tagTemplate; - - /** - * A list of tags to apply to an entry. A tag can specify a tag template, which must be the - * template specified in the `ReconcileTagsRequest`. The sole entry and each of its columns must - * be mentioned at most once. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is - * transmitted over HTTP when working with the Google Cloud Data Catalog 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 GoogleCloudDatacatalogV1RenameTagTemplateFieldEnumValueRequest extends com.google.api.client.json.GenericJson { - - /** - * Required. The new display name of the enum value. For example, `my_new_enum_value`. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String newEnumValueDisplayName; - - /** - * Required. The new display name of the enum value. For example, `my_new_enum_value`. - * @return value or {@code null} for none - */ - public java.lang.String getNewEnumValueDisplayName() { - return newEnumValueDisplayName; - } - - /** - * Required. The new display name of the enum value. For example, `my_new_enum_value`. - * @param newEnumValueDisplayName newEnumValueDisplayName or {@code null} for none - */ - public GoogleCloudDatacatalogV1RenameTagTemplateFieldEnumValueRequest setNewEnumValueDisplayName(java.lang.String newEnumValueDisplayName) { - this.newEnumValueDisplayName = newEnumValueDisplayName; - return this; - } - - @Override - public GoogleCloudDatacatalogV1RenameTagTemplateFieldEnumValueRequest set(String fieldName, Object value) { - return (GoogleCloudDatacatalogV1RenameTagTemplateFieldEnumValueRequest) super.set(fieldName, value); - } - - @Override - public GoogleCloudDatacatalogV1RenameTagTemplateFieldEnumValueRequest clone() { - return (GoogleCloudDatacatalogV1RenameTagTemplateFieldEnumValueRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-datacatalog/v1/2.0.0/com/google/api/services/datacatalog/v1/model/GoogleCloudDatacatalogV1RenameTagTemplateFieldRequest.java b/clients/google-api-services-datacatalog/v1/2.0.0/com/google/api/services/datacatalog/v1/model/GoogleCloudDatacatalogV1RenameTagTemplateFieldRequest.java deleted file mode 100644 index d1e80a1f7b2..00000000000 --- a/clients/google-api-services-datacatalog/v1/2.0.0/com/google/api/services/datacatalog/v1/model/GoogleCloudDatacatalogV1RenameTagTemplateFieldRequest.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * 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.datacatalog.v1.model; - -/** - * Request message for RenameTagTemplateField. - * - *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 Google Cloud Data Catalog 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 GoogleCloudDatacatalogV1RenameTagTemplateFieldRequest extends com.google.api.client.json.GenericJson { - - /** - * Required. The new ID of this tag template field. For example, `my_new_field`. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String newTagTemplateFieldId; - - /** - * Required. The new ID of this tag template field. For example, `my_new_field`. - * @return value or {@code null} for none - */ - public java.lang.String getNewTagTemplateFieldId() { - return newTagTemplateFieldId; - } - - /** - * Required. The new ID of this tag template field. For example, `my_new_field`. - * @param newTagTemplateFieldId newTagTemplateFieldId or {@code null} for none - */ - public GoogleCloudDatacatalogV1RenameTagTemplateFieldRequest setNewTagTemplateFieldId(java.lang.String newTagTemplateFieldId) { - this.newTagTemplateFieldId = newTagTemplateFieldId; - return this; - } - - @Override - public GoogleCloudDatacatalogV1RenameTagTemplateFieldRequest set(String fieldName, Object value) { - return (GoogleCloudDatacatalogV1RenameTagTemplateFieldRequest) super.set(fieldName, value); - } - - @Override - public GoogleCloudDatacatalogV1RenameTagTemplateFieldRequest clone() { - return (GoogleCloudDatacatalogV1RenameTagTemplateFieldRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-datacatalog/v1/2.0.0/com/google/api/services/datacatalog/v1/model/GoogleCloudDatacatalogV1StarEntryRequest.java b/clients/google-api-services-datacatalog/v1/2.0.0/com/google/api/services/datacatalog/v1/model/GoogleCloudDatacatalogV1StarEntryRequest.java deleted file mode 100644 index dd9f6cde26a..00000000000 --- a/clients/google-api-services-datacatalog/v1/2.0.0/com/google/api/services/datacatalog/v1/model/GoogleCloudDatacatalogV1StarEntryRequest.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * 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.datacatalog.v1.model; - -/** - * Request message for StarEntry. - * - *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 Google Cloud Data Catalog 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 GoogleCloudDatacatalogV1StarEntryRequest extends com.google.api.client.json.GenericJson { - - @Override - public GoogleCloudDatacatalogV1StarEntryRequest set(String fieldName, Object value) { - return (GoogleCloudDatacatalogV1StarEntryRequest) super.set(fieldName, value); - } - - @Override - public GoogleCloudDatacatalogV1StarEntryRequest clone() { - return (GoogleCloudDatacatalogV1StarEntryRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-datacatalog/v1/2.0.0/com/google/api/services/datacatalog/v1/model/GoogleCloudDatacatalogV1StarEntryResponse.java b/clients/google-api-services-datacatalog/v1/2.0.0/com/google/api/services/datacatalog/v1/model/GoogleCloudDatacatalogV1StarEntryResponse.java deleted file mode 100644 index 3cbd8c1b6a3..00000000000 --- a/clients/google-api-services-datacatalog/v1/2.0.0/com/google/api/services/datacatalog/v1/model/GoogleCloudDatacatalogV1StarEntryResponse.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * 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.datacatalog.v1.model; - -/** - * Response message for StarEntry. Empty for now - * - *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 Google Cloud Data Catalog 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 GoogleCloudDatacatalogV1StarEntryResponse extends com.google.api.client.json.GenericJson { - - @Override - public GoogleCloudDatacatalogV1StarEntryResponse set(String fieldName, Object value) { - return (GoogleCloudDatacatalogV1StarEntryResponse) super.set(fieldName, value); - } - - @Override - public GoogleCloudDatacatalogV1StarEntryResponse clone() { - return (GoogleCloudDatacatalogV1StarEntryResponse) super.clone(); - } - -} diff --git a/clients/google-api-services-datacatalog/v1/2.0.0/com/google/api/services/datacatalog/v1/model/GoogleCloudDatacatalogV1TagTemplate.java b/clients/google-api-services-datacatalog/v1/2.0.0/com/google/api/services/datacatalog/v1/model/GoogleCloudDatacatalogV1TagTemplate.java deleted file mode 100644 index fafbbda24d4..00000000000 --- a/clients/google-api-services-datacatalog/v1/2.0.0/com/google/api/services/datacatalog/v1/model/GoogleCloudDatacatalogV1TagTemplate.java +++ /dev/null @@ -1,198 +0,0 @@ -/* - * 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.datacatalog.v1.model; - -/** - * A tag template defines a tag that can have one or more typed fields. The template is used to - * create tags that are attached to Google Cloud resources. [Tag template roles] - * (https://cloud.google.com/iam/docs/roles-permissions/datacatalog) provide permissions to create, - * edit, and use the template. For example, see the [TagTemplate User] - * (https://cloud.google.com/data-catalog/docs/how-to/template-user) role that includes a permission - * to use the tag template to tag resources. - * - *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 Google Cloud Data Catalog 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 GoogleCloudDatacatalogV1TagTemplate extends com.google.api.client.json.GenericJson { - - /** - * Optional. Transfer status of the TagTemplate - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String dataplexTransferStatus; - - /** - * Display name for this template. Defaults to an empty string. The name must contain only Unicode - * letters, numbers (0-9), underscores (_), dashes (-), spaces ( ), and can't start or end with - * spaces. The maximum length is 200 characters. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String displayName; - - /** - * Required. Map of tag template field IDs to the settings for the field. This map is an - * exhaustive list of the allowed fields. The map must contain at least one field and at most 500 - * fields. The keys to this map are tag template field IDs. The IDs have the following - * limitations: * Can contain uppercase and lowercase letters, numbers (0-9) and underscores (_). - * * Must be at least 1 character and at most 64 characters long. * Must start with a letter or - * underscore. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.MapThis is the Java data model class that specifies how to parse/serialize into the JSON that is - * transmitted over HTTP when working with the Google Cloud Data Catalog 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 GoogleCloudDatacatalogV1TagTemplateField extends com.google.api.client.json.GenericJson { - - /** - * The description for this field. Defaults to an empty string. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * The display name for this field. Defaults to an empty string. The name must contain only - * Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces ( ), and can't start or end - * with spaces. The maximum length is 200 characters. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String displayName; - - /** - * If true, this field is required. Defaults to false. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean isRequired; - - /** - * Identifier. The resource name of the tag template field in URL format. Example: - * `projects/{PROJECT_ID}/locations/{LOCATION}/tagTemplates/{TAG_TEMPLATE}/fields/{FIELD}` Note: - * The tag template field itself might not be stored in the location specified in its name. The - * name must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_), and must start - * with a letter or underscore. The maximum length is 64 characters. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * The order of this field with respect to other fields in this tag template. For example, a - * higher value can indicate a more important field. The value can be negative. Multiple fields - * can have the same order and field orders within a tag don't have to be sequential. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer order; - - /** - * Required. The type of value this tag field can contain. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private GoogleCloudDatacatalogV1FieldType type; - - /** - * The description for this field. Defaults to an empty string. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * The description for this field. Defaults to an empty string. - * @param description description or {@code null} for none - */ - public GoogleCloudDatacatalogV1TagTemplateField setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * The display name for this field. Defaults to an empty string. The name must contain only - * Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces ( ), and can't start or end - * with spaces. The maximum length is 200 characters. - * @return value or {@code null} for none - */ - public java.lang.String getDisplayName() { - return displayName; - } - - /** - * The display name for this field. Defaults to an empty string. The name must contain only - * Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces ( ), and can't start or end - * with spaces. The maximum length is 200 characters. - * @param displayName displayName or {@code null} for none - */ - public GoogleCloudDatacatalogV1TagTemplateField setDisplayName(java.lang.String displayName) { - this.displayName = displayName; - return this; - } - - /** - * If true, this field is required. Defaults to false. - * @return value or {@code null} for none - */ - public java.lang.Boolean getIsRequired() { - return isRequired; - } - - /** - * If true, this field is required. Defaults to false. - * @param isRequired isRequired or {@code null} for none - */ - public GoogleCloudDatacatalogV1TagTemplateField setIsRequired(java.lang.Boolean isRequired) { - this.isRequired = isRequired; - return this; - } - - /** - * Identifier. The resource name of the tag template field in URL format. Example: - * `projects/{PROJECT_ID}/locations/{LOCATION}/tagTemplates/{TAG_TEMPLATE}/fields/{FIELD}` Note: - * The tag template field itself might not be stored in the location specified in its name. The - * name must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_), and must start - * with a letter or underscore. The maximum length is 64 characters. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * Identifier. The resource name of the tag template field in URL format. Example: - * `projects/{PROJECT_ID}/locations/{LOCATION}/tagTemplates/{TAG_TEMPLATE}/fields/{FIELD}` Note: - * The tag template field itself might not be stored in the location specified in its name. The - * name must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_), and must start - * with a letter or underscore. The maximum length is 64 characters. - * @param name name or {@code null} for none - */ - public GoogleCloudDatacatalogV1TagTemplateField setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * The order of this field with respect to other fields in this tag template. For example, a - * higher value can indicate a more important field. The value can be negative. Multiple fields - * can have the same order and field orders within a tag don't have to be sequential. - * @return value or {@code null} for none - */ - public java.lang.Integer getOrder() { - return order; - } - - /** - * The order of this field with respect to other fields in this tag template. For example, a - * higher value can indicate a more important field. The value can be negative. Multiple fields - * can have the same order and field orders within a tag don't have to be sequential. - * @param order order or {@code null} for none - */ - public GoogleCloudDatacatalogV1TagTemplateField setOrder(java.lang.Integer order) { - this.order = order; - return this; - } - - /** - * Required. The type of value this tag field can contain. - * @return value or {@code null} for none - */ - public GoogleCloudDatacatalogV1FieldType getType() { - return type; - } - - /** - * Required. The type of value this tag field can contain. - * @param type type or {@code null} for none - */ - public GoogleCloudDatacatalogV1TagTemplateField setType(GoogleCloudDatacatalogV1FieldType type) { - this.type = type; - return this; - } - - @Override - public GoogleCloudDatacatalogV1TagTemplateField set(String fieldName, Object value) { - return (GoogleCloudDatacatalogV1TagTemplateField) super.set(fieldName, value); - } - - @Override - public GoogleCloudDatacatalogV1TagTemplateField clone() { - return (GoogleCloudDatacatalogV1TagTemplateField) super.clone(); - } - -} diff --git a/clients/google-api-services-datacatalog/v1/2.0.0/com/google/api/services/datacatalog/v1/model/GoogleCloudDatacatalogV1UnstarEntryRequest.java b/clients/google-api-services-datacatalog/v1/2.0.0/com/google/api/services/datacatalog/v1/model/GoogleCloudDatacatalogV1UnstarEntryRequest.java deleted file mode 100644 index 13e301daa90..00000000000 --- a/clients/google-api-services-datacatalog/v1/2.0.0/com/google/api/services/datacatalog/v1/model/GoogleCloudDatacatalogV1UnstarEntryRequest.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * 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.datacatalog.v1.model; - -/** - * Request message for UnstarEntry. - * - *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 Google Cloud Data Catalog 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 GoogleCloudDatacatalogV1UnstarEntryRequest extends com.google.api.client.json.GenericJson { - - @Override - public GoogleCloudDatacatalogV1UnstarEntryRequest set(String fieldName, Object value) { - return (GoogleCloudDatacatalogV1UnstarEntryRequest) super.set(fieldName, value); - } - - @Override - public GoogleCloudDatacatalogV1UnstarEntryRequest clone() { - return (GoogleCloudDatacatalogV1UnstarEntryRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-datacatalog/v1/2.0.0/com/google/api/services/datacatalog/v1/model/GoogleCloudDatacatalogV1UnstarEntryResponse.java b/clients/google-api-services-datacatalog/v1/2.0.0/com/google/api/services/datacatalog/v1/model/GoogleCloudDatacatalogV1UnstarEntryResponse.java deleted file mode 100644 index 0bba980f829..00000000000 --- a/clients/google-api-services-datacatalog/v1/2.0.0/com/google/api/services/datacatalog/v1/model/GoogleCloudDatacatalogV1UnstarEntryResponse.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * 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.datacatalog.v1.model; - -/** - * Response message for UnstarEntry. Empty for now - * - *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 Google Cloud Data Catalog 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 GoogleCloudDatacatalogV1UnstarEntryResponse extends com.google.api.client.json.GenericJson { - - @Override - public GoogleCloudDatacatalogV1UnstarEntryResponse set(String fieldName, Object value) { - return (GoogleCloudDatacatalogV1UnstarEntryResponse) super.set(fieldName, value); - } - - @Override - public GoogleCloudDatacatalogV1UnstarEntryResponse clone() { - return (GoogleCloudDatacatalogV1UnstarEntryResponse) super.clone(); - } - -} diff --git a/clients/google-api-services-datacatalog/v1/2.0.0/pom.xml b/clients/google-api-services-datacatalog/v1/2.0.0/pom.xml index c5d9313a8c2..cb71e64a958 100644 --- a/clients/google-api-services-datacatalog/v1/2.0.0/pom.xml +++ b/clients/google-api-services-datacatalog/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@The typical use is:
- *
- * {@code DataCatalog datacatalog = new DataCatalog(...);}
- * {@code DataCatalog.Entries.List request = datacatalog.entries().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public Entries entries() {
- return new Entries();
- }
-
- /**
- * The "entries" collection of methods.
- */
- public class Entries {
-
- /**
- * Get an entry by target resource name. This method allows clients to use the resource name from
- * the source Google Cloud Platform service to get the Data Catalog Entry.
- *
- * Create a request for the method "entries.lookup".
- *
- * This request holds the parameters needed by the datacatalog server. After setting any optional
- * parameters, call the {@link Lookup#execute()} method to invoke the remote operation.
- *
- * @return the request
- */
- public Lookup lookup() throws java.io.IOException {
- Lookup result = new Lookup();
- initialize(result);
- return result;
- }
-
- public class Lookup extends DataCatalogRequest{@link - * Lookup#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @since 1.13 - */ - protected Lookup() { - super(DataCatalog.this, "GET", REST_PATH, null, com.google.api.services.datacatalog.v1beta1.model.GoogleCloudDatacatalogV1beta1Entry.class); - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Lookup set$Xgafv(java.lang.String $Xgafv) { - return (Lookup) super.set$Xgafv($Xgafv); - } - - @Override - public Lookup setAccessToken(java.lang.String accessToken) { - return (Lookup) super.setAccessToken(accessToken); - } - - @Override - public Lookup setAlt(java.lang.String alt) { - return (Lookup) super.setAlt(alt); - } - - @Override - public Lookup setCallback(java.lang.String callback) { - return (Lookup) super.setCallback(callback); - } - - @Override - public Lookup setFields(java.lang.String fields) { - return (Lookup) super.setFields(fields); - } - - @Override - public Lookup setKey(java.lang.String key) { - return (Lookup) super.setKey(key); - } - - @Override - public Lookup setOauthToken(java.lang.String oauthToken) { - return (Lookup) super.setOauthToken(oauthToken); - } - - @Override - public Lookup setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Lookup) super.setPrettyPrint(prettyPrint); - } - - @Override - public Lookup setQuotaUser(java.lang.String quotaUser) { - return (Lookup) super.setQuotaUser(quotaUser); - } - - @Override - public Lookup setUploadType(java.lang.String uploadType) { - return (Lookup) super.setUploadType(uploadType); - } - - @Override - public Lookup setUploadProtocol(java.lang.String uploadProtocol) { - return (Lookup) super.setUploadProtocol(uploadProtocol); - } - - /** - * The full name of the Google Cloud Platform resource the Data Catalog entry represents. See: - * https://cloud.google.com/apis/design/resource_names#full_resource_name. Full names are - * case-sensitive. Examples: * - * //bigquery.googleapis.com/projects/projectId/datasets/datasetId/tables/tableId * - * //pubsub.googleapis.com/projects/projectId/topics/topicId - */ - @com.google.api.client.util.Key - private java.lang.String linkedResource; - - /** The full name of the Google Cloud Platform resource the Data Catalog entry represents. See: - https://cloud.google.com/apis/design/resource_names#full_resource_name. Full names are case- - sensitive. Examples: * - //bigquery.googleapis.com/projects/projectId/datasets/datasetId/tables/tableId * - //pubsub.googleapis.com/projects/projectId/topics/topicId - */ - public java.lang.String getLinkedResource() { - return linkedResource; - } - - /** - * The full name of the Google Cloud Platform resource the Data Catalog entry represents. See: - * https://cloud.google.com/apis/design/resource_names#full_resource_name. Full names are - * case-sensitive. Examples: * - * //bigquery.googleapis.com/projects/projectId/datasets/datasetId/tables/tableId * - * //pubsub.googleapis.com/projects/projectId/topics/topicId - */ - public Lookup setLinkedResource(java.lang.String linkedResource) { - this.linkedResource = linkedResource; - return this; - } - - /** - * The SQL name of the entry. SQL names are case-sensitive. Examples: * - * `pubsub.project_id.topic_id` * ``pubsub.project_id.`topic.id.with.dots` `` * - * `bigquery.table.project_id.dataset_id.table_id` * `bigquery.dataset.project_id.dataset_id` - * * `datacatalog.entry.project_id.location_id.entry_group_id.entry_id` `*_id`s should satisfy - * the GoogleSQL rules for identifiers. - * https://cloud.google.com/bigquery/docs/reference/standard-sql/lexical. - */ - @com.google.api.client.util.Key - private java.lang.String sqlResource; - - /** The SQL name of the entry. SQL names are case-sensitive. Examples: * `pubsub.project_id.topic_id` * - ``pubsub.project_id.`topic.id.with.dots` `` * `bigquery.table.project_id.dataset_id.table_id` * - `bigquery.dataset.project_id.dataset_id` * - `datacatalog.entry.project_id.location_id.entry_group_id.entry_id` `*_id`s should satisfy the - GoogleSQL rules for identifiers. https://cloud.google.com/bigquery/docs/reference/standard- - sql/lexical. - */ - public java.lang.String getSqlResource() { - return sqlResource; - } - - /** - * The SQL name of the entry. SQL names are case-sensitive. Examples: * - * `pubsub.project_id.topic_id` * ``pubsub.project_id.`topic.id.with.dots` `` * - * `bigquery.table.project_id.dataset_id.table_id` * `bigquery.dataset.project_id.dataset_id` - * * `datacatalog.entry.project_id.location_id.entry_group_id.entry_id` `*_id`s should satisfy - * the GoogleSQL rules for identifiers. - * https://cloud.google.com/bigquery/docs/reference/standard-sql/lexical. - */ - public Lookup setSqlResource(java.lang.String sqlResource) { - this.sqlResource = sqlResource; - return this; - } - - @Override - public Lookup set(String parameterName, Object value) { - return (Lookup) super.set(parameterName, value); - } - } - - } - /** * An accessor for creating requests from the Projects collection. * @@ -508,5990 +309,6 @@ public Locations locations() { */ public class Locations { - /** - * An accessor for creating requests from the EntryGroups collection. - * - *The typical use is:
- *
- * {@code DataCatalog datacatalog = new DataCatalog(...);}
- * {@code DataCatalog.EntryGroups.List request = datacatalog.entryGroups().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public EntryGroups entryGroups() {
- return new EntryGroups();
- }
-
- /**
- * The "entryGroups" collection of methods.
- */
- public class EntryGroups {
-
- /**
- * A maximum of 10,000 entry groups may be created per organization across all locations. Users
- * should enable the Data Catalog API in the project identified by the `parent` parameter (see [Data
- * Catalog Resource Project] (https://cloud.google.com/data-catalog/docs/concepts/resource-project)
- * for more information).
- *
- * Create a request for the method "entryGroups.create".
- *
- * This request holds the parameters needed by the datacatalog server. After setting any optional
- * parameters, call the {@link Create#execute()} method to invoke the remote operation.
- *
- * @param parent Required. The name of the project this entry group is in. Example: *
- * projects/{project_id}/locations/{location} Note that this EntryGroup and its child
- * resources may not actually be stored in the location in this name.
- * @param content the {@link com.google.api.services.datacatalog.v1beta1.model.GoogleCloudDatacatalogV1beta1EntryGroup}
- * @return the request
- */
- public Create create(java.lang.String parent, com.google.api.services.datacatalog.v1beta1.model.GoogleCloudDatacatalogV1beta1EntryGroup content) throws java.io.IOException {
- Create result = new Create(parent, content);
- initialize(result);
- return result;
- }
-
- public class Create extends DataCatalogRequest{@link - * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param parent Required. The name of the project this entry group is in. Example: * - * projects/{project_id}/locations/{location} Note that this EntryGroup and its child - * resources may not actually be stored in the location in this name. - * @param content the {@link com.google.api.services.datacatalog.v1beta1.model.GoogleCloudDatacatalogV1beta1EntryGroup} - * @since 1.13 - */ - protected Create(java.lang.String parent, com.google.api.services.datacatalog.v1beta1.model.GoogleCloudDatacatalogV1beta1EntryGroup content) { - super(DataCatalog.this, "POST", REST_PATH, content, com.google.api.services.datacatalog.v1beta1.model.GoogleCloudDatacatalogV1beta1EntryGroup.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); - } - } - - @Override - public Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); - } - - @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); - } - - @Override - public Create setAlt(java.lang.String alt) { - return (Create) super.setAlt(alt); - } - - @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); - } - - @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); - } - - @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); - } - - @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); - } - - @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); - } - - @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); - } - - @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); - } - - @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The name of the project this entry group is in. Example: * - * projects/{project_id}/locations/{location} Note that this EntryGroup and its child - * resources may not actually be stored in the location in this name. - */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** Required. The name of the project this entry group is in. Example: * - projects/{project_id}/locations/{location} Note that this EntryGroup and its child resources may - not actually be stored in the location in this name. - */ - public java.lang.String getParent() { - return parent; - } - - /** - * Required. The name of the project this entry group is in. Example: * - * projects/{project_id}/locations/{location} Note that this EntryGroup and its child - * resources may not actually be stored in the location in this name. - */ - public Create setParent(java.lang.String parent) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); - } - this.parent = parent; - return this; - } - - /** - * Required. The id of the entry group to create. The id must begin with a letter or - * underscore, contain only English letters, numbers and underscores, and be at most 64 - * characters. - */ - @com.google.api.client.util.Key - private java.lang.String entryGroupId; - - /** Required. The id of the entry group to create. The id must begin with a letter or underscore, - contain only English letters, numbers and underscores, and be at most 64 characters. - */ - public java.lang.String getEntryGroupId() { - return entryGroupId; - } - - /** - * Required. The id of the entry group to create. The id must begin with a letter or - * underscore, contain only English letters, numbers and underscores, and be at most 64 - * characters. - */ - public Create setEntryGroupId(java.lang.String entryGroupId) { - this.entryGroupId = entryGroupId; - return this; - } - - @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); - } - } - /** - * Deletes an EntryGroup. Only entry groups that do not contain entries can be deleted. Users should - * enable the Data Catalog API in the project identified by the `name` parameter (see [Data Catalog - * Resource Project] (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more - * information). - * - * Create a request for the method "entryGroups.delete". - * - * This request holds the parameters needed by the datacatalog server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param name Required. The name of the entry group. For example, - * `projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}`. - * @return the request - */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); - initialize(result); - return result; - } - - public class Delete extends DataCatalogRequest{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param name Required. The name of the entry group. For example, - * `projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}`. - * @since 1.13 - */ - protected Delete(java.lang.String name) { - super(DataCatalog.this, "DELETE", REST_PATH, null, com.google.api.services.datacatalog.v1beta1.model.Empty.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+$"); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The name of the entry group. For example, - * `projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}`. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The name of the entry group. For example, - `projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}`. - */ - public java.lang.String getName() { - return name; - } - - /** - * Required. The name of the entry group. For example, - * `projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}`. - */ - public Delete setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+$"); - } - this.name = name; - return this; - } - - /** Optional. If true, deletes all entries in the entry group. */ - @com.google.api.client.util.Key - private java.lang.Boolean force; - - /** Optional. If true, deletes all entries in the entry group. - */ - public java.lang.Boolean getForce() { - return force; - } - - /** Optional. If true, deletes all entries in the entry group. */ - public Delete setForce(java.lang.Boolean force) { - this.force = force; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Gets an EntryGroup. - * - * Create a request for the method "entryGroups.get". - * - * This request holds the parameters needed by the datacatalog server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. - * - * @param name Required. The name of the entry group. For example, - * `projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}`. - * @return the request - */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); - initialize(result); - return result; - } - - public class Get extends DataCatalogRequest- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param name Required. The name of the entry group. For example, - * `projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}`. - * @since 1.13 - */ - protected Get(java.lang.String name) { - super(DataCatalog.this, "GET", REST_PATH, null, com.google.api.services.datacatalog.v1beta1.model.GoogleCloudDatacatalogV1beta1EntryGroup.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+$"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } - - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } - - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } - - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } - - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } - - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } - - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } - - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } - - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } - - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } - - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The name of the entry group. For example, - * `projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}`. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The name of the entry group. For example, - `projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}`. - */ - public java.lang.String getName() { - return name; - } - - /** - * Required. The name of the entry group. For example, - * `projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}`. - */ - public Get setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+$"); - } - this.name = name; - return this; - } - - /** The fields to return. If not set or empty, all fields are returned. */ - @com.google.api.client.util.Key - private String readMask; - - /** The fields to return. If not set or empty, all fields are returned. - */ - public String getReadMask() { - return readMask; - } - - /** The fields to return. If not set or empty, all fields are returned. */ - public Get setReadMask(String readMask) { - this.readMask = readMask; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Gets the access control policy for a resource. A `NOT_FOUND` error is returned if the resource - * does not exist. An empty policy is returned if the resource exists but does not have a policy set - * on it. Supported resources are: - Tag templates. - Entries. - Entry groups. Note, this method - * cannot be used to manage policies for BigQuery, Pub/Sub and any external Google Cloud Platform - * resources synced to Data Catalog. Callers must have following Google IAM permission - - * `datacatalog.tagTemplates.getIamPolicy` to get policies on tag templates. - - * `datacatalog.entries.getIamPolicy` to get policies on entries. - - * `datacatalog.entryGroups.getIamPolicy` to get policies on entry groups. - * - * Create a request for the method "entryGroups.getIamPolicy". - * - * This request holds the parameters needed by the datacatalog server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. - * - * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @param content the {@link com.google.api.services.datacatalog.v1beta1.model.GetIamPolicyRequest} - * @return the request - */ - public GetIamPolicy getIamPolicy(java.lang.String resource, com.google.api.services.datacatalog.v1beta1.model.GetIamPolicyRequest content) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(resource, content); - initialize(result); - return result; - } - - public class GetIamPolicy extends DataCatalogRequest{@link - * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @param content the {@link com.google.api.services.datacatalog.v1beta1.model.GetIamPolicyRequest} - * @since 1.13 - */ - protected GetIamPolicy(java.lang.String resource, com.google.api.services.datacatalog.v1beta1.model.GetIamPolicyRequest content) { - super(DataCatalog.this, "POST", REST_PATH, content, com.google.api.services.datacatalog.v1beta1.model.Policy.class); - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+$"); - } - } - - @Override - public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (GetIamPolicy) super.set$Xgafv($Xgafv); - } - - @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); - } - - @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); - } - - @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); - } - - @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); - } - - @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); - } - - @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); - } - - @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); - } - - @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); - } - - @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); - } - - @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); - } - - /** - * REQUIRED: The resource for which the policy is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. - */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** REQUIRED: The resource for which the policy is being requested. See [Resource - names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this - field. - */ - public java.lang.String getResource() { - return resource; - } - - /** - * REQUIRED: The resource for which the policy is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. - */ - public GetIamPolicy setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+$"); - } - this.resource = resource; - return this; - } - - @Override - public GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) super.set(parameterName, value); - } - } - /** - * Lists entry groups. - * - * Create a request for the method "entryGroups.list". - * - * This request holds the parameters needed by the datacatalog server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. - * - * @param parent Required. The name of the location that contains the entry groups, which can be provided in URL - * format. Example: * projects/{project_id}/locations/{location} - * @return the request - */ - public List list(java.lang.String parent) throws java.io.IOException { - List result = new List(parent); - initialize(result); - return result; - } - - public class List extends DataCatalogRequest- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param parent Required. The name of the location that contains the entry groups, which can be provided in URL - * format. Example: * projects/{project_id}/locations/{location} - * @since 1.13 - */ - protected List(java.lang.String parent) { - super(DataCatalog.this, "GET", REST_PATH, null, com.google.api.services.datacatalog.v1beta1.model.GoogleCloudDatacatalogV1beta1ListEntryGroupsResponse.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } - - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } - - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } - - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } - - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } - - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } - - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } - - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } - - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } - - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } - - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The name of the location that contains the entry groups, which can be - * provided in URL format. Example: * projects/{project_id}/locations/{location} - */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** Required. The name of the location that contains the entry groups, which can be provided in URL - format. Example: * projects/{project_id}/locations/{location} - */ - public java.lang.String getParent() { - return parent; - } - - /** - * Required. The name of the location that contains the entry groups, which can be - * provided in URL format. Example: * projects/{project_id}/locations/{location} - */ - public List setParent(java.lang.String parent) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); - } - this.parent = parent; - return this; - } - - /** - * Optional. The maximum number of items to return. Default is 10. Max limit is 1000. - * Throws an invalid argument for `page_size > 1000`. - */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; - - /** Optional. The maximum number of items to return. Default is 10. Max limit is 1000. Throws an - invalid argument for `page_size > 1000`. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } - - /** - * Optional. The maximum number of items to return. Default is 10. Max limit is 1000. - * Throws an invalid argument for `page_size > 1000`. - */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } - - /** - * Optional. Token that specifies which page is requested. If empty, the first page is - * returned. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** Optional. Token that specifies which page is requested. If empty, the first page is returned. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** - * Optional. Token that specifies which page is requested. If empty, the first page is - * returned. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Updates an EntryGroup. The user should enable the Data Catalog API in the project identified by - * the `entry_group.name` parameter (see [Data Catalog Resource Project] - * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information). - * - * Create a request for the method "entryGroups.patch". - * - * This request holds the parameters needed by the datacatalog server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation. - * - * @param name Identifier. The resource name of the entry group in URL format. Example: * - * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id} Note that this - * EntryGroup and its child resources may not actually be stored in the location in this - * name. - * @param content the {@link com.google.api.services.datacatalog.v1beta1.model.GoogleCloudDatacatalogV1beta1EntryGroup} - * @return the request - */ - public Patch patch(java.lang.String name, com.google.api.services.datacatalog.v1beta1.model.GoogleCloudDatacatalogV1beta1EntryGroup content) throws java.io.IOException { - Patch result = new Patch(name, content); - initialize(result); - return result; - } - - public class Patch extends DataCatalogRequest{@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param name Identifier. The resource name of the entry group in URL format. Example: * - * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id} Note that this - * EntryGroup and its child resources may not actually be stored in the location in this - * name. - * @param content the {@link com.google.api.services.datacatalog.v1beta1.model.GoogleCloudDatacatalogV1beta1EntryGroup} - * @since 1.13 - */ - protected Patch(java.lang.String name, com.google.api.services.datacatalog.v1beta1.model.GoogleCloudDatacatalogV1beta1EntryGroup content) { - super(DataCatalog.this, "PATCH", REST_PATH, content, com.google.api.services.datacatalog.v1beta1.model.GoogleCloudDatacatalogV1beta1EntryGroup.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+$"); - } - } - - @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); - } - - @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); - } - - @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); - } - - @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); - } - - @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); - } - - @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); - } - - @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); - } - - @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); - } - - @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); - } - - @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); - } - - @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); - } - - /** - * Identifier. The resource name of the entry group in URL format. Example: * - * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id} Note that this - * EntryGroup and its child resources may not actually be stored in the location in this - * name. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Identifier. The resource name of the entry group in URL format. Example: * - projects/{project_id}/locations/{location}/entryGroups/{entry_group_id} Note that this EntryGroup - and its child resources may not actually be stored in the location in this name. - */ - public java.lang.String getName() { - return name; - } - - /** - * Identifier. The resource name of the entry group in URL format. Example: * - * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id} Note that this - * EntryGroup and its child resources may not actually be stored in the location in this - * name. - */ - public Patch setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+$"); - } - this.name = name; - return this; - } - - /** - * Names of fields whose values to overwrite on an entry group. If this parameter is - * absent or empty, all modifiable fields are overwritten. If such fields are non-required - * and omitted in the request body, their values are emptied. - */ - @com.google.api.client.util.Key - private String updateMask; - - /** Names of fields whose values to overwrite on an entry group. If this parameter is absent or empty, - all modifiable fields are overwritten. If such fields are non-required and omitted in the request - body, their values are emptied. - */ - public String getUpdateMask() { - return updateMask; - } - - /** - * Names of fields whose values to overwrite on an entry group. If this parameter is - * absent or empty, all modifiable fields are overwritten. If such fields are non-required - * and omitted in the request body, their values are emptied. - */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; - } - - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - /** - * Sets the access control policy for a resource. Replaces any existing policy. Supported resources - * are: - Tag templates. - Entries. - Entry groups. Note, this method cannot be used to manage - * policies for BigQuery, Pub/Sub and any external Google Cloud Platform resources synced to Data - * Catalog. Callers must have following Google IAM permission - - * `datacatalog.tagTemplates.setIamPolicy` to set policies on tag templates. - - * `datacatalog.entries.setIamPolicy` to set policies on entries. - - * `datacatalog.entryGroups.setIamPolicy` to set policies on entry groups. - * - * Create a request for the method "entryGroups.setIamPolicy". - * - * This request holds the parameters needed by the datacatalog server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. - * - * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @param content the {@link com.google.api.services.datacatalog.v1beta1.model.SetIamPolicyRequest} - * @return the request - */ - public SetIamPolicy setIamPolicy(java.lang.String resource, com.google.api.services.datacatalog.v1beta1.model.SetIamPolicyRequest content) throws java.io.IOException { - SetIamPolicy result = new SetIamPolicy(resource, content); - initialize(result); - return result; - } - - public class SetIamPolicy extends DataCatalogRequest{@link - * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @param content the {@link com.google.api.services.datacatalog.v1beta1.model.SetIamPolicyRequest} - * @since 1.13 - */ - protected SetIamPolicy(java.lang.String resource, com.google.api.services.datacatalog.v1beta1.model.SetIamPolicyRequest content) { - super(DataCatalog.this, "POST", REST_PATH, content, com.google.api.services.datacatalog.v1beta1.model.Policy.class); - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+$"); - } - } - - @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); - } - - @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); - } - - @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); - } - - @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); - } - - @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); - } - - @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); - } - - @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); - } - - @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); - } - - @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); - } - - @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); - } - - /** - * REQUIRED: The resource for which the policy is being specified. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. - */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** REQUIRED: The resource for which the policy is being specified. See [Resource - names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this - field. - */ - public java.lang.String getResource() { - return resource; - } - - /** - * REQUIRED: The resource for which the policy is being specified. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. - */ - public SetIamPolicy setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+$"); - } - this.resource = resource; - return this; - } - - @Override - public SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); - } - } - /** - * Returns the caller's permissions on a resource. If the resource does not exist, an empty set of - * permissions is returned (We don't return a `NOT_FOUND` error). Supported resources are: - Tag - * templates. - Entries. - Entry groups. Note, this method cannot be used to manage policies for - * BigQuery, Pub/Sub and any external Google Cloud Platform resources synced to Data Catalog. A - * caller is not required to have Google IAM permission to make this request. - * - * Create a request for the method "entryGroups.testIamPermissions". - * - * This request holds the parameters needed by the datacatalog server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. - * - * @param resource REQUIRED: The resource for which the policy detail is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @param content the {@link com.google.api.services.datacatalog.v1beta1.model.TestIamPermissionsRequest} - * @return the request - */ - public TestIamPermissions testIamPermissions(java.lang.String resource, com.google.api.services.datacatalog.v1beta1.model.TestIamPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(resource, content); - initialize(result); - return result; - } - - public class TestIamPermissions extends DataCatalogRequest{@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.
- * - * @param resource REQUIRED: The resource for which the policy detail is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @param content the {@link com.google.api.services.datacatalog.v1beta1.model.TestIamPermissionsRequest} - * @since 1.13 - */ - protected TestIamPermissions(java.lang.String resource, com.google.api.services.datacatalog.v1beta1.model.TestIamPermissionsRequest content) { - super(DataCatalog.this, "POST", REST_PATH, content, com.google.api.services.datacatalog.v1beta1.model.TestIamPermissionsResponse.class); - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+$"); - } - } - - @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); - } - - @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); - } - - @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); - } - - @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); - } - - @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); - } - - @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); - } - - @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); - } - - @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); - } - - @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); - } - - @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); - } - - @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); - } - - /** - * REQUIRED: The resource for which the policy detail is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. - */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** REQUIRED: The resource for which the policy detail is being requested. See [Resource - names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this - field. - */ - public java.lang.String getResource() { - return resource; - } - - /** - * REQUIRED: The resource for which the policy detail is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. - */ - public TestIamPermissions setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+$"); - } - this.resource = resource; - return this; - } - - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } - - /** - * An accessor for creating requests from the Entries collection. - * - *The typical use is:
- *
- * {@code DataCatalog datacatalog = new DataCatalog(...);}
- * {@code DataCatalog.Entries.List request = datacatalog.entries().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public Entries entries() {
- return new Entries();
- }
-
- /**
- * The "entries" collection of methods.
- */
- public class Entries {
-
- /**
- * Creates an entry. Only entries of 'FILESET' type or user-specified type can be created. Users
- * should enable the Data Catalog API in the project identified by the `parent` parameter (see [Data
- * Catalog Resource Project] (https://cloud.google.com/data-catalog/docs/concepts/resource-project)
- * for more information). A maximum of 100,000 entries may be created per entry group.
- *
- * Create a request for the method "entries.create".
- *
- * This request holds the parameters needed by the datacatalog server. After setting any optional
- * parameters, call the {@link Create#execute()} method to invoke the remote operation.
- *
- * @param parent Required. The name of the entry group this entry is in. Example: *
- * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id} Note that this
- * Entry and its child resources may not actually be stored in the location in this name.
- * @param content the {@link com.google.api.services.datacatalog.v1beta1.model.GoogleCloudDatacatalogV1beta1Entry}
- * @return the request
- */
- public Create create(java.lang.String parent, com.google.api.services.datacatalog.v1beta1.model.GoogleCloudDatacatalogV1beta1Entry content) throws java.io.IOException {
- Create result = new Create(parent, content);
- initialize(result);
- return result;
- }
-
- public class Create extends DataCatalogRequest{@link - * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param parent Required. The name of the entry group this entry is in. Example: * - * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id} Note that this - * Entry and its child resources may not actually be stored in the location in this name. - * @param content the {@link com.google.api.services.datacatalog.v1beta1.model.GoogleCloudDatacatalogV1beta1Entry} - * @since 1.13 - */ - protected Create(java.lang.String parent, com.google.api.services.datacatalog.v1beta1.model.GoogleCloudDatacatalogV1beta1Entry content) { - super(DataCatalog.this, "POST", REST_PATH, content, com.google.api.services.datacatalog.v1beta1.model.GoogleCloudDatacatalogV1beta1Entry.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+$"); - } - } - - @Override - public Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); - } - - @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); - } - - @Override - public Create setAlt(java.lang.String alt) { - return (Create) super.setAlt(alt); - } - - @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); - } - - @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); - } - - @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); - } - - @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); - } - - @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); - } - - @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); - } - - @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); - } - - @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The name of the entry group this entry is in. Example: * - * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id} Note that - * this Entry and its child resources may not actually be stored in the location in this - * name. - */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** Required. The name of the entry group this entry is in. Example: * - projects/{project_id}/locations/{location}/entryGroups/{entry_group_id} Note that this Entry and - its child resources may not actually be stored in the location in this name. - */ - public java.lang.String getParent() { - return parent; - } - - /** - * Required. The name of the entry group this entry is in. Example: * - * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id} Note that - * this Entry and its child resources may not actually be stored in the location in this - * name. - */ - public Create setParent(java.lang.String parent) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+$"); - } - this.parent = parent; - return this; - } - - /** Required. The id of the entry to create. */ - @com.google.api.client.util.Key - private java.lang.String entryId; - - /** Required. The id of the entry to create. - */ - public java.lang.String getEntryId() { - return entryId; - } - - /** Required. The id of the entry to create. */ - public Create setEntryId(java.lang.String entryId) { - this.entryId = entryId; - return this; - } - - @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); - } - } - /** - * Deletes an existing entry. Only entries created through CreateEntry method can be deleted. Users - * should enable the Data Catalog API in the project identified by the `name` parameter (see [Data - * Catalog Resource Project] (https://cloud.google.com/data-catalog/docs/concepts/resource-project) - * for more information). - * - * Create a request for the method "entries.delete". - * - * This request holds the parameters needed by the datacatalog server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param name Required. The name of the entry. Example: * - * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id} - * @return the request - */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); - initialize(result); - return result; - } - - public class Delete extends DataCatalogRequest{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param name Required. The name of the entry. Example: * - * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id} - * @since 1.13 - */ - protected Delete(java.lang.String name) { - super(DataCatalog.this, "DELETE", REST_PATH, null, com.google.api.services.datacatalog.v1beta1.model.Empty.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+/entries/[^/]+$"); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The name of the entry. Example: * projects/{project_id}/locations/{location - * }/entryGroups/{entry_group_id}/entries/{entry_id} - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The name of the entry. Example: * - projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id} - */ - public java.lang.String getName() { - return name; - } - - /** - * Required. The name of the entry. Example: * projects/{project_id}/locations/{location - * }/entryGroups/{entry_group_id}/entries/{entry_id} - */ - public Delete setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+/entries/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Gets an entry. - * - * Create a request for the method "entries.get". - * - * This request holds the parameters needed by the datacatalog server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. - * - * @param name Required. The name of the entry. Example: * - * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id} - * @return the request - */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); - initialize(result); - return result; - } - - public class Get extends DataCatalogRequest- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param name Required. The name of the entry. Example: * - * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id} - * @since 1.13 - */ - protected Get(java.lang.String name) { - super(DataCatalog.this, "GET", REST_PATH, null, com.google.api.services.datacatalog.v1beta1.model.GoogleCloudDatacatalogV1beta1Entry.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+/entries/[^/]+$"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } - - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } - - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } - - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } - - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } - - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } - - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } - - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } - - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } - - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } - - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The name of the entry. Example: * projects/{project_id}/locations/{location - * }/entryGroups/{entry_group_id}/entries/{entry_id} - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The name of the entry. Example: * - projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id} - */ - public java.lang.String getName() { - return name; - } - - /** - * Required. The name of the entry. Example: * projects/{project_id}/locations/{location - * }/entryGroups/{entry_group_id}/entries/{entry_id} - */ - public Get setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+/entries/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Gets the access control policy for a resource. A `NOT_FOUND` error is returned if the resource - * does not exist. An empty policy is returned if the resource exists but does not have a policy set - * on it. Supported resources are: - Tag templates. - Entries. - Entry groups. Note, this method - * cannot be used to manage policies for BigQuery, Pub/Sub and any external Google Cloud Platform - * resources synced to Data Catalog. Callers must have following Google IAM permission - - * `datacatalog.tagTemplates.getIamPolicy` to get policies on tag templates. - - * `datacatalog.entries.getIamPolicy` to get policies on entries. - - * `datacatalog.entryGroups.getIamPolicy` to get policies on entry groups. - * - * Create a request for the method "entries.getIamPolicy". - * - * This request holds the parameters needed by the datacatalog server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. - * - * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @param content the {@link com.google.api.services.datacatalog.v1beta1.model.GetIamPolicyRequest} - * @return the request - */ - public GetIamPolicy getIamPolicy(java.lang.String resource, com.google.api.services.datacatalog.v1beta1.model.GetIamPolicyRequest content) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(resource, content); - initialize(result); - return result; - } - - public class GetIamPolicy extends DataCatalogRequest{@link - * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @param content the {@link com.google.api.services.datacatalog.v1beta1.model.GetIamPolicyRequest} - * @since 1.13 - */ - protected GetIamPolicy(java.lang.String resource, com.google.api.services.datacatalog.v1beta1.model.GetIamPolicyRequest content) { - super(DataCatalog.this, "POST", REST_PATH, content, com.google.api.services.datacatalog.v1beta1.model.Policy.class); - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+/entries/[^/]+$"); - } - } - - @Override - public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (GetIamPolicy) super.set$Xgafv($Xgafv); - } - - @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); - } - - @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); - } - - @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); - } - - @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); - } - - @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); - } - - @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); - } - - @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); - } - - @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); - } - - @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); - } - - @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); - } - - /** - * REQUIRED: The resource for which the policy is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. - */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** REQUIRED: The resource for which the policy is being requested. See [Resource - names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this - field. - */ - public java.lang.String getResource() { - return resource; - } - - /** - * REQUIRED: The resource for which the policy is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. - */ - public GetIamPolicy setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+/entries/[^/]+$"); - } - this.resource = resource; - return this; - } - - @Override - public GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) super.set(parameterName, value); - } - } - /** - * Lists entries. - * - * Create a request for the method "entries.list". - * - * This request holds the parameters needed by the datacatalog server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. - * - * @param parent Required. The name of the entry group that contains the entries, which can be provided in URL - * format. Example: * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id} - * @return the request - */ - public List list(java.lang.String parent) throws java.io.IOException { - List result = new List(parent); - initialize(result); - return result; - } - - public class List extends DataCatalogRequest- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param parent Required. The name of the entry group that contains the entries, which can be provided in URL - * format. Example: * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id} - * @since 1.13 - */ - protected List(java.lang.String parent) { - super(DataCatalog.this, "GET", REST_PATH, null, com.google.api.services.datacatalog.v1beta1.model.GoogleCloudDatacatalogV1beta1ListEntriesResponse.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+$"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } - - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } - - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } - - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } - - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } - - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } - - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } - - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } - - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } - - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } - - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The name of the entry group that contains the entries, which can be - * provided in URL format. Example: * - * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id} - */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** Required. The name of the entry group that contains the entries, which can be provided in URL - format. Example: * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id} - */ - public java.lang.String getParent() { - return parent; - } - - /** - * Required. The name of the entry group that contains the entries, which can be - * provided in URL format. Example: * - * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id} - */ - public List setParent(java.lang.String parent) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+$"); - } - this.parent = parent; - return this; - } - - /** - * The maximum number of items to return. Default is 10. Max limit is 1000. Throws an - * invalid argument for `page_size > 1000`. - */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; - - /** The maximum number of items to return. Default is 10. Max limit is 1000. Throws an invalid argument - for `page_size > 1000`. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } - - /** - * The maximum number of items to return. Default is 10. Max limit is 1000. Throws an - * invalid argument for `page_size > 1000`. - */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } - - /** - * Token that specifies which page is requested. If empty, the first page is returned. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** Token that specifies which page is requested. If empty, the first page is returned. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** - * Token that specifies which page is requested. If empty, the first page is returned. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - /** - * The fields to return for each Entry. If not set or empty, all fields are returned. - * For example, setting read_mask to contain only one path "name" will cause ListEntries - * to return a list of Entries with only "name" field. - */ - @com.google.api.client.util.Key - private String readMask; - - /** The fields to return for each Entry. If not set or empty, all fields are returned. For example, - setting read_mask to contain only one path "name" will cause ListEntries to return a list of - Entries with only "name" field. - */ - public String getReadMask() { - return readMask; - } - - /** - * The fields to return for each Entry. If not set or empty, all fields are returned. - * For example, setting read_mask to contain only one path "name" will cause ListEntries - * to return a list of Entries with only "name" field. - */ - public List setReadMask(String readMask) { - this.readMask = readMask; - return this; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Updates an existing entry. Users should enable the Data Catalog API in the project identified by - * the `entry.name` parameter (see [Data Catalog Resource Project] (https://cloud.google.com/data- - * catalog/docs/concepts/resource-project) for more information). - * - * Create a request for the method "entries.patch". - * - * This request holds the parameters needed by the datacatalog server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation. - * - * @param name Output only. Identifier. The Data Catalog resource name of the entry in URL format. Example: * - * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id} - * Note that this Entry and its child resources may not actually be stored in the location in - * this name. - * @param content the {@link com.google.api.services.datacatalog.v1beta1.model.GoogleCloudDatacatalogV1beta1Entry} - * @return the request - */ - public Patch patch(java.lang.String name, com.google.api.services.datacatalog.v1beta1.model.GoogleCloudDatacatalogV1beta1Entry content) throws java.io.IOException { - Patch result = new Patch(name, content); - initialize(result); - return result; - } - - public class Patch extends DataCatalogRequest{@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param name Output only. Identifier. The Data Catalog resource name of the entry in URL format. Example: * - * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id} - * Note that this Entry and its child resources may not actually be stored in the location in - * this name. - * @param content the {@link com.google.api.services.datacatalog.v1beta1.model.GoogleCloudDatacatalogV1beta1Entry} - * @since 1.13 - */ - protected Patch(java.lang.String name, com.google.api.services.datacatalog.v1beta1.model.GoogleCloudDatacatalogV1beta1Entry content) { - super(DataCatalog.this, "PATCH", REST_PATH, content, com.google.api.services.datacatalog.v1beta1.model.GoogleCloudDatacatalogV1beta1Entry.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+/entries/[^/]+$"); - } - } - - @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); - } - - @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); - } - - @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); - } - - @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); - } - - @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); - } - - @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); - } - - @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); - } - - @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); - } - - @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); - } - - @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); - } - - @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); - } - - /** - * Output only. Identifier. The Data Catalog resource name of the entry in URL format. - * Example: * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/en - * tries/{entry_id} Note that this Entry and its child resources may not actually be - * stored in the location in this name. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Output only. Identifier. The Data Catalog resource name of the entry in URL format. Example: * - projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id} Note - that this Entry and its child resources may not actually be stored in the location in this name. - */ - public java.lang.String getName() { - return name; - } - - /** - * Output only. Identifier. The Data Catalog resource name of the entry in URL format. - * Example: * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/en - * tries/{entry_id} Note that this Entry and its child resources may not actually be - * stored in the location in this name. - */ - public Patch setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+/entries/[^/]+$"); - } - this.name = name; - return this; - } - - /** - * Names of fields whose values to overwrite on an entry. If this parameter is absent or - * empty, all modifiable fields are overwritten. If such fields are non-required and - * omitted in the request body, their values are emptied. The following fields are - * modifiable: * For entries with type `DATA_STREAM`: * `schema` * For entries with type - * `FILESET`: * `schema` * `display_name` * `description` * `gcs_fileset_spec` * - * `gcs_fileset_spec.file_patterns` * For entries with `user_specified_type`: * `schema` - * * `display_name` * `description` * `user_specified_type` * `user_specified_system` * - * `linked_resource` * `source_system_timestamps` - */ - @com.google.api.client.util.Key - private String updateMask; - - /** Names of fields whose values to overwrite on an entry. If this parameter is absent or empty, all - modifiable fields are overwritten. If such fields are non-required and omitted in the request body, - their values are emptied. The following fields are modifiable: * For entries with type - `DATA_STREAM`: * `schema` * For entries with type `FILESET`: * `schema` * `display_name` * - `description` * `gcs_fileset_spec` * `gcs_fileset_spec.file_patterns` * For entries with - `user_specified_type`: * `schema` * `display_name` * `description` * `user_specified_type` * - `user_specified_system` * `linked_resource` * `source_system_timestamps` - */ - public String getUpdateMask() { - return updateMask; - } - - /** - * Names of fields whose values to overwrite on an entry. If this parameter is absent or - * empty, all modifiable fields are overwritten. If such fields are non-required and - * omitted in the request body, their values are emptied. The following fields are - * modifiable: * For entries with type `DATA_STREAM`: * `schema` * For entries with type - * `FILESET`: * `schema` * `display_name` * `description` * `gcs_fileset_spec` * - * `gcs_fileset_spec.file_patterns` * For entries with `user_specified_type`: * `schema` - * * `display_name` * `description` * `user_specified_type` * `user_specified_system` * - * `linked_resource` * `source_system_timestamps` - */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; - } - - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - /** - * Returns the caller's permissions on a resource. If the resource does not exist, an empty set of - * permissions is returned (We don't return a `NOT_FOUND` error). Supported resources are: - Tag - * templates. - Entries. - Entry groups. Note, this method cannot be used to manage policies for - * BigQuery, Pub/Sub and any external Google Cloud Platform resources synced to Data Catalog. A - * caller is not required to have Google IAM permission to make this request. - * - * Create a request for the method "entries.testIamPermissions". - * - * This request holds the parameters needed by the datacatalog server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. - * - * @param resource REQUIRED: The resource for which the policy detail is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @param content the {@link com.google.api.services.datacatalog.v1beta1.model.TestIamPermissionsRequest} - * @return the request - */ - public TestIamPermissions testIamPermissions(java.lang.String resource, com.google.api.services.datacatalog.v1beta1.model.TestIamPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(resource, content); - initialize(result); - return result; - } - - public class TestIamPermissions extends DataCatalogRequest{@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.
- * - * @param resource REQUIRED: The resource for which the policy detail is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @param content the {@link com.google.api.services.datacatalog.v1beta1.model.TestIamPermissionsRequest} - * @since 1.13 - */ - protected TestIamPermissions(java.lang.String resource, com.google.api.services.datacatalog.v1beta1.model.TestIamPermissionsRequest content) { - super(DataCatalog.this, "POST", REST_PATH, content, com.google.api.services.datacatalog.v1beta1.model.TestIamPermissionsResponse.class); - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+/entries/[^/]+$"); - } - } - - @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); - } - - @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); - } - - @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); - } - - @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); - } - - @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); - } - - @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); - } - - @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); - } - - @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); - } - - @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); - } - - @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); - } - - @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); - } - - /** - * REQUIRED: The resource for which the policy detail is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. - */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** REQUIRED: The resource for which the policy detail is being requested. See [Resource - names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this - field. - */ - public java.lang.String getResource() { - return resource; - } - - /** - * REQUIRED: The resource for which the policy detail is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. - */ - public TestIamPermissions setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+/entries/[^/]+$"); - } - this.resource = resource; - return this; - } - - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } - - /** - * An accessor for creating requests from the Tags collection. - * - *The typical use is:
- *
- * {@code DataCatalog datacatalog = new DataCatalog(...);}
- * {@code DataCatalog.Tags.List request = datacatalog.tags().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public Tags tags() {
- return new Tags();
- }
-
- /**
- * The "tags" collection of methods.
- */
- public class Tags {
-
- /**
- * Creates a tag on an Entry. Note: The project identified by the `parent` parameter for the
- * [tag](https://cloud.google.com/data-
- * catalog/docs/reference/rest/v1beta1/projects.locations.entryGroups.entries.tags/create#path-
- * parameters) and the [tag template](https://cloud.google.com/data-
- * catalog/docs/reference/rest/v1beta1/projects.locations.tagTemplates/create#path-parameters) used
- * to create the tag must be from the same organization.
- *
- * Create a request for the method "tags.create".
- *
- * This request holds the parameters needed by the datacatalog server. After setting any optional
- * parameters, call the {@link Create#execute()} method to invoke the remote operation.
- *
- * @param parent Required. The name of the resource to attach this tag to. Tags can be attached to Entries. Example:
- * *
- * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
- * Note that this Tag and its child resources may not actually be stored in the location in
- * this name.
- * @param content the {@link com.google.api.services.datacatalog.v1beta1.model.GoogleCloudDatacatalogV1beta1Tag}
- * @return the request
- */
- public Create create(java.lang.String parent, com.google.api.services.datacatalog.v1beta1.model.GoogleCloudDatacatalogV1beta1Tag content) throws java.io.IOException {
- Create result = new Create(parent, content);
- initialize(result);
- return result;
- }
-
- public class Create extends DataCatalogRequest{@link - * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param parent Required. The name of the resource to attach this tag to. Tags can be attached to Entries. Example: - * * - * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id} - * Note that this Tag and its child resources may not actually be stored in the location in - * this name. - * @param content the {@link com.google.api.services.datacatalog.v1beta1.model.GoogleCloudDatacatalogV1beta1Tag} - * @since 1.13 - */ - protected Create(java.lang.String parent, com.google.api.services.datacatalog.v1beta1.model.GoogleCloudDatacatalogV1beta1Tag content) { - super(DataCatalog.this, "POST", REST_PATH, content, com.google.api.services.datacatalog.v1beta1.model.GoogleCloudDatacatalogV1beta1Tag.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+/entries/[^/]+$"); - } - } - - @Override - public Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); - } - - @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); - } - - @Override - public Create setAlt(java.lang.String alt) { - return (Create) super.setAlt(alt); - } - - @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); - } - - @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); - } - - @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); - } - - @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); - } - - @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); - } - - @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); - } - - @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); - } - - @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The name of the resource to attach this tag to. Tags can be attached to - * Entries. Example: * projects/{project_id}/locations/{location}/entryGroups/{entry_g - * roup_id}/entries/{entry_id} Note that this Tag and its child resources may not - * actually be stored in the location in this name. - */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** Required. The name of the resource to attach this tag to. Tags can be attached to Entries. Example: - * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id} Note - that this Tag and its child resources may not actually be stored in the location in this name. - */ - public java.lang.String getParent() { - return parent; - } - - /** - * Required. The name of the resource to attach this tag to. Tags can be attached to - * Entries. Example: * projects/{project_id}/locations/{location}/entryGroups/{entry_g - * roup_id}/entries/{entry_id} Note that this Tag and its child resources may not - * actually be stored in the location in this name. - */ - public Create setParent(java.lang.String parent) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+/entries/[^/]+$"); - } - this.parent = parent; - return this; - } - - @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); - } - } - /** - * Deletes a tag. - * - * Create a request for the method "tags.delete". - * - * This request holds the parameters needed by the datacatalog server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param name Required. The name of the tag to delete. Example: * projects/{project_id}/locations/{location}/entry - * Groups/{entry_group_id}/entries/{entry_id}/tags/{tag_id} - * @return the request - */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); - initialize(result); - return result; - } - - public class Delete extends DataCatalogRequest{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param name Required. The name of the tag to delete. Example: * projects/{project_id}/locations/{location}/entry - * Groups/{entry_group_id}/entries/{entry_id}/tags/{tag_id} - * @since 1.13 - */ - protected Delete(java.lang.String name) { - super(DataCatalog.this, "DELETE", REST_PATH, null, com.google.api.services.datacatalog.v1beta1.model.Empty.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+/entries/[^/]+/tags/[^/]+$"); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The name of the tag to delete. Example: * projects/{project_id}/locations - * /{location}/entryGroups/{entry_group_id}/entries/{entry_id}/tags/{tag_id} - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The name of the tag to delete. Example: * projects/{project_id}/locations/{location}/entr - yGroups/{entry_group_id}/entries/{entry_id}/tags/{tag_id} - */ - public java.lang.String getName() { - return name; - } - - /** - * Required. The name of the tag to delete. Example: * projects/{project_id}/locations - * /{location}/entryGroups/{entry_group_id}/entries/{entry_id}/tags/{tag_id} - */ - public Delete setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+/entries/[^/]+/tags/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Lists tags assigned to an Entry. The columns in the response are lowercased. - * - * Create a request for the method "tags.list". - * - * This request holds the parameters needed by the datacatalog server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. - * - * @param parent Required. The name of the Data Catalog resource to list the tags of. The resource could be an Entry - * or an EntryGroup. Examples: * - * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id} * - * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id} - * @return the request - */ - public List list(java.lang.String parent) throws java.io.IOException { - List result = new List(parent); - initialize(result); - return result; - } - - public class List extends DataCatalogRequest- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param parent Required. The name of the Data Catalog resource to list the tags of. The resource could be an Entry - * or an EntryGroup. Examples: * - * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id} * - * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id} - * @since 1.13 - */ - protected List(java.lang.String parent) { - super(DataCatalog.this, "GET", REST_PATH, null, com.google.api.services.datacatalog.v1beta1.model.GoogleCloudDatacatalogV1beta1ListTagsResponse.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+/entries/[^/]+$"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } - - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } - - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } - - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } - - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } - - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } - - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } - - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } - - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } - - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } - - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The name of the Data Catalog resource to list the tags of. The resource - * could be an Entry or an EntryGroup. Examples: * - * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id} * projects/ - * {project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id} - */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** Required. The name of the Data Catalog resource to list the tags of. The resource could be an Entry - or an EntryGroup. Examples: * - projects/{project_id}/locations/{location}/entryGroups/{entry_group_id} * - projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id} - */ - public java.lang.String getParent() { - return parent; - } - - /** - * Required. The name of the Data Catalog resource to list the tags of. The resource - * could be an Entry or an EntryGroup. Examples: * - * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id} * projects/ - * {project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id} - */ - public List setParent(java.lang.String parent) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+/entries/[^/]+$"); - } - this.parent = parent; - return this; - } - - /** The maximum number of tags to return. Default is 10. Max limit is 1000. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; - - /** The maximum number of tags to return. Default is 10. Max limit is 1000. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } - - /** The maximum number of tags to return. Default is 10. Max limit is 1000. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } - - /** - * Token that specifies which page is requested. If empty, the first page is returned. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** Token that specifies which page is requested. If empty, the first page is returned. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** - * Token that specifies which page is requested. If empty, the first page is returned. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Updates an existing tag. - * - * Create a request for the method "tags.patch". - * - * This request holds the parameters needed by the datacatalog server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation. - * - * @param name Identifier. The resource name of the tag in URL format. Example: * projects/{project_id}/locations/{ - * location}/entrygroups/{entry_group_id}/entries/{entry_id}/tags/{tag_id} where `tag_id` is - * a system-generated identifier. Note that this Tag may not actually be stored in the - * location in this name. - * @param content the {@link com.google.api.services.datacatalog.v1beta1.model.GoogleCloudDatacatalogV1beta1Tag} - * @return the request - */ - public Patch patch(java.lang.String name, com.google.api.services.datacatalog.v1beta1.model.GoogleCloudDatacatalogV1beta1Tag content) throws java.io.IOException { - Patch result = new Patch(name, content); - initialize(result); - return result; - } - - public class Patch extends DataCatalogRequest{@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param name Identifier. The resource name of the tag in URL format. Example: * projects/{project_id}/locations/{ - * location}/entrygroups/{entry_group_id}/entries/{entry_id}/tags/{tag_id} where `tag_id` is - * a system-generated identifier. Note that this Tag may not actually be stored in the - * location in this name. - * @param content the {@link com.google.api.services.datacatalog.v1beta1.model.GoogleCloudDatacatalogV1beta1Tag} - * @since 1.13 - */ - protected Patch(java.lang.String name, com.google.api.services.datacatalog.v1beta1.model.GoogleCloudDatacatalogV1beta1Tag content) { - super(DataCatalog.this, "PATCH", REST_PATH, content, com.google.api.services.datacatalog.v1beta1.model.GoogleCloudDatacatalogV1beta1Tag.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+/entries/[^/]+/tags/[^/]+$"); - } - } - - @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); - } - - @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); - } - - @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); - } - - @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); - } - - @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); - } - - @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); - } - - @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); - } - - @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); - } - - @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); - } - - @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); - } - - @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); - } - - /** - * Identifier. The resource name of the tag in URL format. Example: * projects/{projec - * t_id}/locations/{location}/entrygroups/{entry_group_id}/entries/{entry_id}/tags/{ta - * g_id} where `tag_id` is a system-generated identifier. Note that this Tag may not - * actually be stored in the location in this name. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Identifier. The resource name of the tag in URL format. Example: * projects/{project_id}/locations/ - {location}/entrygroups/{entry_group_id}/entries/{entry_id}/tags/{tag_id} where `tag_id` is a - system-generated identifier. Note that this Tag may not actually be stored in the location in this - name. - */ - public java.lang.String getName() { - return name; - } - - /** - * Identifier. The resource name of the tag in URL format. Example: * projects/{projec - * t_id}/locations/{location}/entrygroups/{entry_group_id}/entries/{entry_id}/tags/{ta - * g_id} where `tag_id` is a system-generated identifier. Note that this Tag may not - * actually be stored in the location in this name. - */ - public Patch setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+/entries/[^/]+/tags/[^/]+$"); - } - this.name = name; - return this; - } - - /** - * Note: Currently, this parameter can only take `"fields"` as value. Names of fields - * whose values to overwrite on a tag. Currently, a tag has the only modifiable field - * with the name `fields`. In general, if this parameter is absent or empty, all - * modifiable fields are overwritten. If such fields are non-required and omitted in - * the request body, their values are emptied. - */ - @com.google.api.client.util.Key - private String updateMask; - - /** Note: Currently, this parameter can only take `"fields"` as value. Names of fields whose values to - overwrite on a tag. Currently, a tag has the only modifiable field with the name `fields`. In - general, if this parameter is absent or empty, all modifiable fields are overwritten. If such - fields are non-required and omitted in the request body, their values are emptied. - */ - public String getUpdateMask() { - return updateMask; - } - - /** - * Note: Currently, this parameter can only take `"fields"` as value. Names of fields - * whose values to overwrite on a tag. Currently, a tag has the only modifiable field - * with the name `fields`. In general, if this parameter is absent or empty, all - * modifiable fields are overwritten. If such fields are non-required and omitted in - * the request body, their values are emptied. - */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; - } - - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - - } - } - /** - * An accessor for creating requests from the Tags collection. - * - *The typical use is:
- *
- * {@code DataCatalog datacatalog = new DataCatalog(...);}
- * {@code DataCatalog.Tags.List request = datacatalog.tags().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public Tags tags() {
- return new Tags();
- }
-
- /**
- * The "tags" collection of methods.
- */
- public class Tags {
-
- /**
- * Creates a tag on an Entry. Note: The project identified by the `parent` parameter for the
- * [tag](https://cloud.google.com/data-
- * catalog/docs/reference/rest/v1beta1/projects.locations.entryGroups.entries.tags/create#path-
- * parameters) and the [tag template](https://cloud.google.com/data-
- * catalog/docs/reference/rest/v1beta1/projects.locations.tagTemplates/create#path-parameters) used
- * to create the tag must be from the same organization.
- *
- * Create a request for the method "tags.create".
- *
- * This request holds the parameters needed by the datacatalog server. After setting any optional
- * parameters, call the {@link Create#execute()} method to invoke the remote operation.
- *
- * @param parent Required. The name of the resource to attach this tag to. Tags can be attached to Entries. Example:
- * *
- * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
- * Note that this Tag and its child resources may not actually be stored in the location in
- * this name.
- * @param content the {@link com.google.api.services.datacatalog.v1beta1.model.GoogleCloudDatacatalogV1beta1Tag}
- * @return the request
- */
- public Create create(java.lang.String parent, com.google.api.services.datacatalog.v1beta1.model.GoogleCloudDatacatalogV1beta1Tag content) throws java.io.IOException {
- Create result = new Create(parent, content);
- initialize(result);
- return result;
- }
-
- public class Create extends DataCatalogRequest{@link - * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param parent Required. The name of the resource to attach this tag to. Tags can be attached to Entries. Example: - * * - * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id} - * Note that this Tag and its child resources may not actually be stored in the location in - * this name. - * @param content the {@link com.google.api.services.datacatalog.v1beta1.model.GoogleCloudDatacatalogV1beta1Tag} - * @since 1.13 - */ - protected Create(java.lang.String parent, com.google.api.services.datacatalog.v1beta1.model.GoogleCloudDatacatalogV1beta1Tag content) { - super(DataCatalog.this, "POST", REST_PATH, content, com.google.api.services.datacatalog.v1beta1.model.GoogleCloudDatacatalogV1beta1Tag.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+$"); - } - } - - @Override - public Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); - } - - @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); - } - - @Override - public Create setAlt(java.lang.String alt) { - return (Create) super.setAlt(alt); - } - - @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); - } - - @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); - } - - @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); - } - - @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); - } - - @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); - } - - @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); - } - - @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); - } - - @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The name of the resource to attach this tag to. Tags can be attached to - * Entries. Example: * projects/{project_id}/locations/{location}/entryGroups/{entry_gro - * up_id}/entries/{entry_id} Note that this Tag and its child resources may not actually - * be stored in the location in this name. - */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** Required. The name of the resource to attach this tag to. Tags can be attached to Entries. Example: - * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id} Note - that this Tag and its child resources may not actually be stored in the location in this name. - */ - public java.lang.String getParent() { - return parent; - } - - /** - * Required. The name of the resource to attach this tag to. Tags can be attached to - * Entries. Example: * projects/{project_id}/locations/{location}/entryGroups/{entry_gro - * up_id}/entries/{entry_id} Note that this Tag and its child resources may not actually - * be stored in the location in this name. - */ - public Create setParent(java.lang.String parent) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+$"); - } - this.parent = parent; - return this; - } - - @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); - } - } - /** - * Deletes a tag. - * - * Create a request for the method "tags.delete". - * - * This request holds the parameters needed by the datacatalog server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param name Required. The name of the tag to delete. Example: * projects/{project_id}/locations/{location}/entry - * Groups/{entry_group_id}/entries/{entry_id}/tags/{tag_id} - * @return the request - */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); - initialize(result); - return result; - } - - public class Delete extends DataCatalogRequest{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param name Required. The name of the tag to delete. Example: * projects/{project_id}/locations/{location}/entry - * Groups/{entry_group_id}/entries/{entry_id}/tags/{tag_id} - * @since 1.13 - */ - protected Delete(java.lang.String name) { - super(DataCatalog.this, "DELETE", REST_PATH, null, com.google.api.services.datacatalog.v1beta1.model.Empty.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+/tags/[^/]+$"); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The name of the tag to delete. Example: * projects/{project_id}/locations/{ - * location}/entryGroups/{entry_group_id}/entries/{entry_id}/tags/{tag_id} - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The name of the tag to delete. Example: * projects/{project_id}/locations/{location}/entr - yGroups/{entry_group_id}/entries/{entry_id}/tags/{tag_id} - */ - public java.lang.String getName() { - return name; - } - - /** - * Required. The name of the tag to delete. Example: * projects/{project_id}/locations/{ - * location}/entryGroups/{entry_group_id}/entries/{entry_id}/tags/{tag_id} - */ - public Delete setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+/tags/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Lists tags assigned to an Entry. The columns in the response are lowercased. - * - * Create a request for the method "tags.list". - * - * This request holds the parameters needed by the datacatalog server. After setting any optional - * parameters, call the {@link List#execute()} method to invoke the remote operation. - * - * @param parent Required. The name of the Data Catalog resource to list the tags of. The resource could be an Entry - * or an EntryGroup. Examples: * - * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id} * - * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id} - * @return the request - */ - public List list(java.lang.String parent) throws java.io.IOException { - List result = new List(parent); - initialize(result); - return result; - } - - public class List extends DataCatalogRequest- * {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param parent Required. The name of the Data Catalog resource to list the tags of. The resource could be an Entry - * or an EntryGroup. Examples: * - * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id} * - * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id} - * @since 1.13 - */ - protected List(java.lang.String parent) { - super(DataCatalog.this, "GET", REST_PATH, null, com.google.api.services.datacatalog.v1beta1.model.GoogleCloudDatacatalogV1beta1ListTagsResponse.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+$"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } - - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } - - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } - - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } - - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } - - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } - - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } - - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } - - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } - - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } - - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The name of the Data Catalog resource to list the tags of. The resource - * could be an Entry or an EntryGroup. Examples: * - * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id} * projects/{p - * roject_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id} - */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** Required. The name of the Data Catalog resource to list the tags of. The resource could be an Entry - or an EntryGroup. Examples: * - projects/{project_id}/locations/{location}/entryGroups/{entry_group_id} * - projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id} - */ - public java.lang.String getParent() { - return parent; - } - - /** - * Required. The name of the Data Catalog resource to list the tags of. The resource - * could be an Entry or an EntryGroup. Examples: * - * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id} * projects/{p - * roject_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id} - */ - public List setParent(java.lang.String parent) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+$"); - } - this.parent = parent; - return this; - } - - /** The maximum number of tags to return. Default is 10. Max limit is 1000. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; - - /** The maximum number of tags to return. Default is 10. Max limit is 1000. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } - - /** The maximum number of tags to return. Default is 10. Max limit is 1000. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } - - /** - * Token that specifies which page is requested. If empty, the first page is returned. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** Token that specifies which page is requested. If empty, the first page is returned. - */ - public java.lang.String getPageToken() { - return pageToken; - } - - /** - * Token that specifies which page is requested. If empty, the first page is returned. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Updates an existing tag. - * - * Create a request for the method "tags.patch". - * - * This request holds the parameters needed by the datacatalog server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation. - * - * @param name Identifier. The resource name of the tag in URL format. Example: * projects/{project_id}/locations/{ - * location}/entrygroups/{entry_group_id}/entries/{entry_id}/tags/{tag_id} where `tag_id` is - * a system-generated identifier. Note that this Tag may not actually be stored in the - * location in this name. - * @param content the {@link com.google.api.services.datacatalog.v1beta1.model.GoogleCloudDatacatalogV1beta1Tag} - * @return the request - */ - public Patch patch(java.lang.String name, com.google.api.services.datacatalog.v1beta1.model.GoogleCloudDatacatalogV1beta1Tag content) throws java.io.IOException { - Patch result = new Patch(name, content); - initialize(result); - return result; - } - - public class Patch extends DataCatalogRequest{@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param name Identifier. The resource name of the tag in URL format. Example: * projects/{project_id}/locations/{ - * location}/entrygroups/{entry_group_id}/entries/{entry_id}/tags/{tag_id} where `tag_id` is - * a system-generated identifier. Note that this Tag may not actually be stored in the - * location in this name. - * @param content the {@link com.google.api.services.datacatalog.v1beta1.model.GoogleCloudDatacatalogV1beta1Tag} - * @since 1.13 - */ - protected Patch(java.lang.String name, com.google.api.services.datacatalog.v1beta1.model.GoogleCloudDatacatalogV1beta1Tag content) { - super(DataCatalog.this, "PATCH", REST_PATH, content, com.google.api.services.datacatalog.v1beta1.model.GoogleCloudDatacatalogV1beta1Tag.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+/tags/[^/]+$"); - } - } - - @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); - } - - @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); - } - - @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); - } - - @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); - } - - @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); - } - - @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); - } - - @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); - } - - @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); - } - - @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); - } - - @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); - } - - @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); - } - - /** - * Identifier. The resource name of the tag in URL format. Example: * projects/{project_ - * id}/locations/{location}/entrygroups/{entry_group_id}/entries/{entry_id}/tags/{tag_id - * } where `tag_id` is a system-generated identifier. Note that this Tag may not - * actually be stored in the location in this name. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Identifier. The resource name of the tag in URL format. Example: * projects/{project_id}/locations/ - {location}/entrygroups/{entry_group_id}/entries/{entry_id}/tags/{tag_id} where `tag_id` is a - system-generated identifier. Note that this Tag may not actually be stored in the location in this - name. - */ - public java.lang.String getName() { - return name; - } - - /** - * Identifier. The resource name of the tag in URL format. Example: * projects/{project_ - * id}/locations/{location}/entrygroups/{entry_group_id}/entries/{entry_id}/tags/{tag_id - * } where `tag_id` is a system-generated identifier. Note that this Tag may not - * actually be stored in the location in this name. - */ - public Patch setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+/tags/[^/]+$"); - } - this.name = name; - return this; - } - - /** - * Note: Currently, this parameter can only take `"fields"` as value. Names of fields - * whose values to overwrite on a tag. Currently, a tag has the only modifiable field - * with the name `fields`. In general, if this parameter is absent or empty, all - * modifiable fields are overwritten. If such fields are non-required and omitted in the - * request body, their values are emptied. - */ - @com.google.api.client.util.Key - private String updateMask; - - /** Note: Currently, this parameter can only take `"fields"` as value. Names of fields whose values to - overwrite on a tag. Currently, a tag has the only modifiable field with the name `fields`. In - general, if this parameter is absent or empty, all modifiable fields are overwritten. If such - fields are non-required and omitted in the request body, their values are emptied. - */ - public String getUpdateMask() { - return updateMask; - } - - /** - * Note: Currently, this parameter can only take `"fields"` as value. Names of fields - * whose values to overwrite on a tag. Currently, a tag has the only modifiable field - * with the name `fields`. In general, if this parameter is absent or empty, all - * modifiable fields are overwritten. If such fields are non-required and omitted in the - * request body, their values are emptied. - */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; - } - - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - - } - } - /** - * An accessor for creating requests from the TagTemplates collection. - * - *The typical use is:
- *
- * {@code DataCatalog datacatalog = new DataCatalog(...);}
- * {@code DataCatalog.TagTemplates.List request = datacatalog.tagTemplates().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public TagTemplates tagTemplates() {
- return new TagTemplates();
- }
-
- /**
- * The "tagTemplates" collection of methods.
- */
- public class TagTemplates {
-
- /**
- * Creates a tag template. The user should enable the Data Catalog API in the project identified by
- * the `parent` parameter (see [Data Catalog Resource Project](https://cloud.google.com/data-
- * catalog/docs/concepts/resource-project) for more information).
- *
- * Create a request for the method "tagTemplates.create".
- *
- * This request holds the parameters needed by the datacatalog server. After setting any optional
- * parameters, call the {@link Create#execute()} method to invoke the remote operation.
- *
- * @param parent Required. The name of the project and the template location [region](https://cloud.google.com/data-
- * catalog/docs/concepts/regions. Example: * projects/{project_id}/locations/us-central1
- * @param content the {@link com.google.api.services.datacatalog.v1beta1.model.GoogleCloudDatacatalogV1beta1TagTemplate}
- * @return the request
- */
- public Create create(java.lang.String parent, com.google.api.services.datacatalog.v1beta1.model.GoogleCloudDatacatalogV1beta1TagTemplate content) throws java.io.IOException {
- Create result = new Create(parent, content);
- initialize(result);
- return result;
- }
-
- public class Create extends DataCatalogRequest{@link - * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param parent Required. The name of the project and the template location [region](https://cloud.google.com/data- - * catalog/docs/concepts/regions. Example: * projects/{project_id}/locations/us-central1 - * @param content the {@link com.google.api.services.datacatalog.v1beta1.model.GoogleCloudDatacatalogV1beta1TagTemplate} - * @since 1.13 - */ - protected Create(java.lang.String parent, com.google.api.services.datacatalog.v1beta1.model.GoogleCloudDatacatalogV1beta1TagTemplate content) { - super(DataCatalog.this, "POST", REST_PATH, content, com.google.api.services.datacatalog.v1beta1.model.GoogleCloudDatacatalogV1beta1TagTemplate.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); - } - } - - @Override - public Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); - } - - @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); - } - - @Override - public Create setAlt(java.lang.String alt) { - return (Create) super.setAlt(alt); - } - - @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); - } - - @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); - } - - @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); - } - - @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); - } - - @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); - } - - @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); - } - - @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); - } - - @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The name of the project and the template location - * [region](https://cloud.google.com/data-catalog/docs/concepts/regions. Example: * - * projects/{project_id}/locations/us-central1 - */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** Required. The name of the project and the template location [region](https://cloud.google.com/data- - catalog/docs/concepts/regions. Example: * projects/{project_id}/locations/us-central1 - */ - public java.lang.String getParent() { - return parent; - } - - /** - * Required. The name of the project and the template location - * [region](https://cloud.google.com/data-catalog/docs/concepts/regions. Example: * - * projects/{project_id}/locations/us-central1 - */ - public Create setParent(java.lang.String parent) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); - } - this.parent = parent; - return this; - } - - /** Required. The id of the tag template to create. */ - @com.google.api.client.util.Key - private java.lang.String tagTemplateId; - - /** Required. The id of the tag template to create. - */ - public java.lang.String getTagTemplateId() { - return tagTemplateId; - } - - /** Required. The id of the tag template to create. */ - public Create setTagTemplateId(java.lang.String tagTemplateId) { - this.tagTemplateId = tagTemplateId; - return this; - } - - @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); - } - } - /** - * Deletes a tag template and all tags using the template. Users should enable the Data Catalog API - * in the project identified by the `name` parameter (see [Data Catalog Resource Project] - * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information). - * - * Create a request for the method "tagTemplates.delete". - * - * This request holds the parameters needed by the datacatalog server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param name Required. The name of the tag template to delete. Example: * - * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id} - * @return the request - */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); - initialize(result); - return result; - } - - public class Delete extends DataCatalogRequest{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param name Required. The name of the tag template to delete. Example: * - * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id} - * @since 1.13 - */ - protected Delete(java.lang.String name) { - super(DataCatalog.this, "DELETE", REST_PATH, null, com.google.api.services.datacatalog.v1beta1.model.Empty.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/tagTemplates/[^/]+$"); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The name of the tag template to delete. Example: * - * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id} - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The name of the tag template to delete. Example: * - projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id} - */ - public java.lang.String getName() { - return name; - } - - /** - * Required. The name of the tag template to delete. Example: * - * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id} - */ - public Delete setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/tagTemplates/[^/]+$"); - } - this.name = name; - return this; - } - - /** - * Required. Currently, this field must always be set to `true`. This confirms the - * deletion of any possible tags using this template. `force = false` will be supported in - * the future. - */ - @com.google.api.client.util.Key - private java.lang.Boolean force; - - /** Required. Currently, this field must always be set to `true`. This confirms the deletion of any - possible tags using this template. `force = false` will be supported in the future. - */ - public java.lang.Boolean getForce() { - return force; - } - - /** - * Required. Currently, this field must always be set to `true`. This confirms the - * deletion of any possible tags using this template. `force = false` will be supported in - * the future. - */ - public Delete setForce(java.lang.Boolean force) { - this.force = force; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Gets a tag template. - * - * Create a request for the method "tagTemplates.get". - * - * This request holds the parameters needed by the datacatalog server. After setting any optional - * parameters, call the {@link Get#execute()} method to invoke the remote operation. - * - * @param name Required. The name of the tag template. Example: * - * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id} - * @return the request - */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); - initialize(result); - return result; - } - - public class Get extends DataCatalogRequest- * {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param name Required. The name of the tag template. Example: * - * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id} - * @since 1.13 - */ - protected Get(java.lang.String name) { - super(DataCatalog.this, "GET", REST_PATH, null, com.google.api.services.datacatalog.v1beta1.model.GoogleCloudDatacatalogV1beta1TagTemplate.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/tagTemplates/[^/]+$"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } - - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } - - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } - - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } - - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } - - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } - - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } - - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } - - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } - - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } - - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The name of the tag template. Example: * - * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id} - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The name of the tag template. Example: * - projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id} - */ - public java.lang.String getName() { - return name; - } - - /** - * Required. The name of the tag template. Example: * - * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id} - */ - public Get setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/tagTemplates/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Gets the access control policy for a resource. A `NOT_FOUND` error is returned if the resource - * does not exist. An empty policy is returned if the resource exists but does not have a policy set - * on it. Supported resources are: - Tag templates. - Entries. - Entry groups. Note, this method - * cannot be used to manage policies for BigQuery, Pub/Sub and any external Google Cloud Platform - * resources synced to Data Catalog. Callers must have following Google IAM permission - - * `datacatalog.tagTemplates.getIamPolicy` to get policies on tag templates. - - * `datacatalog.entries.getIamPolicy` to get policies on entries. - - * `datacatalog.entryGroups.getIamPolicy` to get policies on entry groups. - * - * Create a request for the method "tagTemplates.getIamPolicy". - * - * This request holds the parameters needed by the datacatalog server. After setting any optional - * parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. - * - * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @param content the {@link com.google.api.services.datacatalog.v1beta1.model.GetIamPolicyRequest} - * @return the request - */ - public GetIamPolicy getIamPolicy(java.lang.String resource, com.google.api.services.datacatalog.v1beta1.model.GetIamPolicyRequest content) throws java.io.IOException { - GetIamPolicy result = new GetIamPolicy(resource, content); - initialize(result); - return result; - } - - public class GetIamPolicy extends DataCatalogRequest{@link - * GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param resource REQUIRED: The resource for which the policy is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @param content the {@link com.google.api.services.datacatalog.v1beta1.model.GetIamPolicyRequest} - * @since 1.13 - */ - protected GetIamPolicy(java.lang.String resource, com.google.api.services.datacatalog.v1beta1.model.GetIamPolicyRequest content) { - super(DataCatalog.this, "POST", REST_PATH, content, com.google.api.services.datacatalog.v1beta1.model.Policy.class); - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/tagTemplates/[^/]+$"); - } - } - - @Override - public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (GetIamPolicy) super.set$Xgafv($Xgafv); - } - - @Override - public GetIamPolicy setAccessToken(java.lang.String accessToken) { - return (GetIamPolicy) super.setAccessToken(accessToken); - } - - @Override - public GetIamPolicy setAlt(java.lang.String alt) { - return (GetIamPolicy) super.setAlt(alt); - } - - @Override - public GetIamPolicy setCallback(java.lang.String callback) { - return (GetIamPolicy) super.setCallback(callback); - } - - @Override - public GetIamPolicy setFields(java.lang.String fields) { - return (GetIamPolicy) super.setFields(fields); - } - - @Override - public GetIamPolicy setKey(java.lang.String key) { - return (GetIamPolicy) super.setKey(key); - } - - @Override - public GetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (GetIamPolicy) super.setOauthToken(oauthToken); - } - - @Override - public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetIamPolicy) super.setPrettyPrint(prettyPrint); - } - - @Override - public GetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (GetIamPolicy) super.setQuotaUser(quotaUser); - } - - @Override - public GetIamPolicy setUploadType(java.lang.String uploadType) { - return (GetIamPolicy) super.setUploadType(uploadType); - } - - @Override - public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (GetIamPolicy) super.setUploadProtocol(uploadProtocol); - } - - /** - * REQUIRED: The resource for which the policy is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. - */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** REQUIRED: The resource for which the policy is being requested. See [Resource - names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this - field. - */ - public java.lang.String getResource() { - return resource; - } - - /** - * REQUIRED: The resource for which the policy is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. - */ - public GetIamPolicy setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/tagTemplates/[^/]+$"); - } - this.resource = resource; - return this; - } - - @Override - public GetIamPolicy set(String parameterName, Object value) { - return (GetIamPolicy) super.set(parameterName, value); - } - } - /** - * Updates a tag template. This method cannot be used to update the fields of a template. The tag - * template fields are represented as separate resources and should be updated using their own - * create/update/delete methods. Users should enable the Data Catalog API in the project identified - * by the `tag_template.name` parameter (see [Data Catalog Resource Project] - * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information). - * - * Create a request for the method "tagTemplates.patch". - * - * This request holds the parameters needed by the datacatalog server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation. - * - * @param name Identifier. The resource name of the tag template in URL format. Example: * - * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id} Note that this - * TagTemplate and its child resources may not actually be stored in the location in this - * name. - * @param content the {@link com.google.api.services.datacatalog.v1beta1.model.GoogleCloudDatacatalogV1beta1TagTemplate} - * @return the request - */ - public Patch patch(java.lang.String name, com.google.api.services.datacatalog.v1beta1.model.GoogleCloudDatacatalogV1beta1TagTemplate content) throws java.io.IOException { - Patch result = new Patch(name, content); - initialize(result); - return result; - } - - public class Patch extends DataCatalogRequest{@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param name Identifier. The resource name of the tag template in URL format. Example: * - * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id} Note that this - * TagTemplate and its child resources may not actually be stored in the location in this - * name. - * @param content the {@link com.google.api.services.datacatalog.v1beta1.model.GoogleCloudDatacatalogV1beta1TagTemplate} - * @since 1.13 - */ - protected Patch(java.lang.String name, com.google.api.services.datacatalog.v1beta1.model.GoogleCloudDatacatalogV1beta1TagTemplate content) { - super(DataCatalog.this, "PATCH", REST_PATH, content, com.google.api.services.datacatalog.v1beta1.model.GoogleCloudDatacatalogV1beta1TagTemplate.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/tagTemplates/[^/]+$"); - } - } - - @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); - } - - @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); - } - - @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); - } - - @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); - } - - @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); - } - - @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); - } - - @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); - } - - @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); - } - - @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); - } - - @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); - } - - @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); - } - - /** - * Identifier. The resource name of the tag template in URL format. Example: * - * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id} Note that - * this TagTemplate and its child resources may not actually be stored in the location in - * this name. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Identifier. The resource name of the tag template in URL format. Example: * - projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id} Note that this - TagTemplate and its child resources may not actually be stored in the location in this name. - */ - public java.lang.String getName() { - return name; - } - - /** - * Identifier. The resource name of the tag template in URL format. Example: * - * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id} Note that - * this TagTemplate and its child resources may not actually be stored in the location in - * this name. - */ - public Patch setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/tagTemplates/[^/]+$"); - } - this.name = name; - return this; - } - - /** - * Names of fields whose values to overwrite on a tag template. Currently, only - * `display_name` can be overwritten. In general, if this parameter is absent or empty, - * all modifiable fields are overwritten. If such fields are non-required and omitted in - * the request body, their values are emptied. - */ - @com.google.api.client.util.Key - private String updateMask; - - /** Names of fields whose values to overwrite on a tag template. Currently, only `display_name` can be - overwritten. In general, if this parameter is absent or empty, all modifiable fields are - overwritten. If such fields are non-required and omitted in the request body, their values are - emptied. - */ - public String getUpdateMask() { - return updateMask; - } - - /** - * Names of fields whose values to overwrite on a tag template. Currently, only - * `display_name` can be overwritten. In general, if this parameter is absent or empty, - * all modifiable fields are overwritten. If such fields are non-required and omitted in - * the request body, their values are emptied. - */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; - } - - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - /** - * Sets the access control policy for a resource. Replaces any existing policy. Supported resources - * are: - Tag templates. - Entries. - Entry groups. Note, this method cannot be used to manage - * policies for BigQuery, Pub/Sub and any external Google Cloud Platform resources synced to Data - * Catalog. Callers must have following Google IAM permission - - * `datacatalog.tagTemplates.setIamPolicy` to set policies on tag templates. - - * `datacatalog.entries.setIamPolicy` to set policies on entries. - - * `datacatalog.entryGroups.setIamPolicy` to set policies on entry groups. - * - * Create a request for the method "tagTemplates.setIamPolicy". - * - * This request holds the parameters needed by the datacatalog server. After setting any optional - * parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. - * - * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @param content the {@link com.google.api.services.datacatalog.v1beta1.model.SetIamPolicyRequest} - * @return the request - */ - public SetIamPolicy setIamPolicy(java.lang.String resource, com.google.api.services.datacatalog.v1beta1.model.SetIamPolicyRequest content) throws java.io.IOException { - SetIamPolicy result = new SetIamPolicy(resource, content); - initialize(result); - return result; - } - - public class SetIamPolicy extends DataCatalogRequest{@link - * SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.
- * - * @param resource REQUIRED: The resource for which the policy is being specified. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @param content the {@link com.google.api.services.datacatalog.v1beta1.model.SetIamPolicyRequest} - * @since 1.13 - */ - protected SetIamPolicy(java.lang.String resource, com.google.api.services.datacatalog.v1beta1.model.SetIamPolicyRequest content) { - super(DataCatalog.this, "POST", REST_PATH, content, com.google.api.services.datacatalog.v1beta1.model.Policy.class); - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/tagTemplates/[^/]+$"); - } - } - - @Override - public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) { - return (SetIamPolicy) super.set$Xgafv($Xgafv); - } - - @Override - public SetIamPolicy setAccessToken(java.lang.String accessToken) { - return (SetIamPolicy) super.setAccessToken(accessToken); - } - - @Override - public SetIamPolicy setAlt(java.lang.String alt) { - return (SetIamPolicy) super.setAlt(alt); - } - - @Override - public SetIamPolicy setCallback(java.lang.String callback) { - return (SetIamPolicy) super.setCallback(callback); - } - - @Override - public SetIamPolicy setFields(java.lang.String fields) { - return (SetIamPolicy) super.setFields(fields); - } - - @Override - public SetIamPolicy setKey(java.lang.String key) { - return (SetIamPolicy) super.setKey(key); - } - - @Override - public SetIamPolicy setOauthToken(java.lang.String oauthToken) { - return (SetIamPolicy) super.setOauthToken(oauthToken); - } - - @Override - public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (SetIamPolicy) super.setPrettyPrint(prettyPrint); - } - - @Override - public SetIamPolicy setQuotaUser(java.lang.String quotaUser) { - return (SetIamPolicy) super.setQuotaUser(quotaUser); - } - - @Override - public SetIamPolicy setUploadType(java.lang.String uploadType) { - return (SetIamPolicy) super.setUploadType(uploadType); - } - - @Override - public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) { - return (SetIamPolicy) super.setUploadProtocol(uploadProtocol); - } - - /** - * REQUIRED: The resource for which the policy is being specified. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. - */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** REQUIRED: The resource for which the policy is being specified. See [Resource - names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this - field. - */ - public java.lang.String getResource() { - return resource; - } - - /** - * REQUIRED: The resource for which the policy is being specified. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. - */ - public SetIamPolicy setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/tagTemplates/[^/]+$"); - } - this.resource = resource; - return this; - } - - @Override - public SetIamPolicy set(String parameterName, Object value) { - return (SetIamPolicy) super.set(parameterName, value); - } - } - /** - * Returns the caller's permissions on a resource. If the resource does not exist, an empty set of - * permissions is returned (We don't return a `NOT_FOUND` error). Supported resources are: - Tag - * templates. - Entries. - Entry groups. Note, this method cannot be used to manage policies for - * BigQuery, Pub/Sub and any external Google Cloud Platform resources synced to Data Catalog. A - * caller is not required to have Google IAM permission to make this request. - * - * Create a request for the method "tagTemplates.testIamPermissions". - * - * This request holds the parameters needed by the datacatalog server. After setting any optional - * parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote operation. - * - * @param resource REQUIRED: The resource for which the policy detail is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @param content the {@link com.google.api.services.datacatalog.v1beta1.model.TestIamPermissionsRequest} - * @return the request - */ - public TestIamPermissions testIamPermissions(java.lang.String resource, com.google.api.services.datacatalog.v1beta1.model.TestIamPermissionsRequest content) throws java.io.IOException { - TestIamPermissions result = new TestIamPermissions(resource, content); - initialize(result); - return result; - } - - public class TestIamPermissions extends DataCatalogRequest{@link TestIamPermissions#initialize(com.google.api.client.googleapis.services.A - * bstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.
- * - * @param resource REQUIRED: The resource for which the policy detail is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for - * this field. - * @param content the {@link com.google.api.services.datacatalog.v1beta1.model.TestIamPermissionsRequest} - * @since 1.13 - */ - protected TestIamPermissions(java.lang.String resource, com.google.api.services.datacatalog.v1beta1.model.TestIamPermissionsRequest content) { - super(DataCatalog.this, "POST", REST_PATH, content, com.google.api.services.datacatalog.v1beta1.model.TestIamPermissionsResponse.class); - this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/tagTemplates/[^/]+$"); - } - } - - @Override - public TestIamPermissions set$Xgafv(java.lang.String $Xgafv) { - return (TestIamPermissions) super.set$Xgafv($Xgafv); - } - - @Override - public TestIamPermissions setAccessToken(java.lang.String accessToken) { - return (TestIamPermissions) super.setAccessToken(accessToken); - } - - @Override - public TestIamPermissions setAlt(java.lang.String alt) { - return (TestIamPermissions) super.setAlt(alt); - } - - @Override - public TestIamPermissions setCallback(java.lang.String callback) { - return (TestIamPermissions) super.setCallback(callback); - } - - @Override - public TestIamPermissions setFields(java.lang.String fields) { - return (TestIamPermissions) super.setFields(fields); - } - - @Override - public TestIamPermissions setKey(java.lang.String key) { - return (TestIamPermissions) super.setKey(key); - } - - @Override - public TestIamPermissions setOauthToken(java.lang.String oauthToken) { - return (TestIamPermissions) super.setOauthToken(oauthToken); - } - - @Override - public TestIamPermissions setPrettyPrint(java.lang.Boolean prettyPrint) { - return (TestIamPermissions) super.setPrettyPrint(prettyPrint); - } - - @Override - public TestIamPermissions setQuotaUser(java.lang.String quotaUser) { - return (TestIamPermissions) super.setQuotaUser(quotaUser); - } - - @Override - public TestIamPermissions setUploadType(java.lang.String uploadType) { - return (TestIamPermissions) super.setUploadType(uploadType); - } - - @Override - public TestIamPermissions setUploadProtocol(java.lang.String uploadProtocol) { - return (TestIamPermissions) super.setUploadProtocol(uploadProtocol); - } - - /** - * REQUIRED: The resource for which the policy detail is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. - */ - @com.google.api.client.util.Key - private java.lang.String resource; - - /** REQUIRED: The resource for which the policy detail is being requested. See [Resource - names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this - field. - */ - public java.lang.String getResource() { - return resource; - } - - /** - * REQUIRED: The resource for which the policy detail is being requested. See [Resource - * names](https://cloud.google.com/apis/design/resource_names) for the appropriate value - * for this field. - */ - public TestIamPermissions setResource(java.lang.String resource) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(), - "Parameter resource must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/tagTemplates/[^/]+$"); - } - this.resource = resource; - return this; - } - - @Override - public TestIamPermissions set(String parameterName, Object value) { - return (TestIamPermissions) super.set(parameterName, value); - } - } - - /** - * An accessor for creating requests from the Fields collection. - * - *The typical use is:
- *
- * {@code DataCatalog datacatalog = new DataCatalog(...);}
- * {@code DataCatalog.Fields.List request = datacatalog.fields().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public Fields fields() {
- return new Fields();
- }
-
- /**
- * The "fields" collection of methods.
- */
- public class Fields {
-
- /**
- * Creates a field in a tag template. The user should enable the Data Catalog API in the project
- * identified by the `parent` parameter (see [Data Catalog Resource
- * Project](https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more
- * information).
- *
- * Create a request for the method "fields.create".
- *
- * This request holds the parameters needed by the datacatalog server. After setting any optional
- * parameters, call the {@link Create#execute()} method to invoke the remote operation.
- *
- * @param parent Required. The name of the project and the template location [region](https://cloud.google.com/data-
- * catalog/docs/concepts/regions). Example: * projects/{project_id}/locations/us-
- * central1/tagTemplates/{tag_template_id}
- * @param content the {@link com.google.api.services.datacatalog.v1beta1.model.GoogleCloudDatacatalogV1beta1TagTemplateField}
- * @return the request
- */
- public Create create(java.lang.String parent, com.google.api.services.datacatalog.v1beta1.model.GoogleCloudDatacatalogV1beta1TagTemplateField content) throws java.io.IOException {
- Create result = new Create(parent, content);
- initialize(result);
- return result;
- }
-
- public class Create extends DataCatalogRequest{@link - * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param parent Required. The name of the project and the template location [region](https://cloud.google.com/data- - * catalog/docs/concepts/regions). Example: * projects/{project_id}/locations/us- - * central1/tagTemplates/{tag_template_id} - * @param content the {@link com.google.api.services.datacatalog.v1beta1.model.GoogleCloudDatacatalogV1beta1TagTemplateField} - * @since 1.13 - */ - protected Create(java.lang.String parent, com.google.api.services.datacatalog.v1beta1.model.GoogleCloudDatacatalogV1beta1TagTemplateField content) { - super(DataCatalog.this, "POST", REST_PATH, content, com.google.api.services.datacatalog.v1beta1.model.GoogleCloudDatacatalogV1beta1TagTemplateField.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/tagTemplates/[^/]+$"); - } - } - - @Override - public Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); - } - - @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); - } - - @Override - public Create setAlt(java.lang.String alt) { - return (Create) super.setAlt(alt); - } - - @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); - } - - @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); - } - - @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); - } - - @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); - } - - @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); - } - - @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); - } - - @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); - } - - @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The name of the project and the template location - * [region](https://cloud.google.com/data-catalog/docs/concepts/regions). Example: * - * projects/{project_id}/locations/us-central1/tagTemplates/{tag_template_id} - */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** Required. The name of the project and the template location [region](https://cloud.google.com/data- - catalog/docs/concepts/regions). Example: * projects/{project_id}/locations/us- - central1/tagTemplates/{tag_template_id} - */ - public java.lang.String getParent() { - return parent; - } - - /** - * Required. The name of the project and the template location - * [region](https://cloud.google.com/data-catalog/docs/concepts/regions). Example: * - * projects/{project_id}/locations/us-central1/tagTemplates/{tag_template_id} - */ - public Create setParent(java.lang.String parent) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/tagTemplates/[^/]+$"); - } - this.parent = parent; - return this; - } - - /** - * Required. The ID of the tag template field to create. Field ids can contain letters - * (both uppercase and lowercase), numbers (0-9), underscores (_) and dashes (-). Field - * IDs must be at least 1 character long and at most 128 characters long. Field IDs must - * also be unique within their template. - */ - @com.google.api.client.util.Key - private java.lang.String tagTemplateFieldId; - - /** Required. The ID of the tag template field to create. Field ids can contain letters (both uppercase - and lowercase), numbers (0-9), underscores (_) and dashes (-). Field IDs must be at least 1 - character long and at most 128 characters long. Field IDs must also be unique within their - template. - */ - public java.lang.String getTagTemplateFieldId() { - return tagTemplateFieldId; - } - - /** - * Required. The ID of the tag template field to create. Field ids can contain letters - * (both uppercase and lowercase), numbers (0-9), underscores (_) and dashes (-). Field - * IDs must be at least 1 character long and at most 128 characters long. Field IDs must - * also be unique within their template. - */ - public Create setTagTemplateFieldId(java.lang.String tagTemplateFieldId) { - this.tagTemplateFieldId = tagTemplateFieldId; - return this; - } - - @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); - } - } - /** - * Deletes a field in a tag template and all uses of that field. Users should enable the Data - * Catalog API in the project identified by the `name` parameter (see [Data Catalog Resource - * Project] (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more - * information). - * - * Create a request for the method "fields.delete". - * - * This request holds the parameters needed by the datacatalog server. After setting any optional - * parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param name Required. The name of the tag template field to delete. Example: * projects/{project_id}/locations/{ - * location}/tagTemplates/{tag_template_id}/fields/{tag_template_field_id} - * @return the request - */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); - initialize(result); - return result; - } - - public class Delete extends DataCatalogRequest{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param name Required. The name of the tag template field to delete. Example: * projects/{project_id}/locations/{ - * location}/tagTemplates/{tag_template_id}/fields/{tag_template_field_id} - * @since 1.13 - */ - protected Delete(java.lang.String name) { - super(DataCatalog.this, "DELETE", REST_PATH, null, com.google.api.services.datacatalog.v1beta1.model.Empty.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/tagTemplates/[^/]+/fields/[^/]+$"); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } - - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } - - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } - - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The name of the tag template field to delete. Example: * projects/{project_ - * id}/locations/{location}/tagTemplates/{tag_template_id}/fields/{tag_template_field_id - * } - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The name of the tag template field to delete. Example: * projects/{project_id}/locations/ - {location}/tagTemplates/{tag_template_id}/fields/{tag_template_field_id} - */ - public java.lang.String getName() { - return name; - } - - /** - * Required. The name of the tag template field to delete. Example: * projects/{project_ - * id}/locations/{location}/tagTemplates/{tag_template_id}/fields/{tag_template_field_id - * } - */ - public Delete setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/tagTemplates/[^/]+/fields/[^/]+$"); - } - this.name = name; - return this; - } - - /** - * Required. Currently, this field must always be set to `true`. This confirms the - * deletion of this field from any tags using this field. `force = false` will be - * supported in the future. - */ - @com.google.api.client.util.Key - private java.lang.Boolean force; - - /** Required. Currently, this field must always be set to `true`. This confirms the deletion of this - field from any tags using this field. `force = false` will be supported in the future. - */ - public java.lang.Boolean getForce() { - return force; - } - - /** - * Required. Currently, this field must always be set to `true`. This confirms the - * deletion of this field from any tags using this field. `force = false` will be - * supported in the future. - */ - public Delete setForce(java.lang.Boolean force) { - this.force = force; - return this; - } - - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Updates a field in a tag template. This method cannot be used to update the field type. Users - * should enable the Data Catalog API in the project identified by the `name` parameter (see [Data - * Catalog Resource Project] (https://cloud.google.com/data-catalog/docs/concepts/resource-project) - * for more information). - * - * Create a request for the method "fields.patch". - * - * This request holds the parameters needed by the datacatalog server. After setting any optional - * parameters, call the {@link Patch#execute()} method to invoke the remote operation. - * - * @param name Required. The name of the tag template field. Example: * projects/{project_id}/locations/{location}/ - * tagTemplates/{tag_template_id}/fields/{tag_template_field_id} - * @param content the {@link com.google.api.services.datacatalog.v1beta1.model.GoogleCloudDatacatalogV1beta1TagTemplateField} - * @return the request - */ - public Patch patch(java.lang.String name, com.google.api.services.datacatalog.v1beta1.model.GoogleCloudDatacatalogV1beta1TagTemplateField content) throws java.io.IOException { - Patch result = new Patch(name, content); - initialize(result); - return result; - } - - public class Patch extends DataCatalogRequest{@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param name Required. The name of the tag template field. Example: * projects/{project_id}/locations/{location}/ - * tagTemplates/{tag_template_id}/fields/{tag_template_field_id} - * @param content the {@link com.google.api.services.datacatalog.v1beta1.model.GoogleCloudDatacatalogV1beta1TagTemplateField} - * @since 1.13 - */ - protected Patch(java.lang.String name, com.google.api.services.datacatalog.v1beta1.model.GoogleCloudDatacatalogV1beta1TagTemplateField content) { - super(DataCatalog.this, "PATCH", REST_PATH, content, com.google.api.services.datacatalog.v1beta1.model.GoogleCloudDatacatalogV1beta1TagTemplateField.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/tagTemplates/[^/]+/fields/[^/]+$"); - } - } - - @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); - } - - @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); - } - - @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); - } - - @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); - } - - @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); - } - - @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); - } - - @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); - } - - @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); - } - - @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); - } - - @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); - } - - @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The name of the tag template field. Example: * projects/{project_id}/locati - * ons/{location}/tagTemplates/{tag_template_id}/fields/{tag_template_field_id} - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The name of the tag template field. Example: * projects/{project_id}/locations/{location} - /tagTemplates/{tag_template_id}/fields/{tag_template_field_id} - */ - public java.lang.String getName() { - return name; - } - - /** - * Required. The name of the tag template field. Example: * projects/{project_id}/locati - * ons/{location}/tagTemplates/{tag_template_id}/fields/{tag_template_field_id} - */ - public Patch setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/tagTemplates/[^/]+/fields/[^/]+$"); - } - this.name = name; - return this; - } - - /** - * Optional. Names of fields whose values to overwrite on an individual field of a tag - * template. The following fields are modifiable: * `display_name` * `type.enum_type` * - * `is_required` If this parameter is absent or empty, all modifiable fields are - * overwritten. If such fields are non-required and omitted in the request body, their - * values are emptied with one exception: when updating an enum type, the provided - * values are merged with the existing values. Therefore, enum values can only be added, - * existing enum values cannot be deleted or renamed. Additionally, updating a template - * field from optional to required is *not* allowed. - */ - @com.google.api.client.util.Key - private String updateMask; - - /** Optional. Names of fields whose values to overwrite on an individual field of a tag template. The - following fields are modifiable: * `display_name` * `type.enum_type` * `is_required` If this - parameter is absent or empty, all modifiable fields are overwritten. If such fields are non- - required and omitted in the request body, their values are emptied with one exception: when - updating an enum type, the provided values are merged with the existing values. Therefore, enum - values can only be added, existing enum values cannot be deleted or renamed. Additionally, updating - a template field from optional to required is *not* allowed. - */ - public String getUpdateMask() { - return updateMask; - } - - /** - * Optional. Names of fields whose values to overwrite on an individual field of a tag - * template. The following fields are modifiable: * `display_name` * `type.enum_type` * - * `is_required` If this parameter is absent or empty, all modifiable fields are - * overwritten. If such fields are non-required and omitted in the request body, their - * values are emptied with one exception: when updating an enum type, the provided - * values are merged with the existing values. Therefore, enum values can only be added, - * existing enum values cannot be deleted or renamed. Additionally, updating a template - * field from optional to required is *not* allowed. - */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; - } - - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); - } - } - /** - * Renames a field in a tag template. The user should enable the Data Catalog API in the project - * identified by the `name` parameter (see [Data Catalog Resource - * Project](https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more - * information). - * - * Create a request for the method "fields.rename". - * - * This request holds the parameters needed by the datacatalog server. After setting any optional - * parameters, call the {@link Rename#execute()} method to invoke the remote operation. - * - * @param name Required. The name of the tag template. Example: * projects/{project_id}/locations/{location}/tagTem - * plates/{tag_template_id}/fields/{tag_template_field_id} - * @param content the {@link com.google.api.services.datacatalog.v1beta1.model.GoogleCloudDatacatalogV1beta1RenameTagTemplateFieldRequest} - * @return the request - */ - public Rename rename(java.lang.String name, com.google.api.services.datacatalog.v1beta1.model.GoogleCloudDatacatalogV1beta1RenameTagTemplateFieldRequest content) throws java.io.IOException { - Rename result = new Rename(name, content); - initialize(result); - return result; - } - - public class Rename extends DataCatalogRequest{@link - * Rename#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param name Required. The name of the tag template. Example: * projects/{project_id}/locations/{location}/tagTem - * plates/{tag_template_id}/fields/{tag_template_field_id} - * @param content the {@link com.google.api.services.datacatalog.v1beta1.model.GoogleCloudDatacatalogV1beta1RenameTagTemplateFieldRequest} - * @since 1.13 - */ - protected Rename(java.lang.String name, com.google.api.services.datacatalog.v1beta1.model.GoogleCloudDatacatalogV1beta1RenameTagTemplateFieldRequest content) { - super(DataCatalog.this, "POST", REST_PATH, content, com.google.api.services.datacatalog.v1beta1.model.GoogleCloudDatacatalogV1beta1TagTemplateField.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/tagTemplates/[^/]+/fields/[^/]+$"); - } - } - - @Override - public Rename set$Xgafv(java.lang.String $Xgafv) { - return (Rename) super.set$Xgafv($Xgafv); - } - - @Override - public Rename setAccessToken(java.lang.String accessToken) { - return (Rename) super.setAccessToken(accessToken); - } - - @Override - public Rename setAlt(java.lang.String alt) { - return (Rename) super.setAlt(alt); - } - - @Override - public Rename setCallback(java.lang.String callback) { - return (Rename) super.setCallback(callback); - } - - @Override - public Rename setFields(java.lang.String fields) { - return (Rename) super.setFields(fields); - } - - @Override - public Rename setKey(java.lang.String key) { - return (Rename) super.setKey(key); - } - - @Override - public Rename setOauthToken(java.lang.String oauthToken) { - return (Rename) super.setOauthToken(oauthToken); - } - - @Override - public Rename setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Rename) super.setPrettyPrint(prettyPrint); - } - - @Override - public Rename setQuotaUser(java.lang.String quotaUser) { - return (Rename) super.setQuotaUser(quotaUser); - } - - @Override - public Rename setUploadType(java.lang.String uploadType) { - return (Rename) super.setUploadType(uploadType); - } - - @Override - public Rename setUploadProtocol(java.lang.String uploadProtocol) { - return (Rename) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The name of the tag template. Example: * projects/{project_id}/locations/{l - * ocation}/tagTemplates/{tag_template_id}/fields/{tag_template_field_id} - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The name of the tag template. Example: * projects/{project_id}/locations/{location}/tagTe - mplates/{tag_template_id}/fields/{tag_template_field_id} - */ - public java.lang.String getName() { - return name; - } - - /** - * Required. The name of the tag template. Example: * projects/{project_id}/locations/{l - * ocation}/tagTemplates/{tag_template_id}/fields/{tag_template_field_id} - */ - public Rename setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/tagTemplates/[^/]+/fields/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public Rename set(String parameterName, Object value) { - return (Rename) super.set(parameterName, value); - } - } - - /** - * An accessor for creating requests from the EnumValues collection. - * - *The typical use is:
- *
- * {@code DataCatalog datacatalog = new DataCatalog(...);}
- * {@code DataCatalog.EnumValues.List request = datacatalog.enumValues().list(parameters ...)}
- *
- *
- * @return the resource collection
- */
- public EnumValues enumValues() {
- return new EnumValues();
- }
-
- /**
- * The "enumValues" collection of methods.
- */
- public class EnumValues {
-
- /**
- * Renames an enum value in a tag template. The enum values have to be unique within one enum field.
- * Thus, an enum value cannot be renamed with a name used in any other enum value within the same
- * enum field.
- *
- * Create a request for the method "enumValues.rename".
- *
- * This request holds the parameters needed by the datacatalog server. After setting any optional
- * parameters, call the {@link Rename#execute()} method to invoke the remote operation.
- *
- * @param name Required. The name of the enum field value. Example: * projects/{project_id}/locations/{location}/ta
- * gTemplates/{tag_template_id}/fields/{tag_template_field_id}/enumValues/{enum_value_display
- * _name}
- * @param content the {@link com.google.api.services.datacatalog.v1beta1.model.GoogleCloudDatacatalogV1beta1RenameTagTemplateFieldEnumValueRequest}
- * @return the request
- */
- public Rename rename(java.lang.String name, com.google.api.services.datacatalog.v1beta1.model.GoogleCloudDatacatalogV1beta1RenameTagTemplateFieldEnumValueRequest content) throws java.io.IOException {
- Rename result = new Rename(name, content);
- initialize(result);
- return result;
- }
-
- public class Rename extends DataCatalogRequest{@link - * Rename#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.
- * - * @param name Required. The name of the enum field value. Example: * projects/{project_id}/locations/{location}/ta - * gTemplates/{tag_template_id}/fields/{tag_template_field_id}/enumValues/{enum_value_display - * _name} - * @param content the {@link com.google.api.services.datacatalog.v1beta1.model.GoogleCloudDatacatalogV1beta1RenameTagTemplateFieldEnumValueRequest} - * @since 1.13 - */ - protected Rename(java.lang.String name, com.google.api.services.datacatalog.v1beta1.model.GoogleCloudDatacatalogV1beta1RenameTagTemplateFieldEnumValueRequest content) { - super(DataCatalog.this, "POST", REST_PATH, content, com.google.api.services.datacatalog.v1beta1.model.GoogleCloudDatacatalogV1beta1TagTemplateField.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/tagTemplates/[^/]+/fields/[^/]+/enumValues/[^/]+$"); - } - } - - @Override - public Rename set$Xgafv(java.lang.String $Xgafv) { - return (Rename) super.set$Xgafv($Xgafv); - } - - @Override - public Rename setAccessToken(java.lang.String accessToken) { - return (Rename) super.setAccessToken(accessToken); - } - - @Override - public Rename setAlt(java.lang.String alt) { - return (Rename) super.setAlt(alt); - } - - @Override - public Rename setCallback(java.lang.String callback) { - return (Rename) super.setCallback(callback); - } - - @Override - public Rename setFields(java.lang.String fields) { - return (Rename) super.setFields(fields); - } - - @Override - public Rename setKey(java.lang.String key) { - return (Rename) super.setKey(key); - } - - @Override - public Rename setOauthToken(java.lang.String oauthToken) { - return (Rename) super.setOauthToken(oauthToken); - } - - @Override - public Rename setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Rename) super.setPrettyPrint(prettyPrint); - } - - @Override - public Rename setQuotaUser(java.lang.String quotaUser) { - return (Rename) super.setQuotaUser(quotaUser); - } - - @Override - public Rename setUploadType(java.lang.String uploadType) { - return (Rename) super.setUploadType(uploadType); - } - - @Override - public Rename setUploadProtocol(java.lang.String uploadProtocol) { - return (Rename) super.setUploadProtocol(uploadProtocol); - } - - /** - * Required. The name of the enum field value. Example: * projects/{project_id}/locati - * ons/{location}/tagTemplates/{tag_template_id}/fields/{tag_template_field_id}/enumVa - * lues/{enum_value_display_name} - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** Required. The name of the enum field value. Example: * projects/{project_id}/locations/{location}/t - agTemplates/{tag_template_id}/fields/{tag_template_field_id}/enumValues/{enum_value_display_name} - */ - public java.lang.String getName() { - return name; - } - - /** - * Required. The name of the enum field value. Example: * projects/{project_id}/locati - * ons/{location}/tagTemplates/{tag_template_id}/fields/{tag_template_field_id}/enumVa - * lues/{enum_value_display_name} - */ - public Rename setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/tagTemplates/[^/]+/fields/[^/]+/enumValues/[^/]+$"); - } - this.name = name; - return this; - } - - @Override - public Rename set(String parameterName, Object value) { - return (Rename) super.set(parameterName, value); - } - } - - } - } - } /** * An accessor for creating requests from the Taxonomies collection. * diff --git a/clients/google-api-services-datacatalog/v1beta1/2.0.0/com/google/api/services/datacatalog/v1beta1/model/GoogleCloudDatacatalogV1beta1BigQueryDateShardedSpec.java b/clients/google-api-services-datacatalog/v1beta1/2.0.0/com/google/api/services/datacatalog/v1beta1/model/GoogleCloudDatacatalogV1beta1BigQueryDateShardedSpec.java deleted file mode 100644 index fa208453d15..00000000000 --- a/clients/google-api-services-datacatalog/v1beta1/2.0.0/com/google/api/services/datacatalog/v1beta1/model/GoogleCloudDatacatalogV1beta1BigQueryDateShardedSpec.java +++ /dev/null @@ -1,128 +0,0 @@ -/* - * 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.datacatalog.v1beta1.model; - -/** - * Spec for a group of BigQuery tables with name pattern `[prefix]YYYYMMDD`. Context: - * https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding - * - *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 Google Cloud Data Catalog 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 GoogleCloudDatacatalogV1beta1BigQueryDateShardedSpec extends com.google.api.client.json.GenericJson { - - /** - * Output only. The Data Catalog resource name of the dataset entry the current table belongs to, - * for example, - * `projects/{project_id}/locations/{location}/entrygroups/{entry_group_id}/entries/{entry_id}`. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String dataset; - - /** - * Output only. Total number of shards. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long shardCount; - - /** - * Output only. The table name prefix of the shards. The name of any given shard is - * `[table_prefix]YYYYMMDD`, for example, for shard `MyTable20180101`, the `table_prefix` is - * `MyTable`. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String tablePrefix; - - /** - * Output only. The Data Catalog resource name of the dataset entry the current table belongs to, - * for example, - * `projects/{project_id}/locations/{location}/entrygroups/{entry_group_id}/entries/{entry_id}`. - * @return value or {@code null} for none - */ - public java.lang.String getDataset() { - return dataset; - } - - /** - * Output only. The Data Catalog resource name of the dataset entry the current table belongs to, - * for example, - * `projects/{project_id}/locations/{location}/entrygroups/{entry_group_id}/entries/{entry_id}`. - * @param dataset dataset or {@code null} for none - */ - public GoogleCloudDatacatalogV1beta1BigQueryDateShardedSpec setDataset(java.lang.String dataset) { - this.dataset = dataset; - return this; - } - - /** - * Output only. Total number of shards. - * @return value or {@code null} for none - */ - public java.lang.Long getShardCount() { - return shardCount; - } - - /** - * Output only. Total number of shards. - * @param shardCount shardCount or {@code null} for none - */ - public GoogleCloudDatacatalogV1beta1BigQueryDateShardedSpec setShardCount(java.lang.Long shardCount) { - this.shardCount = shardCount; - return this; - } - - /** - * Output only. The table name prefix of the shards. The name of any given shard is - * `[table_prefix]YYYYMMDD`, for example, for shard `MyTable20180101`, the `table_prefix` is - * `MyTable`. - * @return value or {@code null} for none - */ - public java.lang.String getTablePrefix() { - return tablePrefix; - } - - /** - * Output only. The table name prefix of the shards. The name of any given shard is - * `[table_prefix]YYYYMMDD`, for example, for shard `MyTable20180101`, the `table_prefix` is - * `MyTable`. - * @param tablePrefix tablePrefix or {@code null} for none - */ - public GoogleCloudDatacatalogV1beta1BigQueryDateShardedSpec setTablePrefix(java.lang.String tablePrefix) { - this.tablePrefix = tablePrefix; - return this; - } - - @Override - public GoogleCloudDatacatalogV1beta1BigQueryDateShardedSpec set(String fieldName, Object value) { - return (GoogleCloudDatacatalogV1beta1BigQueryDateShardedSpec) super.set(fieldName, value); - } - - @Override - public GoogleCloudDatacatalogV1beta1BigQueryDateShardedSpec clone() { - return (GoogleCloudDatacatalogV1beta1BigQueryDateShardedSpec) super.clone(); - } - -} diff --git a/clients/google-api-services-datacatalog/v1beta1/2.0.0/com/google/api/services/datacatalog/v1beta1/model/GoogleCloudDatacatalogV1beta1BigQueryTableSpec.java b/clients/google-api-services-datacatalog/v1beta1/2.0.0/com/google/api/services/datacatalog/v1beta1/model/GoogleCloudDatacatalogV1beta1BigQueryTableSpec.java deleted file mode 100644 index d482392165a..00000000000 --- a/clients/google-api-services-datacatalog/v1beta1/2.0.0/com/google/api/services/datacatalog/v1beta1/model/GoogleCloudDatacatalogV1beta1BigQueryTableSpec.java +++ /dev/null @@ -1,121 +0,0 @@ -/* - * 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.datacatalog.v1beta1.model; - -/** - * Describes a BigQuery table. - * - *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 Google Cloud Data Catalog 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 GoogleCloudDatacatalogV1beta1BigQueryTableSpec extends com.google.api.client.json.GenericJson { - - /** - * Output only. The table source type. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String tableSourceType; - - /** - * Spec of a BigQuery table. This field should only be populated if `table_source_type` is - * `BIGQUERY_TABLE`. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private GoogleCloudDatacatalogV1beta1TableSpec tableSpec; - - /** - * Table view specification. This field should only be populated if `table_source_type` is - * `BIGQUERY_VIEW`. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private GoogleCloudDatacatalogV1beta1ViewSpec viewSpec; - - /** - * Output only. The table source type. - * @return value or {@code null} for none - */ - public java.lang.String getTableSourceType() { - return tableSourceType; - } - - /** - * Output only. The table source type. - * @param tableSourceType tableSourceType or {@code null} for none - */ - public GoogleCloudDatacatalogV1beta1BigQueryTableSpec setTableSourceType(java.lang.String tableSourceType) { - this.tableSourceType = tableSourceType; - return this; - } - - /** - * Spec of a BigQuery table. This field should only be populated if `table_source_type` is - * `BIGQUERY_TABLE`. - * @return value or {@code null} for none - */ - public GoogleCloudDatacatalogV1beta1TableSpec getTableSpec() { - return tableSpec; - } - - /** - * Spec of a BigQuery table. This field should only be populated if `table_source_type` is - * `BIGQUERY_TABLE`. - * @param tableSpec tableSpec or {@code null} for none - */ - public GoogleCloudDatacatalogV1beta1BigQueryTableSpec setTableSpec(GoogleCloudDatacatalogV1beta1TableSpec tableSpec) { - this.tableSpec = tableSpec; - return this; - } - - /** - * Table view specification. This field should only be populated if `table_source_type` is - * `BIGQUERY_VIEW`. - * @return value or {@code null} for none - */ - public GoogleCloudDatacatalogV1beta1ViewSpec getViewSpec() { - return viewSpec; - } - - /** - * Table view specification. This field should only be populated if `table_source_type` is - * `BIGQUERY_VIEW`. - * @param viewSpec viewSpec or {@code null} for none - */ - public GoogleCloudDatacatalogV1beta1BigQueryTableSpec setViewSpec(GoogleCloudDatacatalogV1beta1ViewSpec viewSpec) { - this.viewSpec = viewSpec; - return this; - } - - @Override - public GoogleCloudDatacatalogV1beta1BigQueryTableSpec set(String fieldName, Object value) { - return (GoogleCloudDatacatalogV1beta1BigQueryTableSpec) super.set(fieldName, value); - } - - @Override - public GoogleCloudDatacatalogV1beta1BigQueryTableSpec clone() { - return (GoogleCloudDatacatalogV1beta1BigQueryTableSpec) super.clone(); - } - -} diff --git a/clients/google-api-services-datacatalog/v1beta1/2.0.0/com/google/api/services/datacatalog/v1beta1/model/GoogleCloudDatacatalogV1beta1ColumnSchema.java b/clients/google-api-services-datacatalog/v1beta1/2.0.0/com/google/api/services/datacatalog/v1beta1/model/GoogleCloudDatacatalogV1beta1ColumnSchema.java deleted file mode 100644 index aedf0d724ba..00000000000 --- a/clients/google-api-services-datacatalog/v1beta1/2.0.0/com/google/api/services/datacatalog/v1beta1/model/GoogleCloudDatacatalogV1beta1ColumnSchema.java +++ /dev/null @@ -1,166 +0,0 @@ -/* - * 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.datacatalog.v1beta1.model; - -/** - * Representation of a column within a schema. Columns could be nested inside other columns. - * - *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 Google Cloud Data Catalog 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 GoogleCloudDatacatalogV1beta1ColumnSchema extends com.google.api.client.json.GenericJson { - - /** - * Required. Name of the column. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String column; - - /** - * Optional. Description of the column. Default value is an empty string. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * Optional. A column's mode indicates whether the values in this column are required, nullable, - * etc. Only `NULLABLE`, `REQUIRED` and `REPEATED` are supported. Default mode is `NULLABLE`. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String mode; - - /** - * Optional. Schema of sub-columns. A column can have zero or more sub-columns. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is - * transmitted over HTTP when working with the Google Cloud Data Catalog 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 GoogleCloudDatacatalogV1beta1Entry extends com.google.api.client.json.GenericJson { - - /** - * Specification for a group of BigQuery tables with name pattern `[prefix]YYYYMMDD`. Context: - * https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private GoogleCloudDatacatalogV1beta1BigQueryDateShardedSpec bigqueryDateShardedSpec; - - /** - * Specification that applies to a BigQuery table. This is only valid on entries of type `TABLE`. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private GoogleCloudDatacatalogV1beta1BigQueryTableSpec bigqueryTableSpec; - - /** - * Entry description, which can consist of several sentences or paragraphs that describe entry - * contents. Default value is an empty string. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * Display information such as title and description. A short name to identify the entry, for - * example, "Analytics Data - Jan 2011". Default value is an empty string. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String displayName; - - /** - * Specification that applies to a Cloud Storage fileset. This is only valid on entries of type - * FILESET. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private GoogleCloudDatacatalogV1beta1GcsFilesetSpec gcsFilesetSpec; - - /** - * Output only. This field indicates the entry's source system that Data Catalog integrates with, - * such as BigQuery or Pub/Sub. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String integratedSystem; - - /** - * The resource this metadata entry refers to. For Google Cloud Platform resources, - * `linked_resource` is the [full name of the - * resource](https://cloud.google.com/apis/design/resource_names#full_resource_name). For example, - * the `linked_resource` for a table resource from BigQuery is: * - * //bigquery.googleapis.com/projects/projectId/datasets/datasetId/tables/tableId Output only when - * Entry is of type in the EntryType enum. For entries with user_specified_type, this field is - * optional and defaults to an empty string. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String linkedResource; - - /** - * Output only. Identifier. The Data Catalog resource name of the entry in URL format. Example: * - * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id} Note - * that this Entry and its child resources may not actually be stored in the location in this - * name. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * Schema of the entry. An entry might not have any schema attached to it. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private GoogleCloudDatacatalogV1beta1Schema schema; - - /** - * Output only. Timestamps about the underlying resource, not about this Data Catalog entry. - * Output only when Entry is of type in the EntryType enum. For entries with user_specified_type, - * this field is optional and defaults to an empty timestamp. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private GoogleCloudDatacatalogV1beta1SystemTimestamps sourceSystemTimestamps; - - /** - * The type of the entry. Only used for Entries with types in the EntryType enum. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String type; - - /** - * Output only. Statistics on the usage level of the resource. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private GoogleCloudDatacatalogV1beta1UsageSignal usageSignal; - - /** - * This field indicates the entry's source system that Data Catalog does not integrate with. - * `user_specified_system` strings must begin with a letter or underscore and can only contain - * letters, numbers, and underscores; are case insensitive; must be at least 1 character and at - * most 64 characters long. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String userSpecifiedSystem; - - /** - * Entry type if it does not fit any of the input-allowed values listed in `EntryType` enum above. - * When creating an entry, users should check the enum values first, if nothing matches the entry - * to be created, then provide a custom value, for example "my_special_type". - * `user_specified_type` strings must begin with a letter or underscore and can only contain - * letters, numbers, and underscores; are case insensitive; must be at least 1 character and at - * most 64 characters long. Currently, only FILESET enum value is allowed. All other entries - * created through Data Catalog must use `user_specified_type`. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String userSpecifiedType; - - /** - * Specification for a group of BigQuery tables with name pattern `[prefix]YYYYMMDD`. Context: - * https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding. - * @return value or {@code null} for none - */ - public GoogleCloudDatacatalogV1beta1BigQueryDateShardedSpec getBigqueryDateShardedSpec() { - return bigqueryDateShardedSpec; - } - - /** - * Specification for a group of BigQuery tables with name pattern `[prefix]YYYYMMDD`. Context: - * https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding. - * @param bigqueryDateShardedSpec bigqueryDateShardedSpec or {@code null} for none - */ - public GoogleCloudDatacatalogV1beta1Entry setBigqueryDateShardedSpec(GoogleCloudDatacatalogV1beta1BigQueryDateShardedSpec bigqueryDateShardedSpec) { - this.bigqueryDateShardedSpec = bigqueryDateShardedSpec; - return this; - } - - /** - * Specification that applies to a BigQuery table. This is only valid on entries of type `TABLE`. - * @return value or {@code null} for none - */ - public GoogleCloudDatacatalogV1beta1BigQueryTableSpec getBigqueryTableSpec() { - return bigqueryTableSpec; - } - - /** - * Specification that applies to a BigQuery table. This is only valid on entries of type `TABLE`. - * @param bigqueryTableSpec bigqueryTableSpec or {@code null} for none - */ - public GoogleCloudDatacatalogV1beta1Entry setBigqueryTableSpec(GoogleCloudDatacatalogV1beta1BigQueryTableSpec bigqueryTableSpec) { - this.bigqueryTableSpec = bigqueryTableSpec; - return this; - } - - /** - * Entry description, which can consist of several sentences or paragraphs that describe entry - * contents. Default value is an empty string. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * Entry description, which can consist of several sentences or paragraphs that describe entry - * contents. Default value is an empty string. - * @param description description or {@code null} for none - */ - public GoogleCloudDatacatalogV1beta1Entry setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * Display information such as title and description. A short name to identify the entry, for - * example, "Analytics Data - Jan 2011". Default value is an empty string. - * @return value or {@code null} for none - */ - public java.lang.String getDisplayName() { - return displayName; - } - - /** - * Display information such as title and description. A short name to identify the entry, for - * example, "Analytics Data - Jan 2011". Default value is an empty string. - * @param displayName displayName or {@code null} for none - */ - public GoogleCloudDatacatalogV1beta1Entry setDisplayName(java.lang.String displayName) { - this.displayName = displayName; - return this; - } - - /** - * Specification that applies to a Cloud Storage fileset. This is only valid on entries of type - * FILESET. - * @return value or {@code null} for none - */ - public GoogleCloudDatacatalogV1beta1GcsFilesetSpec getGcsFilesetSpec() { - return gcsFilesetSpec; - } - - /** - * Specification that applies to a Cloud Storage fileset. This is only valid on entries of type - * FILESET. - * @param gcsFilesetSpec gcsFilesetSpec or {@code null} for none - */ - public GoogleCloudDatacatalogV1beta1Entry setGcsFilesetSpec(GoogleCloudDatacatalogV1beta1GcsFilesetSpec gcsFilesetSpec) { - this.gcsFilesetSpec = gcsFilesetSpec; - return this; - } - - /** - * Output only. This field indicates the entry's source system that Data Catalog integrates with, - * such as BigQuery or Pub/Sub. - * @return value or {@code null} for none - */ - public java.lang.String getIntegratedSystem() { - return integratedSystem; - } - - /** - * Output only. This field indicates the entry's source system that Data Catalog integrates with, - * such as BigQuery or Pub/Sub. - * @param integratedSystem integratedSystem or {@code null} for none - */ - public GoogleCloudDatacatalogV1beta1Entry setIntegratedSystem(java.lang.String integratedSystem) { - this.integratedSystem = integratedSystem; - return this; - } - - /** - * The resource this metadata entry refers to. For Google Cloud Platform resources, - * `linked_resource` is the [full name of the - * resource](https://cloud.google.com/apis/design/resource_names#full_resource_name). For example, - * the `linked_resource` for a table resource from BigQuery is: * - * //bigquery.googleapis.com/projects/projectId/datasets/datasetId/tables/tableId Output only when - * Entry is of type in the EntryType enum. For entries with user_specified_type, this field is - * optional and defaults to an empty string. - * @return value or {@code null} for none - */ - public java.lang.String getLinkedResource() { - return linkedResource; - } - - /** - * The resource this metadata entry refers to. For Google Cloud Platform resources, - * `linked_resource` is the [full name of the - * resource](https://cloud.google.com/apis/design/resource_names#full_resource_name). For example, - * the `linked_resource` for a table resource from BigQuery is: * - * //bigquery.googleapis.com/projects/projectId/datasets/datasetId/tables/tableId Output only when - * Entry is of type in the EntryType enum. For entries with user_specified_type, this field is - * optional and defaults to an empty string. - * @param linkedResource linkedResource or {@code null} for none - */ - public GoogleCloudDatacatalogV1beta1Entry setLinkedResource(java.lang.String linkedResource) { - this.linkedResource = linkedResource; - return this; - } - - /** - * Output only. Identifier. The Data Catalog resource name of the entry in URL format. Example: * - * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id} Note - * that this Entry and its child resources may not actually be stored in the location in this - * name. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * Output only. Identifier. The Data Catalog resource name of the entry in URL format. Example: * - * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id} Note - * that this Entry and its child resources may not actually be stored in the location in this - * name. - * @param name name or {@code null} for none - */ - public GoogleCloudDatacatalogV1beta1Entry setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * Schema of the entry. An entry might not have any schema attached to it. - * @return value or {@code null} for none - */ - public GoogleCloudDatacatalogV1beta1Schema getSchema() { - return schema; - } - - /** - * Schema of the entry. An entry might not have any schema attached to it. - * @param schema schema or {@code null} for none - */ - public GoogleCloudDatacatalogV1beta1Entry setSchema(GoogleCloudDatacatalogV1beta1Schema schema) { - this.schema = schema; - return this; - } - - /** - * Output only. Timestamps about the underlying resource, not about this Data Catalog entry. - * Output only when Entry is of type in the EntryType enum. For entries with user_specified_type, - * this field is optional and defaults to an empty timestamp. - * @return value or {@code null} for none - */ - public GoogleCloudDatacatalogV1beta1SystemTimestamps getSourceSystemTimestamps() { - return sourceSystemTimestamps; - } - - /** - * Output only. Timestamps about the underlying resource, not about this Data Catalog entry. - * Output only when Entry is of type in the EntryType enum. For entries with user_specified_type, - * this field is optional and defaults to an empty timestamp. - * @param sourceSystemTimestamps sourceSystemTimestamps or {@code null} for none - */ - public GoogleCloudDatacatalogV1beta1Entry setSourceSystemTimestamps(GoogleCloudDatacatalogV1beta1SystemTimestamps sourceSystemTimestamps) { - this.sourceSystemTimestamps = sourceSystemTimestamps; - return this; - } - - /** - * The type of the entry. Only used for Entries with types in the EntryType enum. - * @return value or {@code null} for none - */ - public java.lang.String getType() { - return type; - } - - /** - * The type of the entry. Only used for Entries with types in the EntryType enum. - * @param type type or {@code null} for none - */ - public GoogleCloudDatacatalogV1beta1Entry setType(java.lang.String type) { - this.type = type; - return this; - } - - /** - * Output only. Statistics on the usage level of the resource. - * @return value or {@code null} for none - */ - public GoogleCloudDatacatalogV1beta1UsageSignal getUsageSignal() { - return usageSignal; - } - - /** - * Output only. Statistics on the usage level of the resource. - * @param usageSignal usageSignal or {@code null} for none - */ - public GoogleCloudDatacatalogV1beta1Entry setUsageSignal(GoogleCloudDatacatalogV1beta1UsageSignal usageSignal) { - this.usageSignal = usageSignal; - return this; - } - - /** - * This field indicates the entry's source system that Data Catalog does not integrate with. - * `user_specified_system` strings must begin with a letter or underscore and can only contain - * letters, numbers, and underscores; are case insensitive; must be at least 1 character and at - * most 64 characters long. - * @return value or {@code null} for none - */ - public java.lang.String getUserSpecifiedSystem() { - return userSpecifiedSystem; - } - - /** - * This field indicates the entry's source system that Data Catalog does not integrate with. - * `user_specified_system` strings must begin with a letter or underscore and can only contain - * letters, numbers, and underscores; are case insensitive; must be at least 1 character and at - * most 64 characters long. - * @param userSpecifiedSystem userSpecifiedSystem or {@code null} for none - */ - public GoogleCloudDatacatalogV1beta1Entry setUserSpecifiedSystem(java.lang.String userSpecifiedSystem) { - this.userSpecifiedSystem = userSpecifiedSystem; - return this; - } - - /** - * Entry type if it does not fit any of the input-allowed values listed in `EntryType` enum above. - * When creating an entry, users should check the enum values first, if nothing matches the entry - * to be created, then provide a custom value, for example "my_special_type". - * `user_specified_type` strings must begin with a letter or underscore and can only contain - * letters, numbers, and underscores; are case insensitive; must be at least 1 character and at - * most 64 characters long. Currently, only FILESET enum value is allowed. All other entries - * created through Data Catalog must use `user_specified_type`. - * @return value or {@code null} for none - */ - public java.lang.String getUserSpecifiedType() { - return userSpecifiedType; - } - - /** - * Entry type if it does not fit any of the input-allowed values listed in `EntryType` enum above. - * When creating an entry, users should check the enum values first, if nothing matches the entry - * to be created, then provide a custom value, for example "my_special_type". - * `user_specified_type` strings must begin with a letter or underscore and can only contain - * letters, numbers, and underscores; are case insensitive; must be at least 1 character and at - * most 64 characters long. Currently, only FILESET enum value is allowed. All other entries - * created through Data Catalog must use `user_specified_type`. - * @param userSpecifiedType userSpecifiedType or {@code null} for none - */ - public GoogleCloudDatacatalogV1beta1Entry setUserSpecifiedType(java.lang.String userSpecifiedType) { - this.userSpecifiedType = userSpecifiedType; - return this; - } - - @Override - public GoogleCloudDatacatalogV1beta1Entry set(String fieldName, Object value) { - return (GoogleCloudDatacatalogV1beta1Entry) super.set(fieldName, value); - } - - @Override - public GoogleCloudDatacatalogV1beta1Entry clone() { - return (GoogleCloudDatacatalogV1beta1Entry) super.clone(); - } - -} diff --git a/clients/google-api-services-datacatalog/v1beta1/2.0.0/com/google/api/services/datacatalog/v1beta1/model/GoogleCloudDatacatalogV1beta1EntryGroup.java b/clients/google-api-services-datacatalog/v1beta1/2.0.0/com/google/api/services/datacatalog/v1beta1/model/GoogleCloudDatacatalogV1beta1EntryGroup.java deleted file mode 100644 index 006ff224583..00000000000 --- a/clients/google-api-services-datacatalog/v1beta1/2.0.0/com/google/api/services/datacatalog/v1beta1/model/GoogleCloudDatacatalogV1beta1EntryGroup.java +++ /dev/null @@ -1,152 +0,0 @@ -/* - * 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.datacatalog.v1beta1.model; - -/** - * EntryGroup Metadata. An EntryGroup resource represents a logical grouping of zero or more Data - * Catalog Entry resources. - * - *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 Google Cloud Data Catalog 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 GoogleCloudDatacatalogV1beta1EntryGroup extends com.google.api.client.json.GenericJson { - - /** - * Output only. Timestamps about this EntryGroup. Default value is empty timestamps. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private GoogleCloudDatacatalogV1beta1SystemTimestamps dataCatalogTimestamps; - - /** - * Entry group description, which can consist of several sentences or paragraphs that describe - * entry group contents. Default value is an empty string. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * A short name to identify the entry group, for example, "analytics data - jan 2011". Default - * value is an empty string. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String displayName; - - /** - * Identifier. The resource name of the entry group in URL format. Example: * - * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id} Note that this - * EntryGroup and its child resources may not actually be stored in the location in this name. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * Output only. Timestamps about this EntryGroup. Default value is empty timestamps. - * @return value or {@code null} for none - */ - public GoogleCloudDatacatalogV1beta1SystemTimestamps getDataCatalogTimestamps() { - return dataCatalogTimestamps; - } - - /** - * Output only. Timestamps about this EntryGroup. Default value is empty timestamps. - * @param dataCatalogTimestamps dataCatalogTimestamps or {@code null} for none - */ - public GoogleCloudDatacatalogV1beta1EntryGroup setDataCatalogTimestamps(GoogleCloudDatacatalogV1beta1SystemTimestamps dataCatalogTimestamps) { - this.dataCatalogTimestamps = dataCatalogTimestamps; - return this; - } - - /** - * Entry group description, which can consist of several sentences or paragraphs that describe - * entry group contents. Default value is an empty string. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * Entry group description, which can consist of several sentences or paragraphs that describe - * entry group contents. Default value is an empty string. - * @param description description or {@code null} for none - */ - public GoogleCloudDatacatalogV1beta1EntryGroup setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * A short name to identify the entry group, for example, "analytics data - jan 2011". Default - * value is an empty string. - * @return value or {@code null} for none - */ - public java.lang.String getDisplayName() { - return displayName; - } - - /** - * A short name to identify the entry group, for example, "analytics data - jan 2011". Default - * value is an empty string. - * @param displayName displayName or {@code null} for none - */ - public GoogleCloudDatacatalogV1beta1EntryGroup setDisplayName(java.lang.String displayName) { - this.displayName = displayName; - return this; - } - - /** - * Identifier. The resource name of the entry group in URL format. Example: * - * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id} Note that this - * EntryGroup and its child resources may not actually be stored in the location in this name. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * Identifier. The resource name of the entry group in URL format. Example: * - * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id} Note that this - * EntryGroup and its child resources may not actually be stored in the location in this name. - * @param name name or {@code null} for none - */ - public GoogleCloudDatacatalogV1beta1EntryGroup setName(java.lang.String name) { - this.name = name; - return this; - } - - @Override - public GoogleCloudDatacatalogV1beta1EntryGroup set(String fieldName, Object value) { - return (GoogleCloudDatacatalogV1beta1EntryGroup) super.set(fieldName, value); - } - - @Override - public GoogleCloudDatacatalogV1beta1EntryGroup clone() { - return (GoogleCloudDatacatalogV1beta1EntryGroup) super.clone(); - } - -} diff --git a/clients/google-api-services-datacatalog/v1beta1/2.0.0/com/google/api/services/datacatalog/v1beta1/model/GoogleCloudDatacatalogV1beta1FieldType.java b/clients/google-api-services-datacatalog/v1beta1/2.0.0/com/google/api/services/datacatalog/v1beta1/model/GoogleCloudDatacatalogV1beta1FieldType.java deleted file mode 100644 index 65005524394..00000000000 --- a/clients/google-api-services-datacatalog/v1beta1/2.0.0/com/google/api/services/datacatalog/v1beta1/model/GoogleCloudDatacatalogV1beta1FieldType.java +++ /dev/null @@ -1,91 +0,0 @@ -/* - * 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.datacatalog.v1beta1.model; - -/** - * Model definition for GoogleCloudDatacatalogV1beta1FieldType. - * - *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 Google Cloud Data Catalog 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 GoogleCloudDatacatalogV1beta1FieldType extends com.google.api.client.json.GenericJson { - - /** - * Represents an enum type. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private GoogleCloudDatacatalogV1beta1FieldTypeEnumType enumType; - - /** - * Represents primitive types - string, bool etc. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String primitiveType; - - /** - * Represents an enum type. - * @return value or {@code null} for none - */ - public GoogleCloudDatacatalogV1beta1FieldTypeEnumType getEnumType() { - return enumType; - } - - /** - * Represents an enum type. - * @param enumType enumType or {@code null} for none - */ - public GoogleCloudDatacatalogV1beta1FieldType setEnumType(GoogleCloudDatacatalogV1beta1FieldTypeEnumType enumType) { - this.enumType = enumType; - return this; - } - - /** - * Represents primitive types - string, bool etc. - * @return value or {@code null} for none - */ - public java.lang.String getPrimitiveType() { - return primitiveType; - } - - /** - * Represents primitive types - string, bool etc. - * @param primitiveType primitiveType or {@code null} for none - */ - public GoogleCloudDatacatalogV1beta1FieldType setPrimitiveType(java.lang.String primitiveType) { - this.primitiveType = primitiveType; - return this; - } - - @Override - public GoogleCloudDatacatalogV1beta1FieldType set(String fieldName, Object value) { - return (GoogleCloudDatacatalogV1beta1FieldType) super.set(fieldName, value); - } - - @Override - public GoogleCloudDatacatalogV1beta1FieldType clone() { - return (GoogleCloudDatacatalogV1beta1FieldType) super.clone(); - } - -} diff --git a/clients/google-api-services-datacatalog/v1beta1/2.0.0/com/google/api/services/datacatalog/v1beta1/model/GoogleCloudDatacatalogV1beta1FieldTypeEnumType.java b/clients/google-api-services-datacatalog/v1beta1/2.0.0/com/google/api/services/datacatalog/v1beta1/model/GoogleCloudDatacatalogV1beta1FieldTypeEnumType.java deleted file mode 100644 index 75f7bf69859..00000000000 --- a/clients/google-api-services-datacatalog/v1beta1/2.0.0/com/google/api/services/datacatalog/v1beta1/model/GoogleCloudDatacatalogV1beta1FieldTypeEnumType.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * 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.datacatalog.v1beta1.model; - -/** - * Model definition for GoogleCloudDatacatalogV1beta1FieldTypeEnumType. - * - *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 Google Cloud Data Catalog 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 GoogleCloudDatacatalogV1beta1FieldTypeEnumType extends com.google.api.client.json.GenericJson { - - /** - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is - * transmitted over HTTP when working with the Google Cloud Data Catalog 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 GoogleCloudDatacatalogV1beta1FieldTypeEnumTypeEnumValue extends com.google.api.client.json.GenericJson { - - /** - * Required. The display name of the enum value. Must not be an empty string. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String displayName; - - /** - * Required. The display name of the enum value. Must not be an empty string. - * @return value or {@code null} for none - */ - public java.lang.String getDisplayName() { - return displayName; - } - - /** - * Required. The display name of the enum value. Must not be an empty string. - * @param displayName displayName or {@code null} for none - */ - public GoogleCloudDatacatalogV1beta1FieldTypeEnumTypeEnumValue setDisplayName(java.lang.String displayName) { - this.displayName = displayName; - return this; - } - - @Override - public GoogleCloudDatacatalogV1beta1FieldTypeEnumTypeEnumValue set(String fieldName, Object value) { - return (GoogleCloudDatacatalogV1beta1FieldTypeEnumTypeEnumValue) super.set(fieldName, value); - } - - @Override - public GoogleCloudDatacatalogV1beta1FieldTypeEnumTypeEnumValue clone() { - return (GoogleCloudDatacatalogV1beta1FieldTypeEnumTypeEnumValue) super.clone(); - } - -} diff --git a/clients/google-api-services-datacatalog/v1beta1/2.0.0/com/google/api/services/datacatalog/v1beta1/model/GoogleCloudDatacatalogV1beta1GcsFileSpec.java b/clients/google-api-services-datacatalog/v1beta1/2.0.0/com/google/api/services/datacatalog/v1beta1/model/GoogleCloudDatacatalogV1beta1GcsFileSpec.java deleted file mode 100644 index 0f99cafafab..00000000000 --- a/clients/google-api-services-datacatalog/v1beta1/2.0.0/com/google/api/services/datacatalog/v1beta1/model/GoogleCloudDatacatalogV1beta1GcsFileSpec.java +++ /dev/null @@ -1,115 +0,0 @@ -/* - * 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.datacatalog.v1beta1.model; - -/** - * Specifications of a single file in Cloud Storage. - * - *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 Google Cloud Data Catalog 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 GoogleCloudDatacatalogV1beta1GcsFileSpec extends com.google.api.client.json.GenericJson { - - /** - * Required. The full file path. Example: `gs://bucket_name/a/b.txt`. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String filePath; - - /** - * Output only. Timestamps about the Cloud Storage file. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private GoogleCloudDatacatalogV1beta1SystemTimestamps gcsTimestamps; - - /** - * Output only. The size of the file, in bytes. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key @com.google.api.client.json.JsonString - private java.lang.Long sizeBytes; - - /** - * Required. The full file path. Example: `gs://bucket_name/a/b.txt`. - * @return value or {@code null} for none - */ - public java.lang.String getFilePath() { - return filePath; - } - - /** - * Required. The full file path. Example: `gs://bucket_name/a/b.txt`. - * @param filePath filePath or {@code null} for none - */ - public GoogleCloudDatacatalogV1beta1GcsFileSpec setFilePath(java.lang.String filePath) { - this.filePath = filePath; - return this; - } - - /** - * Output only. Timestamps about the Cloud Storage file. - * @return value or {@code null} for none - */ - public GoogleCloudDatacatalogV1beta1SystemTimestamps getGcsTimestamps() { - return gcsTimestamps; - } - - /** - * Output only. Timestamps about the Cloud Storage file. - * @param gcsTimestamps gcsTimestamps or {@code null} for none - */ - public GoogleCloudDatacatalogV1beta1GcsFileSpec setGcsTimestamps(GoogleCloudDatacatalogV1beta1SystemTimestamps gcsTimestamps) { - this.gcsTimestamps = gcsTimestamps; - return this; - } - - /** - * Output only. The size of the file, in bytes. - * @return value or {@code null} for none - */ - public java.lang.Long getSizeBytes() { - return sizeBytes; - } - - /** - * Output only. The size of the file, in bytes. - * @param sizeBytes sizeBytes or {@code null} for none - */ - public GoogleCloudDatacatalogV1beta1GcsFileSpec setSizeBytes(java.lang.Long sizeBytes) { - this.sizeBytes = sizeBytes; - return this; - } - - @Override - public GoogleCloudDatacatalogV1beta1GcsFileSpec set(String fieldName, Object value) { - return (GoogleCloudDatacatalogV1beta1GcsFileSpec) super.set(fieldName, value); - } - - @Override - public GoogleCloudDatacatalogV1beta1GcsFileSpec clone() { - return (GoogleCloudDatacatalogV1beta1GcsFileSpec) super.clone(); - } - -} diff --git a/clients/google-api-services-datacatalog/v1beta1/2.0.0/com/google/api/services/datacatalog/v1beta1/model/GoogleCloudDatacatalogV1beta1GcsFilesetSpec.java b/clients/google-api-services-datacatalog/v1beta1/2.0.0/com/google/api/services/datacatalog/v1beta1/model/GoogleCloudDatacatalogV1beta1GcsFilesetSpec.java deleted file mode 100644 index 7591cc6d4b1..00000000000 --- a/clients/google-api-services-datacatalog/v1beta1/2.0.0/com/google/api/services/datacatalog/v1beta1/model/GoogleCloudDatacatalogV1beta1GcsFilesetSpec.java +++ /dev/null @@ -1,136 +0,0 @@ -/* - * 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.datacatalog.v1beta1.model; - -/** - * Describes a Cloud Storage fileset entry. - * - *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 Google Cloud Data Catalog 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 GoogleCloudDatacatalogV1beta1GcsFilesetSpec extends com.google.api.client.json.GenericJson { - - /** - * Required. Patterns to identify a set of files in Google Cloud Storage. See [Cloud Storage - * documentation](https://cloud.google.com/storage/docs/wildcards) for more information. Note that - * bucket wildcards are currently not supported. Examples of valid file_patterns: * - * `gs://bucket_name/dir`: matches all files within `bucket_name/dir` directory. * - * `gs://bucket_name/dir*`: matches all files in `bucket_name/dir` spanning all subdirectories. * - * `gs://bucket_name/file*`: matches files prefixed by `file` in `bucket_name` * - * `gs://bucket_name/??.txt`: matches files with two characters followed by `.txt` in - * `bucket_name` * `gs://bucket_name/[aeiou].txt`: matches files that contain a single vowel - * character followed by `.txt` in `bucket_name` * `gs://bucket_name/[a-m].txt`: matches files - * that contain `a`, `b`, ... or `m` followed by `.txt` in `bucket_name` * `gs://bucket_name/a/b`: - * matches all files in `bucket_name` that match `a/b` pattern, such as `a/c/b`, `a/d/b` * - * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt` You can combine wildcards to - * provide more powerful matches, for example: * `gs://bucket_name/[a-m]??.j*g` - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is - * transmitted over HTTP when working with the Google Cloud Data Catalog 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 GoogleCloudDatacatalogV1beta1ListEntriesResponse extends com.google.api.client.json.GenericJson { - - /** - * Entry details. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is - * transmitted over HTTP when working with the Google Cloud Data Catalog 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 GoogleCloudDatacatalogV1beta1ListEntryGroupsResponse extends com.google.api.client.json.GenericJson { - - /** - * EntryGroup details. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is - * transmitted over HTTP when working with the Google Cloud Data Catalog 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 GoogleCloudDatacatalogV1beta1ListTagsResponse extends com.google.api.client.json.GenericJson { - - /** - * Token to retrieve the next page of results. It is set to empty if no items remain in results. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String nextPageToken; - - /** - * Tag details. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is - * transmitted over HTTP when working with the Google Cloud Data Catalog 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 GoogleCloudDatacatalogV1beta1RenameTagTemplateFieldEnumValueRequest extends com.google.api.client.json.GenericJson { - - /** - * Required. The new display name of the enum value. For example, `my_new_enum_value`. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String newEnumValueDisplayName; - - /** - * Required. The new display name of the enum value. For example, `my_new_enum_value`. - * @return value or {@code null} for none - */ - public java.lang.String getNewEnumValueDisplayName() { - return newEnumValueDisplayName; - } - - /** - * Required. The new display name of the enum value. For example, `my_new_enum_value`. - * @param newEnumValueDisplayName newEnumValueDisplayName or {@code null} for none - */ - public GoogleCloudDatacatalogV1beta1RenameTagTemplateFieldEnumValueRequest setNewEnumValueDisplayName(java.lang.String newEnumValueDisplayName) { - this.newEnumValueDisplayName = newEnumValueDisplayName; - return this; - } - - @Override - public GoogleCloudDatacatalogV1beta1RenameTagTemplateFieldEnumValueRequest set(String fieldName, Object value) { - return (GoogleCloudDatacatalogV1beta1RenameTagTemplateFieldEnumValueRequest) super.set(fieldName, value); - } - - @Override - public GoogleCloudDatacatalogV1beta1RenameTagTemplateFieldEnumValueRequest clone() { - return (GoogleCloudDatacatalogV1beta1RenameTagTemplateFieldEnumValueRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-datacatalog/v1beta1/2.0.0/com/google/api/services/datacatalog/v1beta1/model/GoogleCloudDatacatalogV1beta1RenameTagTemplateFieldRequest.java b/clients/google-api-services-datacatalog/v1beta1/2.0.0/com/google/api/services/datacatalog/v1beta1/model/GoogleCloudDatacatalogV1beta1RenameTagTemplateFieldRequest.java deleted file mode 100644 index 616c6236c6f..00000000000 --- a/clients/google-api-services-datacatalog/v1beta1/2.0.0/com/google/api/services/datacatalog/v1beta1/model/GoogleCloudDatacatalogV1beta1RenameTagTemplateFieldRequest.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * 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.datacatalog.v1beta1.model; - -/** - * Request message for RenameTagTemplateField. - * - *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 Google Cloud Data Catalog 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 GoogleCloudDatacatalogV1beta1RenameTagTemplateFieldRequest extends com.google.api.client.json.GenericJson { - - /** - * Required. The new ID of this tag template field. For example, `my_new_field`. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String newTagTemplateFieldId; - - /** - * Required. The new ID of this tag template field. For example, `my_new_field`. - * @return value or {@code null} for none - */ - public java.lang.String getNewTagTemplateFieldId() { - return newTagTemplateFieldId; - } - - /** - * Required. The new ID of this tag template field. For example, `my_new_field`. - * @param newTagTemplateFieldId newTagTemplateFieldId or {@code null} for none - */ - public GoogleCloudDatacatalogV1beta1RenameTagTemplateFieldRequest setNewTagTemplateFieldId(java.lang.String newTagTemplateFieldId) { - this.newTagTemplateFieldId = newTagTemplateFieldId; - return this; - } - - @Override - public GoogleCloudDatacatalogV1beta1RenameTagTemplateFieldRequest set(String fieldName, Object value) { - return (GoogleCloudDatacatalogV1beta1RenameTagTemplateFieldRequest) super.set(fieldName, value); - } - - @Override - public GoogleCloudDatacatalogV1beta1RenameTagTemplateFieldRequest clone() { - return (GoogleCloudDatacatalogV1beta1RenameTagTemplateFieldRequest) super.clone(); - } - -} diff --git a/clients/google-api-services-datacatalog/v1beta1/2.0.0/com/google/api/services/datacatalog/v1beta1/model/GoogleCloudDatacatalogV1beta1Schema.java b/clients/google-api-services-datacatalog/v1beta1/2.0.0/com/google/api/services/datacatalog/v1beta1/model/GoogleCloudDatacatalogV1beta1Schema.java deleted file mode 100644 index b56e9d7f444..00000000000 --- a/clients/google-api-services-datacatalog/v1beta1/2.0.0/com/google/api/services/datacatalog/v1beta1/model/GoogleCloudDatacatalogV1beta1Schema.java +++ /dev/null @@ -1,73 +0,0 @@ -/* - * 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.datacatalog.v1beta1.model; - -/** - * Represents a schema (e.g. BigQuery, GoogleSQL, Avro schema). - * - *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 Google Cloud Data Catalog 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 GoogleCloudDatacatalogV1beta1Schema extends com.google.api.client.json.GenericJson { - - /** - * Required. Schema of columns. A maximum of 10,000 columns and sub-columns can be specified. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.ListThis is the Java data model class that specifies how to parse/serialize into the JSON that is - * transmitted over HTTP when working with the Google Cloud Data Catalog 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 GoogleCloudDatacatalogV1beta1TableSpec extends com.google.api.client.json.GenericJson { - - /** - * Output only. If the table is a dated shard, i.e., with name pattern `[prefix]YYYYMMDD`, - * `grouped_entry` is the Data Catalog resource name of the date sharded grouped entry, for - * example, - * `projects/{project_id}/locations/{location}/entrygroups/{entry_group_id}/entries/{entry_id}`. - * Otherwise, `grouped_entry` is empty. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String groupedEntry; - - /** - * Output only. If the table is a dated shard, i.e., with name pattern `[prefix]YYYYMMDD`, - * `grouped_entry` is the Data Catalog resource name of the date sharded grouped entry, for - * example, - * `projects/{project_id}/locations/{location}/entrygroups/{entry_group_id}/entries/{entry_id}`. - * Otherwise, `grouped_entry` is empty. - * @return value or {@code null} for none - */ - public java.lang.String getGroupedEntry() { - return groupedEntry; - } - - /** - * Output only. If the table is a dated shard, i.e., with name pattern `[prefix]YYYYMMDD`, - * `grouped_entry` is the Data Catalog resource name of the date sharded grouped entry, for - * example, - * `projects/{project_id}/locations/{location}/entrygroups/{entry_group_id}/entries/{entry_id}`. - * Otherwise, `grouped_entry` is empty. - * @param groupedEntry groupedEntry or {@code null} for none - */ - public GoogleCloudDatacatalogV1beta1TableSpec setGroupedEntry(java.lang.String groupedEntry) { - this.groupedEntry = groupedEntry; - return this; - } - - @Override - public GoogleCloudDatacatalogV1beta1TableSpec set(String fieldName, Object value) { - return (GoogleCloudDatacatalogV1beta1TableSpec) super.set(fieldName, value); - } - - @Override - public GoogleCloudDatacatalogV1beta1TableSpec clone() { - return (GoogleCloudDatacatalogV1beta1TableSpec) super.clone(); - } - -} diff --git a/clients/google-api-services-datacatalog/v1beta1/2.0.0/com/google/api/services/datacatalog/v1beta1/model/GoogleCloudDatacatalogV1beta1Tag.java b/clients/google-api-services-datacatalog/v1beta1/2.0.0/com/google/api/services/datacatalog/v1beta1/model/GoogleCloudDatacatalogV1beta1Tag.java deleted file mode 100644 index 0a9ca06fffc..00000000000 --- a/clients/google-api-services-datacatalog/v1beta1/2.0.0/com/google/api/services/datacatalog/v1beta1/model/GoogleCloudDatacatalogV1beta1Tag.java +++ /dev/null @@ -1,192 +0,0 @@ -/* - * 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.datacatalog.v1beta1.model; - -/** - * Tags are used to attach custom metadata to Data Catalog resources. Tags conform to the - * specifications within their tag template. See [Data Catalog IAM](https://cloud.google.com/data- - * catalog/docs/concepts/iam) for information on the permissions needed to create or view tags. - * - *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 Google Cloud Data Catalog 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 GoogleCloudDatacatalogV1beta1Tag extends com.google.api.client.json.GenericJson { - - /** - * Resources like Entry can have schemas associated with them. This scope allows users to attach - * tags to an individual column based on that schema. For attaching a tag to a nested column, use - * `.` to separate the column names. Example: * `outer_column.inner_column` - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String column; - - /** - * Required. This maps the ID of a tag field to the value of and additional information about that - * field. Valid field IDs are defined by the tag's template. A tag must have at least 1 field and - * at most 500 fields. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.MapThis is the Java data model class that specifies how to parse/serialize into the JSON that is - * transmitted over HTTP when working with the Google Cloud Data Catalog 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 GoogleCloudDatacatalogV1beta1TagField extends com.google.api.client.json.GenericJson { - - /** - * Holds the value for a tag field with boolean type. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean boolValue; - - /** - * Output only. The display name of this field. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String displayName; - - /** - * Holds the value for a tag field with double type. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Double doubleValue; - - /** - * Holds the value for a tag field with enum type. This value must be one of the allowed values in - * the definition of this enum. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private GoogleCloudDatacatalogV1beta1TagFieldEnumValue enumValue; - - /** - * Output only. The order of this field with respect to other fields in this tag. It can be set in - * Tag. For example, a higher value can indicate a more important field. The value can be - * negative. Multiple fields can have the same order, and field orders within a tag do not have to - * be sequential. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer order; - - /** - * Holds the value for a tag field with string type. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String stringValue; - - /** - * Holds the value for a tag field with timestamp type. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private String timestampValue; - - /** - * Holds the value for a tag field with boolean type. - * @return value or {@code null} for none - */ - public java.lang.Boolean getBoolValue() { - return boolValue; - } - - /** - * Holds the value for a tag field with boolean type. - * @param boolValue boolValue or {@code null} for none - */ - public GoogleCloudDatacatalogV1beta1TagField setBoolValue(java.lang.Boolean boolValue) { - this.boolValue = boolValue; - return this; - } - - /** - * Output only. The display name of this field. - * @return value or {@code null} for none - */ - public java.lang.String getDisplayName() { - return displayName; - } - - /** - * Output only. The display name of this field. - * @param displayName displayName or {@code null} for none - */ - public GoogleCloudDatacatalogV1beta1TagField setDisplayName(java.lang.String displayName) { - this.displayName = displayName; - return this; - } - - /** - * Holds the value for a tag field with double type. - * @return value or {@code null} for none - */ - public java.lang.Double getDoubleValue() { - return doubleValue; - } - - /** - * Holds the value for a tag field with double type. - * @param doubleValue doubleValue or {@code null} for none - */ - public GoogleCloudDatacatalogV1beta1TagField setDoubleValue(java.lang.Double doubleValue) { - this.doubleValue = doubleValue; - return this; - } - - /** - * Holds the value for a tag field with enum type. This value must be one of the allowed values in - * the definition of this enum. - * @return value or {@code null} for none - */ - public GoogleCloudDatacatalogV1beta1TagFieldEnumValue getEnumValue() { - return enumValue; - } - - /** - * Holds the value for a tag field with enum type. This value must be one of the allowed values in - * the definition of this enum. - * @param enumValue enumValue or {@code null} for none - */ - public GoogleCloudDatacatalogV1beta1TagField setEnumValue(GoogleCloudDatacatalogV1beta1TagFieldEnumValue enumValue) { - this.enumValue = enumValue; - return this; - } - - /** - * Output only. The order of this field with respect to other fields in this tag. It can be set in - * Tag. For example, a higher value can indicate a more important field. The value can be - * negative. Multiple fields can have the same order, and field orders within a tag do not have to - * be sequential. - * @return value or {@code null} for none - */ - public java.lang.Integer getOrder() { - return order; - } - - /** - * Output only. The order of this field with respect to other fields in this tag. It can be set in - * Tag. For example, a higher value can indicate a more important field. The value can be - * negative. Multiple fields can have the same order, and field orders within a tag do not have to - * be sequential. - * @param order order or {@code null} for none - */ - public GoogleCloudDatacatalogV1beta1TagField setOrder(java.lang.Integer order) { - this.order = order; - return this; - } - - /** - * Holds the value for a tag field with string type. - * @return value or {@code null} for none - */ - public java.lang.String getStringValue() { - return stringValue; - } - - /** - * Holds the value for a tag field with string type. - * @param stringValue stringValue or {@code null} for none - */ - public GoogleCloudDatacatalogV1beta1TagField setStringValue(java.lang.String stringValue) { - this.stringValue = stringValue; - return this; - } - - /** - * Holds the value for a tag field with timestamp type. - * @return value or {@code null} for none - */ - public String getTimestampValue() { - return timestampValue; - } - - /** - * Holds the value for a tag field with timestamp type. - * @param timestampValue timestampValue or {@code null} for none - */ - public GoogleCloudDatacatalogV1beta1TagField setTimestampValue(String timestampValue) { - this.timestampValue = timestampValue; - return this; - } - - @Override - public GoogleCloudDatacatalogV1beta1TagField set(String fieldName, Object value) { - return (GoogleCloudDatacatalogV1beta1TagField) super.set(fieldName, value); - } - - @Override - public GoogleCloudDatacatalogV1beta1TagField clone() { - return (GoogleCloudDatacatalogV1beta1TagField) super.clone(); - } - -} diff --git a/clients/google-api-services-datacatalog/v1beta1/2.0.0/com/google/api/services/datacatalog/v1beta1/model/GoogleCloudDatacatalogV1beta1TagFieldEnumValue.java b/clients/google-api-services-datacatalog/v1beta1/2.0.0/com/google/api/services/datacatalog/v1beta1/model/GoogleCloudDatacatalogV1beta1TagFieldEnumValue.java deleted file mode 100644 index 8659cfdb944..00000000000 --- a/clients/google-api-services-datacatalog/v1beta1/2.0.0/com/google/api/services/datacatalog/v1beta1/model/GoogleCloudDatacatalogV1beta1TagFieldEnumValue.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * 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.datacatalog.v1beta1.model; - -/** - * Holds an enum value. - * - *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 Google Cloud Data Catalog 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 GoogleCloudDatacatalogV1beta1TagFieldEnumValue extends com.google.api.client.json.GenericJson { - - /** - * The display name of the enum value. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String displayName; - - /** - * The display name of the enum value. - * @return value or {@code null} for none - */ - public java.lang.String getDisplayName() { - return displayName; - } - - /** - * The display name of the enum value. - * @param displayName displayName or {@code null} for none - */ - public GoogleCloudDatacatalogV1beta1TagFieldEnumValue setDisplayName(java.lang.String displayName) { - this.displayName = displayName; - return this; - } - - @Override - public GoogleCloudDatacatalogV1beta1TagFieldEnumValue set(String fieldName, Object value) { - return (GoogleCloudDatacatalogV1beta1TagFieldEnumValue) super.set(fieldName, value); - } - - @Override - public GoogleCloudDatacatalogV1beta1TagFieldEnumValue clone() { - return (GoogleCloudDatacatalogV1beta1TagFieldEnumValue) super.clone(); - } - -} diff --git a/clients/google-api-services-datacatalog/v1beta1/2.0.0/com/google/api/services/datacatalog/v1beta1/model/GoogleCloudDatacatalogV1beta1TagTemplate.java b/clients/google-api-services-datacatalog/v1beta1/2.0.0/com/google/api/services/datacatalog/v1beta1/model/GoogleCloudDatacatalogV1beta1TagTemplate.java deleted file mode 100644 index 7f59037de2b..00000000000 --- a/clients/google-api-services-datacatalog/v1beta1/2.0.0/com/google/api/services/datacatalog/v1beta1/model/GoogleCloudDatacatalogV1beta1TagTemplate.java +++ /dev/null @@ -1,165 +0,0 @@ -/* - * 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.datacatalog.v1beta1.model; - -/** - * A tag template defines a tag, which can have one or more typed fields. The template is used to - * create and attach the tag to Google Cloud resources. [Tag template - * roles](https://cloud.google.com/iam/docs/roles-permissions/datacatalog) provide permissions to - * create, edit, and use the template. See, for example, the [TagTemplate - * User](https://cloud.google.com/data-catalog/docs/how-to/template-user) role, which includes - * permission to use the tag template to tag resources. - * - *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 Google Cloud Data Catalog 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 GoogleCloudDatacatalogV1beta1TagTemplate extends com.google.api.client.json.GenericJson { - - /** - * Output only. Transfer status of the TagTemplate - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String dataplexTransferStatus; - - /** - * The display name for this template. Defaults to an empty string. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String displayName; - - /** - * Required. Map of tag template field IDs to the settings for the field. This map is an - * exhaustive list of the allowed fields. This map must contain at least one field and at most 500 - * fields. The keys to this map are tag template field IDs. Field IDs can contain letters (both - * uppercase and lowercase), numbers (0-9) and underscores (_). Field IDs must be at least 1 - * character long and at most 64 characters long. Field IDs must start with a letter or - * underscore. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.MapThis is the Java data model class that specifies how to parse/serialize into the JSON that is - * transmitted over HTTP when working with the Google Cloud Data Catalog 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 GoogleCloudDatacatalogV1beta1TagTemplateField extends com.google.api.client.json.GenericJson { - - /** - * The description for this field. Defaults to an empty string. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String description; - - /** - * The display name for this field. Defaults to an empty string. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String displayName; - - /** - * Whether this is a required field. Defaults to false. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Boolean isRequired; - - /** - * Output only. Identifier. The resource name of the tag template field in URL format. Example: * - * projects/{project_id}/locations/{location}/tagTemplates/{tag_template}/fields/{field} Note that - * this TagTemplateField may not actually be stored in the location in this name. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String name; - - /** - * The order of this field with respect to other fields in this tag template. A higher value - * indicates a more important field. The value can be negative. Multiple fields can have the same - * order, and field orders within a tag do not have to be sequential. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Integer order; - - /** - * Required. The type of value this tag field can contain. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private GoogleCloudDatacatalogV1beta1FieldType type; - - /** - * The description for this field. Defaults to an empty string. - * @return value or {@code null} for none - */ - public java.lang.String getDescription() { - return description; - } - - /** - * The description for this field. Defaults to an empty string. - * @param description description or {@code null} for none - */ - public GoogleCloudDatacatalogV1beta1TagTemplateField setDescription(java.lang.String description) { - this.description = description; - return this; - } - - /** - * The display name for this field. Defaults to an empty string. - * @return value or {@code null} for none - */ - public java.lang.String getDisplayName() { - return displayName; - } - - /** - * The display name for this field. Defaults to an empty string. - * @param displayName displayName or {@code null} for none - */ - public GoogleCloudDatacatalogV1beta1TagTemplateField setDisplayName(java.lang.String displayName) { - this.displayName = displayName; - return this; - } - - /** - * Whether this is a required field. Defaults to false. - * @return value or {@code null} for none - */ - public java.lang.Boolean getIsRequired() { - return isRequired; - } - - /** - * Whether this is a required field. Defaults to false. - * @param isRequired isRequired or {@code null} for none - */ - public GoogleCloudDatacatalogV1beta1TagTemplateField setIsRequired(java.lang.Boolean isRequired) { - this.isRequired = isRequired; - return this; - } - - /** - * Output only. Identifier. The resource name of the tag template field in URL format. Example: * - * projects/{project_id}/locations/{location}/tagTemplates/{tag_template}/fields/{field} Note that - * this TagTemplateField may not actually be stored in the location in this name. - * @return value or {@code null} for none - */ - public java.lang.String getName() { - return name; - } - - /** - * Output only. Identifier. The resource name of the tag template field in URL format. Example: * - * projects/{project_id}/locations/{location}/tagTemplates/{tag_template}/fields/{field} Note that - * this TagTemplateField may not actually be stored in the location in this name. - * @param name name or {@code null} for none - */ - public GoogleCloudDatacatalogV1beta1TagTemplateField setName(java.lang.String name) { - this.name = name; - return this; - } - - /** - * The order of this field with respect to other fields in this tag template. A higher value - * indicates a more important field. The value can be negative. Multiple fields can have the same - * order, and field orders within a tag do not have to be sequential. - * @return value or {@code null} for none - */ - public java.lang.Integer getOrder() { - return order; - } - - /** - * The order of this field with respect to other fields in this tag template. A higher value - * indicates a more important field. The value can be negative. Multiple fields can have the same - * order, and field orders within a tag do not have to be sequential. - * @param order order or {@code null} for none - */ - public GoogleCloudDatacatalogV1beta1TagTemplateField setOrder(java.lang.Integer order) { - this.order = order; - return this; - } - - /** - * Required. The type of value this tag field can contain. - * @return value or {@code null} for none - */ - public GoogleCloudDatacatalogV1beta1FieldType getType() { - return type; - } - - /** - * Required. The type of value this tag field can contain. - * @param type type or {@code null} for none - */ - public GoogleCloudDatacatalogV1beta1TagTemplateField setType(GoogleCloudDatacatalogV1beta1FieldType type) { - this.type = type; - return this; - } - - @Override - public GoogleCloudDatacatalogV1beta1TagTemplateField set(String fieldName, Object value) { - return (GoogleCloudDatacatalogV1beta1TagTemplateField) super.set(fieldName, value); - } - - @Override - public GoogleCloudDatacatalogV1beta1TagTemplateField clone() { - return (GoogleCloudDatacatalogV1beta1TagTemplateField) super.clone(); - } - -} diff --git a/clients/google-api-services-datacatalog/v1beta1/2.0.0/com/google/api/services/datacatalog/v1beta1/model/GoogleCloudDatacatalogV1beta1UsageSignal.java b/clients/google-api-services-datacatalog/v1beta1/2.0.0/com/google/api/services/datacatalog/v1beta1/model/GoogleCloudDatacatalogV1beta1UsageSignal.java deleted file mode 100644 index 90d5ff54446..00000000000 --- a/clients/google-api-services-datacatalog/v1beta1/2.0.0/com/google/api/services/datacatalog/v1beta1/model/GoogleCloudDatacatalogV1beta1UsageSignal.java +++ /dev/null @@ -1,94 +0,0 @@ -/* - * 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.datacatalog.v1beta1.model; - -/** - * The set of all usage signals that we store in Data Catalog. - * - *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 Google Cloud Data Catalog 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 GoogleCloudDatacatalogV1beta1UsageSignal extends com.google.api.client.json.GenericJson { - - /** - * The timestamp of the end of the usage statistics duration. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private String updateTime; - - /** - * Usage statistics over each of the pre-defined time ranges, supported strings for time ranges - * are {"24H", "7D", "30D"}. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.util.MapThis is the Java data model class that specifies how to parse/serialize into the JSON that is - * transmitted over HTTP when working with the Google Cloud Data Catalog 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 GoogleCloudDatacatalogV1beta1UsageStats extends com.google.api.client.json.GenericJson { - - /** - * The number of times that the underlying entry was attempted to be used but was cancelled by the - * user. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Float totalCancellations; - - /** - * The number of times that the underlying entry was successfully used. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Float totalCompletions; - - /** - * Total time spent (in milliseconds) during uses the resulted in completions. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Float totalExecutionTimeForCompletionsMillis; - - /** - * The number of times that the underlying entry was attempted to be used but failed. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.Float totalFailures; - - /** - * The number of times that the underlying entry was attempted to be used but was cancelled by the - * user. - * @return value or {@code null} for none - */ - public java.lang.Float getTotalCancellations() { - return totalCancellations; - } - - /** - * The number of times that the underlying entry was attempted to be used but was cancelled by the - * user. - * @param totalCancellations totalCancellations or {@code null} for none - */ - public GoogleCloudDatacatalogV1beta1UsageStats setTotalCancellations(java.lang.Float totalCancellations) { - this.totalCancellations = totalCancellations; - return this; - } - - /** - * The number of times that the underlying entry was successfully used. - * @return value or {@code null} for none - */ - public java.lang.Float getTotalCompletions() { - return totalCompletions; - } - - /** - * The number of times that the underlying entry was successfully used. - * @param totalCompletions totalCompletions or {@code null} for none - */ - public GoogleCloudDatacatalogV1beta1UsageStats setTotalCompletions(java.lang.Float totalCompletions) { - this.totalCompletions = totalCompletions; - return this; - } - - /** - * Total time spent (in milliseconds) during uses the resulted in completions. - * @return value or {@code null} for none - */ - public java.lang.Float getTotalExecutionTimeForCompletionsMillis() { - return totalExecutionTimeForCompletionsMillis; - } - - /** - * Total time spent (in milliseconds) during uses the resulted in completions. - * @param totalExecutionTimeForCompletionsMillis totalExecutionTimeForCompletionsMillis or {@code null} for none - */ - public GoogleCloudDatacatalogV1beta1UsageStats setTotalExecutionTimeForCompletionsMillis(java.lang.Float totalExecutionTimeForCompletionsMillis) { - this.totalExecutionTimeForCompletionsMillis = totalExecutionTimeForCompletionsMillis; - return this; - } - - /** - * The number of times that the underlying entry was attempted to be used but failed. - * @return value or {@code null} for none - */ - public java.lang.Float getTotalFailures() { - return totalFailures; - } - - /** - * The number of times that the underlying entry was attempted to be used but failed. - * @param totalFailures totalFailures or {@code null} for none - */ - public GoogleCloudDatacatalogV1beta1UsageStats setTotalFailures(java.lang.Float totalFailures) { - this.totalFailures = totalFailures; - return this; - } - - @Override - public GoogleCloudDatacatalogV1beta1UsageStats set(String fieldName, Object value) { - return (GoogleCloudDatacatalogV1beta1UsageStats) super.set(fieldName, value); - } - - @Override - public GoogleCloudDatacatalogV1beta1UsageStats clone() { - return (GoogleCloudDatacatalogV1beta1UsageStats) super.clone(); - } - -} diff --git a/clients/google-api-services-datacatalog/v1beta1/2.0.0/com/google/api/services/datacatalog/v1beta1/model/GoogleCloudDatacatalogV1beta1ViewSpec.java b/clients/google-api-services-datacatalog/v1beta1/2.0.0/com/google/api/services/datacatalog/v1beta1/model/GoogleCloudDatacatalogV1beta1ViewSpec.java deleted file mode 100644 index 98fd0e0f140..00000000000 --- a/clients/google-api-services-datacatalog/v1beta1/2.0.0/com/google/api/services/datacatalog/v1beta1/model/GoogleCloudDatacatalogV1beta1ViewSpec.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * 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.datacatalog.v1beta1.model; - -/** - * Table view specification. - * - *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 Google Cloud Data Catalog 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 GoogleCloudDatacatalogV1beta1ViewSpec extends com.google.api.client.json.GenericJson { - - /** - * Output only. The query that defines the table view. - * The value may be {@code null}. - */ - @com.google.api.client.util.Key - private java.lang.String viewQuery; - - /** - * Output only. The query that defines the table view. - * @return value or {@code null} for none - */ - public java.lang.String getViewQuery() { - return viewQuery; - } - - /** - * Output only. The query that defines the table view. - * @param viewQuery viewQuery or {@code null} for none - */ - public GoogleCloudDatacatalogV1beta1ViewSpec setViewQuery(java.lang.String viewQuery) { - this.viewQuery = viewQuery; - return this; - } - - @Override - public GoogleCloudDatacatalogV1beta1ViewSpec set(String fieldName, Object value) { - return (GoogleCloudDatacatalogV1beta1ViewSpec) super.set(fieldName, value); - } - - @Override - public GoogleCloudDatacatalogV1beta1ViewSpec clone() { - return (GoogleCloudDatacatalogV1beta1ViewSpec) super.clone(); - } - -} diff --git a/clients/google-api-services-datacatalog/v1beta1/2.0.0/pom.xml b/clients/google-api-services-datacatalog/v1beta1/2.0.0/pom.xml index 4a0e67a03a4..08e843a7fa7 100644 --- a/clients/google-api-services-datacatalog/v1beta1/2.0.0/pom.xml +++ b/clients/google-api-services-datacatalog/v1beta1/2.0.0/pom.xml @@ -8,8 +8,8 @@