diff --git a/WORKSPACE.bazel b/WORKSPACE.bazel index 94dfb77aa..d8da5d092 100644 --- a/WORKSPACE.bazel +++ b/WORKSPACE.bazel @@ -23,9 +23,9 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") # http_archive( name = "com_google_googleapis", - strip_prefix = "googleapis-2bc2029fdf248f25274fe628c95fe638906f9706", - urls = ["https://github.com/googleapis/googleapis/archive/2bc2029fdf248f25274fe628c95fe638906f9706.zip"], - sha256 = "d66ab7f92173b18fb8acb58987f5503007c41fbf01ac9425aab82e4d967cd774" + strip_prefix = "googleapis-1406704ced81daab07a859aa8a870ff39432d370", + urls = ["https://github.com/googleapis/googleapis/archive/1406704ced81daab07a859aa8a870ff39432d370.zip"], + sha256 = "c00bf35bfcb978c7e48782ea9104e2092a552e4cc573db7b768be75331ef0ac6" ) load("@com_google_googleapis//:repository_rules.bzl", "switched_rules_by_language") switched_rules_by_language(name = "com_google_googleapis_imports", grpc = True) @@ -44,9 +44,9 @@ protobuf_deps() http_archive( name = "bazel_features", - sha256 = "06f02b97b6badb3227df2141a4b4622272cdcd2951526f40a888ab5f43897f14", - strip_prefix = "bazel_features-1.9.0", - url = "https://github.com/bazel-contrib/bazel_features/releases/download/v1.9.0/bazel_features-v1.9.0.tar.gz", + sha256 = "d7787da289a7fb497352211ad200ec9f698822a9e0757a4976fd9f713ff372b3", + strip_prefix = "bazel_features-1.9.1", + url = "https://github.com/bazel-contrib/bazel_features/releases/download/v1.9.1/bazel_features-v1.9.1.tar.gz", ) load("@bazel_features//:deps.bzl", "bazel_features_deps") bazel_features_deps() diff --git a/client/compliance_client_example_test.go b/client/compliance_client_example_test.go index e780a77c5..30dd2b4b9 100644 --- a/client/compliance_client_example_test.go +++ b/client/compliance_client_example_test.go @@ -339,6 +339,12 @@ func ExampleComplianceClient_ListLocations() { } // TODO: Use resp. _ = resp + + // If you need to access the underlying RPC response, + // you can do so by casting the `Response` as below. + // Otherwise, remove this line. Only populated after + // first call to Next(). Not safe for concurrent access. + _ = it.Response.(*locationpb.ListLocationsResponse) } } @@ -470,6 +476,12 @@ func ExampleComplianceClient_ListOperations() { } // TODO: Use resp. _ = resp + + // If you need to access the underlying RPC response, + // you can do so by casting the `Response` as below. + // Otherwise, remove this line. Only populated after + // first call to Next(). Not safe for concurrent access. + _ = it.Response.(*longrunningpb.ListOperationsResponse) } } diff --git a/client/echo_client_example_test.go b/client/echo_client_example_test.go index 77c6cf0dd..878750e10 100644 --- a/client/echo_client_example_test.go +++ b/client/echo_client_example_test.go @@ -205,6 +205,12 @@ func ExampleEchoClient_PagedExpand() { } // TODO: Use resp. _ = resp + + // If you need to access the underlying RPC response, + // you can do so by casting the `Response` as below. + // Otherwise, remove this line. Only populated after + // first call to Next(). Not safe for concurrent access. + _ = it.Response.(*genprotopb.PagedExpandResponse) } } @@ -236,6 +242,12 @@ func ExampleEchoClient_PagedExpandLegacy() { } // TODO: Use resp. _ = resp + + // If you need to access the underlying RPC response, + // you can do so by casting the `Response` as below. + // Otherwise, remove this line. Only populated after + // first call to Next(). Not safe for concurrent access. + _ = it.Response.(*genprotopb.PagedExpandResponse) } } @@ -267,6 +279,12 @@ func ExampleEchoClient_PagedExpandLegacyMapped() { } // TODO: Use resp. _ = resp + + // If you need to access the underlying RPC response, + // you can do so by casting the `Response` as below. + // Otherwise, remove this line. Only populated after + // first call to Next(). Not safe for concurrent access. + _ = it.Response.(*genprotopb.PagedExpandLegacyMappedResponse) } } @@ -328,6 +346,12 @@ func ExampleEchoClient_ListLocations() { } // TODO: Use resp. _ = resp + + // If you need to access the underlying RPC response, + // you can do so by casting the `Response` as below. + // Otherwise, remove this line. Only populated after + // first call to Next(). Not safe for concurrent access. + _ = it.Response.(*locationpb.ListLocationsResponse) } } @@ -459,6 +483,12 @@ func ExampleEchoClient_ListOperations() { } // TODO: Use resp. _ = resp + + // If you need to access the underlying RPC response, + // you can do so by casting the `Response` as below. + // Otherwise, remove this line. Only populated after + // first call to Next(). Not safe for concurrent access. + _ = it.Response.(*longrunningpb.ListOperationsResponse) } } diff --git a/client/identity_client_example_test.go b/client/identity_client_example_test.go index 6cd152bb2..2e5154d89 100644 --- a/client/identity_client_example_test.go +++ b/client/identity_client_example_test.go @@ -162,6 +162,12 @@ func ExampleIdentityClient_ListUsers() { } // TODO: Use resp. _ = resp + + // If you need to access the underlying RPC response, + // you can do so by casting the `Response` as below. + // Otherwise, remove this line. Only populated after + // first call to Next(). Not safe for concurrent access. + _ = it.Response.(*genprotopb.ListUsersResponse) } } @@ -218,6 +224,12 @@ func ExampleIdentityClient_ListLocations() { } // TODO: Use resp. _ = resp + + // If you need to access the underlying RPC response, + // you can do so by casting the `Response` as below. + // Otherwise, remove this line. Only populated after + // first call to Next(). Not safe for concurrent access. + _ = it.Response.(*locationpb.ListLocationsResponse) } } @@ -349,6 +361,12 @@ func ExampleIdentityClient_ListOperations() { } // TODO: Use resp. _ = resp + + // If you need to access the underlying RPC response, + // you can do so by casting the `Response` as below. + // Otherwise, remove this line. Only populated after + // first call to Next(). Not safe for concurrent access. + _ = it.Response.(*longrunningpb.ListOperationsResponse) } } diff --git a/client/messaging_client_example_test.go b/client/messaging_client_example_test.go index 1ee5d88fe..6d8cfe9c2 100644 --- a/client/messaging_client_example_test.go +++ b/client/messaging_client_example_test.go @@ -276,6 +276,12 @@ func ExampleMessagingClient_ListBlurbs() { } // TODO: Use resp. _ = resp + + // If you need to access the underlying RPC response, + // you can do so by casting the `Response` as below. + // Otherwise, remove this line. Only populated after + // first call to Next(). Not safe for concurrent access. + _ = it.Response.(*genprotopb.ListBlurbsResponse) } } @@ -307,6 +313,12 @@ func ExampleMessagingClient_ListRooms() { } // TODO: Use resp. _ = resp + + // If you need to access the underlying RPC response, + // you can do so by casting the `Response` as below. + // Otherwise, remove this line. Only populated after + // first call to Next(). Not safe for concurrent access. + _ = it.Response.(*genprotopb.ListRoomsResponse) } } @@ -418,6 +430,12 @@ func ExampleMessagingClient_ListLocations() { } // TODO: Use resp. _ = resp + + // If you need to access the underlying RPC response, + // you can do so by casting the `Response` as below. + // Otherwise, remove this line. Only populated after + // first call to Next(). Not safe for concurrent access. + _ = it.Response.(*locationpb.ListLocationsResponse) } } @@ -549,6 +567,12 @@ func ExampleMessagingClient_ListOperations() { } // TODO: Use resp. _ = resp + + // If you need to access the underlying RPC response, + // you can do so by casting the `Response` as below. + // Otherwise, remove this line. Only populated after + // first call to Next(). Not safe for concurrent access. + _ = it.Response.(*longrunningpb.ListOperationsResponse) } } diff --git a/client/sequence_client_example_test.go b/client/sequence_client_example_test.go index 5f88e42e6..e063efc5c 100644 --- a/client/sequence_client_example_test.go +++ b/client/sequence_client_example_test.go @@ -212,6 +212,12 @@ func ExampleSequenceClient_ListLocations() { } // TODO: Use resp. _ = resp + + // If you need to access the underlying RPC response, + // you can do so by casting the `Response` as below. + // Otherwise, remove this line. Only populated after + // first call to Next(). Not safe for concurrent access. + _ = it.Response.(*locationpb.ListLocationsResponse) } } @@ -343,6 +349,12 @@ func ExampleSequenceClient_ListOperations() { } // TODO: Use resp. _ = resp + + // If you need to access the underlying RPC response, + // you can do so by casting the `Response` as below. + // Otherwise, remove this line. Only populated after + // first call to Next(). Not safe for concurrent access. + _ = it.Response.(*longrunningpb.ListOperationsResponse) } } diff --git a/client/testing_client_example_test.go b/client/testing_client_example_test.go index f60465071..10272489e 100644 --- a/client/testing_client_example_test.go +++ b/client/testing_client_example_test.go @@ -185,6 +185,12 @@ func ExampleTestingClient_ListSessions() { } // TODO: Use resp. _ = resp + + // If you need to access the underlying RPC response, + // you can do so by casting the `Response` as below. + // Otherwise, remove this line. Only populated after + // first call to Next(). Not safe for concurrent access. + _ = it.Response.(*genprotopb.ListSessionsResponse) } } @@ -216,6 +222,12 @@ func ExampleTestingClient_ListTests() { } // TODO: Use resp. _ = resp + + // If you need to access the underlying RPC response, + // you can do so by casting the `Response` as below. + // Otherwise, remove this line. Only populated after + // first call to Next(). Not safe for concurrent access. + _ = it.Response.(*genprotopb.ListTestsResponse) } } @@ -297,6 +309,12 @@ func ExampleTestingClient_ListLocations() { } // TODO: Use resp. _ = resp + + // If you need to access the underlying RPC response, + // you can do so by casting the `Response` as below. + // Otherwise, remove this line. Only populated after + // first call to Next(). Not safe for concurrent access. + _ = it.Response.(*locationpb.ListLocationsResponse) } } @@ -428,6 +446,12 @@ func ExampleTestingClient_ListOperations() { } // TODO: Use resp. _ = resp + + // If you need to access the underlying RPC response, + // you can do so by casting the `Response` as below. + // Otherwise, remove this line. Only populated after + // first call to Next(). Not safe for concurrent access. + _ = it.Response.(*longrunningpb.ListOperationsResponse) } } diff --git a/go.mod b/go.mod index 26a74efb3..14905c026 100644 --- a/go.mod +++ b/go.mod @@ -16,16 +16,16 @@ require ( github.com/spf13/viper v1.18.2 golang.org/x/oauth2 v0.18.0 golang.org/x/sync v0.6.0 - google.golang.org/api v0.171.0 - google.golang.org/genproto v0.0.0-20240318140521-94a12d6c2237 - google.golang.org/genproto/googleapis/api v0.0.0-20240318140521-94a12d6c2237 - google.golang.org/genproto/googleapis/rpc v0.0.0-20240318140521-94a12d6c2237 + google.golang.org/api v0.172.0 + google.golang.org/genproto v0.0.0-20240401170217-c3f982113cda + google.golang.org/genproto/googleapis/api v0.0.0-20240401170217-c3f982113cda + google.golang.org/genproto/googleapis/rpc v0.0.0-20240401170217-c3f982113cda google.golang.org/grpc v1.62.1 google.golang.org/protobuf v1.33.0 ) require ( - cloud.google.com/go v0.112.1 // indirect + cloud.google.com/go v0.112.2 // indirect cloud.google.com/go/compute v1.25.1 // indirect cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/felixge/httpsnoop v1.0.4 // indirect diff --git a/go.sum b/go.sum index aa3b6b878..63dd32d29 100644 --- a/go.sum +++ b/go.sum @@ -1,6 +1,6 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= -cloud.google.com/go v0.112.1 h1:uJSeirPke5UNZHIb4SxfZklVSiWWVqW4oXlETwZziwM= -cloud.google.com/go v0.112.1/go.mod h1:+Vbu+Y1UU+I1rjmzeMOb/8RfkKJK2Gyxi1X6jJCZLo4= +cloud.google.com/go v0.112.2 h1:ZaGT6LiG7dBzi6zNOvVZwacaXlmf3lRqnC4DQzqyRQw= +cloud.google.com/go v0.112.2/go.mod h1:iEqjp//KquGIJV/m+Pk3xecgKNhV+ry+vVTsy4TbDms= cloud.google.com/go/compute v1.25.1 h1:ZRpHJedLtTpKgr3RV1Fx23NuaAEN1Zfx9hw1u4aJdjU= cloud.google.com/go/compute v1.25.1/go.mod h1:oopOIR53ly6viBYxaDhBfJwzUAxf1zE//uf3IB011ls= cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= @@ -203,8 +203,8 @@ golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtn golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.171.0 h1:w174hnBPqut76FzW5Qaupt7zY8Kql6fiVjgys4f58sU= -google.golang.org/api v0.171.0/go.mod h1:Hnq5AHm4OTMt2BUVjael2CWZFD6vksJdWCWiUAmjC9o= +google.golang.org/api v0.172.0 h1:/1OcMZGPmW1rX2LCu2CmGUD1KXK1+pfzxotxyRUCCdk= +google.golang.org/api v0.172.0/go.mod h1:+fJZq6QXWfa9pXhnIzsjx4yI22d4aI9ZpLb58gvXjis= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.6.8 h1:IhEN5q69dyKagZPYMSdIjS2HqprW324FRQZJcGqPAsM= @@ -213,12 +213,12 @@ google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoA google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= google.golang.org/genproto v0.0.0-20201008135153-289734e2e40c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20240318140521-94a12d6c2237 h1:PgNlNSx2Nq2/j4juYzQBG0/Zdr+WP4z5N01Vk4VYBCY= -google.golang.org/genproto v0.0.0-20240318140521-94a12d6c2237/go.mod h1:9sVD8c25Af3p0rGs7S7LLsxWKFiJt/65LdSyqXBkX/Y= -google.golang.org/genproto/googleapis/api v0.0.0-20240318140521-94a12d6c2237 h1:RFiFrvy37/mpSpdySBDrUdipW/dHwsRwh3J3+A9VgT4= -google.golang.org/genproto/googleapis/api v0.0.0-20240318140521-94a12d6c2237/go.mod h1:Z5Iiy3jtmioajWHDGFk7CeugTyHtPvMHA4UTmUkyalE= -google.golang.org/genproto/googleapis/rpc v0.0.0-20240318140521-94a12d6c2237 h1:NnYq6UN9ReLM9/Y01KWNOWyI5xQ9kbIms5GGJVwS/Yc= -google.golang.org/genproto/googleapis/rpc v0.0.0-20240318140521-94a12d6c2237/go.mod h1:WtryC6hu0hhx87FDGxWCDptyssuo68sk10vYjF+T9fY= +google.golang.org/genproto v0.0.0-20240401170217-c3f982113cda h1:wu/KJm9KJwpfHWhkkZGohVC6KRrc1oJNr4jwtQMOQXw= +google.golang.org/genproto v0.0.0-20240401170217-c3f982113cda/go.mod h1:g2LLCvCeCSir/JJSWosk19BR4NVxGqHUC6rxIRsd7Aw= +google.golang.org/genproto/googleapis/api v0.0.0-20240401170217-c3f982113cda h1:b6F6WIV4xHHD0FA4oIyzU6mHWg2WI2X1RBehwa5QN38= +google.golang.org/genproto/googleapis/api v0.0.0-20240401170217-c3f982113cda/go.mod h1:AHcE/gZH76Bk/ROZhQphlRoWo5xKDEtz3eVEO1LfA8c= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240401170217-c3f982113cda h1:LI5DOvAxUPMv/50agcLLoo+AdWc1irS9Rzz4vPuD1V4= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240401170217-c3f982113cda/go.mod h1:WtryC6hu0hhx87FDGxWCDptyssuo68sk10vYjF+T9fY= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= diff --git a/renovate.json b/renovate.json index dbb6c827d..ccc6a8909 100644 --- a/renovate.json +++ b/renovate.json @@ -10,6 +10,12 @@ "bazel": { "managerBranchPrefix": "bazel-" }, + "packageRules": [ + { + "matchPackagePatterns": ["com_google_protobuf"], + "enabled": false + } + ], "golang": { "postUpdateOptions": [ "gomodTidy"