Skip to content

Commit 6ca0599

Browse files
ldetmercloud-java-botJoeWang1127
authored
deps: update grpc to 1.70.0 (missed update) (#3658)
this should have gone with PR #3641 --------- Co-authored-by: cloud-java-bot <[email protected]> Co-authored-by: JoeWang1127 <[email protected]>
1 parent 0ddf073 commit 6ca0599

File tree

13 files changed

+1319
-2
lines changed

13 files changed

+1319
-2
lines changed

.cloudbuild/library_generation/library_generation.Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ FROM docker.io/library/python:3.13.2-alpine3.20@sha256:816feb29731cdee64b15b0ae9
5151

5252
ARG OWLBOT_CLI_COMMITTISH=3a68a9c0de318784b3aefadcc502a6521b3f1bc5
5353
ARG PROTOC_VERSION=25.5
54-
ARG GRPC_VERSION=1.69.1
54+
ARG GRPC_VERSION=1.70.0
5555
ARG JAVA_FORMAT_VERSION=1.7
5656
ENV HOME=/home
5757
ENV OS_ARCHITECTURE="linux-x86_64"

gapic-generator-java-pom-parent/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<!-- External dependencies, especially gRPC and Protobuf version, should be
2727
consistent across modules in this repository -->
2828
<javax.annotation-api.version>1.3.2</javax.annotation-api.version>
29-
<grpc.version>1.69.1</grpc.version>
29+
<grpc.version>1.70.0</grpc.version>
3030
<google.auth.version>1.32.1</google.auth.version>
3131
<google.http-client.version>1.46.1</google.http-client.version>
3232
<gson.version>2.12.1</gson.version>

java-common-protos/grpc-google-common-protos/src/main/java/com/google/cloud/location/LocationsGrpc.java

+61
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,19 @@ public LocationsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOp
134134
return LocationsStub.newStub(factory, channel);
135135
}
136136

137+
/** Creates a new blocking-style stub that supports all types of calls on the service */
138+
public static LocationsBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) {
139+
io.grpc.stub.AbstractStub.StubFactory<LocationsBlockingV2Stub> factory =
140+
new io.grpc.stub.AbstractStub.StubFactory<LocationsBlockingV2Stub>() {
141+
@java.lang.Override
142+
public LocationsBlockingV2Stub newStub(
143+
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
144+
return new LocationsBlockingV2Stub(channel, callOptions);
145+
}
146+
};
147+
return LocationsBlockingV2Stub.newStub(factory, channel);
148+
}
149+
137150
/**
138151
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
139152
*/
@@ -282,6 +295,54 @@ public void getLocation(
282295
* [Location.metadata][google.cloud.location.Location.metadata] field.
283296
* </pre>
284297
*/
298+
public static final class LocationsBlockingV2Stub
299+
extends io.grpc.stub.AbstractBlockingStub<LocationsBlockingV2Stub> {
300+
private LocationsBlockingV2Stub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
301+
super(channel, callOptions);
302+
}
303+
304+
@java.lang.Override
305+
protected LocationsBlockingV2Stub build(
306+
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
307+
return new LocationsBlockingV2Stub(channel, callOptions);
308+
}
309+
310+
/**
311+
*
312+
*
313+
* <pre>
314+
* Lists information about the supported locations for this service.
315+
* </pre>
316+
*/
317+
public com.google.cloud.location.ListLocationsResponse listLocations(
318+
com.google.cloud.location.ListLocationsRequest request) {
319+
return io.grpc.stub.ClientCalls.blockingUnaryCall(
320+
getChannel(), getListLocationsMethod(), getCallOptions(), request);
321+
}
322+
323+
/**
324+
*
325+
*
326+
* <pre>
327+
* Gets information about a location.
328+
* </pre>
329+
*/
330+
public com.google.cloud.location.Location getLocation(
331+
com.google.cloud.location.GetLocationRequest request) {
332+
return io.grpc.stub.ClientCalls.blockingUnaryCall(
333+
getChannel(), getGetLocationMethod(), getCallOptions(), request);
334+
}
335+
}
336+
337+
/**
338+
* A stub to allow clients to do limited synchronous rpc calls to service Locations.
339+
*
340+
* <pre>
341+
* An abstract interface that provides location-related information for
342+
* a service. Service-specific metadata is provided through the
343+
* [Location.metadata][google.cloud.location.Location.metadata] field.
344+
* </pre>
345+
*/
285346
public static final class LocationsBlockingStub
286347
extends io.grpc.stub.AbstractBlockingStub<LocationsBlockingStub> {
287348
private LocationsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {

java-common-protos/grpc-google-common-protos/src/main/java/com/google/longrunning/OperationsGrpc.java

+129
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,19 @@ public OperationsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callO
262262
return OperationsStub.newStub(factory, channel);
263263
}
264264

265+
/** Creates a new blocking-style stub that supports all types of calls on the service */
266+
public static OperationsBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) {
267+
io.grpc.stub.AbstractStub.StubFactory<OperationsBlockingV2Stub> factory =
268+
new io.grpc.stub.AbstractStub.StubFactory<OperationsBlockingV2Stub>() {
269+
@java.lang.Override
270+
public OperationsBlockingV2Stub newStub(
271+
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
272+
return new OperationsBlockingV2Stub(channel, callOptions);
273+
}
274+
};
275+
return OperationsBlockingV2Stub.newStub(factory, channel);
276+
}
277+
265278
/**
266279
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
267280
*/
@@ -568,6 +581,122 @@ public void waitOperation(
568581
* developers can have a consistent client experience.
569582
* </pre>
570583
*/
584+
public static final class OperationsBlockingV2Stub
585+
extends io.grpc.stub.AbstractBlockingStub<OperationsBlockingV2Stub> {
586+
private OperationsBlockingV2Stub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
587+
super(channel, callOptions);
588+
}
589+
590+
@java.lang.Override
591+
protected OperationsBlockingV2Stub build(
592+
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
593+
return new OperationsBlockingV2Stub(channel, callOptions);
594+
}
595+
596+
/**
597+
*
598+
*
599+
* <pre>
600+
* Lists operations that match the specified filter in the request. If the
601+
* server doesn't support this method, it returns `UNIMPLEMENTED`.
602+
* </pre>
603+
*/
604+
public com.google.longrunning.ListOperationsResponse listOperations(
605+
com.google.longrunning.ListOperationsRequest request) {
606+
return io.grpc.stub.ClientCalls.blockingUnaryCall(
607+
getChannel(), getListOperationsMethod(), getCallOptions(), request);
608+
}
609+
610+
/**
611+
*
612+
*
613+
* <pre>
614+
* Gets the latest state of a long-running operation. Clients can use this
615+
* method to poll the operation result at intervals as recommended by the API
616+
* service.
617+
* </pre>
618+
*/
619+
public com.google.longrunning.Operation getOperation(
620+
com.google.longrunning.GetOperationRequest request) {
621+
return io.grpc.stub.ClientCalls.blockingUnaryCall(
622+
getChannel(), getGetOperationMethod(), getCallOptions(), request);
623+
}
624+
625+
/**
626+
*
627+
*
628+
* <pre>
629+
* Deletes a long-running operation. This method indicates that the client is
630+
* no longer interested in the operation result. It does not cancel the
631+
* operation. If the server doesn't support this method, it returns
632+
* `google.rpc.Code.UNIMPLEMENTED`.
633+
* </pre>
634+
*/
635+
public com.google.protobuf.Empty deleteOperation(
636+
com.google.longrunning.DeleteOperationRequest request) {
637+
return io.grpc.stub.ClientCalls.blockingUnaryCall(
638+
getChannel(), getDeleteOperationMethod(), getCallOptions(), request);
639+
}
640+
641+
/**
642+
*
643+
*
644+
* <pre>
645+
* Starts asynchronous cancellation on a long-running operation. The server
646+
* makes a best effort to cancel the operation, but success is not
647+
* guaranteed. If the server doesn't support this method, it returns
648+
* `google.rpc.Code.UNIMPLEMENTED`. Clients can use
649+
* [Operations.GetOperation][google.longrunning.Operations.GetOperation] or
650+
* other methods to check whether the cancellation succeeded or whether the
651+
* operation completed despite cancellation. On successful cancellation,
652+
* the operation is not deleted; instead, it becomes an operation with
653+
* an [Operation.error][google.longrunning.Operation.error] value with a
654+
* [google.rpc.Status.code][google.rpc.Status.code] of `1`, corresponding to
655+
* `Code.CANCELLED`.
656+
* </pre>
657+
*/
658+
public com.google.protobuf.Empty cancelOperation(
659+
com.google.longrunning.CancelOperationRequest request) {
660+
return io.grpc.stub.ClientCalls.blockingUnaryCall(
661+
getChannel(), getCancelOperationMethod(), getCallOptions(), request);
662+
}
663+
664+
/**
665+
*
666+
*
667+
* <pre>
668+
* Waits until the specified long-running operation is done or reaches at most
669+
* a specified timeout, returning the latest state. If the operation is
670+
* already done, the latest state is immediately returned. If the timeout
671+
* specified is greater than the default HTTP/RPC timeout, the HTTP/RPC
672+
* timeout is used. If the server does not support this method, it returns
673+
* `google.rpc.Code.UNIMPLEMENTED`.
674+
* Note that this method is on a best-effort basis. It may return the latest
675+
* state before the specified timeout (including immediately), meaning even an
676+
* immediate response is no guarantee that the operation is done.
677+
* </pre>
678+
*/
679+
public com.google.longrunning.Operation waitOperation(
680+
com.google.longrunning.WaitOperationRequest request) {
681+
return io.grpc.stub.ClientCalls.blockingUnaryCall(
682+
getChannel(), getWaitOperationMethod(), getCallOptions(), request);
683+
}
684+
}
685+
686+
/**
687+
* A stub to allow clients to do limited synchronous rpc calls to service Operations.
688+
*
689+
* <pre>
690+
* Manages long-running operations with an API service.
691+
* When an API method normally takes long time to complete, it can be designed
692+
* to return [Operation][google.longrunning.Operation] to the client, and the
693+
* client can use this interface to receive the real response asynchronously by
694+
* polling the operation resource, or pass the operation resource to another API
695+
* (such as Pub/Sub API) to receive the response. Any API service that returns
696+
* long-running operations should implement the `Operations` interface so
697+
* developers can have a consistent client experience.
698+
* </pre>
699+
*/
571700
public static final class OperationsBlockingStub
572701
extends io.grpc.stub.AbstractBlockingStub<OperationsBlockingStub> {
573702
private OperationsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {

java-iam/grpc-google-iam-v1/src/main/java/com/google/iam/v1/IAMPolicyGrpc.java

+96
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,19 @@ public IAMPolicyStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOp
183183
return IAMPolicyStub.newStub(factory, channel);
184184
}
185185

186+
/** Creates a new blocking-style stub that supports all types of calls on the service */
187+
public static IAMPolicyBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) {
188+
io.grpc.stub.AbstractStub.StubFactory<IAMPolicyBlockingV2Stub> factory =
189+
new io.grpc.stub.AbstractStub.StubFactory<IAMPolicyBlockingV2Stub>() {
190+
@java.lang.Override
191+
public IAMPolicyBlockingV2Stub newStub(
192+
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
193+
return new IAMPolicyBlockingV2Stub(channel, callOptions);
194+
}
195+
};
196+
return IAMPolicyBlockingV2Stub.newStub(factory, channel);
197+
}
198+
186199
/**
187200
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
188201
*/
@@ -439,6 +452,89 @@ public void testIamPermissions(
439452
* attached.
440453
* </pre>
441454
*/
455+
public static final class IAMPolicyBlockingV2Stub
456+
extends io.grpc.stub.AbstractBlockingStub<IAMPolicyBlockingV2Stub> {
457+
private IAMPolicyBlockingV2Stub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
458+
super(channel, callOptions);
459+
}
460+
461+
@java.lang.Override
462+
protected IAMPolicyBlockingV2Stub build(
463+
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
464+
return new IAMPolicyBlockingV2Stub(channel, callOptions);
465+
}
466+
467+
/**
468+
*
469+
*
470+
* <pre>
471+
* Sets the access control policy on the specified resource. Replaces any
472+
* existing policy.
473+
* Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
474+
* </pre>
475+
*/
476+
public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) {
477+
return io.grpc.stub.ClientCalls.blockingUnaryCall(
478+
getChannel(), getSetIamPolicyMethod(), getCallOptions(), request);
479+
}
480+
481+
/**
482+
*
483+
*
484+
* <pre>
485+
* Gets the access control policy for a resource.
486+
* Returns an empty policy if the resource exists and does not have a policy
487+
* set.
488+
* </pre>
489+
*/
490+
public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) {
491+
return io.grpc.stub.ClientCalls.blockingUnaryCall(
492+
getChannel(), getGetIamPolicyMethod(), getCallOptions(), request);
493+
}
494+
495+
/**
496+
*
497+
*
498+
* <pre>
499+
* Returns permissions that a caller has on the specified resource.
500+
* If the resource does not exist, this will return an empty set of
501+
* permissions, not a `NOT_FOUND` error.
502+
* Note: This operation is designed to be used for building permission-aware
503+
* UIs and command-line tools, not for authorization checking. This operation
504+
* may "fail open" without warning.
505+
* </pre>
506+
*/
507+
public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions(
508+
com.google.iam.v1.TestIamPermissionsRequest request) {
509+
return io.grpc.stub.ClientCalls.blockingUnaryCall(
510+
getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request);
511+
}
512+
}
513+
514+
/**
515+
* A stub to allow clients to do limited synchronous rpc calls to service IAMPolicy.
516+
*
517+
* <pre>
518+
* API Overview
519+
* Manages Identity and Access Management (IAM) policies.
520+
* Any implementation of an API that offers access control features
521+
* implements the google.iam.v1.IAMPolicy interface.
522+
* ## Data model
523+
* Access control is applied when a principal (user or service account), takes
524+
* some action on a resource exposed by a service. Resources, identified by
525+
* URI-like names, are the unit of access control specification. Service
526+
* implementations can choose the granularity of access control and the
527+
* supported permissions for their resources.
528+
* For example one database service may allow access control to be
529+
* specified only at the Table level, whereas another might allow access control
530+
* to also be specified at the Column level.
531+
* ## Policy Structure
532+
* See google.iam.v1.Policy
533+
* This is intentionally not a CRUD style API because access control policies
534+
* are created and deleted implicitly with the resources to which they are
535+
* attached.
536+
* </pre>
537+
*/
442538
public static final class IAMPolicyBlockingStub
443539
extends io.grpc.stub.AbstractBlockingStub<IAMPolicyBlockingStub> {
444540
private IAMPolicyBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {

0 commit comments

Comments
 (0)