Skip to content

Commit 7a57aac

Browse files
chore(all): auto-regenerate gapics (#4236)
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#615 Changes: feat(channel): Add/Update API definitions for Cloud Channel API, including * Update descriptions of APIs. * Add additional_bindings to HTTP annotations of Customer related APIs (list/create/get/update/delete). * Add a new LookupOffer RPC and LookupOfferRequest proto. * Add a new enum value LICENSE_CAP_CHANGED to enum EntitlementEvent.Type. PiperOrigin-RevId: 378177991 Source-Link: googleapis/googleapis@97d42c6 feat(container): support for NodeAutoprovisioning ImageType PiperOrigin-RevId: 378163331 Source-Link: googleapis/googleapis@e610c3b chore(debugger): Update clouddebugger_v2 BUILD.bazel for python PiperOrigin-RevId: 378058740 Source-Link: googleapis/googleapis@0778b6c feat!(resourcesettings):Publish Cloud ResourceSettings v1 API PiperOrigin-RevId: 378057924 Source-Link: googleapis/googleapis@255c1a8 feat(dialogflow/cx): support sentiment analysis in bot testing PiperOrigin-RevId: 377947699 Source-Link: googleapis/googleapis@90717db chore(lifesciences): Add package/namespace options for C#, Ruby and PHP. This is a breaking change *only* for those languages, and packages for those languages have not been published yet. PiperOrigin-RevId: 377946883 Source-Link: googleapis/googleapis@3be62a5
1 parent 6ad2306 commit 7a57aac

File tree

14 files changed

+141
-18
lines changed

14 files changed

+141
-18
lines changed

channel/apiv1/cloud_channel_client.go

Lines changed: 54 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

channel/apiv1/cloud_channel_client_example_test.go

Lines changed: 19 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

channel/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.

channel/apiv1/gapic_metadata.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,11 @@
130130
"ListTransferableSkus"
131131
]
132132
},
133+
"LookupOffer": {
134+
"methods": [
135+
"LookupOffer"
136+
]
137+
},
133138
"ProvisionCloudIdentity": {
134139
"methods": [
135140
"ProvisionCloudIdentity"

container/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.

debugger/apiv2/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.

dialogflow/cx/apiv3beta1/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.48.0
20-
google.golang.org/genproto v0.0.0-20210608175058-d8f7434f6428
20+
google.golang.org/genproto v0.0.0-20210608205507-b6d2f5bf0d7d
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
@@ -448,8 +448,8 @@ google.golang.org/genproto v0.0.0-20210402141018-6c239bbf2bb1/go.mod h1:9lPAdzaE
448448
google.golang.org/genproto v0.0.0-20210513213006-bf773b8c8384/go.mod h1:P3QM42oQyzQSnHPnZ/vqoCdDmzH28fzWByN9asMeM8A=
449449
google.golang.org/genproto v0.0.0-20210602131652-f16073e35f0c/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0=
450450
google.golang.org/genproto v0.0.0-20210604141403-392c879c8b08/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0=
451-
google.golang.org/genproto v0.0.0-20210608175058-d8f7434f6428 h1:ITsjBuiO/w/WrKEnQQNVf771ttSDxvlH3cfVloxqKXA=
452-
google.golang.org/genproto v0.0.0-20210608175058-d8f7434f6428/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0=
451+
google.golang.org/genproto v0.0.0-20210608205507-b6d2f5bf0d7d h1:KzwjikDymrEmYYbdyfievTwjEeGlu+OM6oiKBkF3Jfg=
452+
google.golang.org/genproto v0.0.0-20210608205507-b6d2f5bf0d7d/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0=
453453
google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c=
454454
google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38=
455455
google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM=
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 cloudchannel_v1_generated_CloudChannelService_LookupOffer_sync]
16+
17+
package main
18+
19+
import (
20+
"context"
21+
22+
channel "cloud.google.com/go/channel/apiv1"
23+
channelpb "google.golang.org/genproto/googleapis/cloud/channel/v1"
24+
)
25+
26+
func main() {
27+
ctx := context.Background()
28+
c, err := channel.NewCloudChannelClient(ctx)
29+
if err != nil {
30+
// TODO: Handle error.
31+
}
32+
defer c.Close()
33+
34+
req := &channelpb.LookupOfferRequest{
35+
// TODO: Fill request struct fields.
36+
}
37+
resp, err := c.LookupOffer(ctx, req)
38+
if err != nil {
39+
// TODO: Handle error.
40+
}
41+
// TODO: Use resp.
42+
_ = resp
43+
}
44+
45+
// [END cloudchannel_v1_generated_CloudChannelService_LookupOffer_sync]

0 commit comments

Comments
 (0)