@@ -266,6 +266,74 @@ private IAMCredentialsGrpc() {}
266266 return getSignJwtMethod ;
267267 }
268268
269+ @ io .grpc .ExperimentalApi ("https://github.com/grpc/grpc-java/issues/1901" )
270+ @ java .lang .Deprecated // Use {@link #getGenerateIdentityBindingAccessTokenMethod()} instead.
271+ public static final io .grpc .MethodDescriptor <
272+ com .google .cloud .iam .credentials .v1 .GenerateIdentityBindingAccessTokenRequest ,
273+ com .google .cloud .iam .credentials .v1 .GenerateIdentityBindingAccessTokenResponse >
274+ METHOD_GENERATE_IDENTITY_BINDING_ACCESS_TOKEN =
275+ getGenerateIdentityBindingAccessTokenMethodHelper ();
276+
277+ private static volatile io .grpc .MethodDescriptor <
278+ com .google .cloud .iam .credentials .v1 .GenerateIdentityBindingAccessTokenRequest ,
279+ com .google .cloud .iam .credentials .v1 .GenerateIdentityBindingAccessTokenResponse >
280+ getGenerateIdentityBindingAccessTokenMethod ;
281+
282+ @ io .grpc .ExperimentalApi ("https://github.com/grpc/grpc-java/issues/1901" )
283+ public static io .grpc .MethodDescriptor <
284+ com .google .cloud .iam .credentials .v1 .GenerateIdentityBindingAccessTokenRequest ,
285+ com .google .cloud .iam .credentials .v1 .GenerateIdentityBindingAccessTokenResponse >
286+ getGenerateIdentityBindingAccessTokenMethod () {
287+ return getGenerateIdentityBindingAccessTokenMethodHelper ();
288+ }
289+
290+ private static io .grpc .MethodDescriptor <
291+ com .google .cloud .iam .credentials .v1 .GenerateIdentityBindingAccessTokenRequest ,
292+ com .google .cloud .iam .credentials .v1 .GenerateIdentityBindingAccessTokenResponse >
293+ getGenerateIdentityBindingAccessTokenMethodHelper () {
294+ io .grpc .MethodDescriptor <
295+ com .google .cloud .iam .credentials .v1 .GenerateIdentityBindingAccessTokenRequest ,
296+ com .google .cloud .iam .credentials .v1 .GenerateIdentityBindingAccessTokenResponse >
297+ getGenerateIdentityBindingAccessTokenMethod ;
298+ if ((getGenerateIdentityBindingAccessTokenMethod =
299+ IAMCredentialsGrpc .getGenerateIdentityBindingAccessTokenMethod )
300+ == null ) {
301+ synchronized (IAMCredentialsGrpc .class ) {
302+ if ((getGenerateIdentityBindingAccessTokenMethod =
303+ IAMCredentialsGrpc .getGenerateIdentityBindingAccessTokenMethod )
304+ == null ) {
305+ IAMCredentialsGrpc .getGenerateIdentityBindingAccessTokenMethod =
306+ getGenerateIdentityBindingAccessTokenMethod =
307+ io .grpc .MethodDescriptor
308+ .<com .google .cloud .iam .credentials .v1
309+ .GenerateIdentityBindingAccessTokenRequest ,
310+ com .google .cloud .iam .credentials .v1
311+ .GenerateIdentityBindingAccessTokenResponse >
312+ newBuilder ()
313+ .setType (io .grpc .MethodDescriptor .MethodType .UNARY )
314+ .setFullMethodName (
315+ generateFullMethodName (
316+ "google.iam.credentials.v1.IAMCredentials" ,
317+ "GenerateIdentityBindingAccessToken" ))
318+ .setSampledToLocalTracing (true )
319+ .setRequestMarshaller (
320+ io .grpc .protobuf .ProtoUtils .marshaller (
321+ com .google .cloud .iam .credentials .v1
322+ .GenerateIdentityBindingAccessTokenRequest .getDefaultInstance ()))
323+ .setResponseMarshaller (
324+ io .grpc .protobuf .ProtoUtils .marshaller (
325+ com .google .cloud .iam .credentials .v1
326+ .GenerateIdentityBindingAccessTokenResponse .getDefaultInstance ()))
327+ .setSchemaDescriptor (
328+ new IAMCredentialsMethodDescriptorSupplier (
329+ "GenerateIdentityBindingAccessToken" ))
330+ .build ();
331+ }
332+ }
333+ }
334+ return getGenerateIdentityBindingAccessTokenMethod ;
335+ }
336+
269337 /** Creates a new async stub that supports all call types for the service */
270338 public static IAMCredentialsStub newStub (io .grpc .Channel channel ) {
271339 return new IAMCredentialsStub (channel );
@@ -355,6 +423,23 @@ public void signJwt(
355423 asyncUnimplementedUnaryCall (getSignJwtMethodHelper (), responseObserver );
356424 }
357425
426+ /**
427+ *
428+ *
429+ * <pre>
430+ * Exchange a JWT signed by third party identity provider to an OAuth 2.0
431+ * access token
432+ * </pre>
433+ */
434+ public void generateIdentityBindingAccessToken (
435+ com .google .cloud .iam .credentials .v1 .GenerateIdentityBindingAccessTokenRequest request ,
436+ io .grpc .stub .StreamObserver <
437+ com .google .cloud .iam .credentials .v1 .GenerateIdentityBindingAccessTokenResponse >
438+ responseObserver ) {
439+ asyncUnimplementedUnaryCall (
440+ getGenerateIdentityBindingAccessTokenMethodHelper (), responseObserver );
441+ }
442+
358443 @ java .lang .Override
359444 public final io .grpc .ServerServiceDefinition bindService () {
360445 return io .grpc .ServerServiceDefinition .builder (getServiceDescriptor ())
@@ -386,6 +471,14 @@ public final io.grpc.ServerServiceDefinition bindService() {
386471 com .google .cloud .iam .credentials .v1 .SignJwtRequest ,
387472 com .google .cloud .iam .credentials .v1 .SignJwtResponse >(
388473 this , METHODID_SIGN_JWT )))
474+ .addMethod (
475+ getGenerateIdentityBindingAccessTokenMethodHelper (),
476+ asyncUnaryCall (
477+ new MethodHandlers <
478+ com .google .cloud .iam .credentials .v1 .GenerateIdentityBindingAccessTokenRequest ,
479+ com .google .cloud .iam .credentials .v1
480+ .GenerateIdentityBindingAccessTokenResponse >(
481+ this , METHODID_GENERATE_IDENTITY_BINDING_ACCESS_TOKEN )))
389482 .build ();
390483 }
391484 }
@@ -486,6 +579,26 @@ public void signJwt(
486579 request ,
487580 responseObserver );
488581 }
582+
583+ /**
584+ *
585+ *
586+ * <pre>
587+ * Exchange a JWT signed by third party identity provider to an OAuth 2.0
588+ * access token
589+ * </pre>
590+ */
591+ public void generateIdentityBindingAccessToken (
592+ com .google .cloud .iam .credentials .v1 .GenerateIdentityBindingAccessTokenRequest request ,
593+ io .grpc .stub .StreamObserver <
594+ com .google .cloud .iam .credentials .v1 .GenerateIdentityBindingAccessTokenResponse >
595+ responseObserver ) {
596+ asyncUnaryCall (
597+ getChannel ()
598+ .newCall (getGenerateIdentityBindingAccessTokenMethodHelper (), getCallOptions ()),
599+ request ,
600+ responseObserver );
601+ }
489602 }
490603
491604 /**
@@ -567,6 +680,24 @@ public com.google.cloud.iam.credentials.v1.SignJwtResponse signJwt(
567680 com .google .cloud .iam .credentials .v1 .SignJwtRequest request ) {
568681 return blockingUnaryCall (getChannel (), getSignJwtMethodHelper (), getCallOptions (), request );
569682 }
683+
684+ /**
685+ *
686+ *
687+ * <pre>
688+ * Exchange a JWT signed by third party identity provider to an OAuth 2.0
689+ * access token
690+ * </pre>
691+ */
692+ public com .google .cloud .iam .credentials .v1 .GenerateIdentityBindingAccessTokenResponse
693+ generateIdentityBindingAccessToken (
694+ com .google .cloud .iam .credentials .v1 .GenerateIdentityBindingAccessTokenRequest request ) {
695+ return blockingUnaryCall (
696+ getChannel (),
697+ getGenerateIdentityBindingAccessTokenMethodHelper (),
698+ getCallOptions (),
699+ request );
700+ }
570701 }
571702
572703 /**
@@ -655,12 +786,31 @@ protected IAMCredentialsFutureStub build(
655786 return futureUnaryCall (
656787 getChannel ().newCall (getSignJwtMethodHelper (), getCallOptions ()), request );
657788 }
789+
790+ /**
791+ *
792+ *
793+ * <pre>
794+ * Exchange a JWT signed by third party identity provider to an OAuth 2.0
795+ * access token
796+ * </pre>
797+ */
798+ public com .google .common .util .concurrent .ListenableFuture <
799+ com .google .cloud .iam .credentials .v1 .GenerateIdentityBindingAccessTokenResponse >
800+ generateIdentityBindingAccessToken (
801+ com .google .cloud .iam .credentials .v1 .GenerateIdentityBindingAccessTokenRequest request ) {
802+ return futureUnaryCall (
803+ getChannel ()
804+ .newCall (getGenerateIdentityBindingAccessTokenMethodHelper (), getCallOptions ()),
805+ request );
806+ }
658807 }
659808
660809 private static final int METHODID_GENERATE_ACCESS_TOKEN = 0 ;
661810 private static final int METHODID_GENERATE_ID_TOKEN = 1 ;
662811 private static final int METHODID_SIGN_BLOB = 2 ;
663812 private static final int METHODID_SIGN_JWT = 3 ;
813+ private static final int METHODID_GENERATE_IDENTITY_BINDING_ACCESS_TOKEN = 4 ;
664814
665815 private static final class MethodHandlers <Req , Resp >
666816 implements io .grpc .stub .ServerCalls .UnaryMethod <Req , Resp >,
@@ -705,6 +855,15 @@ public void invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserv
705855 (io .grpc .stub .StreamObserver <com .google .cloud .iam .credentials .v1 .SignJwtResponse >)
706856 responseObserver );
707857 break ;
858+ case METHODID_GENERATE_IDENTITY_BINDING_ACCESS_TOKEN :
859+ serviceImpl .generateIdentityBindingAccessToken (
860+ (com .google .cloud .iam .credentials .v1 .GenerateIdentityBindingAccessTokenRequest )
861+ request ,
862+ (io .grpc .stub .StreamObserver <
863+ com .google .cloud .iam .credentials .v1
864+ .GenerateIdentityBindingAccessTokenResponse >)
865+ responseObserver );
866+ break ;
708867 default :
709868 throw new AssertionError ();
710869 }
@@ -773,6 +932,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() {
773932 .addMethod (getGenerateIdTokenMethodHelper ())
774933 .addMethod (getSignBlobMethodHelper ())
775934 .addMethod (getSignJwtMethodHelper ())
935+ .addMethod (getGenerateIdentityBindingAccessTokenMethodHelper ())
776936 .build ();
777937 }
778938 }
0 commit comments