Class VideoStitcherServiceClient
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
This class provides the ability to make remote calls to the backing service through method calls that map to API methods. Sample code to get started:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
CdnKeyName name = CdnKeyName.of("[PROJECT]", "[LOCATION]", "[CDN_KEY]");
CdnKey response = videoStitcherServiceClient.getCdnKey(name);
}
Note: close() needs to be called on the VideoStitcherServiceClient object to clean up resources such as threads. In the example above, try-with-resources is used, which automatically calls close().
| Method | Description | Method Variants |
|---|---|---|
CreateCdnKey |
Creates a new CDN key. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListCdnKeys |
Lists all CDN keys in the specified project and location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetCdnKey |
Returns the specified CDN key. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
DeleteCdnKey |
Deletes the specified CDN key. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
UpdateCdnKey |
Updates the specified CDN key. Only update fields specified in the call method body. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
CreateVodSession |
Creates a client side playback VOD session and returns the full tracking and playback metadata of the session. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetVodSession |
Returns the full tracking, playback metadata, and relevant ad-ops logs for the specified VOD session. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListVodStitchDetails |
Returns a list of detailed stitching information of the specified VOD session. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetVodStitchDetail |
Returns the specified stitching information for the specified VOD session. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListVodAdTagDetails |
Return the list of ad tag details for the specified VOD session. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetVodAdTagDetail |
Returns the specified ad tag detail for the specified VOD session. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListLiveAdTagDetails |
Return the list of ad tag details for the specified live session. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetLiveAdTagDetail |
Returns the specified ad tag detail for the specified live session. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
CreateSlate |
Creates a slate. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListSlates |
Lists all slates in the specified project and location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetSlate |
Returns the specified slate. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
UpdateSlate |
Updates the specified slate. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
DeleteSlate |
Deletes the specified slate. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
CreateLiveSession |
Creates a new live session. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetLiveSession |
Returns the details for the specified live session. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
CreateLiveConfig |
Registers the live config with the provided unique ID in the specified region. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListLiveConfigs |
Lists all live configs managed by the Video Stitcher that belong to the specified project and region. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetLiveConfig |
Returns the specified live config managed by the Video Stitcher service. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
DeleteLiveConfig |
Deletes the specified live config. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
UpdateLiveConfig |
Updates the specified LiveConfig. Only update fields specified in the call method body. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
CreateVodConfig |
Registers the VOD config with the provided unique ID in the specified region. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListVodConfigs |
Lists all VOD configs managed by the Video Stitcher API that belong to the specified project and region. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetVodConfig |
Returns the specified VOD config managed by the Video Stitcher API service. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
DeleteVodConfig |
Deletes the specified VOD config. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
UpdateVodConfig |
Updates the specified VOD config. Only update fields specified in the call method body. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
See the individual methods for example code.
Many parameters require resource names to be formatted in a particular way. To assist with these names, this class includes a format method for each type of name, and additionally a parse method to extract the individual identifiers contained within names that are returned.
This class can be customized by passing in a custom instance of VideoStitcherServiceSettings to create(). For example:
To customize credentials:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
VideoStitcherServiceSettings videoStitcherServiceSettings =
VideoStitcherServiceSettings.newBuilder()
.setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
.build();
VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create(videoStitcherServiceSettings);
To customize the endpoint:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
VideoStitcherServiceSettings videoStitcherServiceSettings =
VideoStitcherServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create(videoStitcherServiceSettings);
Please refer to the GitHub repository's samples for more quickstart code snippets.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic class -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedConstructs an instance of VideoStitcherServiceClient, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final VideoStitcherServiceClientcreate()Constructs an instance of VideoStitcherServiceClient with default settings.static final VideoStitcherServiceClientConstructs an instance of VideoStitcherServiceClient, using the given stub for making calls.static final VideoStitcherServiceClientcreate(VideoStitcherServiceSettings settings) Constructs an instance of VideoStitcherServiceClient, using the given settings.createCdnKeyAsync(CreateCdnKeyRequest request) Creates a new CDN key.createCdnKeyAsync(LocationName parent, CdnKey cdnKey, String cdnKeyId) Creates a new CDN key.createCdnKeyAsync(String parent, CdnKey cdnKey, String cdnKeyId) Creates a new CDN key.Creates a new CDN key.Creates a new CDN key.Registers the live config with the provided unique ID in the specified region.createLiveConfigAsync(LocationName parent, LiveConfig liveConfig, String liveConfigId) Registers the live config with the provided unique ID in the specified region.createLiveConfigAsync(String parent, LiveConfig liveConfig, String liveConfigId) Registers the live config with the provided unique ID in the specified region.Registers the live config with the provided unique ID in the specified region.Registers the live config with the provided unique ID in the specified region.final LiveSessionCreates a new live session.final LiveSessioncreateLiveSession(LocationName parent, LiveSession liveSession) Creates a new live session.final LiveSessioncreateLiveSession(String parent, LiveSession liveSession) Creates a new live session.Creates a new live session.createSlateAsync(CreateSlateRequest request) Creates a slate.createSlateAsync(LocationName parent, Slate slate, String slateId) Creates a slate.createSlateAsync(String parent, Slate slate, String slateId) Creates a slate.Creates a slate.Creates a slate.Registers the VOD config with the provided unique ID in the specified region.createVodConfigAsync(LocationName parent, VodConfig vodConfig, String vodConfigId) Registers the VOD config with the provided unique ID in the specified region.createVodConfigAsync(String parent, VodConfig vodConfig, String vodConfigId) Registers the VOD config with the provided unique ID in the specified region.Registers the VOD config with the provided unique ID in the specified region.Registers the VOD config with the provided unique ID in the specified region.final VodSessioncreateVodSession(CreateVodSessionRequest request) Creates a client side playback VOD session and returns the full tracking and playback metadata of the session.final VodSessioncreateVodSession(LocationName parent, VodSession vodSession) Creates a client side playback VOD session and returns the full tracking and playback metadata of the session.final VodSessioncreateVodSession(String parent, VodSession vodSession) Creates a client side playback VOD session and returns the full tracking and playback metadata of the session.Creates a client side playback VOD session and returns the full tracking and playback metadata of the session.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteCdnKeyAsync(CdnKeyName name) Deletes the specified CDN key.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteCdnKeyAsync(DeleteCdnKeyRequest request) Deletes the specified CDN key.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteCdnKeyAsync(String name) Deletes the specified CDN key.Deletes the specified CDN key.final OperationCallable<DeleteCdnKeyRequest,com.google.protobuf.Empty, OperationMetadata> Deletes the specified CDN key.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> Deletes the specified live config.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> Deletes the specified live config.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteLiveConfigAsync(String name) Deletes the specified live config.Deletes the specified live config.final OperationCallable<DeleteLiveConfigRequest,com.google.protobuf.Empty, OperationMetadata> Deletes the specified live config.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteSlateAsync(DeleteSlateRequest request) Deletes the specified slate.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteSlateAsync(SlateName name) Deletes the specified slate.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteSlateAsync(String name) Deletes the specified slate.Deletes the specified slate.final OperationCallable<DeleteSlateRequest,com.google.protobuf.Empty, OperationMetadata> Deletes the specified slate.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> Deletes the specified VOD config.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> Deletes the specified VOD config.final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteVodConfigAsync(String name) Deletes the specified VOD config.Deletes the specified VOD config.final OperationCallable<DeleteVodConfigRequest,com.google.protobuf.Empty, OperationMetadata> Deletes the specified VOD config.final CdnKeygetCdnKey(CdnKeyName name) Returns the specified CDN key.final CdnKeygetCdnKey(GetCdnKeyRequest request) Returns the specified CDN key.final CdnKeyReturns the specified CDN key.final UnaryCallable<GetCdnKeyRequest,CdnKey> Returns the specified CDN key.final LiveAdTagDetailReturns the specified ad tag detail for the specified live session.final LiveAdTagDetailReturns the specified ad tag detail for the specified live session.final LiveAdTagDetailgetLiveAdTagDetail(String name) Returns the specified ad tag detail for the specified live session.Returns the specified ad tag detail for the specified live session.final LiveConfiggetLiveConfig(GetLiveConfigRequest request) Returns the specified live config managed by the Video Stitcher service.final LiveConfiggetLiveConfig(LiveConfigName name) Returns the specified live config managed by the Video Stitcher service.final LiveConfiggetLiveConfig(String name) Returns the specified live config managed by the Video Stitcher service.Returns the specified live config managed by the Video Stitcher service.final LiveSessiongetLiveSession(GetLiveSessionRequest request) Returns the details for the specified live session.final LiveSessionReturns the details for the specified live session.final LiveSessiongetLiveSession(String name) Returns the details for the specified live session.Returns the details for the specified live session.final OperationsClientReturns the OperationsClient that can be used to query the status of a long-running operation returned by another API method call.final SlategetSlate(GetSlateRequest request) Returns the specified slate.final SlateReturns the specified slate.final SlateReturns the specified slate.final UnaryCallable<GetSlateRequest,Slate> Returns the specified slate.getStub()final VodAdTagDetailReturns the specified ad tag detail for the specified VOD session.final VodAdTagDetailReturns the specified ad tag detail for the specified VOD session.final VodAdTagDetailgetVodAdTagDetail(String name) Returns the specified ad tag detail for the specified VOD session.Returns the specified ad tag detail for the specified VOD session.final VodConfiggetVodConfig(GetVodConfigRequest request) Returns the specified VOD config managed by the Video Stitcher API service.final VodConfiggetVodConfig(VodConfigName name) Returns the specified VOD config managed by the Video Stitcher API service.final VodConfiggetVodConfig(String name) Returns the specified VOD config managed by the Video Stitcher API service.Returns the specified VOD config managed by the Video Stitcher API service.final VodSessiongetVodSession(GetVodSessionRequest request) Returns the full tracking, playback metadata, and relevant ad-ops logs for the specified VOD session.final VodSessiongetVodSession(VodSessionName name) Returns the full tracking, playback metadata, and relevant ad-ops logs for the specified VOD session.final VodSessiongetVodSession(String name) Returns the full tracking, playback metadata, and relevant ad-ops logs for the specified VOD session.Returns the full tracking, playback metadata, and relevant ad-ops logs for the specified VOD session.final VodStitchDetailReturns the specified stitching information for the specified VOD session.final VodStitchDetailReturns the specified stitching information for the specified VOD session.final VodStitchDetailgetVodStitchDetail(String name) Returns the specified stitching information for the specified VOD session.Returns the specified stitching information for the specified VOD session.booleanbooleanlistCdnKeys(ListCdnKeysRequest request) Lists all CDN keys in the specified project and location.listCdnKeys(LocationName parent) Lists all CDN keys in the specified project and location.listCdnKeys(String parent) Lists all CDN keys in the specified project and location.Lists all CDN keys in the specified project and location.Lists all CDN keys in the specified project and location.Return the list of ad tag details for the specified live session.listLiveAdTagDetails(LiveSessionName parent) Return the list of ad tag details for the specified live session.listLiveAdTagDetails(String parent) Return the list of ad tag details for the specified live session.Return the list of ad tag details for the specified live session.final UnaryCallable<ListLiveAdTagDetailsRequest,VideoStitcherServiceClient.ListLiveAdTagDetailsPagedResponse> Return the list of ad tag details for the specified live session.listLiveConfigs(ListLiveConfigsRequest request) Lists all live configs managed by the Video Stitcher that belong to the specified project and region.listLiveConfigs(LocationName parent) Lists all live configs managed by the Video Stitcher that belong to the specified project and region.listLiveConfigs(String parent) Lists all live configs managed by the Video Stitcher that belong to the specified project and region.Lists all live configs managed by the Video Stitcher that belong to the specified project and region.Lists all live configs managed by the Video Stitcher that belong to the specified project and region.listSlates(ListSlatesRequest request) Lists all slates in the specified project and location.listSlates(LocationName parent) Lists all slates in the specified project and location.listSlates(String parent) Lists all slates in the specified project and location.Lists all slates in the specified project and location.Lists all slates in the specified project and location.Return the list of ad tag details for the specified VOD session.listVodAdTagDetails(VodSessionName parent) Return the list of ad tag details for the specified VOD session.listVodAdTagDetails(String parent) Return the list of ad tag details for the specified VOD session.Return the list of ad tag details for the specified VOD session.final UnaryCallable<ListVodAdTagDetailsRequest,VideoStitcherServiceClient.ListVodAdTagDetailsPagedResponse> Return the list of ad tag details for the specified VOD session.listVodConfigs(ListVodConfigsRequest request) Lists all VOD configs managed by the Video Stitcher API that belong to the specified project and region.listVodConfigs(LocationName parent) Lists all VOD configs managed by the Video Stitcher API that belong to the specified project and region.listVodConfigs(String parent) Lists all VOD configs managed by the Video Stitcher API that belong to the specified project and region.Lists all VOD configs managed by the Video Stitcher API that belong to the specified project and region.Lists all VOD configs managed by the Video Stitcher API that belong to the specified project and region.Returns a list of detailed stitching information of the specified VOD session.listVodStitchDetails(VodSessionName parent) Returns a list of detailed stitching information of the specified VOD session.listVodStitchDetails(String parent) Returns a list of detailed stitching information of the specified VOD session.Returns a list of detailed stitching information of the specified VOD session.final UnaryCallable<ListVodStitchDetailsRequest,VideoStitcherServiceClient.ListVodStitchDetailsPagedResponse> Returns a list of detailed stitching information of the specified VOD session.voidshutdown()voidupdateCdnKeyAsync(CdnKey cdnKey, com.google.protobuf.FieldMask updateMask) Updates the specified CDN key.updateCdnKeyAsync(UpdateCdnKeyRequest request) Updates the specified CDN key.Updates the specified CDN key.Updates the specified CDN key.updateLiveConfigAsync(LiveConfig liveConfig, com.google.protobuf.FieldMask updateMask) Updates the specified LiveConfig.Updates the specified LiveConfig.Updates the specified LiveConfig.Updates the specified LiveConfig.updateSlateAsync(Slate slate, com.google.protobuf.FieldMask updateMask) Updates the specified slate.updateSlateAsync(UpdateSlateRequest request) Updates the specified slate.Updates the specified slate.Updates the specified slate.Updates the specified VOD config.updateVodConfigAsync(VodConfig vodConfig, com.google.protobuf.FieldMask updateMask) Updates the specified VOD config.Updates the specified VOD config.Updates the specified VOD config.
-
Constructor Details
-
VideoStitcherServiceClient
Constructs an instance of VideoStitcherServiceClient, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.- Throws:
IOException
-
VideoStitcherServiceClient
-
-
Method Details
-
create
Constructs an instance of VideoStitcherServiceClient with default settings.- Throws:
IOException
-
create
public static final VideoStitcherServiceClient create(VideoStitcherServiceSettings settings) throws IOException Constructs an instance of VideoStitcherServiceClient, using the given settings. The channels are created based on the settings passed in, or defaults for any settings that are not set.- Throws:
IOException
-
create
Constructs an instance of VideoStitcherServiceClient, using the given stub for making calls. This is for advanced usage - prefer using create(VideoStitcherServiceSettings). -
getSettings
-
getStub
-
getOperationsClient
Returns the OperationsClient that can be used to query the status of a long-running operation returned by another API method call. -
createCdnKeyAsync
public final OperationFuture<CdnKey,OperationMetadata> createCdnKeyAsync(LocationName parent, CdnKey cdnKey, String cdnKeyId) Creates a new CDN key.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); CdnKey cdnKey = CdnKey.newBuilder().build(); String cdnKeyId = "cdnKeyId-1777782867"; CdnKey response = videoStitcherServiceClient.createCdnKeyAsync(parent, cdnKey, cdnKeyId).get(); }- Parameters:
parent- Required. The project in which the CDN key should be created, in the form of `projects/{project_number}/locations/{location}`.cdnKey- Required. The CDN key resource to create.cdnKeyId- Required. The ID to use for the CDN key, which will become the final component of the CDN key's resource name.This value should conform to RFC-1034, which restricts to lower-case letters, numbers, and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum.
- Throws:
ApiException- if the remote call fails
-
createCdnKeyAsync
public final OperationFuture<CdnKey,OperationMetadata> createCdnKeyAsync(String parent, CdnKey cdnKey, String cdnKeyId) Creates a new CDN key.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); CdnKey cdnKey = CdnKey.newBuilder().build(); String cdnKeyId = "cdnKeyId-1777782867"; CdnKey response = videoStitcherServiceClient.createCdnKeyAsync(parent, cdnKey, cdnKeyId).get(); }- Parameters:
parent- Required. The project in which the CDN key should be created, in the form of `projects/{project_number}/locations/{location}`.cdnKey- Required. The CDN key resource to create.cdnKeyId- Required. The ID to use for the CDN key, which will become the final component of the CDN key's resource name.This value should conform to RFC-1034, which restricts to lower-case letters, numbers, and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum.
- Throws:
ApiException- if the remote call fails
-
createCdnKeyAsync
public final OperationFuture<CdnKey,OperationMetadata> createCdnKeyAsync(CreateCdnKeyRequest request) Creates a new CDN key.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { CreateCdnKeyRequest request = CreateCdnKeyRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setCdnKey(CdnKey.newBuilder().build()) .setCdnKeyId("cdnKeyId-1777782867") .build(); CdnKey response = videoStitcherServiceClient.createCdnKeyAsync(request).get(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
createCdnKeyOperationCallable
public final OperationCallable<CreateCdnKeyRequest,CdnKey, createCdnKeyOperationCallable()OperationMetadata> Creates a new CDN key.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { CreateCdnKeyRequest request = CreateCdnKeyRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setCdnKey(CdnKey.newBuilder().build()) .setCdnKeyId("cdnKeyId-1777782867") .build(); OperationFuture<CdnKey, OperationMetadata> future = videoStitcherServiceClient.createCdnKeyOperationCallable().futureCall(request); // Do something. CdnKey response = future.get(); } -
createCdnKeyCallable
Creates a new CDN key.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { CreateCdnKeyRequest request = CreateCdnKeyRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setCdnKey(CdnKey.newBuilder().build()) .setCdnKeyId("cdnKeyId-1777782867") .build(); ApiFuture<Operation> future = videoStitcherServiceClient.createCdnKeyCallable().futureCall(request); // Do something. Operation response = future.get(); } -
listCdnKeys
Lists all CDN keys in the specified project and location.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); for (CdnKey element : videoStitcherServiceClient.listCdnKeys(parent).iterateAll()) { // doThingsWith(element); } }- Parameters:
parent- Required. The project that contains the list of CDN keys, in the form of `projects/{project_number}/locations/{location}`.- Throws:
ApiException- if the remote call fails
-
listCdnKeys
Lists all CDN keys in the specified project and location.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); for (CdnKey element : videoStitcherServiceClient.listCdnKeys(parent).iterateAll()) { // doThingsWith(element); } }- Parameters:
parent- Required. The project that contains the list of CDN keys, in the form of `projects/{project_number}/locations/{location}`.- Throws:
ApiException- if the remote call fails
-
listCdnKeys
public final VideoStitcherServiceClient.ListCdnKeysPagedResponse listCdnKeys(ListCdnKeysRequest request) Lists all CDN keys in the specified project and location.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { ListCdnKeysRequest request = ListCdnKeysRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") .setOrderBy("orderBy-1207110587") .build(); for (CdnKey element : videoStitcherServiceClient.listCdnKeys(request).iterateAll()) { // doThingsWith(element); } }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
listCdnKeysPagedCallable
public final UnaryCallable<ListCdnKeysRequest,VideoStitcherServiceClient.ListCdnKeysPagedResponse> listCdnKeysPagedCallable()Lists all CDN keys in the specified project and location.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { ListCdnKeysRequest request = ListCdnKeysRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") .setOrderBy("orderBy-1207110587") .build(); ApiFuture<CdnKey> future = videoStitcherServiceClient.listCdnKeysPagedCallable().futureCall(request); // Do something. for (CdnKey element : future.get().iterateAll()) { // doThingsWith(element); } } -
listCdnKeysCallable
Lists all CDN keys in the specified project and location.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { ListCdnKeysRequest request = ListCdnKeysRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") .setOrderBy("orderBy-1207110587") .build(); while (true) { ListCdnKeysResponse response = videoStitcherServiceClient.listCdnKeysCallable().call(request); for (CdnKey element : response.getCdnKeysList()) { // doThingsWith(element); } String nextPageToken = response.getNextPageToken(); if (!Strings.isNullOrEmpty(nextPageToken)) { request = request.toBuilder().setPageToken(nextPageToken).build(); } else { break; } } } -
getCdnKey
Returns the specified CDN key.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { CdnKeyName name = CdnKeyName.of("[PROJECT]", "[LOCATION]", "[CDN_KEY]"); CdnKey response = videoStitcherServiceClient.getCdnKey(name); }- Parameters:
name- Required. The name of the CDN key to be retrieved, in the form of `projects/{project}/locations/{location}/cdnKeys/{id}`.- Throws:
ApiException- if the remote call fails
-
getCdnKey
Returns the specified CDN key.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { String name = CdnKeyName.of("[PROJECT]", "[LOCATION]", "[CDN_KEY]").toString(); CdnKey response = videoStitcherServiceClient.getCdnKey(name); }- Parameters:
name- Required. The name of the CDN key to be retrieved, in the form of `projects/{project}/locations/{location}/cdnKeys/{id}`.- Throws:
ApiException- if the remote call fails
-
getCdnKey
Returns the specified CDN key.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { GetCdnKeyRequest request = GetCdnKeyRequest.newBuilder() .setName(CdnKeyName.of("[PROJECT]", "[LOCATION]", "[CDN_KEY]").toString()) .build(); CdnKey response = videoStitcherServiceClient.getCdnKey(request); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
getCdnKeyCallable
Returns the specified CDN key.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { GetCdnKeyRequest request = GetCdnKeyRequest.newBuilder() .setName(CdnKeyName.of("[PROJECT]", "[LOCATION]", "[CDN_KEY]").toString()) .build(); ApiFuture<CdnKey> future = videoStitcherServiceClient.getCdnKeyCallable().futureCall(request); // Do something. CdnKey response = future.get(); } -
deleteCdnKeyAsync
public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteCdnKeyAsync(CdnKeyName name) Deletes the specified CDN key.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { CdnKeyName name = CdnKeyName.of("[PROJECT]", "[LOCATION]", "[CDN_KEY]"); videoStitcherServiceClient.deleteCdnKeyAsync(name).get(); }- Parameters:
name- Required. The name of the CDN key to be deleted, in the form of `projects/{project_number}/locations/{location}/cdnKeys/{id}`.- Throws:
ApiException- if the remote call fails
-
deleteCdnKeyAsync
public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteCdnKeyAsync(String name) Deletes the specified CDN key.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { String name = CdnKeyName.of("[PROJECT]", "[LOCATION]", "[CDN_KEY]").toString(); videoStitcherServiceClient.deleteCdnKeyAsync(name).get(); }- Parameters:
name- Required. The name of the CDN key to be deleted, in the form of `projects/{project_number}/locations/{location}/cdnKeys/{id}`.- Throws:
ApiException- if the remote call fails
-
deleteCdnKeyAsync
public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteCdnKeyAsync(DeleteCdnKeyRequest request) Deletes the specified CDN key.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { DeleteCdnKeyRequest request = DeleteCdnKeyRequest.newBuilder() .setName(CdnKeyName.of("[PROJECT]", "[LOCATION]", "[CDN_KEY]").toString()) .build(); videoStitcherServiceClient.deleteCdnKeyAsync(request).get(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
deleteCdnKeyOperationCallable
public final OperationCallable<DeleteCdnKeyRequest,com.google.protobuf.Empty, deleteCdnKeyOperationCallable()OperationMetadata> Deletes the specified CDN key.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { DeleteCdnKeyRequest request = DeleteCdnKeyRequest.newBuilder() .setName(CdnKeyName.of("[PROJECT]", "[LOCATION]", "[CDN_KEY]").toString()) .build(); OperationFuture<Empty, OperationMetadata> future = videoStitcherServiceClient.deleteCdnKeyOperationCallable().futureCall(request); // Do something. future.get(); } -
deleteCdnKeyCallable
Deletes the specified CDN key.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { DeleteCdnKeyRequest request = DeleteCdnKeyRequest.newBuilder() .setName(CdnKeyName.of("[PROJECT]", "[LOCATION]", "[CDN_KEY]").toString()) .build(); ApiFuture<Operation> future = videoStitcherServiceClient.deleteCdnKeyCallable().futureCall(request); // Do something. future.get(); } -
updateCdnKeyAsync
public final OperationFuture<CdnKey,OperationMetadata> updateCdnKeyAsync(CdnKey cdnKey, com.google.protobuf.FieldMask updateMask) Updates the specified CDN key. Only update fields specified in the call method body.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { CdnKey cdnKey = CdnKey.newBuilder().build(); FieldMask updateMask = FieldMask.newBuilder().build(); CdnKey response = videoStitcherServiceClient.updateCdnKeyAsync(cdnKey, updateMask).get(); }- Parameters:
cdnKey- Required. The CDN key resource which replaces the resource on the server.updateMask- Required. The update mask applies to the resource. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask- Throws:
ApiException- if the remote call fails
-
updateCdnKeyAsync
public final OperationFuture<CdnKey,OperationMetadata> updateCdnKeyAsync(UpdateCdnKeyRequest request) Updates the specified CDN key. Only update fields specified in the call method body.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { UpdateCdnKeyRequest request = UpdateCdnKeyRequest.newBuilder() .setCdnKey(CdnKey.newBuilder().build()) .setUpdateMask(FieldMask.newBuilder().build()) .build(); CdnKey response = videoStitcherServiceClient.updateCdnKeyAsync(request).get(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
updateCdnKeyOperationCallable
public final OperationCallable<UpdateCdnKeyRequest,CdnKey, updateCdnKeyOperationCallable()OperationMetadata> Updates the specified CDN key. Only update fields specified in the call method body.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { UpdateCdnKeyRequest request = UpdateCdnKeyRequest.newBuilder() .setCdnKey(CdnKey.newBuilder().build()) .setUpdateMask(FieldMask.newBuilder().build()) .build(); OperationFuture<CdnKey, OperationMetadata> future = videoStitcherServiceClient.updateCdnKeyOperationCallable().futureCall(request); // Do something. CdnKey response = future.get(); } -
updateCdnKeyCallable
Updates the specified CDN key. Only update fields specified in the call method body.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { UpdateCdnKeyRequest request = UpdateCdnKeyRequest.newBuilder() .setCdnKey(CdnKey.newBuilder().build()) .setUpdateMask(FieldMask.newBuilder().build()) .build(); ApiFuture<Operation> future = videoStitcherServiceClient.updateCdnKeyCallable().futureCall(request); // Do something. Operation response = future.get(); } -
createVodSession
Creates a client side playback VOD session and returns the full tracking and playback metadata of the session.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); VodSession vodSession = VodSession.newBuilder().build(); VodSession response = videoStitcherServiceClient.createVodSession(parent, vodSession); }- Parameters:
parent- Required. The project and location in which the VOD session should be created, in the form of `projects/{project_number}/locations/{location}`.vodSession- Required. Parameters for creating a session.- Throws:
ApiException- if the remote call fails
-
createVodSession
Creates a client side playback VOD session and returns the full tracking and playback metadata of the session.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); VodSession vodSession = VodSession.newBuilder().build(); VodSession response = videoStitcherServiceClient.createVodSession(parent, vodSession); }- Parameters:
parent- Required. The project and location in which the VOD session should be created, in the form of `projects/{project_number}/locations/{location}`.vodSession- Required. Parameters for creating a session.- Throws:
ApiException- if the remote call fails
-
createVodSession
Creates a client side playback VOD session and returns the full tracking and playback metadata of the session.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { CreateVodSessionRequest request = CreateVodSessionRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setVodSession(VodSession.newBuilder().build()) .build(); VodSession response = videoStitcherServiceClient.createVodSession(request); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
createVodSessionCallable
Creates a client side playback VOD session and returns the full tracking and playback metadata of the session.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { CreateVodSessionRequest request = CreateVodSessionRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setVodSession(VodSession.newBuilder().build()) .build(); ApiFuture<VodSession> future = videoStitcherServiceClient.createVodSessionCallable().futureCall(request); // Do something. VodSession response = future.get(); } -
getVodSession
Returns the full tracking, playback metadata, and relevant ad-ops logs for the specified VOD session.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { VodSessionName name = VodSessionName.of("[PROJECT]", "[LOCATION]", "[VOD_SESSION]"); VodSession response = videoStitcherServiceClient.getVodSession(name); }- Parameters:
name- Required. The name of the VOD session to be retrieved, in the form of `projects/{project_number}/locations/{location}/vodSessions/{id}`.- Throws:
ApiException- if the remote call fails
-
getVodSession
Returns the full tracking, playback metadata, and relevant ad-ops logs for the specified VOD session.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { String name = VodSessionName.of("[PROJECT]", "[LOCATION]", "[VOD_SESSION]").toString(); VodSession response = videoStitcherServiceClient.getVodSession(name); }- Parameters:
name- Required. The name of the VOD session to be retrieved, in the form of `projects/{project_number}/locations/{location}/vodSessions/{id}`.- Throws:
ApiException- if the remote call fails
-
getVodSession
Returns the full tracking, playback metadata, and relevant ad-ops logs for the specified VOD session.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { GetVodSessionRequest request = GetVodSessionRequest.newBuilder() .setName(VodSessionName.of("[PROJECT]", "[LOCATION]", "[VOD_SESSION]").toString()) .build(); VodSession response = videoStitcherServiceClient.getVodSession(request); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
getVodSessionCallable
Returns the full tracking, playback metadata, and relevant ad-ops logs for the specified VOD session.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { GetVodSessionRequest request = GetVodSessionRequest.newBuilder() .setName(VodSessionName.of("[PROJECT]", "[LOCATION]", "[VOD_SESSION]").toString()) .build(); ApiFuture<VodSession> future = videoStitcherServiceClient.getVodSessionCallable().futureCall(request); // Do something. VodSession response = future.get(); } -
listVodStitchDetails
public final VideoStitcherServiceClient.ListVodStitchDetailsPagedResponse listVodStitchDetails(VodSessionName parent) Returns a list of detailed stitching information of the specified VOD session.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { VodSessionName parent = VodSessionName.of("[PROJECT]", "[LOCATION]", "[VOD_SESSION]"); for (VodStitchDetail element : videoStitcherServiceClient.listVodStitchDetails(parent).iterateAll()) { // doThingsWith(element); } }- Parameters:
parent- Required. The VOD session where the stitch details belong to, in the form of `projects/{project}/locations/{location}/vodSessions/{id}`.- Throws:
ApiException- if the remote call fails
-
listVodStitchDetails
public final VideoStitcherServiceClient.ListVodStitchDetailsPagedResponse listVodStitchDetails(String parent) Returns a list of detailed stitching information of the specified VOD session.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { String parent = VodSessionName.of("[PROJECT]", "[LOCATION]", "[VOD_SESSION]").toString(); for (VodStitchDetail element : videoStitcherServiceClient.listVodStitchDetails(parent).iterateAll()) { // doThingsWith(element); } }- Parameters:
parent- Required. The VOD session where the stitch details belong to, in the form of `projects/{project}/locations/{location}/vodSessions/{id}`.- Throws:
ApiException- if the remote call fails
-
listVodStitchDetails
public final VideoStitcherServiceClient.ListVodStitchDetailsPagedResponse listVodStitchDetails(ListVodStitchDetailsRequest request) Returns a list of detailed stitching information of the specified VOD session.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { ListVodStitchDetailsRequest request = ListVodStitchDetailsRequest.newBuilder() .setParent(VodSessionName.of("[PROJECT]", "[LOCATION]", "[VOD_SESSION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .build(); for (VodStitchDetail element : videoStitcherServiceClient.listVodStitchDetails(request).iterateAll()) { // doThingsWith(element); } }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
listVodStitchDetailsPagedCallable
public final UnaryCallable<ListVodStitchDetailsRequest,VideoStitcherServiceClient.ListVodStitchDetailsPagedResponse> listVodStitchDetailsPagedCallable()Returns a list of detailed stitching information of the specified VOD session.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { ListVodStitchDetailsRequest request = ListVodStitchDetailsRequest.newBuilder() .setParent(VodSessionName.of("[PROJECT]", "[LOCATION]", "[VOD_SESSION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .build(); ApiFuture<VodStitchDetail> future = videoStitcherServiceClient.listVodStitchDetailsPagedCallable().futureCall(request); // Do something. for (VodStitchDetail element : future.get().iterateAll()) { // doThingsWith(element); } } -
listVodStitchDetailsCallable
public final UnaryCallable<ListVodStitchDetailsRequest,ListVodStitchDetailsResponse> listVodStitchDetailsCallable()Returns a list of detailed stitching information of the specified VOD session.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { ListVodStitchDetailsRequest request = ListVodStitchDetailsRequest.newBuilder() .setParent(VodSessionName.of("[PROJECT]", "[LOCATION]", "[VOD_SESSION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .build(); while (true) { ListVodStitchDetailsResponse response = videoStitcherServiceClient.listVodStitchDetailsCallable().call(request); for (VodStitchDetail element : response.getVodStitchDetailsList()) { // doThingsWith(element); } String nextPageToken = response.getNextPageToken(); if (!Strings.isNullOrEmpty(nextPageToken)) { request = request.toBuilder().setPageToken(nextPageToken).build(); } else { break; } } } -
getVodStitchDetail
Returns the specified stitching information for the specified VOD session.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { VodStitchDetailName name = VodStitchDetailName.of("[PROJECT]", "[LOCATION]", "[VOD_SESSION]", "[VOD_STITCH_DETAIL]"); VodStitchDetail response = videoStitcherServiceClient.getVodStitchDetail(name); }- Parameters:
name- Required. The name of the stitch detail in the specified VOD session, in the form of `projects/{project}/locations/{location}/vodSessions/{vod_session_id}/vodStitchDetails/{id}`.- Throws:
ApiException- if the remote call fails
-
getVodStitchDetail
Returns the specified stitching information for the specified VOD session.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { String name = VodStitchDetailName.of("[PROJECT]", "[LOCATION]", "[VOD_SESSION]", "[VOD_STITCH_DETAIL]") .toString(); VodStitchDetail response = videoStitcherServiceClient.getVodStitchDetail(name); }- Parameters:
name- Required. The name of the stitch detail in the specified VOD session, in the form of `projects/{project}/locations/{location}/vodSessions/{vod_session_id}/vodStitchDetails/{id}`.- Throws:
ApiException- if the remote call fails
-
getVodStitchDetail
Returns the specified stitching information for the specified VOD session.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { GetVodStitchDetailRequest request = GetVodStitchDetailRequest.newBuilder() .setName( VodStitchDetailName.of( "[PROJECT]", "[LOCATION]", "[VOD_SESSION]", "[VOD_STITCH_DETAIL]") .toString()) .build(); VodStitchDetail response = videoStitcherServiceClient.getVodStitchDetail(request); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
getVodStitchDetailCallable
Returns the specified stitching information for the specified VOD session.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { GetVodStitchDetailRequest request = GetVodStitchDetailRequest.newBuilder() .setName( VodStitchDetailName.of( "[PROJECT]", "[LOCATION]", "[VOD_SESSION]", "[VOD_STITCH_DETAIL]") .toString()) .build(); ApiFuture<VodStitchDetail> future = videoStitcherServiceClient.getVodStitchDetailCallable().futureCall(request); // Do something. VodStitchDetail response = future.get(); } -
listVodAdTagDetails
public final VideoStitcherServiceClient.ListVodAdTagDetailsPagedResponse listVodAdTagDetails(VodSessionName parent) Return the list of ad tag details for the specified VOD session.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { VodSessionName parent = VodSessionName.of("[PROJECT]", "[LOCATION]", "[VOD_SESSION]"); for (VodAdTagDetail element : videoStitcherServiceClient.listVodAdTagDetails(parent).iterateAll()) { // doThingsWith(element); } }- Parameters:
parent- Required. The VOD session which the ad tag details belong to, in the form of `projects/{project}/locations/{location}/vodSessions/{vod_session_id}`.- Throws:
ApiException- if the remote call fails
-
listVodAdTagDetails
public final VideoStitcherServiceClient.ListVodAdTagDetailsPagedResponse listVodAdTagDetails(String parent) Return the list of ad tag details for the specified VOD session.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { String parent = VodSessionName.of("[PROJECT]", "[LOCATION]", "[VOD_SESSION]").toString(); for (VodAdTagDetail element : videoStitcherServiceClient.listVodAdTagDetails(parent).iterateAll()) { // doThingsWith(element); } }- Parameters:
parent- Required. The VOD session which the ad tag details belong to, in the form of `projects/{project}/locations/{location}/vodSessions/{vod_session_id}`.- Throws:
ApiException- if the remote call fails
-
listVodAdTagDetails
public final VideoStitcherServiceClient.ListVodAdTagDetailsPagedResponse listVodAdTagDetails(ListVodAdTagDetailsRequest request) Return the list of ad tag details for the specified VOD session.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { ListVodAdTagDetailsRequest request = ListVodAdTagDetailsRequest.newBuilder() .setParent(VodSessionName.of("[PROJECT]", "[LOCATION]", "[VOD_SESSION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .build(); for (VodAdTagDetail element : videoStitcherServiceClient.listVodAdTagDetails(request).iterateAll()) { // doThingsWith(element); } }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
listVodAdTagDetailsPagedCallable
public final UnaryCallable<ListVodAdTagDetailsRequest,VideoStitcherServiceClient.ListVodAdTagDetailsPagedResponse> listVodAdTagDetailsPagedCallable()Return the list of ad tag details for the specified VOD session.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { ListVodAdTagDetailsRequest request = ListVodAdTagDetailsRequest.newBuilder() .setParent(VodSessionName.of("[PROJECT]", "[LOCATION]", "[VOD_SESSION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .build(); ApiFuture<VodAdTagDetail> future = videoStitcherServiceClient.listVodAdTagDetailsPagedCallable().futureCall(request); // Do something. for (VodAdTagDetail element : future.get().iterateAll()) { // doThingsWith(element); } } -
listVodAdTagDetailsCallable
public final UnaryCallable<ListVodAdTagDetailsRequest,ListVodAdTagDetailsResponse> listVodAdTagDetailsCallable()Return the list of ad tag details for the specified VOD session.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { ListVodAdTagDetailsRequest request = ListVodAdTagDetailsRequest.newBuilder() .setParent(VodSessionName.of("[PROJECT]", "[LOCATION]", "[VOD_SESSION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .build(); while (true) { ListVodAdTagDetailsResponse response = videoStitcherServiceClient.listVodAdTagDetailsCallable().call(request); for (VodAdTagDetail element : response.getVodAdTagDetailsList()) { // doThingsWith(element); } String nextPageToken = response.getNextPageToken(); if (!Strings.isNullOrEmpty(nextPageToken)) { request = request.toBuilder().setPageToken(nextPageToken).build(); } else { break; } } } -
getVodAdTagDetail
Returns the specified ad tag detail for the specified VOD session.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { VodAdTagDetailName name = VodAdTagDetailName.of("[PROJECT]", "[LOCATION]", "[VOD_SESSION]", "[VOD_AD_TAG_DETAIL]"); VodAdTagDetail response = videoStitcherServiceClient.getVodAdTagDetail(name); }- Parameters:
name- Required. The name of the ad tag detail for the specified VOD session, in the form of `projects/{project}/locations/{location}/vodSessions/{vod_session_id}/vodAdTagDetails/{vod_ad_tag_detail}`.- Throws:
ApiException- if the remote call fails
-
getVodAdTagDetail
Returns the specified ad tag detail for the specified VOD session.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { String name = VodAdTagDetailName.of("[PROJECT]", "[LOCATION]", "[VOD_SESSION]", "[VOD_AD_TAG_DETAIL]") .toString(); VodAdTagDetail response = videoStitcherServiceClient.getVodAdTagDetail(name); }- Parameters:
name- Required. The name of the ad tag detail for the specified VOD session, in the form of `projects/{project}/locations/{location}/vodSessions/{vod_session_id}/vodAdTagDetails/{vod_ad_tag_detail}`.- Throws:
ApiException- if the remote call fails
-
getVodAdTagDetail
Returns the specified ad tag detail for the specified VOD session.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { GetVodAdTagDetailRequest request = GetVodAdTagDetailRequest.newBuilder() .setName( VodAdTagDetailName.of( "[PROJECT]", "[LOCATION]", "[VOD_SESSION]", "[VOD_AD_TAG_DETAIL]") .toString()) .build(); VodAdTagDetail response = videoStitcherServiceClient.getVodAdTagDetail(request); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
getVodAdTagDetailCallable
Returns the specified ad tag detail for the specified VOD session.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { GetVodAdTagDetailRequest request = GetVodAdTagDetailRequest.newBuilder() .setName( VodAdTagDetailName.of( "[PROJECT]", "[LOCATION]", "[VOD_SESSION]", "[VOD_AD_TAG_DETAIL]") .toString()) .build(); ApiFuture<VodAdTagDetail> future = videoStitcherServiceClient.getVodAdTagDetailCallable().futureCall(request); // Do something. VodAdTagDetail response = future.get(); } -
listLiveAdTagDetails
public final VideoStitcherServiceClient.ListLiveAdTagDetailsPagedResponse listLiveAdTagDetails(LiveSessionName parent) Return the list of ad tag details for the specified live session.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { LiveSessionName parent = LiveSessionName.of("[PROJECT]", "[LOCATION]", "[LIVE_SESSION]"); for (LiveAdTagDetail element : videoStitcherServiceClient.listLiveAdTagDetails(parent).iterateAll()) { // doThingsWith(element); } }- Parameters:
parent- Required. The resource parent in the form of `projects/{project}/locations/{location}/liveSessions/{live_session}`.- Throws:
ApiException- if the remote call fails
-
listLiveAdTagDetails
public final VideoStitcherServiceClient.ListLiveAdTagDetailsPagedResponse listLiveAdTagDetails(String parent) Return the list of ad tag details for the specified live session.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { String parent = LiveSessionName.of("[PROJECT]", "[LOCATION]", "[LIVE_SESSION]").toString(); for (LiveAdTagDetail element : videoStitcherServiceClient.listLiveAdTagDetails(parent).iterateAll()) { // doThingsWith(element); } }- Parameters:
parent- Required. The resource parent in the form of `projects/{project}/locations/{location}/liveSessions/{live_session}`.- Throws:
ApiException- if the remote call fails
-
listLiveAdTagDetails
public final VideoStitcherServiceClient.ListLiveAdTagDetailsPagedResponse listLiveAdTagDetails(ListLiveAdTagDetailsRequest request) Return the list of ad tag details for the specified live session.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { ListLiveAdTagDetailsRequest request = ListLiveAdTagDetailsRequest.newBuilder() .setParent(LiveSessionName.of("[PROJECT]", "[LOCATION]", "[LIVE_SESSION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .build(); for (LiveAdTagDetail element : videoStitcherServiceClient.listLiveAdTagDetails(request).iterateAll()) { // doThingsWith(element); } }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
listLiveAdTagDetailsPagedCallable
public final UnaryCallable<ListLiveAdTagDetailsRequest,VideoStitcherServiceClient.ListLiveAdTagDetailsPagedResponse> listLiveAdTagDetailsPagedCallable()Return the list of ad tag details for the specified live session.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { ListLiveAdTagDetailsRequest request = ListLiveAdTagDetailsRequest.newBuilder() .setParent(LiveSessionName.of("[PROJECT]", "[LOCATION]", "[LIVE_SESSION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .build(); ApiFuture<LiveAdTagDetail> future = videoStitcherServiceClient.listLiveAdTagDetailsPagedCallable().futureCall(request); // Do something. for (LiveAdTagDetail element : future.get().iterateAll()) { // doThingsWith(element); } } -
listLiveAdTagDetailsCallable
public final UnaryCallable<ListLiveAdTagDetailsRequest,ListLiveAdTagDetailsResponse> listLiveAdTagDetailsCallable()Return the list of ad tag details for the specified live session.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { ListLiveAdTagDetailsRequest request = ListLiveAdTagDetailsRequest.newBuilder() .setParent(LiveSessionName.of("[PROJECT]", "[LOCATION]", "[LIVE_SESSION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .build(); while (true) { ListLiveAdTagDetailsResponse response = videoStitcherServiceClient.listLiveAdTagDetailsCallable().call(request); for (LiveAdTagDetail element : response.getLiveAdTagDetailsList()) { // doThingsWith(element); } String nextPageToken = response.getNextPageToken(); if (!Strings.isNullOrEmpty(nextPageToken)) { request = request.toBuilder().setPageToken(nextPageToken).build(); } else { break; } } } -
getLiveAdTagDetail
Returns the specified ad tag detail for the specified live session.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { LiveAdTagDetailName name = LiveAdTagDetailName.of( "[PROJECT]", "[LOCATION]", "[LIVE_SESSION]", "[LIVE_AD_TAG_DETAIL]"); LiveAdTagDetail response = videoStitcherServiceClient.getLiveAdTagDetail(name); }- Parameters:
name- Required. The resource name in the form of `projects/{project}/locations/{location}/liveSessions/{live_session}/liveAdTagDetails/{live_ad_tag_detail}`.- Throws:
ApiException- if the remote call fails
-
getLiveAdTagDetail
Returns the specified ad tag detail for the specified live session.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { String name = LiveAdTagDetailName.of( "[PROJECT]", "[LOCATION]", "[LIVE_SESSION]", "[LIVE_AD_TAG_DETAIL]") .toString(); LiveAdTagDetail response = videoStitcherServiceClient.getLiveAdTagDetail(name); }- Parameters:
name- Required. The resource name in the form of `projects/{project}/locations/{location}/liveSessions/{live_session}/liveAdTagDetails/{live_ad_tag_detail}`.- Throws:
ApiException- if the remote call fails
-
getLiveAdTagDetail
Returns the specified ad tag detail for the specified live session.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { GetLiveAdTagDetailRequest request = GetLiveAdTagDetailRequest.newBuilder() .setName( LiveAdTagDetailName.of( "[PROJECT]", "[LOCATION]", "[LIVE_SESSION]", "[LIVE_AD_TAG_DETAIL]") .toString()) .build(); LiveAdTagDetail response = videoStitcherServiceClient.getLiveAdTagDetail(request); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
getLiveAdTagDetailCallable
Returns the specified ad tag detail for the specified live session.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { GetLiveAdTagDetailRequest request = GetLiveAdTagDetailRequest.newBuilder() .setName( LiveAdTagDetailName.of( "[PROJECT]", "[LOCATION]", "[LIVE_SESSION]", "[LIVE_AD_TAG_DETAIL]") .toString()) .build(); ApiFuture<LiveAdTagDetail> future = videoStitcherServiceClient.getLiveAdTagDetailCallable().futureCall(request); // Do something. LiveAdTagDetail response = future.get(); } -
createSlateAsync
public final OperationFuture<Slate,OperationMetadata> createSlateAsync(LocationName parent, Slate slate, String slateId) Creates a slate.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); Slate slate = Slate.newBuilder().build(); String slateId = "slateId-2126174060"; Slate response = videoStitcherServiceClient.createSlateAsync(parent, slate, slateId).get(); }- Parameters:
parent- Required. The project in which the slate should be created, in the form of `projects/{project_number}/locations/{location}`.slate- Required. The slate to create.slateId- Required. The unique identifier for the slate. This value should conform to RFC-1034, which restricts to lower-case letters, numbers, and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum.- Throws:
ApiException- if the remote call fails
-
createSlateAsync
public final OperationFuture<Slate,OperationMetadata> createSlateAsync(String parent, Slate slate, String slateId) Creates a slate.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); Slate slate = Slate.newBuilder().build(); String slateId = "slateId-2126174060"; Slate response = videoStitcherServiceClient.createSlateAsync(parent, slate, slateId).get(); }- Parameters:
parent- Required. The project in which the slate should be created, in the form of `projects/{project_number}/locations/{location}`.slate- Required. The slate to create.slateId- Required. The unique identifier for the slate. This value should conform to RFC-1034, which restricts to lower-case letters, numbers, and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum.- Throws:
ApiException- if the remote call fails
-
createSlateAsync
Creates a slate.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { CreateSlateRequest request = CreateSlateRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setSlateId("slateId-2126174060") .setSlate(Slate.newBuilder().build()) .setRequestId("requestId693933066") .build(); Slate response = videoStitcherServiceClient.createSlateAsync(request).get(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
createSlateOperationCallable
public final OperationCallable<CreateSlateRequest,Slate, createSlateOperationCallable()OperationMetadata> Creates a slate.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { CreateSlateRequest request = CreateSlateRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setSlateId("slateId-2126174060") .setSlate(Slate.newBuilder().build()) .setRequestId("requestId693933066") .build(); OperationFuture<Slate, OperationMetadata> future = videoStitcherServiceClient.createSlateOperationCallable().futureCall(request); // Do something. Slate response = future.get(); } -
createSlateCallable
Creates a slate.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { CreateSlateRequest request = CreateSlateRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setSlateId("slateId-2126174060") .setSlate(Slate.newBuilder().build()) .setRequestId("requestId693933066") .build(); ApiFuture<Operation> future = videoStitcherServiceClient.createSlateCallable().futureCall(request); // Do something. Operation response = future.get(); } -
listSlates
Lists all slates in the specified project and location.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); for (Slate element : videoStitcherServiceClient.listSlates(parent).iterateAll()) { // doThingsWith(element); } }- Parameters:
parent- Required. The project to list slates, in the form of `projects/{project_number}/locations/{location}`.- Throws:
ApiException- if the remote call fails
-
listSlates
Lists all slates in the specified project and location.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); for (Slate element : videoStitcherServiceClient.listSlates(parent).iterateAll()) { // doThingsWith(element); } }- Parameters:
parent- Required. The project to list slates, in the form of `projects/{project_number}/locations/{location}`.- Throws:
ApiException- if the remote call fails
-
listSlates
public final VideoStitcherServiceClient.ListSlatesPagedResponse listSlates(ListSlatesRequest request) Lists all slates in the specified project and location.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { ListSlatesRequest request = ListSlatesRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") .setOrderBy("orderBy-1207110587") .build(); for (Slate element : videoStitcherServiceClient.listSlates(request).iterateAll()) { // doThingsWith(element); } }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
listSlatesPagedCallable
public final UnaryCallable<ListSlatesRequest,VideoStitcherServiceClient.ListSlatesPagedResponse> listSlatesPagedCallable()Lists all slates in the specified project and location.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { ListSlatesRequest request = ListSlatesRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") .setOrderBy("orderBy-1207110587") .build(); ApiFuture<Slate> future = videoStitcherServiceClient.listSlatesPagedCallable().futureCall(request); // Do something. for (Slate element : future.get().iterateAll()) { // doThingsWith(element); } } -
listSlatesCallable
Lists all slates in the specified project and location.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { ListSlatesRequest request = ListSlatesRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") .setOrderBy("orderBy-1207110587") .build(); while (true) { ListSlatesResponse response = videoStitcherServiceClient.listSlatesCallable().call(request); for (Slate element : response.getSlatesList()) { // doThingsWith(element); } String nextPageToken = response.getNextPageToken(); if (!Strings.isNullOrEmpty(nextPageToken)) { request = request.toBuilder().setPageToken(nextPageToken).build(); } else { break; } } } -
getSlate
Returns the specified slate.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { SlateName name = SlateName.of("[PROJECT]", "[LOCATION]", "[SLATE]"); Slate response = videoStitcherServiceClient.getSlate(name); }- Parameters:
name- Required. The name of the slate to be retrieved, of the slate, in the form of `projects/{project_number}/locations/{location}/slates/{id}`.- Throws:
ApiException- if the remote call fails
-
getSlate
Returns the specified slate.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { String name = SlateName.of("[PROJECT]", "[LOCATION]", "[SLATE]").toString(); Slate response = videoStitcherServiceClient.getSlate(name); }- Parameters:
name- Required. The name of the slate to be retrieved, of the slate, in the form of `projects/{project_number}/locations/{location}/slates/{id}`.- Throws:
ApiException- if the remote call fails
-
getSlate
Returns the specified slate.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { GetSlateRequest request = GetSlateRequest.newBuilder() .setName(SlateName.of("[PROJECT]", "[LOCATION]", "[SLATE]").toString()) .build(); Slate response = videoStitcherServiceClient.getSlate(request); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
getSlateCallable
Returns the specified slate.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { GetSlateRequest request = GetSlateRequest.newBuilder() .setName(SlateName.of("[PROJECT]", "[LOCATION]", "[SLATE]").toString()) .build(); ApiFuture<Slate> future = videoStitcherServiceClient.getSlateCallable().futureCall(request); // Do something. Slate response = future.get(); } -
updateSlateAsync
public final OperationFuture<Slate,OperationMetadata> updateSlateAsync(Slate slate, com.google.protobuf.FieldMask updateMask) Updates the specified slate.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { Slate slate = Slate.newBuilder().build(); FieldMask updateMask = FieldMask.newBuilder().build(); Slate response = videoStitcherServiceClient.updateSlateAsync(slate, updateMask).get(); }- Parameters:
slate- Required. The resource with updated fields.updateMask- Required. The update mask which specifies fields which should be updated.- Throws:
ApiException- if the remote call fails
-
updateSlateAsync
Updates the specified slate.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { UpdateSlateRequest request = UpdateSlateRequest.newBuilder() .setSlate(Slate.newBuilder().build()) .setUpdateMask(FieldMask.newBuilder().build()) .build(); Slate response = videoStitcherServiceClient.updateSlateAsync(request).get(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
updateSlateOperationCallable
public final OperationCallable<UpdateSlateRequest,Slate, updateSlateOperationCallable()OperationMetadata> Updates the specified slate.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { UpdateSlateRequest request = UpdateSlateRequest.newBuilder() .setSlate(Slate.newBuilder().build()) .setUpdateMask(FieldMask.newBuilder().build()) .build(); OperationFuture<Slate, OperationMetadata> future = videoStitcherServiceClient.updateSlateOperationCallable().futureCall(request); // Do something. Slate response = future.get(); } -
updateSlateCallable
Updates the specified slate.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { UpdateSlateRequest request = UpdateSlateRequest.newBuilder() .setSlate(Slate.newBuilder().build()) .setUpdateMask(FieldMask.newBuilder().build()) .build(); ApiFuture<Operation> future = videoStitcherServiceClient.updateSlateCallable().futureCall(request); // Do something. Operation response = future.get(); } -
deleteSlateAsync
public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteSlateAsync(SlateName name) Deletes the specified slate.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { SlateName name = SlateName.of("[PROJECT]", "[LOCATION]", "[SLATE]"); videoStitcherServiceClient.deleteSlateAsync(name).get(); }- Parameters:
name- Required. The name of the slate to be deleted, in the form of `projects/{project_number}/locations/{location}/slates/{id}`.- Throws:
ApiException- if the remote call fails
-
deleteSlateAsync
public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteSlateAsync(String name) Deletes the specified slate.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { String name = SlateName.of("[PROJECT]", "[LOCATION]", "[SLATE]").toString(); videoStitcherServiceClient.deleteSlateAsync(name).get(); }- Parameters:
name- Required. The name of the slate to be deleted, in the form of `projects/{project_number}/locations/{location}/slates/{id}`.- Throws:
ApiException- if the remote call fails
-
deleteSlateAsync
public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteSlateAsync(DeleteSlateRequest request) Deletes the specified slate.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { DeleteSlateRequest request = DeleteSlateRequest.newBuilder() .setName(SlateName.of("[PROJECT]", "[LOCATION]", "[SLATE]").toString()) .build(); videoStitcherServiceClient.deleteSlateAsync(request).get(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
deleteSlateOperationCallable
public final OperationCallable<DeleteSlateRequest,com.google.protobuf.Empty, deleteSlateOperationCallable()OperationMetadata> Deletes the specified slate.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { DeleteSlateRequest request = DeleteSlateRequest.newBuilder() .setName(SlateName.of("[PROJECT]", "[LOCATION]", "[SLATE]").toString()) .build(); OperationFuture<Empty, OperationMetadata> future = videoStitcherServiceClient.deleteSlateOperationCallable().futureCall(request); // Do something. future.get(); } -
deleteSlateCallable
Deletes the specified slate.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { DeleteSlateRequest request = DeleteSlateRequest.newBuilder() .setName(SlateName.of("[PROJECT]", "[LOCATION]", "[SLATE]").toString()) .build(); ApiFuture<Operation> future = videoStitcherServiceClient.deleteSlateCallable().futureCall(request); // Do something. future.get(); } -
createLiveSession
Creates a new live session.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); LiveSession liveSession = LiveSession.newBuilder().build(); LiveSession response = videoStitcherServiceClient.createLiveSession(parent, liveSession); }- Parameters:
parent- Required. The project and location in which the live session should be created, in the form of `projects/{project_number}/locations/{location}`.liveSession- Required. Parameters for creating a live session.- Throws:
ApiException- if the remote call fails
-
createLiveSession
Creates a new live session.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); LiveSession liveSession = LiveSession.newBuilder().build(); LiveSession response = videoStitcherServiceClient.createLiveSession(parent, liveSession); }- Parameters:
parent- Required. The project and location in which the live session should be created, in the form of `projects/{project_number}/locations/{location}`.liveSession- Required. Parameters for creating a live session.- Throws:
ApiException- if the remote call fails
-
createLiveSession
Creates a new live session.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { CreateLiveSessionRequest request = CreateLiveSessionRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setLiveSession(LiveSession.newBuilder().build()) .build(); LiveSession response = videoStitcherServiceClient.createLiveSession(request); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
createLiveSessionCallable
Creates a new live session.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { CreateLiveSessionRequest request = CreateLiveSessionRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setLiveSession(LiveSession.newBuilder().build()) .build(); ApiFuture<LiveSession> future = videoStitcherServiceClient.createLiveSessionCallable().futureCall(request); // Do something. LiveSession response = future.get(); } -
getLiveSession
Returns the details for the specified live session.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { LiveSessionName name = LiveSessionName.of("[PROJECT]", "[LOCATION]", "[LIVE_SESSION]"); LiveSession response = videoStitcherServiceClient.getLiveSession(name); }- Parameters:
name- Required. The name of the live session, in the form of `projects/{project_number}/locations/{location}/liveSessions/{id}`.- Throws:
ApiException- if the remote call fails
-
getLiveSession
Returns the details for the specified live session.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { String name = LiveSessionName.of("[PROJECT]", "[LOCATION]", "[LIVE_SESSION]").toString(); LiveSession response = videoStitcherServiceClient.getLiveSession(name); }- Parameters:
name- Required. The name of the live session, in the form of `projects/{project_number}/locations/{location}/liveSessions/{id}`.- Throws:
ApiException- if the remote call fails
-
getLiveSession
Returns the details for the specified live session.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { GetLiveSessionRequest request = GetLiveSessionRequest.newBuilder() .setName(LiveSessionName.of("[PROJECT]", "[LOCATION]", "[LIVE_SESSION]").toString()) .build(); LiveSession response = videoStitcherServiceClient.getLiveSession(request); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
getLiveSessionCallable
Returns the details for the specified live session.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { GetLiveSessionRequest request = GetLiveSessionRequest.newBuilder() .setName(LiveSessionName.of("[PROJECT]", "[LOCATION]", "[LIVE_SESSION]").toString()) .build(); ApiFuture<LiveSession> future = videoStitcherServiceClient.getLiveSessionCallable().futureCall(request); // Do something. LiveSession response = future.get(); } -
createLiveConfigAsync
public final OperationFuture<LiveConfig,OperationMetadata> createLiveConfigAsync(LocationName parent, LiveConfig liveConfig, String liveConfigId) Registers the live config with the provided unique ID in the specified region.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); LiveConfig liveConfig = LiveConfig.newBuilder().build(); String liveConfigId = "liveConfigId1256140041"; LiveConfig response = videoStitcherServiceClient.createLiveConfigAsync(parent, liveConfig, liveConfigId).get(); }- Parameters:
parent- Required. The project in which the live config should be created, in the form of `projects/{project_number}/locations/{location}`.liveConfig- Required. The live config resource to create.liveConfigId- Required. The unique identifier ID to use for the live config.- Throws:
ApiException- if the remote call fails
-
createLiveConfigAsync
public final OperationFuture<LiveConfig,OperationMetadata> createLiveConfigAsync(String parent, LiveConfig liveConfig, String liveConfigId) Registers the live config with the provided unique ID in the specified region.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); LiveConfig liveConfig = LiveConfig.newBuilder().build(); String liveConfigId = "liveConfigId1256140041"; LiveConfig response = videoStitcherServiceClient.createLiveConfigAsync(parent, liveConfig, liveConfigId).get(); }- Parameters:
parent- Required. The project in which the live config should be created, in the form of `projects/{project_number}/locations/{location}`.liveConfig- Required. The live config resource to create.liveConfigId- Required. The unique identifier ID to use for the live config.- Throws:
ApiException- if the remote call fails
-
createLiveConfigAsync
public final OperationFuture<LiveConfig,OperationMetadata> createLiveConfigAsync(CreateLiveConfigRequest request) Registers the live config with the provided unique ID in the specified region.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { CreateLiveConfigRequest request = CreateLiveConfigRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setLiveConfigId("liveConfigId1256140041") .setLiveConfig(LiveConfig.newBuilder().build()) .setRequestId("requestId693933066") .build(); LiveConfig response = videoStitcherServiceClient.createLiveConfigAsync(request).get(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
createLiveConfigOperationCallable
public final OperationCallable<CreateLiveConfigRequest,LiveConfig, createLiveConfigOperationCallable()OperationMetadata> Registers the live config with the provided unique ID in the specified region.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { CreateLiveConfigRequest request = CreateLiveConfigRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setLiveConfigId("liveConfigId1256140041") .setLiveConfig(LiveConfig.newBuilder().build()) .setRequestId("requestId693933066") .build(); OperationFuture<LiveConfig, OperationMetadata> future = videoStitcherServiceClient.createLiveConfigOperationCallable().futureCall(request); // Do something. LiveConfig response = future.get(); } -
createLiveConfigCallable
Registers the live config with the provided unique ID in the specified region.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { CreateLiveConfigRequest request = CreateLiveConfigRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setLiveConfigId("liveConfigId1256140041") .setLiveConfig(LiveConfig.newBuilder().build()) .setRequestId("requestId693933066") .build(); ApiFuture<Operation> future = videoStitcherServiceClient.createLiveConfigCallable().futureCall(request); // Do something. Operation response = future.get(); } -
listLiveConfigs
public final VideoStitcherServiceClient.ListLiveConfigsPagedResponse listLiveConfigs(LocationName parent) Lists all live configs managed by the Video Stitcher that belong to the specified project and region.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); for (LiveConfig element : videoStitcherServiceClient.listLiveConfigs(parent).iterateAll()) { // doThingsWith(element); } }- Parameters:
parent- Required. The project that contains the list of live configs, in the form of `projects/{project_number}/locations/{location}`.- Throws:
ApiException- if the remote call fails
-
listLiveConfigs
Lists all live configs managed by the Video Stitcher that belong to the specified project and region.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); for (LiveConfig element : videoStitcherServiceClient.listLiveConfigs(parent).iterateAll()) { // doThingsWith(element); } }- Parameters:
parent- Required. The project that contains the list of live configs, in the form of `projects/{project_number}/locations/{location}`.- Throws:
ApiException- if the remote call fails
-
listLiveConfigs
public final VideoStitcherServiceClient.ListLiveConfigsPagedResponse listLiveConfigs(ListLiveConfigsRequest request) Lists all live configs managed by the Video Stitcher that belong to the specified project and region.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { ListLiveConfigsRequest request = ListLiveConfigsRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") .setOrderBy("orderBy-1207110587") .build(); for (LiveConfig element : videoStitcherServiceClient.listLiveConfigs(request).iterateAll()) { // doThingsWith(element); } }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
listLiveConfigsPagedCallable
public final UnaryCallable<ListLiveConfigsRequest,VideoStitcherServiceClient.ListLiveConfigsPagedResponse> listLiveConfigsPagedCallable()Lists all live configs managed by the Video Stitcher that belong to the specified project and region.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { ListLiveConfigsRequest request = ListLiveConfigsRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") .setOrderBy("orderBy-1207110587") .build(); ApiFuture<LiveConfig> future = videoStitcherServiceClient.listLiveConfigsPagedCallable().futureCall(request); // Do something. for (LiveConfig element : future.get().iterateAll()) { // doThingsWith(element); } } -
listLiveConfigsCallable
public final UnaryCallable<ListLiveConfigsRequest,ListLiveConfigsResponse> listLiveConfigsCallable()Lists all live configs managed by the Video Stitcher that belong to the specified project and region.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { ListLiveConfigsRequest request = ListLiveConfigsRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") .setOrderBy("orderBy-1207110587") .build(); while (true) { ListLiveConfigsResponse response = videoStitcherServiceClient.listLiveConfigsCallable().call(request); for (LiveConfig element : response.getLiveConfigsList()) { // doThingsWith(element); } String nextPageToken = response.getNextPageToken(); if (!Strings.isNullOrEmpty(nextPageToken)) { request = request.toBuilder().setPageToken(nextPageToken).build(); } else { break; } } } -
getLiveConfig
Returns the specified live config managed by the Video Stitcher service.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { LiveConfigName name = LiveConfigName.of("[PROJECT]", "[LOCATION]", "[LIVE_CONFIG]"); LiveConfig response = videoStitcherServiceClient.getLiveConfig(name); }- Parameters:
name- Required. The name of the live config to be retrieved, in the form of `projects/{project_number}/locations/{location}/liveConfigs/{id}`.- Throws:
ApiException- if the remote call fails
-
getLiveConfig
Returns the specified live config managed by the Video Stitcher service.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { String name = LiveConfigName.of("[PROJECT]", "[LOCATION]", "[LIVE_CONFIG]").toString(); LiveConfig response = videoStitcherServiceClient.getLiveConfig(name); }- Parameters:
name- Required. The name of the live config to be retrieved, in the form of `projects/{project_number}/locations/{location}/liveConfigs/{id}`.- Throws:
ApiException- if the remote call fails
-
getLiveConfig
Returns the specified live config managed by the Video Stitcher service.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { GetLiveConfigRequest request = GetLiveConfigRequest.newBuilder() .setName(LiveConfigName.of("[PROJECT]", "[LOCATION]", "[LIVE_CONFIG]").toString()) .build(); LiveConfig response = videoStitcherServiceClient.getLiveConfig(request); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
getLiveConfigCallable
Returns the specified live config managed by the Video Stitcher service.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { GetLiveConfigRequest request = GetLiveConfigRequest.newBuilder() .setName(LiveConfigName.of("[PROJECT]", "[LOCATION]", "[LIVE_CONFIG]").toString()) .build(); ApiFuture<LiveConfig> future = videoStitcherServiceClient.getLiveConfigCallable().futureCall(request); // Do something. LiveConfig response = future.get(); } -
deleteLiveConfigAsync
public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteLiveConfigAsync(LiveConfigName name) Deletes the specified live config.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { LiveConfigName name = LiveConfigName.of("[PROJECT]", "[LOCATION]", "[LIVE_CONFIG]"); videoStitcherServiceClient.deleteLiveConfigAsync(name).get(); }- Parameters:
name- Required. The name of the live config to be deleted, in the form of `projects/{project_number}/locations/{location}/liveConfigs/{id}`.- Throws:
ApiException- if the remote call fails
-
deleteLiveConfigAsync
public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteLiveConfigAsync(String name) Deletes the specified live config.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { String name = LiveConfigName.of("[PROJECT]", "[LOCATION]", "[LIVE_CONFIG]").toString(); videoStitcherServiceClient.deleteLiveConfigAsync(name).get(); }- Parameters:
name- Required. The name of the live config to be deleted, in the form of `projects/{project_number}/locations/{location}/liveConfigs/{id}`.- Throws:
ApiException- if the remote call fails
-
deleteLiveConfigAsync
public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteLiveConfigAsync(DeleteLiveConfigRequest request) Deletes the specified live config.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { DeleteLiveConfigRequest request = DeleteLiveConfigRequest.newBuilder() .setName(LiveConfigName.of("[PROJECT]", "[LOCATION]", "[LIVE_CONFIG]").toString()) .build(); videoStitcherServiceClient.deleteLiveConfigAsync(request).get(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
deleteLiveConfigOperationCallable
public final OperationCallable<DeleteLiveConfigRequest,com.google.protobuf.Empty, deleteLiveConfigOperationCallable()OperationMetadata> Deletes the specified live config.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { DeleteLiveConfigRequest request = DeleteLiveConfigRequest.newBuilder() .setName(LiveConfigName.of("[PROJECT]", "[LOCATION]", "[LIVE_CONFIG]").toString()) .build(); OperationFuture<Empty, OperationMetadata> future = videoStitcherServiceClient.deleteLiveConfigOperationCallable().futureCall(request); // Do something. future.get(); } -
deleteLiveConfigCallable
Deletes the specified live config.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { DeleteLiveConfigRequest request = DeleteLiveConfigRequest.newBuilder() .setName(LiveConfigName.of("[PROJECT]", "[LOCATION]", "[LIVE_CONFIG]").toString()) .build(); ApiFuture<Operation> future = videoStitcherServiceClient.deleteLiveConfigCallable().futureCall(request); // Do something. future.get(); } -
updateLiveConfigAsync
public final OperationFuture<LiveConfig,OperationMetadata> updateLiveConfigAsync(LiveConfig liveConfig, com.google.protobuf.FieldMask updateMask) Updates the specified LiveConfig. Only update fields specified in the call method body.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { LiveConfig liveConfig = LiveConfig.newBuilder().build(); FieldMask updateMask = FieldMask.newBuilder().build(); LiveConfig response = videoStitcherServiceClient.updateLiveConfigAsync(liveConfig, updateMask).get(); }- Parameters:
liveConfig- Required. The LiveConfig resource which replaces the resource on the server.updateMask- Required. The update mask applies to the resource. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask- Throws:
ApiException- if the remote call fails
-
updateLiveConfigAsync
public final OperationFuture<LiveConfig,OperationMetadata> updateLiveConfigAsync(UpdateLiveConfigRequest request) Updates the specified LiveConfig. Only update fields specified in the call method body.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { UpdateLiveConfigRequest request = UpdateLiveConfigRequest.newBuilder() .setLiveConfig(LiveConfig.newBuilder().build()) .setUpdateMask(FieldMask.newBuilder().build()) .build(); LiveConfig response = videoStitcherServiceClient.updateLiveConfigAsync(request).get(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
updateLiveConfigOperationCallable
public final OperationCallable<UpdateLiveConfigRequest,LiveConfig, updateLiveConfigOperationCallable()OperationMetadata> Updates the specified LiveConfig. Only update fields specified in the call method body.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { UpdateLiveConfigRequest request = UpdateLiveConfigRequest.newBuilder() .setLiveConfig(LiveConfig.newBuilder().build()) .setUpdateMask(FieldMask.newBuilder().build()) .build(); OperationFuture<LiveConfig, OperationMetadata> future = videoStitcherServiceClient.updateLiveConfigOperationCallable().futureCall(request); // Do something. LiveConfig response = future.get(); } -
updateLiveConfigCallable
Updates the specified LiveConfig. Only update fields specified in the call method body.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { UpdateLiveConfigRequest request = UpdateLiveConfigRequest.newBuilder() .setLiveConfig(LiveConfig.newBuilder().build()) .setUpdateMask(FieldMask.newBuilder().build()) .build(); ApiFuture<Operation> future = videoStitcherServiceClient.updateLiveConfigCallable().futureCall(request); // Do something. Operation response = future.get(); } -
createVodConfigAsync
public final OperationFuture<VodConfig,OperationMetadata> createVodConfigAsync(LocationName parent, VodConfig vodConfig, String vodConfigId) Registers the VOD config with the provided unique ID in the specified region.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); VodConfig vodConfig = VodConfig.newBuilder().build(); String vodConfigId = "vodConfigId1497626088"; VodConfig response = videoStitcherServiceClient.createVodConfigAsync(parent, vodConfig, vodConfigId).get(); }- Parameters:
parent- Required. The project in which the VOD config should be created, in the form of `projects/{project_number}/locations/{location}`.vodConfig- Required. The VOD config resource to create.vodConfigId- Required. The unique identifier ID to use for the VOD config.- Throws:
ApiException- if the remote call fails
-
createVodConfigAsync
public final OperationFuture<VodConfig,OperationMetadata> createVodConfigAsync(String parent, VodConfig vodConfig, String vodConfigId) Registers the VOD config with the provided unique ID in the specified region.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); VodConfig vodConfig = VodConfig.newBuilder().build(); String vodConfigId = "vodConfigId1497626088"; VodConfig response = videoStitcherServiceClient.createVodConfigAsync(parent, vodConfig, vodConfigId).get(); }- Parameters:
parent- Required. The project in which the VOD config should be created, in the form of `projects/{project_number}/locations/{location}`.vodConfig- Required. The VOD config resource to create.vodConfigId- Required. The unique identifier ID to use for the VOD config.- Throws:
ApiException- if the remote call fails
-
createVodConfigAsync
public final OperationFuture<VodConfig,OperationMetadata> createVodConfigAsync(CreateVodConfigRequest request) Registers the VOD config with the provided unique ID in the specified region.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { CreateVodConfigRequest request = CreateVodConfigRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setVodConfigId("vodConfigId1497626088") .setVodConfig(VodConfig.newBuilder().build()) .setRequestId("requestId693933066") .build(); VodConfig response = videoStitcherServiceClient.createVodConfigAsync(request).get(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
createVodConfigOperationCallable
public final OperationCallable<CreateVodConfigRequest,VodConfig, createVodConfigOperationCallable()OperationMetadata> Registers the VOD config with the provided unique ID in the specified region.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { CreateVodConfigRequest request = CreateVodConfigRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setVodConfigId("vodConfigId1497626088") .setVodConfig(VodConfig.newBuilder().build()) .setRequestId("requestId693933066") .build(); OperationFuture<VodConfig, OperationMetadata> future = videoStitcherServiceClient.createVodConfigOperationCallable().futureCall(request); // Do something. VodConfig response = future.get(); } -
createVodConfigCallable
Registers the VOD config with the provided unique ID in the specified region.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { CreateVodConfigRequest request = CreateVodConfigRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setVodConfigId("vodConfigId1497626088") .setVodConfig(VodConfig.newBuilder().build()) .setRequestId("requestId693933066") .build(); ApiFuture<Operation> future = videoStitcherServiceClient.createVodConfigCallable().futureCall(request); // Do something. Operation response = future.get(); } -
listVodConfigs
public final VideoStitcherServiceClient.ListVodConfigsPagedResponse listVodConfigs(LocationName parent) Lists all VOD configs managed by the Video Stitcher API that belong to the specified project and region.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); for (VodConfig element : videoStitcherServiceClient.listVodConfigs(parent).iterateAll()) { // doThingsWith(element); } }- Parameters:
parent- Required. The project that contains the list of VOD configs, in the form of `projects/{project_number}/locations/{location}`.- Throws:
ApiException- if the remote call fails
-
listVodConfigs
Lists all VOD configs managed by the Video Stitcher API that belong to the specified project and region.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); for (VodConfig element : videoStitcherServiceClient.listVodConfigs(parent).iterateAll()) { // doThingsWith(element); } }- Parameters:
parent- Required. The project that contains the list of VOD configs, in the form of `projects/{project_number}/locations/{location}`.- Throws:
ApiException- if the remote call fails
-
listVodConfigs
public final VideoStitcherServiceClient.ListVodConfigsPagedResponse listVodConfigs(ListVodConfigsRequest request) Lists all VOD configs managed by the Video Stitcher API that belong to the specified project and region.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { ListVodConfigsRequest request = ListVodConfigsRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") .setOrderBy("orderBy-1207110587") .build(); for (VodConfig element : videoStitcherServiceClient.listVodConfigs(request).iterateAll()) { // doThingsWith(element); } }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
listVodConfigsPagedCallable
public final UnaryCallable<ListVodConfigsRequest,VideoStitcherServiceClient.ListVodConfigsPagedResponse> listVodConfigsPagedCallable()Lists all VOD configs managed by the Video Stitcher API that belong to the specified project and region.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { ListVodConfigsRequest request = ListVodConfigsRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") .setOrderBy("orderBy-1207110587") .build(); ApiFuture<VodConfig> future = videoStitcherServiceClient.listVodConfigsPagedCallable().futureCall(request); // Do something. for (VodConfig element : future.get().iterateAll()) { // doThingsWith(element); } } -
listVodConfigsCallable
Lists all VOD configs managed by the Video Stitcher API that belong to the specified project and region.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { ListVodConfigsRequest request = ListVodConfigsRequest.newBuilder() .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") .setOrderBy("orderBy-1207110587") .build(); while (true) { ListVodConfigsResponse response = videoStitcherServiceClient.listVodConfigsCallable().call(request); for (VodConfig element : response.getVodConfigsList()) { // doThingsWith(element); } String nextPageToken = response.getNextPageToken(); if (!Strings.isNullOrEmpty(nextPageToken)) { request = request.toBuilder().setPageToken(nextPageToken).build(); } else { break; } } } -
getVodConfig
Returns the specified VOD config managed by the Video Stitcher API service.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { VodConfigName name = VodConfigName.of("[PROJECT]", "[LOCATION]", "[VOD_CONFIG]"); VodConfig response = videoStitcherServiceClient.getVodConfig(name); }- Parameters:
name- Required. The name of the VOD config to be retrieved, in the form of `projects/{project_number}/locations/{location}/vodConfigs/{id}`.- Throws:
ApiException- if the remote call fails
-
getVodConfig
Returns the specified VOD config managed by the Video Stitcher API service.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { String name = VodConfigName.of("[PROJECT]", "[LOCATION]", "[VOD_CONFIG]").toString(); VodConfig response = videoStitcherServiceClient.getVodConfig(name); }- Parameters:
name- Required. The name of the VOD config to be retrieved, in the form of `projects/{project_number}/locations/{location}/vodConfigs/{id}`.- Throws:
ApiException- if the remote call fails
-
getVodConfig
Returns the specified VOD config managed by the Video Stitcher API service.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { GetVodConfigRequest request = GetVodConfigRequest.newBuilder() .setName(VodConfigName.of("[PROJECT]", "[LOCATION]", "[VOD_CONFIG]").toString()) .build(); VodConfig response = videoStitcherServiceClient.getVodConfig(request); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
getVodConfigCallable
Returns the specified VOD config managed by the Video Stitcher API service.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { GetVodConfigRequest request = GetVodConfigRequest.newBuilder() .setName(VodConfigName.of("[PROJECT]", "[LOCATION]", "[VOD_CONFIG]").toString()) .build(); ApiFuture<VodConfig> future = videoStitcherServiceClient.getVodConfigCallable().futureCall(request); // Do something. VodConfig response = future.get(); } -
deleteVodConfigAsync
public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteVodConfigAsync(VodConfigName name) Deletes the specified VOD config.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { VodConfigName name = VodConfigName.of("[PROJECT]", "[LOCATION]", "[VOD_CONFIG]"); videoStitcherServiceClient.deleteVodConfigAsync(name).get(); }- Parameters:
name- Required. The name of the VOD config to be deleted, in the form of `projects/{project_number}/locations/{location}/vodConfigs/{id}`.- Throws:
ApiException- if the remote call fails
-
deleteVodConfigAsync
public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteVodConfigAsync(String name) Deletes the specified VOD config.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { String name = VodConfigName.of("[PROJECT]", "[LOCATION]", "[VOD_CONFIG]").toString(); videoStitcherServiceClient.deleteVodConfigAsync(name).get(); }- Parameters:
name- Required. The name of the VOD config to be deleted, in the form of `projects/{project_number}/locations/{location}/vodConfigs/{id}`.- Throws:
ApiException- if the remote call fails
-
deleteVodConfigAsync
public final OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteVodConfigAsync(DeleteVodConfigRequest request) Deletes the specified VOD config.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { DeleteVodConfigRequest request = DeleteVodConfigRequest.newBuilder() .setName(VodConfigName.of("[PROJECT]", "[LOCATION]", "[VOD_CONFIG]").toString()) .build(); videoStitcherServiceClient.deleteVodConfigAsync(request).get(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
deleteVodConfigOperationCallable
public final OperationCallable<DeleteVodConfigRequest,com.google.protobuf.Empty, deleteVodConfigOperationCallable()OperationMetadata> Deletes the specified VOD config.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { DeleteVodConfigRequest request = DeleteVodConfigRequest.newBuilder() .setName(VodConfigName.of("[PROJECT]", "[LOCATION]", "[VOD_CONFIG]").toString()) .build(); OperationFuture<Empty, OperationMetadata> future = videoStitcherServiceClient.deleteVodConfigOperationCallable().futureCall(request); // Do something. future.get(); } -
deleteVodConfigCallable
Deletes the specified VOD config.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { DeleteVodConfigRequest request = DeleteVodConfigRequest.newBuilder() .setName(VodConfigName.of("[PROJECT]", "[LOCATION]", "[VOD_CONFIG]").toString()) .build(); ApiFuture<Operation> future = videoStitcherServiceClient.deleteVodConfigCallable().futureCall(request); // Do something. future.get(); } -
updateVodConfigAsync
public final OperationFuture<VodConfig,OperationMetadata> updateVodConfigAsync(VodConfig vodConfig, com.google.protobuf.FieldMask updateMask) Updates the specified VOD config. Only update fields specified in the call method body.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { VodConfig vodConfig = VodConfig.newBuilder().build(); FieldMask updateMask = FieldMask.newBuilder().build(); VodConfig response = videoStitcherServiceClient.updateVodConfigAsync(vodConfig, updateMask).get(); }- Parameters:
vodConfig- Required. The VOD config resource which replaces the resource on the server.updateMask- Required. The update mask applies to the resource. For the `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask- Throws:
ApiException- if the remote call fails
-
updateVodConfigAsync
public final OperationFuture<VodConfig,OperationMetadata> updateVodConfigAsync(UpdateVodConfigRequest request) Updates the specified VOD config. Only update fields specified in the call method body.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { UpdateVodConfigRequest request = UpdateVodConfigRequest.newBuilder() .setVodConfig(VodConfig.newBuilder().build()) .setUpdateMask(FieldMask.newBuilder().build()) .build(); VodConfig response = videoStitcherServiceClient.updateVodConfigAsync(request).get(); }- Parameters:
request- The request object containing all of the parameters for the API call.- Throws:
ApiException- if the remote call fails
-
updateVodConfigOperationCallable
public final OperationCallable<UpdateVodConfigRequest,VodConfig, updateVodConfigOperationCallable()OperationMetadata> Updates the specified VOD config. Only update fields specified in the call method body.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { UpdateVodConfigRequest request = UpdateVodConfigRequest.newBuilder() .setVodConfig(VodConfig.newBuilder().build()) .setUpdateMask(FieldMask.newBuilder().build()) .build(); OperationFuture<VodConfig, OperationMetadata> future = videoStitcherServiceClient.updateVodConfigOperationCallable().futureCall(request); // Do something. VodConfig response = future.get(); } -
updateVodConfigCallable
Updates the specified VOD config. Only update fields specified in the call method body.Sample code:
// 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://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (VideoStitcherServiceClient videoStitcherServiceClient = VideoStitcherServiceClient.create()) { UpdateVodConfigRequest request = UpdateVodConfigRequest.newBuilder() .setVodConfig(VodConfig.newBuilder().build()) .setUpdateMask(FieldMask.newBuilder().build()) .build(); ApiFuture<Operation> future = videoStitcherServiceClient.updateVodConfigCallable().futureCall(request); // Do something. Operation response = future.get(); } -
close
public final void close()- Specified by:
closein interfaceAutoCloseable
-
shutdown
public void shutdown()- Specified by:
shutdownin interfaceBackgroundResource
-
isShutdown
public boolean isShutdown()- Specified by:
isShutdownin interfaceBackgroundResource
-
isTerminated
public boolean isTerminated()- Specified by:
isTerminatedin interfaceBackgroundResource
-
shutdownNow
public void shutdownNow()- Specified by:
shutdownNowin interfaceBackgroundResource
-
awaitTermination
- Specified by:
awaitTerminationin interfaceBackgroundResource- Throws:
InterruptedException
-