Documentation ¶
Overview ¶
Package stitcher is an auto-generated package for the Video Stitcher API.
General documentation ¶
For information that is relevant for all client libraries please reference https://pkg.go.dev/cloud.google.com/go#pkg-overview. Some information on this page includes:
- Authentication and Authorization
- Timeouts and Cancellation
- Testing against Client Libraries
- Debugging Client Libraries
- Inspecting errors
Example usage ¶
To get started with this package, create a client.
ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := stitcher.NewVideoStitcherClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close()
The client will use your default application credentials. Clients should be reused instead of created as needed. The methods of Client are safe for concurrent use by multiple goroutines. The returned client must be Closed when it is done being used.
Using the Client ¶
The following is an example of making an API call with the newly created client.
ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options 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/cloud.google.com/go/video/stitcher/apiv1/stitcherpb#CreateCdnKeyRequest. } op, err := c.CreateCdnKey(ctx, req) if err != nil { // TODO: Handle error. } resp, err := op.Wait(ctx) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp
Use of Context ¶
The ctx passed to NewVideoStitcherClient is used for authentication requests and for creating the underlying connection, but is not used for subsequent calls. Individual methods on the client use the ctx given to them.
To close the open connection, use the Close() method.
Index ¶
- func DefaultAuthScopes() []string
- type CdnKeyIterator
- type CreateCdnKeyOperation
- func (op *CreateCdnKeyOperation) Done() bool
- func (op *CreateCdnKeyOperation) Metadata() (*stitcherpb.OperationMetadata, error)
- func (op *CreateCdnKeyOperation) Name() string
- func (op *CreateCdnKeyOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*stitcherpb.CdnKey, error)
- func (op *CreateCdnKeyOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*stitcherpb.CdnKey, error)
- type CreateLiveConfigOperation
- func (op *CreateLiveConfigOperation) Done() bool
- func (op *CreateLiveConfigOperation) Metadata() (*stitcherpb.OperationMetadata, error)
- func (op *CreateLiveConfigOperation) Name() string
- func (op *CreateLiveConfigOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*stitcherpb.LiveConfig, error)
- func (op *CreateLiveConfigOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*stitcherpb.LiveConfig, error)
- type CreateSlateOperation
- func (op *CreateSlateOperation) Done() bool
- func (op *CreateSlateOperation) Metadata() (*stitcherpb.OperationMetadata, error)
- func (op *CreateSlateOperation) Name() string
- func (op *CreateSlateOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*stitcherpb.Slate, error)
- func (op *CreateSlateOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*stitcherpb.Slate, error)
- type CreateVodConfigOperation
- func (op *CreateVodConfigOperation) Done() bool
- func (op *CreateVodConfigOperation) Metadata() (*stitcherpb.OperationMetadata, error)
- func (op *CreateVodConfigOperation) Name() string
- func (op *CreateVodConfigOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*stitcherpb.VodConfig, error)
- func (op *CreateVodConfigOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*stitcherpb.VodConfig, error)
- type DeleteCdnKeyOperation
- func (op *DeleteCdnKeyOperation) Done() bool
- func (op *DeleteCdnKeyOperation) Metadata() (*stitcherpb.OperationMetadata, error)
- func (op *DeleteCdnKeyOperation) Name() string
- func (op *DeleteCdnKeyOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
- func (op *DeleteCdnKeyOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
- type DeleteLiveConfigOperation
- func (op *DeleteLiveConfigOperation) Done() bool
- func (op *DeleteLiveConfigOperation) Metadata() (*stitcherpb.OperationMetadata, error)
- func (op *DeleteLiveConfigOperation) Name() string
- func (op *DeleteLiveConfigOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
- func (op *DeleteLiveConfigOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
- type DeleteSlateOperation
- func (op *DeleteSlateOperation) Done() bool
- func (op *DeleteSlateOperation) Metadata() (*stitcherpb.OperationMetadata, error)
- func (op *DeleteSlateOperation) Name() string
- func (op *DeleteSlateOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
- func (op *DeleteSlateOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
- type DeleteVodConfigOperation
- func (op *DeleteVodConfigOperation) Done() bool
- func (op *DeleteVodConfigOperation) Metadata() (*stitcherpb.OperationMetadata, error)
- func (op *DeleteVodConfigOperation) Name() string
- func (op *DeleteVodConfigOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
- func (op *DeleteVodConfigOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
- type LiveAdTagDetailIterator
- type LiveConfigIterator
- type OperationIterator
- type SlateIterator
- type UpdateCdnKeyOperation
- func (op *UpdateCdnKeyOperation) Done() bool
- func (op *UpdateCdnKeyOperation) Metadata() (*stitcherpb.OperationMetadata, error)
- func (op *UpdateCdnKeyOperation) Name() string
- func (op *UpdateCdnKeyOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*stitcherpb.CdnKey, error)
- func (op *UpdateCdnKeyOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*stitcherpb.CdnKey, error)
- type UpdateLiveConfigOperation
- func (op *UpdateLiveConfigOperation) Done() bool
- func (op *UpdateLiveConfigOperation) Metadata() (*stitcherpb.OperationMetadata, error)
- func (op *UpdateLiveConfigOperation) Name() string
- func (op *UpdateLiveConfigOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*stitcherpb.LiveConfig, error)
- func (op *UpdateLiveConfigOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*stitcherpb.LiveConfig, error)
- type UpdateSlateOperation
- func (op *UpdateSlateOperation) Done() bool
- func (op *UpdateSlateOperation) Metadata() (*stitcherpb.OperationMetadata, error)
- func (op *UpdateSlateOperation) Name() string
- func (op *UpdateSlateOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*stitcherpb.Slate, error)
- func (op *UpdateSlateOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*stitcherpb.Slate, error)
- type UpdateVodConfigOperation
- func (op *UpdateVodConfigOperation) Done() bool
- func (op *UpdateVodConfigOperation) Metadata() (*stitcherpb.OperationMetadata, error)
- func (op *UpdateVodConfigOperation) Name() string
- func (op *UpdateVodConfigOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*stitcherpb.VodConfig, error)
- func (op *UpdateVodConfigOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*stitcherpb.VodConfig, error)
- type VideoStitcherCallOptions
- type VideoStitcherClient
- func (c *VideoStitcherClient) CancelOperation(ctx context.Context, req *longrunningpb.CancelOperationRequest, ...) error
- func (c *VideoStitcherClient) Close() error
- func (c *VideoStitcherClient) Connection() *grpc.ClientConndeprecated
- func (c *VideoStitcherClient) CreateCdnKey(ctx context.Context, req *stitcherpb.CreateCdnKeyRequest, ...) (*CreateCdnKeyOperation, error)
- func (c *VideoStitcherClient) CreateCdnKeyOperation(name string) *CreateCdnKeyOperation
- func (c *VideoStitcherClient) CreateLiveConfig(ctx context.Context, req *stitcherpb.CreateLiveConfigRequest, ...) (*CreateLiveConfigOperation, error)
- func (c *VideoStitcherClient) CreateLiveConfigOperation(name string) *CreateLiveConfigOperation
- func (c *VideoStitcherClient) CreateLiveSession(ctx context.Context, req *stitcherpb.CreateLiveSessionRequest, ...) (*stitcherpb.LiveSession, error)
- func (c *VideoStitcherClient) CreateSlate(ctx context.Context, req *stitcherpb.CreateSlateRequest, ...) (*CreateSlateOperation, error)
- func (c *VideoStitcherClient) CreateSlateOperation(name string) *CreateSlateOperation
- func (c *VideoStitcherClient) CreateVodConfig(ctx context.Context, req *stitcherpb.CreateVodConfigRequest, ...) (*CreateVodConfigOperation, error)
- func (c *VideoStitcherClient) CreateVodConfigOperation(name string) *CreateVodConfigOperation
- func (c *VideoStitcherClient) CreateVodSession(ctx context.Context, req *stitcherpb.CreateVodSessionRequest, ...) (*stitcherpb.VodSession, error)
- func (c *VideoStitcherClient) DeleteCdnKey(ctx context.Context, req *stitcherpb.DeleteCdnKeyRequest, ...) (*DeleteCdnKeyOperation, error)
- func (c *VideoStitcherClient) DeleteCdnKeyOperation(name string) *DeleteCdnKeyOperation
- func (c *VideoStitcherClient) DeleteLiveConfig(ctx context.Context, req *stitcherpb.DeleteLiveConfigRequest, ...) (*DeleteLiveConfigOperation, error)
- func (c *VideoStitcherClient) DeleteLiveConfigOperation(name string) *DeleteLiveConfigOperation
- func (c *VideoStitcherClient) DeleteOperation(ctx context.Context, req *longrunningpb.DeleteOperationRequest, ...) error
- func (c *VideoStitcherClient) DeleteSlate(ctx context.Context, req *stitcherpb.DeleteSlateRequest, ...) (*DeleteSlateOperation, error)
- func (c *VideoStitcherClient) DeleteSlateOperation(name string) *DeleteSlateOperation
- func (c *VideoStitcherClient) DeleteVodConfig(ctx context.Context, req *stitcherpb.DeleteVodConfigRequest, ...) (*DeleteVodConfigOperation, error)
- func (c *VideoStitcherClient) DeleteVodConfigOperation(name string) *DeleteVodConfigOperation
- func (c *VideoStitcherClient) GetCdnKey(ctx context.Context, req *stitcherpb.GetCdnKeyRequest, opts ...gax.CallOption) (*stitcherpb.CdnKey, error)
- func (c *VideoStitcherClient) GetLiveAdTagDetail(ctx context.Context, req *stitcherpb.GetLiveAdTagDetailRequest, ...) (*stitcherpb.LiveAdTagDetail, error)
- func (c *VideoStitcherClient) GetLiveConfig(ctx context.Context, req *stitcherpb.GetLiveConfigRequest, ...) (*stitcherpb.LiveConfig, error)
- func (c *VideoStitcherClient) GetLiveSession(ctx context.Context, req *stitcherpb.GetLiveSessionRequest, ...) (*stitcherpb.LiveSession, error)
- func (c *VideoStitcherClient) GetOperation(ctx context.Context, req *longrunningpb.GetOperationRequest, ...) (*longrunningpb.Operation, error)
- func (c *VideoStitcherClient) GetSlate(ctx context.Context, req *stitcherpb.GetSlateRequest, opts ...gax.CallOption) (*stitcherpb.Slate, error)
- func (c *VideoStitcherClient) GetVodAdTagDetail(ctx context.Context, req *stitcherpb.GetVodAdTagDetailRequest, ...) (*stitcherpb.VodAdTagDetail, error)
- func (c *VideoStitcherClient) GetVodConfig(ctx context.Context, req *stitcherpb.GetVodConfigRequest, ...) (*stitcherpb.VodConfig, error)
- func (c *VideoStitcherClient) GetVodSession(ctx context.Context, req *stitcherpb.GetVodSessionRequest, ...) (*stitcherpb.VodSession, error)
- func (c *VideoStitcherClient) GetVodStitchDetail(ctx context.Context, req *stitcherpb.GetVodStitchDetailRequest, ...) (*stitcherpb.VodStitchDetail, error)
- func (c *VideoStitcherClient) ListCdnKeys(ctx context.Context, req *stitcherpb.ListCdnKeysRequest, ...) *CdnKeyIterator
- func (c *VideoStitcherClient) ListLiveAdTagDetails(ctx context.Context, req *stitcherpb.ListLiveAdTagDetailsRequest, ...) *LiveAdTagDetailIterator
- func (c *VideoStitcherClient) ListLiveConfigs(ctx context.Context, req *stitcherpb.ListLiveConfigsRequest, ...) *LiveConfigIterator
- func (c *VideoStitcherClient) ListOperations(ctx context.Context, req *longrunningpb.ListOperationsRequest, ...) *OperationIterator
- func (c *VideoStitcherClient) ListSlates(ctx context.Context, req *stitcherpb.ListSlatesRequest, opts ...gax.CallOption) *SlateIterator
- func (c *VideoStitcherClient) ListVodAdTagDetails(ctx context.Context, req *stitcherpb.ListVodAdTagDetailsRequest, ...) *VodAdTagDetailIterator
- func (c *VideoStitcherClient) ListVodConfigs(ctx context.Context, req *stitcherpb.ListVodConfigsRequest, ...) *VodConfigIterator
- func (c *VideoStitcherClient) ListVodStitchDetails(ctx context.Context, req *stitcherpb.ListVodStitchDetailsRequest, ...) *VodStitchDetailIterator
- func (c *VideoStitcherClient) UpdateCdnKey(ctx context.Context, req *stitcherpb.UpdateCdnKeyRequest, ...) (*UpdateCdnKeyOperation, error)
- func (c *VideoStitcherClient) UpdateCdnKeyOperation(name string) *UpdateCdnKeyOperation
- func (c *VideoStitcherClient) UpdateLiveConfig(ctx context.Context, req *stitcherpb.UpdateLiveConfigRequest, ...) (*UpdateLiveConfigOperation, error)
- func (c *VideoStitcherClient) UpdateLiveConfigOperation(name string) *UpdateLiveConfigOperation
- func (c *VideoStitcherClient) UpdateSlate(ctx context.Context, req *stitcherpb.UpdateSlateRequest, ...) (*UpdateSlateOperation, error)
- func (c *VideoStitcherClient) UpdateSlateOperation(name string) *UpdateSlateOperation
- func (c *VideoStitcherClient) UpdateVodConfig(ctx context.Context, req *stitcherpb.UpdateVodConfigRequest, ...) (*UpdateVodConfigOperation, error)
- func (c *VideoStitcherClient) UpdateVodConfigOperation(name string) *UpdateVodConfigOperation
- type VodAdTagDetailIterator
- type VodConfigIterator
- type VodStitchDetailIterator
Examples ¶
- NewVideoStitcherClient
- VideoStitcherClient.CancelOperation
- VideoStitcherClient.CreateCdnKey
- VideoStitcherClient.CreateLiveConfig
- VideoStitcherClient.CreateLiveSession
- VideoStitcherClient.CreateSlate
- VideoStitcherClient.CreateVodConfig
- VideoStitcherClient.CreateVodSession
- VideoStitcherClient.DeleteCdnKey
- VideoStitcherClient.DeleteLiveConfig
- VideoStitcherClient.DeleteOperation
- VideoStitcherClient.DeleteSlate
- VideoStitcherClient.DeleteVodConfig
- VideoStitcherClient.GetCdnKey
- VideoStitcherClient.GetLiveAdTagDetail
- VideoStitcherClient.GetLiveConfig
- VideoStitcherClient.GetLiveSession
- VideoStitcherClient.GetOperation
- VideoStitcherClient.GetSlate
- VideoStitcherClient.GetVodAdTagDetail
- VideoStitcherClient.GetVodConfig
- VideoStitcherClient.GetVodSession
- VideoStitcherClient.GetVodStitchDetail
- VideoStitcherClient.ListCdnKeys
- VideoStitcherClient.ListCdnKeys (All)
- VideoStitcherClient.ListLiveAdTagDetails
- VideoStitcherClient.ListLiveAdTagDetails (All)
- VideoStitcherClient.ListLiveConfigs
- VideoStitcherClient.ListLiveConfigs (All)
- VideoStitcherClient.ListOperations
- VideoStitcherClient.ListOperations (All)
- VideoStitcherClient.ListSlates
- VideoStitcherClient.ListSlates (All)
- VideoStitcherClient.ListVodAdTagDetails
- VideoStitcherClient.ListVodAdTagDetails (All)
- VideoStitcherClient.ListVodConfigs
- VideoStitcherClient.ListVodConfigs (All)
- VideoStitcherClient.ListVodStitchDetails
- VideoStitcherClient.ListVodStitchDetails (All)
- VideoStitcherClient.UpdateCdnKey
- VideoStitcherClient.UpdateLiveConfig
- VideoStitcherClient.UpdateSlate
- VideoStitcherClient.UpdateVodConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultAuthScopes ¶
func DefaultAuthScopes() []string
DefaultAuthScopes reports the default set of authentication scopes to use with this package.
Types ¶
type CdnKeyIterator ¶
type CdnKeyIterator struct { // Response is the raw response for the current page. // It must be cast to the RPC response type. // Calling Next() or InternalFetch() updates this value. Response interface{} // InternalFetch is for use by the Google Cloud Libraries only. // It is not part of the stable interface of this package. // // InternalFetch returns results from a single call to the underlying RPC. // The number of results is no greater than pageSize. // If there are no more results, nextPageToken is empty and err is nil. InternalFetch func(pageSize int, pageToken string) (results []*stitcherpb.CdnKey, nextPageToken string, err error) // contains filtered or unexported fields }
CdnKeyIterator manages a stream of *stitcherpb.CdnKey.
func (*CdnKeyIterator) All ¶ added in v1.23.1
func (it *CdnKeyIterator) All() iter.Seq2[*stitcherpb.CdnKey, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*CdnKeyIterator) Next ¶
func (it *CdnKeyIterator) Next() (*stitcherpb.CdnKey, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*CdnKeyIterator) PageInfo ¶
func (it *CdnKeyIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type CreateCdnKeyOperation ¶ added in v1.20.0
type CreateCdnKeyOperation struct {
// contains filtered or unexported fields
}
CreateCdnKeyOperation manages a long-running operation from CreateCdnKey.
func (*CreateCdnKeyOperation) Done ¶ added in v1.20.0
func (op *CreateCdnKeyOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*CreateCdnKeyOperation) Metadata ¶ added in v1.20.0
func (op *CreateCdnKeyOperation) Metadata() (*stitcherpb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*CreateCdnKeyOperation) Name ¶ added in v1.20.0
func (op *CreateCdnKeyOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*CreateCdnKeyOperation) Poll ¶ added in v1.20.0
func (op *CreateCdnKeyOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*stitcherpb.CdnKey, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*CreateCdnKeyOperation) Wait ¶ added in v1.20.0
func (op *CreateCdnKeyOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*stitcherpb.CdnKey, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type CreateLiveConfigOperation ¶ added in v1.20.0
type CreateLiveConfigOperation struct {
// contains filtered or unexported fields
}
CreateLiveConfigOperation manages a long-running operation from CreateLiveConfig.
func (*CreateLiveConfigOperation) Done ¶ added in v1.20.0
func (op *CreateLiveConfigOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*CreateLiveConfigOperation) Metadata ¶ added in v1.20.0
func (op *CreateLiveConfigOperation) Metadata() (*stitcherpb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*CreateLiveConfigOperation) Name ¶ added in v1.20.0
func (op *CreateLiveConfigOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*CreateLiveConfigOperation) Poll ¶ added in v1.20.0
func (op *CreateLiveConfigOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*stitcherpb.LiveConfig, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*CreateLiveConfigOperation) Wait ¶ added in v1.20.0
func (op *CreateLiveConfigOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*stitcherpb.LiveConfig, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type CreateSlateOperation ¶ added in v1.20.0
type CreateSlateOperation struct {
// contains filtered or unexported fields
}
CreateSlateOperation manages a long-running operation from CreateSlate.
func (*CreateSlateOperation) Done ¶ added in v1.20.0
func (op *CreateSlateOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*CreateSlateOperation) Metadata ¶ added in v1.20.0
func (op *CreateSlateOperation) Metadata() (*stitcherpb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*CreateSlateOperation) Name ¶ added in v1.20.0
func (op *CreateSlateOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*CreateSlateOperation) Poll ¶ added in v1.20.0
func (op *CreateSlateOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*stitcherpb.Slate, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*CreateSlateOperation) Wait ¶ added in v1.20.0
func (op *CreateSlateOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*stitcherpb.Slate, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type CreateVodConfigOperation ¶ added in v1.21.0
type CreateVodConfigOperation struct {
// contains filtered or unexported fields
}
CreateVodConfigOperation manages a long-running operation from CreateVodConfig.
func (*CreateVodConfigOperation) Done ¶ added in v1.21.0
func (op *CreateVodConfigOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*CreateVodConfigOperation) Metadata ¶ added in v1.21.0
func (op *CreateVodConfigOperation) Metadata() (*stitcherpb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*CreateVodConfigOperation) Name ¶ added in v1.21.0
func (op *CreateVodConfigOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*CreateVodConfigOperation) Poll ¶ added in v1.21.0
func (op *CreateVodConfigOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*stitcherpb.VodConfig, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*CreateVodConfigOperation) Wait ¶ added in v1.21.0
func (op *CreateVodConfigOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*stitcherpb.VodConfig, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type DeleteCdnKeyOperation ¶ added in v1.20.0
type DeleteCdnKeyOperation struct {
// contains filtered or unexported fields
}
DeleteCdnKeyOperation manages a long-running operation from DeleteCdnKey.
func (*DeleteCdnKeyOperation) Done ¶ added in v1.20.0
func (op *DeleteCdnKeyOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*DeleteCdnKeyOperation) Metadata ¶ added in v1.20.0
func (op *DeleteCdnKeyOperation) Metadata() (*stitcherpb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*DeleteCdnKeyOperation) Name ¶ added in v1.20.0
func (op *DeleteCdnKeyOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*DeleteCdnKeyOperation) Poll ¶ added in v1.20.0
func (op *DeleteCdnKeyOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*DeleteCdnKeyOperation) Wait ¶ added in v1.20.0
func (op *DeleteCdnKeyOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type DeleteLiveConfigOperation ¶ added in v1.20.0
type DeleteLiveConfigOperation struct {
// contains filtered or unexported fields
}
DeleteLiveConfigOperation manages a long-running operation from DeleteLiveConfig.
func (*DeleteLiveConfigOperation) Done ¶ added in v1.20.0
func (op *DeleteLiveConfigOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*DeleteLiveConfigOperation) Metadata ¶ added in v1.20.0
func (op *DeleteLiveConfigOperation) Metadata() (*stitcherpb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*DeleteLiveConfigOperation) Name ¶ added in v1.20.0
func (op *DeleteLiveConfigOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*DeleteLiveConfigOperation) Poll ¶ added in v1.20.0
func (op *DeleteLiveConfigOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*DeleteLiveConfigOperation) Wait ¶ added in v1.20.0
func (op *DeleteLiveConfigOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type DeleteSlateOperation ¶ added in v1.20.0
type DeleteSlateOperation struct {
// contains filtered or unexported fields
}
DeleteSlateOperation manages a long-running operation from DeleteSlate.
func (*DeleteSlateOperation) Done ¶ added in v1.20.0
func (op *DeleteSlateOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*DeleteSlateOperation) Metadata ¶ added in v1.20.0
func (op *DeleteSlateOperation) Metadata() (*stitcherpb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*DeleteSlateOperation) Name ¶ added in v1.20.0
func (op *DeleteSlateOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*DeleteSlateOperation) Poll ¶ added in v1.20.0
func (op *DeleteSlateOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*DeleteSlateOperation) Wait ¶ added in v1.20.0
func (op *DeleteSlateOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type DeleteVodConfigOperation ¶ added in v1.21.0
type DeleteVodConfigOperation struct {
// contains filtered or unexported fields
}
DeleteVodConfigOperation manages a long-running operation from DeleteVodConfig.
func (*DeleteVodConfigOperation) Done ¶ added in v1.21.0
func (op *DeleteVodConfigOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*DeleteVodConfigOperation) Metadata ¶ added in v1.21.0
func (op *DeleteVodConfigOperation) Metadata() (*stitcherpb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*DeleteVodConfigOperation) Name ¶ added in v1.21.0
func (op *DeleteVodConfigOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*DeleteVodConfigOperation) Poll ¶ added in v1.21.0
func (op *DeleteVodConfigOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*DeleteVodConfigOperation) Wait ¶ added in v1.21.0
func (op *DeleteVodConfigOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type LiveAdTagDetailIterator ¶
type LiveAdTagDetailIterator struct { // Response is the raw response for the current page. // It must be cast to the RPC response type. // Calling Next() or InternalFetch() updates this value. Response interface{} // InternalFetch is for use by the Google Cloud Libraries only. // It is not part of the stable interface of this package. // // InternalFetch returns results from a single call to the underlying RPC. // The number of results is no greater than pageSize. // If there are no more results, nextPageToken is empty and err is nil. InternalFetch func(pageSize int, pageToken string) (results []*stitcherpb.LiveAdTagDetail, nextPageToken string, err error) // contains filtered or unexported fields }
LiveAdTagDetailIterator manages a stream of *stitcherpb.LiveAdTagDetail.
func (*LiveAdTagDetailIterator) All ¶ added in v1.23.1
func (it *LiveAdTagDetailIterator) All() iter.Seq2[*stitcherpb.LiveAdTagDetail, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*LiveAdTagDetailIterator) Next ¶
func (it *LiveAdTagDetailIterator) Next() (*stitcherpb.LiveAdTagDetail, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*LiveAdTagDetailIterator) PageInfo ¶
func (it *LiveAdTagDetailIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type LiveConfigIterator ¶ added in v1.20.0
type LiveConfigIterator struct { // Response is the raw response for the current page. // It must be cast to the RPC response type. // Calling Next() or InternalFetch() updates this value. Response interface{} // InternalFetch is for use by the Google Cloud Libraries only. // It is not part of the stable interface of this package. // // InternalFetch returns results from a single call to the underlying RPC. // The number of results is no greater than pageSize. // If there are no more results, nextPageToken is empty and err is nil. InternalFetch func(pageSize int, pageToken string) (results []*stitcherpb.LiveConfig, nextPageToken string, err error) // contains filtered or unexported fields }
LiveConfigIterator manages a stream of *stitcherpb.LiveConfig.
func (*LiveConfigIterator) All ¶ added in v1.23.1
func (it *LiveConfigIterator) All() iter.Seq2[*stitcherpb.LiveConfig, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*LiveConfigIterator) Next ¶ added in v1.20.0
func (it *LiveConfigIterator) Next() (*stitcherpb.LiveConfig, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*LiveConfigIterator) PageInfo ¶ added in v1.20.0
func (it *LiveConfigIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type OperationIterator ¶ added in v1.20.0
type OperationIterator struct { // Response is the raw response for the current page. // It must be cast to the RPC response type. // Calling Next() or InternalFetch() updates this value. Response interface{} // InternalFetch is for use by the Google Cloud Libraries only. // It is not part of the stable interface of this package. // // InternalFetch returns results from a single call to the underlying RPC. // The number of results is no greater than pageSize. // If there are no more results, nextPageToken is empty and err is nil. InternalFetch func(pageSize int, pageToken string) (results []*longrunningpb.Operation, nextPageToken string, err error) // contains filtered or unexported fields }
OperationIterator manages a stream of *longrunningpb.Operation.
func (*OperationIterator) All ¶ added in v1.23.1
func (it *OperationIterator) All() iter.Seq2[*longrunningpb.Operation, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*OperationIterator) Next ¶ added in v1.20.0
func (it *OperationIterator) Next() (*longrunningpb.Operation, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*OperationIterator) PageInfo ¶ added in v1.20.0
func (it *OperationIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type SlateIterator ¶
type SlateIterator struct { // Response is the raw response for the current page. // It must be cast to the RPC response type. // Calling Next() or InternalFetch() updates this value. Response interface{} // InternalFetch is for use by the Google Cloud Libraries only. // It is not part of the stable interface of this package. // // InternalFetch returns results from a single call to the underlying RPC. // The number of results is no greater than pageSize. // If there are no more results, nextPageToken is empty and err is nil. InternalFetch func(pageSize int, pageToken string) (results []*stitcherpb.Slate, nextPageToken string, err error) // contains filtered or unexported fields }
SlateIterator manages a stream of *stitcherpb.Slate.
func (*SlateIterator) All ¶ added in v1.23.1
func (it *SlateIterator) All() iter.Seq2[*stitcherpb.Slate, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*SlateIterator) Next ¶
func (it *SlateIterator) Next() (*stitcherpb.Slate, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*SlateIterator) PageInfo ¶
func (it *SlateIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type UpdateCdnKeyOperation ¶ added in v1.20.0
type UpdateCdnKeyOperation struct {
// contains filtered or unexported fields
}
UpdateCdnKeyOperation manages a long-running operation from UpdateCdnKey.
func (*UpdateCdnKeyOperation) Done ¶ added in v1.20.0
func (op *UpdateCdnKeyOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*UpdateCdnKeyOperation) Metadata ¶ added in v1.20.0
func (op *UpdateCdnKeyOperation) Metadata() (*stitcherpb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*UpdateCdnKeyOperation) Name ¶ added in v1.20.0
func (op *UpdateCdnKeyOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*UpdateCdnKeyOperation) Poll ¶ added in v1.20.0
func (op *UpdateCdnKeyOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*stitcherpb.CdnKey, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*UpdateCdnKeyOperation) Wait ¶ added in v1.20.0
func (op *UpdateCdnKeyOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*stitcherpb.CdnKey, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type UpdateLiveConfigOperation ¶ added in v1.21.0
type UpdateLiveConfigOperation struct {
// contains filtered or unexported fields
}
UpdateLiveConfigOperation manages a long-running operation from UpdateLiveConfig.
func (*UpdateLiveConfigOperation) Done ¶ added in v1.21.0
func (op *UpdateLiveConfigOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*UpdateLiveConfigOperation) Metadata ¶ added in v1.21.0
func (op *UpdateLiveConfigOperation) Metadata() (*stitcherpb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*UpdateLiveConfigOperation) Name ¶ added in v1.21.0
func (op *UpdateLiveConfigOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*UpdateLiveConfigOperation) Poll ¶ added in v1.21.0
func (op *UpdateLiveConfigOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*stitcherpb.LiveConfig, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*UpdateLiveConfigOperation) Wait ¶ added in v1.21.0
func (op *UpdateLiveConfigOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*stitcherpb.LiveConfig, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type UpdateSlateOperation ¶ added in v1.20.0
type UpdateSlateOperation struct {
// contains filtered or unexported fields
}
UpdateSlateOperation manages a long-running operation from UpdateSlate.
func (*UpdateSlateOperation) Done ¶ added in v1.20.0
func (op *UpdateSlateOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*UpdateSlateOperation) Metadata ¶ added in v1.20.0
func (op *UpdateSlateOperation) Metadata() (*stitcherpb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*UpdateSlateOperation) Name ¶ added in v1.20.0
func (op *UpdateSlateOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*UpdateSlateOperation) Poll ¶ added in v1.20.0
func (op *UpdateSlateOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*stitcherpb.Slate, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*UpdateSlateOperation) Wait ¶ added in v1.20.0
func (op *UpdateSlateOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*stitcherpb.Slate, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type UpdateVodConfigOperation ¶ added in v1.21.0
type UpdateVodConfigOperation struct {
// contains filtered or unexported fields
}
UpdateVodConfigOperation manages a long-running operation from UpdateVodConfig.
func (*UpdateVodConfigOperation) Done ¶ added in v1.21.0
func (op *UpdateVodConfigOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*UpdateVodConfigOperation) Metadata ¶ added in v1.21.0
func (op *UpdateVodConfigOperation) Metadata() (*stitcherpb.OperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*UpdateVodConfigOperation) Name ¶ added in v1.21.0
func (op *UpdateVodConfigOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*UpdateVodConfigOperation) Poll ¶ added in v1.21.0
func (op *UpdateVodConfigOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*stitcherpb.VodConfig, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*UpdateVodConfigOperation) Wait ¶ added in v1.21.0
func (op *UpdateVodConfigOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*stitcherpb.VodConfig, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type VideoStitcherCallOptions ¶
type VideoStitcherCallOptions struct { CreateCdnKey []gax.CallOption ListCdnKeys []gax.CallOption GetCdnKey []gax.CallOption DeleteCdnKey []gax.CallOption UpdateCdnKey []gax.CallOption CreateVodSession []gax.CallOption GetVodSession []gax.CallOption ListVodStitchDetails []gax.CallOption GetVodStitchDetail []gax.CallOption ListVodAdTagDetails []gax.CallOption GetVodAdTagDetail []gax.CallOption ListLiveAdTagDetails []gax.CallOption GetLiveAdTagDetail []gax.CallOption CreateSlate []gax.CallOption ListSlates []gax.CallOption GetSlate []gax.CallOption UpdateSlate []gax.CallOption DeleteSlate []gax.CallOption CreateLiveSession []gax.CallOption GetLiveSession []gax.CallOption CreateLiveConfig []gax.CallOption ListLiveConfigs []gax.CallOption GetLiveConfig []gax.CallOption DeleteLiveConfig []gax.CallOption UpdateLiveConfig []gax.CallOption CreateVodConfig []gax.CallOption ListVodConfigs []gax.CallOption GetVodConfig []gax.CallOption DeleteVodConfig []gax.CallOption UpdateVodConfig []gax.CallOption CancelOperation []gax.CallOption DeleteOperation []gax.CallOption GetOperation []gax.CallOption ListOperations []gax.CallOption }
VideoStitcherCallOptions contains the retry settings for each method of VideoStitcherClient.
type VideoStitcherClient ¶
type VideoStitcherClient struct { // The call options for this service. CallOptions *VideoStitcherCallOptions // LROClient is used internally to handle long-running operations. // It is exposed so that its CallOptions can be modified if required. // Users should not Close this client. LROClient *lroauto.OperationsClient // contains filtered or unexported fields }
VideoStitcherClient is a client for interacting with Video Stitcher API. Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls.
Video-On-Demand content stitching API allows you to insert ads into (VoD) video on demand files. You will be able to render custom scrubber bars with highlighted ads, enforce ad policies, allow seamless playback and tracking on native players and monetize content with any standard VMAP compliant ad server.
func NewVideoStitcherClient ¶
func NewVideoStitcherClient(ctx context.Context, opts ...option.ClientOption) (*VideoStitcherClient, error)
NewVideoStitcherClient creates a new video stitcher service client based on gRPC. The returned client must be Closed when it is done being used to clean up its underlying connections.
Video-On-Demand content stitching API allows you to insert ads into (VoD) video on demand files. You will be able to render custom scrubber bars with highlighted ads, enforce ad policies, allow seamless playback and tracking on native players and monetize content with any standard VMAP compliant ad server.
Example ¶
package main import ( "context" stitcher "cloud.google.com/go/video/stitcher/apiv1" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := stitcher.NewVideoStitcherClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() // TODO: Use client. _ = c }
Output:
func (*VideoStitcherClient) CancelOperation ¶ added in v1.20.0
func (c *VideoStitcherClient) CancelOperation(ctx context.Context, req *longrunningpb.CancelOperationRequest, opts ...gax.CallOption) error
CancelOperation is a utility method from google.longrunning.Operations.
Example ¶
package main import ( "context" longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb" stitcher "cloud.google.com/go/video/stitcher/apiv1" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := stitcher.NewVideoStitcherClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &longrunningpb.CancelOperationRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#CancelOperationRequest. } err = c.CancelOperation(ctx, req) if err != nil { // TODO: Handle error. } }
Output:
func (*VideoStitcherClient) Close ¶
func (c *VideoStitcherClient) Close() error
Close closes the connection to the API service. The user should invoke this when the client is no longer required.
func (*VideoStitcherClient) Connection
deprecated
func (c *VideoStitcherClient) Connection() *grpc.ClientConn
Connection returns a connection to the API service.
Deprecated: Connections are now pooled so this method does not always return the same resource.
func (*VideoStitcherClient) CreateCdnKey ¶
func (c *VideoStitcherClient) CreateCdnKey(ctx context.Context, req *stitcherpb.CreateCdnKeyRequest, opts ...gax.CallOption) (*CreateCdnKeyOperation, error)
CreateCdnKey creates a new CDN key.
Example ¶
package main import ( "context" stitcher "cloud.google.com/go/video/stitcher/apiv1" stitcherpb "cloud.google.com/go/video/stitcher/apiv1/stitcherpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options 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/cloud.google.com/go/video/stitcher/apiv1/stitcherpb#CreateCdnKeyRequest. } op, err := c.CreateCdnKey(ctx, req) if err != nil { // TODO: Handle error. } resp, err := op.Wait(ctx) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*VideoStitcherClient) CreateCdnKeyOperation ¶ added in v1.20.0
func (c *VideoStitcherClient) CreateCdnKeyOperation(name string) *CreateCdnKeyOperation
CreateCdnKeyOperation returns a new CreateCdnKeyOperation from a given name. The name must be that of a previously created CreateCdnKeyOperation, possibly from a different process.
func (*VideoStitcherClient) CreateLiveConfig ¶ added in v1.20.0
func (c *VideoStitcherClient) CreateLiveConfig(ctx context.Context, req *stitcherpb.CreateLiveConfigRequest, opts ...gax.CallOption) (*CreateLiveConfigOperation, error)
CreateLiveConfig registers the live config with the provided unique ID in the specified region.
Example ¶
package main import ( "context" stitcher "cloud.google.com/go/video/stitcher/apiv1" stitcherpb "cloud.google.com/go/video/stitcher/apiv1/stitcherpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := stitcher.NewVideoStitcherClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &stitcherpb.CreateLiveConfigRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/video/stitcher/apiv1/stitcherpb#CreateLiveConfigRequest. } op, err := c.CreateLiveConfig(ctx, req) if err != nil { // TODO: Handle error. } resp, err := op.Wait(ctx) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*VideoStitcherClient) CreateLiveConfigOperation ¶ added in v1.20.0
func (c *VideoStitcherClient) CreateLiveConfigOperation(name string) *CreateLiveConfigOperation
CreateLiveConfigOperation returns a new CreateLiveConfigOperation from a given name. The name must be that of a previously created CreateLiveConfigOperation, possibly from a different process.
func (*VideoStitcherClient) CreateLiveSession ¶
func (c *VideoStitcherClient) CreateLiveSession(ctx context.Context, req *stitcherpb.CreateLiveSessionRequest, opts ...gax.CallOption) (*stitcherpb.LiveSession, error)
CreateLiveSession creates a new live session.
Example ¶
package main import ( "context" stitcher "cloud.google.com/go/video/stitcher/apiv1" stitcherpb "cloud.google.com/go/video/stitcher/apiv1/stitcherpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options 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/cloud.google.com/go/video/stitcher/apiv1/stitcherpb#CreateLiveSessionRequest. } resp, err := c.CreateLiveSession(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*VideoStitcherClient) CreateSlate ¶
func (c *VideoStitcherClient) CreateSlate(ctx context.Context, req *stitcherpb.CreateSlateRequest, opts ...gax.CallOption) (*CreateSlateOperation, error)
CreateSlate creates a slate.
Example ¶
package main import ( "context" stitcher "cloud.google.com/go/video/stitcher/apiv1" stitcherpb "cloud.google.com/go/video/stitcher/apiv1/stitcherpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options 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/cloud.google.com/go/video/stitcher/apiv1/stitcherpb#CreateSlateRequest. } op, err := c.CreateSlate(ctx, req) if err != nil { // TODO: Handle error. } resp, err := op.Wait(ctx) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*VideoStitcherClient) CreateSlateOperation ¶ added in v1.20.0
func (c *VideoStitcherClient) CreateSlateOperation(name string) *CreateSlateOperation
CreateSlateOperation returns a new CreateSlateOperation from a given name. The name must be that of a previously created CreateSlateOperation, possibly from a different process.
func (*VideoStitcherClient) CreateVodConfig ¶ added in v1.21.0
func (c *VideoStitcherClient) CreateVodConfig(ctx context.Context, req *stitcherpb.CreateVodConfigRequest, opts ...gax.CallOption) (*CreateVodConfigOperation, error)
CreateVodConfig registers the VOD config with the provided unique ID in the specified region.
Example ¶
package main import ( "context" stitcher "cloud.google.com/go/video/stitcher/apiv1" stitcherpb "cloud.google.com/go/video/stitcher/apiv1/stitcherpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := stitcher.NewVideoStitcherClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &stitcherpb.CreateVodConfigRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/video/stitcher/apiv1/stitcherpb#CreateVodConfigRequest. } op, err := c.CreateVodConfig(ctx, req) if err != nil { // TODO: Handle error. } resp, err := op.Wait(ctx) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*VideoStitcherClient) CreateVodConfigOperation ¶ added in v1.21.0
func (c *VideoStitcherClient) CreateVodConfigOperation(name string) *CreateVodConfigOperation
CreateVodConfigOperation returns a new CreateVodConfigOperation from a given name. The name must be that of a previously created CreateVodConfigOperation, possibly from a different process.
func (*VideoStitcherClient) CreateVodSession ¶
func (c *VideoStitcherClient) CreateVodSession(ctx context.Context, req *stitcherpb.CreateVodSessionRequest, opts ...gax.CallOption) (*stitcherpb.VodSession, error)
CreateVodSession creates a client side playback VOD session and returns the full tracking and playback metadata of the session.
Example ¶
package main import ( "context" stitcher "cloud.google.com/go/video/stitcher/apiv1" stitcherpb "cloud.google.com/go/video/stitcher/apiv1/stitcherpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options 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/cloud.google.com/go/video/stitcher/apiv1/stitcherpb#CreateVodSessionRequest. } resp, err := c.CreateVodSession(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*VideoStitcherClient) DeleteCdnKey ¶
func (c *VideoStitcherClient) DeleteCdnKey(ctx context.Context, req *stitcherpb.DeleteCdnKeyRequest, opts ...gax.CallOption) (*DeleteCdnKeyOperation, error)
DeleteCdnKey deletes the specified CDN key.
Example ¶
package main import ( "context" stitcher "cloud.google.com/go/video/stitcher/apiv1" stitcherpb "cloud.google.com/go/video/stitcher/apiv1/stitcherpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options 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/cloud.google.com/go/video/stitcher/apiv1/stitcherpb#DeleteCdnKeyRequest. } op, err := c.DeleteCdnKey(ctx, req) if err != nil { // TODO: Handle error. } err = op.Wait(ctx) if err != nil { // TODO: Handle error. } }
Output:
func (*VideoStitcherClient) DeleteCdnKeyOperation ¶ added in v1.20.0
func (c *VideoStitcherClient) DeleteCdnKeyOperation(name string) *DeleteCdnKeyOperation
DeleteCdnKeyOperation returns a new DeleteCdnKeyOperation from a given name. The name must be that of a previously created DeleteCdnKeyOperation, possibly from a different process.
func (*VideoStitcherClient) DeleteLiveConfig ¶ added in v1.20.0
func (c *VideoStitcherClient) DeleteLiveConfig(ctx context.Context, req *stitcherpb.DeleteLiveConfigRequest, opts ...gax.CallOption) (*DeleteLiveConfigOperation, error)
DeleteLiveConfig deletes the specified live config.
Example ¶
package main import ( "context" stitcher "cloud.google.com/go/video/stitcher/apiv1" stitcherpb "cloud.google.com/go/video/stitcher/apiv1/stitcherpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := stitcher.NewVideoStitcherClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &stitcherpb.DeleteLiveConfigRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/video/stitcher/apiv1/stitcherpb#DeleteLiveConfigRequest. } op, err := c.DeleteLiveConfig(ctx, req) if err != nil { // TODO: Handle error. } err = op.Wait(ctx) if err != nil { // TODO: Handle error. } }
Output:
func (*VideoStitcherClient) DeleteLiveConfigOperation ¶ added in v1.20.0
func (c *VideoStitcherClient) DeleteLiveConfigOperation(name string) *DeleteLiveConfigOperation
DeleteLiveConfigOperation returns a new DeleteLiveConfigOperation from a given name. The name must be that of a previously created DeleteLiveConfigOperation, possibly from a different process.
func (*VideoStitcherClient) DeleteOperation ¶ added in v1.20.0
func (c *VideoStitcherClient) DeleteOperation(ctx context.Context, req *longrunningpb.DeleteOperationRequest, opts ...gax.CallOption) error
DeleteOperation is a utility method from google.longrunning.Operations.
Example ¶
package main import ( "context" longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb" stitcher "cloud.google.com/go/video/stitcher/apiv1" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := stitcher.NewVideoStitcherClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &longrunningpb.DeleteOperationRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#DeleteOperationRequest. } err = c.DeleteOperation(ctx, req) if err != nil { // TODO: Handle error. } }
Output:
func (*VideoStitcherClient) DeleteSlate ¶
func (c *VideoStitcherClient) DeleteSlate(ctx context.Context, req *stitcherpb.DeleteSlateRequest, opts ...gax.CallOption) (*DeleteSlateOperation, error)
DeleteSlate deletes the specified slate.
Example ¶
package main import ( "context" stitcher "cloud.google.com/go/video/stitcher/apiv1" stitcherpb "cloud.google.com/go/video/stitcher/apiv1/stitcherpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options 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/cloud.google.com/go/video/stitcher/apiv1/stitcherpb#DeleteSlateRequest. } op, err := c.DeleteSlate(ctx, req) if err != nil { // TODO: Handle error. } err = op.Wait(ctx) if err != nil { // TODO: Handle error. } }
Output:
func (*VideoStitcherClient) DeleteSlateOperation ¶ added in v1.20.0
func (c *VideoStitcherClient) DeleteSlateOperation(name string) *DeleteSlateOperation
DeleteSlateOperation returns a new DeleteSlateOperation from a given name. The name must be that of a previously created DeleteSlateOperation, possibly from a different process.
func (*VideoStitcherClient) DeleteVodConfig ¶ added in v1.21.0
func (c *VideoStitcherClient) DeleteVodConfig(ctx context.Context, req *stitcherpb.DeleteVodConfigRequest, opts ...gax.CallOption) (*DeleteVodConfigOperation, error)
DeleteVodConfig deletes the specified VOD config.
Example ¶
package main import ( "context" stitcher "cloud.google.com/go/video/stitcher/apiv1" stitcherpb "cloud.google.com/go/video/stitcher/apiv1/stitcherpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := stitcher.NewVideoStitcherClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &stitcherpb.DeleteVodConfigRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/video/stitcher/apiv1/stitcherpb#DeleteVodConfigRequest. } op, err := c.DeleteVodConfig(ctx, req) if err != nil { // TODO: Handle error. } err = op.Wait(ctx) if err != nil { // TODO: Handle error. } }
Output:
func (*VideoStitcherClient) DeleteVodConfigOperation ¶ added in v1.21.0
func (c *VideoStitcherClient) DeleteVodConfigOperation(name string) *DeleteVodConfigOperation
DeleteVodConfigOperation returns a new DeleteVodConfigOperation from a given name. The name must be that of a previously created DeleteVodConfigOperation, possibly from a different process.
func (*VideoStitcherClient) GetCdnKey ¶
func (c *VideoStitcherClient) GetCdnKey(ctx context.Context, req *stitcherpb.GetCdnKeyRequest, opts ...gax.CallOption) (*stitcherpb.CdnKey, error)
GetCdnKey returns the specified CDN key.
Example ¶
package main import ( "context" stitcher "cloud.google.com/go/video/stitcher/apiv1" stitcherpb "cloud.google.com/go/video/stitcher/apiv1/stitcherpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options 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/cloud.google.com/go/video/stitcher/apiv1/stitcherpb#GetCdnKeyRequest. } resp, err := c.GetCdnKey(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*VideoStitcherClient) GetLiveAdTagDetail ¶
func (c *VideoStitcherClient) GetLiveAdTagDetail(ctx context.Context, req *stitcherpb.GetLiveAdTagDetailRequest, opts ...gax.CallOption) (*stitcherpb.LiveAdTagDetail, error)
GetLiveAdTagDetail returns the specified ad tag detail for the specified live session.
Example ¶
package main import ( "context" stitcher "cloud.google.com/go/video/stitcher/apiv1" stitcherpb "cloud.google.com/go/video/stitcher/apiv1/stitcherpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options 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/cloud.google.com/go/video/stitcher/apiv1/stitcherpb#GetLiveAdTagDetailRequest. } resp, err := c.GetLiveAdTagDetail(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*VideoStitcherClient) GetLiveConfig ¶ added in v1.20.0
func (c *VideoStitcherClient) GetLiveConfig(ctx context.Context, req *stitcherpb.GetLiveConfigRequest, opts ...gax.CallOption) (*stitcherpb.LiveConfig, error)
GetLiveConfig returns the specified live config managed by the Video Stitcher service.
Example ¶
package main import ( "context" stitcher "cloud.google.com/go/video/stitcher/apiv1" stitcherpb "cloud.google.com/go/video/stitcher/apiv1/stitcherpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := stitcher.NewVideoStitcherClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &stitcherpb.GetLiveConfigRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/video/stitcher/apiv1/stitcherpb#GetLiveConfigRequest. } resp, err := c.GetLiveConfig(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*VideoStitcherClient) GetLiveSession ¶
func (c *VideoStitcherClient) GetLiveSession(ctx context.Context, req *stitcherpb.GetLiveSessionRequest, opts ...gax.CallOption) (*stitcherpb.LiveSession, error)
GetLiveSession returns the details for the specified live session.
Example ¶
package main import ( "context" stitcher "cloud.google.com/go/video/stitcher/apiv1" stitcherpb "cloud.google.com/go/video/stitcher/apiv1/stitcherpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options 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/cloud.google.com/go/video/stitcher/apiv1/stitcherpb#GetLiveSessionRequest. } resp, err := c.GetLiveSession(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*VideoStitcherClient) GetOperation ¶ added in v1.20.0
func (c *VideoStitcherClient) GetOperation(ctx context.Context, req *longrunningpb.GetOperationRequest, opts ...gax.CallOption) (*longrunningpb.Operation, error)
GetOperation is a utility method from google.longrunning.Operations.
Example ¶
package main import ( "context" longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb" stitcher "cloud.google.com/go/video/stitcher/apiv1" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := stitcher.NewVideoStitcherClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &longrunningpb.GetOperationRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#GetOperationRequest. } resp, err := c.GetOperation(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*VideoStitcherClient) GetSlate ¶
func (c *VideoStitcherClient) GetSlate(ctx context.Context, req *stitcherpb.GetSlateRequest, opts ...gax.CallOption) (*stitcherpb.Slate, error)
GetSlate returns the specified slate.
Example ¶
package main import ( "context" stitcher "cloud.google.com/go/video/stitcher/apiv1" stitcherpb "cloud.google.com/go/video/stitcher/apiv1/stitcherpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options 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/cloud.google.com/go/video/stitcher/apiv1/stitcherpb#GetSlateRequest. } resp, err := c.GetSlate(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*VideoStitcherClient) GetVodAdTagDetail ¶
func (c *VideoStitcherClient) GetVodAdTagDetail(ctx context.Context, req *stitcherpb.GetVodAdTagDetailRequest, opts ...gax.CallOption) (*stitcherpb.VodAdTagDetail, error)
GetVodAdTagDetail returns the specified ad tag detail for the specified VOD session.
Example ¶
package main import ( "context" stitcher "cloud.google.com/go/video/stitcher/apiv1" stitcherpb "cloud.google.com/go/video/stitcher/apiv1/stitcherpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options 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/cloud.google.com/go/video/stitcher/apiv1/stitcherpb#GetVodAdTagDetailRequest. } resp, err := c.GetVodAdTagDetail(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*VideoStitcherClient) GetVodConfig ¶ added in v1.21.0
func (c *VideoStitcherClient) GetVodConfig(ctx context.Context, req *stitcherpb.GetVodConfigRequest, opts ...gax.CallOption) (*stitcherpb.VodConfig, error)
GetVodConfig returns the specified VOD config managed by the Video Stitcher API service.
Example ¶
package main import ( "context" stitcher "cloud.google.com/go/video/stitcher/apiv1" stitcherpb "cloud.google.com/go/video/stitcher/apiv1/stitcherpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := stitcher.NewVideoStitcherClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &stitcherpb.GetVodConfigRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/video/stitcher/apiv1/stitcherpb#GetVodConfigRequest. } resp, err := c.GetVodConfig(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*VideoStitcherClient) GetVodSession ¶
func (c *VideoStitcherClient) GetVodSession(ctx context.Context, req *stitcherpb.GetVodSessionRequest, opts ...gax.CallOption) (*stitcherpb.VodSession, error)
GetVodSession returns the full tracking, playback metadata, and relevant ad-ops logs for the specified VOD session.
Example ¶
package main import ( "context" stitcher "cloud.google.com/go/video/stitcher/apiv1" stitcherpb "cloud.google.com/go/video/stitcher/apiv1/stitcherpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options 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/cloud.google.com/go/video/stitcher/apiv1/stitcherpb#GetVodSessionRequest. } resp, err := c.GetVodSession(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*VideoStitcherClient) GetVodStitchDetail ¶
func (c *VideoStitcherClient) GetVodStitchDetail(ctx context.Context, req *stitcherpb.GetVodStitchDetailRequest, opts ...gax.CallOption) (*stitcherpb.VodStitchDetail, error)
GetVodStitchDetail returns the specified stitching information for the specified VOD session.
Example ¶
package main import ( "context" stitcher "cloud.google.com/go/video/stitcher/apiv1" stitcherpb "cloud.google.com/go/video/stitcher/apiv1/stitcherpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options 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/cloud.google.com/go/video/stitcher/apiv1/stitcherpb#GetVodStitchDetailRequest. } resp, err := c.GetVodStitchDetail(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*VideoStitcherClient) ListCdnKeys ¶
func (c *VideoStitcherClient) ListCdnKeys(ctx context.Context, req *stitcherpb.ListCdnKeysRequest, opts ...gax.CallOption) *CdnKeyIterator
ListCdnKeys lists all CDN keys in the specified project and location.
Example ¶
package main import ( "context" stitcher "cloud.google.com/go/video/stitcher/apiv1" stitcherpb "cloud.google.com/go/video/stitcher/apiv1/stitcherpb" "google.golang.org/api/iterator" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options 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/cloud.google.com/go/video/stitcher/apiv1/stitcherpb#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 // 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.(*stitcherpb.ListCdnKeysResponse) } }
Output:
Example (All) ¶
package main import ( "context" stitcher "cloud.google.com/go/video/stitcher/apiv1" stitcherpb "cloud.google.com/go/video/stitcher/apiv1/stitcherpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options 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/cloud.google.com/go/video/stitcher/apiv1/stitcherpb#ListCdnKeysRequest. } for resp, err := range c.ListCdnKeys(ctx, req).All() { if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*VideoStitcherClient) ListLiveAdTagDetails ¶
func (c *VideoStitcherClient) ListLiveAdTagDetails(ctx context.Context, req *stitcherpb.ListLiveAdTagDetailsRequest, opts ...gax.CallOption) *LiveAdTagDetailIterator
ListLiveAdTagDetails return the list of ad tag details for the specified live session.
Example ¶
package main import ( "context" stitcher "cloud.google.com/go/video/stitcher/apiv1" stitcherpb "cloud.google.com/go/video/stitcher/apiv1/stitcherpb" "google.golang.org/api/iterator" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options 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/cloud.google.com/go/video/stitcher/apiv1/stitcherpb#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 // 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.(*stitcherpb.ListLiveAdTagDetailsResponse) } }
Output:
Example (All) ¶
package main import ( "context" stitcher "cloud.google.com/go/video/stitcher/apiv1" stitcherpb "cloud.google.com/go/video/stitcher/apiv1/stitcherpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options 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/cloud.google.com/go/video/stitcher/apiv1/stitcherpb#ListLiveAdTagDetailsRequest. } for resp, err := range c.ListLiveAdTagDetails(ctx, req).All() { if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*VideoStitcherClient) ListLiveConfigs ¶ added in v1.20.0
func (c *VideoStitcherClient) ListLiveConfigs(ctx context.Context, req *stitcherpb.ListLiveConfigsRequest, opts ...gax.CallOption) *LiveConfigIterator
ListLiveConfigs lists all live configs managed by the Video Stitcher that belong to the specified project and region.
Example ¶
package main import ( "context" stitcher "cloud.google.com/go/video/stitcher/apiv1" stitcherpb "cloud.google.com/go/video/stitcher/apiv1/stitcherpb" "google.golang.org/api/iterator" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := stitcher.NewVideoStitcherClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &stitcherpb.ListLiveConfigsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/video/stitcher/apiv1/stitcherpb#ListLiveConfigsRequest. } it := c.ListLiveConfigs(ctx, req) for { resp, err := it.Next() if err == iterator.Done { break } if err != nil { // TODO: Handle error. } // 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.(*stitcherpb.ListLiveConfigsResponse) } }
Output:
Example (All) ¶
package main import ( "context" stitcher "cloud.google.com/go/video/stitcher/apiv1" stitcherpb "cloud.google.com/go/video/stitcher/apiv1/stitcherpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := stitcher.NewVideoStitcherClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &stitcherpb.ListLiveConfigsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/video/stitcher/apiv1/stitcherpb#ListLiveConfigsRequest. } for resp, err := range c.ListLiveConfigs(ctx, req).All() { if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*VideoStitcherClient) ListOperations ¶ added in v1.20.0
func (c *VideoStitcherClient) ListOperations(ctx context.Context, req *longrunningpb.ListOperationsRequest, opts ...gax.CallOption) *OperationIterator
ListOperations is a utility method from google.longrunning.Operations.
Example ¶
package main import ( "context" longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb" stitcher "cloud.google.com/go/video/stitcher/apiv1" "google.golang.org/api/iterator" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := stitcher.NewVideoStitcherClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &longrunningpb.ListOperationsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest. } it := c.ListOperations(ctx, req) for { resp, err := it.Next() if err == iterator.Done { break } if err != nil { // TODO: Handle error. } // 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) } }
Output:
Example (All) ¶
package main import ( "context" longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb" stitcher "cloud.google.com/go/video/stitcher/apiv1" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := stitcher.NewVideoStitcherClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &longrunningpb.ListOperationsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest. } for resp, err := range c.ListOperations(ctx, req).All() { if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*VideoStitcherClient) ListSlates ¶
func (c *VideoStitcherClient) ListSlates(ctx context.Context, req *stitcherpb.ListSlatesRequest, opts ...gax.CallOption) *SlateIterator
ListSlates lists all slates in the specified project and location.
Example ¶
package main import ( "context" stitcher "cloud.google.com/go/video/stitcher/apiv1" stitcherpb "cloud.google.com/go/video/stitcher/apiv1/stitcherpb" "google.golang.org/api/iterator" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options 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/cloud.google.com/go/video/stitcher/apiv1/stitcherpb#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 // 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.(*stitcherpb.ListSlatesResponse) } }
Output:
Example (All) ¶
package main import ( "context" stitcher "cloud.google.com/go/video/stitcher/apiv1" stitcherpb "cloud.google.com/go/video/stitcher/apiv1/stitcherpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options 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/cloud.google.com/go/video/stitcher/apiv1/stitcherpb#ListSlatesRequest. } for resp, err := range c.ListSlates(ctx, req).All() { if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*VideoStitcherClient) ListVodAdTagDetails ¶
func (c *VideoStitcherClient) ListVodAdTagDetails(ctx context.Context, req *stitcherpb.ListVodAdTagDetailsRequest, opts ...gax.CallOption) *VodAdTagDetailIterator
ListVodAdTagDetails return the list of ad tag details for the specified VOD session.
Example ¶
package main import ( "context" stitcher "cloud.google.com/go/video/stitcher/apiv1" stitcherpb "cloud.google.com/go/video/stitcher/apiv1/stitcherpb" "google.golang.org/api/iterator" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options 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/cloud.google.com/go/video/stitcher/apiv1/stitcherpb#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 // 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.(*stitcherpb.ListVodAdTagDetailsResponse) } }
Output:
Example (All) ¶
package main import ( "context" stitcher "cloud.google.com/go/video/stitcher/apiv1" stitcherpb "cloud.google.com/go/video/stitcher/apiv1/stitcherpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options 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/cloud.google.com/go/video/stitcher/apiv1/stitcherpb#ListVodAdTagDetailsRequest. } for resp, err := range c.ListVodAdTagDetails(ctx, req).All() { if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*VideoStitcherClient) ListVodConfigs ¶ added in v1.21.0
func (c *VideoStitcherClient) ListVodConfigs(ctx context.Context, req *stitcherpb.ListVodConfigsRequest, opts ...gax.CallOption) *VodConfigIterator
ListVodConfigs lists all VOD configs managed by the Video Stitcher API that belong to the specified project and region.
Example ¶
package main import ( "context" stitcher "cloud.google.com/go/video/stitcher/apiv1" stitcherpb "cloud.google.com/go/video/stitcher/apiv1/stitcherpb" "google.golang.org/api/iterator" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := stitcher.NewVideoStitcherClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &stitcherpb.ListVodConfigsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/video/stitcher/apiv1/stitcherpb#ListVodConfigsRequest. } it := c.ListVodConfigs(ctx, req) for { resp, err := it.Next() if err == iterator.Done { break } if err != nil { // TODO: Handle error. } // 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.(*stitcherpb.ListVodConfigsResponse) } }
Output:
Example (All) ¶
package main import ( "context" stitcher "cloud.google.com/go/video/stitcher/apiv1" stitcherpb "cloud.google.com/go/video/stitcher/apiv1/stitcherpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := stitcher.NewVideoStitcherClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &stitcherpb.ListVodConfigsRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/video/stitcher/apiv1/stitcherpb#ListVodConfigsRequest. } for resp, err := range c.ListVodConfigs(ctx, req).All() { if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*VideoStitcherClient) ListVodStitchDetails ¶
func (c *VideoStitcherClient) ListVodStitchDetails(ctx context.Context, req *stitcherpb.ListVodStitchDetailsRequest, opts ...gax.CallOption) *VodStitchDetailIterator
ListVodStitchDetails returns a list of detailed stitching information of the specified VOD session.
Example ¶
package main import ( "context" stitcher "cloud.google.com/go/video/stitcher/apiv1" stitcherpb "cloud.google.com/go/video/stitcher/apiv1/stitcherpb" "google.golang.org/api/iterator" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options 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/cloud.google.com/go/video/stitcher/apiv1/stitcherpb#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 // 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.(*stitcherpb.ListVodStitchDetailsResponse) } }
Output:
Example (All) ¶
package main import ( "context" stitcher "cloud.google.com/go/video/stitcher/apiv1" stitcherpb "cloud.google.com/go/video/stitcher/apiv1/stitcherpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options 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/cloud.google.com/go/video/stitcher/apiv1/stitcherpb#ListVodStitchDetailsRequest. } for resp, err := range c.ListVodStitchDetails(ctx, req).All() { if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp } }
Output:
func (*VideoStitcherClient) UpdateCdnKey ¶
func (c *VideoStitcherClient) UpdateCdnKey(ctx context.Context, req *stitcherpb.UpdateCdnKeyRequest, opts ...gax.CallOption) (*UpdateCdnKeyOperation, error)
UpdateCdnKey updates the specified CDN key. Only update fields specified in the call method body.
Example ¶
package main import ( "context" stitcher "cloud.google.com/go/video/stitcher/apiv1" stitcherpb "cloud.google.com/go/video/stitcher/apiv1/stitcherpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options 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/cloud.google.com/go/video/stitcher/apiv1/stitcherpb#UpdateCdnKeyRequest. } op, err := c.UpdateCdnKey(ctx, req) if err != nil { // TODO: Handle error. } resp, err := op.Wait(ctx) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*VideoStitcherClient) UpdateCdnKeyOperation ¶ added in v1.20.0
func (c *VideoStitcherClient) UpdateCdnKeyOperation(name string) *UpdateCdnKeyOperation
UpdateCdnKeyOperation returns a new UpdateCdnKeyOperation from a given name. The name must be that of a previously created UpdateCdnKeyOperation, possibly from a different process.
func (*VideoStitcherClient) UpdateLiveConfig ¶ added in v1.21.0
func (c *VideoStitcherClient) UpdateLiveConfig(ctx context.Context, req *stitcherpb.UpdateLiveConfigRequest, opts ...gax.CallOption) (*UpdateLiveConfigOperation, error)
UpdateLiveConfig updates the specified LiveConfig. Only update fields specified in the call method body.
Example ¶
package main import ( "context" stitcher "cloud.google.com/go/video/stitcher/apiv1" stitcherpb "cloud.google.com/go/video/stitcher/apiv1/stitcherpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := stitcher.NewVideoStitcherClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &stitcherpb.UpdateLiveConfigRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/video/stitcher/apiv1/stitcherpb#UpdateLiveConfigRequest. } op, err := c.UpdateLiveConfig(ctx, req) if err != nil { // TODO: Handle error. } resp, err := op.Wait(ctx) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*VideoStitcherClient) UpdateLiveConfigOperation ¶ added in v1.21.0
func (c *VideoStitcherClient) UpdateLiveConfigOperation(name string) *UpdateLiveConfigOperation
UpdateLiveConfigOperation returns a new UpdateLiveConfigOperation from a given name. The name must be that of a previously created UpdateLiveConfigOperation, possibly from a different process.
func (*VideoStitcherClient) UpdateSlate ¶
func (c *VideoStitcherClient) UpdateSlate(ctx context.Context, req *stitcherpb.UpdateSlateRequest, opts ...gax.CallOption) (*UpdateSlateOperation, error)
UpdateSlate updates the specified slate.
Example ¶
package main import ( "context" stitcher "cloud.google.com/go/video/stitcher/apiv1" stitcherpb "cloud.google.com/go/video/stitcher/apiv1/stitcherpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options 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/cloud.google.com/go/video/stitcher/apiv1/stitcherpb#UpdateSlateRequest. } op, err := c.UpdateSlate(ctx, req) if err != nil { // TODO: Handle error. } resp, err := op.Wait(ctx) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*VideoStitcherClient) UpdateSlateOperation ¶ added in v1.20.0
func (c *VideoStitcherClient) UpdateSlateOperation(name string) *UpdateSlateOperation
UpdateSlateOperation returns a new UpdateSlateOperation from a given name. The name must be that of a previously created UpdateSlateOperation, possibly from a different process.
func (*VideoStitcherClient) UpdateVodConfig ¶ added in v1.21.0
func (c *VideoStitcherClient) UpdateVodConfig(ctx context.Context, req *stitcherpb.UpdateVodConfigRequest, opts ...gax.CallOption) (*UpdateVodConfigOperation, error)
UpdateVodConfig updates the specified VOD config. Only update fields specified in the call method body.
Example ¶
package main import ( "context" stitcher "cloud.google.com/go/video/stitcher/apiv1" stitcherpb "cloud.google.com/go/video/stitcher/apiv1/stitcherpb" ) func main() { ctx := context.Background() // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in: // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options c, err := stitcher.NewVideoStitcherClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() req := &stitcherpb.UpdateVodConfigRequest{ // TODO: Fill request struct fields. // See https://pkg.go.dev/cloud.google.com/go/video/stitcher/apiv1/stitcherpb#UpdateVodConfigRequest. } op, err := c.UpdateVodConfig(ctx, req) if err != nil { // TODO: Handle error. } resp, err := op.Wait(ctx) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
func (*VideoStitcherClient) UpdateVodConfigOperation ¶ added in v1.21.0
func (c *VideoStitcherClient) UpdateVodConfigOperation(name string) *UpdateVodConfigOperation
UpdateVodConfigOperation returns a new UpdateVodConfigOperation from a given name. The name must be that of a previously created UpdateVodConfigOperation, possibly from a different process.
type VodAdTagDetailIterator ¶
type VodAdTagDetailIterator struct { // Response is the raw response for the current page. // It must be cast to the RPC response type. // Calling Next() or InternalFetch() updates this value. Response interface{} // InternalFetch is for use by the Google Cloud Libraries only. // It is not part of the stable interface of this package. // // InternalFetch returns results from a single call to the underlying RPC. // The number of results is no greater than pageSize. // If there are no more results, nextPageToken is empty and err is nil. InternalFetch func(pageSize int, pageToken string) (results []*stitcherpb.VodAdTagDetail, nextPageToken string, err error) // contains filtered or unexported fields }
VodAdTagDetailIterator manages a stream of *stitcherpb.VodAdTagDetail.
func (*VodAdTagDetailIterator) All ¶ added in v1.23.1
func (it *VodAdTagDetailIterator) All() iter.Seq2[*stitcherpb.VodAdTagDetail, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*VodAdTagDetailIterator) Next ¶
func (it *VodAdTagDetailIterator) Next() (*stitcherpb.VodAdTagDetail, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*VodAdTagDetailIterator) PageInfo ¶
func (it *VodAdTagDetailIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type VodConfigIterator ¶ added in v1.21.0
type VodConfigIterator struct { // Response is the raw response for the current page. // It must be cast to the RPC response type. // Calling Next() or InternalFetch() updates this value. Response interface{} // InternalFetch is for use by the Google Cloud Libraries only. // It is not part of the stable interface of this package. // // InternalFetch returns results from a single call to the underlying RPC. // The number of results is no greater than pageSize. // If there are no more results, nextPageToken is empty and err is nil. InternalFetch func(pageSize int, pageToken string) (results []*stitcherpb.VodConfig, nextPageToken string, err error) // contains filtered or unexported fields }
VodConfigIterator manages a stream of *stitcherpb.VodConfig.
func (*VodConfigIterator) All ¶ added in v1.23.1
func (it *VodConfigIterator) All() iter.Seq2[*stitcherpb.VodConfig, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*VodConfigIterator) Next ¶ added in v1.21.0
func (it *VodConfigIterator) Next() (*stitcherpb.VodConfig, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*VodConfigIterator) PageInfo ¶ added in v1.21.0
func (it *VodConfigIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type VodStitchDetailIterator ¶
type VodStitchDetailIterator struct { // Response is the raw response for the current page. // It must be cast to the RPC response type. // Calling Next() or InternalFetch() updates this value. Response interface{} // InternalFetch is for use by the Google Cloud Libraries only. // It is not part of the stable interface of this package. // // InternalFetch returns results from a single call to the underlying RPC. // The number of results is no greater than pageSize. // If there are no more results, nextPageToken is empty and err is nil. InternalFetch func(pageSize int, pageToken string) (results []*stitcherpb.VodStitchDetail, nextPageToken string, err error) // contains filtered or unexported fields }
VodStitchDetailIterator manages a stream of *stitcherpb.VodStitchDetail.
func (*VodStitchDetailIterator) All ¶ added in v1.23.1
func (it *VodStitchDetailIterator) All() iter.Seq2[*stitcherpb.VodStitchDetail, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*VodStitchDetailIterator) Next ¶
func (it *VodStitchDetailIterator) Next() (*stitcherpb.VodStitchDetail, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*VodStitchDetailIterator) PageInfo ¶
func (it *VodStitchDetailIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.