From c59395e14da6981181a91d520ea3245c7c349c1b Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot <44816363+yoshi-automation@users.noreply.github.com> Date: Tue, 5 Feb 2019 08:13:44 -0800 Subject: [PATCH] Regenerate dataproc client (#4428) --- .../dataproc/v1/ClusterControllerClient.java | 20 ++++++++--------- .../v1/WorkflowTemplateServiceClient.java | 22 +++++++++---------- .../v1beta2/ClusterControllerClient.java | 20 ++++++++--------- .../WorkflowTemplateServiceClient.java | 20 ++++++++--------- .../google-cloud-dataproc/synth.metadata | 10 ++++----- 5 files changed, 46 insertions(+), 46 deletions(-) diff --git a/google-cloud-clients/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerClient.java b/google-cloud-clients/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerClient.java index 6d587ca289d9..e070013923ad 100644 --- a/google-cloud-clients/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerClient.java +++ b/google-cloud-clients/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerClient.java @@ -256,7 +256,7 @@ public final OperationFuture createClusterAsy * .setRegion(region) * .setCluster(cluster) * .build(); - * OperationFuture<Operation> future = clusterControllerClient.createClusterOperationCallable().futureCall(request); + * OperationFuture<Cluster, ClusterOperationMetadata> future = clusterControllerClient.createClusterOperationCallable().futureCall(request); * // Do something * Cluster response = future.get(); * } @@ -407,7 +407,7 @@ public final OperationFuture updateClusterAsy * .setCluster(cluster) * .setUpdateMask(updateMask) * .build(); - * OperationFuture<Operation> future = clusterControllerClient.updateClusterOperationCallable().futureCall(request); + * OperationFuture<Cluster, ClusterOperationMetadata> future = clusterControllerClient.updateClusterOperationCallable().futureCall(request); * // Do something * Cluster response = future.get(); * } @@ -460,7 +460,7 @@ public final UnaryCallable updateClusterCallabl * String projectId = ""; * String region = ""; * String clusterName = ""; - * Empty response = clusterControllerClient.deleteClusterAsync(projectId, region, clusterName).get(); + * clusterControllerClient.deleteClusterAsync(projectId, region, clusterName).get(); * } * * @@ -500,7 +500,7 @@ public final OperationFuture deleteClusterAsync * .setRegion(region) * .setClusterName(clusterName) * .build(); - * Empty response = clusterControllerClient.deleteClusterAsync(request).get(); + * clusterControllerClient.deleteClusterAsync(request).get(); * } * * @@ -530,9 +530,9 @@ public final OperationFuture deleteClusterAsync * .setRegion(region) * .setClusterName(clusterName) * .build(); - * OperationFuture<Operation> future = clusterControllerClient.deleteClusterOperationCallable().futureCall(request); + * OperationFuture<Empty, ClusterOperationMetadata> future = clusterControllerClient.deleteClusterOperationCallable().futureCall(request); * // Do something - * Empty response = future.get(); + * future.get(); * } * */ @@ -826,7 +826,7 @@ public final UnaryCallable listCluste * String projectId = ""; * String region = ""; * String clusterName = ""; - * Empty response = clusterControllerClient.diagnoseClusterAsync(projectId, region, clusterName).get(); + * clusterControllerClient.diagnoseClusterAsync(projectId, region, clusterName).get(); * } * * @@ -867,7 +867,7 @@ public final OperationFuture diagnoseClusterAsync * .setRegion(region) * .setClusterName(clusterName) * .build(); - * Empty response = clusterControllerClient.diagnoseClusterAsync(request).get(); + * clusterControllerClient.diagnoseClusterAsync(request).get(); * } * * @@ -898,9 +898,9 @@ public final OperationFuture diagnoseClusterAsync * .setRegion(region) * .setClusterName(clusterName) * .build(); - * OperationFuture<Operation> future = clusterControllerClient.diagnoseClusterOperationCallable().futureCall(request); + * OperationFuture<Empty, DiagnoseClusterResults> future = clusterControllerClient.diagnoseClusterOperationCallable().futureCall(request); * // Do something - * Empty response = future.get(); + * future.get(); * } * */ diff --git a/google-cloud-clients/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java b/google-cloud-clients/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java index c46ff24c11d2..56410542d18e 100644 --- a/google-cloud-clients/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java +++ b/google-cloud-clients/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java @@ -411,7 +411,7 @@ public final WorkflowTemplate getWorkflowTemplate(GetWorkflowTemplateRequest req *

    * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
    *   WorkflowTemplateName name = WorkflowTemplateName.of("[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]");
-   *   Empty response = workflowTemplateServiceClient.instantiateWorkflowTemplateAsync(name).get();
+   *   workflowTemplateServiceClient.instantiateWorkflowTemplateAsync(name).get();
    * }
    * 
* @@ -455,7 +455,7 @@ public final OperationFuture instantiateWorkflowTemplat *

    * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
    *   WorkflowTemplateName name = WorkflowTemplateName.of("[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]");
-   *   Empty response = workflowTemplateServiceClient.instantiateWorkflowTemplateAsync(name.toString()).get();
+   *   workflowTemplateServiceClient.instantiateWorkflowTemplateAsync(name.toString()).get();
    * }
    * 
* @@ -498,7 +498,7 @@ public final OperationFuture instantiateWorkflowTemplat * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) { * WorkflowTemplateName name = WorkflowTemplateName.of("[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]"); * Map<String, String> parameters = new HashMap<>(); - * Empty response = workflowTemplateServiceClient.instantiateWorkflowTemplateAsync(name, parameters).get(); + * workflowTemplateServiceClient.instantiateWorkflowTemplateAsync(name, parameters).get(); * } * * @@ -546,7 +546,7 @@ public final OperationFuture instantiateWorkflowTemplat * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) { * WorkflowTemplateName name = WorkflowTemplateName.of("[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]"); * Map<String, String> parameters = new HashMap<>(); - * Empty response = workflowTemplateServiceClient.instantiateWorkflowTemplateAsync(name.toString(), parameters).get(); + * workflowTemplateServiceClient.instantiateWorkflowTemplateAsync(name.toString(), parameters).get(); * } * * @@ -596,7 +596,7 @@ public final OperationFuture instantiateWorkflowTemplat * InstantiateWorkflowTemplateRequest request = InstantiateWorkflowTemplateRequest.newBuilder() * .setName(name.toString()) * .build(); - * Empty response = workflowTemplateServiceClient.instantiateWorkflowTemplateAsync(request).get(); + * workflowTemplateServiceClient.instantiateWorkflowTemplateAsync(request).get(); * } * * @@ -636,9 +636,9 @@ public final OperationFuture instantiateWorkflowTemplat * InstantiateWorkflowTemplateRequest request = InstantiateWorkflowTemplateRequest.newBuilder() * .setName(name.toString()) * .build(); - * OperationFuture<Operation> future = workflowTemplateServiceClient.instantiateWorkflowTemplateOperationCallable().futureCall(request); + * OperationFuture<Empty, WorkflowMetadata> future = workflowTemplateServiceClient.instantiateWorkflowTemplateOperationCallable().futureCall(request); * // Do something - * Empty response = future.get(); + * future.get(); * } * */ @@ -714,7 +714,7 @@ public final OperationFuture instantiateWorkflowTemplat * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) { * String formattedParent = RegionName.format("[PROJECT]", "[REGION]"); * WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); - * Empty response = workflowTemplateServiceClient.instantiateInlineWorkflowTemplateAsync(formattedParent, template).get(); + * workflowTemplateServiceClient.instantiateInlineWorkflowTemplateAsync(formattedParent, template).get(); * } * * @@ -770,7 +770,7 @@ public final OperationFuture instantiateInlineWorkflowT * .setParent(formattedParent) * .setTemplate(template) * .build(); - * Empty response = workflowTemplateServiceClient.instantiateInlineWorkflowTemplateAsync(request).get(); + * workflowTemplateServiceClient.instantiateInlineWorkflowTemplateAsync(request).get(); * } * * @@ -817,9 +817,9 @@ public final OperationFuture instantiateInlineWorkflowT * .setParent(formattedParent) * .setTemplate(template) * .build(); - * OperationFuture<Operation> future = workflowTemplateServiceClient.instantiateInlineWorkflowTemplateOperationCallable().futureCall(request); + * OperationFuture<Empty, WorkflowMetadata> future = workflowTemplateServiceClient.instantiateInlineWorkflowTemplateOperationCallable().futureCall(request); * // Do something - * Empty response = future.get(); + * future.get(); * } * */ diff --git a/google-cloud-clients/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterControllerClient.java b/google-cloud-clients/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterControllerClient.java index 553b012148be..693bd46f35c2 100644 --- a/google-cloud-clients/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterControllerClient.java +++ b/google-cloud-clients/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterControllerClient.java @@ -256,7 +256,7 @@ public final OperationFuture createClusterAsy * .setRegion(region) * .setCluster(cluster) * .build(); - * OperationFuture<Operation> future = clusterControllerClient.createClusterOperationCallable().futureCall(request); + * OperationFuture<Cluster, ClusterOperationMetadata> future = clusterControllerClient.createClusterOperationCallable().futureCall(request); * // Do something * Cluster response = future.get(); * } @@ -411,7 +411,7 @@ public final OperationFuture updateClusterAsy * .setCluster(cluster) * .setUpdateMask(updateMask) * .build(); - * OperationFuture<Operation> future = clusterControllerClient.updateClusterOperationCallable().futureCall(request); + * OperationFuture<Cluster, ClusterOperationMetadata> future = clusterControllerClient.updateClusterOperationCallable().futureCall(request); * // Do something * Cluster response = future.get(); * } @@ -464,7 +464,7 @@ public final UnaryCallable updateClusterCallabl * String projectId = ""; * String region = ""; * String clusterName = ""; - * Empty response = clusterControllerClient.deleteClusterAsync(projectId, region, clusterName).get(); + * clusterControllerClient.deleteClusterAsync(projectId, region, clusterName).get(); * } * * @@ -504,7 +504,7 @@ public final OperationFuture deleteClusterAsync * .setRegion(region) * .setClusterName(clusterName) * .build(); - * Empty response = clusterControllerClient.deleteClusterAsync(request).get(); + * clusterControllerClient.deleteClusterAsync(request).get(); * } * * @@ -534,9 +534,9 @@ public final OperationFuture deleteClusterAsync * .setRegion(region) * .setClusterName(clusterName) * .build(); - * OperationFuture<Operation> future = clusterControllerClient.deleteClusterOperationCallable().futureCall(request); + * OperationFuture<Empty, ClusterOperationMetadata> future = clusterControllerClient.deleteClusterOperationCallable().futureCall(request); * // Do something - * Empty response = future.get(); + * future.get(); * } * */ @@ -830,7 +830,7 @@ public final UnaryCallable listCluste * String projectId = ""; * String region = ""; * String clusterName = ""; - * Empty response = clusterControllerClient.diagnoseClusterAsync(projectId, region, clusterName).get(); + * clusterControllerClient.diagnoseClusterAsync(projectId, region, clusterName).get(); * } * * @@ -871,7 +871,7 @@ public final OperationFuture diagnoseClusterAsync * .setRegion(region) * .setClusterName(clusterName) * .build(); - * Empty response = clusterControllerClient.diagnoseClusterAsync(request).get(); + * clusterControllerClient.diagnoseClusterAsync(request).get(); * } * * @@ -902,9 +902,9 @@ public final OperationFuture diagnoseClusterAsync * .setRegion(region) * .setClusterName(clusterName) * .build(); - * OperationFuture<Operation> future = clusterControllerClient.diagnoseClusterOperationCallable().futureCall(request); + * OperationFuture<Empty, DiagnoseClusterResults> future = clusterControllerClient.diagnoseClusterOperationCallable().futureCall(request); * // Do something - * Empty response = future.get(); + * future.get(); * } * */ diff --git a/google-cloud-clients/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceClient.java b/google-cloud-clients/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceClient.java index 7729ba206df3..64f9c5801c80 100644 --- a/google-cloud-clients/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceClient.java +++ b/google-cloud-clients/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceClient.java @@ -411,7 +411,7 @@ public final WorkflowTemplate getWorkflowTemplate(GetWorkflowTemplateRequest req *

    * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
    *   WorkflowTemplateName name = WorkflowTemplateName.of("[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]");
-   *   Empty response = workflowTemplateServiceClient.instantiateWorkflowTemplateAsync(name).get();
+   *   workflowTemplateServiceClient.instantiateWorkflowTemplateAsync(name).get();
    * }
    * 
* @@ -455,7 +455,7 @@ public final OperationFuture instantiateWorkflowTemplat *

    * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
    *   WorkflowTemplateName name = WorkflowTemplateName.of("[PROJECT]", "[REGION]", "[WORKFLOW_TEMPLATE]");
-   *   Empty response = workflowTemplateServiceClient.instantiateWorkflowTemplateAsync(name.toString()).get();
+   *   workflowTemplateServiceClient.instantiateWorkflowTemplateAsync(name.toString()).get();
    * }
    * 
* @@ -497,7 +497,7 @@ public final OperationFuture instantiateWorkflowTemplat *

    * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) {
    *   Map<String, String> parameters = new HashMap<>();
-   *   Empty response = workflowTemplateServiceClient.instantiateWorkflowTemplateAsync(parameters).get();
+   *   workflowTemplateServiceClient.instantiateWorkflowTemplateAsync(parameters).get();
    * }
    * 
* @@ -541,7 +541,7 @@ public final OperationFuture instantiateWorkflowTemplat * InstantiateWorkflowTemplateRequest request = InstantiateWorkflowTemplateRequest.newBuilder() * .setName(name.toString()) * .build(); - * Empty response = workflowTemplateServiceClient.instantiateWorkflowTemplateAsync(request).get(); + * workflowTemplateServiceClient.instantiateWorkflowTemplateAsync(request).get(); * } * * @@ -581,9 +581,9 @@ public final OperationFuture instantiateWorkflowTemplat * InstantiateWorkflowTemplateRequest request = InstantiateWorkflowTemplateRequest.newBuilder() * .setName(name.toString()) * .build(); - * OperationFuture<Operation> future = workflowTemplateServiceClient.instantiateWorkflowTemplateOperationCallable().futureCall(request); + * OperationFuture<Empty, WorkflowMetadata> future = workflowTemplateServiceClient.instantiateWorkflowTemplateOperationCallable().futureCall(request); * // Do something - * Empty response = future.get(); + * future.get(); * } * */ @@ -659,7 +659,7 @@ public final OperationFuture instantiateWorkflowTemplat * try (WorkflowTemplateServiceClient workflowTemplateServiceClient = WorkflowTemplateServiceClient.create()) { * String formattedParent = RegionName.format("[PROJECT]", "[REGION]"); * WorkflowTemplate template = WorkflowTemplate.newBuilder().build(); - * Empty response = workflowTemplateServiceClient.instantiateInlineWorkflowTemplateAsync(formattedParent, template).get(); + * workflowTemplateServiceClient.instantiateInlineWorkflowTemplateAsync(formattedParent, template).get(); * } * * @@ -715,7 +715,7 @@ public final OperationFuture instantiateInlineWorkflowT * .setParent(formattedParent) * .setTemplate(template) * .build(); - * Empty response = workflowTemplateServiceClient.instantiateInlineWorkflowTemplateAsync(request).get(); + * workflowTemplateServiceClient.instantiateInlineWorkflowTemplateAsync(request).get(); * } * * @@ -762,9 +762,9 @@ public final OperationFuture instantiateInlineWorkflowT * .setParent(formattedParent) * .setTemplate(template) * .build(); - * OperationFuture<Operation> future = workflowTemplateServiceClient.instantiateInlineWorkflowTemplateOperationCallable().futureCall(request); + * OperationFuture<Empty, WorkflowMetadata> future = workflowTemplateServiceClient.instantiateInlineWorkflowTemplateOperationCallable().futureCall(request); * // Do something - * Empty response = future.get(); + * future.get(); * } * */ diff --git a/google-cloud-clients/google-cloud-dataproc/synth.metadata b/google-cloud-clients/google-cloud-dataproc/synth.metadata index 1375739b900c..b64d33c0853d 100644 --- a/google-cloud-clients/google-cloud-dataproc/synth.metadata +++ b/google-cloud-clients/google-cloud-dataproc/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-01-17T08:40:33.945540Z", + "updateTime": "2019-02-02T08:37:20.101142Z", "sources": [ { "generator": { "name": "artman", - "version": "0.16.6", - "dockerImage": "googleapis/artman@sha256:12722f2ca3fbc3b53cc6aa5f0e569d7d221b46bd876a2136497089dec5e3634e" + "version": "0.16.8", + "dockerImage": "googleapis/artman@sha256:75bc07ef34a1de9895c18af54dc503ed3b3f3b52e85062e3360a979d2a0741e7" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "0ac60e21a1aa86c07c1836865b35308ba8178b05", - "internalRef": "229626798" + "sha": "bce093dab3e65c40eb9a37efbdc960f34df6037a", + "internalRef": "231974277" } } ],