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

com.google.api.services.dlp.v2beta1.DLP Maven / Gradle / Ivy

There is a newer version: v2-rev20241215-2.0.0
Show newest version
/*
 * Copyright 2010 Google Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
 * in compliance with the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the License
 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 * or implied. See the License for the specific language governing permissions and limitations under
 * the License.
 */
/*
 * This code was generated by https://github.com/google/apis-client-generator/
 * (build: 2017-11-07 19:12:12 UTC)
 * on 2018-01-18 at 22:50:57 UTC 
 * Modify at your own risk.
 */

package com.google.api.services.dlp.v2beta1;

/**
 * Service definition for DLP (v2beta1).
 *
 * 

* The Google Data Loss Prevention API provides methods for detection of privacy-sensitive fragments in text, images, and Google Cloud Platform storage repositories. *

* *

* For more information about this service, see the * API Documentation *

* *

* This service uses {@link DLPRequestInitializer} to initialize global parameters via its * {@link Builder}. *

* * @since 1.3 * @author Google, Inc. */ @SuppressWarnings("javadoc") public class DLP extends com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient { // Note: Leave this static initializer at the top of the file. static { com.google.api.client.util.Preconditions.checkState( com.google.api.client.googleapis.GoogleUtils.MAJOR_VERSION == 1 && com.google.api.client.googleapis.GoogleUtils.MINOR_VERSION >= 15, "You are currently running with version %s of google-api-client. " + "You need at least version 1.15 of google-api-client to run version " + "1.22.0 of the DLP API library.", com.google.api.client.googleapis.GoogleUtils.VERSION); } /** * The default encoded root URL of the service. This is determined when the library is generated * and normally should not be changed. * * @since 1.7 */ public static final String DEFAULT_ROOT_URL = "https://dlp.googleapis.com/"; /** * The default encoded service path of the service. This is determined when the library is * generated and normally should not be changed. * * @since 1.7 */ public static final String DEFAULT_SERVICE_PATH = ""; /** * The default encoded base URL of the service. This is determined when the library is generated * and normally should not be changed. */ public static final String DEFAULT_BASE_URL = DEFAULT_ROOT_URL + DEFAULT_SERVICE_PATH; /** * Constructor. * *

* Use {@link Builder} if you need to specify any of the optional parameters. *

* * @param transport HTTP transport, which should normally be: *
    *
  • Google App Engine: * {@code com.google.api.client.extensions.appengine.http.UrlFetchTransport}
  • *
  • Android: {@code newCompatibleTransport} from * {@code com.google.api.client.extensions.android.http.AndroidHttp}
  • *
  • Java: {@link com.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()} *
  • *
* @param jsonFactory JSON factory, which may be: *
    *
  • Jackson: {@code com.google.api.client.json.jackson2.JacksonFactory}
  • *
  • Google GSON: {@code com.google.api.client.json.gson.GsonFactory}
  • *
  • Android Honeycomb or higher: * {@code com.google.api.client.extensions.android.json.AndroidJsonFactory}
  • *
* @param httpRequestInitializer HTTP request initializer or {@code null} for none * @since 1.7 */ public DLP(com.google.api.client.http.HttpTransport transport, com.google.api.client.json.JsonFactory jsonFactory, com.google.api.client.http.HttpRequestInitializer httpRequestInitializer) { this(new Builder(transport, jsonFactory, httpRequestInitializer)); } /** * @param builder builder */ DLP(Builder builder) { super(builder); } @Override protected void initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest httpClientRequest) throws java.io.IOException { super.initialize(httpClientRequest); } /** * An accessor for creating requests from the Content collection. * *

The typical use is:

*
   *   {@code DLP dlp = new DLP(...);}
   *   {@code DLP.Content.List request = dlp.content().list(parameters ...)}
   * 
* * @return the resource collection */ public Content content() { return new Content(); } /** * The "content" collection of methods. */ public class Content { /** * De-identifies potentially sensitive info from a list of strings. This method has limits on input * size and output size. * * Create a request for the method "content.deidentify". * * This request holds the parameters needed by the dlp server. After setting any optional * parameters, call the {@link Deidentify#execute()} method to invoke the remote operation. * * @param content the {@link com.google.api.services.dlp.v2beta1.model.GooglePrivacyDlpV2beta1DeidentifyContentRequest} * @return the request */ public Deidentify deidentify(com.google.api.services.dlp.v2beta1.model.GooglePrivacyDlpV2beta1DeidentifyContentRequest content) throws java.io.IOException { Deidentify result = new Deidentify(content); initialize(result); return result; } public class Deidentify extends DLPRequest { private static final String REST_PATH = "v2beta1/content:deidentify"; /** * De-identifies potentially sensitive info from a list of strings. This method has limits on * input size and output size. * * Create a request for the method "content.deidentify". * * This request holds the parameters needed by the the dlp server. After setting any optional * parameters, call the {@link Deidentify#execute()} method to invoke the remote operation.

* {@link * Deidentify#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} * must be called to initialize this instance immediately after invoking the constructor.

* * @param content the {@link com.google.api.services.dlp.v2beta1.model.GooglePrivacyDlpV2beta1DeidentifyContentRequest} * @since 1.13 */ protected Deidentify(com.google.api.services.dlp.v2beta1.model.GooglePrivacyDlpV2beta1DeidentifyContentRequest content) { super(DLP.this, "POST", REST_PATH, content, com.google.api.services.dlp.v2beta1.model.GooglePrivacyDlpV2beta1DeidentifyContentResponse.class); } @Override public Deidentify set$Xgafv(java.lang.String $Xgafv) { return (Deidentify) super.set$Xgafv($Xgafv); } @Override public Deidentify setAccessToken(java.lang.String accessToken) { return (Deidentify) super.setAccessToken(accessToken); } @Override public Deidentify setAlt(java.lang.String alt) { return (Deidentify) super.setAlt(alt); } @Override public Deidentify setBearerToken(java.lang.String bearerToken) { return (Deidentify) super.setBearerToken(bearerToken); } @Override public Deidentify setCallback(java.lang.String callback) { return (Deidentify) super.setCallback(callback); } @Override public Deidentify setFields(java.lang.String fields) { return (Deidentify) super.setFields(fields); } @Override public Deidentify setKey(java.lang.String key) { return (Deidentify) super.setKey(key); } @Override public Deidentify setOauthToken(java.lang.String oauthToken) { return (Deidentify) super.setOauthToken(oauthToken); } @Override public Deidentify setPp(java.lang.Boolean pp) { return (Deidentify) super.setPp(pp); } @Override public Deidentify setPrettyPrint(java.lang.Boolean prettyPrint) { return (Deidentify) super.setPrettyPrint(prettyPrint); } @Override public Deidentify setQuotaUser(java.lang.String quotaUser) { return (Deidentify) super.setQuotaUser(quotaUser); } @Override public Deidentify setUploadType(java.lang.String uploadType) { return (Deidentify) super.setUploadType(uploadType); } @Override public Deidentify setUploadProtocol(java.lang.String uploadProtocol) { return (Deidentify) super.setUploadProtocol(uploadProtocol); } @Override public Deidentify set(String parameterName, Object value) { return (Deidentify) super.set(parameterName, value); } } /** * Finds potentially sensitive info in a list of strings. This method has limits on input size, * processing time, and output size. * * Create a request for the method "content.inspect". * * This request holds the parameters needed by the dlp server. After setting any optional * parameters, call the {@link Inspect#execute()} method to invoke the remote operation. * * @param content the {@link com.google.api.services.dlp.v2beta1.model.GooglePrivacyDlpV2beta1InspectContentRequest} * @return the request */ public Inspect inspect(com.google.api.services.dlp.v2beta1.model.GooglePrivacyDlpV2beta1InspectContentRequest content) throws java.io.IOException { Inspect result = new Inspect(content); initialize(result); return result; } public class Inspect extends DLPRequest { private static final String REST_PATH = "v2beta1/content:inspect"; /** * Finds potentially sensitive info in a list of strings. This method has limits on input size, * processing time, and output size. * * Create a request for the method "content.inspect". * * This request holds the parameters needed by the the dlp server. After setting any optional * parameters, call the {@link Inspect#execute()} method to invoke the remote operation.

* {@link * Inspect#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* * @param content the {@link com.google.api.services.dlp.v2beta1.model.GooglePrivacyDlpV2beta1InspectContentRequest} * @since 1.13 */ protected Inspect(com.google.api.services.dlp.v2beta1.model.GooglePrivacyDlpV2beta1InspectContentRequest content) { super(DLP.this, "POST", REST_PATH, content, com.google.api.services.dlp.v2beta1.model.GooglePrivacyDlpV2beta1InspectContentResponse.class); } @Override public Inspect set$Xgafv(java.lang.String $Xgafv) { return (Inspect) super.set$Xgafv($Xgafv); } @Override public Inspect setAccessToken(java.lang.String accessToken) { return (Inspect) super.setAccessToken(accessToken); } @Override public Inspect setAlt(java.lang.String alt) { return (Inspect) super.setAlt(alt); } @Override public Inspect setBearerToken(java.lang.String bearerToken) { return (Inspect) super.setBearerToken(bearerToken); } @Override public Inspect setCallback(java.lang.String callback) { return (Inspect) super.setCallback(callback); } @Override public Inspect setFields(java.lang.String fields) { return (Inspect) super.setFields(fields); } @Override public Inspect setKey(java.lang.String key) { return (Inspect) super.setKey(key); } @Override public Inspect setOauthToken(java.lang.String oauthToken) { return (Inspect) super.setOauthToken(oauthToken); } @Override public Inspect setPp(java.lang.Boolean pp) { return (Inspect) super.setPp(pp); } @Override public Inspect setPrettyPrint(java.lang.Boolean prettyPrint) { return (Inspect) super.setPrettyPrint(prettyPrint); } @Override public Inspect setQuotaUser(java.lang.String quotaUser) { return (Inspect) super.setQuotaUser(quotaUser); } @Override public Inspect setUploadType(java.lang.String uploadType) { return (Inspect) super.setUploadType(uploadType); } @Override public Inspect setUploadProtocol(java.lang.String uploadProtocol) { return (Inspect) super.setUploadProtocol(uploadProtocol); } @Override public Inspect set(String parameterName, Object value) { return (Inspect) super.set(parameterName, value); } } /** * Redacts potentially sensitive info from a list of strings. This method has limits on input size, * processing time, and output size. * * Create a request for the method "content.redact". * * This request holds the parameters needed by the dlp server. After setting any optional * parameters, call the {@link Redact#execute()} method to invoke the remote operation. * * @param content the {@link com.google.api.services.dlp.v2beta1.model.GooglePrivacyDlpV2beta1RedactContentRequest} * @return the request */ public Redact redact(com.google.api.services.dlp.v2beta1.model.GooglePrivacyDlpV2beta1RedactContentRequest content) throws java.io.IOException { Redact result = new Redact(content); initialize(result); return result; } public class Redact extends DLPRequest { private static final String REST_PATH = "v2beta1/content:redact"; /** * Redacts potentially sensitive info from a list of strings. This method has limits on input * size, processing time, and output size. * * Create a request for the method "content.redact". * * This request holds the parameters needed by the the dlp server. After setting any optional * parameters, call the {@link Redact#execute()} method to invoke the remote operation.

{@link * Redact#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* * @param content the {@link com.google.api.services.dlp.v2beta1.model.GooglePrivacyDlpV2beta1RedactContentRequest} * @since 1.13 */ protected Redact(com.google.api.services.dlp.v2beta1.model.GooglePrivacyDlpV2beta1RedactContentRequest content) { super(DLP.this, "POST", REST_PATH, content, com.google.api.services.dlp.v2beta1.model.GooglePrivacyDlpV2beta1RedactContentResponse.class); } @Override public Redact set$Xgafv(java.lang.String $Xgafv) { return (Redact) super.set$Xgafv($Xgafv); } @Override public Redact setAccessToken(java.lang.String accessToken) { return (Redact) super.setAccessToken(accessToken); } @Override public Redact setAlt(java.lang.String alt) { return (Redact) super.setAlt(alt); } @Override public Redact setBearerToken(java.lang.String bearerToken) { return (Redact) super.setBearerToken(bearerToken); } @Override public Redact setCallback(java.lang.String callback) { return (Redact) super.setCallback(callback); } @Override public Redact setFields(java.lang.String fields) { return (Redact) super.setFields(fields); } @Override public Redact setKey(java.lang.String key) { return (Redact) super.setKey(key); } @Override public Redact setOauthToken(java.lang.String oauthToken) { return (Redact) super.setOauthToken(oauthToken); } @Override public Redact setPp(java.lang.Boolean pp) { return (Redact) super.setPp(pp); } @Override public Redact setPrettyPrint(java.lang.Boolean prettyPrint) { return (Redact) super.setPrettyPrint(prettyPrint); } @Override public Redact setQuotaUser(java.lang.String quotaUser) { return (Redact) super.setQuotaUser(quotaUser); } @Override public Redact setUploadType(java.lang.String uploadType) { return (Redact) super.setUploadType(uploadType); } @Override public Redact setUploadProtocol(java.lang.String uploadProtocol) { return (Redact) super.setUploadProtocol(uploadProtocol); } @Override public Redact set(String parameterName, Object value) { return (Redact) super.set(parameterName, value); } } } /** * An accessor for creating requests from the DataSource collection. * *

The typical use is:

*
   *   {@code DLP dlp = new DLP(...);}
   *   {@code DLP.DataSource.List request = dlp.dataSource().list(parameters ...)}
   * 
* * @return the resource collection */ public DataSource dataSource() { return new DataSource(); } /** * The "dataSource" collection of methods. */ public class DataSource { /** * Schedules a job to compute risk analysis metrics over content in a Google Cloud Platform * repository. * * Create a request for the method "dataSource.analyze". * * This request holds the parameters needed by the dlp server. After setting any optional * parameters, call the {@link Analyze#execute()} method to invoke the remote operation. * * @param content the {@link com.google.api.services.dlp.v2beta1.model.GooglePrivacyDlpV2beta1AnalyzeDataSourceRiskRequest} * @return the request */ public Analyze analyze(com.google.api.services.dlp.v2beta1.model.GooglePrivacyDlpV2beta1AnalyzeDataSourceRiskRequest content) throws java.io.IOException { Analyze result = new Analyze(content); initialize(result); return result; } public class Analyze extends DLPRequest { private static final String REST_PATH = "v2beta1/dataSource:analyze"; /** * Schedules a job to compute risk analysis metrics over content in a Google Cloud Platform * repository. * * Create a request for the method "dataSource.analyze". * * This request holds the parameters needed by the the dlp server. After setting any optional * parameters, call the {@link Analyze#execute()} method to invoke the remote operation.

* {@link * Analyze#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* * @param content the {@link com.google.api.services.dlp.v2beta1.model.GooglePrivacyDlpV2beta1AnalyzeDataSourceRiskRequest} * @since 1.13 */ protected Analyze(com.google.api.services.dlp.v2beta1.model.GooglePrivacyDlpV2beta1AnalyzeDataSourceRiskRequest content) { super(DLP.this, "POST", REST_PATH, content, com.google.api.services.dlp.v2beta1.model.GoogleLongrunningOperation.class); } @Override public Analyze set$Xgafv(java.lang.String $Xgafv) { return (Analyze) super.set$Xgafv($Xgafv); } @Override public Analyze setAccessToken(java.lang.String accessToken) { return (Analyze) super.setAccessToken(accessToken); } @Override public Analyze setAlt(java.lang.String alt) { return (Analyze) super.setAlt(alt); } @Override public Analyze setBearerToken(java.lang.String bearerToken) { return (Analyze) super.setBearerToken(bearerToken); } @Override public Analyze setCallback(java.lang.String callback) { return (Analyze) super.setCallback(callback); } @Override public Analyze setFields(java.lang.String fields) { return (Analyze) super.setFields(fields); } @Override public Analyze setKey(java.lang.String key) { return (Analyze) super.setKey(key); } @Override public Analyze setOauthToken(java.lang.String oauthToken) { return (Analyze) super.setOauthToken(oauthToken); } @Override public Analyze setPp(java.lang.Boolean pp) { return (Analyze) super.setPp(pp); } @Override public Analyze setPrettyPrint(java.lang.Boolean prettyPrint) { return (Analyze) super.setPrettyPrint(prettyPrint); } @Override public Analyze setQuotaUser(java.lang.String quotaUser) { return (Analyze) super.setQuotaUser(quotaUser); } @Override public Analyze setUploadType(java.lang.String uploadType) { return (Analyze) super.setUploadType(uploadType); } @Override public Analyze setUploadProtocol(java.lang.String uploadProtocol) { return (Analyze) super.setUploadProtocol(uploadProtocol); } @Override public Analyze set(String parameterName, Object value) { return (Analyze) super.set(parameterName, value); } } } /** * An accessor for creating requests from the Inspect collection. * *

The typical use is:

*
   *   {@code DLP dlp = new DLP(...);}
   *   {@code DLP.Inspect.List request = dlp.inspect().list(parameters ...)}
   * 
* * @return the resource collection */ public Inspect inspect() { return new Inspect(); } /** * The "inspect" collection of methods. */ public class Inspect { /** * An accessor for creating requests from the Operations collection. * *

The typical use is:

*
     *   {@code DLP dlp = new DLP(...);}
     *   {@code DLP.Operations.List request = dlp.operations().list(parameters ...)}
     * 
* * @return the resource collection */ public Operations operations() { return new Operations(); } /** * The "operations" collection of methods. */ public class Operations { /** * Cancels an operation. Use the `inspect.operations.get` to check whether the cancellation * succeeded or the operation completed despite cancellation. * * Create a request for the method "operations.cancel". * * This request holds the parameters needed by the dlp 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. * @param content the {@link com.google.api.services.dlp.v2beta1.model.GoogleLongrunningCancelOperationRequest} * @return the request */ public Cancel cancel(java.lang.String name, com.google.api.services.dlp.v2beta1.model.GoogleLongrunningCancelOperationRequest content) throws java.io.IOException { Cancel result = new Cancel(name, content); initialize(result); return result; } public class Cancel extends DLPRequest { private static final String REST_PATH = "v2beta1/{+name}:cancel"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^inspect/operations/[^/]+$"); /** * Cancels an operation. Use the `inspect.operations.get` to check whether the cancellation * succeeded or the operation completed despite cancellation. * * Create a request for the method "operations.cancel". * * This request holds the parameters needed by the the dlp server. After setting any optional * parameters, call the {@link Cancel#execute()} method to invoke the remote operation.

{@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. * @param content the {@link com.google.api.services.dlp.v2beta1.model.GoogleLongrunningCancelOperationRequest} * @since 1.13 */ protected Cancel(java.lang.String name, com.google.api.services.dlp.v2beta1.model.GoogleLongrunningCancelOperationRequest content) { super(DLP.this, "POST", REST_PATH, content, com.google.api.services.dlp.v2beta1.model.GoogleProtobufEmpty.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 " + "^inspect/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 setBearerToken(java.lang.String bearerToken) { return (Cancel) super.setBearerToken(bearerToken); } @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 setPp(java.lang.Boolean pp) { return (Cancel) super.setPp(pp); } @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 " + "^inspect/operations/[^/]+$"); } this.name = name; return this; } @Override public Cancel set(String parameterName, Object value) { return (Cancel) super.set(parameterName, value); } } /** * Schedules a job scanning content in a Google Cloud Platform data repository. * * Create a request for the method "operations.create". * * This request holds the parameters needed by the dlp server. After setting any optional * parameters, call the {@link Create#execute()} method to invoke the remote operation. * * @param content the {@link com.google.api.services.dlp.v2beta1.model.GooglePrivacyDlpV2beta1CreateInspectOperationRequest} * @return the request */ public Create create(com.google.api.services.dlp.v2beta1.model.GooglePrivacyDlpV2beta1CreateInspectOperationRequest content) throws java.io.IOException { Create result = new Create(content); initialize(result); return result; } public class Create extends DLPRequest { private static final String REST_PATH = "v2beta1/inspect/operations"; /** * Schedules a job scanning content in a Google Cloud Platform data repository. * * Create a request for the method "operations.create". * * This request holds the parameters needed by the the dlp server. After setting any optional * parameters, call the {@link Create#execute()} method to invoke the remote operation.

{@link * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* * @param content the {@link com.google.api.services.dlp.v2beta1.model.GooglePrivacyDlpV2beta1CreateInspectOperationRequest} * @since 1.13 */ protected Create(com.google.api.services.dlp.v2beta1.model.GooglePrivacyDlpV2beta1CreateInspectOperationRequest content) { super(DLP.this, "POST", REST_PATH, content, com.google.api.services.dlp.v2beta1.model.GoogleLongrunningOperation.class); } @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 setBearerToken(java.lang.String bearerToken) { return (Create) super.setBearerToken(bearerToken); } @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 setPp(java.lang.Boolean pp) { return (Create) super.setPp(pp); } @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); } @Override public Create set(String parameterName, Object value) { return (Create) super.set(parameterName, value); } } /** * This method is not supported and the server returns `UNIMPLEMENTED`. * * Create a request for the method "operations.delete". * * This request holds the parameters needed by the dlp 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 DLPRequest { private static final String REST_PATH = "v2beta1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^inspect/operations/[^/]+$"); /** * This method is not supported and the server returns `UNIMPLEMENTED`. * * Create a request for the method "operations.delete". * * This request holds the parameters needed by the the dlp server. After setting any optional * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@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(DLP.this, "DELETE", REST_PATH, null, com.google.api.services.dlp.v2beta1.model.GoogleProtobufEmpty.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 " + "^inspect/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 setBearerToken(java.lang.String bearerToken) { return (Delete) super.setBearerToken(bearerToken); } @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 setPp(java.lang.Boolean pp) { return (Delete) super.setPp(pp); } @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 " + "^inspect/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 dlp 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 DLPRequest { private static final String REST_PATH = "v2beta1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^inspect/operations/[^/]+$"); /** * 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 the dlp server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation.

{@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(DLP.this, "GET", REST_PATH, null, com.google.api.services.dlp.v2beta1.model.GoogleLongrunningOperation.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 " + "^inspect/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 setBearerToken(java.lang.String bearerToken) { return (Get) super.setBearerToken(bearerToken); } @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 setPp(java.lang.Boolean pp) { return (Get) super.setPp(pp); } @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 " + "^inspect/operations/[^/]+$"); } this.name = name; return this; } @Override public Get set(String parameterName, Object value) { return (Get) super.set(parameterName, value); } } /** * Fetches the list of long running operations. * * Create a request for the method "operations.list". * * This request holds the parameters needed by the dlp 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 DLPRequest { private static final String REST_PATH = "v2beta1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^inspect/operations$"); /** * Fetches the list of long running operations. * * Create a request for the method "operations.list". * * This request holds the parameters needed by the the dlp server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation.

{@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(DLP.this, "GET", REST_PATH, null, com.google.api.services.dlp.v2beta1.model.GoogleLongrunningListOperationsResponse.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 " + "^inspect/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 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 setBearerToken(java.lang.String bearerToken) { return (List) super.setBearerToken(bearerToken); } @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 setPp(java.lang.Boolean pp) { return (List) super.setPp(pp); } @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 " + "^inspect/operations$"); } this.name = name; return this; } /** Filters by `done`. That is, `done=true` or `done=false`. */ @com.google.api.client.util.Key private java.lang.String filter; /** Filters by `done`. That is, `done=true` or `done=false`. */ public java.lang.String getFilter() { return filter; } /** Filters by `done`. That is, `done=true` or `done=false`. */ public List setFilter(java.lang.String filter) { this.filter = filter; 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; } /** The list page size. The maximum allowed value is 256 and the default is 100. */ @com.google.api.client.util.Key private java.lang.Integer pageSize; /** The list page size. The maximum allowed value is 256 and the default is 100. */ public java.lang.Integer getPageSize() { return pageSize; } /** The list page size. The maximum allowed value is 256 and the default is 100. */ 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); } } } /** * An accessor for creating requests from the Results collection. * *

The typical use is:

*
     *   {@code DLP dlp = new DLP(...);}
     *   {@code DLP.Results.List request = dlp.results().list(parameters ...)}
     * 
* * @return the resource collection */ public Results results() { return new Results(); } /** * The "results" collection of methods. */ public class Results { /** * An accessor for creating requests from the Findings collection. * *

The typical use is:

*
       *   {@code DLP dlp = new DLP(...);}
       *   {@code DLP.Findings.List request = dlp.findings().list(parameters ...)}
       * 
* * @return the resource collection */ public Findings findings() { return new Findings(); } /** * The "findings" collection of methods. */ public class Findings { /** * Returns list of results for given inspect operation result set id. * * Create a request for the method "findings.list". * * This request holds the parameters needed by the dlp server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param name Identifier of the results set returned as metadata of the longrunning operation created by a call to * InspectDataSource. Should be in the format of `inspect/results/{id}`. * @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 DLPRequest { private static final String REST_PATH = "v2beta1/{+name}/findings"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^inspect/results/[^/]+$"); /** * Returns list of results for given inspect operation result set id. * * Create a request for the method "findings.list". * * This request holds the parameters needed by the the dlp server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation.

{@link * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be * called to initialize this instance immediately after invoking the constructor.

* * @param name Identifier of the results set returned as metadata of the longrunning operation created by a call to * InspectDataSource. Should be in the format of `inspect/results/{id}`. * @since 1.13 */ protected List(java.lang.String name) { super(DLP.this, "GET", REST_PATH, null, com.google.api.services.dlp.v2beta1.model.GooglePrivacyDlpV2beta1ListInspectFindingsResponse.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 " + "^inspect/results/[^/]+$"); } } @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 setBearerToken(java.lang.String bearerToken) { return (List) super.setBearerToken(bearerToken); } @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 setPp(java.lang.Boolean pp) { return (List) super.setPp(pp); } @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); } /** * Identifier of the results set returned as metadata of the longrunning operation created * by a call to InspectDataSource. Should be in the format of `inspect/results/{id}`. */ @com.google.api.client.util.Key private java.lang.String name; /** Identifier of the results set returned as metadata of the longrunning operation created by a call to InspectDataSource. Should be in the format of `inspect/results/{id}`. */ public java.lang.String getName() { return name; } /** * Identifier of the results set returned as metadata of the longrunning operation created * by a call to InspectDataSource. Should be in the format of `inspect/results/{id}`. */ 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 " + "^inspect/results/[^/]+$"); } this.name = name; return this; } /** * Restricts findings to items that match. Supports info_type and likelihood. * * Examples: * * - info_type=EMAIL_ADDRESS - info_type=PHONE_NUMBER,EMAIL_ADDRESS - * likelihood=VERY_LIKELY - likelihood=VERY_LIKELY,LIKELY - * info_type=EMAIL_ADDRESS,likelihood=VERY_LIKELY,LIKELY */ @com.google.api.client.util.Key private java.lang.String filter; /** Restricts findings to items that match. Supports info_type and likelihood. Examples: - info_type=EMAIL_ADDRESS - info_type=PHONE_NUMBER,EMAIL_ADDRESS - likelihood=VERY_LIKELY - likelihood=VERY_LIKELY,LIKELY - info_type=EMAIL_ADDRESS,likelihood=VERY_LIKELY,LIKELY */ public java.lang.String getFilter() { return filter; } /** * Restricts findings to items that match. Supports info_type and likelihood. * * Examples: * * - info_type=EMAIL_ADDRESS - info_type=PHONE_NUMBER,EMAIL_ADDRESS - * likelihood=VERY_LIKELY - likelihood=VERY_LIKELY,LIKELY - * info_type=EMAIL_ADDRESS,likelihood=VERY_LIKELY,LIKELY */ public List setFilter(java.lang.String filter) { this.filter = filter; return this; } /** * The value returned by the last `ListInspectFindingsResponse`; indicates that this is a * continuation of a prior `ListInspectFindings` call, and that the system should return * the next page of data. */ @com.google.api.client.util.Key private java.lang.String pageToken; /** The value returned by the last `ListInspectFindingsResponse`; indicates that this is a continuation of a prior `ListInspectFindings` call, and that the system should return the next page of data. */ public java.lang.String getPageToken() { return pageToken; } /** * The value returned by the last `ListInspectFindingsResponse`; indicates that this is a * continuation of a prior `ListInspectFindings` call, and that the system should return * the next page of data. */ public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } /** * Maximum number of results to return. If 0, the implementation selects a reasonable * value. */ @com.google.api.client.util.Key private java.lang.Integer pageSize; /** Maximum number of results to return. If 0, the implementation selects a reasonable value. */ public java.lang.Integer getPageSize() { return pageSize; } /** * Maximum number of results to return. If 0, the implementation selects a reasonable * value. */ 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); } } } } } /** * An accessor for creating requests from the RiskAnalysis collection. * *

The typical use is:

*
   *   {@code DLP dlp = new DLP(...);}
   *   {@code DLP.RiskAnalysis.List request = dlp.riskAnalysis().list(parameters ...)}
   * 
* * @return the resource collection */ public RiskAnalysis riskAnalysis() { return new RiskAnalysis(); } /** * The "riskAnalysis" collection of methods. */ public class RiskAnalysis { /** * An accessor for creating requests from the Operations collection. * *

The typical use is:

*
     *   {@code DLP dlp = new DLP(...);}
     *   {@code DLP.Operations.List request = dlp.operations().list(parameters ...)}
     * 
* * @return the resource collection */ public Operations operations() { return new Operations(); } /** * The "operations" collection of methods. */ public class Operations { /** * Cancels an operation. Use the `inspect.operations.get` to check whether the cancellation * succeeded or the operation completed despite cancellation. * * Create a request for the method "operations.cancel". * * This request holds the parameters needed by the dlp 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. * @param content the {@link com.google.api.services.dlp.v2beta1.model.GoogleLongrunningCancelOperationRequest} * @return the request */ public Cancel cancel(java.lang.String name, com.google.api.services.dlp.v2beta1.model.GoogleLongrunningCancelOperationRequest content) throws java.io.IOException { Cancel result = new Cancel(name, content); initialize(result); return result; } public class Cancel extends DLPRequest { private static final String REST_PATH = "v2beta1/{+name}:cancel"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^riskAnalysis/operations/[^/]+$"); /** * Cancels an operation. Use the `inspect.operations.get` to check whether the cancellation * succeeded or the operation completed despite cancellation. * * Create a request for the method "operations.cancel". * * This request holds the parameters needed by the the dlp server. After setting any optional * parameters, call the {@link Cancel#execute()} method to invoke the remote operation.

{@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. * @param content the {@link com.google.api.services.dlp.v2beta1.model.GoogleLongrunningCancelOperationRequest} * @since 1.13 */ protected Cancel(java.lang.String name, com.google.api.services.dlp.v2beta1.model.GoogleLongrunningCancelOperationRequest content) { super(DLP.this, "POST", REST_PATH, content, com.google.api.services.dlp.v2beta1.model.GoogleProtobufEmpty.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 " + "^riskAnalysis/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 setBearerToken(java.lang.String bearerToken) { return (Cancel) super.setBearerToken(bearerToken); } @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 setPp(java.lang.Boolean pp) { return (Cancel) super.setPp(pp); } @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 " + "^riskAnalysis/operations/[^/]+$"); } this.name = name; return this; } @Override public Cancel set(String parameterName, Object value) { return (Cancel) super.set(parameterName, value); } } /** * This method is not supported and the server returns `UNIMPLEMENTED`. * * Create a request for the method "operations.delete". * * This request holds the parameters needed by the dlp 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 DLPRequest { private static final String REST_PATH = "v2beta1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^riskAnalysis/operations/[^/]+$"); /** * This method is not supported and the server returns `UNIMPLEMENTED`. * * Create a request for the method "operations.delete". * * This request holds the parameters needed by the the dlp server. After setting any optional * parameters, call the {@link Delete#execute()} method to invoke the remote operation.

{@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(DLP.this, "DELETE", REST_PATH, null, com.google.api.services.dlp.v2beta1.model.GoogleProtobufEmpty.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 " + "^riskAnalysis/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 setBearerToken(java.lang.String bearerToken) { return (Delete) super.setBearerToken(bearerToken); } @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 setPp(java.lang.Boolean pp) { return (Delete) super.setPp(pp); } @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 " + "^riskAnalysis/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 dlp 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 DLPRequest { private static final String REST_PATH = "v2beta1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^riskAnalysis/operations/[^/]+$"); /** * 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 the dlp server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation.

{@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(DLP.this, "GET", REST_PATH, null, com.google.api.services.dlp.v2beta1.model.GoogleLongrunningOperation.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 " + "^riskAnalysis/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 setBearerToken(java.lang.String bearerToken) { return (Get) super.setBearerToken(bearerToken); } @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 setPp(java.lang.Boolean pp) { return (Get) super.setPp(pp); } @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 " + "^riskAnalysis/operations/[^/]+$"); } this.name = name; return this; } @Override public Get set(String parameterName, Object value) { return (Get) super.set(parameterName, value); } } /** * Fetches the list of long running operations. * * Create a request for the method "operations.list". * * This request holds the parameters needed by the dlp 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 DLPRequest { private static final String REST_PATH = "v2beta1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^riskAnalysis/operations$"); /** * Fetches the list of long running operations. * * Create a request for the method "operations.list". * * This request holds the parameters needed by the the dlp server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation.

{@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(DLP.this, "GET", REST_PATH, null, com.google.api.services.dlp.v2beta1.model.GoogleLongrunningListOperationsResponse.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 " + "^riskAnalysis/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 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 setBearerToken(java.lang.String bearerToken) { return (List) super.setBearerToken(bearerToken); } @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 setPp(java.lang.Boolean pp) { return (List) super.setPp(pp); } @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 " + "^riskAnalysis/operations$"); } this.name = name; 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; } /** The list page size. The maximum allowed value is 256 and the default is 100. */ @com.google.api.client.util.Key private java.lang.Integer pageSize; /** The list page size. The maximum allowed value is 256 and the default is 100. */ public java.lang.Integer getPageSize() { return pageSize; } /** The list page size. The maximum allowed value is 256 and the default is 100. */ public List setPageSize(java.lang.Integer pageSize) { this.pageSize = pageSize; return this; } /** Filters by `done`. That is, `done=true` or `done=false`. */ @com.google.api.client.util.Key private java.lang.String filter; /** Filters by `done`. That is, `done=true` or `done=false`. */ public java.lang.String getFilter() { return filter; } /** Filters by `done`. That is, `done=true` or `done=false`. */ public List setFilter(java.lang.String filter) { this.filter = filter; return this; } @Override public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } } } /** * An accessor for creating requests from the RootCategories collection. * *

The typical use is:

*
   *   {@code DLP dlp = new DLP(...);}
   *   {@code DLP.RootCategories.List request = dlp.rootCategories().list(parameters ...)}
   * 
* * @return the resource collection */ public RootCategories rootCategories() { return new RootCategories(); } /** * The "rootCategories" collection of methods. */ public class RootCategories { /** * Returns the list of root categories of sensitive information. * * Create a request for the method "rootCategories.list". * * This request holds the parameters needed by the dlp server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @return the request */ public List list() throws java.io.IOException { List result = new List(); initialize(result); return result; } public class List extends DLPRequest { private static final String REST_PATH = "v2beta1/rootCategories"; /** * Returns the list of root categories of sensitive information. * * Create a request for the method "rootCategories.list". * * This request holds the parameters needed by the the dlp server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation.

{@link * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be * called to initialize this instance immediately after invoking the constructor.

* * @since 1.13 */ protected List() { super(DLP.this, "GET", REST_PATH, null, com.google.api.services.dlp.v2beta1.model.GooglePrivacyDlpV2beta1ListRootCategoriesResponse.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 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 setBearerToken(java.lang.String bearerToken) { return (List) super.setBearerToken(bearerToken); } @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 setPp(java.lang.Boolean pp) { return (List) super.setPp(pp); } @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); } /** * Optional language code for localized friendly category names. If omitted or if localized * strings are not available, en-US strings will be returned. */ @com.google.api.client.util.Key private java.lang.String languageCode; /** Optional language code for localized friendly category names. If omitted or if localized strings are not available, en-US strings will be returned. */ public java.lang.String getLanguageCode() { return languageCode; } /** * Optional language code for localized friendly category names. If omitted or if localized * strings are not available, en-US strings will be returned. */ public List setLanguageCode(java.lang.String languageCode) { this.languageCode = languageCode; return this; } @Override public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } /** * An accessor for creating requests from the InfoTypes collection. * *

The typical use is:

*
     *   {@code DLP dlp = new DLP(...);}
     *   {@code DLP.InfoTypes.List request = dlp.infoTypes().list(parameters ...)}
     * 
* * @return the resource collection */ public InfoTypes infoTypes() { return new InfoTypes(); } /** * The "infoTypes" collection of methods. */ public class InfoTypes { /** * Returns sensitive information types for given category. * * Create a request for the method "infoTypes.list". * * This request holds the parameters needed by the dlp server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param category Category name as returned by ListRootCategories. * @return the request */ public List list(java.lang.String category) throws java.io.IOException { List result = new List(category); initialize(result); return result; } public class List extends DLPRequest { private static final String REST_PATH = "v2beta1/rootCategories/{+category}/infoTypes"; private final java.util.regex.Pattern CATEGORY_PATTERN = java.util.regex.Pattern.compile("^[^/]+$"); /** * Returns sensitive information types for given category. * * Create a request for the method "infoTypes.list". * * This request holds the parameters needed by the the dlp server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation.

{@link * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be * called to initialize this instance immediately after invoking the constructor.

* * @param category Category name as returned by ListRootCategories. * @since 1.13 */ protected List(java.lang.String category) { super(DLP.this, "GET", REST_PATH, null, com.google.api.services.dlp.v2beta1.model.GooglePrivacyDlpV2beta1ListInfoTypesResponse.class); this.category = com.google.api.client.util.Preconditions.checkNotNull(category, "Required parameter category must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(CATEGORY_PATTERN.matcher(category).matches(), "Parameter category must conform to the pattern " + "^[^/]+$"); } } @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 setBearerToken(java.lang.String bearerToken) { return (List) super.setBearerToken(bearerToken); } @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 setPp(java.lang.Boolean pp) { return (List) super.setPp(pp); } @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); } /** Category name as returned by ListRootCategories. */ @com.google.api.client.util.Key private java.lang.String category; /** Category name as returned by ListRootCategories. */ public java.lang.String getCategory() { return category; } /** Category name as returned by ListRootCategories. */ public List setCategory(java.lang.String category) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(CATEGORY_PATTERN.matcher(category).matches(), "Parameter category must conform to the pattern " + "^[^/]+$"); } this.category = category; return this; } /** * Optional BCP-47 language code for localized info type friendly names. If omitted, or if * localized strings are not available, en-US strings will be returned. */ @com.google.api.client.util.Key private java.lang.String languageCode; /** Optional BCP-47 language code for localized info type friendly names. If omitted, or if localized strings are not available, en-US strings will be returned. */ public java.lang.String getLanguageCode() { return languageCode; } /** * Optional BCP-47 language code for localized info type friendly names. If omitted, or if * localized strings are not available, en-US strings will be returned. */ public List setLanguageCode(java.lang.String languageCode) { this.languageCode = languageCode; return this; } @Override public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } } } /** * Builder for {@link DLP}. * *

* Implementation is not thread-safe. *

* * @since 1.3.0 */ public static final class Builder extends com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient.Builder { /** * Returns an instance of a new builder. * * @param transport HTTP transport, which should normally be: *
    *
  • Google App Engine: * {@code com.google.api.client.extensions.appengine.http.UrlFetchTransport}
  • *
  • Android: {@code newCompatibleTransport} from * {@code com.google.api.client.extensions.android.http.AndroidHttp}
  • *
  • Java: {@link com.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()} *
  • *
* @param jsonFactory JSON factory, which may be: *
    *
  • Jackson: {@code com.google.api.client.json.jackson2.JacksonFactory}
  • *
  • Google GSON: {@code com.google.api.client.json.gson.GsonFactory}
  • *
  • Android Honeycomb or higher: * {@code com.google.api.client.extensions.android.json.AndroidJsonFactory}
  • *
* @param httpRequestInitializer HTTP request initializer or {@code null} for none * @since 1.7 */ public Builder(com.google.api.client.http.HttpTransport transport, com.google.api.client.json.JsonFactory jsonFactory, com.google.api.client.http.HttpRequestInitializer httpRequestInitializer) { super( transport, jsonFactory, DEFAULT_ROOT_URL, DEFAULT_SERVICE_PATH, httpRequestInitializer, false); } /** Builds a new instance of {@link DLP}. */ @Override public DLP build() { return new DLP(this); } @Override public Builder setRootUrl(String rootUrl) { return (Builder) super.setRootUrl(rootUrl); } @Override public Builder setServicePath(String servicePath) { return (Builder) super.setServicePath(servicePath); } @Override public Builder setHttpRequestInitializer(com.google.api.client.http.HttpRequestInitializer httpRequestInitializer) { return (Builder) super.setHttpRequestInitializer(httpRequestInitializer); } @Override public Builder setApplicationName(String applicationName) { return (Builder) super.setApplicationName(applicationName); } @Override public Builder setSuppressPatternChecks(boolean suppressPatternChecks) { return (Builder) super.setSuppressPatternChecks(suppressPatternChecks); } @Override public Builder setSuppressRequiredParameterChecks(boolean suppressRequiredParameterChecks) { return (Builder) super.setSuppressRequiredParameterChecks(suppressRequiredParameterChecks); } @Override public Builder setSuppressAllChecks(boolean suppressAllChecks) { return (Builder) super.setSuppressAllChecks(suppressAllChecks); } /** * Set the {@link DLPRequestInitializer}. * * @since 1.12 */ public Builder setDLPRequestInitializer( DLPRequestInitializer dlpRequestInitializer) { return (Builder) super.setGoogleClientRequestInitializer(dlpRequestInitializer); } @Override public Builder setGoogleClientRequestInitializer( com.google.api.client.googleapis.services.GoogleClientRequestInitializer googleClientRequestInitializer) { return (Builder) super.setGoogleClientRequestInitializer(googleClientRequestInitializer); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy