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

com.google.api.services.bigtableadmin.v2.BigtableAdmin Maven / Gradle / Ivy

/*
 * 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.bigtableadmin.v2;

/**
 * Service definition for BigtableAdmin (v2).
 *
 * 

* Administer your Cloud Bigtable tables and instances. *

* *

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

* *

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

* * @since 1.3 * @author Google, Inc. */ @SuppressWarnings("javadoc") public class BigtableAdmin 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 >= 32 || (com.google.api.client.googleapis.GoogleUtils.MINOR_VERSION == 31 && com.google.api.client.googleapis.GoogleUtils.BUGFIX_VERSION >= 1))) || com.google.api.client.googleapis.GoogleUtils.MAJOR_VERSION >= 2, "You are currently running with version %s of google-api-client. " + "You need at least version 1.31.1 of google-api-client to run version " + "2.0.0 of the Cloud Bigtable Admin 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://bigtableadmin.googleapis.com/"; /** * The default encoded mTLS root URL of the service. This is determined when the library is generated * and normally should not be changed. * * @since 1.31 */ public static final String DEFAULT_MTLS_ROOT_URL = "https://bigtableadmin.mtls.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 batch path of the service. This is determined when the library is * generated and normally should not be changed. * * @since 1.23 */ public static final String DEFAULT_BATCH_PATH = "batch"; /** * 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 BigtableAdmin(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 */ BigtableAdmin(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 Operations collection. * *

The typical use is:

*
   *   {@code BigtableAdmin bigtableadmin = new BigtableAdmin(...);}
   *   {@code BigtableAdmin.Operations.List request = bigtableadmin.operations().list(parameters ...)}
   * 
* * @return the resource collection */ public Operations operations() { return new Operations(); } /** * The "operations" collection of methods. */ public class 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 bigtableadmin 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 BigtableAdminRequest { private static final String REST_PATH = "v2/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^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 bigtableadmin 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(BigtableAdmin.this, "GET", REST_PATH, null, com.google.api.services.bigtableadmin.v2.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 " + "^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 " + "^operations/.*$"); } this.name = name; return this; } @Override public Get set(String parameterName, Object value) { return (Get) super.set(parameterName, value); } } /** * An accessor for creating requests from the Projects collection. * *

The typical use is:

*
     *   {@code BigtableAdmin bigtableadmin = new BigtableAdmin(...);}
     *   {@code BigtableAdmin.Projects.List request = bigtableadmin.projects().list(parameters ...)}
     * 
* * @return the resource collection */ public Projects projects() { return new Projects(); } /** * The "projects" collection of methods. */ public class Projects { /** * An accessor for creating requests from the ChildOperations collection. * *

The typical use is:

*
       *   {@code BigtableAdmin bigtableadmin = new BigtableAdmin(...);}
       *   {@code BigtableAdmin.ChildOperations.List request = bigtableadmin.childOperations().list(parameters ...)}
       * 
* * @return the resource collection */ public ChildOperations childOperations() { return new ChildOperations(); } /** * The "operations" collection of methods. */ public class ChildOperations { /** * 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 bigtableadmin 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 BigtableAdminRequest { private static final String REST_PATH = "v2/{+name}/operations"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^operations/projects/.*$"); /** * 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 the bigtableadmin 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(BigtableAdmin.this, "GET", REST_PATH, null, com.google.api.services.bigtableadmin.v2.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 " + "^operations/projects/.*$"); } } @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 " + "^operations/projects/.*$"); } 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; } @Override public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } } } } /** * An accessor for creating requests from the Projects collection. * *

The typical use is:

*
   *   {@code BigtableAdmin bigtableadmin = new BigtableAdmin(...);}
   *   {@code BigtableAdmin.Projects.List request = bigtableadmin.projects().list(parameters ...)}
   * 
* * @return the resource collection */ public Projects projects() { return new Projects(); } /** * The "projects" collection of methods. */ public class Projects { /** * An accessor for creating requests from the Instances collection. * *

The typical use is:

*
     *   {@code BigtableAdmin bigtableadmin = new BigtableAdmin(...);}
     *   {@code BigtableAdmin.Instances.List request = bigtableadmin.instances().list(parameters ...)}
     * 
* * @return the resource collection */ public Instances instances() { return new Instances(); } /** * The "instances" collection of methods. */ public class Instances { /** * Create an instance within a project. Note that exactly one of Cluster.serve_nodes and * Cluster.cluster_config.cluster_autoscaling_config can be set. If serve_nodes is set to non-zero, * then the cluster is manually scaled. If cluster_config.cluster_autoscaling_config is non-empty, * then autoscaling is enabled. * * Create a request for the method "instances.create". * * This request holds the parameters needed by the bigtableadmin server. After setting any optional * parameters, call the {@link Create#execute()} method to invoke the remote operation. * * @param parent Required. The unique name of the project in which to create the new instance. Values are of the form * `projects/{project}`. * @param content the {@link com.google.api.services.bigtableadmin.v2.model.CreateInstanceRequest} * @return the request */ public Create create(java.lang.String parent, com.google.api.services.bigtableadmin.v2.model.CreateInstanceRequest content) throws java.io.IOException { Create result = new Create(parent, content); initialize(result); return result; } public class Create extends BigtableAdminRequest { private static final String REST_PATH = "v2/{+parent}/instances"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+$"); /** * Create an instance within a project. Note that exactly one of Cluster.serve_nodes and * Cluster.cluster_config.cluster_autoscaling_config can be set. If serve_nodes is set to non- * zero, then the cluster is manually scaled. If cluster_config.cluster_autoscaling_config is non- * empty, then autoscaling is enabled. * * Create a request for the method "instances.create". * * This request holds the parameters needed by the the bigtableadmin 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 parent Required. The unique name of the project in which to create the new instance. Values are of the form * `projects/{project}`. * @param content the {@link com.google.api.services.bigtableadmin.v2.model.CreateInstanceRequest} * @since 1.13 */ protected Create(java.lang.String parent, com.google.api.services.bigtableadmin.v2.model.CreateInstanceRequest content) { super(BigtableAdmin.this, "POST", REST_PATH, content, com.google.api.services.bigtableadmin.v2.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/[^/]+$"); } } @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 unique name of the project in which to create the new instance. Values are * of the form `projects/{project}`. */ @com.google.api.client.util.Key private java.lang.String parent; /** Required. The unique name of the project in which to create the new instance. Values are of the form `projects/{project}`. */ public java.lang.String getParent() { return parent; } /** * Required. The unique name of the project in which to create the new instance. Values are * of the form `projects/{project}`. */ 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/[^/]+$"); } this.parent = parent; return this; } @Override public Create set(String parameterName, Object value) { return (Create) super.set(parameterName, value); } } /** * Delete an instance from a project. * * Create a request for the method "instances.delete". * * This request holds the parameters needed by the bigtableadmin server. After setting any optional * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param name Required. The unique name of the instance to be deleted. Values are of the form * `projects/{project}/instances/{instance}`. * @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 BigtableAdminRequest { private static final String REST_PATH = "v2/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/instances/[^/]+$"); /** * Delete an instance from a project. * * Create a request for the method "instances.delete". * * This request holds the parameters needed by the the bigtableadmin 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 Required. The unique name of the instance to be deleted. Values are of the form * `projects/{project}/instances/{instance}`. * @since 1.13 */ protected Delete(java.lang.String name) { super(BigtableAdmin.this, "DELETE", REST_PATH, null, com.google.api.services.bigtableadmin.v2.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/[^/]+/instances/[^/]+$"); } } @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 unique name of the instance to be deleted. Values are of the form * `projects/{project}/instances/{instance}`. */ @com.google.api.client.util.Key private java.lang.String name; /** Required. The unique name of the instance to be deleted. Values are of the form `projects/{project}/instances/{instance}`. */ public java.lang.String getName() { return name; } /** * Required. The unique name of the instance to be deleted. Values are of the form * `projects/{project}/instances/{instance}`. */ 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/[^/]+/instances/[^/]+$"); } this.name = name; return this; } @Override public Delete set(String parameterName, Object value) { return (Delete) super.set(parameterName, value); } } /** * Gets information about an instance. * * Create a request for the method "instances.get". * * This request holds the parameters needed by the bigtableadmin server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param name Required. The unique name of the requested instance. Values are of the form * `projects/{project}/instances/{instance}`. * @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 BigtableAdminRequest { private static final String REST_PATH = "v2/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/instances/[^/]+$"); /** * Gets information about an instance. * * Create a request for the method "instances.get". * * This request holds the parameters needed by the the bigtableadmin 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 Required. The unique name of the requested instance. Values are of the form * `projects/{project}/instances/{instance}`. * @since 1.13 */ protected Get(java.lang.String name) { super(BigtableAdmin.this, "GET", REST_PATH, null, com.google.api.services.bigtableadmin.v2.model.Instance.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/[^/]+/instances/[^/]+$"); } } @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 unique name of the requested instance. Values are of the form * `projects/{project}/instances/{instance}`. */ @com.google.api.client.util.Key private java.lang.String name; /** Required. The unique name of the requested instance. Values are of the form `projects/{project}/instances/{instance}`. */ public java.lang.String getName() { return name; } /** * Required. The unique name of the requested instance. Values are of the form * `projects/{project}/instances/{instance}`. */ 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/[^/]+/instances/[^/]+$"); } 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 an instance resource. Returns an empty policy if an instance * exists but does not have a policy set. * * Create a request for the method "instances.getIamPolicy". * * This request holds the parameters needed by the bigtableadmin 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.bigtableadmin.v2.model.GetIamPolicyRequest} * @return the request */ public GetIamPolicy getIamPolicy(java.lang.String resource, com.google.api.services.bigtableadmin.v2.model.GetIamPolicyRequest content) throws java.io.IOException { GetIamPolicy result = new GetIamPolicy(resource, content); initialize(result); return result; } public class GetIamPolicy extends BigtableAdminRequest { private static final String REST_PATH = "v2/{+resource}:getIamPolicy"; private final java.util.regex.Pattern RESOURCE_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/instances/[^/]+$"); /** * Gets the access control policy for an instance resource. Returns an empty policy if an instance * exists but does not have a policy set. * * Create a request for the method "instances.getIamPolicy". * * This request holds the parameters needed by the the bigtableadmin server. After setting any * optional parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote * operation.

{@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.bigtableadmin.v2.model.GetIamPolicyRequest} * @since 1.13 */ protected GetIamPolicy(java.lang.String resource, com.google.api.services.bigtableadmin.v2.model.GetIamPolicyRequest content) { super(BigtableAdmin.this, "POST", REST_PATH, content, com.google.api.services.bigtableadmin.v2.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/[^/]+/instances/[^/]+$"); } } @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/[^/]+/instances/[^/]+$"); } this.resource = resource; return this; } @Override public GetIamPolicy set(String parameterName, Object value) { return (GetIamPolicy) super.set(parameterName, value); } } /** * Lists information about instances in a project. * * Create a request for the method "instances.list". * * This request holds the parameters needed by the bigtableadmin server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param parent Required. The unique name of the project for which a list of instances is requested. Values are of * the form `projects/{project}`. * @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 BigtableAdminRequest { private static final String REST_PATH = "v2/{+parent}/instances"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+$"); /** * Lists information about instances in a project. * * Create a request for the method "instances.list". * * This request holds the parameters needed by the the bigtableadmin 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 parent Required. The unique name of the project for which a list of instances is requested. Values are of * the form `projects/{project}`. * @since 1.13 */ protected List(java.lang.String parent) { super(BigtableAdmin.this, "GET", REST_PATH, null, com.google.api.services.bigtableadmin.v2.model.ListInstancesResponse.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/[^/]+$"); } } @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 unique name of the project for which a list of instances is requested. * Values are of the form `projects/{project}`. */ @com.google.api.client.util.Key private java.lang.String parent; /** Required. The unique name of the project for which a list of instances is requested. Values are of the form `projects/{project}`. */ public java.lang.String getParent() { return parent; } /** * Required. The unique name of the project for which a list of instances is requested. * Values are of the form `projects/{project}`. */ 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/[^/]+$"); } this.parent = parent; return this; } /** DEPRECATED: This field is unused and ignored. */ @com.google.api.client.util.Key private java.lang.String pageToken; /** DEPRECATED: This field is unused and ignored. */ public java.lang.String getPageToken() { return pageToken; } /** DEPRECATED: This field is unused and ignored. */ 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); } } /** * Partially updates an instance within a project. This method can modify all fields of an Instance * and is the preferred way to update an Instance. * * Create a request for the method "instances.partialUpdateInstance". * * This request holds the parameters needed by the bigtableadmin server. After setting any optional * parameters, call the {@link PartialUpdateInstance#execute()} method to invoke the remote * operation. * * @param name The unique name of the instance. Values are of the form `projects/{project}/instances/a-z+[a-z0-9]`. * @param content the {@link com.google.api.services.bigtableadmin.v2.model.Instance} * @return the request */ public PartialUpdateInstance partialUpdateInstance(java.lang.String name, com.google.api.services.bigtableadmin.v2.model.Instance content) throws java.io.IOException { PartialUpdateInstance result = new PartialUpdateInstance(name, content); initialize(result); return result; } public class PartialUpdateInstance extends BigtableAdminRequest { private static final String REST_PATH = "v2/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/instances/[^/]+$"); /** * Partially updates an instance within a project. This method can modify all fields of an * Instance and is the preferred way to update an Instance. * * Create a request for the method "instances.partialUpdateInstance". * * This request holds the parameters needed by the the bigtableadmin server. After setting any * optional parameters, call the {@link PartialUpdateInstance#execute()} method to invoke the * remote operation.

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

* * @param name The unique name of the instance. Values are of the form `projects/{project}/instances/a-z+[a-z0-9]`. * @param content the {@link com.google.api.services.bigtableadmin.v2.model.Instance} * @since 1.13 */ protected PartialUpdateInstance(java.lang.String name, com.google.api.services.bigtableadmin.v2.model.Instance content) { super(BigtableAdmin.this, "PATCH", REST_PATH, content, com.google.api.services.bigtableadmin.v2.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/[^/]+/instances/[^/]+$"); } } @Override public PartialUpdateInstance set$Xgafv(java.lang.String $Xgafv) { return (PartialUpdateInstance) super.set$Xgafv($Xgafv); } @Override public PartialUpdateInstance setAccessToken(java.lang.String accessToken) { return (PartialUpdateInstance) super.setAccessToken(accessToken); } @Override public PartialUpdateInstance setAlt(java.lang.String alt) { return (PartialUpdateInstance) super.setAlt(alt); } @Override public PartialUpdateInstance setCallback(java.lang.String callback) { return (PartialUpdateInstance) super.setCallback(callback); } @Override public PartialUpdateInstance setFields(java.lang.String fields) { return (PartialUpdateInstance) super.setFields(fields); } @Override public PartialUpdateInstance setKey(java.lang.String key) { return (PartialUpdateInstance) super.setKey(key); } @Override public PartialUpdateInstance setOauthToken(java.lang.String oauthToken) { return (PartialUpdateInstance) super.setOauthToken(oauthToken); } @Override public PartialUpdateInstance setPrettyPrint(java.lang.Boolean prettyPrint) { return (PartialUpdateInstance) super.setPrettyPrint(prettyPrint); } @Override public PartialUpdateInstance setQuotaUser(java.lang.String quotaUser) { return (PartialUpdateInstance) super.setQuotaUser(quotaUser); } @Override public PartialUpdateInstance setUploadType(java.lang.String uploadType) { return (PartialUpdateInstance) super.setUploadType(uploadType); } @Override public PartialUpdateInstance setUploadProtocol(java.lang.String uploadProtocol) { return (PartialUpdateInstance) super.setUploadProtocol(uploadProtocol); } /** * The unique name of the instance. Values are of the form * `projects/{project}/instances/a-z+[a-z0-9]`. */ @com.google.api.client.util.Key private java.lang.String name; /** The unique name of the instance. Values are of the form `projects/{project}/instances/a-z+[a-z0-9]`. */ public java.lang.String getName() { return name; } /** * The unique name of the instance. Values are of the form * `projects/{project}/instances/a-z+[a-z0-9]`. */ public PartialUpdateInstance 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/[^/]+/instances/[^/]+$"); } this.name = name; return this; } /** * Required. The subset of Instance fields which should be replaced. Must be explicitly set. */ @com.google.api.client.util.Key private String updateMask; /** Required. The subset of Instance fields which should be replaced. Must be explicitly set. */ public String getUpdateMask() { return updateMask; } /** * Required. The subset of Instance fields which should be replaced. Must be explicitly set. */ public PartialUpdateInstance setUpdateMask(String updateMask) { this.updateMask = updateMask; return this; } @Override public PartialUpdateInstance set(String parameterName, Object value) { return (PartialUpdateInstance) super.set(parameterName, value); } } /** * Sets the access control policy on an instance resource. Replaces any existing policy. * * Create a request for the method "instances.setIamPolicy". * * This request holds the parameters needed by the bigtableadmin 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.bigtableadmin.v2.model.SetIamPolicyRequest} * @return the request */ public SetIamPolicy setIamPolicy(java.lang.String resource, com.google.api.services.bigtableadmin.v2.model.SetIamPolicyRequest content) throws java.io.IOException { SetIamPolicy result = new SetIamPolicy(resource, content); initialize(result); return result; } public class SetIamPolicy extends BigtableAdminRequest { private static final String REST_PATH = "v2/{+resource}:setIamPolicy"; private final java.util.regex.Pattern RESOURCE_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/instances/[^/]+$"); /** * Sets the access control policy on an instance resource. Replaces any existing policy. * * Create a request for the method "instances.setIamPolicy". * * This request holds the parameters needed by the the bigtableadmin server. After setting any * optional parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote * operation.

{@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.bigtableadmin.v2.model.SetIamPolicyRequest} * @since 1.13 */ protected SetIamPolicy(java.lang.String resource, com.google.api.services.bigtableadmin.v2.model.SetIamPolicyRequest content) { super(BigtableAdmin.this, "POST", REST_PATH, content, com.google.api.services.bigtableadmin.v2.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/[^/]+/instances/[^/]+$"); } } @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/[^/]+/instances/[^/]+$"); } this.resource = resource; return this; } @Override public SetIamPolicy set(String parameterName, Object value) { return (SetIamPolicy) super.set(parameterName, value); } } /** * Returns permissions that the caller has on the specified instance resource. * * Create a request for the method "instances.testIamPermissions". * * This request holds the parameters needed by the bigtableadmin 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.bigtableadmin.v2.model.TestIamPermissionsRequest} * @return the request */ public TestIamPermissions testIamPermissions(java.lang.String resource, com.google.api.services.bigtableadmin.v2.model.TestIamPermissionsRequest content) throws java.io.IOException { TestIamPermissions result = new TestIamPermissions(resource, content); initialize(result); return result; } public class TestIamPermissions extends BigtableAdminRequest { private static final String REST_PATH = "v2/{+resource}:testIamPermissions"; private final java.util.regex.Pattern RESOURCE_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/instances/[^/]+$"); /** * Returns permissions that the caller has on the specified instance resource. * * Create a request for the method "instances.testIamPermissions". * * This request holds the parameters needed by the the bigtableadmin server. After setting any * optional parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote * operation.

{@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.bigtableadmin.v2.model.TestIamPermissionsRequest} * @since 1.13 */ protected TestIamPermissions(java.lang.String resource, com.google.api.services.bigtableadmin.v2.model.TestIamPermissionsRequest content) { super(BigtableAdmin.this, "POST", REST_PATH, content, com.google.api.services.bigtableadmin.v2.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/[^/]+/instances/[^/]+$"); } } @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/[^/]+/instances/[^/]+$"); } this.resource = resource; return this; } @Override public TestIamPermissions set(String parameterName, Object value) { return (TestIamPermissions) super.set(parameterName, value); } } /** * Updates an instance within a project. This method updates only the display name and type for an * Instance. To update other Instance properties, such as labels, use PartialUpdateInstance. * * Create a request for the method "instances.update". * * This request holds the parameters needed by the bigtableadmin server. After setting any optional * parameters, call the {@link Update#execute()} method to invoke the remote operation. * * @param name The unique name of the instance. Values are of the form `projects/{project}/instances/a-z+[a-z0-9]`. * @param content the {@link com.google.api.services.bigtableadmin.v2.model.Instance} * @return the request */ public Update update(java.lang.String name, com.google.api.services.bigtableadmin.v2.model.Instance content) throws java.io.IOException { Update result = new Update(name, content); initialize(result); return result; } public class Update extends BigtableAdminRequest { private static final String REST_PATH = "v2/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/instances/[^/]+$"); /** * Updates an instance within a project. This method updates only the display name and type for an * Instance. To update other Instance properties, such as labels, use PartialUpdateInstance. * * Create a request for the method "instances.update". * * This request holds the parameters needed by the the bigtableadmin server. After setting any * optional parameters, call the {@link Update#execute()} method to invoke the remote operation. *

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

* * @param name The unique name of the instance. Values are of the form `projects/{project}/instances/a-z+[a-z0-9]`. * @param content the {@link com.google.api.services.bigtableadmin.v2.model.Instance} * @since 1.13 */ protected Update(java.lang.String name, com.google.api.services.bigtableadmin.v2.model.Instance content) { super(BigtableAdmin.this, "PUT", REST_PATH, content, com.google.api.services.bigtableadmin.v2.model.Instance.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/[^/]+/instances/[^/]+$"); } } @Override public Update set$Xgafv(java.lang.String $Xgafv) { return (Update) super.set$Xgafv($Xgafv); } @Override public Update setAccessToken(java.lang.String accessToken) { return (Update) super.setAccessToken(accessToken); } @Override public Update setAlt(java.lang.String alt) { return (Update) super.setAlt(alt); } @Override public Update setCallback(java.lang.String callback) { return (Update) super.setCallback(callback); } @Override public Update setFields(java.lang.String fields) { return (Update) super.setFields(fields); } @Override public Update setKey(java.lang.String key) { return (Update) super.setKey(key); } @Override public Update setOauthToken(java.lang.String oauthToken) { return (Update) super.setOauthToken(oauthToken); } @Override public Update setPrettyPrint(java.lang.Boolean prettyPrint) { return (Update) super.setPrettyPrint(prettyPrint); } @Override public Update setQuotaUser(java.lang.String quotaUser) { return (Update) super.setQuotaUser(quotaUser); } @Override public Update setUploadType(java.lang.String uploadType) { return (Update) super.setUploadType(uploadType); } @Override public Update setUploadProtocol(java.lang.String uploadProtocol) { return (Update) super.setUploadProtocol(uploadProtocol); } /** * The unique name of the instance. Values are of the form * `projects/{project}/instances/a-z+[a-z0-9]`. */ @com.google.api.client.util.Key private java.lang.String name; /** The unique name of the instance. Values are of the form `projects/{project}/instances/a-z+[a-z0-9]`. */ public java.lang.String getName() { return name; } /** * The unique name of the instance. Values are of the form * `projects/{project}/instances/a-z+[a-z0-9]`. */ public Update 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/[^/]+/instances/[^/]+$"); } this.name = name; return this; } @Override public Update set(String parameterName, Object value) { return (Update) super.set(parameterName, value); } } /** * An accessor for creating requests from the AppProfiles collection. * *

The typical use is:

*
       *   {@code BigtableAdmin bigtableadmin = new BigtableAdmin(...);}
       *   {@code BigtableAdmin.AppProfiles.List request = bigtableadmin.appProfiles().list(parameters ...)}
       * 
* * @return the resource collection */ public AppProfiles appProfiles() { return new AppProfiles(); } /** * The "appProfiles" collection of methods. */ public class AppProfiles { /** * Creates an app profile within an instance. * * Create a request for the method "appProfiles.create". * * This request holds the parameters needed by the bigtableadmin server. After setting any optional * parameters, call the {@link Create#execute()} method to invoke the remote operation. * * @param parent Required. The unique name of the instance in which to create the new app profile. Values are of the * form `projects/{project}/instances/{instance}`. * @param content the {@link com.google.api.services.bigtableadmin.v2.model.AppProfile} * @return the request */ public Create create(java.lang.String parent, com.google.api.services.bigtableadmin.v2.model.AppProfile content) throws java.io.IOException { Create result = new Create(parent, content); initialize(result); return result; } public class Create extends BigtableAdminRequest { private static final String REST_PATH = "v2/{+parent}/appProfiles"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/instances/[^/]+$"); /** * Creates an app profile within an instance. * * Create a request for the method "appProfiles.create". * * This request holds the parameters needed by the the bigtableadmin 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 parent Required. The unique name of the instance in which to create the new app profile. Values are of the * form `projects/{project}/instances/{instance}`. * @param content the {@link com.google.api.services.bigtableadmin.v2.model.AppProfile} * @since 1.13 */ protected Create(java.lang.String parent, com.google.api.services.bigtableadmin.v2.model.AppProfile content) { super(BigtableAdmin.this, "POST", REST_PATH, content, com.google.api.services.bigtableadmin.v2.model.AppProfile.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/[^/]+/instances/[^/]+$"); } } @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 unique name of the instance in which to create the new app profile. * Values are of the form `projects/{project}/instances/{instance}`. */ @com.google.api.client.util.Key private java.lang.String parent; /** Required. The unique name of the instance in which to create the new app profile. Values are of the form `projects/{project}/instances/{instance}`. */ public java.lang.String getParent() { return parent; } /** * Required. The unique name of the instance in which to create the new app profile. * Values are of the form `projects/{project}/instances/{instance}`. */ 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/[^/]+/instances/[^/]+$"); } this.parent = parent; return this; } /** * Required. The ID to be used when referring to the new app profile within its instance, * e.g., just `myprofile` rather than * `projects/myproject/instances/myinstance/appProfiles/myprofile`. */ @com.google.api.client.util.Key private java.lang.String appProfileId; /** Required. The ID to be used when referring to the new app profile within its instance, e.g., just `myprofile` rather than `projects/myproject/instances/myinstance/appProfiles/myprofile`. */ public java.lang.String getAppProfileId() { return appProfileId; } /** * Required. The ID to be used when referring to the new app profile within its instance, * e.g., just `myprofile` rather than * `projects/myproject/instances/myinstance/appProfiles/myprofile`. */ public Create setAppProfileId(java.lang.String appProfileId) { this.appProfileId = appProfileId; return this; } /** If true, ignore safety checks when creating the app profile. */ @com.google.api.client.util.Key private java.lang.Boolean ignoreWarnings; /** If true, ignore safety checks when creating the app profile. */ public java.lang.Boolean getIgnoreWarnings() { return ignoreWarnings; } /** If true, ignore safety checks when creating the app profile. */ public Create setIgnoreWarnings(java.lang.Boolean ignoreWarnings) { this.ignoreWarnings = ignoreWarnings; return this; } @Override public Create set(String parameterName, Object value) { return (Create) super.set(parameterName, value); } } /** * Deletes an app profile from an instance. * * Create a request for the method "appProfiles.delete". * * This request holds the parameters needed by the bigtableadmin server. After setting any optional * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param name Required. The unique name of the app profile to be deleted. Values are of the form * `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. * @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 BigtableAdminRequest { private static final String REST_PATH = "v2/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/instances/[^/]+/appProfiles/[^/]+$"); /** * Deletes an app profile from an instance. * * Create a request for the method "appProfiles.delete". * * This request holds the parameters needed by the the bigtableadmin 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 Required. The unique name of the app profile to be deleted. Values are of the form * `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. * @since 1.13 */ protected Delete(java.lang.String name) { super(BigtableAdmin.this, "DELETE", REST_PATH, null, com.google.api.services.bigtableadmin.v2.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/[^/]+/instances/[^/]+/appProfiles/[^/]+$"); } } @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 unique name of the app profile to be deleted. Values are of the form * `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. */ @com.google.api.client.util.Key private java.lang.String name; /** Required. The unique name of the app profile to be deleted. Values are of the form `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. */ public java.lang.String getName() { return name; } /** * Required. The unique name of the app profile to be deleted. Values are of the form * `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. */ 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/[^/]+/instances/[^/]+/appProfiles/[^/]+$"); } this.name = name; return this; } /** Required. If true, ignore safety checks when deleting the app profile. */ @com.google.api.client.util.Key private java.lang.Boolean ignoreWarnings; /** Required. If true, ignore safety checks when deleting the app profile. */ public java.lang.Boolean getIgnoreWarnings() { return ignoreWarnings; } /** Required. If true, ignore safety checks when deleting the app profile. */ public Delete setIgnoreWarnings(java.lang.Boolean ignoreWarnings) { this.ignoreWarnings = ignoreWarnings; return this; } @Override public Delete set(String parameterName, Object value) { return (Delete) super.set(parameterName, value); } } /** * Gets information about an app profile. * * Create a request for the method "appProfiles.get". * * This request holds the parameters needed by the bigtableadmin server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param name Required. The unique name of the requested app profile. Values are of the form * `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. * @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 BigtableAdminRequest { private static final String REST_PATH = "v2/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/instances/[^/]+/appProfiles/[^/]+$"); /** * Gets information about an app profile. * * Create a request for the method "appProfiles.get". * * This request holds the parameters needed by the the bigtableadmin 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 Required. The unique name of the requested app profile. Values are of the form * `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. * @since 1.13 */ protected Get(java.lang.String name) { super(BigtableAdmin.this, "GET", REST_PATH, null, com.google.api.services.bigtableadmin.v2.model.AppProfile.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/[^/]+/instances/[^/]+/appProfiles/[^/]+$"); } } @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 unique name of the requested app profile. Values are of the form * `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. */ @com.google.api.client.util.Key private java.lang.String name; /** Required. The unique name of the requested app profile. Values are of the form `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. */ public java.lang.String getName() { return name; } /** * Required. The unique name of the requested app profile. Values are of the form * `projects/{project}/instances/{instance}/appProfiles/{app_profile}`. */ 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/[^/]+/instances/[^/]+/appProfiles/[^/]+$"); } this.name = name; return this; } @Override public Get set(String parameterName, Object value) { return (Get) super.set(parameterName, value); } } /** * Lists information about app profiles in an instance. * * Create a request for the method "appProfiles.list". * * This request holds the parameters needed by the bigtableadmin server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param parent Required. The unique name of the instance for which a list of app profiles is requested. Values are * of the form `projects/{project}/instances/{instance}`. Use `{instance} = '-'` to list * AppProfiles for all Instances in a project, e.g., `projects/myproject/instances/-`. * @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 BigtableAdminRequest { private static final String REST_PATH = "v2/{+parent}/appProfiles"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/instances/[^/]+$"); /** * Lists information about app profiles in an instance. * * Create a request for the method "appProfiles.list". * * This request holds the parameters needed by the the bigtableadmin 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 parent Required. The unique name of the instance for which a list of app profiles is requested. Values are * of the form `projects/{project}/instances/{instance}`. Use `{instance} = '-'` to list * AppProfiles for all Instances in a project, e.g., `projects/myproject/instances/-`. * @since 1.13 */ protected List(java.lang.String parent) { super(BigtableAdmin.this, "GET", REST_PATH, null, com.google.api.services.bigtableadmin.v2.model.ListAppProfilesResponse.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/[^/]+/instances/[^/]+$"); } } @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 unique name of the instance for which a list of app profiles is * requested. Values are of the form `projects/{project}/instances/{instance}`. Use * `{instance} = '-'` to list AppProfiles for all Instances in a project, e.g., * `projects/myproject/instances/-`. */ @com.google.api.client.util.Key private java.lang.String parent; /** Required. The unique name of the instance for which a list of app profiles is requested. Values are of the form `projects/{project}/instances/{instance}`. Use `{instance} = '-'` to list AppProfiles for all Instances in a project, e.g., `projects/myproject/instances/-`. */ public java.lang.String getParent() { return parent; } /** * Required. The unique name of the instance for which a list of app profiles is * requested. Values are of the form `projects/{project}/instances/{instance}`. Use * `{instance} = '-'` to list AppProfiles for all Instances in a project, e.g., * `projects/myproject/instances/-`. */ 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/[^/]+/instances/[^/]+$"); } this.parent = parent; return this; } /** * Maximum number of results per page. A page_size of zero lets the server choose the * number of items to return. A page_size which is strictly positive will return at most * that many items. A negative page_size will cause an error. Following the first request, * subsequent paginated calls are not required to pass a page_size. If a page_size is set * in subsequent calls, it must match the page_size given in the first request. */ @com.google.api.client.util.Key private java.lang.Integer pageSize; /** Maximum number of results per page. A page_size of zero lets the server choose the number of items to return. A page_size which is strictly positive will return at most that many items. A negative page_size will cause an error. Following the first request, subsequent paginated calls are not required to pass a page_size. If a page_size is set in subsequent calls, it must match the page_size given in the first request. */ public java.lang.Integer getPageSize() { return pageSize; } /** * Maximum number of results per page. A page_size of zero lets the server choose the * number of items to return. A page_size which is strictly positive will return at most * that many items. A negative page_size will cause an error. Following the first request, * subsequent paginated calls are not required to pass a page_size. If a page_size is set * in subsequent calls, it must match the page_size given in the first request. */ public List setPageSize(java.lang.Integer pageSize) { this.pageSize = pageSize; return this; } /** The value of `next_page_token` returned by a previous call. */ @com.google.api.client.util.Key private java.lang.String pageToken; /** The value of `next_page_token` returned by a previous call. */ public java.lang.String getPageToken() { return pageToken; } /** The value of `next_page_token` returned by a previous call. */ 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 app profile within an instance. * * Create a request for the method "appProfiles.patch". * * This request holds the parameters needed by the bigtableadmin server. After setting any optional * parameters, call the {@link Patch#execute()} method to invoke the remote operation. * * @param name The unique name of the app profile. Values are of the form * `projects/{project}/instances/{instance}/appProfiles/_a-zA-Z0-9*`. * @param content the {@link com.google.api.services.bigtableadmin.v2.model.AppProfile} * @return the request */ public Patch patch(java.lang.String name, com.google.api.services.bigtableadmin.v2.model.AppProfile content) throws java.io.IOException { Patch result = new Patch(name, content); initialize(result); return result; } public class Patch extends BigtableAdminRequest { private static final String REST_PATH = "v2/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/instances/[^/]+/appProfiles/[^/]+$"); /** * Updates an app profile within an instance. * * Create a request for the method "appProfiles.patch". * * This request holds the parameters needed by the the bigtableadmin server. After setting any * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. *

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

* * @param name The unique name of the app profile. Values are of the form * `projects/{project}/instances/{instance}/appProfiles/_a-zA-Z0-9*`. * @param content the {@link com.google.api.services.bigtableadmin.v2.model.AppProfile} * @since 1.13 */ protected Patch(java.lang.String name, com.google.api.services.bigtableadmin.v2.model.AppProfile content) { super(BigtableAdmin.this, "PATCH", REST_PATH, content, com.google.api.services.bigtableadmin.v2.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/[^/]+/instances/[^/]+/appProfiles/[^/]+$"); } } @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); } /** * The unique name of the app profile. Values are of the form * `projects/{project}/instances/{instance}/appProfiles/_a-zA-Z0-9*`. */ @com.google.api.client.util.Key private java.lang.String name; /** The unique name of the app profile. Values are of the form `projects/{project}/instances/{instance}/appProfiles/_a-zA-Z0-9*`. */ public java.lang.String getName() { return name; } /** * The unique name of the app profile. Values are of the form * `projects/{project}/instances/{instance}/appProfiles/_a-zA-Z0-9*`. */ 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/[^/]+/instances/[^/]+/appProfiles/[^/]+$"); } this.name = name; return this; } /** If true, ignore safety checks when updating the app profile. */ @com.google.api.client.util.Key private java.lang.Boolean ignoreWarnings; /** If true, ignore safety checks when updating the app profile. */ public java.lang.Boolean getIgnoreWarnings() { return ignoreWarnings; } /** If true, ignore safety checks when updating the app profile. */ public Patch setIgnoreWarnings(java.lang.Boolean ignoreWarnings) { this.ignoreWarnings = ignoreWarnings; return this; } /** * Required. The subset of app profile fields which should be replaced. If unset, all * fields will be replaced. */ @com.google.api.client.util.Key private String updateMask; /** Required. The subset of app profile fields which should be replaced. If unset, all fields will be replaced. */ public String getUpdateMask() { return updateMask; } /** * Required. The subset of app profile fields which should be replaced. If unset, all * fields will be replaced. */ 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 Clusters collection. * *

The typical use is:

*
       *   {@code BigtableAdmin bigtableadmin = new BigtableAdmin(...);}
       *   {@code BigtableAdmin.Clusters.List request = bigtableadmin.clusters().list(parameters ...)}
       * 
* * @return the resource collection */ public Clusters clusters() { return new Clusters(); } /** * The "clusters" collection of methods. */ public class Clusters { /** * Creates a cluster within an instance. Note that exactly one of Cluster.serve_nodes and * Cluster.cluster_config.cluster_autoscaling_config can be set. If serve_nodes is set to non-zero, * then the cluster is manually scaled. If cluster_config.cluster_autoscaling_config is non-empty, * then autoscaling is enabled. * * Create a request for the method "clusters.create". * * This request holds the parameters needed by the bigtableadmin server. After setting any optional * parameters, call the {@link Create#execute()} method to invoke the remote operation. * * @param parent Required. The unique name of the instance in which to create the new cluster. Values are of the form * `projects/{project}/instances/{instance}`. * @param content the {@link com.google.api.services.bigtableadmin.v2.model.Cluster} * @return the request */ public Create create(java.lang.String parent, com.google.api.services.bigtableadmin.v2.model.Cluster content) throws java.io.IOException { Create result = new Create(parent, content); initialize(result); return result; } public class Create extends BigtableAdminRequest { private static final String REST_PATH = "v2/{+parent}/clusters"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/instances/[^/]+$"); /** * Creates a cluster within an instance. Note that exactly one of Cluster.serve_nodes and * Cluster.cluster_config.cluster_autoscaling_config can be set. If serve_nodes is set to non- * zero, then the cluster is manually scaled. If cluster_config.cluster_autoscaling_config is non- * empty, then autoscaling is enabled. * * Create a request for the method "clusters.create". * * This request holds the parameters needed by the the bigtableadmin 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 parent Required. The unique name of the instance in which to create the new cluster. Values are of the form * `projects/{project}/instances/{instance}`. * @param content the {@link com.google.api.services.bigtableadmin.v2.model.Cluster} * @since 1.13 */ protected Create(java.lang.String parent, com.google.api.services.bigtableadmin.v2.model.Cluster content) { super(BigtableAdmin.this, "POST", REST_PATH, content, com.google.api.services.bigtableadmin.v2.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/[^/]+/instances/[^/]+$"); } } @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 unique name of the instance in which to create the new cluster. Values * are of the form `projects/{project}/instances/{instance}`. */ @com.google.api.client.util.Key private java.lang.String parent; /** Required. The unique name of the instance in which to create the new cluster. Values are of the form `projects/{project}/instances/{instance}`. */ public java.lang.String getParent() { return parent; } /** * Required. The unique name of the instance in which to create the new cluster. Values * are of the form `projects/{project}/instances/{instance}`. */ 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/[^/]+/instances/[^/]+$"); } this.parent = parent; return this; } /** * Required. The ID to be used when referring to the new cluster within its instance, * e.g., just `mycluster` rather than * `projects/myproject/instances/myinstance/clusters/mycluster`. */ @com.google.api.client.util.Key private java.lang.String clusterId; /** Required. The ID to be used when referring to the new cluster within its instance, e.g., just `mycluster` rather than `projects/myproject/instances/myinstance/clusters/mycluster`. */ public java.lang.String getClusterId() { return clusterId; } /** * Required. The ID to be used when referring to the new cluster within its instance, * e.g., just `mycluster` rather than * `projects/myproject/instances/myinstance/clusters/mycluster`. */ public Create setClusterId(java.lang.String clusterId) { this.clusterId = clusterId; return this; } @Override public Create set(String parameterName, Object value) { return (Create) super.set(parameterName, value); } } /** * Deletes a cluster from an instance. * * Create a request for the method "clusters.delete". * * This request holds the parameters needed by the bigtableadmin server. After setting any optional * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param name Required. The unique name of the cluster to be deleted. Values are of the form * `projects/{project}/instances/{instance}/clusters/{cluster}`. * @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 BigtableAdminRequest { private static final String REST_PATH = "v2/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/instances/[^/]+/clusters/[^/]+$"); /** * Deletes a cluster from an instance. * * Create a request for the method "clusters.delete". * * This request holds the parameters needed by the the bigtableadmin 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 Required. The unique name of the cluster to be deleted. Values are of the form * `projects/{project}/instances/{instance}/clusters/{cluster}`. * @since 1.13 */ protected Delete(java.lang.String name) { super(BigtableAdmin.this, "DELETE", REST_PATH, null, com.google.api.services.bigtableadmin.v2.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/[^/]+/instances/[^/]+/clusters/[^/]+$"); } } @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 unique name of the cluster to be deleted. Values are of the form * `projects/{project}/instances/{instance}/clusters/{cluster}`. */ @com.google.api.client.util.Key private java.lang.String name; /** Required. The unique name of the cluster to be deleted. Values are of the form `projects/{project}/instances/{instance}/clusters/{cluster}`. */ public java.lang.String getName() { return name; } /** * Required. The unique name of the cluster to be deleted. Values are of the form * `projects/{project}/instances/{instance}/clusters/{cluster}`. */ 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/[^/]+/instances/[^/]+/clusters/[^/]+$"); } this.name = name; return this; } @Override public Delete set(String parameterName, Object value) { return (Delete) super.set(parameterName, value); } } /** * Gets information about a cluster. * * Create a request for the method "clusters.get". * * This request holds the parameters needed by the bigtableadmin server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param name Required. The unique name of the requested cluster. Values are of the form * `projects/{project}/instances/{instance}/clusters/{cluster}`. * @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 BigtableAdminRequest { private static final String REST_PATH = "v2/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/instances/[^/]+/clusters/[^/]+$"); /** * Gets information about a cluster. * * Create a request for the method "clusters.get". * * This request holds the parameters needed by the the bigtableadmin 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 Required. The unique name of the requested cluster. Values are of the form * `projects/{project}/instances/{instance}/clusters/{cluster}`. * @since 1.13 */ protected Get(java.lang.String name) { super(BigtableAdmin.this, "GET", REST_PATH, null, com.google.api.services.bigtableadmin.v2.model.Cluster.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/[^/]+/instances/[^/]+/clusters/[^/]+$"); } } @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 unique name of the requested cluster. Values are of the form * `projects/{project}/instances/{instance}/clusters/{cluster}`. */ @com.google.api.client.util.Key private java.lang.String name; /** Required. The unique name of the requested cluster. Values are of the form `projects/{project}/instances/{instance}/clusters/{cluster}`. */ public java.lang.String getName() { return name; } /** * Required. The unique name of the requested cluster. Values are of the form * `projects/{project}/instances/{instance}/clusters/{cluster}`. */ 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/[^/]+/instances/[^/]+/clusters/[^/]+$"); } this.name = name; return this; } @Override public Get set(String parameterName, Object value) { return (Get) super.set(parameterName, value); } } /** * Lists information about clusters in an instance. * * Create a request for the method "clusters.list". * * This request holds the parameters needed by the bigtableadmin server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param parent Required. The unique name of the instance for which a list of clusters is requested. Values are of * the form `projects/{project}/instances/{instance}`. Use `{instance} = '-'` to list * Clusters for all Instances in a project, e.g., `projects/myproject/instances/-`. * @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 BigtableAdminRequest { private static final String REST_PATH = "v2/{+parent}/clusters"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/instances/[^/]+$"); /** * Lists information about clusters in an instance. * * Create a request for the method "clusters.list". * * This request holds the parameters needed by the the bigtableadmin 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 parent Required. The unique name of the instance for which a list of clusters is requested. Values are of * the form `projects/{project}/instances/{instance}`. Use `{instance} = '-'` to list * Clusters for all Instances in a project, e.g., `projects/myproject/instances/-`. * @since 1.13 */ protected List(java.lang.String parent) { super(BigtableAdmin.this, "GET", REST_PATH, null, com.google.api.services.bigtableadmin.v2.model.ListClustersResponse.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/[^/]+/instances/[^/]+$"); } } @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 unique name of the instance for which a list of clusters is requested. * Values are of the form `projects/{project}/instances/{instance}`. Use `{instance} = * '-'` to list Clusters for all Instances in a project, e.g., * `projects/myproject/instances/-`. */ @com.google.api.client.util.Key private java.lang.String parent; /** Required. The unique name of the instance for which a list of clusters is requested. Values are of the form `projects/{project}/instances/{instance}`. Use `{instance} = '-'` to list Clusters for all Instances in a project, e.g., `projects/myproject/instances/-`. */ public java.lang.String getParent() { return parent; } /** * Required. The unique name of the instance for which a list of clusters is requested. * Values are of the form `projects/{project}/instances/{instance}`. Use `{instance} = * '-'` to list Clusters for all Instances in a project, e.g., * `projects/myproject/instances/-`. */ 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/[^/]+/instances/[^/]+$"); } this.parent = parent; return this; } /** DEPRECATED: This field is unused and ignored. */ @com.google.api.client.util.Key private java.lang.String pageToken; /** DEPRECATED: This field is unused and ignored. */ public java.lang.String getPageToken() { return pageToken; } /** DEPRECATED: This field is unused and ignored. */ 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); } } /** * Partially updates a cluster within a project. This method is the preferred way to update a * Cluster. To enable and update autoscaling, set cluster_config.cluster_autoscaling_config. When * autoscaling is enabled, serve_nodes is treated as an OUTPUT_ONLY field, meaning that updates to * it are ignored. Note that an update cannot simultaneously set serve_nodes to non-zero and * cluster_config.cluster_autoscaling_config to non-empty, and also specify both in the update_mask. * To disable autoscaling, clear cluster_config.cluster_autoscaling_config, and explicitly set a * serve_node count via the update_mask. * * Create a request for the method "clusters.partialUpdateCluster". * * This request holds the parameters needed by the bigtableadmin server. After setting any optional * parameters, call the {@link PartialUpdateCluster#execute()} method to invoke the remote * operation. * * @param name The unique name of the cluster. Values are of the form * `projects/{project}/instances/{instance}/clusters/a-z*`. * @param content the {@link com.google.api.services.bigtableadmin.v2.model.Cluster} * @return the request */ public PartialUpdateCluster partialUpdateCluster(java.lang.String name, com.google.api.services.bigtableadmin.v2.model.Cluster content) throws java.io.IOException { PartialUpdateCluster result = new PartialUpdateCluster(name, content); initialize(result); return result; } public class PartialUpdateCluster extends BigtableAdminRequest { private static final String REST_PATH = "v2/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/instances/[^/]+/clusters/[^/]+$"); /** * Partially updates a cluster within a project. This method is the preferred way to update a * Cluster. To enable and update autoscaling, set cluster_config.cluster_autoscaling_config. When * autoscaling is enabled, serve_nodes is treated as an OUTPUT_ONLY field, meaning that updates to * it are ignored. Note that an update cannot simultaneously set serve_nodes to non-zero and * cluster_config.cluster_autoscaling_config to non-empty, and also specify both in the * update_mask. To disable autoscaling, clear cluster_config.cluster_autoscaling_config, and * explicitly set a serve_node count via the update_mask. * * Create a request for the method "clusters.partialUpdateCluster". * * This request holds the parameters needed by the the bigtableadmin server. After setting any * optional parameters, call the {@link PartialUpdateCluster#execute()} method to invoke the * remote operation.

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

* * @param name The unique name of the cluster. Values are of the form * `projects/{project}/instances/{instance}/clusters/a-z*`. * @param content the {@link com.google.api.services.bigtableadmin.v2.model.Cluster} * @since 1.13 */ protected PartialUpdateCluster(java.lang.String name, com.google.api.services.bigtableadmin.v2.model.Cluster content) { super(BigtableAdmin.this, "PATCH", REST_PATH, content, com.google.api.services.bigtableadmin.v2.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/[^/]+/instances/[^/]+/clusters/[^/]+$"); } } @Override public PartialUpdateCluster set$Xgafv(java.lang.String $Xgafv) { return (PartialUpdateCluster) super.set$Xgafv($Xgafv); } @Override public PartialUpdateCluster setAccessToken(java.lang.String accessToken) { return (PartialUpdateCluster) super.setAccessToken(accessToken); } @Override public PartialUpdateCluster setAlt(java.lang.String alt) { return (PartialUpdateCluster) super.setAlt(alt); } @Override public PartialUpdateCluster setCallback(java.lang.String callback) { return (PartialUpdateCluster) super.setCallback(callback); } @Override public PartialUpdateCluster setFields(java.lang.String fields) { return (PartialUpdateCluster) super.setFields(fields); } @Override public PartialUpdateCluster setKey(java.lang.String key) { return (PartialUpdateCluster) super.setKey(key); } @Override public PartialUpdateCluster setOauthToken(java.lang.String oauthToken) { return (PartialUpdateCluster) super.setOauthToken(oauthToken); } @Override public PartialUpdateCluster setPrettyPrint(java.lang.Boolean prettyPrint) { return (PartialUpdateCluster) super.setPrettyPrint(prettyPrint); } @Override public PartialUpdateCluster setQuotaUser(java.lang.String quotaUser) { return (PartialUpdateCluster) super.setQuotaUser(quotaUser); } @Override public PartialUpdateCluster setUploadType(java.lang.String uploadType) { return (PartialUpdateCluster) super.setUploadType(uploadType); } @Override public PartialUpdateCluster setUploadProtocol(java.lang.String uploadProtocol) { return (PartialUpdateCluster) super.setUploadProtocol(uploadProtocol); } /** * The unique name of the cluster. Values are of the form * `projects/{project}/instances/{instance}/clusters/a-z*`. */ @com.google.api.client.util.Key private java.lang.String name; /** The unique name of the cluster. Values are of the form `projects/{project}/instances/{instance}/clusters/a-z*`. */ public java.lang.String getName() { return name; } /** * The unique name of the cluster. Values are of the form * `projects/{project}/instances/{instance}/clusters/a-z*`. */ public PartialUpdateCluster 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/[^/]+/instances/[^/]+/clusters/[^/]+$"); } this.name = name; return this; } /** Required. The subset of Cluster fields which should be replaced. */ @com.google.api.client.util.Key private String updateMask; /** Required. The subset of Cluster fields which should be replaced. */ public String getUpdateMask() { return updateMask; } /** Required. The subset of Cluster fields which should be replaced. */ public PartialUpdateCluster setUpdateMask(String updateMask) { this.updateMask = updateMask; return this; } @Override public PartialUpdateCluster set(String parameterName, Object value) { return (PartialUpdateCluster) super.set(parameterName, value); } } /** * Updates a cluster within an instance. Note that UpdateCluster does not support updating * cluster_config.cluster_autoscaling_config. In order to update it, you must use * PartialUpdateCluster. * * Create a request for the method "clusters.update". * * This request holds the parameters needed by the bigtableadmin server. After setting any optional * parameters, call the {@link Update#execute()} method to invoke the remote operation. * * @param name The unique name of the cluster. Values are of the form * `projects/{project}/instances/{instance}/clusters/a-z*`. * @param content the {@link com.google.api.services.bigtableadmin.v2.model.Cluster} * @return the request */ public Update update(java.lang.String name, com.google.api.services.bigtableadmin.v2.model.Cluster content) throws java.io.IOException { Update result = new Update(name, content); initialize(result); return result; } public class Update extends BigtableAdminRequest { private static final String REST_PATH = "v2/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/instances/[^/]+/clusters/[^/]+$"); /** * Updates a cluster within an instance. Note that UpdateCluster does not support updating * cluster_config.cluster_autoscaling_config. In order to update it, you must use * PartialUpdateCluster. * * Create a request for the method "clusters.update". * * This request holds the parameters needed by the the bigtableadmin server. After setting any * optional parameters, call the {@link Update#execute()} method to invoke the remote operation. *

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

* * @param name The unique name of the cluster. Values are of the form * `projects/{project}/instances/{instance}/clusters/a-z*`. * @param content the {@link com.google.api.services.bigtableadmin.v2.model.Cluster} * @since 1.13 */ protected Update(java.lang.String name, com.google.api.services.bigtableadmin.v2.model.Cluster content) { super(BigtableAdmin.this, "PUT", REST_PATH, content, com.google.api.services.bigtableadmin.v2.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/[^/]+/instances/[^/]+/clusters/[^/]+$"); } } @Override public Update set$Xgafv(java.lang.String $Xgafv) { return (Update) super.set$Xgafv($Xgafv); } @Override public Update setAccessToken(java.lang.String accessToken) { return (Update) super.setAccessToken(accessToken); } @Override public Update setAlt(java.lang.String alt) { return (Update) super.setAlt(alt); } @Override public Update setCallback(java.lang.String callback) { return (Update) super.setCallback(callback); } @Override public Update setFields(java.lang.String fields) { return (Update) super.setFields(fields); } @Override public Update setKey(java.lang.String key) { return (Update) super.setKey(key); } @Override public Update setOauthToken(java.lang.String oauthToken) { return (Update) super.setOauthToken(oauthToken); } @Override public Update setPrettyPrint(java.lang.Boolean prettyPrint) { return (Update) super.setPrettyPrint(prettyPrint); } @Override public Update setQuotaUser(java.lang.String quotaUser) { return (Update) super.setQuotaUser(quotaUser); } @Override public Update setUploadType(java.lang.String uploadType) { return (Update) super.setUploadType(uploadType); } @Override public Update setUploadProtocol(java.lang.String uploadProtocol) { return (Update) super.setUploadProtocol(uploadProtocol); } /** * The unique name of the cluster. Values are of the form * `projects/{project}/instances/{instance}/clusters/a-z*`. */ @com.google.api.client.util.Key private java.lang.String name; /** The unique name of the cluster. Values are of the form `projects/{project}/instances/{instance}/clusters/a-z*`. */ public java.lang.String getName() { return name; } /** * The unique name of the cluster. Values are of the form * `projects/{project}/instances/{instance}/clusters/a-z*`. */ public Update 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/[^/]+/instances/[^/]+/clusters/[^/]+$"); } this.name = name; return this; } @Override public Update set(String parameterName, Object value) { return (Update) super.set(parameterName, value); } } /** * An accessor for creating requests from the Backups collection. * *

The typical use is:

*
         *   {@code BigtableAdmin bigtableadmin = new BigtableAdmin(...);}
         *   {@code BigtableAdmin.Backups.List request = bigtableadmin.backups().list(parameters ...)}
         * 
* * @return the resource collection */ public Backups backups() { return new Backups(); } /** * The "backups" collection of methods. */ public class Backups { /** * Copy a Cloud Bigtable backup to a new backup in the destination cluster located in the * destination instance and project. * * Create a request for the method "backups.copy". * * This request holds the parameters needed by the bigtableadmin server. After setting any optional * parameters, call the {@link Copy#execute()} method to invoke the remote operation. * * @param parent Required. The name of the destination cluster that will contain the backup copy. The cluster must * already exist. Values are of the form: * `projects/{project}/instances/{instance}/clusters/{cluster}`. * @param content the {@link com.google.api.services.bigtableadmin.v2.model.CopyBackupRequest} * @return the request */ public Copy copy(java.lang.String parent, com.google.api.services.bigtableadmin.v2.model.CopyBackupRequest content) throws java.io.IOException { Copy result = new Copy(parent, content); initialize(result); return result; } public class Copy extends BigtableAdminRequest { private static final String REST_PATH = "v2/{+parent}/backups:copy"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/instances/[^/]+/clusters/[^/]+$"); /** * Copy a Cloud Bigtable backup to a new backup in the destination cluster located in the * destination instance and project. * * Create a request for the method "backups.copy". * * This request holds the parameters needed by the the bigtableadmin server. After setting any * optional parameters, call the {@link Copy#execute()} method to invoke the remote operation.

* {@link Copy#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 destination cluster that will contain the backup copy. The cluster must * already exist. Values are of the form: * `projects/{project}/instances/{instance}/clusters/{cluster}`. * @param content the {@link com.google.api.services.bigtableadmin.v2.model.CopyBackupRequest} * @since 1.13 */ protected Copy(java.lang.String parent, com.google.api.services.bigtableadmin.v2.model.CopyBackupRequest content) { super(BigtableAdmin.this, "POST", REST_PATH, content, com.google.api.services.bigtableadmin.v2.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/[^/]+/instances/[^/]+/clusters/[^/]+$"); } } @Override public Copy set$Xgafv(java.lang.String $Xgafv) { return (Copy) super.set$Xgafv($Xgafv); } @Override public Copy setAccessToken(java.lang.String accessToken) { return (Copy) super.setAccessToken(accessToken); } @Override public Copy setAlt(java.lang.String alt) { return (Copy) super.setAlt(alt); } @Override public Copy setCallback(java.lang.String callback) { return (Copy) super.setCallback(callback); } @Override public Copy setFields(java.lang.String fields) { return (Copy) super.setFields(fields); } @Override public Copy setKey(java.lang.String key) { return (Copy) super.setKey(key); } @Override public Copy setOauthToken(java.lang.String oauthToken) { return (Copy) super.setOauthToken(oauthToken); } @Override public Copy setPrettyPrint(java.lang.Boolean prettyPrint) { return (Copy) super.setPrettyPrint(prettyPrint); } @Override public Copy setQuotaUser(java.lang.String quotaUser) { return (Copy) super.setQuotaUser(quotaUser); } @Override public Copy setUploadType(java.lang.String uploadType) { return (Copy) super.setUploadType(uploadType); } @Override public Copy setUploadProtocol(java.lang.String uploadProtocol) { return (Copy) super.setUploadProtocol(uploadProtocol); } /** * Required. The name of the destination cluster that will contain the backup copy. The * cluster must already exist. Values are of the form: * `projects/{project}/instances/{instance}/clusters/{cluster}`. */ @com.google.api.client.util.Key private java.lang.String parent; /** Required. The name of the destination cluster that will contain the backup copy. The cluster must already exist. Values are of the form: `projects/{project}/instances/{instance}/clusters/{cluster}`. */ public java.lang.String getParent() { return parent; } /** * Required. The name of the destination cluster that will contain the backup copy. The * cluster must already exist. Values are of the form: * `projects/{project}/instances/{instance}/clusters/{cluster}`. */ public Copy 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/[^/]+/instances/[^/]+/clusters/[^/]+$"); } this.parent = parent; return this; } @Override public Copy set(String parameterName, Object value) { return (Copy) super.set(parameterName, value); } } /** * Starts creating a new Cloud Bigtable Backup. The returned backup long-running operation can be * used to track creation of the backup. The metadata field type is CreateBackupMetadata. The * response field type is Backup, if successful. Cancelling the returned operation will stop the * creation and delete the backup. * * Create a request for the method "backups.create". * * This request holds the parameters needed by the bigtableadmin server. After setting any optional * parameters, call the {@link Create#execute()} method to invoke the remote operation. * * @param parent Required. This must be one of the clusters in the instance in which this table is located. The * backup will be stored in this cluster. Values are of the form * `projects/{project}/instances/{instance}/clusters/{cluster}`. * @param content the {@link com.google.api.services.bigtableadmin.v2.model.Backup} * @return the request */ public Create create(java.lang.String parent, com.google.api.services.bigtableadmin.v2.model.Backup content) throws java.io.IOException { Create result = new Create(parent, content); initialize(result); return result; } public class Create extends BigtableAdminRequest { private static final String REST_PATH = "v2/{+parent}/backups"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/instances/[^/]+/clusters/[^/]+$"); /** * Starts creating a new Cloud Bigtable Backup. The returned backup long-running operation can be * used to track creation of the backup. The metadata field type is CreateBackupMetadata. The * response field type is Backup, if successful. Cancelling the returned operation will stop the * creation and delete the backup. * * Create a request for the method "backups.create". * * This request holds the parameters needed by the the bigtableadmin 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 parent Required. This must be one of the clusters in the instance in which this table is located. The * backup will be stored in this cluster. Values are of the form * `projects/{project}/instances/{instance}/clusters/{cluster}`. * @param content the {@link com.google.api.services.bigtableadmin.v2.model.Backup} * @since 1.13 */ protected Create(java.lang.String parent, com.google.api.services.bigtableadmin.v2.model.Backup content) { super(BigtableAdmin.this, "POST", REST_PATH, content, com.google.api.services.bigtableadmin.v2.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/[^/]+/instances/[^/]+/clusters/[^/]+$"); } } @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. This must be one of the clusters in the instance in which this table is * located. The backup will be stored in this cluster. Values are of the form * `projects/{project}/instances/{instance}/clusters/{cluster}`. */ @com.google.api.client.util.Key private java.lang.String parent; /** Required. This must be one of the clusters in the instance in which this table is located. The backup will be stored in this cluster. Values are of the form `projects/{project}/instances/{instance}/clusters/{cluster}`. */ public java.lang.String getParent() { return parent; } /** * Required. This must be one of the clusters in the instance in which this table is * located. The backup will be stored in this cluster. Values are of the form * `projects/{project}/instances/{instance}/clusters/{cluster}`. */ 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/[^/]+/instances/[^/]+/clusters/[^/]+$"); } this.parent = parent; return this; } /** * Required. The id of the backup to be created. The `backup_id` along with the parent * `parent` are combined as {parent}/backups/{backup_id} to create the full backup name, * of the form: * `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}`. * This string must be between 1 and 50 characters in length and match the regex _a- * zA-Z0-9*. */ @com.google.api.client.util.Key private java.lang.String backupId; /** Required. The id of the backup to be created. The `backup_id` along with the parent `parent` are combined as {parent}/backups/{backup_id} to create the full backup name, of the form: `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}`. This string must be between 1 and 50 characters in length and match the regex _a-zA-Z0-9*. */ public java.lang.String getBackupId() { return backupId; } /** * Required. The id of the backup to be created. The `backup_id` along with the parent * `parent` are combined as {parent}/backups/{backup_id} to create the full backup name, * of the form: * `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}`. * This string must be between 1 and 50 characters in length and match the regex _a- * zA-Z0-9*. */ public Create setBackupId(java.lang.String backupId) { this.backupId = backupId; return this; } @Override public Create set(String parameterName, Object value) { return (Create) super.set(parameterName, value); } } /** * Deletes a pending or completed Cloud Bigtable backup. * * Create a request for the method "backups.delete". * * This request holds the parameters needed by the bigtableadmin server. After setting any optional * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param name Required. Name of the backup to delete. Values are of the form * `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. * @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 BigtableAdminRequest { private static final String REST_PATH = "v2/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/instances/[^/]+/clusters/[^/]+/backups/[^/]+$"); /** * Deletes a pending or completed Cloud Bigtable backup. * * Create a request for the method "backups.delete". * * This request holds the parameters needed by the the bigtableadmin 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 Required. Name of the backup to delete. Values are of the form * `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. * @since 1.13 */ protected Delete(java.lang.String name) { super(BigtableAdmin.this, "DELETE", REST_PATH, null, com.google.api.services.bigtableadmin.v2.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/[^/]+/instances/[^/]+/clusters/[^/]+/backups/[^/]+$"); } } @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. Name of the backup to delete. Values are of the form * `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. */ @com.google.api.client.util.Key private java.lang.String name; /** Required. Name of the backup to delete. Values are of the form `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. */ public java.lang.String getName() { return name; } /** * Required. Name of the backup to delete. Values are of the form * `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. */ 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/[^/]+/instances/[^/]+/clusters/[^/]+/backups/[^/]+$"); } this.name = name; return this; } @Override public Delete set(String parameterName, Object value) { return (Delete) super.set(parameterName, value); } } /** * Gets metadata on a pending or completed Cloud Bigtable Backup. * * Create a request for the method "backups.get". * * This request holds the parameters needed by the bigtableadmin server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param name Required. Name of the backup. Values are of the form * `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. * @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 BigtableAdminRequest { private static final String REST_PATH = "v2/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/instances/[^/]+/clusters/[^/]+/backups/[^/]+$"); /** * Gets metadata on a pending or completed Cloud Bigtable Backup. * * Create a request for the method "backups.get". * * This request holds the parameters needed by the the bigtableadmin 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 Required. Name of the backup. Values are of the form * `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. * @since 1.13 */ protected Get(java.lang.String name) { super(BigtableAdmin.this, "GET", REST_PATH, null, com.google.api.services.bigtableadmin.v2.model.Backup.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/[^/]+/instances/[^/]+/clusters/[^/]+/backups/[^/]+$"); } } @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. Name of the backup. Values are of the form * `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. */ @com.google.api.client.util.Key private java.lang.String name; /** Required. Name of the backup. Values are of the form `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. */ public java.lang.String getName() { return name; } /** * Required. Name of the backup. Values are of the form * `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup}`. */ 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/[^/]+/instances/[^/]+/clusters/[^/]+/backups/[^/]+$"); } 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 Bigtable resource. Returns an empty policy if the resource * exists but does not have a policy set. * * Create a request for the method "backups.getIamPolicy". * * This request holds the parameters needed by the bigtableadmin 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.bigtableadmin.v2.model.GetIamPolicyRequest} * @return the request */ public GetIamPolicy getIamPolicy(java.lang.String resource, com.google.api.services.bigtableadmin.v2.model.GetIamPolicyRequest content) throws java.io.IOException { GetIamPolicy result = new GetIamPolicy(resource, content); initialize(result); return result; } public class GetIamPolicy extends BigtableAdminRequest { private static final String REST_PATH = "v2/{+resource}:getIamPolicy"; private final java.util.regex.Pattern RESOURCE_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/instances/[^/]+/clusters/[^/]+/backups/[^/]+$"); /** * Gets the access control policy for a Bigtable resource. Returns an empty policy if the resource * exists but does not have a policy set. * * Create a request for the method "backups.getIamPolicy". * * This request holds the parameters needed by the the bigtableadmin server. After setting any * optional parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote * operation.

{@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.bigtableadmin.v2.model.GetIamPolicyRequest} * @since 1.13 */ protected GetIamPolicy(java.lang.String resource, com.google.api.services.bigtableadmin.v2.model.GetIamPolicyRequest content) { super(BigtableAdmin.this, "POST", REST_PATH, content, com.google.api.services.bigtableadmin.v2.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/[^/]+/instances/[^/]+/clusters/[^/]+/backups/[^/]+$"); } } @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/[^/]+/instances/[^/]+/clusters/[^/]+/backups/[^/]+$"); } this.resource = resource; return this; } @Override public GetIamPolicy set(String parameterName, Object value) { return (GetIamPolicy) super.set(parameterName, value); } } /** * Lists Cloud Bigtable backups. Returns both completed and pending backups. * * Create a request for the method "backups.list". * * This request holds the parameters needed by the bigtableadmin server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param parent Required. The cluster to list backups from. Values are of the form * `projects/{project}/instances/{instance}/clusters/{cluster}`. Use `{cluster} = '-'` to * list backups for all clusters in an instance, e.g., * `projects/{project}/instances/{instance}/clusters/-`. * @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 BigtableAdminRequest { private static final String REST_PATH = "v2/{+parent}/backups"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/instances/[^/]+/clusters/[^/]+$"); /** * Lists Cloud Bigtable backups. Returns both completed and pending backups. * * Create a request for the method "backups.list". * * This request holds the parameters needed by the the bigtableadmin 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 parent Required. The cluster to list backups from. Values are of the form * `projects/{project}/instances/{instance}/clusters/{cluster}`. Use `{cluster} = '-'` to * list backups for all clusters in an instance, e.g., * `projects/{project}/instances/{instance}/clusters/-`. * @since 1.13 */ protected List(java.lang.String parent) { super(BigtableAdmin.this, "GET", REST_PATH, null, com.google.api.services.bigtableadmin.v2.model.ListBackupsResponse.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/[^/]+/instances/[^/]+/clusters/[^/]+$"); } } @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 cluster to list backups from. Values are of the form * `projects/{project}/instances/{instance}/clusters/{cluster}`. Use `{cluster} = '-'` * to list backups for all clusters in an instance, e.g., * `projects/{project}/instances/{instance}/clusters/-`. */ @com.google.api.client.util.Key private java.lang.String parent; /** Required. The cluster to list backups from. Values are of the form `projects/{project}/instances/{instance}/clusters/{cluster}`. Use `{cluster} = '-'` to list backups for all clusters in an instance, e.g., `projects/{project}/instances/{instance}/clusters/-`. */ public java.lang.String getParent() { return parent; } /** * Required. The cluster to list backups from. Values are of the form * `projects/{project}/instances/{instance}/clusters/{cluster}`. Use `{cluster} = '-'` * to list backups for all clusters in an instance, e.g., * `projects/{project}/instances/{instance}/clusters/-`. */ 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/[^/]+/instances/[^/]+/clusters/[^/]+$"); } this.parent = parent; return this; } /** * A filter expression that filters backups listed in the response. The expression must * specify the field name, a comparison operator, and the value that you want to use for * filtering. The value must be a string, a number, or a boolean. The comparison * operator must be <, >, <=, >=, !=, =, or :. Colon ':' represents a HAS operator which * is roughly synonymous with equality. Filter rules are case insensitive. The fields * eligible for filtering are: * `name` * `source_table` * `state` * `start_time` (and * values are of the format YYYY-MM-DDTHH:MM:SSZ) * `end_time` (and values are of the * format YYYY-MM-DDTHH:MM:SSZ) * `expire_time` (and values are of the format YYYY-MM- * DDTHH:MM:SSZ) * `size_bytes` To filter on multiple expressions, provide each separate * expression within parentheses. By default, each expression is an AND expression. * However, you can include AND, OR, and NOT expressions explicitly. Some examples of * using filters are: * `name:"exact"` --> The backup's name is the string "exact". * * `name:howl` --> The backup's name contains the string "howl". * `source_table:prod` * --> The source_table's name contains the string "prod". * `state:CREATING` --> The * backup is pending creation. * `state:READY` --> The backup is fully created and ready * for use. * `(name:howl) AND (start_time < \"2018-03-28T14:50:00Z\")` --> The backup * name contains the string "howl" and start_time of the backup is before * 2018-03-28T14:50:00Z. * `size_bytes > 10000000000` --> The backup's size is greater * than 10GB */ @com.google.api.client.util.Key private java.lang.String filter; /** A filter expression that filters backups listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be <, >, <=, >=, !=, =, or :. Colon ':' represents a HAS operator which is roughly synonymous with equality. Filter rules are case insensitive. The fields eligible for filtering are: * `name` * `source_table` * `state` * `start_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) * `end_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) * `expire_time` (and values are of the format YYYY-MM- DDTHH:MM:SSZ) * `size_bytes` To filter on multiple expressions, provide each separate expression within parentheses. By default, each expression is an AND expression. However, you can include AND, OR, and NOT expressions explicitly. Some examples of using filters are: * `name:"exact"` --> The backup's name is the string "exact". * `name:howl` --> The backup's name contains the string "howl". * `source_table:prod` --> The source_table's name contains the string "prod". * `state:CREATING` --> The backup is pending creation. * `state:READY` --> The backup is fully created and ready for use. * `(name:howl) AND (start_time < \"2018-03-28T14:50:00Z\")` --> The backup name contains the string "howl" and start_time of the backup is before 2018-03-28T14:50:00Z. * `size_bytes > 10000000000` --> The backup's size is greater than 10GB */ public java.lang.String getFilter() { return filter; } /** * A filter expression that filters backups listed in the response. The expression must * specify the field name, a comparison operator, and the value that you want to use for * filtering. The value must be a string, a number, or a boolean. The comparison * operator must be <, >, <=, >=, !=, =, or :. Colon ':' represents a HAS operator which * is roughly synonymous with equality. Filter rules are case insensitive. The fields * eligible for filtering are: * `name` * `source_table` * `state` * `start_time` (and * values are of the format YYYY-MM-DDTHH:MM:SSZ) * `end_time` (and values are of the * format YYYY-MM-DDTHH:MM:SSZ) * `expire_time` (and values are of the format YYYY-MM- * DDTHH:MM:SSZ) * `size_bytes` To filter on multiple expressions, provide each separate * expression within parentheses. By default, each expression is an AND expression. * However, you can include AND, OR, and NOT expressions explicitly. Some examples of * using filters are: * `name:"exact"` --> The backup's name is the string "exact". * * `name:howl` --> The backup's name contains the string "howl". * `source_table:prod` * --> The source_table's name contains the string "prod". * `state:CREATING` --> The * backup is pending creation. * `state:READY` --> The backup is fully created and ready * for use. * `(name:howl) AND (start_time < \"2018-03-28T14:50:00Z\")` --> The backup * name contains the string "howl" and start_time of the backup is before * 2018-03-28T14:50:00Z. * `size_bytes > 10000000000` --> The backup's size is greater * than 10GB */ public List setFilter(java.lang.String filter) { this.filter = filter; return this; } /** * An expression for specifying the sort order of the results of the request. The string * value should specify one or more fields in Backup. The full syntax is described at * https://aip.dev/132#ordering. Fields supported are: * name * source_table * * expire_time * start_time * end_time * size_bytes * state For example, "start_time". * The default sorting order is ascending. To specify descending order for the field, a * suffix " desc" should be appended to the field name. For example, "start_time desc". * Redundant space characters in the syntax are insigificant. If order_by is empty, * results will be sorted by `start_time` in descending order starting from the most * recently created backup. */ @com.google.api.client.util.Key private java.lang.String orderBy; /** An expression for specifying the sort order of the results of the request. The string value should specify one or more fields in Backup. The full syntax is described at https://aip.dev/132#ordering. Fields supported are: * name * source_table * expire_time * start_time * end_time * size_bytes * state For example, "start_time". The default sorting order is ascending. To specify descending order for the field, a suffix " desc" should be appended to the field name. For example, "start_time desc". Redundant space characters in the syntax are insigificant. If order_by is empty, results will be sorted by `start_time` in descending order starting from the most recently created backup. */ public java.lang.String getOrderBy() { return orderBy; } /** * An expression for specifying the sort order of the results of the request. The string * value should specify one or more fields in Backup. The full syntax is described at * https://aip.dev/132#ordering. Fields supported are: * name * source_table * * expire_time * start_time * end_time * size_bytes * state For example, "start_time". * The default sorting order is ascending. To specify descending order for the field, a * suffix " desc" should be appended to the field name. For example, "start_time desc". * Redundant space characters in the syntax are insigificant. If order_by is empty, * results will be sorted by `start_time` in descending order starting from the most * recently created backup. */ public List setOrderBy(java.lang.String orderBy) { this.orderBy = orderBy; return this; } /** * Number of backups to be returned in the response. If 0 or less, defaults to the * server's maximum allowed page size. */ @com.google.api.client.util.Key private java.lang.Integer pageSize; /** Number of backups to be returned in the response. If 0 or less, defaults to the server's maximum allowed page size. */ public java.lang.Integer getPageSize() { return pageSize; } /** * Number of backups to be returned in the response. If 0 or less, defaults to the * server's maximum allowed page size. */ public List setPageSize(java.lang.Integer pageSize) { this.pageSize = pageSize; return this; } /** * If non-empty, `page_token` should contain a next_page_token from a previous * ListBackupsResponse to the same `parent` and with the same `filter`. */ @com.google.api.client.util.Key private java.lang.String pageToken; /** If non-empty, `page_token` should contain a next_page_token from a previous ListBackupsResponse to the same `parent` and with the same `filter`. */ public java.lang.String getPageToken() { return pageToken; } /** * If non-empty, `page_token` should contain a next_page_token from a previous * ListBackupsResponse to the same `parent` and with the same `filter`. */ 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 a pending or completed Cloud Bigtable Backup. * * Create a request for the method "backups.patch". * * This request holds the parameters needed by the bigtableadmin server. After setting any optional * parameters, call the {@link Patch#execute()} method to invoke the remote operation. * * @param name A globally unique identifier for the backup which cannot be changed. Values are of the form * `projects/{project}/instances/{instance}/clusters/{cluster}/ backups/_a-zA-Z0-9*` The * final segment of the name must be between 1 and 50 characters in length. The backup is * stored in the cluster identified by the prefix of the backup name of the form * `projects/{project}/instances/{instance}/clusters/{cluster}`. * @param content the {@link com.google.api.services.bigtableadmin.v2.model.Backup} * @return the request */ public Patch patch(java.lang.String name, com.google.api.services.bigtableadmin.v2.model.Backup content) throws java.io.IOException { Patch result = new Patch(name, content); initialize(result); return result; } public class Patch extends BigtableAdminRequest { private static final String REST_PATH = "v2/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/instances/[^/]+/clusters/[^/]+/backups/[^/]+$"); /** * Updates a pending or completed Cloud Bigtable Backup. * * Create a request for the method "backups.patch". * * This request holds the parameters needed by the the bigtableadmin server. After setting any * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. *

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

* * @param name A globally unique identifier for the backup which cannot be changed. Values are of the form * `projects/{project}/instances/{instance}/clusters/{cluster}/ backups/_a-zA-Z0-9*` The * final segment of the name must be between 1 and 50 characters in length. The backup is * stored in the cluster identified by the prefix of the backup name of the form * `projects/{project}/instances/{instance}/clusters/{cluster}`. * @param content the {@link com.google.api.services.bigtableadmin.v2.model.Backup} * @since 1.13 */ protected Patch(java.lang.String name, com.google.api.services.bigtableadmin.v2.model.Backup content) { super(BigtableAdmin.this, "PATCH", REST_PATH, content, com.google.api.services.bigtableadmin.v2.model.Backup.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/[^/]+/instances/[^/]+/clusters/[^/]+/backups/[^/]+$"); } } @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); } /** * A globally unique identifier for the backup which cannot be changed. Values are of * the form `projects/{project}/instances/{instance}/clusters/{cluster}/ backups/_a- * zA-Z0-9*` The final segment of the name must be between 1 and 50 characters in * length. The backup is stored in the cluster identified by the prefix of the backup * name of the form `projects/{project}/instances/{instance}/clusters/{cluster}`. */ @com.google.api.client.util.Key private java.lang.String name; /** A globally unique identifier for the backup which cannot be changed. Values are of the form `projects/{project}/instances/{instance}/clusters/{cluster}/ backups/_a-zA-Z0-9*` The final segment of the name must be between 1 and 50 characters in length. The backup is stored in the cluster identified by the prefix of the backup name of the form `projects/{project}/instances/{instance}/clusters/{cluster}`. */ public java.lang.String getName() { return name; } /** * A globally unique identifier for the backup which cannot be changed. Values are of * the form `projects/{project}/instances/{instance}/clusters/{cluster}/ backups/_a- * zA-Z0-9*` The final segment of the name must be between 1 and 50 characters in * length. The backup is stored in the cluster identified by the prefix of the backup * name of the form `projects/{project}/instances/{instance}/clusters/{cluster}`. */ 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/[^/]+/instances/[^/]+/clusters/[^/]+/backups/[^/]+$"); } this.name = name; return this; } /** * Required. A mask specifying which fields (e.g. `expire_time`) in the Backup resource * should be updated. This mask is relative to the Backup resource, not to the request * message. The field mask must always be specified; this prevents any future fields * from being erased accidentally by clients that do not know about them. */ @com.google.api.client.util.Key private String updateMask; /** Required. A mask specifying which fields (e.g. `expire_time`) in the Backup resource should be updated. This mask is relative to the Backup resource, not to the request message. The field mask must always be specified; this prevents any future fields from being erased accidentally by clients that do not know about them. */ public String getUpdateMask() { return updateMask; } /** * Required. A mask specifying which fields (e.g. `expire_time`) in the Backup resource * should be updated. This mask is relative to the Backup resource, not to the request * message. The field mask must always be specified; this prevents any future fields * from being erased accidentally by clients that do not know about them. */ 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 on a Bigtable resource. Replaces any existing policy. * * Create a request for the method "backups.setIamPolicy". * * This request holds the parameters needed by the bigtableadmin 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.bigtableadmin.v2.model.SetIamPolicyRequest} * @return the request */ public SetIamPolicy setIamPolicy(java.lang.String resource, com.google.api.services.bigtableadmin.v2.model.SetIamPolicyRequest content) throws java.io.IOException { SetIamPolicy result = new SetIamPolicy(resource, content); initialize(result); return result; } public class SetIamPolicy extends BigtableAdminRequest { private static final String REST_PATH = "v2/{+resource}:setIamPolicy"; private final java.util.regex.Pattern RESOURCE_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/instances/[^/]+/clusters/[^/]+/backups/[^/]+$"); /** * Sets the access control policy on a Bigtable resource. Replaces any existing policy. * * Create a request for the method "backups.setIamPolicy". * * This request holds the parameters needed by the the bigtableadmin server. After setting any * optional parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote * operation.

{@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.bigtableadmin.v2.model.SetIamPolicyRequest} * @since 1.13 */ protected SetIamPolicy(java.lang.String resource, com.google.api.services.bigtableadmin.v2.model.SetIamPolicyRequest content) { super(BigtableAdmin.this, "POST", REST_PATH, content, com.google.api.services.bigtableadmin.v2.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/[^/]+/instances/[^/]+/clusters/[^/]+/backups/[^/]+$"); } } @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/[^/]+/instances/[^/]+/clusters/[^/]+/backups/[^/]+$"); } this.resource = resource; return this; } @Override public SetIamPolicy set(String parameterName, Object value) { return (SetIamPolicy) super.set(parameterName, value); } } /** * Returns permissions that the caller has on the specified Bigtable resource. * * Create a request for the method "backups.testIamPermissions". * * This request holds the parameters needed by the bigtableadmin 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.bigtableadmin.v2.model.TestIamPermissionsRequest} * @return the request */ public TestIamPermissions testIamPermissions(java.lang.String resource, com.google.api.services.bigtableadmin.v2.model.TestIamPermissionsRequest content) throws java.io.IOException { TestIamPermissions result = new TestIamPermissions(resource, content); initialize(result); return result; } public class TestIamPermissions extends BigtableAdminRequest { private static final String REST_PATH = "v2/{+resource}:testIamPermissions"; private final java.util.regex.Pattern RESOURCE_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/instances/[^/]+/clusters/[^/]+/backups/[^/]+$"); /** * Returns permissions that the caller has on the specified Bigtable resource. * * Create a request for the method "backups.testIamPermissions". * * This request holds the parameters needed by the the bigtableadmin server. After setting any * optional parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote * operation.

{@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.bigtableadmin.v2.model.TestIamPermissionsRequest} * @since 1.13 */ protected TestIamPermissions(java.lang.String resource, com.google.api.services.bigtableadmin.v2.model.TestIamPermissionsRequest content) { super(BigtableAdmin.this, "POST", REST_PATH, content, com.google.api.services.bigtableadmin.v2.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/[^/]+/instances/[^/]+/clusters/[^/]+/backups/[^/]+$"); } } @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/[^/]+/instances/[^/]+/clusters/[^/]+/backups/[^/]+$"); } 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 HotTablets collection. * *

The typical use is:

*
         *   {@code BigtableAdmin bigtableadmin = new BigtableAdmin(...);}
         *   {@code BigtableAdmin.HotTablets.List request = bigtableadmin.hotTablets().list(parameters ...)}
         * 
* * @return the resource collection */ public HotTablets hotTablets() { return new HotTablets(); } /** * The "hotTablets" collection of methods. */ public class HotTablets { /** * Lists hot tablets in a cluster, within the time range provided. Hot tablets are ordered based on * CPU usage. * * Create a request for the method "hotTablets.list". * * This request holds the parameters needed by the bigtableadmin server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param parent Required. The cluster name to list hot tablets. Value is in the following form: * `projects/{project}/instances/{instance}/clusters/{cluster}`. * @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 BigtableAdminRequest { private static final String REST_PATH = "v2/{+parent}/hotTablets"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/instances/[^/]+/clusters/[^/]+$"); /** * Lists hot tablets in a cluster, within the time range provided. Hot tablets are ordered based * on CPU usage. * * Create a request for the method "hotTablets.list". * * This request holds the parameters needed by the the bigtableadmin 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 parent Required. The cluster name to list hot tablets. Value is in the following form: * `projects/{project}/instances/{instance}/clusters/{cluster}`. * @since 1.13 */ protected List(java.lang.String parent) { super(BigtableAdmin.this, "GET", REST_PATH, null, com.google.api.services.bigtableadmin.v2.model.ListHotTabletsResponse.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/[^/]+/instances/[^/]+/clusters/[^/]+$"); } } @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 cluster name to list hot tablets. Value is in the following form: * `projects/{project}/instances/{instance}/clusters/{cluster}`. */ @com.google.api.client.util.Key private java.lang.String parent; /** Required. The cluster name to list hot tablets. Value is in the following form: `projects/{project}/instances/{instance}/clusters/{cluster}`. */ public java.lang.String getParent() { return parent; } /** * Required. The cluster name to list hot tablets. Value is in the following form: * `projects/{project}/instances/{instance}/clusters/{cluster}`. */ 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/[^/]+/instances/[^/]+/clusters/[^/]+$"); } this.parent = parent; return this; } /** The end time to list hot tablets. */ @com.google.api.client.util.Key private String endTime; /** The end time to list hot tablets. */ public String getEndTime() { return endTime; } /** The end time to list hot tablets. */ public List setEndTime(String endTime) { this.endTime = endTime; return this; } /** * Maximum number of results per page. A page_size that is empty or zero lets the server * choose the number of items to return. A page_size which is strictly positive will * return at most that many items. A negative page_size will cause an error. Following * the first request, subsequent paginated calls do not need a page_size field. If a * page_size is set in subsequent calls, it must match the page_size given in the first * request. */ @com.google.api.client.util.Key private java.lang.Integer pageSize; /** Maximum number of results per page. A page_size that is empty or zero lets the server choose the number of items to return. A page_size which is strictly positive will return at most that many items. A negative page_size will cause an error. Following the first request, subsequent paginated calls do not need a page_size field. If a page_size is set in subsequent calls, it must match the page_size given in the first request. */ public java.lang.Integer getPageSize() { return pageSize; } /** * Maximum number of results per page. A page_size that is empty or zero lets the server * choose the number of items to return. A page_size which is strictly positive will * return at most that many items. A negative page_size will cause an error. Following * the first request, subsequent paginated calls do not need a page_size field. If a * page_size is set in subsequent calls, it must match the page_size given in the first * request. */ public List setPageSize(java.lang.Integer pageSize) { this.pageSize = pageSize; return this; } /** The value of `next_page_token` returned by a previous call. */ @com.google.api.client.util.Key private java.lang.String pageToken; /** The value of `next_page_token` returned by a previous call. */ public java.lang.String getPageToken() { return pageToken; } /** The value of `next_page_token` returned by a previous call. */ public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } /** * The start time to list hot tablets. The hot tablets in the response will have start * times between the requested start time and end time. Start time defaults to Now if it * is unset, and end time defaults to Now - 24 hours if it is unset. The start time * should be less than the end time, and the maximum allowed time range between start * time and end time is 48 hours. Start time and end time should have values between Now * and Now - 14 days. */ @com.google.api.client.util.Key private String startTime; /** The start time to list hot tablets. The hot tablets in the response will have start times between the requested start time and end time. Start time defaults to Now if it is unset, and end time defaults to Now - 24 hours if it is unset. The start time should be less than the end time, and the maximum allowed time range between start time and end time is 48 hours. Start time and end time should have values between Now and Now - 14 days. */ public String getStartTime() { return startTime; } /** * The start time to list hot tablets. The hot tablets in the response will have start * times between the requested start time and end time. Start time defaults to Now if it * is unset, and end time defaults to Now - 24 hours if it is unset. The start time * should be less than the end time, and the maximum allowed time range between start * time and end time is 48 hours. Start time and end time should have values between Now * and Now - 14 days. */ public List setStartTime(String startTime) { this.startTime = startTime; return this; } @Override public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } } } /** * An accessor for creating requests from the Tables collection. * *

The typical use is:

*
       *   {@code BigtableAdmin bigtableadmin = new BigtableAdmin(...);}
       *   {@code BigtableAdmin.Tables.List request = bigtableadmin.tables().list(parameters ...)}
       * 
* * @return the resource collection */ public Tables tables() { return new Tables(); } /** * The "tables" collection of methods. */ public class Tables { /** * Checks replication consistency based on a consistency token, that is, if replication has caught * up based on the conditions specified in the token and the check request. * * Create a request for the method "tables.checkConsistency". * * This request holds the parameters needed by the bigtableadmin server. After setting any optional * parameters, call the {@link CheckConsistency#execute()} method to invoke the remote operation. * * @param name Required. The unique name of the Table for which to check replication consistency. Values are of the * form `projects/{project}/instances/{instance}/tables/{table}`. * @param content the {@link com.google.api.services.bigtableadmin.v2.model.CheckConsistencyRequest} * @return the request */ public CheckConsistency checkConsistency(java.lang.String name, com.google.api.services.bigtableadmin.v2.model.CheckConsistencyRequest content) throws java.io.IOException { CheckConsistency result = new CheckConsistency(name, content); initialize(result); return result; } public class CheckConsistency extends BigtableAdminRequest { private static final String REST_PATH = "v2/{+name}:checkConsistency"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/instances/[^/]+/tables/[^/]+$"); /** * Checks replication consistency based on a consistency token, that is, if replication has caught * up based on the conditions specified in the token and the check request. * * Create a request for the method "tables.checkConsistency". * * This request holds the parameters needed by the the bigtableadmin server. After setting any * optional parameters, call the {@link CheckConsistency#execute()} method to invoke the remote * operation.

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

* * @param name Required. The unique name of the Table for which to check replication consistency. Values are of the * form `projects/{project}/instances/{instance}/tables/{table}`. * @param content the {@link com.google.api.services.bigtableadmin.v2.model.CheckConsistencyRequest} * @since 1.13 */ protected CheckConsistency(java.lang.String name, com.google.api.services.bigtableadmin.v2.model.CheckConsistencyRequest content) { super(BigtableAdmin.this, "POST", REST_PATH, content, com.google.api.services.bigtableadmin.v2.model.CheckConsistencyResponse.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/[^/]+/instances/[^/]+/tables/[^/]+$"); } } @Override public CheckConsistency set$Xgafv(java.lang.String $Xgafv) { return (CheckConsistency) super.set$Xgafv($Xgafv); } @Override public CheckConsistency setAccessToken(java.lang.String accessToken) { return (CheckConsistency) super.setAccessToken(accessToken); } @Override public CheckConsistency setAlt(java.lang.String alt) { return (CheckConsistency) super.setAlt(alt); } @Override public CheckConsistency setCallback(java.lang.String callback) { return (CheckConsistency) super.setCallback(callback); } @Override public CheckConsistency setFields(java.lang.String fields) { return (CheckConsistency) super.setFields(fields); } @Override public CheckConsistency setKey(java.lang.String key) { return (CheckConsistency) super.setKey(key); } @Override public CheckConsistency setOauthToken(java.lang.String oauthToken) { return (CheckConsistency) super.setOauthToken(oauthToken); } @Override public CheckConsistency setPrettyPrint(java.lang.Boolean prettyPrint) { return (CheckConsistency) super.setPrettyPrint(prettyPrint); } @Override public CheckConsistency setQuotaUser(java.lang.String quotaUser) { return (CheckConsistency) super.setQuotaUser(quotaUser); } @Override public CheckConsistency setUploadType(java.lang.String uploadType) { return (CheckConsistency) super.setUploadType(uploadType); } @Override public CheckConsistency setUploadProtocol(java.lang.String uploadProtocol) { return (CheckConsistency) super.setUploadProtocol(uploadProtocol); } /** * Required. The unique name of the Table for which to check replication consistency. * Values are of the form `projects/{project}/instances/{instance}/tables/{table}`. */ @com.google.api.client.util.Key private java.lang.String name; /** Required. The unique name of the Table for which to check replication consistency. Values are of the form `projects/{project}/instances/{instance}/tables/{table}`. */ public java.lang.String getName() { return name; } /** * Required. The unique name of the Table for which to check replication consistency. * Values are of the form `projects/{project}/instances/{instance}/tables/{table}`. */ public CheckConsistency 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/[^/]+/instances/[^/]+/tables/[^/]+$"); } this.name = name; return this; } @Override public CheckConsistency set(String parameterName, Object value) { return (CheckConsistency) super.set(parameterName, value); } } /** * Creates a new table in the specified instance. The table can be created with a full set of * initial column families, specified in the request. * * Create a request for the method "tables.create". * * This request holds the parameters needed by the bigtableadmin server. After setting any optional * parameters, call the {@link Create#execute()} method to invoke the remote operation. * * @param parent Required. The unique name of the instance in which to create the table. Values are of the form * `projects/{project}/instances/{instance}`. * @param content the {@link com.google.api.services.bigtableadmin.v2.model.CreateTableRequest} * @return the request */ public Create create(java.lang.String parent, com.google.api.services.bigtableadmin.v2.model.CreateTableRequest content) throws java.io.IOException { Create result = new Create(parent, content); initialize(result); return result; } public class Create extends BigtableAdminRequest { private static final String REST_PATH = "v2/{+parent}/tables"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/instances/[^/]+$"); /** * Creates a new table in the specified instance. The table can be created with a full set of * initial column families, specified in the request. * * Create a request for the method "tables.create". * * This request holds the parameters needed by the the bigtableadmin 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 parent Required. The unique name of the instance in which to create the table. Values are of the form * `projects/{project}/instances/{instance}`. * @param content the {@link com.google.api.services.bigtableadmin.v2.model.CreateTableRequest} * @since 1.13 */ protected Create(java.lang.String parent, com.google.api.services.bigtableadmin.v2.model.CreateTableRequest content) { super(BigtableAdmin.this, "POST", REST_PATH, content, com.google.api.services.bigtableadmin.v2.model.Table.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/[^/]+/instances/[^/]+$"); } } @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 unique name of the instance in which to create the table. Values are of * the form `projects/{project}/instances/{instance}`. */ @com.google.api.client.util.Key private java.lang.String parent; /** Required. The unique name of the instance in which to create the table. Values are of the form `projects/{project}/instances/{instance}`. */ public java.lang.String getParent() { return parent; } /** * Required. The unique name of the instance in which to create the table. Values are of * the form `projects/{project}/instances/{instance}`. */ 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/[^/]+/instances/[^/]+$"); } this.parent = parent; return this; } @Override public Create set(String parameterName, Object value) { return (Create) super.set(parameterName, value); } } /** * Permanently deletes a specified table and all of its data. * * Create a request for the method "tables.delete". * * This request holds the parameters needed by the bigtableadmin server. After setting any optional * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param name Required. The unique name of the table to be deleted. Values are of the form * `projects/{project}/instances/{instance}/tables/{table}`. * @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 BigtableAdminRequest { private static final String REST_PATH = "v2/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/instances/[^/]+/tables/[^/]+$"); /** * Permanently deletes a specified table and all of its data. * * Create a request for the method "tables.delete". * * This request holds the parameters needed by the the bigtableadmin 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 Required. The unique name of the table to be deleted. Values are of the form * `projects/{project}/instances/{instance}/tables/{table}`. * @since 1.13 */ protected Delete(java.lang.String name) { super(BigtableAdmin.this, "DELETE", REST_PATH, null, com.google.api.services.bigtableadmin.v2.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/[^/]+/instances/[^/]+/tables/[^/]+$"); } } @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 unique name of the table to be deleted. Values are of the form * `projects/{project}/instances/{instance}/tables/{table}`. */ @com.google.api.client.util.Key private java.lang.String name; /** Required. The unique name of the table to be deleted. Values are of the form `projects/{project}/instances/{instance}/tables/{table}`. */ public java.lang.String getName() { return name; } /** * Required. The unique name of the table to be deleted. Values are of the form * `projects/{project}/instances/{instance}/tables/{table}`. */ 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/[^/]+/instances/[^/]+/tables/[^/]+$"); } this.name = name; return this; } @Override public Delete set(String parameterName, Object value) { return (Delete) super.set(parameterName, value); } } /** * Permanently drop/delete a row range from a specified table. The request can specify whether to * delete all rows in a table, or only those that match a particular prefix. Note that row key * prefixes used here are treated as service data. For more information about how service data is * handled, see the [Google Cloud Privacy Notice](https://cloud.google.com/terms/cloud-privacy- * notice). * * Create a request for the method "tables.dropRowRange". * * This request holds the parameters needed by the bigtableadmin server. After setting any optional * parameters, call the {@link DropRowRange#execute()} method to invoke the remote operation. * * @param name Required. The unique name of the table on which to drop a range of rows. Values are of the form * `projects/{project}/instances/{instance}/tables/{table}`. * @param content the {@link com.google.api.services.bigtableadmin.v2.model.DropRowRangeRequest} * @return the request */ public DropRowRange dropRowRange(java.lang.String name, com.google.api.services.bigtableadmin.v2.model.DropRowRangeRequest content) throws java.io.IOException { DropRowRange result = new DropRowRange(name, content); initialize(result); return result; } public class DropRowRange extends BigtableAdminRequest { private static final String REST_PATH = "v2/{+name}:dropRowRange"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/instances/[^/]+/tables/[^/]+$"); /** * Permanently drop/delete a row range from a specified table. The request can specify whether to * delete all rows in a table, or only those that match a particular prefix. Note that row key * prefixes used here are treated as service data. For more information about how service data is * handled, see the [Google Cloud Privacy Notice](https://cloud.google.com/terms/cloud-privacy- * notice). * * Create a request for the method "tables.dropRowRange". * * This request holds the parameters needed by the the bigtableadmin server. After setting any * optional parameters, call the {@link DropRowRange#execute()} method to invoke the remote * operation.

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

* * @param name Required. The unique name of the table on which to drop a range of rows. Values are of the form * `projects/{project}/instances/{instance}/tables/{table}`. * @param content the {@link com.google.api.services.bigtableadmin.v2.model.DropRowRangeRequest} * @since 1.13 */ protected DropRowRange(java.lang.String name, com.google.api.services.bigtableadmin.v2.model.DropRowRangeRequest content) { super(BigtableAdmin.this, "POST", REST_PATH, content, com.google.api.services.bigtableadmin.v2.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/[^/]+/instances/[^/]+/tables/[^/]+$"); } } @Override public DropRowRange set$Xgafv(java.lang.String $Xgafv) { return (DropRowRange) super.set$Xgafv($Xgafv); } @Override public DropRowRange setAccessToken(java.lang.String accessToken) { return (DropRowRange) super.setAccessToken(accessToken); } @Override public DropRowRange setAlt(java.lang.String alt) { return (DropRowRange) super.setAlt(alt); } @Override public DropRowRange setCallback(java.lang.String callback) { return (DropRowRange) super.setCallback(callback); } @Override public DropRowRange setFields(java.lang.String fields) { return (DropRowRange) super.setFields(fields); } @Override public DropRowRange setKey(java.lang.String key) { return (DropRowRange) super.setKey(key); } @Override public DropRowRange setOauthToken(java.lang.String oauthToken) { return (DropRowRange) super.setOauthToken(oauthToken); } @Override public DropRowRange setPrettyPrint(java.lang.Boolean prettyPrint) { return (DropRowRange) super.setPrettyPrint(prettyPrint); } @Override public DropRowRange setQuotaUser(java.lang.String quotaUser) { return (DropRowRange) super.setQuotaUser(quotaUser); } @Override public DropRowRange setUploadType(java.lang.String uploadType) { return (DropRowRange) super.setUploadType(uploadType); } @Override public DropRowRange setUploadProtocol(java.lang.String uploadProtocol) { return (DropRowRange) super.setUploadProtocol(uploadProtocol); } /** * Required. The unique name of the table on which to drop a range of rows. Values are of * the form `projects/{project}/instances/{instance}/tables/{table}`. */ @com.google.api.client.util.Key private java.lang.String name; /** Required. The unique name of the table on which to drop a range of rows. Values are of the form `projects/{project}/instances/{instance}/tables/{table}`. */ public java.lang.String getName() { return name; } /** * Required. The unique name of the table on which to drop a range of rows. Values are of * the form `projects/{project}/instances/{instance}/tables/{table}`. */ public DropRowRange 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/[^/]+/instances/[^/]+/tables/[^/]+$"); } this.name = name; return this; } @Override public DropRowRange set(String parameterName, Object value) { return (DropRowRange) super.set(parameterName, value); } } /** * Generates a consistency token for a Table, which can be used in CheckConsistency to check whether * mutations to the table that finished before this call started have been replicated. The tokens * will be available for 90 days. * * Create a request for the method "tables.generateConsistencyToken". * * This request holds the parameters needed by the bigtableadmin server. After setting any optional * parameters, call the {@link GenerateConsistencyToken#execute()} method to invoke the remote * operation. * * @param name Required. The unique name of the Table for which to create a consistency token. Values are of the * form `projects/{project}/instances/{instance}/tables/{table}`. * @param content the {@link com.google.api.services.bigtableadmin.v2.model.GenerateConsistencyTokenRequest} * @return the request */ public GenerateConsistencyToken generateConsistencyToken(java.lang.String name, com.google.api.services.bigtableadmin.v2.model.GenerateConsistencyTokenRequest content) throws java.io.IOException { GenerateConsistencyToken result = new GenerateConsistencyToken(name, content); initialize(result); return result; } public class GenerateConsistencyToken extends BigtableAdminRequest { private static final String REST_PATH = "v2/{+name}:generateConsistencyToken"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/instances/[^/]+/tables/[^/]+$"); /** * Generates a consistency token for a Table, which can be used in CheckConsistency to check * whether mutations to the table that finished before this call started have been replicated. The * tokens will be available for 90 days. * * Create a request for the method "tables.generateConsistencyToken". * * This request holds the parameters needed by the the bigtableadmin server. After setting any * optional parameters, call the {@link GenerateConsistencyToken#execute()} method to invoke the * remote operation.

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

* * @param name Required. The unique name of the Table for which to create a consistency token. Values are of the * form `projects/{project}/instances/{instance}/tables/{table}`. * @param content the {@link com.google.api.services.bigtableadmin.v2.model.GenerateConsistencyTokenRequest} * @since 1.13 */ protected GenerateConsistencyToken(java.lang.String name, com.google.api.services.bigtableadmin.v2.model.GenerateConsistencyTokenRequest content) { super(BigtableAdmin.this, "POST", REST_PATH, content, com.google.api.services.bigtableadmin.v2.model.GenerateConsistencyTokenResponse.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/[^/]+/instances/[^/]+/tables/[^/]+$"); } } @Override public GenerateConsistencyToken set$Xgafv(java.lang.String $Xgafv) { return (GenerateConsistencyToken) super.set$Xgafv($Xgafv); } @Override public GenerateConsistencyToken setAccessToken(java.lang.String accessToken) { return (GenerateConsistencyToken) super.setAccessToken(accessToken); } @Override public GenerateConsistencyToken setAlt(java.lang.String alt) { return (GenerateConsistencyToken) super.setAlt(alt); } @Override public GenerateConsistencyToken setCallback(java.lang.String callback) { return (GenerateConsistencyToken) super.setCallback(callback); } @Override public GenerateConsistencyToken setFields(java.lang.String fields) { return (GenerateConsistencyToken) super.setFields(fields); } @Override public GenerateConsistencyToken setKey(java.lang.String key) { return (GenerateConsistencyToken) super.setKey(key); } @Override public GenerateConsistencyToken setOauthToken(java.lang.String oauthToken) { return (GenerateConsistencyToken) super.setOauthToken(oauthToken); } @Override public GenerateConsistencyToken setPrettyPrint(java.lang.Boolean prettyPrint) { return (GenerateConsistencyToken) super.setPrettyPrint(prettyPrint); } @Override public GenerateConsistencyToken setQuotaUser(java.lang.String quotaUser) { return (GenerateConsistencyToken) super.setQuotaUser(quotaUser); } @Override public GenerateConsistencyToken setUploadType(java.lang.String uploadType) { return (GenerateConsistencyToken) super.setUploadType(uploadType); } @Override public GenerateConsistencyToken setUploadProtocol(java.lang.String uploadProtocol) { return (GenerateConsistencyToken) super.setUploadProtocol(uploadProtocol); } /** * Required. The unique name of the Table for which to create a consistency token. Values * are of the form `projects/{project}/instances/{instance}/tables/{table}`. */ @com.google.api.client.util.Key private java.lang.String name; /** Required. The unique name of the Table for which to create a consistency token. Values are of the form `projects/{project}/instances/{instance}/tables/{table}`. */ public java.lang.String getName() { return name; } /** * Required. The unique name of the Table for which to create a consistency token. Values * are of the form `projects/{project}/instances/{instance}/tables/{table}`. */ public GenerateConsistencyToken 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/[^/]+/instances/[^/]+/tables/[^/]+$"); } this.name = name; return this; } @Override public GenerateConsistencyToken set(String parameterName, Object value) { return (GenerateConsistencyToken) super.set(parameterName, value); } } /** * Gets metadata information about the specified table. * * Create a request for the method "tables.get". * * This request holds the parameters needed by the bigtableadmin server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param name Required. The unique name of the requested table. Values are of the form * `projects/{project}/instances/{instance}/tables/{table}`. * @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 BigtableAdminRequest { private static final String REST_PATH = "v2/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/instances/[^/]+/tables/[^/]+$"); /** * Gets metadata information about the specified table. * * Create a request for the method "tables.get". * * This request holds the parameters needed by the the bigtableadmin 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 Required. The unique name of the requested table. Values are of the form * `projects/{project}/instances/{instance}/tables/{table}`. * @since 1.13 */ protected Get(java.lang.String name) { super(BigtableAdmin.this, "GET", REST_PATH, null, com.google.api.services.bigtableadmin.v2.model.Table.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/[^/]+/instances/[^/]+/tables/[^/]+$"); } } @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 unique name of the requested table. Values are of the form * `projects/{project}/instances/{instance}/tables/{table}`. */ @com.google.api.client.util.Key private java.lang.String name; /** Required. The unique name of the requested table. Values are of the form `projects/{project}/instances/{instance}/tables/{table}`. */ public java.lang.String getName() { return name; } /** * Required. The unique name of the requested table. Values are of the form * `projects/{project}/instances/{instance}/tables/{table}`. */ 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/[^/]+/instances/[^/]+/tables/[^/]+$"); } this.name = name; return this; } /** * The view to be applied to the returned table's fields. Defaults to `SCHEMA_VIEW` if * unspecified. */ @com.google.api.client.util.Key private java.lang.String view; /** The view to be applied to the returned table's fields. Defaults to `SCHEMA_VIEW` if unspecified. */ public java.lang.String getView() { return view; } /** * The view to be applied to the returned table's fields. Defaults to `SCHEMA_VIEW` if * unspecified. */ public Get setView(java.lang.String view) { this.view = view; return this; } @Override public Get set(String parameterName, Object value) { return (Get) super.set(parameterName, value); } } /** * Gets the access control policy for a Bigtable resource. Returns an empty policy if the resource * exists but does not have a policy set. * * Create a request for the method "tables.getIamPolicy". * * This request holds the parameters needed by the bigtableadmin 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.bigtableadmin.v2.model.GetIamPolicyRequest} * @return the request */ public GetIamPolicy getIamPolicy(java.lang.String resource, com.google.api.services.bigtableadmin.v2.model.GetIamPolicyRequest content) throws java.io.IOException { GetIamPolicy result = new GetIamPolicy(resource, content); initialize(result); return result; } public class GetIamPolicy extends BigtableAdminRequest { private static final String REST_PATH = "v2/{+resource}:getIamPolicy"; private final java.util.regex.Pattern RESOURCE_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/instances/[^/]+/tables/[^/]+$"); /** * Gets the access control policy for a Bigtable resource. Returns an empty policy if the resource * exists but does not have a policy set. * * Create a request for the method "tables.getIamPolicy". * * This request holds the parameters needed by the the bigtableadmin server. After setting any * optional parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote * operation.

{@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.bigtableadmin.v2.model.GetIamPolicyRequest} * @since 1.13 */ protected GetIamPolicy(java.lang.String resource, com.google.api.services.bigtableadmin.v2.model.GetIamPolicyRequest content) { super(BigtableAdmin.this, "POST", REST_PATH, content, com.google.api.services.bigtableadmin.v2.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/[^/]+/instances/[^/]+/tables/[^/]+$"); } } @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/[^/]+/instances/[^/]+/tables/[^/]+$"); } this.resource = resource; return this; } @Override public GetIamPolicy set(String parameterName, Object value) { return (GetIamPolicy) super.set(parameterName, value); } } /** * Lists all tables served from a specified instance. * * Create a request for the method "tables.list". * * This request holds the parameters needed by the bigtableadmin server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param parent Required. The unique name of the instance for which tables should be listed. Values are of the form * `projects/{project}/instances/{instance}`. * @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 BigtableAdminRequest { private static final String REST_PATH = "v2/{+parent}/tables"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/instances/[^/]+$"); /** * Lists all tables served from a specified instance. * * Create a request for the method "tables.list". * * This request holds the parameters needed by the the bigtableadmin 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 parent Required. The unique name of the instance for which tables should be listed. Values are of the form * `projects/{project}/instances/{instance}`. * @since 1.13 */ protected List(java.lang.String parent) { super(BigtableAdmin.this, "GET", REST_PATH, null, com.google.api.services.bigtableadmin.v2.model.ListTablesResponse.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/[^/]+/instances/[^/]+$"); } } @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 unique name of the instance for which tables should be listed. Values are * of the form `projects/{project}/instances/{instance}`. */ @com.google.api.client.util.Key private java.lang.String parent; /** Required. The unique name of the instance for which tables should be listed. Values are of the form `projects/{project}/instances/{instance}`. */ public java.lang.String getParent() { return parent; } /** * Required. The unique name of the instance for which tables should be listed. Values are * of the form `projects/{project}/instances/{instance}`. */ 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/[^/]+/instances/[^/]+$"); } this.parent = parent; return this; } /** * Maximum number of results per page. A page_size of zero lets the server choose the * number of items to return. A page_size which is strictly positive will return at most * that many items. A negative page_size will cause an error. Following the first request, * subsequent paginated calls are not required to pass a page_size. If a page_size is set * in subsequent calls, it must match the page_size given in the first request. */ @com.google.api.client.util.Key private java.lang.Integer pageSize; /** Maximum number of results per page. A page_size of zero lets the server choose the number of items to return. A page_size which is strictly positive will return at most that many items. A negative page_size will cause an error. Following the first request, subsequent paginated calls are not required to pass a page_size. If a page_size is set in subsequent calls, it must match the page_size given in the first request. */ public java.lang.Integer getPageSize() { return pageSize; } /** * Maximum number of results per page. A page_size of zero lets the server choose the * number of items to return. A page_size which is strictly positive will return at most * that many items. A negative page_size will cause an error. Following the first request, * subsequent paginated calls are not required to pass a page_size. If a page_size is set * in subsequent calls, it must match the page_size given in the first request. */ public List setPageSize(java.lang.Integer pageSize) { this.pageSize = pageSize; return this; } /** The value of `next_page_token` returned by a previous call. */ @com.google.api.client.util.Key private java.lang.String pageToken; /** The value of `next_page_token` returned by a previous call. */ public java.lang.String getPageToken() { return pageToken; } /** The value of `next_page_token` returned by a previous call. */ public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } /** * The view to be applied to the returned tables' fields. Only NAME_ONLY view (default), * REPLICATION_VIEW and ENCRYPTION_VIEW are supported. */ @com.google.api.client.util.Key private java.lang.String view; /** The view to be applied to the returned tables' fields. Only NAME_ONLY view (default), REPLICATION_VIEW and ENCRYPTION_VIEW are supported. */ public java.lang.String getView() { return view; } /** * The view to be applied to the returned tables' fields. Only NAME_ONLY view (default), * REPLICATION_VIEW and ENCRYPTION_VIEW are supported. */ public List setView(java.lang.String view) { this.view = view; return this; } @Override public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } /** * Performs a series of column family modifications on the specified table. Either all or none of * the modifications will occur before this method returns, but data requests received prior to that * point may see a table where only some modifications have taken effect. * * Create a request for the method "tables.modifyColumnFamilies". * * This request holds the parameters needed by the bigtableadmin server. After setting any optional * parameters, call the {@link ModifyColumnFamilies#execute()} method to invoke the remote * operation. * * @param name Required. The unique name of the table whose families should be modified. Values are of the form * `projects/{project}/instances/{instance}/tables/{table}`. * @param content the {@link com.google.api.services.bigtableadmin.v2.model.ModifyColumnFamiliesRequest} * @return the request */ public ModifyColumnFamilies modifyColumnFamilies(java.lang.String name, com.google.api.services.bigtableadmin.v2.model.ModifyColumnFamiliesRequest content) throws java.io.IOException { ModifyColumnFamilies result = new ModifyColumnFamilies(name, content); initialize(result); return result; } public class ModifyColumnFamilies extends BigtableAdminRequest { private static final String REST_PATH = "v2/{+name}:modifyColumnFamilies"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/instances/[^/]+/tables/[^/]+$"); /** * Performs a series of column family modifications on the specified table. Either all or none of * the modifications will occur before this method returns, but data requests received prior to * that point may see a table where only some modifications have taken effect. * * Create a request for the method "tables.modifyColumnFamilies". * * This request holds the parameters needed by the the bigtableadmin server. After setting any * optional parameters, call the {@link ModifyColumnFamilies#execute()} method to invoke the * remote operation.

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

* * @param name Required. The unique name of the table whose families should be modified. Values are of the form * `projects/{project}/instances/{instance}/tables/{table}`. * @param content the {@link com.google.api.services.bigtableadmin.v2.model.ModifyColumnFamiliesRequest} * @since 1.13 */ protected ModifyColumnFamilies(java.lang.String name, com.google.api.services.bigtableadmin.v2.model.ModifyColumnFamiliesRequest content) { super(BigtableAdmin.this, "POST", REST_PATH, content, com.google.api.services.bigtableadmin.v2.model.Table.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/[^/]+/instances/[^/]+/tables/[^/]+$"); } } @Override public ModifyColumnFamilies set$Xgafv(java.lang.String $Xgafv) { return (ModifyColumnFamilies) super.set$Xgafv($Xgafv); } @Override public ModifyColumnFamilies setAccessToken(java.lang.String accessToken) { return (ModifyColumnFamilies) super.setAccessToken(accessToken); } @Override public ModifyColumnFamilies setAlt(java.lang.String alt) { return (ModifyColumnFamilies) super.setAlt(alt); } @Override public ModifyColumnFamilies setCallback(java.lang.String callback) { return (ModifyColumnFamilies) super.setCallback(callback); } @Override public ModifyColumnFamilies setFields(java.lang.String fields) { return (ModifyColumnFamilies) super.setFields(fields); } @Override public ModifyColumnFamilies setKey(java.lang.String key) { return (ModifyColumnFamilies) super.setKey(key); } @Override public ModifyColumnFamilies setOauthToken(java.lang.String oauthToken) { return (ModifyColumnFamilies) super.setOauthToken(oauthToken); } @Override public ModifyColumnFamilies setPrettyPrint(java.lang.Boolean prettyPrint) { return (ModifyColumnFamilies) super.setPrettyPrint(prettyPrint); } @Override public ModifyColumnFamilies setQuotaUser(java.lang.String quotaUser) { return (ModifyColumnFamilies) super.setQuotaUser(quotaUser); } @Override public ModifyColumnFamilies setUploadType(java.lang.String uploadType) { return (ModifyColumnFamilies) super.setUploadType(uploadType); } @Override public ModifyColumnFamilies setUploadProtocol(java.lang.String uploadProtocol) { return (ModifyColumnFamilies) super.setUploadProtocol(uploadProtocol); } /** * Required. The unique name of the table whose families should be modified. Values are of * the form `projects/{project}/instances/{instance}/tables/{table}`. */ @com.google.api.client.util.Key private java.lang.String name; /** Required. The unique name of the table whose families should be modified. Values are of the form `projects/{project}/instances/{instance}/tables/{table}`. */ public java.lang.String getName() { return name; } /** * Required. The unique name of the table whose families should be modified. Values are of * the form `projects/{project}/instances/{instance}/tables/{table}`. */ public ModifyColumnFamilies 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/[^/]+/instances/[^/]+/tables/[^/]+$"); } this.name = name; return this; } @Override public ModifyColumnFamilies set(String parameterName, Object value) { return (ModifyColumnFamilies) super.set(parameterName, value); } } /** * Updates a specified table. * * Create a request for the method "tables.patch". * * This request holds the parameters needed by the bigtableadmin server. After setting any optional * parameters, call the {@link Patch#execute()} method to invoke the remote operation. * * @param name The unique name of the table. Values are of the form * `projects/{project}/instances/{instance}/tables/_a-zA-Z0-9*`. Views: `NAME_ONLY`, * `SCHEMA_VIEW`, `REPLICATION_VIEW`, `STATS_VIEW`, `FULL` * @param content the {@link com.google.api.services.bigtableadmin.v2.model.Table} * @return the request */ public Patch patch(java.lang.String name, com.google.api.services.bigtableadmin.v2.model.Table content) throws java.io.IOException { Patch result = new Patch(name, content); initialize(result); return result; } public class Patch extends BigtableAdminRequest { private static final String REST_PATH = "v2/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/instances/[^/]+/tables/[^/]+$"); /** * Updates a specified table. * * Create a request for the method "tables.patch". * * This request holds the parameters needed by the the bigtableadmin server. After setting any * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. *

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

* * @param name The unique name of the table. Values are of the form * `projects/{project}/instances/{instance}/tables/_a-zA-Z0-9*`. Views: `NAME_ONLY`, * `SCHEMA_VIEW`, `REPLICATION_VIEW`, `STATS_VIEW`, `FULL` * @param content the {@link com.google.api.services.bigtableadmin.v2.model.Table} * @since 1.13 */ protected Patch(java.lang.String name, com.google.api.services.bigtableadmin.v2.model.Table content) { super(BigtableAdmin.this, "PATCH", REST_PATH, content, com.google.api.services.bigtableadmin.v2.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/[^/]+/instances/[^/]+/tables/[^/]+$"); } } @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); } /** * The unique name of the table. Values are of the form * `projects/{project}/instances/{instance}/tables/_a-zA-Z0-9*`. Views: `NAME_ONLY`, * `SCHEMA_VIEW`, `REPLICATION_VIEW`, `STATS_VIEW`, `FULL` */ @com.google.api.client.util.Key private java.lang.String name; /** The unique name of the table. Values are of the form `projects/{project}/instances/{instance}/tables/_a-zA-Z0-9*`. Views: `NAME_ONLY`, `SCHEMA_VIEW`, `REPLICATION_VIEW`, `STATS_VIEW`, `FULL` */ public java.lang.String getName() { return name; } /** * The unique name of the table. Values are of the form * `projects/{project}/instances/{instance}/tables/_a-zA-Z0-9*`. Views: `NAME_ONLY`, * `SCHEMA_VIEW`, `REPLICATION_VIEW`, `STATS_VIEW`, `FULL` */ 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/[^/]+/instances/[^/]+/tables/[^/]+$"); } this.name = name; return this; } /** * Required. The list of fields to update. A mask specifying which fields (e.g. * `change_stream_config`) in the `table` field should be updated. This mask is relative * to the `table` field, not to the request message. The wildcard (*) path is currently * not supported. Currently UpdateTable is only supported for the following fields: * * `change_stream_config` * `change_stream_config.retention_period` * * `deletion_protection` If `column_families` is set in `update_mask`, it will return an * UNIMPLEMENTED error. */ @com.google.api.client.util.Key private String updateMask; /** Required. The list of fields to update. A mask specifying which fields (e.g. `change_stream_config`) in the `table` field should be updated. This mask is relative to the `table` field, not to the request message. The wildcard (*) path is currently not supported. Currently UpdateTable is only supported for the following fields: * `change_stream_config` * `change_stream_config.retention_period` * `deletion_protection` If `column_families` is set in `update_mask`, it will return an UNIMPLEMENTED error. */ public String getUpdateMask() { return updateMask; } /** * Required. The list of fields to update. A mask specifying which fields (e.g. * `change_stream_config`) in the `table` field should be updated. This mask is relative * to the `table` field, not to the request message. The wildcard (*) path is currently * not supported. Currently UpdateTable is only supported for the following fields: * * `change_stream_config` * `change_stream_config.retention_period` * * `deletion_protection` If `column_families` is set in `update_mask`, it will return an * UNIMPLEMENTED error. */ public Patch setUpdateMask(String updateMask) { this.updateMask = updateMask; return this; } @Override public Patch set(String parameterName, Object value) { return (Patch) super.set(parameterName, value); } } /** * Create a new table by restoring from a completed backup. The returned table long-running * operation can be used to track the progress of the operation, and to cancel it. The metadata * field type is RestoreTableMetadata. The response type is Table, if successful. * * Create a request for the method "tables.restore". * * This request holds the parameters needed by the bigtableadmin server. After setting any optional * parameters, call the {@link Restore#execute()} method to invoke the remote operation. * * @param parent Required. The name of the instance in which to create the restored table. Values are of the form * `projects//instances/`. * @param content the {@link com.google.api.services.bigtableadmin.v2.model.RestoreTableRequest} * @return the request */ public Restore restore(java.lang.String parent, com.google.api.services.bigtableadmin.v2.model.RestoreTableRequest content) throws java.io.IOException { Restore result = new Restore(parent, content); initialize(result); return result; } public class Restore extends BigtableAdminRequest { private static final String REST_PATH = "v2/{+parent}/tables:restore"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/instances/[^/]+$"); /** * Create a new table by restoring from a completed backup. The returned table long-running * operation can be used to track the progress of the operation, and to cancel it. The metadata * field type is RestoreTableMetadata. The response type is Table, if successful. * * Create a request for the method "tables.restore". * * This request holds the parameters needed by the the bigtableadmin server. After setting any * optional parameters, call the {@link Restore#execute()} method to invoke the remote operation. *

{@link * Restore#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 instance in which to create the restored table. Values are of the form * `projects//instances/`. * @param content the {@link com.google.api.services.bigtableadmin.v2.model.RestoreTableRequest} * @since 1.13 */ protected Restore(java.lang.String parent, com.google.api.services.bigtableadmin.v2.model.RestoreTableRequest content) { super(BigtableAdmin.this, "POST", REST_PATH, content, com.google.api.services.bigtableadmin.v2.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/[^/]+/instances/[^/]+$"); } } @Override public Restore set$Xgafv(java.lang.String $Xgafv) { return (Restore) super.set$Xgafv($Xgafv); } @Override public Restore setAccessToken(java.lang.String accessToken) { return (Restore) super.setAccessToken(accessToken); } @Override public Restore setAlt(java.lang.String alt) { return (Restore) super.setAlt(alt); } @Override public Restore setCallback(java.lang.String callback) { return (Restore) super.setCallback(callback); } @Override public Restore setFields(java.lang.String fields) { return (Restore) super.setFields(fields); } @Override public Restore setKey(java.lang.String key) { return (Restore) super.setKey(key); } @Override public Restore setOauthToken(java.lang.String oauthToken) { return (Restore) super.setOauthToken(oauthToken); } @Override public Restore setPrettyPrint(java.lang.Boolean prettyPrint) { return (Restore) super.setPrettyPrint(prettyPrint); } @Override public Restore setQuotaUser(java.lang.String quotaUser) { return (Restore) super.setQuotaUser(quotaUser); } @Override public Restore setUploadType(java.lang.String uploadType) { return (Restore) super.setUploadType(uploadType); } @Override public Restore setUploadProtocol(java.lang.String uploadProtocol) { return (Restore) super.setUploadProtocol(uploadProtocol); } /** * Required. The name of the instance in which to create the restored table. Values are of * the form `projects//instances/`. */ @com.google.api.client.util.Key private java.lang.String parent; /** Required. The name of the instance in which to create the restored table. Values are of the form `projects//instances/`. */ public java.lang.String getParent() { return parent; } /** * Required. The name of the instance in which to create the restored table. Values are of * the form `projects//instances/`. */ public Restore 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/[^/]+/instances/[^/]+$"); } this.parent = parent; return this; } @Override public Restore set(String parameterName, Object value) { return (Restore) super.set(parameterName, value); } } /** * Sets the access control policy on a Bigtable resource. Replaces any existing policy. * * Create a request for the method "tables.setIamPolicy". * * This request holds the parameters needed by the bigtableadmin 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.bigtableadmin.v2.model.SetIamPolicyRequest} * @return the request */ public SetIamPolicy setIamPolicy(java.lang.String resource, com.google.api.services.bigtableadmin.v2.model.SetIamPolicyRequest content) throws java.io.IOException { SetIamPolicy result = new SetIamPolicy(resource, content); initialize(result); return result; } public class SetIamPolicy extends BigtableAdminRequest { private static final String REST_PATH = "v2/{+resource}:setIamPolicy"; private final java.util.regex.Pattern RESOURCE_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/instances/[^/]+/tables/[^/]+$"); /** * Sets the access control policy on a Bigtable resource. Replaces any existing policy. * * Create a request for the method "tables.setIamPolicy". * * This request holds the parameters needed by the the bigtableadmin server. After setting any * optional parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote * operation.

{@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.bigtableadmin.v2.model.SetIamPolicyRequest} * @since 1.13 */ protected SetIamPolicy(java.lang.String resource, com.google.api.services.bigtableadmin.v2.model.SetIamPolicyRequest content) { super(BigtableAdmin.this, "POST", REST_PATH, content, com.google.api.services.bigtableadmin.v2.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/[^/]+/instances/[^/]+/tables/[^/]+$"); } } @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/[^/]+/instances/[^/]+/tables/[^/]+$"); } this.resource = resource; return this; } @Override public SetIamPolicy set(String parameterName, Object value) { return (SetIamPolicy) super.set(parameterName, value); } } /** * Returns permissions that the caller has on the specified Bigtable resource. * * Create a request for the method "tables.testIamPermissions". * * This request holds the parameters needed by the bigtableadmin 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.bigtableadmin.v2.model.TestIamPermissionsRequest} * @return the request */ public TestIamPermissions testIamPermissions(java.lang.String resource, com.google.api.services.bigtableadmin.v2.model.TestIamPermissionsRequest content) throws java.io.IOException { TestIamPermissions result = new TestIamPermissions(resource, content); initialize(result); return result; } public class TestIamPermissions extends BigtableAdminRequest { private static final String REST_PATH = "v2/{+resource}:testIamPermissions"; private final java.util.regex.Pattern RESOURCE_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/instances/[^/]+/tables/[^/]+$"); /** * Returns permissions that the caller has on the specified Bigtable resource. * * Create a request for the method "tables.testIamPermissions". * * This request holds the parameters needed by the the bigtableadmin server. After setting any * optional parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote * operation.

{@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.bigtableadmin.v2.model.TestIamPermissionsRequest} * @since 1.13 */ protected TestIamPermissions(java.lang.String resource, com.google.api.services.bigtableadmin.v2.model.TestIamPermissionsRequest content) { super(BigtableAdmin.this, "POST", REST_PATH, content, com.google.api.services.bigtableadmin.v2.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/[^/]+/instances/[^/]+/tables/[^/]+$"); } } @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/[^/]+/instances/[^/]+/tables/[^/]+$"); } this.resource = resource; return this; } @Override public TestIamPermissions set(String parameterName, Object value) { return (TestIamPermissions) super.set(parameterName, value); } } /** * Restores a specified table which was accidentally deleted. * * Create a request for the method "tables.undelete". * * This request holds the parameters needed by the bigtableadmin server. After setting any optional * parameters, call the {@link Undelete#execute()} method to invoke the remote operation. * * @param name Required. The unique name of the table to be restored. Values are of the form * `projects/{project}/instances/{instance}/tables/{table}`. * @param content the {@link com.google.api.services.bigtableadmin.v2.model.UndeleteTableRequest} * @return the request */ public Undelete undelete(java.lang.String name, com.google.api.services.bigtableadmin.v2.model.UndeleteTableRequest content) throws java.io.IOException { Undelete result = new Undelete(name, content); initialize(result); return result; } public class Undelete extends BigtableAdminRequest { private static final String REST_PATH = "v2/{+name}:undelete"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/instances/[^/]+/tables/[^/]+$"); /** * Restores a specified table which was accidentally deleted. * * Create a request for the method "tables.undelete". * * This request holds the parameters needed by the the bigtableadmin server. After setting any * optional parameters, call the {@link Undelete#execute()} method to invoke the remote operation. *

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

* * @param name Required. The unique name of the table to be restored. Values are of the form * `projects/{project}/instances/{instance}/tables/{table}`. * @param content the {@link com.google.api.services.bigtableadmin.v2.model.UndeleteTableRequest} * @since 1.13 */ protected Undelete(java.lang.String name, com.google.api.services.bigtableadmin.v2.model.UndeleteTableRequest content) { super(BigtableAdmin.this, "POST", REST_PATH, content, com.google.api.services.bigtableadmin.v2.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/[^/]+/instances/[^/]+/tables/[^/]+$"); } } @Override public Undelete set$Xgafv(java.lang.String $Xgafv) { return (Undelete) super.set$Xgafv($Xgafv); } @Override public Undelete setAccessToken(java.lang.String accessToken) { return (Undelete) super.setAccessToken(accessToken); } @Override public Undelete setAlt(java.lang.String alt) { return (Undelete) super.setAlt(alt); } @Override public Undelete setCallback(java.lang.String callback) { return (Undelete) super.setCallback(callback); } @Override public Undelete setFields(java.lang.String fields) { return (Undelete) super.setFields(fields); } @Override public Undelete setKey(java.lang.String key) { return (Undelete) super.setKey(key); } @Override public Undelete setOauthToken(java.lang.String oauthToken) { return (Undelete) super.setOauthToken(oauthToken); } @Override public Undelete setPrettyPrint(java.lang.Boolean prettyPrint) { return (Undelete) super.setPrettyPrint(prettyPrint); } @Override public Undelete setQuotaUser(java.lang.String quotaUser) { return (Undelete) super.setQuotaUser(quotaUser); } @Override public Undelete setUploadType(java.lang.String uploadType) { return (Undelete) super.setUploadType(uploadType); } @Override public Undelete setUploadProtocol(java.lang.String uploadProtocol) { return (Undelete) super.setUploadProtocol(uploadProtocol); } /** * Required. The unique name of the table to be restored. Values are of the form * `projects/{project}/instances/{instance}/tables/{table}`. */ @com.google.api.client.util.Key private java.lang.String name; /** Required. The unique name of the table to be restored. Values are of the form `projects/{project}/instances/{instance}/tables/{table}`. */ public java.lang.String getName() { return name; } /** * Required. The unique name of the table to be restored. Values are of the form * `projects/{project}/instances/{instance}/tables/{table}`. */ public Undelete 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/[^/]+/instances/[^/]+/tables/[^/]+$"); } this.name = name; return this; } @Override public Undelete set(String parameterName, Object value) { return (Undelete) super.set(parameterName, value); } } /** * An accessor for creating requests from the AuthorizedViews collection. * *

The typical use is:

*
         *   {@code BigtableAdmin bigtableadmin = new BigtableAdmin(...);}
         *   {@code BigtableAdmin.AuthorizedViews.List request = bigtableadmin.authorizedViews().list(parameters ...)}
         * 
* * @return the resource collection */ public AuthorizedViews authorizedViews() { return new AuthorizedViews(); } /** * The "authorizedViews" collection of methods. */ public class AuthorizedViews { /** * Creates a new AuthorizedView in a table. * * Create a request for the method "authorizedViews.create". * * This request holds the parameters needed by the bigtableadmin server. After setting any optional * parameters, call the {@link Create#execute()} method to invoke the remote operation. * * @param parent Required. This is the name of the table the AuthorizedView belongs to. Values are of the form * `projects/{project}/instances/{instance}/tables/{table}`. * @param content the {@link com.google.api.services.bigtableadmin.v2.model.AuthorizedView} * @return the request */ public Create create(java.lang.String parent, com.google.api.services.bigtableadmin.v2.model.AuthorizedView content) throws java.io.IOException { Create result = new Create(parent, content); initialize(result); return result; } public class Create extends BigtableAdminRequest { private static final String REST_PATH = "v2/{+parent}/authorizedViews"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/instances/[^/]+/tables/[^/]+$"); /** * Creates a new AuthorizedView in a table. * * Create a request for the method "authorizedViews.create". * * This request holds the parameters needed by the the bigtableadmin 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 parent Required. This is the name of the table the AuthorizedView belongs to. Values are of the form * `projects/{project}/instances/{instance}/tables/{table}`. * @param content the {@link com.google.api.services.bigtableadmin.v2.model.AuthorizedView} * @since 1.13 */ protected Create(java.lang.String parent, com.google.api.services.bigtableadmin.v2.model.AuthorizedView content) { super(BigtableAdmin.this, "POST", REST_PATH, content, com.google.api.services.bigtableadmin.v2.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/[^/]+/instances/[^/]+/tables/[^/]+$"); } } @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. This is the name of the table the AuthorizedView belongs to. Values are of * the form `projects/{project}/instances/{instance}/tables/{table}`. */ @com.google.api.client.util.Key private java.lang.String parent; /** Required. This is the name of the table the AuthorizedView belongs to. Values are of the form `projects/{project}/instances/{instance}/tables/{table}`. */ public java.lang.String getParent() { return parent; } /** * Required. This is the name of the table the AuthorizedView belongs to. Values are of * the form `projects/{project}/instances/{instance}/tables/{table}`. */ 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/[^/]+/instances/[^/]+/tables/[^/]+$"); } this.parent = parent; return this; } /** * Required. The id of the AuthorizedView to create. This AuthorizedView must not * already exist. The `authorized_view_id` appended to `parent` forms the full * AuthorizedView name of the form `projects/{project}/instances/{instance}/tables/{tabl * e}/authorizedView/{authorized_view}`. */ @com.google.api.client.util.Key private java.lang.String authorizedViewId; /** Required. The id of the AuthorizedView to create. This AuthorizedView must not already exist. The `authorized_view_id` appended to `parent` forms the full AuthorizedView name of the form `projects/{project}/instances/{instance}/tables/{table}/authorizedView/{authorized_view}`. */ public java.lang.String getAuthorizedViewId() { return authorizedViewId; } /** * Required. The id of the AuthorizedView to create. This AuthorizedView must not * already exist. The `authorized_view_id` appended to `parent` forms the full * AuthorizedView name of the form `projects/{project}/instances/{instance}/tables/{tabl * e}/authorizedView/{authorized_view}`. */ public Create setAuthorizedViewId(java.lang.String authorizedViewId) { this.authorizedViewId = authorizedViewId; return this; } @Override public Create set(String parameterName, Object value) { return (Create) super.set(parameterName, value); } } /** * Permanently deletes a specified AuthorizedView. * * Create a request for the method "authorizedViews.delete". * * This request holds the parameters needed by the bigtableadmin server. After setting any optional * parameters, call the {@link Delete#execute()} method to invoke the remote operation. * * @param name Required. The unique name of the AuthorizedView to be deleted. Values are of the form * `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}` * . * @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 BigtableAdminRequest { private static final String REST_PATH = "v2/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/instances/[^/]+/tables/[^/]+/authorizedViews/[^/]+$"); /** * Permanently deletes a specified AuthorizedView. * * Create a request for the method "authorizedViews.delete". * * This request holds the parameters needed by the the bigtableadmin 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 Required. The unique name of the AuthorizedView to be deleted. Values are of the form * `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}` * . * @since 1.13 */ protected Delete(java.lang.String name) { super(BigtableAdmin.this, "DELETE", REST_PATH, null, com.google.api.services.bigtableadmin.v2.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/[^/]+/instances/[^/]+/tables/[^/]+/authorizedViews/[^/]+$"); } } @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 unique name of the AuthorizedView to be deleted. Values are of the form * `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_v * iew}`. */ @com.google.api.client.util.Key private java.lang.String name; /** Required. The unique name of the AuthorizedView to be deleted. Values are of the form `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. */ public java.lang.String getName() { return name; } /** * Required. The unique name of the AuthorizedView to be deleted. Values are of the form * `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_v * iew}`. */ 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/[^/]+/instances/[^/]+/tables/[^/]+/authorizedViews/[^/]+$"); } this.name = name; return this; } /** * Optional. The current etag of the AuthorizedView. If an etag is provided and does not * match the current etag of the AuthorizedView, deletion will be blocked and an ABORTED * error will be returned. */ @com.google.api.client.util.Key private java.lang.String etag; /** Optional. The current etag of the AuthorizedView. If an etag is provided and does not match the current etag of the AuthorizedView, deletion will be blocked and an ABORTED error will be returned. */ public java.lang.String getEtag() { return etag; } /** * Optional. The current etag of the AuthorizedView. If an etag is provided and does not * match the current etag of the AuthorizedView, deletion will be blocked and an ABORTED * error will be returned. */ public Delete setEtag(java.lang.String etag) { this.etag = etag; return this; } @Override public Delete set(String parameterName, Object value) { return (Delete) super.set(parameterName, value); } } /** * Gets information from a specified AuthorizedView. * * Create a request for the method "authorizedViews.get". * * This request holds the parameters needed by the bigtableadmin server. After setting any optional * parameters, call the {@link Get#execute()} method to invoke the remote operation. * * @param name Required. The unique name of the requested AuthorizedView. Values are of the form * `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}` * . * @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 BigtableAdminRequest { private static final String REST_PATH = "v2/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/instances/[^/]+/tables/[^/]+/authorizedViews/[^/]+$"); /** * Gets information from a specified AuthorizedView. * * Create a request for the method "authorizedViews.get". * * This request holds the parameters needed by the the bigtableadmin 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 Required. The unique name of the requested AuthorizedView. Values are of the form * `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}` * . * @since 1.13 */ protected Get(java.lang.String name) { super(BigtableAdmin.this, "GET", REST_PATH, null, com.google.api.services.bigtableadmin.v2.model.AuthorizedView.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/[^/]+/instances/[^/]+/tables/[^/]+/authorizedViews/[^/]+$"); } } @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 unique name of the requested AuthorizedView. Values are of the form `pr * ojects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view * }`. */ @com.google.api.client.util.Key private java.lang.String name; /** Required. The unique name of the requested AuthorizedView. Values are of the form `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}`. */ public java.lang.String getName() { return name; } /** * Required. The unique name of the requested AuthorizedView. Values are of the form `pr * ojects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view * }`. */ 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/[^/]+/instances/[^/]+/tables/[^/]+/authorizedViews/[^/]+$"); } this.name = name; return this; } /** * Optional. The resource_view to be applied to the returned AuthorizedView's fields. * Default to BASIC. */ @com.google.api.client.util.Key private java.lang.String view; /** Optional. The resource_view to be applied to the returned AuthorizedView's fields. Default to BASIC. */ public java.lang.String getView() { return view; } /** * Optional. The resource_view to be applied to the returned AuthorizedView's fields. * Default to BASIC. */ public Get setView(java.lang.String view) { this.view = view; return this; } @Override public Get set(String parameterName, Object value) { return (Get) super.set(parameterName, value); } } /** * Gets the access control policy for a Bigtable resource. Returns an empty policy if the resource * exists but does not have a policy set. * * Create a request for the method "authorizedViews.getIamPolicy". * * This request holds the parameters needed by the bigtableadmin 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.bigtableadmin.v2.model.GetIamPolicyRequest} * @return the request */ public GetIamPolicy getIamPolicy(java.lang.String resource, com.google.api.services.bigtableadmin.v2.model.GetIamPolicyRequest content) throws java.io.IOException { GetIamPolicy result = new GetIamPolicy(resource, content); initialize(result); return result; } public class GetIamPolicy extends BigtableAdminRequest { private static final String REST_PATH = "v2/{+resource}:getIamPolicy"; private final java.util.regex.Pattern RESOURCE_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/instances/[^/]+/tables/[^/]+/authorizedViews/[^/]+$"); /** * Gets the access control policy for a Bigtable resource. Returns an empty policy if the resource * exists but does not have a policy set. * * Create a request for the method "authorizedViews.getIamPolicy". * * This request holds the parameters needed by the the bigtableadmin server. After setting any * optional parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote * operation.

{@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.bigtableadmin.v2.model.GetIamPolicyRequest} * @since 1.13 */ protected GetIamPolicy(java.lang.String resource, com.google.api.services.bigtableadmin.v2.model.GetIamPolicyRequest content) { super(BigtableAdmin.this, "POST", REST_PATH, content, com.google.api.services.bigtableadmin.v2.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/[^/]+/instances/[^/]+/tables/[^/]+/authorizedViews/[^/]+$"); } } @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/[^/]+/instances/[^/]+/tables/[^/]+/authorizedViews/[^/]+$"); } this.resource = resource; return this; } @Override public GetIamPolicy set(String parameterName, Object value) { return (GetIamPolicy) super.set(parameterName, value); } } /** * Lists all AuthorizedViews from a specific table. * * Create a request for the method "authorizedViews.list". * * This request holds the parameters needed by the bigtableadmin server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param parent Required. The unique name of the table for which AuthorizedViews should be listed. Values are of the * form `projects/{project}/instances/{instance}/tables/{table}`. * @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 BigtableAdminRequest { private static final String REST_PATH = "v2/{+parent}/authorizedViews"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/instances/[^/]+/tables/[^/]+$"); /** * Lists all AuthorizedViews from a specific table. * * Create a request for the method "authorizedViews.list". * * This request holds the parameters needed by the the bigtableadmin 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 parent Required. The unique name of the table for which AuthorizedViews should be listed. Values are of the * form `projects/{project}/instances/{instance}/tables/{table}`. * @since 1.13 */ protected List(java.lang.String parent) { super(BigtableAdmin.this, "GET", REST_PATH, null, com.google.api.services.bigtableadmin.v2.model.ListAuthorizedViewsResponse.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/[^/]+/instances/[^/]+/tables/[^/]+$"); } } @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 unique name of the table for which AuthorizedViews should be listed. * Values are of the form `projects/{project}/instances/{instance}/tables/{table}`. */ @com.google.api.client.util.Key private java.lang.String parent; /** Required. The unique name of the table for which AuthorizedViews should be listed. Values are of the form `projects/{project}/instances/{instance}/tables/{table}`. */ public java.lang.String getParent() { return parent; } /** * Required. The unique name of the table for which AuthorizedViews should be listed. * Values are of the form `projects/{project}/instances/{instance}/tables/{table}`. */ 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/[^/]+/instances/[^/]+/tables/[^/]+$"); } this.parent = parent; return this; } /** * Optional. Maximum number of results per page. A page_size of zero lets the server * choose the number of items to return. A page_size which is strictly positive will * return at most that many items. A negative page_size will cause an error. Following * the first request, subsequent paginated calls are not required to pass a page_size. * If a page_size is set in subsequent calls, it must match the page_size given in the * first request. */ @com.google.api.client.util.Key private java.lang.Integer pageSize; /** Optional. Maximum number of results per page. A page_size of zero lets the server choose the number of items to return. A page_size which is strictly positive will return at most that many items. A negative page_size will cause an error. Following the first request, subsequent paginated calls are not required to pass a page_size. If a page_size is set in subsequent calls, it must match the page_size given in the first request. */ public java.lang.Integer getPageSize() { return pageSize; } /** * Optional. Maximum number of results per page. A page_size of zero lets the server * choose the number of items to return. A page_size which is strictly positive will * return at most that many items. A negative page_size will cause an error. Following * the first request, subsequent paginated calls are not required to pass a page_size. * If a page_size is set in subsequent calls, it must match the page_size given in the * first request. */ public List setPageSize(java.lang.Integer pageSize) { this.pageSize = pageSize; return this; } /** Optional. The value of `next_page_token` returned by a previous call. */ @com.google.api.client.util.Key private java.lang.String pageToken; /** Optional. The value of `next_page_token` returned by a previous call. */ public java.lang.String getPageToken() { return pageToken; } /** Optional. The value of `next_page_token` returned by a previous call. */ public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } /** * Optional. The resource_view to be applied to the returned AuthorizedViews' fields. * Default to NAME_ONLY. */ @com.google.api.client.util.Key private java.lang.String view; /** Optional. The resource_view to be applied to the returned AuthorizedViews' fields. Default to NAME_ONLY. */ public java.lang.String getView() { return view; } /** * Optional. The resource_view to be applied to the returned AuthorizedViews' fields. * Default to NAME_ONLY. */ public List setView(java.lang.String view) { this.view = view; return this; } @Override public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } /** * Updates an AuthorizedView in a table. * * Create a request for the method "authorizedViews.patch". * * This request holds the parameters needed by the bigtableadmin server. After setting any optional * parameters, call the {@link Patch#execute()} method to invoke the remote operation. * * @param name Identifier. The name of this AuthorizedView. Values are of the form * `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}` * @param content the {@link com.google.api.services.bigtableadmin.v2.model.AuthorizedView} * @return the request */ public Patch patch(java.lang.String name, com.google.api.services.bigtableadmin.v2.model.AuthorizedView content) throws java.io.IOException { Patch result = new Patch(name, content); initialize(result); return result; } public class Patch extends BigtableAdminRequest { private static final String REST_PATH = "v2/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/instances/[^/]+/tables/[^/]+/authorizedViews/[^/]+$"); /** * Updates an AuthorizedView in a table. * * Create a request for the method "authorizedViews.patch". * * This request holds the parameters needed by the the bigtableadmin server. After setting any * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. *

{@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 name of this AuthorizedView. Values are of the form * `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}` * @param content the {@link com.google.api.services.bigtableadmin.v2.model.AuthorizedView} * @since 1.13 */ protected Patch(java.lang.String name, com.google.api.services.bigtableadmin.v2.model.AuthorizedView content) { super(BigtableAdmin.this, "PATCH", REST_PATH, content, com.google.api.services.bigtableadmin.v2.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/[^/]+/instances/[^/]+/tables/[^/]+/authorizedViews/[^/]+$"); } } @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 name of this AuthorizedView. Values are of the form `projects/{projec * t}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}` */ @com.google.api.client.util.Key private java.lang.String name; /** Identifier. The name of this AuthorizedView. Values are of the form `projects/{project}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}` */ public java.lang.String getName() { return name; } /** * Identifier. The name of this AuthorizedView. Values are of the form `projects/{projec * t}/instances/{instance}/tables/{table}/authorizedViews/{authorized_view}` */ 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/[^/]+/instances/[^/]+/tables/[^/]+/authorizedViews/[^/]+$"); } this.name = name; return this; } /** Optional. If true, ignore the safety checks when updating the AuthorizedView. */ @com.google.api.client.util.Key private java.lang.Boolean ignoreWarnings; /** Optional. If true, ignore the safety checks when updating the AuthorizedView. */ public java.lang.Boolean getIgnoreWarnings() { return ignoreWarnings; } /** Optional. If true, ignore the safety checks when updating the AuthorizedView. */ public Patch setIgnoreWarnings(java.lang.Boolean ignoreWarnings) { this.ignoreWarnings = ignoreWarnings; return this; } /** * Optional. The list of fields to update. A mask specifying which fields in the * AuthorizedView resource should be updated. This mask is relative to the * AuthorizedView resource, not to the request message. A field will be overwritten if * it is in the mask. If empty, all fields set in the request will be overwritten. A * special value `*` means to overwrite all fields (including fields not set in the * request). */ @com.google.api.client.util.Key private String updateMask; /** Optional. The list of fields to update. A mask specifying which fields in the AuthorizedView resource should be updated. This mask is relative to the AuthorizedView resource, not to the request message. A field will be overwritten if it is in the mask. If empty, all fields set in the request will be overwritten. A special value `*` means to overwrite all fields (including fields not set in the request). */ public String getUpdateMask() { return updateMask; } /** * Optional. The list of fields to update. A mask specifying which fields in the * AuthorizedView resource should be updated. This mask is relative to the * AuthorizedView resource, not to the request message. A field will be overwritten if * it is in the mask. If empty, all fields set in the request will be overwritten. A * special value `*` means to overwrite all fields (including fields not set in the * request). */ 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 on a Bigtable resource. Replaces any existing policy. * * Create a request for the method "authorizedViews.setIamPolicy". * * This request holds the parameters needed by the bigtableadmin 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.bigtableadmin.v2.model.SetIamPolicyRequest} * @return the request */ public SetIamPolicy setIamPolicy(java.lang.String resource, com.google.api.services.bigtableadmin.v2.model.SetIamPolicyRequest content) throws java.io.IOException { SetIamPolicy result = new SetIamPolicy(resource, content); initialize(result); return result; } public class SetIamPolicy extends BigtableAdminRequest { private static final String REST_PATH = "v2/{+resource}:setIamPolicy"; private final java.util.regex.Pattern RESOURCE_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/instances/[^/]+/tables/[^/]+/authorizedViews/[^/]+$"); /** * Sets the access control policy on a Bigtable resource. Replaces any existing policy. * * Create a request for the method "authorizedViews.setIamPolicy". * * This request holds the parameters needed by the the bigtableadmin server. After setting any * optional parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote * operation.

{@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.bigtableadmin.v2.model.SetIamPolicyRequest} * @since 1.13 */ protected SetIamPolicy(java.lang.String resource, com.google.api.services.bigtableadmin.v2.model.SetIamPolicyRequest content) { super(BigtableAdmin.this, "POST", REST_PATH, content, com.google.api.services.bigtableadmin.v2.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/[^/]+/instances/[^/]+/tables/[^/]+/authorizedViews/[^/]+$"); } } @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/[^/]+/instances/[^/]+/tables/[^/]+/authorizedViews/[^/]+$"); } this.resource = resource; return this; } @Override public SetIamPolicy set(String parameterName, Object value) { return (SetIamPolicy) super.set(parameterName, value); } } /** * Returns permissions that the caller has on the specified Bigtable resource. * * Create a request for the method "authorizedViews.testIamPermissions". * * This request holds the parameters needed by the bigtableadmin 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.bigtableadmin.v2.model.TestIamPermissionsRequest} * @return the request */ public TestIamPermissions testIamPermissions(java.lang.String resource, com.google.api.services.bigtableadmin.v2.model.TestIamPermissionsRequest content) throws java.io.IOException { TestIamPermissions result = new TestIamPermissions(resource, content); initialize(result); return result; } public class TestIamPermissions extends BigtableAdminRequest { private static final String REST_PATH = "v2/{+resource}:testIamPermissions"; private final java.util.regex.Pattern RESOURCE_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/instances/[^/]+/tables/[^/]+/authorizedViews/[^/]+$"); /** * Returns permissions that the caller has on the specified Bigtable resource. * * Create a request for the method "authorizedViews.testIamPermissions". * * This request holds the parameters needed by the the bigtableadmin server. After setting any * optional parameters, call the {@link TestIamPermissions#execute()} method to invoke the remote * operation.

{@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.bigtableadmin.v2.model.TestIamPermissionsRequest} * @since 1.13 */ protected TestIamPermissions(java.lang.String resource, com.google.api.services.bigtableadmin.v2.model.TestIamPermissionsRequest content) { super(BigtableAdmin.this, "POST", REST_PATH, content, com.google.api.services.bigtableadmin.v2.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/[^/]+/instances/[^/]+/tables/[^/]+/authorizedViews/[^/]+$"); } } @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/[^/]+/instances/[^/]+/tables/[^/]+/authorizedViews/[^/]+$"); } 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 Locations collection. * *

The typical use is:

*
     *   {@code BigtableAdmin bigtableadmin = new BigtableAdmin(...);}
     *   {@code BigtableAdmin.Locations.List request = bigtableadmin.locations().list(parameters ...)}
     * 
* * @return the resource collection */ public Locations locations() { return new Locations(); } /** * The "locations" collection of methods. */ public class Locations { /** * Lists information about the supported locations for this service. * * Create a request for the method "locations.list". * * This request holds the parameters needed by the bigtableadmin server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param name The resource that owns the locations collection, if applicable. * @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 BigtableAdminRequest { private static final String REST_PATH = "v2/{+name}/locations"; private final java.util.regex.Pattern NAME_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+$"); /** * Lists information about the supported locations for this service. * * Create a request for the method "locations.list". * * This request holds the parameters needed by the the bigtableadmin 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 resource that owns the locations collection, if applicable. * @since 1.13 */ protected List(java.lang.String name) { super(BigtableAdmin.this, "GET", REST_PATH, null, com.google.api.services.bigtableadmin.v2.model.ListLocationsResponse.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/[^/]+$"); } } @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 resource that owns the locations collection, if applicable. */ @com.google.api.client.util.Key private java.lang.String name; /** The resource that owns the locations collection, if applicable. */ public java.lang.String getName() { return name; } /** The resource that owns the locations collection, if applicable. */ 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/[^/]+$"); } this.name = name; return this; } /** * A filter to narrow down results to a preferred subset. The filtering language accepts * strings like `"displayName=tokyo"`, and is documented in more detail in * [AIP-160](https://google.aip.dev/160). */ @com.google.api.client.util.Key private java.lang.String filter; /** A filter to narrow down results to a preferred subset. The filtering language accepts strings like `"displayName=tokyo"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160). */ public java.lang.String getFilter() { return filter; } /** * A filter to narrow down results to a preferred subset. The filtering language accepts * strings like `"displayName=tokyo"`, and is documented in more detail in * [AIP-160](https://google.aip.dev/160). */ public List setFilter(java.lang.String filter) { this.filter = filter; return this; } /** The maximum number of results to return. If not set, the service selects a default. */ @com.google.api.client.util.Key private java.lang.Integer pageSize; /** The maximum number of results to return. If not set, the service selects a default. */ public java.lang.Integer getPageSize() { return pageSize; } /** The maximum number of results to return. If not set, the service selects a default. */ public List setPageSize(java.lang.Integer pageSize) { this.pageSize = pageSize; return this; } /** * A page token received from the `next_page_token` field in the response. Send that page * token to receive the subsequent page. */ @com.google.api.client.util.Key private java.lang.String pageToken; /** A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page. */ public java.lang.String getPageToken() { return pageToken; } /** * A page token received from the `next_page_token` field in the response. Send that page * token to receive the subsequent page. */ 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); } } } } /** * Builder for {@link BigtableAdmin}. * *

* Implementation is not thread-safe. *

* * @since 1.3.0 */ public static final class Builder extends com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient.Builder { private static String chooseEndpoint(com.google.api.client.http.HttpTransport transport) { // If the GOOGLE_API_USE_MTLS_ENDPOINT environment variable value is "always", use mTLS endpoint. // If the env variable is "auto", use mTLS endpoint if and only if the transport is mTLS. // Use the regular endpoint for all other cases. String useMtlsEndpoint = System.getenv("GOOGLE_API_USE_MTLS_ENDPOINT"); useMtlsEndpoint = useMtlsEndpoint == null ? "auto" : useMtlsEndpoint; if ("always".equals(useMtlsEndpoint) || ("auto".equals(useMtlsEndpoint) && transport != null && transport.isMtls())) { return DEFAULT_MTLS_ROOT_URL; } return DEFAULT_ROOT_URL; } /** * 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, Builder.chooseEndpoint(transport), DEFAULT_SERVICE_PATH, httpRequestInitializer, false); setBatchPath(DEFAULT_BATCH_PATH); } /** Builds a new instance of {@link BigtableAdmin}. */ @Override public BigtableAdmin build() { return new BigtableAdmin(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 setBatchPath(String batchPath) { return (Builder) super.setBatchPath(batchPath); } @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 BigtableAdminRequestInitializer}. * * @since 1.12 */ public Builder setBigtableAdminRequestInitializer( BigtableAdminRequestInitializer bigtableadminRequestInitializer) { return (Builder) super.setGoogleClientRequestInitializer(bigtableadminRequestInitializer); } @Override public Builder setGoogleClientRequestInitializer( com.google.api.client.googleapis.services.GoogleClientRequestInitializer googleClientRequestInitializer) { return (Builder) super.setGoogleClientRequestInitializer(googleClientRequestInitializer); } @Override public Builder setUniverseDomain(String universeDomain) { return (Builder) super.setUniverseDomain(universeDomain); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy