blob: 660d9dc36cde05090432449ae5cf47b119228fc3 [file] [log] [blame]
// Copyright 2022 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
//
// https://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.
// Code generated by protoc-gen-go_gapic. DO NOT EDIT.
package stitcher_test
import (
"context"
stitcher "cloud.google.com/go/video/stitcher/apiv1"
"google.golang.org/api/iterator"
stitcherpb "google.golang.org/genproto/googleapis/cloud/video/stitcher/v1"
)
func ExampleNewVideoStitcherClient() {
ctx := context.Background()
c, err := stitcher.NewVideoStitcherClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
// TODO: Use client.
_ = c
}
func ExampleVideoStitcherClient_CreateCdnKey() {
ctx := context.Background()
c, err := stitcher.NewVideoStitcherClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &stitcherpb.CreateCdnKeyRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/video/stitcher/v1#CreateCdnKeyRequest.
}
resp, err := c.CreateCdnKey(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func ExampleVideoStitcherClient_ListCdnKeys() {
ctx := context.Background()
c, err := stitcher.NewVideoStitcherClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &stitcherpb.ListCdnKeysRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/video/stitcher/v1#ListCdnKeysRequest.
}
it := c.ListCdnKeys(ctx, req)
for {
resp, err := it.Next()
if err == iterator.Done {
break
}
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
}
func ExampleVideoStitcherClient_GetCdnKey() {
ctx := context.Background()
c, err := stitcher.NewVideoStitcherClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &stitcherpb.GetCdnKeyRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/video/stitcher/v1#GetCdnKeyRequest.
}
resp, err := c.GetCdnKey(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func ExampleVideoStitcherClient_DeleteCdnKey() {
ctx := context.Background()
c, err := stitcher.NewVideoStitcherClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &stitcherpb.DeleteCdnKeyRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/video/stitcher/v1#DeleteCdnKeyRequest.
}
err = c.DeleteCdnKey(ctx, req)
if err != nil {
// TODO: Handle error.
}
}
func ExampleVideoStitcherClient_UpdateCdnKey() {
ctx := context.Background()
c, err := stitcher.NewVideoStitcherClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &stitcherpb.UpdateCdnKeyRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/video/stitcher/v1#UpdateCdnKeyRequest.
}
resp, err := c.UpdateCdnKey(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func ExampleVideoStitcherClient_CreateVodSession() {
ctx := context.Background()
c, err := stitcher.NewVideoStitcherClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &stitcherpb.CreateVodSessionRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/video/stitcher/v1#CreateVodSessionRequest.
}
resp, err := c.CreateVodSession(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func ExampleVideoStitcherClient_GetVodSession() {
ctx := context.Background()
c, err := stitcher.NewVideoStitcherClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &stitcherpb.GetVodSessionRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/video/stitcher/v1#GetVodSessionRequest.
}
resp, err := c.GetVodSession(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func ExampleVideoStitcherClient_ListVodStitchDetails() {
ctx := context.Background()
c, err := stitcher.NewVideoStitcherClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &stitcherpb.ListVodStitchDetailsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/video/stitcher/v1#ListVodStitchDetailsRequest.
}
it := c.ListVodStitchDetails(ctx, req)
for {
resp, err := it.Next()
if err == iterator.Done {
break
}
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
}
func ExampleVideoStitcherClient_GetVodStitchDetail() {
ctx := context.Background()
c, err := stitcher.NewVideoStitcherClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &stitcherpb.GetVodStitchDetailRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/video/stitcher/v1#GetVodStitchDetailRequest.
}
resp, err := c.GetVodStitchDetail(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func ExampleVideoStitcherClient_ListVodAdTagDetails() {
ctx := context.Background()
c, err := stitcher.NewVideoStitcherClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &stitcherpb.ListVodAdTagDetailsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/video/stitcher/v1#ListVodAdTagDetailsRequest.
}
it := c.ListVodAdTagDetails(ctx, req)
for {
resp, err := it.Next()
if err == iterator.Done {
break
}
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
}
func ExampleVideoStitcherClient_GetVodAdTagDetail() {
ctx := context.Background()
c, err := stitcher.NewVideoStitcherClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &stitcherpb.GetVodAdTagDetailRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/video/stitcher/v1#GetVodAdTagDetailRequest.
}
resp, err := c.GetVodAdTagDetail(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func ExampleVideoStitcherClient_ListLiveAdTagDetails() {
ctx := context.Background()
c, err := stitcher.NewVideoStitcherClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &stitcherpb.ListLiveAdTagDetailsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/video/stitcher/v1#ListLiveAdTagDetailsRequest.
}
it := c.ListLiveAdTagDetails(ctx, req)
for {
resp, err := it.Next()
if err == iterator.Done {
break
}
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
}
func ExampleVideoStitcherClient_GetLiveAdTagDetail() {
ctx := context.Background()
c, err := stitcher.NewVideoStitcherClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &stitcherpb.GetLiveAdTagDetailRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/video/stitcher/v1#GetLiveAdTagDetailRequest.
}
resp, err := c.GetLiveAdTagDetail(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func ExampleVideoStitcherClient_CreateSlate() {
ctx := context.Background()
c, err := stitcher.NewVideoStitcherClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &stitcherpb.CreateSlateRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/video/stitcher/v1#CreateSlateRequest.
}
resp, err := c.CreateSlate(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func ExampleVideoStitcherClient_ListSlates() {
ctx := context.Background()
c, err := stitcher.NewVideoStitcherClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &stitcherpb.ListSlatesRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/video/stitcher/v1#ListSlatesRequest.
}
it := c.ListSlates(ctx, req)
for {
resp, err := it.Next()
if err == iterator.Done {
break
}
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
}
func ExampleVideoStitcherClient_GetSlate() {
ctx := context.Background()
c, err := stitcher.NewVideoStitcherClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &stitcherpb.GetSlateRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/video/stitcher/v1#GetSlateRequest.
}
resp, err := c.GetSlate(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func ExampleVideoStitcherClient_UpdateSlate() {
ctx := context.Background()
c, err := stitcher.NewVideoStitcherClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &stitcherpb.UpdateSlateRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/video/stitcher/v1#UpdateSlateRequest.
}
resp, err := c.UpdateSlate(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func ExampleVideoStitcherClient_DeleteSlate() {
ctx := context.Background()
c, err := stitcher.NewVideoStitcherClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &stitcherpb.DeleteSlateRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/video/stitcher/v1#DeleteSlateRequest.
}
err = c.DeleteSlate(ctx, req)
if err != nil {
// TODO: Handle error.
}
}
func ExampleVideoStitcherClient_CreateLiveSession() {
ctx := context.Background()
c, err := stitcher.NewVideoStitcherClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &stitcherpb.CreateLiveSessionRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/video/stitcher/v1#CreateLiveSessionRequest.
}
resp, err := c.CreateLiveSession(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func ExampleVideoStitcherClient_GetLiveSession() {
ctx := context.Background()
c, err := stitcher.NewVideoStitcherClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &stitcherpb.GetLiveSessionRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/video/stitcher/v1#GetLiveSessionRequest.
}
resp, err := c.GetLiveSession(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}