Skip to content
Permalink
Browse files
feat!: release gapic-generator-java v2.0.0 (#28)
  • Loading branch information
gcf-owl-bot[bot] committed Aug 10, 2021
1 parent a17091e commit 21034826643dd874f2008093694f4f78ba08b05b
Showing with 70 additions and 520 deletions.
  1. +1 −7 ...ork-management/src/main/java/com/google/cloud/networkmanagement/v1/ReachabilityServiceClient.java
  2. +1 −2 ...k-management/src/main/java/com/google/cloud/networkmanagement/v1/ReachabilityServiceSettings.java
  3. +24 −45 ...agement/src/main/java/com/google/cloud/networkmanagement/v1/stub/GrpcReachabilityServiceStub.java
  4. +1 −2 ...ent/src/main/java/com/google/cloud/networkmanagement/v1/stub/ReachabilityServiceStubSettings.java
  5. +1 −7 ...anagement/src/main/java/com/google/cloud/networkmanagement/v1beta1/ReachabilityServiceClient.java
  6. +1 −2 ...agement/src/main/java/com/google/cloud/networkmanagement/v1beta1/ReachabilityServiceSettings.java
  7. +24 −45 ...nt/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/GrpcReachabilityServiceStub.java
  8. +1 −2 ...rc/main/java/com/google/cloud/networkmanagement/v1beta1/stub/ReachabilityServiceStubSettings.java
  9. +4 −4 ...management/src/test/java/com/google/cloud/networkmanagement/v1/ReachabilityServiceClientTest.java
  10. +4 −4 ...ement/src/test/java/com/google/cloud/networkmanagement/v1beta1/ReachabilityServiceClientTest.java
  11. +4 −0 proto-google-cloud-network-management-v1/clirr-ignored-differences.xml
  12. +0 −8 proto-google-cloud-network-management-v1/pom.xml
  13. +0 −192 ...twork-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/ConnectivityTestName.java
  14. +4 −0 proto-google-cloud-network-management-v1beta1/clirr-ignored-differences.xml
  15. +0 −8 proto-google-cloud-network-management-v1beta1/pom.xml
  16. +0 −192 ...gement-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/ConnectivityTestName.java
@@ -16,7 +16,6 @@

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

@@ -226,14 +226,13 @@ public ReachabilityServiceStubSettings.Builder getStubSettingsBuilder() {
return ((ReachabilityServiceStubSettings.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;
@@ -24,7 +24,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.networkmanagement.v1.ConnectivityTest;
import com.google.cloud.networkmanagement.v1.CreateConnectivityTestRequest;
@@ -42,7 +41,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,84 +194,65 @@ protected GrpcReachabilityServiceStub(
.<ListConnectivityTestsRequest, ListConnectivityTestsResponse>newBuilder()
.setMethodDescriptor(listConnectivityTestsMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<ListConnectivityTestsRequest>() {
@Override
public Map<String, String> extract(ListConnectivityTestsRequest 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<GetConnectivityTestRequest, ConnectivityTest>
getConnectivityTestTransportSettings =
GrpcCallSettings.<GetConnectivityTestRequest, ConnectivityTest>newBuilder()
.setMethodDescriptor(getConnectivityTestMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<GetConnectivityTestRequest>() {
@Override
public Map<String, String> extract(GetConnectivityTestRequest 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<CreateConnectivityTestRequest, Operation>
createConnectivityTestTransportSettings =
GrpcCallSettings.<CreateConnectivityTestRequest, Operation>newBuilder()
.setMethodDescriptor(createConnectivityTestMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<CreateConnectivityTestRequest>() {
@Override
public Map<String, String> extract(CreateConnectivityTestRequest 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<UpdateConnectivityTestRequest, Operation>
updateConnectivityTestTransportSettings =
GrpcCallSettings.<UpdateConnectivityTestRequest, Operation>newBuilder()
.setMethodDescriptor(updateConnectivityTestMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<UpdateConnectivityTestRequest>() {
@Override
public Map<String, String> extract(UpdateConnectivityTestRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put(
"resource.name", String.valueOf(request.getResource().getName()));
return params.build();
}
request -> {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("resource.name", String.valueOf(request.getResource().getName()));
return params.build();
})
.build();
GrpcCallSettings<RerunConnectivityTestRequest, Operation>
rerunConnectivityTestTransportSettings =
GrpcCallSettings.<RerunConnectivityTestRequest, Operation>newBuilder()
.setMethodDescriptor(rerunConnectivityTestMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<RerunConnectivityTestRequest>() {
@Override
public Map<String, String> extract(RerunConnectivityTestRequest 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<DeleteConnectivityTestRequest, Operation>
deleteConnectivityTestTransportSettings =
GrpcCallSettings.<DeleteConnectivityTestRequest, Operation>newBuilder()
.setMethodDescriptor(deleteConnectivityTestMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<DeleteConnectivityTestRequest>() {
@Override
public Map<String, String> extract(DeleteConnectivityTestRequest 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();

@@ -608,14 +608,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;
}
@@ -16,7 +16,6 @@

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

@@ -227,14 +227,13 @@ public ReachabilityServiceStubSettings.Builder getStubSettingsBuilder() {
return ((ReachabilityServiceStubSettings.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;
@@ -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.networkmanagement.v1beta1.ConnectivityTest;
import com.google.cloud.networkmanagement.v1beta1.CreateConnectivityTestRequest;
@@ -43,7 +42,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;

@@ -198,84 +196,65 @@ protected GrpcReachabilityServiceStub(
.<ListConnectivityTestsRequest, ListConnectivityTestsResponse>newBuilder()
.setMethodDescriptor(listConnectivityTestsMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<ListConnectivityTestsRequest>() {
@Override
public Map<String, String> extract(ListConnectivityTestsRequest 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<GetConnectivityTestRequest, ConnectivityTest>
getConnectivityTestTransportSettings =
GrpcCallSettings.<GetConnectivityTestRequest, ConnectivityTest>newBuilder()
.setMethodDescriptor(getConnectivityTestMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<GetConnectivityTestRequest>() {
@Override
public Map<String, String> extract(GetConnectivityTestRequest 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<CreateConnectivityTestRequest, Operation>
createConnectivityTestTransportSettings =
GrpcCallSettings.<CreateConnectivityTestRequest, Operation>newBuilder()
.setMethodDescriptor(createConnectivityTestMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<CreateConnectivityTestRequest>() {
@Override
public Map<String, String> extract(CreateConnectivityTestRequest 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<UpdateConnectivityTestRequest, Operation>
updateConnectivityTestTransportSettings =
GrpcCallSettings.<UpdateConnectivityTestRequest, Operation>newBuilder()
.setMethodDescriptor(updateConnectivityTestMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<UpdateConnectivityTestRequest>() {
@Override
public Map<String, String> extract(UpdateConnectivityTestRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put(
"resource.name", String.valueOf(request.getResource().getName()));
return params.build();
}
request -> {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("resource.name", String.valueOf(request.getResource().getName()));
return params.build();
})
.build();
GrpcCallSettings<RerunConnectivityTestRequest, Operation>
rerunConnectivityTestTransportSettings =
GrpcCallSettings.<RerunConnectivityTestRequest, Operation>newBuilder()
.setMethodDescriptor(rerunConnectivityTestMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<RerunConnectivityTestRequest>() {
@Override
public Map<String, String> extract(RerunConnectivityTestRequest 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<DeleteConnectivityTestRequest, Operation>
deleteConnectivityTestTransportSettings =
GrpcCallSettings.<DeleteConnectivityTestRequest, Operation>newBuilder()
.setMethodDescriptor(deleteConnectivityTestMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<DeleteConnectivityTestRequest>() {
@Override
public Map<String, String> extract(DeleteConnectivityTestRequest 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();

@@ -609,14 +609,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 2103482

Please sign in to comment.