Skip to content
Permalink
Browse files
feat!: release gapic-generator-java v2.0.0 (#92)
  • Loading branch information
gcf-owl-bot[bot] committed Aug 10, 2021
1 parent 0f194a7 commit ee1e8412b62c7c2d4c8ce1e4756dd6a174ba481f
Showing with 188 additions and 1,252 deletions.
  1. +2 −13 google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/GkeHubClient.java
  2. +1 −2 google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/GkeHubSettings.java
  3. +1 −2 google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GkeHubStubSettings.java
  4. +44 −79 google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GrpcGkeHubStub.java
  5. +1 −7 google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/GkeHubClient.java
  6. +1 −2 google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/GkeHubSettings.java
  7. +1 −2 google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/stub/GkeHubStubSettings.java
  8. +20 −37 google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/stub/GrpcGkeHubStub.java
  9. +1 −7 google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeHubClient.java
  10. +1 −2 google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeHubSettings.java
  11. +1 −2 google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/stub/GkeHubStubSettings.java
  12. +28 −51 google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/stub/GrpcGkeHubStub.java
  13. +1 −7 google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/GkeHubClient.java
  14. +1 −2 google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/GkeHubSettings.java
  15. +1 −2 google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/stub/GkeHubStubSettings.java
  16. +20 −37 google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/stub/GrpcGkeHubStub.java
  17. +1 −7 google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceClient.java
  18. +1 −2 ...e-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceSettings.java
  19. +1 −2 ...kehub/src/main/java/com/google/cloud/gkehub/v1beta1/stub/GkeHubMembershipServiceStubSettings.java
  20. +32 −59 ...ud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/stub/GrpcGkeHubMembershipServiceStub.java
  21. +3 −3 google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1/GkeHubClientTest.java
  22. +3 −3 google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1alpha/GkeHubClientTest.java
  23. +3 −3 google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1beta/GkeHubClientTest.java
  24. +3 −3 ...cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceClientTest.java
  25. +4 −0 proto-google-cloud-gkehub-v1/clirr-ignored-differences.xml
  26. +0 −223 proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureName.java
  27. +4 −0 proto-google-cloud-gkehub-v1alpha/clirr-ignored-differences.xml
  28. +0 −8 proto-google-cloud-gkehub-v1alpha/pom.xml
  29. +0 −223 proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureName.java
  30. +4 −0 proto-google-cloud-gkehub-v1beta/clirr-ignored-differences.xml
  31. +0 −8 proto-google-cloud-gkehub-v1beta/pom.xml
  32. +0 −223 proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureName.java
  33. +4 −0 proto-google-cloud-gkehub-v1beta1/clirr-ignored-differences.xml
  34. +0 −8 proto-google-cloud-gkehub-v1beta1/pom.xml
  35. +0 −223 proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipName.java
@@ -16,7 +16,6 @@

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

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

@@ -251,14 +251,13 @@ public GkeHubStubSettings.Builder getStubSettingsBuilder() {
return ((GkeHubStubSettings.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;
@@ -796,14 +796,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.gkehub.v1.CreateFeatureRequest;
import com.google.cloud.gkehub.v1.CreateMembershipRequest;
@@ -51,7 +50,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;

@@ -249,130 +247,100 @@ protected GrpcGkeHubStub(
GrpcCallSettings.<ListMembershipsRequest, ListMembershipsResponse>newBuilder()
.setMethodDescriptor(listMembershipsMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<ListMembershipsRequest>() {
@Override
public Map<String, String> extract(ListMembershipsRequest 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<ListFeaturesRequest, ListFeaturesResponse> listFeaturesTransportSettings =
GrpcCallSettings.<ListFeaturesRequest, ListFeaturesResponse>newBuilder()
.setMethodDescriptor(listFeaturesMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<ListFeaturesRequest>() {
@Override
public Map<String, String> extract(ListFeaturesRequest 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<GetMembershipRequest, Membership> getMembershipTransportSettings =
GrpcCallSettings.<GetMembershipRequest, Membership>newBuilder()
.setMethodDescriptor(getMembershipMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<GetMembershipRequest>() {
@Override
public Map<String, String> extract(GetMembershipRequest 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<GetFeatureRequest, Feature> getFeatureTransportSettings =
GrpcCallSettings.<GetFeatureRequest, Feature>newBuilder()
.setMethodDescriptor(getFeatureMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<GetFeatureRequest>() {
@Override
public Map<String, String> extract(GetFeatureRequest 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<CreateMembershipRequest, Operation> createMembershipTransportSettings =
GrpcCallSettings.<CreateMembershipRequest, Operation>newBuilder()
.setMethodDescriptor(createMembershipMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<CreateMembershipRequest>() {
@Override
public Map<String, String> extract(CreateMembershipRequest 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<CreateFeatureRequest, Operation> createFeatureTransportSettings =
GrpcCallSettings.<CreateFeatureRequest, Operation>newBuilder()
.setMethodDescriptor(createFeatureMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<CreateFeatureRequest>() {
@Override
public Map<String, String> extract(CreateFeatureRequest 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<DeleteMembershipRequest, Operation> deleteMembershipTransportSettings =
GrpcCallSettings.<DeleteMembershipRequest, Operation>newBuilder()
.setMethodDescriptor(deleteMembershipMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<DeleteMembershipRequest>() {
@Override
public Map<String, String> extract(DeleteMembershipRequest 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<DeleteFeatureRequest, Operation> deleteFeatureTransportSettings =
GrpcCallSettings.<DeleteFeatureRequest, Operation>newBuilder()
.setMethodDescriptor(deleteFeatureMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<DeleteFeatureRequest>() {
@Override
public Map<String, String> extract(DeleteFeatureRequest 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<UpdateMembershipRequest, Operation> updateMembershipTransportSettings =
GrpcCallSettings.<UpdateMembershipRequest, Operation>newBuilder()
.setMethodDescriptor(updateMembershipMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<UpdateMembershipRequest>() {
@Override
public Map<String, String> extract(UpdateMembershipRequest 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<UpdateFeatureRequest, Operation> updateFeatureTransportSettings =
GrpcCallSettings.<UpdateFeatureRequest, Operation>newBuilder()
.setMethodDescriptor(updateFeatureMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<UpdateFeatureRequest>() {
@Override
public Map<String, String> extract(UpdateFeatureRequest 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<GenerateConnectManifestRequest, GenerateConnectManifestResponse>
@@ -381,13 +349,10 @@ public Map<String, String> extract(UpdateFeatureRequest request) {
.<GenerateConnectManifestRequest, GenerateConnectManifestResponse>newBuilder()
.setMethodDescriptor(generateConnectManifestMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<GenerateConnectManifestRequest>() {
@Override
public Map<String, String> extract(GenerateConnectManifestRequest 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.gkehub.v1alpha;

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

@@ -200,14 +200,13 @@ public GkeHubStubSettings.Builder getStubSettingsBuilder() {
return ((GkeHubStubSettings.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;
@@ -503,14 +503,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 ee1e841

Please sign in to comment.