- 0.53.0 (latest)
- 0.52.0
- 0.51.0
- 0.49.0
- 0.48.0
- 0.47.0
- 0.46.0
- 0.45.0
- 0.44.0
- 0.43.0
- 0.42.0
- 0.41.0
- 0.40.0
- 0.39.0
- 0.37.0
- 0.36.0
- 0.35.0
- 0.34.0
- 0.33.0
- 0.32.0
- 0.31.0
- 0.30.0
- 0.29.0
- 0.28.0
- 0.27.0
- 0.24.0
- 0.23.0
- 0.22.0
- 0.21.0
- 0.20.0
- 0.19.0
- 0.18.0
- 0.17.0
- 0.16.0
- 0.15.0
- 0.14.0
- 0.13.0
- 0.12.0
- 0.11.0
- 0.9.0
- 0.8.0
- 0.7.0
- 0.6.0
- 0.5.0
- 0.4.0
- 0.3.6
- 0.1.2
public class VideoStitcherServiceClient implements BackgroundResource
Service Description: Video-On-Demand content stitching API allows you to insert ads into (VoD) video on demand files. You will be able to render custom scrubber bars with highlighted ads, enforce ad policies, allow seamless playback and tracking on native players and monetize content with any standard VMAP compliant ad server.
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:
- A "flattened" method. With this type of method, the fields of the request type have been converted into function parameters. It may be the case that not all fields are available as parameters, and not every API method will have a flattened method entry point.
- A "request object" method. This type of method only takes one parameter, a request object, which must be constructed before the call. Not every API method will have a request object method.
- A "callable" method. This type of method takes no parameters and returns an immutable API callable object, which can be used to initiate calls to the service.
See the individual methods for example code.
Many parameters require resource names to be formatted in a particular way. To assist with these names, this class includes a format method for each type of name, and additionally a parse method to extract the individual identifiers contained within names that are returned.
This class can be customized by passing in a custom instance of VideoStitcherServiceSettings to create(). For example:
To customize credentials:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
VideoStitcherServiceSettings videoStitcherServiceSettings =
VideoStitcherServiceSettings.newBuilder()
.setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
.build();
VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create(videoStitcherServiceSettings);
To customize the endpoint:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
VideoStitcherServiceSettings videoStitcherServiceSettings =
VideoStitcherServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create(videoStitcherServiceSettings);
Please refer to the GitHub repository's samples for more quickstart code snippets.
Implements
BackgroundResourceStatic Methods
create()
public static final VideoStitcherServiceClient create()
Constructs an instance of VideoStitcherServiceClient with default settings.
Returns | |
---|---|
Type | Description |
VideoStitcherServiceClient |
Exceptions | |
---|---|
Type | Description |
IOException |
create(VideoStitcherServiceSettings settings)
public static final VideoStitcherServiceClient create(VideoStitcherServiceSettings settings)
Constructs an instance of VideoStitcherServiceClient, using the given settings. The channels are created based on the settings passed in, or defaults for any settings that are not set.
Parameter | |
---|---|
Name | Description |
settings | VideoStitcherServiceSettings |
Returns | |
---|---|
Type | Description |
VideoStitcherServiceClient |
Exceptions | |
---|---|
Type | Description |
IOException |
create(VideoStitcherServiceStub stub)
public static final VideoStitcherServiceClient create(VideoStitcherServiceStub stub)
Constructs an instance of VideoStitcherServiceClient, using the given stub for making calls. This is for advanced usage - prefer using create(VideoStitcherServiceSettings).
Parameter | |
---|---|
Name | Description |
stub | VideoStitcherServiceStub |
Returns | |
---|---|
Type | Description |
VideoStitcherServiceClient |
Constructors
VideoStitcherServiceClient(VideoStitcherServiceSettings settings)
protected VideoStitcherServiceClient(VideoStitcherServiceSettings settings)
Constructs an instance of VideoStitcherServiceClient, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.
Parameter | |
---|---|
Name | Description |
settings | VideoStitcherServiceSettings |
VideoStitcherServiceClient(VideoStitcherServiceStub stub)
protected VideoStitcherServiceClient(VideoStitcherServiceStub stub)
Parameter | |
---|---|
Name | Description |
stub | VideoStitcherServiceStub |
Methods
awaitTermination(long duration, TimeUnit unit)
public boolean awaitTermination(long duration, TimeUnit unit)
Parameters | |
---|---|
Name | Description |
duration | long |
unit | TimeUnit |
Returns | |
---|---|
Type | Description |
boolean |
Exceptions | |
---|---|
Type | Description |
InterruptedException |
close()
public final void close()
createCdnKeyAsync(CreateCdnKeyRequest request)
public final OperationFuture<CdnKey,OperationMetadata> createCdnKeyAsync(CreateCdnKeyRequest request)
Creates a new CDN key.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
CreateCdnKeyRequest request =
CreateCdnKeyRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setCdnKey(CdnKey.newBuilder().build())
.setCdnKeyId("cdnKeyId-1777782867")
.build();
CdnKey response = videoStitcherServiceClient.createCdnKeyAsync(request).get();
}
Parameter | |
---|---|
Name | Description |
request | CreateCdnKeyRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
OperationFuture<CdnKey,OperationMetadata> |
createCdnKeyAsync(LocationName parent, CdnKey cdnKey, String cdnKeyId)
public final OperationFuture<CdnKey,OperationMetadata> createCdnKeyAsync(LocationName parent, CdnKey cdnKey, String cdnKeyId)
Creates a new CDN key.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
CdnKey cdnKey = CdnKey.newBuilder().build();
String cdnKeyId = "cdnKeyId-1777782867";
CdnKey response =
videoStitcherServiceClient.createCdnKeyAsync(parent, cdnKey, cdnKeyId).get();
}
Parameters | |
---|---|
Name | Description |
parent | LocationName Required. The project in which the CDN key should be created, in the form of
|
cdnKey | CdnKey Required. The CDN key resource to create. |
cdnKeyId | String 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. |
Returns | |
---|---|
Type | Description |
OperationFuture<CdnKey,OperationMetadata> |
createCdnKeyAsync(String parent, CdnKey cdnKey, String cdnKeyId)
public final OperationFuture<CdnKey,OperationMetadata> createCdnKeyAsync(String parent, CdnKey cdnKey, String cdnKeyId)
Creates a new CDN key.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
CdnKey cdnKey = CdnKey.newBuilder().build();
String cdnKeyId = "cdnKeyId-1777782867";
CdnKey response =
videoStitcherServiceClient.createCdnKeyAsync(parent, cdnKey, cdnKeyId).get();
}
Parameters | |
---|---|
Name | Description |
parent | String Required. The project in which the CDN key should be created, in the form of
|
cdnKey | CdnKey Required. The CDN key resource to create. |
cdnKeyId | String 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. |
Returns | |
---|---|
Type | Description |
OperationFuture<CdnKey,OperationMetadata> |
createCdnKeyCallable()
public final UnaryCallable<CreateCdnKeyRequest,Operation> createCdnKeyCallable()
Creates a new CDN key.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
CreateCdnKeyRequest request =
CreateCdnKeyRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setCdnKey(CdnKey.newBuilder().build())
.setCdnKeyId("cdnKeyId-1777782867")
.build();
ApiFuture<Operation> future =
videoStitcherServiceClient.createCdnKeyCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<CreateCdnKeyRequest,Operation> |
createCdnKeyOperationCallable()
public final OperationCallable<CreateCdnKeyRequest,CdnKey,OperationMetadata> createCdnKeyOperationCallable()
Creates a new CDN key.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
CreateCdnKeyRequest request =
CreateCdnKeyRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setCdnKey(CdnKey.newBuilder().build())
.setCdnKeyId("cdnKeyId-1777782867")
.build();
OperationFuture<CdnKey, OperationMetadata> future =
videoStitcherServiceClient.createCdnKeyOperationCallable().futureCall(request);
// Do something.
CdnKey response = future.get();
}
Returns | |
---|---|
Type | Description |
OperationCallable<CreateCdnKeyRequest,CdnKey,OperationMetadata> |
createLiveConfigAsync(CreateLiveConfigRequest request)
public final OperationFuture<LiveConfig,OperationMetadata> createLiveConfigAsync(CreateLiveConfigRequest request)
Registers the live config with the provided unique ID in the specified region.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
CreateLiveConfigRequest request =
CreateLiveConfigRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setLiveConfigId("liveConfigId1256140041")
.setLiveConfig(LiveConfig.newBuilder().build())
.setRequestId("requestId693933066")
.build();
LiveConfig response = videoStitcherServiceClient.createLiveConfigAsync(request).get();
}
Parameter | |
---|---|
Name | Description |
request | CreateLiveConfigRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
OperationFuture<LiveConfig,OperationMetadata> |
createLiveConfigAsync(LocationName parent, LiveConfig liveConfig, String liveConfigId)
public final OperationFuture<LiveConfig,OperationMetadata> createLiveConfigAsync(LocationName parent, LiveConfig liveConfig, String liveConfigId)
Registers the live config with the provided unique ID in the specified region.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
LiveConfig liveConfig = LiveConfig.newBuilder().build();
String liveConfigId = "liveConfigId1256140041";
LiveConfig response =
videoStitcherServiceClient.createLiveConfigAsync(parent, liveConfig, liveConfigId).get();
}
Parameters | |
---|---|
Name | Description |
parent | LocationName Required. The project in which the live config should be created, in the form of
|
liveConfig | LiveConfig Required. The live config resource to create. |
liveConfigId | String Required. The unique identifier ID to use for the live config. |
Returns | |
---|---|
Type | Description |
OperationFuture<LiveConfig,OperationMetadata> |
createLiveConfigAsync(String parent, LiveConfig liveConfig, String liveConfigId)
public final OperationFuture<LiveConfig,OperationMetadata> createLiveConfigAsync(String parent, LiveConfig liveConfig, String liveConfigId)
Registers the live config with the provided unique ID in the specified region.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
LiveConfig liveConfig = LiveConfig.newBuilder().build();
String liveConfigId = "liveConfigId1256140041";
LiveConfig response =
videoStitcherServiceClient.createLiveConfigAsync(parent, liveConfig, liveConfigId).get();
}
Parameters | |
---|---|
Name | Description |
parent | String Required. The project in which the live config should be created, in the form of
|
liveConfig | LiveConfig Required. The live config resource to create. |
liveConfigId | String Required. The unique identifier ID to use for the live config. |
Returns | |
---|---|
Type | Description |
OperationFuture<LiveConfig,OperationMetadata> |
createLiveConfigCallable()
public final UnaryCallable<CreateLiveConfigRequest,Operation> createLiveConfigCallable()
Registers the live config with the provided unique ID in the specified region.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
CreateLiveConfigRequest request =
CreateLiveConfigRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setLiveConfigId("liveConfigId1256140041")
.setLiveConfig(LiveConfig.newBuilder().build())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future =
videoStitcherServiceClient.createLiveConfigCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<CreateLiveConfigRequest,Operation> |
createLiveConfigOperationCallable()
public final OperationCallable<CreateLiveConfigRequest,LiveConfig,OperationMetadata> createLiveConfigOperationCallable()
Registers the live config with the provided unique ID in the specified region.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
CreateLiveConfigRequest request =
CreateLiveConfigRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setLiveConfigId("liveConfigId1256140041")
.setLiveConfig(LiveConfig.newBuilder().build())
.setRequestId("requestId693933066")
.build();
OperationFuture<LiveConfig, OperationMetadata> future =
videoStitcherServiceClient.createLiveConfigOperationCallable().futureCall(request);
// Do something.
LiveConfig response = future.get();
}
Returns | |
---|---|
Type | Description |
OperationCallable<CreateLiveConfigRequest,LiveConfig,OperationMetadata> |
createLiveSession(CreateLiveSessionRequest request)
public final LiveSession createLiveSession(CreateLiveSessionRequest request)
Creates a new live session.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
CreateLiveSessionRequest request =
CreateLiveSessionRequest.newBuilder()
.setParent(LiveSessionName.of("[PROJECT]", "[LOCATION]", "[LIVE_SESSION]").toString())
.setLiveSession(LiveSession.newBuilder().build())
.build();
LiveSession response = videoStitcherServiceClient.createLiveSession(request);
}
Parameter | |
---|---|
Name | Description |
request | CreateLiveSessionRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
LiveSession |
createLiveSession(LiveSessionName parent, LiveSession liveSession)
public final LiveSession createLiveSession(LiveSessionName parent, LiveSession liveSession)
Creates a new live session.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
LiveSessionName parent = LiveSessionName.of("[PROJECT]", "[LOCATION]", "[LIVE_SESSION]");
LiveSession liveSession = LiveSession.newBuilder().build();
LiveSession response = videoStitcherServiceClient.createLiveSession(parent, liveSession);
}
Parameters | |
---|---|
Name | Description |
parent | LiveSessionName Required. The project and location in which the live session should be created,
in the form of |
liveSession | LiveSession Required. Parameters for creating a live session. |
Returns | |
---|---|
Type | Description |
LiveSession |
createLiveSession(String parent, LiveSession liveSession)
public final LiveSession createLiveSession(String parent, LiveSession liveSession)
Creates a new live session.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
String parent = LiveSessionName.of("[PROJECT]", "[LOCATION]", "[LIVE_SESSION]").toString();
LiveSession liveSession = LiveSession.newBuilder().build();
LiveSession response = videoStitcherServiceClient.createLiveSession(parent, liveSession);
}
Parameters | |
---|---|
Name | Description |
parent | String Required. The project and location in which the live session should be created,
in the form of |
liveSession | LiveSession Required. Parameters for creating a live session. |
Returns | |
---|---|
Type | Description |
LiveSession |
createLiveSessionCallable()
public final UnaryCallable<CreateLiveSessionRequest,LiveSession> createLiveSessionCallable()
Creates a new live session.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
CreateLiveSessionRequest request =
CreateLiveSessionRequest.newBuilder()
.setParent(LiveSessionName.of("[PROJECT]", "[LOCATION]", "[LIVE_SESSION]").toString())
.setLiveSession(LiveSession.newBuilder().build())
.build();
ApiFuture<LiveSession> future =
videoStitcherServiceClient.createLiveSessionCallable().futureCall(request);
// Do something.
LiveSession response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<CreateLiveSessionRequest,LiveSession> |
createSlateAsync(CreateSlateRequest request)
public final OperationFuture<Slate,OperationMetadata> createSlateAsync(CreateSlateRequest request)
Creates a slate.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
CreateSlateRequest request =
CreateSlateRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setSlateId("slateId-2126174060")
.setSlate(Slate.newBuilder().build())
.setRequestId("requestId693933066")
.build();
Slate response = videoStitcherServiceClient.createSlateAsync(request).get();
}
Parameter | |
---|---|
Name | Description |
request | CreateSlateRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
OperationFuture<Slate,OperationMetadata> |
createSlateAsync(LocationName parent, Slate slate, String slateId)
public final OperationFuture<Slate,OperationMetadata> createSlateAsync(LocationName parent, Slate slate, String slateId)
Creates a slate.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
Slate slate = Slate.newBuilder().build();
String slateId = "slateId-2126174060";
Slate response = videoStitcherServiceClient.createSlateAsync(parent, slate, slateId).get();
}
Parameters | |
---|---|
Name | Description |
parent | LocationName Required. The project in which the slate should be created, in the form of
|
slate | Slate Required. The slate to create. |
slateId | String 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. |
Returns | |
---|---|
Type | Description |
OperationFuture<Slate,OperationMetadata> |
createSlateAsync(String parent, Slate slate, String slateId)
public final OperationFuture<Slate,OperationMetadata> createSlateAsync(String parent, Slate slate, String slateId)
Creates a slate.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
Slate slate = Slate.newBuilder().build();
String slateId = "slateId-2126174060";
Slate response = videoStitcherServiceClient.createSlateAsync(parent, slate, slateId).get();
}
Parameters | |
---|---|
Name | Description |
parent | String Required. The project in which the slate should be created, in the form of
|
slate | Slate Required. The slate to create. |
slateId | String 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. |
Returns | |
---|---|
Type | Description |
OperationFuture<Slate,OperationMetadata> |
createSlateCallable()
public final UnaryCallable<CreateSlateRequest,Operation> createSlateCallable()
Creates a slate.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
CreateSlateRequest request =
CreateSlateRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setSlateId("slateId-2126174060")
.setSlate(Slate.newBuilder().build())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future =
videoStitcherServiceClient.createSlateCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<CreateSlateRequest,Operation> |
createSlateOperationCallable()
public final OperationCallable<CreateSlateRequest,Slate,OperationMetadata> createSlateOperationCallable()
Creates a slate.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
CreateSlateRequest request =
CreateSlateRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setSlateId("slateId-2126174060")
.setSlate(Slate.newBuilder().build())
.setRequestId("requestId693933066")
.build();
OperationFuture<Slate, OperationMetadata> future =
videoStitcherServiceClient.createSlateOperationCallable().futureCall(request);
// Do something.
Slate response = future.get();
}
Returns | |
---|---|
Type | Description |
OperationCallable<CreateSlateRequest,Slate,OperationMetadata> |
createVodSession(CreateVodSessionRequest request)
public final VodSession createVodSession(CreateVodSessionRequest request)
Creates a client side playback VOD session and returns the full tracking and playback metadata of the session.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
CreateVodSessionRequest request =
CreateVodSessionRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setVodSession(VodSession.newBuilder().build())
.build();
VodSession response = videoStitcherServiceClient.createVodSession(request);
}
Parameter | |
---|---|
Name | Description |
request | CreateVodSessionRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
VodSession |
createVodSession(LocationName parent, VodSession vodSession)
public final VodSession createVodSession(LocationName parent, VodSession vodSession)
Creates a client side playback VOD session and returns the full tracking and playback metadata of the session.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
VodSession vodSession = VodSession.newBuilder().build();
VodSession response = videoStitcherServiceClient.createVodSession(parent, vodSession);
}
Parameters | |
---|---|
Name | Description |
parent | LocationName Required. The project and location in which the VOD session should be created, in
the form of |
vodSession | VodSession Required. Parameters for creating a session. |
Returns | |
---|---|
Type | Description |
VodSession |
createVodSession(String parent, VodSession vodSession)
public final VodSession createVodSession(String parent, VodSession vodSession)
Creates a client side playback VOD session and returns the full tracking and playback metadata of the session.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
VodSession vodSession = VodSession.newBuilder().build();
VodSession response = videoStitcherServiceClient.createVodSession(parent, vodSession);
}
Parameters | |
---|---|
Name | Description |
parent | String Required. The project and location in which the VOD session should be created, in
the form of |
vodSession | VodSession Required. Parameters for creating a session. |
Returns | |
---|---|
Type | Description |
VodSession |
createVodSessionCallable()
public final UnaryCallable<CreateVodSessionRequest,VodSession> createVodSessionCallable()
Creates a client side playback VOD session and returns the full tracking and playback metadata of the session.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
CreateVodSessionRequest request =
CreateVodSessionRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setVodSession(VodSession.newBuilder().build())
.build();
ApiFuture<VodSession> future =
videoStitcherServiceClient.createVodSessionCallable().futureCall(request);
// Do something.
VodSession response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<CreateVodSessionRequest,VodSession> |
deleteCdnKeyAsync(CdnKeyName name)
public final OperationFuture<Empty,OperationMetadata> deleteCdnKeyAsync(CdnKeyName name)
Deletes the specified CDN key.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
CdnKeyName name = CdnKeyName.of("[PROJECT]", "[LOCATION]", "[CDN_KEY]");
videoStitcherServiceClient.deleteCdnKeyAsync(name).get();
}
Parameter | |
---|---|
Name | Description |
name | CdnKeyName Required. The name of the CDN key to be deleted, in the form of
|
Returns | |
---|---|
Type | Description |
OperationFuture<Empty,OperationMetadata> |
deleteCdnKeyAsync(DeleteCdnKeyRequest request)
public final OperationFuture<Empty,OperationMetadata> deleteCdnKeyAsync(DeleteCdnKeyRequest request)
Deletes the specified CDN key.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
DeleteCdnKeyRequest request =
DeleteCdnKeyRequest.newBuilder()
.setName(CdnKeyName.of("[PROJECT]", "[LOCATION]", "[CDN_KEY]").toString())
.build();
videoStitcherServiceClient.deleteCdnKeyAsync(request).get();
}
Parameter | |
---|---|
Name | Description |
request | DeleteCdnKeyRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
OperationFuture<Empty,OperationMetadata> |
deleteCdnKeyAsync(String name)
public final OperationFuture<Empty,OperationMetadata> deleteCdnKeyAsync(String name)
Deletes the specified CDN key.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
String name = CdnKeyName.of("[PROJECT]", "[LOCATION]", "[CDN_KEY]").toString();
videoStitcherServiceClient.deleteCdnKeyAsync(name).get();
}
Parameter | |
---|---|
Name | Description |
name | String Required. The name of the CDN key to be deleted, in the form of
|
Returns | |
---|---|
Type | Description |
OperationFuture<Empty,OperationMetadata> |
deleteCdnKeyCallable()
public final UnaryCallable<DeleteCdnKeyRequest,Operation> deleteCdnKeyCallable()
Deletes the specified CDN key.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
DeleteCdnKeyRequest request =
DeleteCdnKeyRequest.newBuilder()
.setName(CdnKeyName.of("[PROJECT]", "[LOCATION]", "[CDN_KEY]").toString())
.build();
ApiFuture<Operation> future =
videoStitcherServiceClient.deleteCdnKeyCallable().futureCall(request);
// Do something.
future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<DeleteCdnKeyRequest,Operation> |
deleteCdnKeyOperationCallable()
public final OperationCallable<DeleteCdnKeyRequest,Empty,OperationMetadata> deleteCdnKeyOperationCallable()
Deletes the specified CDN key.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
DeleteCdnKeyRequest request =
DeleteCdnKeyRequest.newBuilder()
.setName(CdnKeyName.of("[PROJECT]", "[LOCATION]", "[CDN_KEY]").toString())
.build();
OperationFuture<Empty, OperationMetadata> future =
videoStitcherServiceClient.deleteCdnKeyOperationCallable().futureCall(request);
// Do something.
future.get();
}
Returns | |
---|---|
Type | Description |
OperationCallable<DeleteCdnKeyRequest,Empty,OperationMetadata> |
deleteLiveConfigAsync(DeleteLiveConfigRequest request)
public final OperationFuture<Empty,OperationMetadata> deleteLiveConfigAsync(DeleteLiveConfigRequest request)
Deletes the specified live config.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
DeleteLiveConfigRequest request =
DeleteLiveConfigRequest.newBuilder()
.setName(LiveConfigName.of("[PROJECT]", "[LOCATION]", "[LIVE_CONFIG]").toString())
.build();
videoStitcherServiceClient.deleteLiveConfigAsync(request).get();
}
Parameter | |
---|---|
Name | Description |
request | DeleteLiveConfigRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
OperationFuture<Empty,OperationMetadata> |
deleteLiveConfigAsync(LiveConfigName name)
public final OperationFuture<Empty,OperationMetadata> deleteLiveConfigAsync(LiveConfigName name)
Deletes the specified live config.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
LiveConfigName name = LiveConfigName.of("[PROJECT]", "[LOCATION]", "[LIVE_CONFIG]");
videoStitcherServiceClient.deleteLiveConfigAsync(name).get();
}
Parameter | |
---|---|
Name | Description |
name | LiveConfigName Required. The name of the live config to be deleted, in the form of
|
Returns | |
---|---|
Type | Description |
OperationFuture<Empty,OperationMetadata> |
deleteLiveConfigAsync(String name)
public final OperationFuture<Empty,OperationMetadata> deleteLiveConfigAsync(String name)
Deletes the specified live config.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
String name = LiveConfigName.of("[PROJECT]", "[LOCATION]", "[LIVE_CONFIG]").toString();
videoStitcherServiceClient.deleteLiveConfigAsync(name).get();
}
Parameter | |
---|---|
Name | Description |
name | String Required. The name of the live config to be deleted, in the form of
|
Returns | |
---|---|
Type | Description |
OperationFuture<Empty,OperationMetadata> |
deleteLiveConfigCallable()
public final UnaryCallable<DeleteLiveConfigRequest,Operation> deleteLiveConfigCallable()
Deletes the specified live config.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
DeleteLiveConfigRequest request =
DeleteLiveConfigRequest.newBuilder()
.setName(LiveConfigName.of("[PROJECT]", "[LOCATION]", "[LIVE_CONFIG]").toString())
.build();
ApiFuture<Operation> future =
videoStitcherServiceClient.deleteLiveConfigCallable().futureCall(request);
// Do something.
future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<DeleteLiveConfigRequest,Operation> |
deleteLiveConfigOperationCallable()
public final OperationCallable<DeleteLiveConfigRequest,Empty,OperationMetadata> deleteLiveConfigOperationCallable()
Deletes the specified live config.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
DeleteLiveConfigRequest request =
DeleteLiveConfigRequest.newBuilder()
.setName(LiveConfigName.of("[PROJECT]", "[LOCATION]", "[LIVE_CONFIG]").toString())
.build();
OperationFuture<Empty, OperationMetadata> future =
videoStitcherServiceClient.deleteLiveConfigOperationCallable().futureCall(request);
// Do something.
future.get();
}
Returns | |
---|---|
Type | Description |
OperationCallable<DeleteLiveConfigRequest,Empty,OperationMetadata> |
deleteSlateAsync(DeleteSlateRequest request)
public final OperationFuture<Empty,OperationMetadata> deleteSlateAsync(DeleteSlateRequest request)
Deletes the specified slate.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
DeleteSlateRequest request =
DeleteSlateRequest.newBuilder()
.setName(SlateName.of("[PROJECT]", "[LOCATION]", "[SLATE]").toString())
.build();
videoStitcherServiceClient.deleteSlateAsync(request).get();
}
Parameter | |
---|---|
Name | Description |
request | DeleteSlateRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
OperationFuture<Empty,OperationMetadata> |
deleteSlateAsync(SlateName name)
public final OperationFuture<Empty,OperationMetadata> deleteSlateAsync(SlateName name)
Deletes the specified slate.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
SlateName name = SlateName.of("[PROJECT]", "[LOCATION]", "[SLATE]");
videoStitcherServiceClient.deleteSlateAsync(name).get();
}
Parameter | |
---|---|
Name | Description |
name | SlateName Required. The name of the slate to be deleted, in the form of
|
Returns | |
---|---|
Type | Description |
OperationFuture<Empty,OperationMetadata> |
deleteSlateAsync(String name)
public final OperationFuture<Empty,OperationMetadata> deleteSlateAsync(String name)
Deletes the specified slate.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
String name = SlateName.of("[PROJECT]", "[LOCATION]", "[SLATE]").toString();
videoStitcherServiceClient.deleteSlateAsync(name).get();
}
Parameter | |
---|---|
Name | Description |
name | String Required. The name of the slate to be deleted, in the form of
|
Returns | |
---|---|
Type | Description |
OperationFuture<Empty,OperationMetadata> |
deleteSlateCallable()
public final UnaryCallable<DeleteSlateRequest,Operation> deleteSlateCallable()
Deletes the specified slate.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
DeleteSlateRequest request =
DeleteSlateRequest.newBuilder()
.setName(SlateName.of("[PROJECT]", "[LOCATION]", "[SLATE]").toString())
.build();
ApiFuture<Operation> future =
videoStitcherServiceClient.deleteSlateCallable().futureCall(request);
// Do something.
future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<DeleteSlateRequest,Operation> |
deleteSlateOperationCallable()
public final OperationCallable<DeleteSlateRequest,Empty,OperationMetadata> deleteSlateOperationCallable()
Deletes the specified slate.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
DeleteSlateRequest request =
DeleteSlateRequest.newBuilder()
.setName(SlateName.of("[PROJECT]", "[LOCATION]", "[SLATE]").toString())
.build();
OperationFuture<Empty, OperationMetadata> future =
videoStitcherServiceClient.deleteSlateOperationCallable().futureCall(request);
// Do something.
future.get();
}
Returns | |
---|---|
Type | Description |
OperationCallable<DeleteSlateRequest,Empty,OperationMetadata> |
getCdnKey(CdnKeyName name)
public final CdnKey getCdnKey(CdnKeyName name)
Returns the specified CDN key.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
CdnKeyName name = CdnKeyName.of("[PROJECT]", "[LOCATION]", "[CDN_KEY]");
CdnKey response = videoStitcherServiceClient.getCdnKey(name);
}
Parameter | |
---|---|
Name | Description |
name | CdnKeyName Required. The name of the CDN key to be retrieved, in the form of
|
Returns | |
---|---|
Type | Description |
CdnKey |
getCdnKey(GetCdnKeyRequest request)
public final CdnKey getCdnKey(GetCdnKeyRequest request)
Returns the specified CDN key.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
GetCdnKeyRequest request =
GetCdnKeyRequest.newBuilder()
.setName(CdnKeyName.of("[PROJECT]", "[LOCATION]", "[CDN_KEY]").toString())
.build();
CdnKey response = videoStitcherServiceClient.getCdnKey(request);
}
Parameter | |
---|---|
Name | Description |
request | GetCdnKeyRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
CdnKey |
getCdnKey(String name)
public final CdnKey getCdnKey(String name)
Returns the specified CDN key.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
String name = CdnKeyName.of("[PROJECT]", "[LOCATION]", "[CDN_KEY]").toString();
CdnKey response = videoStitcherServiceClient.getCdnKey(name);
}
Parameter | |
---|---|
Name | Description |
name | String Required. The name of the CDN key to be retrieved, in the form of
|
Returns | |
---|---|
Type | Description |
CdnKey |
getCdnKeyCallable()
public final UnaryCallable<GetCdnKeyRequest,CdnKey> getCdnKeyCallable()
Returns the specified CDN key.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
GetCdnKeyRequest request =
GetCdnKeyRequest.newBuilder()
.setName(CdnKeyName.of("[PROJECT]", "[LOCATION]", "[CDN_KEY]").toString())
.build();
ApiFuture<CdnKey> future = videoStitcherServiceClient.getCdnKeyCallable().futureCall(request);
// Do something.
CdnKey response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<GetCdnKeyRequest,CdnKey> |
getLiveAdTagDetail(GetLiveAdTagDetailRequest request)
public final LiveAdTagDetail getLiveAdTagDetail(GetLiveAdTagDetailRequest request)
Returns the specified ad tag detail for the specified live session.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
GetLiveAdTagDetailRequest request =
GetLiveAdTagDetailRequest.newBuilder()
.setName(
LiveAdTagDetailName.of(
"[PROJECT]", "[LOCATION]", "[LIVE_SESSION]", "[LIVE_AD_TAG_DETAIL]")
.toString())
.build();
LiveAdTagDetail response = videoStitcherServiceClient.getLiveAdTagDetail(request);
}
Parameter | |
---|---|
Name | Description |
request | GetLiveAdTagDetailRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
LiveAdTagDetail |
getLiveAdTagDetail(LiveAdTagDetailName name)
public final LiveAdTagDetail getLiveAdTagDetail(LiveAdTagDetailName name)
Returns the specified ad tag detail for the specified live session.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
LiveAdTagDetailName name =
LiveAdTagDetailName.of(
"[PROJECT]", "[LOCATION]", "[LIVE_SESSION]", "[LIVE_AD_TAG_DETAIL]");
LiveAdTagDetail response = videoStitcherServiceClient.getLiveAdTagDetail(name);
}
Parameter | |
---|---|
Name | Description |
name | LiveAdTagDetailName Required. The resource name in the form of
|
Returns | |
---|---|
Type | Description |
LiveAdTagDetail |
getLiveAdTagDetail(String name)
public final LiveAdTagDetail getLiveAdTagDetail(String name)
Returns the specified ad tag detail for the specified live session.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
String name =
LiveAdTagDetailName.of(
"[PROJECT]", "[LOCATION]", "[LIVE_SESSION]", "[LIVE_AD_TAG_DETAIL]")
.toString();
LiveAdTagDetail response = videoStitcherServiceClient.getLiveAdTagDetail(name);
}
Parameter | |
---|---|
Name | Description |
name | String Required. The resource name in the form of
|
Returns | |
---|---|
Type | Description |
LiveAdTagDetail |
getLiveAdTagDetailCallable()
public final UnaryCallable<GetLiveAdTagDetailRequest,LiveAdTagDetail> getLiveAdTagDetailCallable()
Returns the specified ad tag detail for the specified live session.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
GetLiveAdTagDetailRequest request =
GetLiveAdTagDetailRequest.newBuilder()
.setName(
LiveAdTagDetailName.of(
"[PROJECT]", "[LOCATION]", "[LIVE_SESSION]", "[LIVE_AD_TAG_DETAIL]")
.toString())
.build();
ApiFuture<LiveAdTagDetail> future =
videoStitcherServiceClient.getLiveAdTagDetailCallable().futureCall(request);
// Do something.
LiveAdTagDetail response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<GetLiveAdTagDetailRequest,LiveAdTagDetail> |
getLiveConfig(GetLiveConfigRequest request)
public final LiveConfig getLiveConfig(GetLiveConfigRequest request)
Returns the specified live config managed by the Video Stitcher service.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
GetLiveConfigRequest request =
GetLiveConfigRequest.newBuilder()
.setName(LiveConfigName.of("[PROJECT]", "[LOCATION]", "[LIVE_CONFIG]").toString())
.build();
LiveConfig response = videoStitcherServiceClient.getLiveConfig(request);
}
Parameter | |
---|---|
Name | Description |
request | GetLiveConfigRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
LiveConfig |
getLiveConfig(LiveConfigName name)
public final LiveConfig getLiveConfig(LiveConfigName name)
Returns the specified live config managed by the Video Stitcher service.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
LiveConfigName name = LiveConfigName.of("[PROJECT]", "[LOCATION]", "[LIVE_CONFIG]");
LiveConfig response = videoStitcherServiceClient.getLiveConfig(name);
}
Parameter | |
---|---|
Name | Description |
name | LiveConfigName Required. The name of the live config to be retrieved, in the form of
|
Returns | |
---|---|
Type | Description |
LiveConfig |
getLiveConfig(String name)
public final LiveConfig getLiveConfig(String name)
Returns the specified live config managed by the Video Stitcher service.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
String name = LiveConfigName.of("[PROJECT]", "[LOCATION]", "[LIVE_CONFIG]").toString();
LiveConfig response = videoStitcherServiceClient.getLiveConfig(name);
}
Parameter | |
---|---|
Name | Description |
name | String Required. The name of the live config to be retrieved, in the form of
|
Returns | |
---|---|
Type | Description |
LiveConfig |
getLiveConfigCallable()
public final UnaryCallable<GetLiveConfigRequest,LiveConfig> getLiveConfigCallable()
Returns the specified live config managed by the Video Stitcher service.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
GetLiveConfigRequest request =
GetLiveConfigRequest.newBuilder()
.setName(LiveConfigName.of("[PROJECT]", "[LOCATION]", "[LIVE_CONFIG]").toString())
.build();
ApiFuture<LiveConfig> future =
videoStitcherServiceClient.getLiveConfigCallable().futureCall(request);
// Do something.
LiveConfig response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<GetLiveConfigRequest,LiveConfig> |
getLiveSession(GetLiveSessionRequest request)
public final LiveSession getLiveSession(GetLiveSessionRequest request)
Returns the details for the specified live session.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
GetLiveSessionRequest request =
GetLiveSessionRequest.newBuilder()
.setName(LiveSessionName.of("[PROJECT]", "[LOCATION]", "[LIVE_SESSION]").toString())
.build();
LiveSession response = videoStitcherServiceClient.getLiveSession(request);
}
Parameter | |
---|---|
Name | Description |
request | GetLiveSessionRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
LiveSession |
getLiveSession(LiveSessionName name)
public final LiveSession getLiveSession(LiveSessionName name)
Returns the details for the specified live session.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
LiveSessionName name = LiveSessionName.of("[PROJECT]", "[LOCATION]", "[LIVE_SESSION]");
LiveSession response = videoStitcherServiceClient.getLiveSession(name);
}
Parameter | |
---|---|
Name | Description |
name | LiveSessionName Required. The name of the live session, in the form of
|
Returns | |
---|---|
Type | Description |
LiveSession |
getLiveSession(String name)
public final LiveSession getLiveSession(String name)
Returns the details for the specified live session.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
String name = LiveSessionName.of("[PROJECT]", "[LOCATION]", "[LIVE_SESSION]").toString();
LiveSession response = videoStitcherServiceClient.getLiveSession(name);
}
Parameter | |
---|---|
Name | Description |
name | String Required. The name of the live session, in the form of
|
Returns | |
---|---|
Type | Description |
LiveSession |
getLiveSessionCallable()
public final UnaryCallable<GetLiveSessionRequest,LiveSession> getLiveSessionCallable()
Returns the details for the specified live session.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
GetLiveSessionRequest request =
GetLiveSessionRequest.newBuilder()
.setName(LiveSessionName.of("[PROJECT]", "[LOCATION]", "[LIVE_SESSION]").toString())
.build();
ApiFuture<LiveSession> future =
videoStitcherServiceClient.getLiveSessionCallable().futureCall(request);
// Do something.
LiveSession response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<GetLiveSessionRequest,LiveSession> |
getOperationsClient()
public final OperationsClient getOperationsClient()
Returns the OperationsClient that can be used to query the status of a long-running operation returned by another API method call.
Returns | |
---|---|
Type | Description |
OperationsClient |
getSettings()
public final VideoStitcherServiceSettings getSettings()
Returns | |
---|---|
Type | Description |
VideoStitcherServiceSettings |
getSlate(GetSlateRequest request)
public final Slate getSlate(GetSlateRequest request)
Returns the specified slate.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
GetSlateRequest request =
GetSlateRequest.newBuilder()
.setName(SlateName.of("[PROJECT]", "[LOCATION]", "[SLATE]").toString())
.build();
Slate response = videoStitcherServiceClient.getSlate(request);
}
Parameter | |
---|---|
Name | Description |
request | GetSlateRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
Slate |
getSlate(SlateName name)
public final Slate getSlate(SlateName name)
Returns the specified slate.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
SlateName name = SlateName.of("[PROJECT]", "[LOCATION]", "[SLATE]");
Slate response = videoStitcherServiceClient.getSlate(name);
}
Parameter | |
---|---|
Name | Description |
name | SlateName Required. The name of the slate to be retrieved, of the slate, in the form of
|
Returns | |
---|---|
Type | Description |
Slate |
getSlate(String name)
public final Slate getSlate(String name)
Returns the specified slate.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
String name = SlateName.of("[PROJECT]", "[LOCATION]", "[SLATE]").toString();
Slate response = videoStitcherServiceClient.getSlate(name);
}
Parameter | |
---|---|
Name | Description |
name | String Required. The name of the slate to be retrieved, of the slate, in the form of
|
Returns | |
---|---|
Type | Description |
Slate |
getSlateCallable()
public final UnaryCallable<GetSlateRequest,Slate> getSlateCallable()
Returns the specified slate.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
GetSlateRequest request =
GetSlateRequest.newBuilder()
.setName(SlateName.of("[PROJECT]", "[LOCATION]", "[SLATE]").toString())
.build();
ApiFuture<Slate> future = videoStitcherServiceClient.getSlateCallable().futureCall(request);
// Do something.
Slate response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<GetSlateRequest,Slate> |
getStub()
public VideoStitcherServiceStub getStub()
Returns | |
---|---|
Type | Description |
VideoStitcherServiceStub |
getVodAdTagDetail(GetVodAdTagDetailRequest request)
public final VodAdTagDetail getVodAdTagDetail(GetVodAdTagDetailRequest request)
Returns the specified ad tag detail for the specified VOD session.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
GetVodAdTagDetailRequest request =
GetVodAdTagDetailRequest.newBuilder()
.setName(
VodAdTagDetailName.of(
"[PROJECT]", "[LOCATION]", "[VOD_SESSION]", "[VOD_AD_TAG_DETAIL]")
.toString())
.build();
VodAdTagDetail response = videoStitcherServiceClient.getVodAdTagDetail(request);
}
Parameter | |
---|---|
Name | Description |
request | GetVodAdTagDetailRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
VodAdTagDetail |
getVodAdTagDetail(VodAdTagDetailName name)
public final VodAdTagDetail getVodAdTagDetail(VodAdTagDetailName name)
Returns the specified ad tag detail for the specified VOD session.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
VodAdTagDetailName name =
VodAdTagDetailName.of("[PROJECT]", "[LOCATION]", "[VOD_SESSION]", "[VOD_AD_TAG_DETAIL]");
VodAdTagDetail response = videoStitcherServiceClient.getVodAdTagDetail(name);
}
Parameter | |
---|---|
Name | Description |
name | VodAdTagDetailName Required. The name of the ad tag detail for the specified VOD session, in the form
of
|
Returns | |
---|---|
Type | Description |
VodAdTagDetail |
getVodAdTagDetail(String name)
public final VodAdTagDetail getVodAdTagDetail(String name)
Returns the specified ad tag detail for the specified VOD session.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
String name =
VodAdTagDetailName.of("[PROJECT]", "[LOCATION]", "[VOD_SESSION]", "[VOD_AD_TAG_DETAIL]")
.toString();
VodAdTagDetail response = videoStitcherServiceClient.getVodAdTagDetail(name);
}
Parameter | |
---|---|
Name | Description |
name | String Required. The name of the ad tag detail for the specified VOD session, in the form
of
|
Returns | |
---|---|
Type | Description |
VodAdTagDetail |
getVodAdTagDetailCallable()
public final UnaryCallable<GetVodAdTagDetailRequest,VodAdTagDetail> getVodAdTagDetailCallable()
Returns the specified ad tag detail for the specified VOD session.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
GetVodAdTagDetailRequest request =
GetVodAdTagDetailRequest.newBuilder()
.setName(
VodAdTagDetailName.of(
"[PROJECT]", "[LOCATION]", "[VOD_SESSION]", "[VOD_AD_TAG_DETAIL]")
.toString())
.build();
ApiFuture<VodAdTagDetail> future =
videoStitcherServiceClient.getVodAdTagDetailCallable().futureCall(request);
// Do something.
VodAdTagDetail response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<GetVodAdTagDetailRequest,VodAdTagDetail> |
getVodSession(GetVodSessionRequest request)
public final VodSession getVodSession(GetVodSessionRequest request)
Returns the full tracking, playback metadata, and relevant ad-ops logs for the specified VOD session.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
GetVodSessionRequest request =
GetVodSessionRequest.newBuilder()
.setName(VodSessionName.of("[PROJECT]", "[LOCATION]", "[VOD_SESSION]").toString())
.build();
VodSession response = videoStitcherServiceClient.getVodSession(request);
}
Parameter | |
---|---|
Name | Description |
request | GetVodSessionRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
VodSession |
getVodSession(VodSessionName name)
public final VodSession getVodSession(VodSessionName name)
Returns the full tracking, playback metadata, and relevant ad-ops logs for the specified VOD session.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
VodSessionName name = VodSessionName.of("[PROJECT]", "[LOCATION]", "[VOD_SESSION]");
VodSession response = videoStitcherServiceClient.getVodSession(name);
}
Parameter | |
---|---|
Name | Description |
name | VodSessionName Required. The name of the VOD session to be retrieved, in the form of
|
Returns | |
---|---|
Type | Description |
VodSession |
getVodSession(String name)
public final VodSession getVodSession(String name)
Returns the full tracking, playback metadata, and relevant ad-ops logs for the specified VOD session.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
String name = VodSessionName.of("[PROJECT]", "[LOCATION]", "[VOD_SESSION]").toString();
VodSession response = videoStitcherServiceClient.getVodSession(name);
}
Parameter | |
---|---|
Name | Description |
name | String Required. The name of the VOD session to be retrieved, in the form of
|
Returns | |
---|---|
Type | Description |
VodSession |
getVodSessionCallable()
public final UnaryCallable<GetVodSessionRequest,VodSession> getVodSessionCallable()
Returns the full tracking, playback metadata, and relevant ad-ops logs for the specified VOD session.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
GetVodSessionRequest request =
GetVodSessionRequest.newBuilder()
.setName(VodSessionName.of("[PROJECT]", "[LOCATION]", "[VOD_SESSION]").toString())
.build();
ApiFuture<VodSession> future =
videoStitcherServiceClient.getVodSessionCallable().futureCall(request);
// Do something.
VodSession response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<GetVodSessionRequest,VodSession> |
getVodStitchDetail(GetVodStitchDetailRequest request)
public final VodStitchDetail getVodStitchDetail(GetVodStitchDetailRequest request)
Returns the specified stitching information for the specified VOD session.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
GetVodStitchDetailRequest request =
GetVodStitchDetailRequest.newBuilder()
.setName(
VodStitchDetailName.of(
"[PROJECT]", "[LOCATION]", "[VOD_SESSION]", "[VOD_STITCH_DETAIL]")
.toString())
.build();
VodStitchDetail response = videoStitcherServiceClient.getVodStitchDetail(request);
}
Parameter | |
---|---|
Name | Description |
request | GetVodStitchDetailRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
VodStitchDetail |
getVodStitchDetail(VodStitchDetailName name)
public final VodStitchDetail getVodStitchDetail(VodStitchDetailName name)
Returns the specified stitching information for the specified VOD session.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
VodStitchDetailName name =
VodStitchDetailName.of("[PROJECT]", "[LOCATION]", "[VOD_SESSION]", "[VOD_STITCH_DETAIL]");
VodStitchDetail response = videoStitcherServiceClient.getVodStitchDetail(name);
}
Parameter | |
---|---|
Name | Description |
name | VodStitchDetailName Required. The name of the stitch detail in the specified VOD session, in the form
of
|
Returns | |
---|---|
Type | Description |
VodStitchDetail |
getVodStitchDetail(String name)
public final VodStitchDetail getVodStitchDetail(String name)
Returns the specified stitching information for the specified VOD session.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
String name =
VodStitchDetailName.of("[PROJECT]", "[LOCATION]", "[VOD_SESSION]", "[VOD_STITCH_DETAIL]")
.toString();
VodStitchDetail response = videoStitcherServiceClient.getVodStitchDetail(name);
}
Parameter | |
---|---|
Name | Description |
name | String Required. The name of the stitch detail in the specified VOD session, in the form
of
|
Returns | |
---|---|
Type | Description |
VodStitchDetail |
getVodStitchDetailCallable()
public final UnaryCallable<GetVodStitchDetailRequest,VodStitchDetail> getVodStitchDetailCallable()
Returns the specified stitching information for the specified VOD session.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
GetVodStitchDetailRequest request =
GetVodStitchDetailRequest.newBuilder()
.setName(
VodStitchDetailName.of(
"[PROJECT]", "[LOCATION]", "[VOD_SESSION]", "[VOD_STITCH_DETAIL]")
.toString())
.build();
ApiFuture<VodStitchDetail> future =
videoStitcherServiceClient.getVodStitchDetailCallable().futureCall(request);
// Do something.
VodStitchDetail response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<GetVodStitchDetailRequest,VodStitchDetail> |
isShutdown()
public boolean isShutdown()
Returns | |
---|---|
Type | Description |
boolean |
isTerminated()
public boolean isTerminated()
Returns | |
---|---|
Type | Description |
boolean |
listCdnKeys(ListCdnKeysRequest request)
public final VideoStitcherServiceClient.ListCdnKeysPagedResponse listCdnKeys(ListCdnKeysRequest request)
Lists all CDN keys in the specified project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
ListCdnKeysRequest request =
ListCdnKeysRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
for (CdnKey element : videoStitcherServiceClient.listCdnKeys(request).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
request | ListCdnKeysRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
VideoStitcherServiceClient.ListCdnKeysPagedResponse |
listCdnKeys(LocationName parent)
public final VideoStitcherServiceClient.ListCdnKeysPagedResponse listCdnKeys(LocationName parent)
Lists all CDN keys in the specified project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
for (CdnKey element : videoStitcherServiceClient.listCdnKeys(parent).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
parent | LocationName Required. The project that contains the list of CDN keys, in the form of
|
Returns | |
---|---|
Type | Description |
VideoStitcherServiceClient.ListCdnKeysPagedResponse |
listCdnKeys(String parent)
public final VideoStitcherServiceClient.ListCdnKeysPagedResponse listCdnKeys(String parent)
Lists all CDN keys in the specified project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
for (CdnKey element : videoStitcherServiceClient.listCdnKeys(parent).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
parent | String Required. The project that contains the list of CDN keys, in the form of
|
Returns | |
---|---|
Type | Description |
VideoStitcherServiceClient.ListCdnKeysPagedResponse |
listCdnKeysCallable()
public final UnaryCallable<ListCdnKeysRequest,ListCdnKeysResponse> listCdnKeysCallable()
Lists all CDN keys in the specified project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
ListCdnKeysRequest request =
ListCdnKeysRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
while (true) {
ListCdnKeysResponse response =
videoStitcherServiceClient.listCdnKeysCallable().call(request);
for (CdnKey element : response.getCdnKeysList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
Returns | |
---|---|
Type | Description |
UnaryCallable<ListCdnKeysRequest,ListCdnKeysResponse> |
listCdnKeysPagedCallable()
public final UnaryCallable<ListCdnKeysRequest,VideoStitcherServiceClient.ListCdnKeysPagedResponse> listCdnKeysPagedCallable()
Lists all CDN keys in the specified project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
ListCdnKeysRequest request =
ListCdnKeysRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
ApiFuture<CdnKey> future =
videoStitcherServiceClient.listCdnKeysPagedCallable().futureCall(request);
// Do something.
for (CdnKey element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
Returns | |
---|---|
Type | Description |
UnaryCallable<ListCdnKeysRequest,ListCdnKeysPagedResponse> |
listLiveAdTagDetails(ListLiveAdTagDetailsRequest request)
public final VideoStitcherServiceClient.ListLiveAdTagDetailsPagedResponse listLiveAdTagDetails(ListLiveAdTagDetailsRequest request)
Return the list of ad tag details for the specified live session.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
ListLiveAdTagDetailsRequest request =
ListLiveAdTagDetailsRequest.newBuilder()
.setParent(LiveSessionName.of("[PROJECT]", "[LOCATION]", "[LIVE_SESSION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
for (LiveAdTagDetail element :
videoStitcherServiceClient.listLiveAdTagDetails(request).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
request | ListLiveAdTagDetailsRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
VideoStitcherServiceClient.ListLiveAdTagDetailsPagedResponse |
listLiveAdTagDetails(LiveSessionName parent)
public final VideoStitcherServiceClient.ListLiveAdTagDetailsPagedResponse listLiveAdTagDetails(LiveSessionName parent)
Return the list of ad tag details for the specified live session.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
LiveSessionName parent = LiveSessionName.of("[PROJECT]", "[LOCATION]", "[LIVE_SESSION]");
for (LiveAdTagDetail element :
videoStitcherServiceClient.listLiveAdTagDetails(parent).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
parent | LiveSessionName Required. The resource parent in the form of
|
Returns | |
---|---|
Type | Description |
VideoStitcherServiceClient.ListLiveAdTagDetailsPagedResponse |
listLiveAdTagDetails(String parent)
public final VideoStitcherServiceClient.ListLiveAdTagDetailsPagedResponse listLiveAdTagDetails(String parent)
Return the list of ad tag details for the specified live session.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
String parent = LiveSessionName.of("[PROJECT]", "[LOCATION]", "[LIVE_SESSION]").toString();
for (LiveAdTagDetail element :
videoStitcherServiceClient.listLiveAdTagDetails(parent).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
parent | String Required. The resource parent in the form of
|
Returns | |
---|---|
Type | Description |
VideoStitcherServiceClient.ListLiveAdTagDetailsPagedResponse |
listLiveAdTagDetailsCallable()
public final UnaryCallable<ListLiveAdTagDetailsRequest,ListLiveAdTagDetailsResponse> listLiveAdTagDetailsCallable()
Return the list of ad tag details for the specified live session.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
ListLiveAdTagDetailsRequest request =
ListLiveAdTagDetailsRequest.newBuilder()
.setParent(LiveSessionName.of("[PROJECT]", "[LOCATION]", "[LIVE_SESSION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
while (true) {
ListLiveAdTagDetailsResponse response =
videoStitcherServiceClient.listLiveAdTagDetailsCallable().call(request);
for (LiveAdTagDetail element : response.getLiveAdTagDetailsList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
Returns | |
---|---|
Type | Description |
UnaryCallable<ListLiveAdTagDetailsRequest,ListLiveAdTagDetailsResponse> |
listLiveAdTagDetailsPagedCallable()
public final UnaryCallable<ListLiveAdTagDetailsRequest,VideoStitcherServiceClient.ListLiveAdTagDetailsPagedResponse> listLiveAdTagDetailsPagedCallable()
Return the list of ad tag details for the specified live session.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
ListLiveAdTagDetailsRequest request =
ListLiveAdTagDetailsRequest.newBuilder()
.setParent(LiveSessionName.of("[PROJECT]", "[LOCATION]", "[LIVE_SESSION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
ApiFuture<LiveAdTagDetail> future =
videoStitcherServiceClient.listLiveAdTagDetailsPagedCallable().futureCall(request);
// Do something.
for (LiveAdTagDetail element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
Returns | |
---|---|
Type | Description |
UnaryCallable<ListLiveAdTagDetailsRequest,ListLiveAdTagDetailsPagedResponse> |
listLiveConfigs(ListLiveConfigsRequest request)
public final VideoStitcherServiceClient.ListLiveConfigsPagedResponse listLiveConfigs(ListLiveConfigsRequest request)
Lists all live configs managed by the Video Stitcher that belong to the specified project and region.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
ListLiveConfigsRequest request =
ListLiveConfigsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
for (LiveConfig element : videoStitcherServiceClient.listLiveConfigs(request).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
request | ListLiveConfigsRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
VideoStitcherServiceClient.ListLiveConfigsPagedResponse |
listLiveConfigs(LocationName parent)
public final VideoStitcherServiceClient.ListLiveConfigsPagedResponse listLiveConfigs(LocationName parent)
Lists all live configs managed by the Video Stitcher that belong to the specified project and region.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
for (LiveConfig element : videoStitcherServiceClient.listLiveConfigs(parent).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
parent | LocationName Required. The project that contains the list of live configs, in the form of
|
Returns | |
---|---|
Type | Description |
VideoStitcherServiceClient.ListLiveConfigsPagedResponse |
listLiveConfigs(String parent)
public final VideoStitcherServiceClient.ListLiveConfigsPagedResponse listLiveConfigs(String parent)
Lists all live configs managed by the Video Stitcher that belong to the specified project and region.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
for (LiveConfig element : videoStitcherServiceClient.listLiveConfigs(parent).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
parent | String Required. The project that contains the list of live configs, in the form of
|
Returns | |
---|---|
Type | Description |
VideoStitcherServiceClient.ListLiveConfigsPagedResponse |
listLiveConfigsCallable()
public final UnaryCallable<ListLiveConfigsRequest,ListLiveConfigsResponse> listLiveConfigsCallable()
Lists all live configs managed by the Video Stitcher that belong to the specified project and region.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
ListLiveConfigsRequest request =
ListLiveConfigsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
while (true) {
ListLiveConfigsResponse response =
videoStitcherServiceClient.listLiveConfigsCallable().call(request);
for (LiveConfig element : response.getLiveConfigsList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
Returns | |
---|---|
Type | Description |
UnaryCallable<ListLiveConfigsRequest,ListLiveConfigsResponse> |
listLiveConfigsPagedCallable()
public final UnaryCallable<ListLiveConfigsRequest,VideoStitcherServiceClient.ListLiveConfigsPagedResponse> listLiveConfigsPagedCallable()
Lists all live configs managed by the Video Stitcher that belong to the specified project and region.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
ListLiveConfigsRequest request =
ListLiveConfigsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
ApiFuture<LiveConfig> future =
videoStitcherServiceClient.listLiveConfigsPagedCallable().futureCall(request);
// Do something.
for (LiveConfig element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
Returns | |
---|---|
Type | Description |
UnaryCallable<ListLiveConfigsRequest,ListLiveConfigsPagedResponse> |
listSlates(ListSlatesRequest request)
public final VideoStitcherServiceClient.ListSlatesPagedResponse listSlates(ListSlatesRequest request)
Lists all slates in the specified project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
ListSlatesRequest request =
ListSlatesRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
for (Slate element : videoStitcherServiceClient.listSlates(request).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
request | ListSlatesRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
VideoStitcherServiceClient.ListSlatesPagedResponse |
listSlates(LocationName parent)
public final VideoStitcherServiceClient.ListSlatesPagedResponse listSlates(LocationName parent)
Lists all slates in the specified project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
for (Slate element : videoStitcherServiceClient.listSlates(parent).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
parent | LocationName Required. The project to list slates, in the form of
|
Returns | |
---|---|
Type | Description |
VideoStitcherServiceClient.ListSlatesPagedResponse |
listSlates(String parent)
public final VideoStitcherServiceClient.ListSlatesPagedResponse listSlates(String parent)
Lists all slates in the specified project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
for (Slate element : videoStitcherServiceClient.listSlates(parent).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
parent | String Required. The project to list slates, in the form of
|
Returns | |
---|---|
Type | Description |
VideoStitcherServiceClient.ListSlatesPagedResponse |
listSlatesCallable()
public final UnaryCallable<ListSlatesRequest,ListSlatesResponse> listSlatesCallable()
Lists all slates in the specified project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VideoStitcherServiceClient videoStitcherServiceClient =
VideoStitcherServiceClient.create()) {
ListSlatesRequest request =
ListSlatesRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
while (true) {
ListSlatesResponse response = videoStitcherServiceClient.listSlatesCallable().call(request);
for (Slate element : response.getSlatesList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
Returns | |
---|---|
Type | Description |
UnaryCallable<ListSlatesRequest,ListSlatesResponse> |
listSlatesPagedCallable()
public final UnaryCallable<ListSlatesRequest,VideoStitcherServiceClient.ListSlatesPagedResponse> listSlatesPagedCallable()
Lists all slates in the specified project and location.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
<