Skip to content
Permalink
Browse files
feat!: release gapic-generator-java v2.0.0 (#567)
This PR was generated using Autosynth. 🌈

Synth log will be available here:
https://source.cloud.google.com/results/invocations/8db8048d-5b37-4b1d-9d8e-484bb35ab023/targets

- [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.)

PiperOrigin-RevId: 388535346
Source-Link: googleapis/googleapis@d9eaf41
PiperOrigin-RevId: 388499329
Source-Link: googleapis/googleapis@bb0a090
  • Loading branch information
yoshi-automation committed Aug 6, 2021
1 parent 6a6fd77 commit fc04ee9502a944b84f3c3c77f0f5581b695131d0
Showing with 345 additions and 559 deletions.
  1. +1 −7 google-cloud-talent/src/main/java/com/google/cloud/talent/v4/CompanyServiceClient.java
  2. +1 −2 google-cloud-talent/src/main/java/com/google/cloud/talent/v4/CompanyServiceSettings.java
  3. +1 −2 google-cloud-talent/src/main/java/com/google/cloud/talent/v4/CompletionSettings.java
  4. +1 −2 google-cloud-talent/src/main/java/com/google/cloud/talent/v4/EventServiceSettings.java
  5. +1 −9 google-cloud-talent/src/main/java/com/google/cloud/talent/v4/JobServiceClient.java
  6. +1 −2 google-cloud-talent/src/main/java/com/google/cloud/talent/v4/JobServiceSettings.java
  7. +1 −9 google-cloud-talent/src/main/java/com/google/cloud/talent/v4/TenantServiceClient.java
  8. +1 −2 google-cloud-talent/src/main/java/com/google/cloud/talent/v4/TenantServiceSettings.java
  9. +1 −2 google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/CompanyServiceStubSettings.java
  10. +1 −2 google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/CompletionStubSettings.java
  11. +1 −2 google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/EventServiceStubSettings.java
  12. +27 −38 google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/GrpcCompanyServiceStub.java
  13. +11 −10 google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/GrpcCompletionStub.java
  14. +11 −10 google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/GrpcEventServiceStub.java
  15. +47 −73 google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/GrpcJobServiceStub.java
  16. +27 −38 google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/GrpcTenantServiceStub.java
  17. +1 −2 google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/JobServiceStubSettings.java
  18. +1 −2 google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/TenantServiceStubSettings.java
  19. +1 −7 google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/ApplicationServiceClient.java
  20. +1 −2 google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/ApplicationServiceSettings.java
  21. +1 −7 google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompanyServiceClient.java
  22. +1 −2 google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompanyServiceSettings.java
  23. +1 −2 google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompletionSettings.java
  24. +1 −2 google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/EventServiceSettings.java
  25. +3 −23 google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/JobServiceClient.java
  26. +1 −2 google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/JobServiceSettings.java
  27. +2 −13 google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/ProfileServiceClient.java
  28. +1 −2 google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/ProfileServiceSettings.java
  29. +1 −9 google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/TenantServiceClient.java
  30. +1 −2 google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/TenantServiceSettings.java
  31. +1 −2 ...oud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/ApplicationServiceStubSettings.java
  32. +1 −2 ...e-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/CompanyServiceStubSettings.java
  33. +1 −2 google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/CompletionStubSettings.java
  34. +1 −2 google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/EventServiceStubSettings.java
  35. +28 −39 ...e-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcApplicationServiceStub.java
  36. +27 −38 google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcCompanyServiceStub.java
  37. +11 −10 google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcCompletionStub.java
  38. +11 −10 google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcEventServiceStub.java
  39. +47 −73 google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcJobServiceStub.java
  40. +31 −45 google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcProfileServiceStub.java
  41. +27 −38 google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/GrpcTenantServiceStub.java
  42. +1 −2 google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/JobServiceStubSettings.java
  43. +1 −2 ...e-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/ProfileServiceStubSettings.java
  44. +1 −2 ...le-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/TenantServiceStubSettings.java
  45. +5 −5 synth.metadata
@@ -16,7 +16,6 @@

package com.google.cloud.talent.v4;

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

@@ -181,14 +181,13 @@ public CompanyServiceStubSettings.Builder getStubSettingsBuilder() {
return ((CompanyServiceStubSettings.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;
@@ -154,14 +154,13 @@ public CompletionStubSettings.Builder getStubSettingsBuilder() {
return ((CompletionStubSettings.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;
@@ -155,14 +155,13 @@ public EventServiceStubSettings.Builder getStubSettingsBuilder() {
return ((EventServiceStubSettings.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.talent.v4;

import com.google.api.core.ApiFunction;
import com.google.api.core.ApiFuture;
import com.google.api.core.ApiFutures;
import com.google.api.core.BetaApi;
@@ -1337,14 +1336,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) {
@@ -227,14 +227,13 @@ public JobServiceStubSettings.Builder getStubSettingsBuilder() {
return ((JobServiceStubSettings.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.talent.v4;

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

private ListTenantsPagedResponse(ListTenantsPage page) {
@@ -180,14 +180,13 @@ public TenantServiceStubSettings.Builder getStubSettingsBuilder() {
return ((TenantServiceStubSettings.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;
@@ -402,14 +402,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;
}
@@ -250,14 +250,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;
}
@@ -244,14 +244,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.talent.v4.Company;
import com.google.cloud.talent.v4.CreateCompanyRequest;
@@ -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;

@@ -153,65 +151,50 @@ protected GrpcCompanyServiceStub(
GrpcCallSettings.<CreateCompanyRequest, Company>newBuilder()
.setMethodDescriptor(createCompanyMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<CreateCompanyRequest>() {
@Override
public Map<String, String> extract(CreateCompanyRequest 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<GetCompanyRequest, Company> getCompanyTransportSettings =
GrpcCallSettings.<GetCompanyRequest, Company>newBuilder()
.setMethodDescriptor(getCompanyMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<GetCompanyRequest>() {
@Override
public Map<String, String> extract(GetCompanyRequest 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<UpdateCompanyRequest, Company> updateCompanyTransportSettings =
GrpcCallSettings.<UpdateCompanyRequest, Company>newBuilder()
.setMethodDescriptor(updateCompanyMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<UpdateCompanyRequest>() {
@Override
public Map<String, String> extract(UpdateCompanyRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("company.name", String.valueOf(request.getCompany().getName()));
return params.build();
}
request -> {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("company.name", String.valueOf(request.getCompany().getName()));
return params.build();
})
.build();
GrpcCallSettings<DeleteCompanyRequest, Empty> deleteCompanyTransportSettings =
GrpcCallSettings.<DeleteCompanyRequest, Empty>newBuilder()
.setMethodDescriptor(deleteCompanyMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<DeleteCompanyRequest>() {
@Override
public Map<String, String> extract(DeleteCompanyRequest 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<ListCompaniesRequest, ListCompaniesResponse> listCompaniesTransportSettings =
GrpcCallSettings.<ListCompaniesRequest, ListCompaniesResponse>newBuilder()
.setMethodDescriptor(listCompaniesMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<ListCompaniesRequest>() {
@Override
public Map<String, String> extract(ListCompaniesRequest 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();

@@ -275,7 +258,13 @@ public UnaryCallable<ListCompaniesRequest, ListCompaniesResponse> listCompaniesC

@Override
public final void close() {
shutdown();
try {
backgroundResources.close();
} catch (RuntimeException e) {
throw e;
} catch (Exception e) {
throw new IllegalStateException("Failed to close resource", e);
}
}

@Override
@@ -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.talent.v4.CompleteQueryRequest;
import com.google.cloud.talent.v4.CompleteQueryResponse;
@@ -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;

@@ -101,13 +99,10 @@ protected GrpcCompletionStub(
GrpcCallSettings.<CompleteQueryRequest, CompleteQueryResponse>newBuilder()
.setMethodDescriptor(completeQueryMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<CompleteQueryRequest>() {
@Override
public Map<String, String> extract(CompleteQueryRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("tenant", String.valueOf(request.getTenant()));
return params.build();
}
request -> {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("tenant", String.valueOf(request.getTenant()));
return params.build();
})
.build();

@@ -130,7 +125,13 @@ public UnaryCallable<CompleteQueryRequest, CompleteQueryResponse> completeQueryC

@Override
public final void close() {
shutdown();
try {
backgroundResources.close();
} catch (RuntimeException e) {
throw e;
} catch (Exception e) {
throw new IllegalStateException("Failed to close resource", e);
}
}

@Override

0 comments on commit fc04ee9

Please sign in to comment.