Skip to content
Permalink
Browse files
build: update from broken v1beta2 links to v1 (#628)
PiperOrigin-RevId: 389649385
Source-Link: googleapis/googleapis@2c1c2ac
Source-Link: https://github.com/googleapis/googleapis-gen/commit/a10d84a0bdd6864acdd0b1750c19888d4b54d4e4

feat!: release gapic-generator-java v2.0.0
Committer: @miraleung
PiperOrigin-RevId: 388535346
Source-Link: googleapis/googleapis@d9eaf41
Source-Link: https://github.com/googleapis/googleapis-gen/commit/976c5ab6f24b58c91fe04847ead1953f99d19e6a
  • Loading branch information
gcf-owl-bot[bot] committed Aug 9, 2021
1 parent 0aaf5a3 commit ff1784fd5e2997fcf3cbbb69fcfd49cc29bcbd44
Showing with 353 additions and 1,283 deletions.
  1. +1 −7 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceClient.java
  2. +1 −2 ...e-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/AutoscalingPolicyServiceSettings.java
  3. +1 −7 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerClient.java
  4. +1 −2 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/ClusterControllerSettings.java
  5. +1 −9 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerClient.java
  6. +1 −2 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/JobControllerSettings.java
  7. +1 −7 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceClient.java
  8. +1 −2 ...le-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/WorkflowTemplateServiceSettings.java
  9. +1 −2 ...ataproc/src/main/java/com/google/cloud/dataproc/v1/stub/AutoscalingPolicyServiceStubSettings.java
  10. +1 −2 ...cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/ClusterControllerStubSettings.java
  11. +20 −37 ...ud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcAutoscalingPolicyServiceStub.java
  12. +46 −72 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcClusterControllerStub.java
  13. +39 −62 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcJobControllerStub.java
  14. +28 −54 ...oud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/GrpcWorkflowTemplateServiceStub.java
  15. +1 −2 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/JobControllerStubSettings.java
  16. +1 −2 ...dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/WorkflowTemplateServiceStubSettings.java
  17. +1 −7 ...loud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceClient.java
  18. +1 −2 ...ud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/AutoscalingPolicyServiceSettings.java
  19. +17 −39 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterControllerClient.java
  20. +1 −2 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterControllerSettings.java
  21. +4 −18 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/JobControllerClient.java
  22. +1 −2 google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/JobControllerSettings.java
  23. +8 −21 ...cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceClient.java
  24. +1 −2 ...oud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceSettings.java
  25. +1 −2 ...oc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/AutoscalingPolicyServiceStubSettings.java
  26. +1 −2 ...-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/ClusterControllerStubSettings.java
  27. +20 −37 ...taproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcAutoscalingPolicyServiceStub.java
  28. +34 −54 ...loud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcClusterControllerStub.java
  29. +39 −62 ...le-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcJobControllerStub.java
  30. +28 −54 ...ataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/GrpcWorkflowTemplateServiceStub.java
  31. +1 −2 ...loud-dataproc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/JobControllerStubSettings.java
  32. +1 −2 ...roc/src/main/java/com/google/cloud/dataproc/v1beta2/stub/WorkflowTemplateServiceStubSettings.java
  33. +16 −16 ...cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterControllerGrpc.java
  34. +8 −8 ...gle-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/JobControllerGrpc.java
  35. +4 −4 ...dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/WorkflowTemplateServiceGrpc.java
  36. +9 −0 proto-google-cloud-dataproc-v1/clirr-ignored-differences.xml
  37. +0 −223 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClusterName.java
  38. +0 −223 proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ServiceName.java
  39. +5 −0 proto-google-cloud-dataproc-v1beta2/clirr-ignored-differences.xml
  40. +0 −223 proto-google-cloud-dataproc-v1beta2/src/main/java/com/google/cloud/dataproc/v1beta2/ClusterName.java
  41. +4 −4 proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/clusters.proto
  42. +2 −2 proto-google-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/jobs.proto
  43. +1 −1 ...ogle-cloud-dataproc-v1beta2/src/main/proto/google/cloud/dataproc/v1beta2/workflow_templates.proto
@@ -16,7 +16,6 @@

package com.google.cloud.dataproc.v1;

import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
import com.google.api.core.ApiFutures;
import com.google.api.core.BetaApi;
@@ -944,12 +943,7 @@ public static ApiFuture<ListAutoscalingPoliciesPagedResponse> createAsync(
ListAutoscalingPoliciesPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListAutoscalingPoliciesPage, ListAutoscalingPoliciesPagedResponse>() {
@Override
public ListAutoscalingPoliciesPagedResponse apply(ListAutoscalingPoliciesPage input) {
return new ListAutoscalingPoliciesPagedResponse(input);
}
},
input -> new ListAutoscalingPoliciesPagedResponse(input),
MoreExecutors.directExecutor());
}

@@ -196,14 +196,13 @@ public AutoscalingPolicyServiceStubSettings.Builder getStubSettingsBuilder() {
return ((AutoscalingPolicyServiceStubSettings.Builder) getStubSettings());
}

// NEXT_MAJOR_VER: remove 'throws Exception'.
/**
* Applies the given settings updater function to all of the unary API methods in this service.
*
* <p>Note: This method does not support applying settings to streaming methods.
*/
public Builder applyToAllUnaryMethods(
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
super.applyToAllUnaryMethods(
getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
return this;
@@ -16,7 +16,6 @@

package com.google.cloud.dataproc.v1;

import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
import com.google.api.core.ApiFutures;
import com.google.api.core.BetaApi;
@@ -1163,12 +1162,7 @@ public static ApiFuture<ListClustersPagedResponse> createAsync(
ListClustersPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListClustersPage, ListClustersPagedResponse>() {
@Override
public ListClustersPagedResponse apply(ListClustersPage input) {
return new ListClustersPagedResponse(input);
}
},
input -> new ListClustersPagedResponse(input),
MoreExecutors.directExecutor());
}

@@ -235,14 +235,13 @@ public ClusterControllerStubSettings.Builder getStubSettingsBuilder() {
return ((ClusterControllerStubSettings.Builder) getStubSettings());
}

// NEXT_MAJOR_VER: remove 'throws Exception'.
/**
* Applies the given settings updater function to all of the unary API methods in this service.
*
* <p>Note: This method does not support applying settings to streaming methods.
*/
public Builder applyToAllUnaryMethods(
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
super.applyToAllUnaryMethods(
getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
return this;
@@ -16,7 +16,6 @@

package com.google.cloud.dataproc.v1;

import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
import com.google.api.core.ApiFutures;
import com.google.api.core.BetaApi;
@@ -852,14 +851,7 @@ public static ApiFuture<ListJobsPagedResponse> createAsync(
ApiFuture<ListJobsPage> futurePage =
ListJobsPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListJobsPage, ListJobsPagedResponse>() {
@Override
public ListJobsPagedResponse apply(ListJobsPage input) {
return new ListJobsPagedResponse(input);
}
},
MoreExecutors.directExecutor());
futurePage, input -> new ListJobsPagedResponse(input), MoreExecutors.directExecutor());
}

private ListJobsPagedResponse(ListJobsPage page) {
@@ -198,14 +198,13 @@ public JobControllerStubSettings.Builder getStubSettingsBuilder() {
return ((JobControllerStubSettings.Builder) getStubSettings());
}

// NEXT_MAJOR_VER: remove 'throws Exception'.
/**
* Applies the given settings updater function to all of the unary API methods in this service.
*
* <p>Note: This method does not support applying settings to streaming methods.
*/
public Builder applyToAllUnaryMethods(
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
super.applyToAllUnaryMethods(
getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
return this;
@@ -16,7 +16,6 @@

package com.google.cloud.dataproc.v1;

import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
import com.google.api.core.ApiFutures;
import com.google.api.core.BetaApi;
@@ -1679,12 +1678,7 @@ public static ApiFuture<ListWorkflowTemplatesPagedResponse> createAsync(
ListWorkflowTemplatesPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListWorkflowTemplatesPage, ListWorkflowTemplatesPagedResponse>() {
@Override
public ListWorkflowTemplatesPagedResponse apply(ListWorkflowTemplatesPage input) {
return new ListWorkflowTemplatesPagedResponse(input);
}
},
input -> new ListWorkflowTemplatesPagedResponse(input),
MoreExecutors.directExecutor());
}

@@ -224,14 +224,13 @@ public WorkflowTemplateServiceStubSettings.Builder getStubSettingsBuilder() {
return ((WorkflowTemplateServiceStubSettings.Builder) getStubSettings());
}

// NEXT_MAJOR_VER: remove 'throws Exception'.
/**
* Applies the given settings updater function to all of the unary API methods in this service.
*
* <p>Note: This method does not support applying settings to streaming methods.
*/
public Builder applyToAllUnaryMethods(
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
super.applyToAllUnaryMethods(
getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
return this;
@@ -441,14 +441,13 @@ private static Builder initDefaults(Builder builder) {
return builder;
}

// NEXT_MAJOR_VER: remove 'throws Exception'.
/**
* Applies the given settings updater function to all of the unary API methods in this service.
*
* <p>Note: This method does not support applying settings to streaming methods.
*/
public Builder applyToAllUnaryMethods(
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater);
return this;
}
@@ -700,14 +700,13 @@ private static Builder initDefaults(Builder builder) {
return builder;
}

// NEXT_MAJOR_VER: remove 'throws Exception'.
/**
* Applies the given settings updater function to all of the unary API methods in this service.
*
* <p>Note: This method does not support applying settings to streaming methods.
*/
public Builder applyToAllUnaryMethods(
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) throws Exception {
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater);
return this;
}
@@ -23,7 +23,6 @@
import com.google.api.gax.grpc.GrpcCallSettings;
import com.google.api.gax.grpc.GrpcStubCallableFactory;
import com.google.api.gax.rpc.ClientContext;
import com.google.api.gax.rpc.RequestParamsExtractor;
import com.google.api.gax.rpc.UnaryCallable;
import com.google.cloud.dataproc.v1.AutoscalingPolicy;
import com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest;
@@ -38,7 +37,6 @@
import io.grpc.MethodDescriptor;
import io.grpc.protobuf.ProtoUtils;
import java.io.IOException;
import java.util.Map;
import java.util.concurrent.TimeUnit;
import javax.annotation.Generated;

@@ -171,41 +169,32 @@ protected GrpcAutoscalingPolicyServiceStub(
GrpcCallSettings.<CreateAutoscalingPolicyRequest, AutoscalingPolicy>newBuilder()
.setMethodDescriptor(createAutoscalingPolicyMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<CreateAutoscalingPolicyRequest>() {
@Override
public Map<String, String> extract(CreateAutoscalingPolicyRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("parent", String.valueOf(request.getParent()));
return params.build();
}
request -> {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("parent", String.valueOf(request.getParent()));
return params.build();
})
.build();
GrpcCallSettings<UpdateAutoscalingPolicyRequest, AutoscalingPolicy>
updateAutoscalingPolicyTransportSettings =
GrpcCallSettings.<UpdateAutoscalingPolicyRequest, AutoscalingPolicy>newBuilder()
.setMethodDescriptor(updateAutoscalingPolicyMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<UpdateAutoscalingPolicyRequest>() {
@Override
public Map<String, String> extract(UpdateAutoscalingPolicyRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("policy.name", String.valueOf(request.getPolicy().getName()));
return params.build();
}
request -> {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("policy.name", String.valueOf(request.getPolicy().getName()));
return params.build();
})
.build();
GrpcCallSettings<GetAutoscalingPolicyRequest, AutoscalingPolicy>
getAutoscalingPolicyTransportSettings =
GrpcCallSettings.<GetAutoscalingPolicyRequest, AutoscalingPolicy>newBuilder()
.setMethodDescriptor(getAutoscalingPolicyMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<GetAutoscalingPolicyRequest>() {
@Override
public Map<String, String> extract(GetAutoscalingPolicyRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("name", String.valueOf(request.getName()));
return params.build();
}
request -> {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("name", String.valueOf(request.getName()));
return params.build();
})
.build();
GrpcCallSettings<ListAutoscalingPoliciesRequest, ListAutoscalingPoliciesResponse>
@@ -214,27 +203,21 @@ public Map<String, String> extract(GetAutoscalingPolicyRequest request) {
.<ListAutoscalingPoliciesRequest, ListAutoscalingPoliciesResponse>newBuilder()
.setMethodDescriptor(listAutoscalingPoliciesMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<ListAutoscalingPoliciesRequest>() {
@Override
public Map<String, String> extract(ListAutoscalingPoliciesRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("parent", String.valueOf(request.getParent()));
return params.build();
}
request -> {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("parent", String.valueOf(request.getParent()));
return params.build();
})
.build();
GrpcCallSettings<DeleteAutoscalingPolicyRequest, Empty>
deleteAutoscalingPolicyTransportSettings =
GrpcCallSettings.<DeleteAutoscalingPolicyRequest, Empty>newBuilder()
.setMethodDescriptor(deleteAutoscalingPolicyMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<DeleteAutoscalingPolicyRequest>() {
@Override
public Map<String, String> extract(DeleteAutoscalingPolicyRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("name", String.valueOf(request.getName()));
return params.build();
}
request -> {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("name", String.valueOf(request.getName()));
return params.build();
})
.build();

0 comments on commit ff1784f

Please sign in to comment.