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

Synth log will be available here:
https://source.cloud.google.com/results/invocations/69f31e34-547d-4b07-8c94-454d72b3a952/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 76ff59c commit ecc827ef2a277756c39dbada05a8b2beba6bbdaf
@@ -186,14 +186,13 @@ public OsLoginServiceStubSettings.Builder getStubSettingsBuilder() {
return ((OsLoginServiceStubSettings.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.oslogin.common.OsLoginProto;
import com.google.cloud.oslogin.v1.DeletePosixAccountRequest;
@@ -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;

@@ -171,81 +169,63 @@ protected GrpcOsLoginServiceStub(
GrpcCallSettings.<DeletePosixAccountRequest, Empty>newBuilder()
.setMethodDescriptor(deletePosixAccountMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<DeletePosixAccountRequest>() {
@Override
public Map<String, String> extract(DeletePosixAccountRequest 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<DeleteSshPublicKeyRequest, Empty> deleteSshPublicKeyTransportSettings =
GrpcCallSettings.<DeleteSshPublicKeyRequest, Empty>newBuilder()
.setMethodDescriptor(deleteSshPublicKeyMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<DeleteSshPublicKeyRequest>() {
@Override
public Map<String, String> extract(DeleteSshPublicKeyRequest 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<GetLoginProfileRequest, LoginProfile> getLoginProfileTransportSettings =
GrpcCallSettings.<GetLoginProfileRequest, LoginProfile>newBuilder()
.setMethodDescriptor(getLoginProfileMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<GetLoginProfileRequest>() {
@Override
public Map<String, String> extract(GetLoginProfileRequest 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<GetSshPublicKeyRequest, OsLoginProto.SshPublicKey>
getSshPublicKeyTransportSettings =
GrpcCallSettings.<GetSshPublicKeyRequest, OsLoginProto.SshPublicKey>newBuilder()
.setMethodDescriptor(getSshPublicKeyMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<GetSshPublicKeyRequest>() {
@Override
public Map<String, String> extract(GetSshPublicKeyRequest 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<ImportSshPublicKeyRequest, ImportSshPublicKeyResponse>
importSshPublicKeyTransportSettings =
GrpcCallSettings.<ImportSshPublicKeyRequest, ImportSshPublicKeyResponse>newBuilder()
.setMethodDescriptor(importSshPublicKeyMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<ImportSshPublicKeyRequest>() {
@Override
public Map<String, String> extract(ImportSshPublicKeyRequest 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<UpdateSshPublicKeyRequest, OsLoginProto.SshPublicKey>
updateSshPublicKeyTransportSettings =
GrpcCallSettings.<UpdateSshPublicKeyRequest, OsLoginProto.SshPublicKey>newBuilder()
.setMethodDescriptor(updateSshPublicKeyMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<UpdateSshPublicKeyRequest>() {
@Override
public Map<String, String> extract(UpdateSshPublicKeyRequest 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();

@@ -319,7 +299,13 @@ public UnaryCallable<GetLoginProfileRequest, LoginProfile> getLoginProfileCallab

@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
@@ -356,14 +356,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;
}
@@ -4,15 +4,15 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/java-os-login.git",
"sha": "9ecaf22e2c0ab128092dbb24e768f1953e16f20f"
"sha": "720f363dd47cc39a35b4eced103a87aba35d1705"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "551681f25e36b11829e87e580281350461f4f3f5",
"internalRef": "379784268"
"sha": "d9eaf41de44d953458b18712a3f240bb4c564e48",
"internalRef": "388535346"
}
},
{

0 comments on commit ecc827e

Please sign in to comment.