@Generated(value="by gapic-generator-java") public class VideoStitcherServiceClient extends Object implements com.google.api.gax.core.BackgroundResource
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().
The surface of this class includes several types of Java methods for each of the API's methods:
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.
| Modifier | Constructor and Description |
|---|---|
protected |
VideoStitcherServiceClient(VideoStitcherServiceSettings settings)
Constructs an instance of VideoStitcherServiceClient, using the given settings.
|
protected |
VideoStitcherServiceClient(VideoStitcherServiceStub stub) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
awaitTermination(long duration,
TimeUnit unit) |
void |
close() |
static VideoStitcherServiceClient |
create()
Constructs an instance of VideoStitcherServiceClient with default settings.
|
static VideoStitcherServiceClient |
create(VideoStitcherServiceSettings settings)
Constructs an instance of VideoStitcherServiceClient, using the given settings.
|
static VideoStitcherServiceClient |
create(VideoStitcherServiceStub stub)
Constructs an instance of VideoStitcherServiceClient, using the given stub for making calls.
|
com.google.api.gax.longrunning.OperationFuture<CdnKey,OperationMetadata> |
createCdnKeyAsync(CreateCdnKeyRequest request)
Creates a new CDN key.
|
com.google.api.gax.longrunning.OperationFuture<CdnKey,OperationMetadata> |
createCdnKeyAsync(LocationName parent,
CdnKey cdnKey,
String cdnKeyId)
Creates a new CDN key.
|
com.google.api.gax.longrunning.OperationFuture<CdnKey,OperationMetadata> |
createCdnKeyAsync(String parent,
CdnKey cdnKey,
String cdnKeyId)
Creates a new CDN key.
|
com.google.api.gax.rpc.UnaryCallable<CreateCdnKeyRequest,com.google.longrunning.Operation> |
createCdnKeyCallable()
Creates a new CDN key.
|
com.google.api.gax.rpc.OperationCallable<CreateCdnKeyRequest,CdnKey,OperationMetadata> |
createCdnKeyOperationCallable()
Creates a new CDN key.
|
com.google.api.gax.longrunning.OperationFuture<LiveConfig,OperationMetadata> |
createLiveConfigAsync(CreateLiveConfigRequest request)
Registers the live config with the provided unique ID in the specified region.
|
com.google.api.gax.longrunning.OperationFuture<LiveConfig,OperationMetadata> |
createLiveConfigAsync(LocationName parent,
LiveConfig liveConfig,
String liveConfigId)
Registers the live config with the provided unique ID in the specified region.
|
com.google.api.gax.longrunning.OperationFuture<LiveConfig,OperationMetadata> |
createLiveConfigAsync(String parent,
LiveConfig liveConfig,
String liveConfigId)
Registers the live config with the provided unique ID in the specified region.
|
com.google.api.gax.rpc.UnaryCallable<CreateLiveConfigRequest,com.google.longrunning.Operation> |
createLiveConfigCallable()
Registers the live config with the provided unique ID in the specified region.
|
com.google.api.gax.rpc.OperationCallable<CreateLiveConfigRequest,LiveConfig,OperationMetadata> |
createLiveConfigOperationCallable()
Registers the live config with the provided unique ID in the specified region.
|
LiveSession |
createLiveSession(CreateLiveSessionRequest request)
Creates a new live session.
|
LiveSession |
createLiveSession(LocationName parent,
LiveSession liveSession)
Creates a new live session.
|
LiveSession |
createLiveSession(String parent,
LiveSession liveSession)
Creates a new live session.
|
com.google.api.gax.rpc.UnaryCallable<CreateLiveSessionRequest,LiveSession> |
createLiveSessionCallable()
Creates a new live session.
|
com.google.api.gax.longrunning.OperationFuture<Slate,OperationMetadata> |
createSlateAsync(CreateSlateRequest request)
Creates a slate.
|
com.google.api.gax.longrunning.OperationFuture<Slate,OperationMetadata> |
createSlateAsync(LocationName parent,
Slate slate,
String slateId)
Creates a slate.
|
com.google.api.gax.longrunning.OperationFuture<Slate,OperationMetadata> |
createSlateAsync(String parent,
Slate slate,
String slateId)
Creates a slate.
|
com.google.api.gax.rpc.UnaryCallable<CreateSlateRequest,com.google.longrunning.Operation> |
createSlateCallable()
Creates a slate.
|
com.google.api.gax.rpc.OperationCallable<CreateSlateRequest,Slate,OperationMetadata> |
createSlateOperationCallable()
Creates a slate.
|
VodSession |
createVodSession(CreateVodSessionRequest request)
Creates a client side playback VOD session and returns the full tracking and playback metadata
of the session.
|
VodSession |
createVodSession(LocationName parent,
VodSession vodSession)
Creates a client side playback VOD session and returns the full tracking and playback metadata
of the session.
|
VodSession |
createVodSession(String parent,
VodSession vodSession)
Creates a client side playback VOD session and returns the full tracking and playback metadata
of the session.
|
com.google.api.gax.rpc.UnaryCallable<CreateVodSessionRequest,VodSession> |
createVodSessionCallable()
Creates a client side playback VOD session and returns the full tracking and playback metadata
of the session.
|
com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> |
deleteCdnKeyAsync(CdnKeyName name)
Deletes the specified CDN key.
|
com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> |
deleteCdnKeyAsync(DeleteCdnKeyRequest request)
Deletes the specified CDN key.
|
com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> |
deleteCdnKeyAsync(String name)
Deletes the specified CDN key.
|
com.google.api.gax.rpc.UnaryCallable<DeleteCdnKeyRequest,com.google.longrunning.Operation> |
deleteCdnKeyCallable()
Deletes the specified CDN key.
|
com.google.api.gax.rpc.OperationCallable<DeleteCdnKeyRequest,com.google.protobuf.Empty,OperationMetadata> |
deleteCdnKeyOperationCallable()
Deletes the specified CDN key.
|
com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> |
deleteLiveConfigAsync(DeleteLiveConfigRequest request)
Deletes the specified live config.
|
com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> |
deleteLiveConfigAsync(LiveConfigName name)
Deletes the specified live config.
|
com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> |
deleteLiveConfigAsync(String name)
Deletes the specified live config.
|
com.google.api.gax.rpc.UnaryCallable<DeleteLiveConfigRequest,com.google.longrunning.Operation> |
deleteLiveConfigCallable()
Deletes the specified live config.
|
com.google.api.gax.rpc.OperationCallable<DeleteLiveConfigRequest,com.google.protobuf.Empty,OperationMetadata> |
deleteLiveConfigOperationCallable()
Deletes the specified live config.
|
com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> |
deleteSlateAsync(DeleteSlateRequest request)
Deletes the specified slate.
|
com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> |
deleteSlateAsync(SlateName name)
Deletes the specified slate.
|
com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> |
deleteSlateAsync(String name)
Deletes the specified slate.
|
com.google.api.gax.rpc.UnaryCallable<DeleteSlateRequest,com.google.longrunning.Operation> |
deleteSlateCallable()
Deletes the specified slate.
|
com.google.api.gax.rpc.OperationCallable<DeleteSlateRequest,com.google.protobuf.Empty,OperationMetadata> |
deleteSlateOperationCallable()
Deletes the specified slate.
|
CdnKey |
getCdnKey(CdnKeyName name)
Returns the specified CDN key.
|
CdnKey |
getCdnKey(GetCdnKeyRequest request)
Returns the specified CDN key.
|
CdnKey |
getCdnKey(String name)
Returns the specified CDN key.
|
com.google.api.gax.rpc.UnaryCallable<GetCdnKeyRequest,CdnKey> |
getCdnKeyCallable()
Returns the specified CDN key.
|
LiveAdTagDetail |
getLiveAdTagDetail(GetLiveAdTagDetailRequest request)
Returns the specified ad tag detail for the specified live session.
|
LiveAdTagDetail |
getLiveAdTagDetail(LiveAdTagDetailName name)
Returns the specified ad tag detail for the specified live session.
|
LiveAdTagDetail |
getLiveAdTagDetail(String name)
Returns the specified ad tag detail for the specified live session.
|
com.google.api.gax.rpc.UnaryCallable<GetLiveAdTagDetailRequest,LiveAdTagDetail> |
getLiveAdTagDetailCallable()
Returns the specified ad tag detail for the specified live session.
|
LiveConfig |
getLiveConfig(GetLiveConfigRequest request)
Returns the specified live config managed by the Video Stitcher service.
|
LiveConfig |
getLiveConfig(LiveConfigName name)
Returns the specified live config managed by the Video Stitcher service.
|
LiveConfig |
getLiveConfig(String name)
Returns the specified live config managed by the Video Stitcher service.
|
com.google.api.gax.rpc.UnaryCallable<GetLiveConfigRequest,LiveConfig> |
getLiveConfigCallable()
Returns the specified live config managed by the Video Stitcher service.
|
LiveSession |
getLiveSession(GetLiveSessionRequest request)
Returns the details for the specified live session.
|
LiveSession |
getLiveSession(LiveSessionName name)
Returns the details for the specified live session.
|
LiveSession |
getLiveSession(String name)
Returns the details for the specified live session.
|
com.google.api.gax.rpc.UnaryCallable<GetLiveSessionRequest,LiveSession> |
getLiveSessionCallable()
Returns the details for the specified live session.
|
com.google.longrunning.OperationsClient |
getOperationsClient()
Returns the OperationsClient that can be used to query the status of a long-running operation
returned by another API method call.
|
VideoStitcherServiceSettings |
getSettings() |
Slate |
getSlate(GetSlateRequest request)
Returns the specified slate.
|
Slate |
getSlate(SlateName name)
Returns the specified slate.
|
Slate |
getSlate(String name)
Returns the specified slate.
|
com.google.api.gax.rpc.UnaryCallable<GetSlateRequest,Slate> |
getSlateCallable()
Returns the specified slate.
|
VideoStitcherServiceStub |
getStub() |
VodAdTagDetail |
getVodAdTagDetail(GetVodAdTagDetailRequest request)
Returns the specified ad tag detail for the specified VOD session.
|
VodAdTagDetail |
getVodAdTagDetail(String name)
Returns the specified ad tag detail for the specified VOD session.
|
VodAdTagDetail |
getVodAdTagDetail(VodAdTagDetailName name)
Returns the specified ad tag detail for the specified VOD session.
|
com.google.api.gax.rpc.UnaryCallable<GetVodAdTagDetailRequest,VodAdTagDetail> |
getVodAdTagDetailCallable()
Returns the specified ad tag detail for the specified VOD session.
|
VodSession |
getVodSession(GetVodSessionRequest request)
Returns the full tracking, playback metadata, and relevant ad-ops logs for the specified VOD
session.
|
VodSession |
getVodSession(String name)
Returns the full tracking, playback metadata, and relevant ad-ops logs for the specified VOD
session.
|
VodSession |
getVodSession(VodSessionName name)
Returns the full tracking, playback metadata, and relevant ad-ops logs for the specified VOD
session.
|
com.google.api.gax.rpc.UnaryCallable<GetVodSessionRequest,VodSession> |
getVodSessionCallable()
Returns the full tracking, playback metadata, and relevant ad-ops logs for the specified VOD
session.
|
VodStitchDetail |
getVodStitchDetail(GetVodStitchDetailRequest request)
Returns the specified stitching information for the specified VOD session.
|
VodStitchDetail |
getVodStitchDetail(String name)
Returns the specified stitching information for the specified VOD session.
|
VodStitchDetail |
getVodStitchDetail(VodStitchDetailName name)
Returns the specified stitching information for the specified VOD session.
|
com.google.api.gax.rpc.UnaryCallable<GetVodStitchDetailRequest,VodStitchDetail> |
getVodStitchDetailCallable()
Returns the specified stitching information for the specified VOD session.
|
boolean |
isShutdown() |
boolean |
isTerminated() |
VideoStitcherServiceClient.ListCdnKeysPagedResponse |
listCdnKeys(ListCdnKeysRequest request)
Lists all CDN keys in the specified project and location.
|
VideoStitcherServiceClient.ListCdnKeysPagedResponse |
listCdnKeys(LocationName parent)
Lists all CDN keys in the specified project and location.
|
VideoStitcherServiceClient.ListCdnKeysPagedResponse |
listCdnKeys(String parent)
Lists all CDN keys in the specified project and location.
|
com.google.api.gax.rpc.UnaryCallable<ListCdnKeysRequest,ListCdnKeysResponse> |
listCdnKeysCallable()
Lists all CDN keys in the specified project and location.
|
com.google.api.gax.rpc.UnaryCallable<ListCdnKeysRequest,VideoStitcherServiceClient.ListCdnKeysPagedResponse> |
listCdnKeysPagedCallable()
Lists all CDN keys in the specified project and location.
|
VideoStitcherServiceClient.ListLiveAdTagDetailsPagedResponse |
listLiveAdTagDetails(ListLiveAdTagDetailsRequest request)
Return the list of ad tag details for the specified live session.
|
VideoStitcherServiceClient.ListLiveAdTagDetailsPagedResponse |
listLiveAdTagDetails(LiveSessionName parent)
Return the list of ad tag details for the specified live session.
|
VideoStitcherServiceClient.ListLiveAdTagDetailsPagedResponse |
listLiveAdTagDetails(String parent)
Return the list of ad tag details for the specified live session.
|
com.google.api.gax.rpc.UnaryCallable<ListLiveAdTagDetailsRequest,ListLiveAdTagDetailsResponse> |
listLiveAdTagDetailsCallable()
Return the list of ad tag details for the specified live session.
|
com.google.api.gax.rpc.UnaryCallable<ListLiveAdTagDetailsRequest,VideoStitcherServiceClient.ListLiveAdTagDetailsPagedResponse> |
listLiveAdTagDetailsPagedCallable()
Return the list of ad tag details for the specified live session.
|
VideoStitcherServiceClient.ListLiveConfigsPagedResponse |
listLiveConfigs(ListLiveConfigsRequest request)
Lists all live configs managed by the Video Stitcher that belong to the specified project and
region.
|
VideoStitcherServiceClient.ListLiveConfigsPagedResponse |
listLiveConfigs(LocationName parent)
Lists all live configs managed by the Video Stitcher that belong to the specified project and
region.
|
VideoStitcherServiceClient.ListLiveConfigsPagedResponse |
listLiveConfigs(String parent)
Lists all live configs managed by the Video Stitcher that belong to the specified project and
region.
|
com.google.api.gax.rpc.UnaryCallable<ListLiveConfigsRequest,ListLiveConfigsResponse> |
listLiveConfigsCallable()
Lists all live configs managed by the Video Stitcher that belong to the specified project and
region.
|
com.google.api.gax.rpc.UnaryCallable<ListLiveConfigsRequest,VideoStitcherServiceClient.ListLiveConfigsPagedResponse> |
listLiveConfigsPagedCallable()
Lists all live configs managed by the Video Stitcher that belong to the specified project and
region.
|
VideoStitcherServiceClient.ListSlatesPagedResponse |
listSlates(ListSlatesRequest request)
Lists all slates in the specified project and location.
|
VideoStitcherServiceClient.ListSlatesPagedResponse |
listSlates(LocationName parent)
Lists all slates in the specified project and location.
|
VideoStitcherServiceClient.ListSlatesPagedResponse |
listSlates(String parent)
Lists all slates in the specified project and location.
|
com.google.api.gax.rpc.UnaryCallable<ListSlatesRequest,ListSlatesResponse> |
listSlatesCallable()
Lists all slates in the specified project and location.
|
com.google.api.gax.rpc.UnaryCallable<ListSlatesRequest,VideoStitcherServiceClient.ListSlatesPagedResponse> |
listSlatesPagedCallable()
Lists all slates in the specified project and location.
|
VideoStitcherServiceClient.ListVodAdTagDetailsPagedResponse |
listVodAdTagDetails(ListVodAdTagDetailsRequest request)
Return the list of ad tag details for the specified VOD session.
|
VideoStitcherServiceClient.ListVodAdTagDetailsPagedResponse |
listVodAdTagDetails(String parent)
Return the list of ad tag details for the specified VOD session.
|
VideoStitcherServiceClient.ListVodAdTagDetailsPagedResponse |
listVodAdTagDetails(VodSessionName parent)
Return the list of ad tag details for the specified VOD session.
|
com.google.api.gax.rpc.UnaryCallable<ListVodAdTagDetailsRequest,ListVodAdTagDetailsResponse> |
listVodAdTagDetailsCallable()
Return the list of ad tag details for the specified VOD session.
|
com.google.api.gax.rpc.UnaryCallable<ListVodAdTagDetailsRequest,VideoStitcherServiceClient.ListVodAdTagDetailsPagedResponse> |
listVodAdTagDetailsPagedCallable()
Return the list of ad tag details for the specified VOD session.
|
VideoStitcherServiceClient.ListVodStitchDetailsPagedResponse |
listVodStitchDetails(ListVodStitchDetailsRequest request)
Returns a list of detailed stitching information of the specified VOD session.
|
VideoStitcherServiceClient.ListVodStitchDetailsPagedResponse |
listVodStitchDetails(String parent)
Returns a list of detailed stitching information of the specified VOD session.
|
VideoStitcherServiceClient.ListVodStitchDetailsPagedResponse |
listVodStitchDetails(VodSessionName parent)
Returns a list of detailed stitching information of the specified VOD session.
|
com.google.api.gax.rpc.UnaryCallable<ListVodStitchDetailsRequest,ListVodStitchDetailsResponse> |
listVodStitchDetailsCallable()
Returns a list of detailed stitching information of the specified VOD session.
|
com.google.api.gax.rpc.UnaryCallable<ListVodStitchDetailsRequest,VideoStitcherServiceClient.ListVodStitchDetailsPagedResponse> |
listVodStitchDetailsPagedCallable()
Returns a list of detailed stitching information of the specified VOD session.
|
void |
shutdown() |
void |
shutdownNow() |
com.google.api.gax.longrunning.OperationFuture<CdnKey,OperationMetadata> |
updateCdnKeyAsync(CdnKey cdnKey,
com.google.protobuf.FieldMask updateMask)
Updates the specified CDN key.
|
com.google.api.gax.longrunning.OperationFuture<CdnKey,OperationMetadata> |
updateCdnKeyAsync(UpdateCdnKeyRequest request)
Updates the specified CDN key.
|
com.google.api.gax.rpc.UnaryCallable<UpdateCdnKeyRequest,com.google.longrunning.Operation> |
updateCdnKeyCallable()
Updates the specified CDN key.
|
com.google.api.gax.rpc.OperationCallable<UpdateCdnKeyRequest,CdnKey,OperationMetadata> |
updateCdnKeyOperationCallable()
Updates the specified CDN key.
|
com.google.api.gax.longrunning.OperationFuture<Slate,OperationMetadata> |
updateSlateAsync(Slate slate,
com.google.protobuf.FieldMask updateMask)
Updates the specified slate.
|
com.google.api.gax.longrunning.OperationFuture<Slate,OperationMetadata> |
updateSlateAsync(UpdateSlateRequest request)
Updates the specified slate.
|
com.google.api.gax.rpc.UnaryCallable<UpdateSlateRequest,com.google.longrunning.Operation> |
updateSlateCallable()
Updates the specified slate.
|
com.google.api.gax.rpc.OperationCallable<UpdateSlateRequest,Slate,OperationMetadata> |
updateSlateOperationCallable()
Updates the specified slate.
|
protected VideoStitcherServiceClient(VideoStitcherServiceSettings settings) throws IOException
IOExceptionprotected VideoStitcherServiceClient(VideoStitcherServiceStub stub)
public static final VideoStitcherServiceClient create() throws IOException
IOExceptionpublic static final VideoStitcherServiceClient create(VideoStitcherServiceSettings settings) throws IOException
IOExceptionpublic static final VideoStitcherServiceClient create(VideoStitcherServiceStub stub)
public final VideoStitcherServiceSettings getSettings()
public VideoStitcherServiceStub getStub()
public final com.google.longrunning.OperationsClient getOperationsClient()
public final com.google.api.gax.longrunning.OperationFuture<CdnKey,OperationMetadata> createCdnKeyAsync(LocationName parent, CdnKey cdnKey, String cdnKeyId)
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();
}
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.
com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<CdnKey,OperationMetadata> createCdnKeyAsync(String parent, CdnKey cdnKey, String cdnKeyId)
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();
}
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.
com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<CdnKey,OperationMetadata> createCdnKeyAsync(CreateCdnKeyRequest request)
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();
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.OperationCallable<CreateCdnKeyRequest,CdnKey,OperationMetadata> createCdnKeyOperationCallable()
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();
}
public final com.google.api.gax.rpc.UnaryCallable<CreateCdnKeyRequest,com.google.longrunning.Operation> createCdnKeyCallable()
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();
}
public final VideoStitcherServiceClient.ListCdnKeysPagedResponse listCdnKeys(LocationName parent)
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);
}
}
parent - Required. The project that contains the list of CDN keys, in the form of
`projects/{project_number}/locations/{location}`.com.google.api.gax.rpc.ApiException - if the remote call failspublic final VideoStitcherServiceClient.ListCdnKeysPagedResponse listCdnKeys(String parent)
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);
}
}
parent - Required. The project that contains the list of CDN keys, in the form of
`projects/{project_number}/locations/{location}`.com.google.api.gax.rpc.ApiException - if the remote call failspublic final VideoStitcherServiceClient.ListCdnKeysPagedResponse listCdnKeys(ListCdnKeysRequest request)
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);
}
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<ListCdnKeysRequest,VideoStitcherServiceClient.ListCdnKeysPagedResponse> listCdnKeysPagedCallable()
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);
}
}
public final com.google.api.gax.rpc.UnaryCallable<ListCdnKeysRequest,ListCdnKeysResponse> listCdnKeysCallable()
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;
}
}
}
public final CdnKey getCdnKey(CdnKeyName name)
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);
}
name - Required. The name of the CDN key to be retrieved, in the form of
`projects/{project}/locations/{location}/cdnKeys/{id}`.com.google.api.gax.rpc.ApiException - if the remote call failspublic final CdnKey getCdnKey(String name)
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);
}
name - Required. The name of the CDN key to be retrieved, in the form of
`projects/{project}/locations/{location}/cdnKeys/{id}`.com.google.api.gax.rpc.ApiException - if the remote call failspublic final CdnKey getCdnKey(GetCdnKeyRequest request)
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);
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<GetCdnKeyRequest,CdnKey> getCdnKeyCallable()
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();
}
public final com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteCdnKeyAsync(CdnKeyName name)
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();
}
name - Required. The name of the CDN key to be deleted, in the form of
`projects/{project_number}/locations/{location}/cdnKeys/{id}`.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteCdnKeyAsync(String name)
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();
}
name - Required. The name of the CDN key to be deleted, in the form of
`projects/{project_number}/locations/{location}/cdnKeys/{id}`.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteCdnKeyAsync(DeleteCdnKeyRequest request)
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();
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.OperationCallable<DeleteCdnKeyRequest,com.google.protobuf.Empty,OperationMetadata> deleteCdnKeyOperationCallable()
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();
}
public final com.google.api.gax.rpc.UnaryCallable<DeleteCdnKeyRequest,com.google.longrunning.Operation> deleteCdnKeyCallable()
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();
}
public final com.google.api.gax.longrunning.OperationFuture<CdnKey,OperationMetadata> updateCdnKeyAsync(CdnKey cdnKey, com.google.protobuf.FieldMask updateMask)
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();
}
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#fieldmaskcom.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<CdnKey,OperationMetadata> updateCdnKeyAsync(UpdateCdnKeyRequest request)
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();
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.OperationCallable<UpdateCdnKeyRequest,CdnKey,OperationMetadata> updateCdnKeyOperationCallable()
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();
}
public final com.google.api.gax.rpc.UnaryCallable<UpdateCdnKeyRequest,com.google.longrunning.Operation> updateCdnKeyCallable()
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();
}
public final VodSession createVodSession(LocationName parent, VodSession vodSession)
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);
}
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.com.google.api.gax.rpc.ApiException - if the remote call failspublic final VodSession createVodSession(String parent, VodSession vodSession)
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);
}
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.com.google.api.gax.rpc.ApiException - if the remote call failspublic final VodSession createVodSession(CreateVodSessionRequest request)
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);
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<CreateVodSessionRequest,VodSession> createVodSessionCallable()
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();
}
public final VodSession getVodSession(VodSessionName name)
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);
}
name - Required. The name of the VOD session to be retrieved, in the form of
`projects/{project_number}/locations/{location}/vodSessions/{id}`.com.google.api.gax.rpc.ApiException - if the remote call failspublic final VodSession getVodSession(String name)
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);
}
name - Required. The name of the VOD session to be retrieved, in the form of
`projects/{project_number}/locations/{location}/vodSessions/{id}`.com.google.api.gax.rpc.ApiException - if the remote call failspublic final VodSession getVodSession(GetVodSessionRequest request)
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);
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<GetVodSessionRequest,VodSession> getVodSessionCallable()
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();
}
public final VideoStitcherServiceClient.ListVodStitchDetailsPagedResponse listVodStitchDetails(VodSessionName parent)
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);
}
}
parent - Required. The VOD session where the stitch details belong to, in the form of
`projects/{project}/locations/{location}/vodSessions/{id}`.com.google.api.gax.rpc.ApiException - if the remote call failspublic final VideoStitcherServiceClient.ListVodStitchDetailsPagedResponse listVodStitchDetails(String parent)
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);
}
}
parent - Required. The VOD session where the stitch details belong to, in the form of
`projects/{project}/locations/{location}/vodSessions/{id}`.com.google.api.gax.rpc.ApiException - if the remote call failspublic final VideoStitcherServiceClient.ListVodStitchDetailsPagedResponse listVodStitchDetails(ListVodStitchDetailsRequest request)
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);
}
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<ListVodStitchDetailsRequest,VideoStitcherServiceClient.ListVodStitchDetailsPagedResponse> listVodStitchDetailsPagedCallable()
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);
}
}
public final com.google.api.gax.rpc.UnaryCallable<ListVodStitchDetailsRequest,ListVodStitchDetailsResponse> listVodStitchDetailsCallable()
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;
}
}
}
public final VodStitchDetail getVodStitchDetail(VodStitchDetailName name)
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);
}
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}`.com.google.api.gax.rpc.ApiException - if the remote call failspublic final VodStitchDetail getVodStitchDetail(String name)
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);
}
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}`.com.google.api.gax.rpc.ApiException - if the remote call failspublic final VodStitchDetail getVodStitchDetail(GetVodStitchDetailRequest request)
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);
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<GetVodStitchDetailRequest,VodStitchDetail> getVodStitchDetailCallable()
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();
}
public final VideoStitcherServiceClient.ListVodAdTagDetailsPagedResponse listVodAdTagDetails(VodSessionName parent)
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);
}
}
parent - Required. The VOD session which the ad tag details belong to, in the form of
`projects/{project}/locations/{location}/vodSessions/{vod_session_id}`.com.google.api.gax.rpc.ApiException - if the remote call failspublic final VideoStitcherServiceClient.ListVodAdTagDetailsPagedResponse listVodAdTagDetails(String parent)
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);
}
}
parent - Required. The VOD session which the ad tag details belong to, in the form of
`projects/{project}/locations/{location}/vodSessions/{vod_session_id}`.com.google.api.gax.rpc.ApiException - if the remote call failspublic final VideoStitcherServiceClient.ListVodAdTagDetailsPagedResponse listVodAdTagDetails(ListVodAdTagDetailsRequest request)
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);
}
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<ListVodAdTagDetailsRequest,VideoStitcherServiceClient.ListVodAdTagDetailsPagedResponse> listVodAdTagDetailsPagedCallable()
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);
}
}
public final com.google.api.gax.rpc.UnaryCallable<ListVodAdTagDetailsRequest,ListVodAdTagDetailsResponse> listVodAdTagDetailsCallable()
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;
}
}
}
public final VodAdTagDetail getVodAdTagDetail(VodAdTagDetailName name)
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);
}
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}`.com.google.api.gax.rpc.ApiException - if the remote call failspublic final VodAdTagDetail getVodAdTagDetail(String name)
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);
}
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}`.com.google.api.gax.rpc.ApiException - if the remote call failspublic final VodAdTagDetail getVodAdTagDetail(GetVodAdTagDetailRequest request)
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);
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<GetVodAdTagDetailRequest,VodAdTagDetail> getVodAdTagDetailCallable()
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();
}
public final VideoStitcherServiceClient.ListLiveAdTagDetailsPagedResponse listLiveAdTagDetails(LiveSessionName parent)
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);
}
}
parent - Required. The resource parent in the form of
`projects/{project}/locations/{location}/liveSessions/{live_session}`.com.google.api.gax.rpc.ApiException - if the remote call failspublic final VideoStitcherServiceClient.ListLiveAdTagDetailsPagedResponse listLiveAdTagDetails(String parent)
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);
}
}
parent - Required. The resource parent in the form of
`projects/{project}/locations/{location}/liveSessions/{live_session}`.com.google.api.gax.rpc.ApiException - if the remote call failspublic final VideoStitcherServiceClient.ListLiveAdTagDetailsPagedResponse listLiveAdTagDetails(ListLiveAdTagDetailsRequest request)
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);
}
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<ListLiveAdTagDetailsRequest,VideoStitcherServiceClient.ListLiveAdTagDetailsPagedResponse> listLiveAdTagDetailsPagedCallable()
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);
}
}
public final com.google.api.gax.rpc.UnaryCallable<ListLiveAdTagDetailsRequest,ListLiveAdTagDetailsResponse> listLiveAdTagDetailsCallable()
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;
}
}
}
public final LiveAdTagDetail getLiveAdTagDetail(LiveAdTagDetailName name)
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);
}
name - Required. The resource name in the form of
`projects/{project}/locations/{location}/liveSessions/{live_session}/liveAdTagDetails/{live_ad_tag_detail}`.com.google.api.gax.rpc.ApiException - if the remote call failspublic final LiveAdTagDetail getLiveAdTagDetail(String name)
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);
}
name - Required. The resource name in the form of
`projects/{project}/locations/{location}/liveSessions/{live_session}/liveAdTagDetails/{live_ad_tag_detail}`.com.google.api.gax.rpc.ApiException - if the remote call failspublic final LiveAdTagDetail getLiveAdTagDetail(GetLiveAdTagDetailRequest request)
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);
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<GetLiveAdTagDetailRequest,LiveAdTagDetail> getLiveAdTagDetailCallable()
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();
}
public final com.google.api.gax.longrunning.OperationFuture<Slate,OperationMetadata> createSlateAsync(LocationName parent, Slate slate, String slateId)
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();
}
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.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<Slate,OperationMetadata> createSlateAsync(String parent, Slate slate, String slateId)
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();
}
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.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<Slate,OperationMetadata> createSlateAsync(CreateSlateRequest request)
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();
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.OperationCallable<CreateSlateRequest,Slate,OperationMetadata> createSlateOperationCallable()
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();
}
public final com.google.api.gax.rpc.UnaryCallable<CreateSlateRequest,com.google.longrunning.Operation> createSlateCallable()
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();
}
public final VideoStitcherServiceClient.ListSlatesPagedResponse listSlates(LocationName parent)
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);
}
}
parent - Required. The project to list slates, in the form of
`projects/{project_number}/locations/{location}`.com.google.api.gax.rpc.ApiException - if the remote call failspublic final VideoStitcherServiceClient.ListSlatesPagedResponse listSlates(String parent)
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);
}
}
parent - Required. The project to list slates, in the form of
`projects/{project_number}/locations/{location}`.com.google.api.gax.rpc.ApiException - if the remote call failspublic final VideoStitcherServiceClient.ListSlatesPagedResponse listSlates(ListSlatesRequest request)
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);
}
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<ListSlatesRequest,VideoStitcherServiceClient.ListSlatesPagedResponse> listSlatesPagedCallable()
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);
}
}
public final com.google.api.gax.rpc.UnaryCallable<ListSlatesRequest,ListSlatesResponse> listSlatesCallable()
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;
}
}
}
public final Slate getSlate(SlateName name)
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);
}
name - Required. The name of the slate to be retrieved, of the slate, in the form of
`projects/{project_number}/locations/{location}/slates/{id}`.com.google.api.gax.rpc.ApiException - if the remote call failspublic final Slate getSlate(String name)
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);
}
name - Required. The name of the slate to be retrieved, of the slate, in the form of
`projects/{project_number}/locations/{location}/slates/{id}`.com.google.api.gax.rpc.ApiException - if the remote call failspublic final Slate getSlate(GetSlateRequest request)
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);
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<GetSlateRequest,Slate> getSlateCallable()
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();
}
public final com.google.api.gax.longrunning.OperationFuture<Slate,OperationMetadata> updateSlateAsync(Slate slate, com.google.protobuf.FieldMask updateMask)
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();
}
slate - Required. The resource with updated fields.updateMask - Required. The update mask which specifies fields which should be updated.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<Slate,OperationMetadata> updateSlateAsync(UpdateSlateRequest request)
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();
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.OperationCallable<UpdateSlateRequest,Slate,OperationMetadata> updateSlateOperationCallable()
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();
}
public final com.google.api.gax.rpc.UnaryCallable<UpdateSlateRequest,com.google.longrunning.Operation> updateSlateCallable()
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();
}
public final com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteSlateAsync(SlateName name)
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();
}
name - Required. The name of the slate to be deleted, in the form of
`projects/{project_number}/locations/{location}/slates/{id}`.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteSlateAsync(String name)
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();
}
name - Required. The name of the slate to be deleted, in the form of
`projects/{project_number}/locations/{location}/slates/{id}`.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteSlateAsync(DeleteSlateRequest request)
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();
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.OperationCallable<DeleteSlateRequest,com.google.protobuf.Empty,OperationMetadata> deleteSlateOperationCallable()
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();
}
public final com.google.api.gax.rpc.UnaryCallable<DeleteSlateRequest,com.google.longrunning.Operation> deleteSlateCallable()
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();
}
public final LiveSession createLiveSession(LocationName parent, LiveSession liveSession)
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);
}
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.com.google.api.gax.rpc.ApiException - if the remote call failspublic final LiveSession createLiveSession(String parent, LiveSession liveSession)
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);
}
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.com.google.api.gax.rpc.ApiException - if the remote call failspublic final LiveSession createLiveSession(CreateLiveSessionRequest request)
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);
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<CreateLiveSessionRequest,LiveSession> createLiveSessionCallable()
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();
}
public final LiveSession getLiveSession(LiveSessionName name)
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);
}
name - Required. The name of the live session, in the form of
`projects/{project_number}/locations/{location}/liveSessions/{id}`.com.google.api.gax.rpc.ApiException - if the remote call failspublic final LiveSession getLiveSession(String name)
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);
}
name - Required. The name of the live session, in the form of
`projects/{project_number}/locations/{location}/liveSessions/{id}`.com.google.api.gax.rpc.ApiException - if the remote call failspublic final LiveSession getLiveSession(GetLiveSessionRequest request)
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);
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<GetLiveSessionRequest,LiveSession> getLiveSessionCallable()
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();
}
public final com.google.api.gax.longrunning.OperationFuture<LiveConfig,OperationMetadata> createLiveConfigAsync(LocationName parent, LiveConfig liveConfig, String liveConfigId)
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();
}
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.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<LiveConfig,OperationMetadata> createLiveConfigAsync(String parent, LiveConfig liveConfig, String liveConfigId)
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();
}
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.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<LiveConfig,OperationMetadata> createLiveConfigAsync(CreateLiveConfigRequest request)
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();
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.OperationCallable<CreateLiveConfigRequest,LiveConfig,OperationMetadata> createLiveConfigOperationCallable()
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();
}
public final com.google.api.gax.rpc.UnaryCallable<CreateLiveConfigRequest,com.google.longrunning.Operation> createLiveConfigCallable()
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();
}
public final VideoStitcherServiceClient.ListLiveConfigsPagedResponse listLiveConfigs(LocationName parent)
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);
}
}
parent - Required. The project that contains the list of live configs, in the form of
`projects/{project_number}/locations/{location}`.com.google.api.gax.rpc.ApiException - if the remote call failspublic final VideoStitcherServiceClient.ListLiveConfigsPagedResponse listLiveConfigs(String parent)
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);
}
}
parent - Required. The project that contains the list of live configs, in the form of
`projects/{project_number}/locations/{location}`.com.google.api.gax.rpc.ApiException - if the remote call failspublic final VideoStitcherServiceClient.ListLiveConfigsPagedResponse listLiveConfigs(ListLiveConfigsRequest request)
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);
}
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<ListLiveConfigsRequest,VideoStitcherServiceClient.ListLiveConfigsPagedResponse> listLiveConfigsPagedCallable()
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);
}
}
public final com.google.api.gax.rpc.UnaryCallable<ListLiveConfigsRequest,ListLiveConfigsResponse> listLiveConfigsCallable()
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;
}
}
}
public final LiveConfig getLiveConfig(LiveConfigName name)
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);
}
name - Required. The name of the live config to be retrieved, in the form of
`projects/{project_number}/locations/{location}/liveConfigs/{id}`.com.google.api.gax.rpc.ApiException - if the remote call failspublic final LiveConfig getLiveConfig(String name)
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);
}
name - Required. The name of the live config to be retrieved, in the form of
`projects/{project_number}/locations/{location}/liveConfigs/{id}`.com.google.api.gax.rpc.ApiException - if the remote call failspublic final LiveConfig getLiveConfig(GetLiveConfigRequest request)
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);
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<GetLiveConfigRequest,LiveConfig> getLiveConfigCallable()
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();
}
public final com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteLiveConfigAsync(LiveConfigName name)
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();
}
name - Required. The name of the live config to be deleted, in the form of
`projects/{project_number}/locations/{location}/liveConfigs/{id}`.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteLiveConfigAsync(String name)
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();
}
name - Required. The name of the live config to be deleted, in the form of
`projects/{project_number}/locations/{location}/liveConfigs/{id}`.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,OperationMetadata> deleteLiveConfigAsync(DeleteLiveConfigRequest request)
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();
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.OperationCallable<DeleteLiveConfigRequest,com.google.protobuf.Empty,OperationMetadata> deleteLiveConfigOperationCallable()
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();
}
public final com.google.api.gax.rpc.UnaryCallable<DeleteLiveConfigRequest,com.google.longrunning.Operation> deleteLiveConfigCallable()
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();
}
public final void close()
close in interface AutoCloseablepublic void shutdown()
shutdown in interface com.google.api.gax.core.BackgroundResourcepublic boolean isShutdown()
isShutdown in interface com.google.api.gax.core.BackgroundResourcepublic boolean isTerminated()
isTerminated in interface com.google.api.gax.core.BackgroundResourcepublic void shutdownNow()
shutdownNow in interface com.google.api.gax.core.BackgroundResourcepublic boolean awaitTermination(long duration,
TimeUnit unit)
throws InterruptedException
awaitTermination in interface com.google.api.gax.core.BackgroundResourceInterruptedExceptionCopyright © 2023 Google LLC. All rights reserved.