Skip to content

Commit 18375e5

Browse files
chore(all): auto-regenerate gapics (#4210)
This is an auto-generated regeneration of the gapic clients by cloud.google.com/go/internal/gapicgen. Once the corresponding genproto PR is submitted, genbot will update this PR with a newer dependency to the newer version of genproto and assign reviewers to this PR. If you have been assigned to review this PR, please: - Ensure that the version of genproto in go.mod has been updated. - Ensure that CI is passing. If it's failing, it requires your manual attention. - Approve and submit this PR if you believe it's ready to ship. Corresponding genproto PR: googleapis/go-genproto#611 Changes: chore(clouddms): migrate clouddms to the PHP microgenerator Committer: @miraleung PiperOrigin-RevId: 377311345 Source-Link: googleapis/googleapis@b52a804 feat(documentai): Move CommonOperationMetadata into a separate proto file for potential reuse. PiperOrigin-RevId: 377114643 Source-Link: googleapis/googleapis@204809d feat(pubsublite): Add Pub/Sub Lite Reservation APIs PiperOrigin-RevId: 377060979 Source-Link: googleapis/googleapis@51d99df
1 parent e188592 commit 18375e5

File tree

29 files changed

+1328
-11
lines changed

29 files changed

+1328
-11
lines changed

clouddms/apiv1/doc.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

documentai/apiv1beta3/doc.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ require (
1717
golang.org/x/text v0.3.6
1818
golang.org/x/tools v0.1.2
1919
google.golang.org/api v0.47.0
20-
google.golang.org/genproto v0.0.0-20210602131652-f16073e35f0c
20+
google.golang.org/genproto v0.0.0-20210603172842-58e84a565dcf
2121
google.golang.org/grpc v1.38.0
2222
google.golang.org/protobuf v1.26.0
2323
)

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -443,8 +443,8 @@ google.golang.org/genproto v0.0.0-20210310155132-4ce2db91004e/go.mod h1:FWY/as6D
443443
google.golang.org/genproto v0.0.0-20210319143718-93e7006c17a6/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
444444
google.golang.org/genproto v0.0.0-20210402141018-6c239bbf2bb1/go.mod h1:9lPAdzaEmUacj36I+k7YKbEc5CXzPIeORRgDAUOu28A=
445445
google.golang.org/genproto v0.0.0-20210513213006-bf773b8c8384/go.mod h1:P3QM42oQyzQSnHPnZ/vqoCdDmzH28fzWByN9asMeM8A=
446-
google.golang.org/genproto v0.0.0-20210602131652-f16073e35f0c h1:wtujag7C+4D6KMoulW9YauvK2lgdvCMS260jsqqBXr0=
447-
google.golang.org/genproto v0.0.0-20210602131652-f16073e35f0c/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0=
446+
google.golang.org/genproto v0.0.0-20210603172842-58e84a565dcf h1:3oVOonZQld/0ddUsMXCnkhem95RnnQEUMZQLJP1s3jQ=
447+
google.golang.org/genproto v0.0.0-20210603172842-58e84a565dcf/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0=
448448
google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c=
449449
google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38=
450450
google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM=

internal/generated/snippets/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@ require (
3232
cloud.google.com/go/pubsublite v0.82.0
3333
cloud.google.com/go/spanner v0.82.0
3434
google.golang.org/api v0.47.0
35-
google.golang.org/genproto v0.0.0-20210601144548-a796c710e9b6
35+
google.golang.org/genproto v0.0.0-20210602131652-f16073e35f0c
3636
)

internal/generated/snippets/go.sum

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,9 @@ google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoA
143143
google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc=
144144
google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo=
145145
google.golang.org/genproto v0.0.0-20210513213006-bf773b8c8384/go.mod h1:P3QM42oQyzQSnHPnZ/vqoCdDmzH28fzWByN9asMeM8A=
146-
google.golang.org/genproto v0.0.0-20210601144548-a796c710e9b6 h1:zWmI+1Z2ZiKs1ceiAn4gjBd1v/d/AuWf/b+bLPe9aNw=
147146
google.golang.org/genproto v0.0.0-20210601144548-a796c710e9b6/go.mod h1:P3QM42oQyzQSnHPnZ/vqoCdDmzH28fzWByN9asMeM8A=
147+
google.golang.org/genproto v0.0.0-20210602131652-f16073e35f0c h1:wtujag7C+4D6KMoulW9YauvK2lgdvCMS260jsqqBXr0=
148+
google.golang.org/genproto v0.0.0-20210602131652-f16073e35f0c/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0=
148149
google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c=
149150
google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg=
150151
google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY=
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
// Copyright 2021 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
// [START pubsublite_v1_generated_AdminService_CreateReservation_sync]
16+
17+
package main
18+
19+
import (
20+
"context"
21+
22+
pubsublite "cloud.google.com/go/pubsublite/apiv1"
23+
pubsublitepb "google.golang.org/genproto/googleapis/cloud/pubsublite/v1"
24+
)
25+
26+
func main() {
27+
ctx := context.Background()
28+
c, err := pubsublite.NewAdminClient(ctx)
29+
if err != nil {
30+
// TODO: Handle error.
31+
}
32+
defer c.Close()
33+
34+
req := &pubsublitepb.CreateReservationRequest{
35+
// TODO: Fill request struct fields.
36+
}
37+
resp, err := c.CreateReservation(ctx, req)
38+
if err != nil {
39+
// TODO: Handle error.
40+
}
41+
// TODO: Use resp.
42+
_ = resp
43+
}
44+
45+
// [END pubsublite_v1_generated_AdminService_CreateReservation_sync]
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
// Copyright 2021 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
// [START pubsublite_v1_generated_AdminService_DeleteReservation_sync]
16+
17+
package main
18+
19+
import (
20+
"context"
21+
22+
pubsublite "cloud.google.com/go/pubsublite/apiv1"
23+
pubsublitepb "google.golang.org/genproto/googleapis/cloud/pubsublite/v1"
24+
)
25+
26+
func main() {
27+
ctx := context.Background()
28+
c, err := pubsublite.NewAdminClient(ctx)
29+
if err != nil {
30+
// TODO: Handle error.
31+
}
32+
defer c.Close()
33+
34+
req := &pubsublitepb.DeleteReservationRequest{
35+
// TODO: Fill request struct fields.
36+
}
37+
err = c.DeleteReservation(ctx, req)
38+
if err != nil {
39+
// TODO: Handle error.
40+
}
41+
}
42+
43+
// [END pubsublite_v1_generated_AdminService_DeleteReservation_sync]
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
// Copyright 2021 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
// [START pubsublite_v1_generated_AdminService_GetReservation_sync]
16+
17+
package main
18+
19+
import (
20+
"context"
21+
22+
pubsublite "cloud.google.com/go/pubsublite/apiv1"
23+
pubsublitepb "google.golang.org/genproto/googleapis/cloud/pubsublite/v1"
24+
)
25+
26+
func main() {
27+
ctx := context.Background()
28+
c, err := pubsublite.NewAdminClient(ctx)
29+
if err != nil {
30+
// TODO: Handle error.
31+
}
32+
defer c.Close()
33+
34+
req := &pubsublitepb.GetReservationRequest{
35+
// TODO: Fill request struct fields.
36+
}
37+
resp, err := c.GetReservation(ctx, req)
38+
if err != nil {
39+
// TODO: Handle error.
40+
}
41+
// TODO: Use resp.
42+
_ = resp
43+
}
44+
45+
// [END pubsublite_v1_generated_AdminService_GetReservation_sync]
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
// Copyright 2021 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
// [START pubsublite_v1_generated_AdminService_ListReservationTopics_sync]
16+
17+
package main
18+
19+
import (
20+
"context"
21+
22+
pubsublite "cloud.google.com/go/pubsublite/apiv1"
23+
"google.golang.org/api/iterator"
24+
pubsublitepb "google.golang.org/genproto/googleapis/cloud/pubsublite/v1"
25+
)
26+
27+
func main() {
28+
ctx := context.Background()
29+
c, err := pubsublite.NewAdminClient(ctx)
30+
if err != nil {
31+
// TODO: Handle error.
32+
}
33+
defer c.Close()
34+
35+
req := &pubsublitepb.ListReservationTopicsRequest{
36+
// TODO: Fill request struct fields.
37+
}
38+
it := c.ListReservationTopics(ctx, req)
39+
for {
40+
resp, err := it.Next()
41+
if err == iterator.Done {
42+
break
43+
}
44+
if err != nil {
45+
// TODO: Handle error.
46+
}
47+
// TODO: Use resp.
48+
_ = resp
49+
}
50+
}
51+
52+
// [END pubsublite_v1_generated_AdminService_ListReservationTopics_sync]

0 commit comments

Comments
 (0)