Skip to content
Permalink
Browse files
feat!: release gapic-generator-java v2.0.0 (#481)
  • Loading branch information
gcf-owl-bot[bot] committed Aug 10, 2021
1 parent 6a02789 commit 1873e8ce220874aa3252cacaf053d29b93a84667
Showing with 179 additions and 526 deletions.
  1. +1 −2 ...ud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/LookupServiceSettings.java
  2. +3 −19 ...ervicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/RegistrationServiceClient.java
  3. +1 −2 ...vicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/RegistrationServiceSettings.java
  4. +4 −9 ...rvicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/GrpcLookupServiceStub.java
  5. +72 −128 ...irectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/GrpcRegistrationServiceStub.java
  6. +1 −2 ...edirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/LookupServiceStubSettings.java
  7. +1 −2 ...tory/src/main/java/com/google/cloud/servicedirectory/v1/stub/RegistrationServiceStubSettings.java
  8. +1 −2 ...rvicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/LookupServiceSettings.java
  9. +3 −19 ...edirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/RegistrationServiceClient.java
  10. +1 −2 ...irectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/RegistrationServiceSettings.java
  11. +4 −9 ...directory/src/main/java/com/google/cloud/servicedirectory/v1beta1/stub/GrpcLookupServiceStub.java
  12. +72 −128 ...ory/src/main/java/com/google/cloud/servicedirectory/v1beta1/stub/GrpcRegistrationServiceStub.java
  13. +1 −2 ...ctory/src/main/java/com/google/cloud/servicedirectory/v1beta1/stub/LookupServiceStubSettings.java
  14. +1 −2 ...src/main/java/com/google/cloud/servicedirectory/v1beta1/stub/RegistrationServiceStubSettings.java
  15. +5 −5 ...ectory/src/test/java/com/google/cloud/servicedirectory/v1beta1/RegistrationServiceClientTest.java
  16. +8 −0 proto-google-cloud-servicedirectory-v1beta1/clirr-ignored-differences.xml
  17. +0 −193 ...servicedirectory-v1beta1/src/main/java/com/google/cloud/servicedirectory/v1beta1/NetworkName.java
@@ -156,14 +156,13 @@ public LookupServiceStubSettings.Builder getStubSettingsBuilder() {
return ((LookupServiceStubSettings.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.servicedirectory.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;
@@ -1951,12 +1950,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());
}

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

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

@@ -259,14 +259,13 @@ public RegistrationServiceStubSettings.Builder getStubSettingsBuilder() {
return ((RegistrationServiceStubSettings.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;
@@ -21,7 +21,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.servicedirectory.v1.ResolveServiceRequest;
import com.google.cloud.servicedirectory.v1.ResolveServiceResponse;
@@ -30,7 +29,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;

@@ -102,13 +100,10 @@ protected GrpcLookupServiceStub(
GrpcCallSettings.<ResolveServiceRequest, ResolveServiceResponse>newBuilder()
.setMethodDescriptor(resolveServiceMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<ResolveServiceRequest>() {
@Override
public Map<String, String> extract(ResolveServiceRequest 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 1873e8c

Please sign in to comment.