Skip to content
Permalink
Browse files
feat!: release gapic-generator-java v2.0.0 (#28)
  • Loading branch information
gcf-owl-bot[bot] committed Aug 9, 2021
1 parent a7dadb1 commit 142e6ebcc3b7dcd4d2888d817839670d9312c31f
@@ -16,7 +16,6 @@

package com.google.cloud.datafusion.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;
@@ -822,12 +821,7 @@ public static ApiFuture<ListAvailableVersionsPagedResponse> createAsync(
ListAvailableVersionsPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListAvailableVersionsPage, ListAvailableVersionsPagedResponse>() {
@Override
public ListAvailableVersionsPagedResponse apply(ListAvailableVersionsPage input) {
return new ListAvailableVersionsPagedResponse(input);
}
},
input -> new ListAvailableVersionsPagedResponse(input),
MoreExecutors.directExecutor());
}

@@ -907,12 +901,7 @@ public static ApiFuture<ListInstancesPagedResponse> createAsync(
ListInstancesPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListInstancesPage, ListInstancesPagedResponse>() {
@Override
public ListInstancesPagedResponse apply(ListInstancesPage input) {
return new ListInstancesPagedResponse(input);
}
},
input -> new ListInstancesPagedResponse(input),
MoreExecutors.directExecutor());
}

@@ -220,14 +220,13 @@ public DataFusionStubSettings.Builder getStubSettingsBuilder() {
return ((DataFusionStubSettings.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;
@@ -655,14 +655,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;
}
@@ -25,7 +25,6 @@
import com.google.api.gax.grpc.GrpcStubCallableFactory;
import com.google.api.gax.rpc.ClientContext;
import com.google.api.gax.rpc.OperationCallable;
import com.google.api.gax.rpc.RequestParamsExtractor;
import com.google.api.gax.rpc.UnaryCallable;
import com.google.cloud.datafusion.v1.CreateInstanceRequest;
import com.google.cloud.datafusion.v1.DeleteInstanceRequest;
@@ -45,7 +44,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;

@@ -196,91 +194,70 @@ protected GrpcDataFusionStub(
.<ListAvailableVersionsRequest, ListAvailableVersionsResponse>newBuilder()
.setMethodDescriptor(listAvailableVersionsMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<ListAvailableVersionsRequest>() {
@Override
public Map<String, String> extract(ListAvailableVersionsRequest 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<ListInstancesRequest, ListInstancesResponse> listInstancesTransportSettings =
GrpcCallSettings.<ListInstancesRequest, ListInstancesResponse>newBuilder()
.setMethodDescriptor(listInstancesMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<ListInstancesRequest>() {
@Override
public Map<String, String> extract(ListInstancesRequest 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<GetInstanceRequest, Instance> getInstanceTransportSettings =
GrpcCallSettings.<GetInstanceRequest, Instance>newBuilder()
.setMethodDescriptor(getInstanceMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<GetInstanceRequest>() {
@Override
public Map<String, String> extract(GetInstanceRequest 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<CreateInstanceRequest, Operation> createInstanceTransportSettings =
GrpcCallSettings.<CreateInstanceRequest, Operation>newBuilder()
.setMethodDescriptor(createInstanceMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<CreateInstanceRequest>() {
@Override
public Map<String, String> extract(CreateInstanceRequest 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<DeleteInstanceRequest, Operation> deleteInstanceTransportSettings =
GrpcCallSettings.<DeleteInstanceRequest, Operation>newBuilder()
.setMethodDescriptor(deleteInstanceMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<DeleteInstanceRequest>() {
@Override
public Map<String, String> extract(DeleteInstanceRequest 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<UpdateInstanceRequest, Operation> updateInstanceTransportSettings =
GrpcCallSettings.<UpdateInstanceRequest, Operation>newBuilder()
.setMethodDescriptor(updateInstanceMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<UpdateInstanceRequest>() {
@Override
public Map<String, String> extract(UpdateInstanceRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("instance.name", String.valueOf(request.getInstance().getName()));
return params.build();
}
request -> {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("instance.name", String.valueOf(request.getInstance().getName()));
return params.build();
})
.build();
GrpcCallSettings<RestartInstanceRequest, Operation> restartInstanceTransportSettings =
GrpcCallSettings.<RestartInstanceRequest, Operation>newBuilder()
.setMethodDescriptor(restartInstanceMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<RestartInstanceRequest>() {
@Override
public Map<String, String> extract(RestartInstanceRequest 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();

@@ -16,7 +16,6 @@

package com.google.cloud.datafusion.v1beta1;

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

@@ -1434,12 +1428,7 @@ public static ApiFuture<ListInstancesPagedResponse> createAsync(
ListInstancesPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListInstancesPage, ListInstancesPagedResponse>() {
@Override
public ListInstancesPagedResponse apply(ListInstancesPage input) {
return new ListInstancesPagedResponse(input);
}
},
input -> new ListInstancesPagedResponse(input),
MoreExecutors.directExecutor());
}

@@ -1515,12 +1504,7 @@ public static ApiFuture<ListNamespacesPagedResponse> createAsync(
ListNamespacesPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListNamespacesPage, ListNamespacesPagedResponse>() {
@Override
public ListNamespacesPagedResponse apply(ListNamespacesPage input) {
return new ListNamespacesPagedResponse(input);
}
},
input -> new ListNamespacesPagedResponse(input),
MoreExecutors.directExecutor());
}

@@ -1596,12 +1580,7 @@ public static ApiFuture<ListDnsPeeringsPagedResponse> createAsync(
ListDnsPeeringsPage.createEmptyPage().createPageAsync(context, futureResponse);
return ApiFutures.transform(
futurePage,
new ApiFunction<ListDnsPeeringsPage, ListDnsPeeringsPagedResponse>() {
@Override
public ListDnsPeeringsPagedResponse apply(ListDnsPeeringsPage input) {
return new ListDnsPeeringsPagedResponse(input);
}
},
input -> new ListDnsPeeringsPagedResponse(input),
MoreExecutors.directExecutor());
}

@@ -265,14 +265,13 @@ public DataFusionStubSettings.Builder getStubSettingsBuilder() {
return ((DataFusionStubSettings.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;
@@ -941,14 +941,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;
}

0 comments on commit 142e6eb

Please sign in to comment.