{@link CreateLongRunning#initialize(com.google.api.client.googleapis.services.Ab + * stractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.
+ * + * @param parent Required. The repository in which to create the compilation result. Must be in the format + * `projects/locations/repositories`. + * @param content the {@link com.google.api.services.dataform.v1.model.CompilationResult} + * @since 1.13 + */ + protected CreateLongRunning(java.lang.String parent, com.google.api.services.dataform.v1.model.CompilationResult content) { + super(Dataform.this, "POST", REST_PATH, content, com.google.api.services.dataform.v1.model.Operation.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); + } + } + + @Override + public CreateLongRunning set$Xgafv(java.lang.String $Xgafv) { + return (CreateLongRunning) super.set$Xgafv($Xgafv); + } + + @Override + public CreateLongRunning setAccessToken(java.lang.String accessToken) { + return (CreateLongRunning) super.setAccessToken(accessToken); + } + + @Override + public CreateLongRunning setAlt(java.lang.String alt) { + return (CreateLongRunning) super.setAlt(alt); + } + + @Override + public CreateLongRunning setCallback(java.lang.String callback) { + return (CreateLongRunning) super.setCallback(callback); + } + + @Override + public CreateLongRunning setFields(java.lang.String fields) { + return (CreateLongRunning) super.setFields(fields); + } + + @Override + public CreateLongRunning setKey(java.lang.String key) { + return (CreateLongRunning) super.setKey(key); + } + + @Override + public CreateLongRunning setOauthToken(java.lang.String oauthToken) { + return (CreateLongRunning) super.setOauthToken(oauthToken); + } + + @Override + public CreateLongRunning setPrettyPrint(java.lang.Boolean prettyPrint) { + return (CreateLongRunning) super.setPrettyPrint(prettyPrint); + } + + @Override + public CreateLongRunning setQuotaUser(java.lang.String quotaUser) { + return (CreateLongRunning) super.setQuotaUser(quotaUser); + } + + @Override + public CreateLongRunning setUploadType(java.lang.String uploadType) { + return (CreateLongRunning) super.setUploadType(uploadType); + } + + @Override + public CreateLongRunning setUploadProtocol(java.lang.String uploadProtocol) { + return (CreateLongRunning) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The repository in which to create the compilation result. Must be in the + * format `projects/locations/repositories`. + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The repository in which to create the compilation result. Must be in the format + `projects/locations/repositories`. + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The repository in which to create the compilation result. Must be in the + * format `projects/locations/repositories`. + */ + public CreateLongRunning setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); + } + this.parent = parent; + return this; + } + + @Override + public CreateLongRunning set(String parameterName, Object value) { + return (CreateLongRunning) super.set(parameterName, value); + } + } /** * Fetches a single CompilationResult. * diff --git a/clients/google-api-services-dataform/v1/2.0.0/pom.xml b/clients/google-api-services-dataform/v1/2.0.0/pom.xml index db532102500..dd33db08905 100644 --- a/clients/google-api-services-dataform/v1/2.0.0/pom.xml +++ b/clients/google-api-services-dataform/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@{@link CreateLongRunning#initialize(com.google.api.client.googleapis.services.Ab + * stractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.
+ * + * @param parent Required. The repository in which to create the compilation result. Must be in the format + * `projects/locations/repositories`. + * @param content the {@link com.google.api.services.dataform.v1beta1.model.CompilationResult} + * @since 1.13 + */ + protected CreateLongRunning(java.lang.String parent, com.google.api.services.dataform.v1beta1.model.CompilationResult content) { + super(Dataform.this, "POST", REST_PATH, content, com.google.api.services.dataform.v1beta1.model.Operation.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); + } + } + + @Override + public CreateLongRunning set$Xgafv(java.lang.String $Xgafv) { + return (CreateLongRunning) super.set$Xgafv($Xgafv); + } + + @Override + public CreateLongRunning setAccessToken(java.lang.String accessToken) { + return (CreateLongRunning) super.setAccessToken(accessToken); + } + + @Override + public CreateLongRunning setAlt(java.lang.String alt) { + return (CreateLongRunning) super.setAlt(alt); + } + + @Override + public CreateLongRunning setCallback(java.lang.String callback) { + return (CreateLongRunning) super.setCallback(callback); + } + + @Override + public CreateLongRunning setFields(java.lang.String fields) { + return (CreateLongRunning) super.setFields(fields); + } + + @Override + public CreateLongRunning setKey(java.lang.String key) { + return (CreateLongRunning) super.setKey(key); + } + + @Override + public CreateLongRunning setOauthToken(java.lang.String oauthToken) { + return (CreateLongRunning) super.setOauthToken(oauthToken); + } + + @Override + public CreateLongRunning setPrettyPrint(java.lang.Boolean prettyPrint) { + return (CreateLongRunning) super.setPrettyPrint(prettyPrint); + } + + @Override + public CreateLongRunning setQuotaUser(java.lang.String quotaUser) { + return (CreateLongRunning) super.setQuotaUser(quotaUser); + } + + @Override + public CreateLongRunning setUploadType(java.lang.String uploadType) { + return (CreateLongRunning) super.setUploadType(uploadType); + } + + @Override + public CreateLongRunning setUploadProtocol(java.lang.String uploadProtocol) { + return (CreateLongRunning) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The repository in which to create the compilation result. Must be in the + * format `projects/locations/repositories`. + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The repository in which to create the compilation result. Must be in the format + `projects/locations/repositories`. + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The repository in which to create the compilation result. Must be in the + * format `projects/locations/repositories`. + */ + public CreateLongRunning setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$"); + } + this.parent = parent; + return this; + } + + @Override + public CreateLongRunning set(String parameterName, Object value) { + return (CreateLongRunning) super.set(parameterName, value); + } + } /** * Fetches a single CompilationResult. * diff --git a/clients/google-api-services-dataform/v1beta1/2.0.0/pom.xml b/clients/google-api-services-dataform/v1beta1/2.0.0/pom.xml index aeb033451f8..b994d550e1b 100644 --- a/clients/google-api-services-dataform/v1beta1/2.0.0/pom.xml +++ b/clients/google-api-services-dataform/v1beta1/2.0.0/pom.xml @@ -8,8 +8,8 @@