-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
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
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
// Copyright 2021 Google LLC | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
// [START cloudchannel_v1_generated_CloudChannelService_LookupOffer_sync] | ||
|
||
package main | ||
|
||
import ( | ||
"context" | ||
|
||
channel "cloud.google.com/go/channel/apiv1" | ||
channelpb "google.golang.org/genproto/googleapis/cloud/channel/v1" | ||
) | ||
|
||
func main() { | ||
ctx := context.Background() | ||
c, err := channel.NewCloudChannelClient(ctx) | ||
if err != nil { | ||
// TODO: Handle error. | ||
} | ||
defer c.Close() | ||
|
||
req := &channelpb.LookupOfferRequest{ | ||
// TODO: Fill request struct fields. | ||
} | ||
resp, err := c.LookupOffer(ctx, req) | ||
if err != nil { | ||
// TODO: Handle error. | ||
} | ||
// TODO: Use resp. | ||
_ = resp | ||
} | ||
|
||
// [END cloudchannel_v1_generated_CloudChannelService_LookupOffer_sync] |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.