- 0.55.0 (latest)
- 0.54.0
- 0.53.0
- 0.51.0
- 0.50.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.39.0
- 0.38.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.26.0
- 0.25.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.11.0
- 0.10.0
- 0.9.0
- 0.8.0
- 0.7.0
- 0.6.0
- 0.5.8
- 0.3.0
GitHub Repository | Product Reference |
Service Description: Using Live Stream API, you can generate live streams in the various renditions and streaming formats. The streaming format include HTTP Live Streaming (HLS) and Dynamic Adaptive Streaming over HTTP (DASH). You can send a source stream in the various ways, including Real-Time Messaging Protocol (RTMP) and Secure Reliable Transport (SRT).
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 (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
ChannelName name = ChannelName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]");
Channel response = livestreamServiceClient.getChannel(name);
}
Note: close() needs to be called on the LivestreamServiceClient object to clean up resources such as threads. In the example above, try-with-resources is used, which automatically calls close().
Method | Description | Method Variants |
---|---|---|
CreateChannel |
Creates a channel with the provided unique ID in the specified region. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListChannels |
Returns a list of all channels in the specified region. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetChannel |
Returns the specified channel. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
DeleteChannel |
Deletes the specified channel. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
UpdateChannel |
Updates the specified channel. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
StartChannel |
Starts the specified channel. Part of the video pipeline will be created only when the StartChannel request is received by the server. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
StopChannel |
Stops the specified channel. Part of the video pipeline will be released when the StopChannel request is received by the server. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
CreateInput |
Creates an input with the provided unique ID in the specified region. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListInputs |
Returns a list of all inputs in the specified region. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetInput |
Returns the specified input. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
DeleteInput |
Deletes the specified input. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
UpdateInput |
Updates the specified input. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
CreateEvent |
Creates an event with the provided unique ID in the specified channel. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListEvents |
Returns a list of all events in the specified channel. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetEvent |
Returns the specified event. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
DeleteEvent |
Deletes the specified event. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
CreateAsset |
Creates a Asset with the provided unique ID in the specified region. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
DeleteAsset |
Deletes the specified asset if it is not used. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetAsset |
Returns the specified asset. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListAssets |
Returns a list of all assets in the specified region. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetPool |
Returns the specified pool. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
UpdatePool |
Updates the specified pool. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListLocations |
Lists information about the supported locations for this service. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetLocation |
Gets information about a location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
See the individual methods for example code.
Many parameters require resource names to be formatted in a particular way. To assist with these names, this class includes a format method for each type of name, and additionally a parse method to extract the individual identifiers contained within names that are returned.
This class can be customized by passing in a custom instance of LivestreamServiceSettings 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
LivestreamServiceSettings livestreamServiceSettings =
LivestreamServiceSettings.newBuilder()
.setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
.build();
LivestreamServiceClient livestreamServiceClient =
LivestreamServiceClient.create(livestreamServiceSettings);
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
LivestreamServiceSettings livestreamServiceSettings =
LivestreamServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
LivestreamServiceClient livestreamServiceClient =
LivestreamServiceClient.create(livestreamServiceSettings);
To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over the wire:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
LivestreamServiceSettings livestreamServiceSettings =
LivestreamServiceSettings.newHttpJsonBuilder().build();
LivestreamServiceClient livestreamServiceClient =
LivestreamServiceClient.create(livestreamServiceSettings);
Please refer to the GitHub repository's samples for more quickstart code snippets.
Static Methods
create()
public static final LivestreamServiceClient create()
Constructs an instance of LivestreamServiceClient with default settings.
Returns | |
---|---|
Type | Description |
LivestreamServiceClient |
Exceptions | |
---|---|
Type | Description |
IOException |
create(LivestreamServiceSettings settings)
public static final LivestreamServiceClient create(LivestreamServiceSettings settings)
Constructs an instance of LivestreamServiceClient, 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 |
LivestreamServiceSettings |
Returns | |
---|---|
Type | Description |
LivestreamServiceClient |
Exceptions | |
---|---|
Type | Description |
IOException |
create(LivestreamServiceStub stub)
public static final LivestreamServiceClient create(LivestreamServiceStub stub)
Constructs an instance of LivestreamServiceClient, using the given stub for making calls. This is for advanced usage - prefer using create(LivestreamServiceSettings).
Parameter | |
---|---|
Name | Description |
stub |
LivestreamServiceStub |
Returns | |
---|---|
Type | Description |
LivestreamServiceClient |
Constructors
LivestreamServiceClient(LivestreamServiceSettings settings)
protected LivestreamServiceClient(LivestreamServiceSettings settings)
Constructs an instance of LivestreamServiceClient, 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 |
LivestreamServiceSettings |
LivestreamServiceClient(LivestreamServiceStub stub)
protected LivestreamServiceClient(LivestreamServiceStub stub)
Parameter | |
---|---|
Name | Description |
stub |
LivestreamServiceStub |
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()
createAssetAsync(CreateAssetRequest request)
public final OperationFuture<Asset,OperationMetadata> createAssetAsync(CreateAssetRequest request)
Creates a Asset 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 (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
CreateAssetRequest request =
CreateAssetRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setAsset(Asset.newBuilder().build())
.setAssetId("assetId-704776149")
.setRequestId("requestId693933066")
.build();
Asset response = livestreamServiceClient.createAssetAsync(request).get();
}
Parameter | |
---|---|
Name | Description |
request |
CreateAssetRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
OperationFuture<Asset,OperationMetadata> |
createAssetAsync(LocationName parent, Asset asset, String assetId)
public final OperationFuture<Asset,OperationMetadata> createAssetAsync(LocationName parent, Asset asset, String assetId)
Creates a Asset 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 (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
Asset asset = Asset.newBuilder().build();
String assetId = "assetId-704776149";
Asset response = livestreamServiceClient.createAssetAsync(parent, asset, assetId).get();
}
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The parent location for the resource, in the form of:
|
asset |
Asset Required. The asset resource to be created. |
assetId |
String Required. The ID of the asset resource to be created. This value must be 1-63
characters, begin and end with |
Returns | |
---|---|
Type | Description |
OperationFuture<Asset,OperationMetadata> |
createAssetAsync(String parent, Asset asset, String assetId)
public final OperationFuture<Asset,OperationMetadata> createAssetAsync(String parent, Asset asset, String assetId)
Creates a Asset 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 (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
Asset asset = Asset.newBuilder().build();
String assetId = "assetId-704776149";
Asset response = livestreamServiceClient.createAssetAsync(parent, asset, assetId).get();
}
Parameters | |
---|---|
Name | Description |
parent |
String Required. The parent location for the resource, in the form of:
|
asset |
Asset Required. The asset resource to be created. |
assetId |
String Required. The ID of the asset resource to be created. This value must be 1-63
characters, begin and end with |
Returns | |
---|---|
Type | Description |
OperationFuture<Asset,OperationMetadata> |
createAssetCallable()
public final UnaryCallable<CreateAssetRequest,Operation> createAssetCallable()
Creates a Asset 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 (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
CreateAssetRequest request =
CreateAssetRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setAsset(Asset.newBuilder().build())
.setAssetId("assetId-704776149")
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future =
livestreamServiceClient.createAssetCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<CreateAssetRequest,Operation> |
createAssetOperationCallable()
public final OperationCallable<CreateAssetRequest,Asset,OperationMetadata> createAssetOperationCallable()
Creates a Asset 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 (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
CreateAssetRequest request =
CreateAssetRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setAsset(Asset.newBuilder().build())
.setAssetId("assetId-704776149")
.setRequestId("requestId693933066")
.build();
OperationFuture<Asset, OperationMetadata> future =
livestreamServiceClient.createAssetOperationCallable().futureCall(request);
// Do something.
Asset response = future.get();
}
Returns | |
---|---|
Type | Description |
OperationCallable<CreateAssetRequest,Asset,OperationMetadata> |
createChannelAsync(CreateChannelRequest request)
public final OperationFuture<Channel,OperationMetadata> createChannelAsync(CreateChannelRequest request)
Creates a channel 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 (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
CreateChannelRequest request =
CreateChannelRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setChannel(Channel.newBuilder().build())
.setChannelId("channelId1461735806")
.setRequestId("requestId693933066")
.build();
Channel response = livestreamServiceClient.createChannelAsync(request).get();
}
Parameter | |
---|---|
Name | Description |
request |
CreateChannelRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
OperationFuture<Channel,OperationMetadata> |
createChannelAsync(LocationName parent, Channel channel, String channelId)
public final OperationFuture<Channel,OperationMetadata> createChannelAsync(LocationName parent, Channel channel, String channelId)
Creates a channel 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 (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
Channel channel = Channel.newBuilder().build();
String channelId = "channelId1461735806";
Channel response =
livestreamServiceClient.createChannelAsync(parent, channel, channelId).get();
}
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The parent location for the resource, in the form of:
|
channel |
Channel Required. The channel resource to be created. |
channelId |
String Required. The ID of the channel resource to be created. This value must be
1-63 characters, begin and end with |
Returns | |
---|---|
Type | Description |
OperationFuture<Channel,OperationMetadata> |
createChannelAsync(String parent, Channel channel, String channelId)
public final OperationFuture<Channel,OperationMetadata> createChannelAsync(String parent, Channel channel, String channelId)
Creates a channel 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 (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
Channel channel = Channel.newBuilder().build();
String channelId = "channelId1461735806";
Channel response =
livestreamServiceClient.createChannelAsync(parent, channel, channelId).get();
}
Parameters | |
---|---|
Name | Description |
parent |
String Required. The parent location for the resource, in the form of:
|
channel |
Channel Required. The channel resource to be created. |
channelId |
String Required. The ID of the channel resource to be created. This value must be
1-63 characters, begin and end with |
Returns | |
---|---|
Type | Description |
OperationFuture<Channel,OperationMetadata> |
createChannelCallable()
public final UnaryCallable<CreateChannelRequest,Operation> createChannelCallable()
Creates a channel 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 (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
CreateChannelRequest request =
CreateChannelRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setChannel(Channel.newBuilder().build())
.setChannelId("channelId1461735806")
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future =
livestreamServiceClient.createChannelCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<CreateChannelRequest,Operation> |
createChannelOperationCallable()
public final OperationCallable<CreateChannelRequest,Channel,OperationMetadata> createChannelOperationCallable()
Creates a channel 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 (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
CreateChannelRequest request =
CreateChannelRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setChannel(Channel.newBuilder().build())
.setChannelId("channelId1461735806")
.setRequestId("requestId693933066")
.build();
OperationFuture<Channel, OperationMetadata> future =
livestreamServiceClient.createChannelOperationCallable().futureCall(request);
// Do something.
Channel response = future.get();
}
Returns | |
---|---|
Type | Description |
OperationCallable<CreateChannelRequest,Channel,OperationMetadata> |
createEvent(ChannelName parent, Event event, String eventId)
public final Event createEvent(ChannelName parent, Event event, String eventId)
Creates an event with the provided unique ID in the specified channel.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
ChannelName parent = ChannelName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]");
Event event = Event.newBuilder().build();
String eventId = "eventId-1376502443";
Event response = livestreamServiceClient.createEvent(parent, event, eventId);
}
Parameters | |
---|---|
Name | Description |
parent |
ChannelName Required. The parent channel for the resource, in the form of:
|
event |
Event Required. The event resource to be created. |
eventId |
String Required. The ID of the event resource to be created. This value must be 1-63
characters, begin and end with |
Returns | |
---|---|
Type | Description |
Event |
createEvent(CreateEventRequest request)
public final Event createEvent(CreateEventRequest request)
Creates an event with the provided unique ID in the specified channel.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
CreateEventRequest request =
CreateEventRequest.newBuilder()
.setParent(ChannelName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]").toString())
.setEvent(Event.newBuilder().build())
.setEventId("eventId-1376502443")
.setRequestId("requestId693933066")
.build();
Event response = livestreamServiceClient.createEvent(request);
}
Parameter | |
---|---|
Name | Description |
request |
CreateEventRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
Event |
createEvent(String parent, Event event, String eventId)
public final Event createEvent(String parent, Event event, String eventId)
Creates an event with the provided unique ID in the specified channel.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
String parent = ChannelName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]").toString();
Event event = Event.newBuilder().build();
String eventId = "eventId-1376502443";
Event response = livestreamServiceClient.createEvent(parent, event, eventId);
}
Parameters | |
---|---|
Name | Description |
parent |
String Required. The parent channel for the resource, in the form of:
|
event |
Event Required. The event resource to be created. |
eventId |
String Required. The ID of the event resource to be created. This value must be 1-63
characters, begin and end with |
Returns | |
---|---|
Type | Description |
Event |
createEventCallable()
public final UnaryCallable<CreateEventRequest,Event> createEventCallable()
Creates an event with the provided unique ID in the specified channel.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
CreateEventRequest request =
CreateEventRequest.newBuilder()
.setParent(ChannelName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]").toString())
.setEvent(Event.newBuilder().build())
.setEventId("eventId-1376502443")
.setRequestId("requestId693933066")
.build();
ApiFuture<Event> future = livestreamServiceClient.createEventCallable().futureCall(request);
// Do something.
Event response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<CreateEventRequest,Event> |
createInputAsync(CreateInputRequest request)
public final OperationFuture<Input,OperationMetadata> createInputAsync(CreateInputRequest request)
Creates an input 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 (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
CreateInputRequest request =
CreateInputRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setInput(Input.newBuilder().build())
.setInputId("inputId1954846341")
.setRequestId("requestId693933066")
.build();
Input response = livestreamServiceClient.createInputAsync(request).get();
}
Parameter | |
---|---|
Name | Description |
request |
CreateInputRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
OperationFuture<Input,OperationMetadata> |
createInputAsync(LocationName parent, Input input, String inputId)
public final OperationFuture<Input,OperationMetadata> createInputAsync(LocationName parent, Input input, String inputId)
Creates an input 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 (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
Input input = Input.newBuilder().build();
String inputId = "inputId1954846341";
Input response = livestreamServiceClient.createInputAsync(parent, input, inputId).get();
}
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The parent location for the resource, in the form of:
|
input |
Input Required. The input resource to be created. |
inputId |
String Required. The ID of the input resource to be created. This value must be 1-63
characters, begin and end with |
Returns | |
---|---|
Type | Description |
OperationFuture<Input,OperationMetadata> |
createInputAsync(String parent, Input input, String inputId)
public final OperationFuture<Input,OperationMetadata> createInputAsync(String parent, Input input, String inputId)
Creates an input 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 (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
Input input = Input.newBuilder().build();
String inputId = "inputId1954846341";
Input response = livestreamServiceClient.createInputAsync(parent, input, inputId).get();
}
Parameters | |
---|---|
Name | Description |
parent |
String Required. The parent location for the resource, in the form of:
|
input |
Input Required. The input resource to be created. |
inputId |
String Required. The ID of the input resource to be created. This value must be 1-63
characters, begin and end with |
Returns | |
---|---|
Type | Description |
OperationFuture<Input,OperationMetadata> |
createInputCallable()
public final UnaryCallable<CreateInputRequest,Operation> createInputCallable()
Creates an input 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 (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
CreateInputRequest request =
CreateInputRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setInput(Input.newBuilder().build())
.setInputId("inputId1954846341")
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future =
livestreamServiceClient.createInputCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<CreateInputRequest,Operation> |
createInputOperationCallable()
public final OperationCallable<CreateInputRequest,Input,OperationMetadata> createInputOperationCallable()
Creates an input 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 (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
CreateInputRequest request =
CreateInputRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setInput(Input.newBuilder().build())
.setInputId("inputId1954846341")
.setRequestId("requestId693933066")
.build();
OperationFuture<Input, OperationMetadata> future =
livestreamServiceClient.createInputOperationCallable().futureCall(request);
// Do something.
Input response = future.get();
}
Returns | |
---|---|
Type | Description |
OperationCallable<CreateInputRequest,Input,OperationMetadata> |
deleteAssetAsync(AssetName name)
public final OperationFuture<Empty,OperationMetadata> deleteAssetAsync(AssetName name)
Deletes the specified asset if it is not used.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
AssetName name = AssetName.of("[PROJECT]", "[LOCATION]", "[ASSET]");
livestreamServiceClient.deleteAssetAsync(name).get();
}
Parameter | |
---|---|
Name | Description |
name |
AssetName Required. The name of the asset resource, in the form of:
|
Returns | |
---|---|
Type | Description |
OperationFuture<Empty,OperationMetadata> |
deleteAssetAsync(DeleteAssetRequest request)
public final OperationFuture<Empty,OperationMetadata> deleteAssetAsync(DeleteAssetRequest request)
Deletes the specified asset if it is not used.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
DeleteAssetRequest request =
DeleteAssetRequest.newBuilder()
.setName(AssetName.of("[PROJECT]", "[LOCATION]", "[ASSET]").toString())
.setRequestId("requestId693933066")
.build();
livestreamServiceClient.deleteAssetAsync(request).get();
}
Parameter | |
---|---|
Name | Description |
request |
DeleteAssetRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
OperationFuture<Empty,OperationMetadata> |
deleteAssetAsync(String name)
public final OperationFuture<Empty,OperationMetadata> deleteAssetAsync(String name)
Deletes the specified asset if it is not used.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
String name = AssetName.of("[PROJECT]", "[LOCATION]", "[ASSET]").toString();
livestreamServiceClient.deleteAssetAsync(name).get();
}
Parameter | |
---|---|
Name | Description |
name |
String Required. The name of the asset resource, in the form of:
|
Returns | |
---|---|
Type | Description |
OperationFuture<Empty,OperationMetadata> |
deleteAssetCallable()
public final UnaryCallable<DeleteAssetRequest,Operation> deleteAssetCallable()
Deletes the specified asset if it is not used.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
DeleteAssetRequest request =
DeleteAssetRequest.newBuilder()
.setName(AssetName.of("[PROJECT]", "[LOCATION]", "[ASSET]").toString())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future =
livestreamServiceClient.deleteAssetCallable().futureCall(request);
// Do something.
future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<DeleteAssetRequest,Operation> |
deleteAssetOperationCallable()
public final OperationCallable<DeleteAssetRequest,Empty,OperationMetadata> deleteAssetOperationCallable()
Deletes the specified asset if it is not used.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
DeleteAssetRequest request =
DeleteAssetRequest.newBuilder()
.setName(AssetName.of("[PROJECT]", "[LOCATION]", "[ASSET]").toString())
.setRequestId("requestId693933066")
.build();
OperationFuture<Empty, OperationMetadata> future =
livestreamServiceClient.deleteAssetOperationCallable().futureCall(request);
// Do something.
future.get();
}
Returns | |
---|---|
Type | Description |
OperationCallable<DeleteAssetRequest,Empty,OperationMetadata> |
deleteChannelAsync(ChannelName name)
public final OperationFuture<Empty,OperationMetadata> deleteChannelAsync(ChannelName name)
Deletes the specified channel.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
ChannelName name = ChannelName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]");
livestreamServiceClient.deleteChannelAsync(name).get();
}
Parameter | |
---|---|
Name | Description |
name |
ChannelName Required. The name of the channel resource, in the form of:
|
Returns | |
---|---|
Type | Description |
OperationFuture<Empty,OperationMetadata> |
deleteChannelAsync(DeleteChannelRequest request)
public final OperationFuture<Empty,OperationMetadata> deleteChannelAsync(DeleteChannelRequest request)
Deletes the specified channel.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
DeleteChannelRequest request =
DeleteChannelRequest.newBuilder()
.setName(ChannelName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]").toString())
.setRequestId("requestId693933066")
.setForce(true)
.build();
livestreamServiceClient.deleteChannelAsync(request).get();
}
Parameter | |
---|---|
Name | Description |
request |
DeleteChannelRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
OperationFuture<Empty,OperationMetadata> |
deleteChannelAsync(String name)
public final OperationFuture<Empty,OperationMetadata> deleteChannelAsync(String name)
Deletes the specified channel.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
String name = ChannelName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]").toString();
livestreamServiceClient.deleteChannelAsync(name).get();
}
Parameter | |
---|---|
Name | Description |
name |
String Required. The name of the channel resource, in the form of:
|
Returns | |
---|---|
Type | Description |
OperationFuture<Empty,OperationMetadata> |
deleteChannelCallable()
public final UnaryCallable<DeleteChannelRequest,Operation> deleteChannelCallable()
Deletes the specified channel.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
DeleteChannelRequest request =
DeleteChannelRequest.newBuilder()
.setName(ChannelName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]").toString())
.setRequestId("requestId693933066")
.setForce(true)
.build();
ApiFuture<Operation> future =
livestreamServiceClient.deleteChannelCallable().futureCall(request);
// Do something.
future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<DeleteChannelRequest,Operation> |
deleteChannelOperationCallable()
public final OperationCallable<DeleteChannelRequest,Empty,OperationMetadata> deleteChannelOperationCallable()
Deletes the specified channel.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
DeleteChannelRequest request =
DeleteChannelRequest.newBuilder()
.setName(ChannelName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]").toString())
.setRequestId("requestId693933066")
.setForce(true)
.build();
OperationFuture<Empty, OperationMetadata> future =
livestreamServiceClient.deleteChannelOperationCallable().futureCall(request);
// Do something.
future.get();
}
Returns | |
---|---|
Type | Description |
OperationCallable<DeleteChannelRequest,Empty,OperationMetadata> |
deleteEvent(DeleteEventRequest request)
public final void deleteEvent(DeleteEventRequest request)
Deletes the specified event.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
DeleteEventRequest request =
DeleteEventRequest.newBuilder()
.setName(EventName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]", "[EVENT]").toString())
.setRequestId("requestId693933066")
.build();
livestreamServiceClient.deleteEvent(request);
}
Parameter | |
---|---|
Name | Description |
request |
DeleteEventRequest The request object containing all of the parameters for the API call. |
deleteEvent(EventName name)
public final void deleteEvent(EventName name)
Deletes the specified event.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
EventName name = EventName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]", "[EVENT]");
livestreamServiceClient.deleteEvent(name);
}
Parameter | |
---|---|
Name | Description |
name |
EventName Required. The name of the event resource, in the form of:
|
deleteEvent(String name)
public final void deleteEvent(String name)
Deletes the specified event.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
String name = EventName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]", "[EVENT]").toString();
livestreamServiceClient.deleteEvent(name);
}
Parameter | |
---|---|
Name | Description |
name |
String Required. The name of the event resource, in the form of:
|
deleteEventCallable()
public final UnaryCallable<DeleteEventRequest,Empty> deleteEventCallable()
Deletes the specified event.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
DeleteEventRequest request =
DeleteEventRequest.newBuilder()
.setName(EventName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]", "[EVENT]").toString())
.setRequestId("requestId693933066")
.build();
ApiFuture<Empty> future = livestreamServiceClient.deleteEventCallable().futureCall(request);
// Do something.
future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<DeleteEventRequest,Empty> |
deleteInputAsync(DeleteInputRequest request)
public final OperationFuture<Empty,OperationMetadata> deleteInputAsync(DeleteInputRequest request)
Deletes the specified input.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
DeleteInputRequest request =
DeleteInputRequest.newBuilder()
.setName(InputName.of("[PROJECT]", "[LOCATION]", "[INPUT]").toString())
.setRequestId("requestId693933066")
.build();
livestreamServiceClient.deleteInputAsync(request).get();
}
Parameter | |
---|---|
Name | Description |
request |
DeleteInputRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
OperationFuture<Empty,OperationMetadata> |
deleteInputAsync(InputName name)
public final OperationFuture<Empty,OperationMetadata> deleteInputAsync(InputName name)
Deletes the specified input.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
InputName name = InputName.of("[PROJECT]", "[LOCATION]", "[INPUT]");
livestreamServiceClient.deleteInputAsync(name).get();
}
Parameter | |
---|---|
Name | Description |
name |
InputName Required. The name of the input resource, in the form of:
|
Returns | |
---|---|
Type | Description |
OperationFuture<Empty,OperationMetadata> |
deleteInputAsync(String name)
public final OperationFuture<Empty,OperationMetadata> deleteInputAsync(String name)
Deletes the specified input.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
String name = InputName.of("[PROJECT]", "[LOCATION]", "[INPUT]").toString();
livestreamServiceClient.deleteInputAsync(name).get();
}
Parameter | |
---|---|
Name | Description |
name |
String Required. The name of the input resource, in the form of:
|
Returns | |
---|---|
Type | Description |
OperationFuture<Empty,OperationMetadata> |
deleteInputCallable()
public final UnaryCallable<DeleteInputRequest,Operation> deleteInputCallable()
Deletes the specified input.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
DeleteInputRequest request =
DeleteInputRequest.newBuilder()
.setName(InputName.of("[PROJECT]", "[LOCATION]", "[INPUT]").toString())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future =
livestreamServiceClient.deleteInputCallable().futureCall(request);
// Do something.
future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<DeleteInputRequest,Operation> |
deleteInputOperationCallable()
public final OperationCallable<DeleteInputRequest,Empty,OperationMetadata> deleteInputOperationCallable()
Deletes the specified input.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
DeleteInputRequest request =
DeleteInputRequest.newBuilder()
.setName(InputName.of("[PROJECT]", "[LOCATION]", "[INPUT]").toString())
.setRequestId("requestId693933066")
.build();
OperationFuture<Empty, OperationMetadata> future =
livestreamServiceClient.deleteInputOperationCallable().futureCall(request);
// Do something.
future.get();
}
Returns | |
---|---|
Type | Description |
OperationCallable<DeleteInputRequest,Empty,OperationMetadata> |
getAsset(AssetName name)
public final Asset getAsset(AssetName name)
Returns the specified asset.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
AssetName name = AssetName.of("[PROJECT]", "[LOCATION]", "[ASSET]");
Asset response = livestreamServiceClient.getAsset(name);
}
Parameter | |
---|---|
Name | Description |
name |
AssetName Required. Name of the resource, in the following form:
|
Returns | |
---|---|
Type | Description |
Asset |
getAsset(GetAssetRequest request)
public final Asset getAsset(GetAssetRequest request)
Returns the specified asset.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
GetAssetRequest request =
GetAssetRequest.newBuilder()
.setName(AssetName.of("[PROJECT]", "[LOCATION]", "[ASSET]").toString())
.build();
Asset response = livestreamServiceClient.getAsset(request);
}
Parameter | |
---|---|
Name | Description |
request |
GetAssetRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
Asset |
getAsset(String name)
public final Asset getAsset(String name)
Returns the specified asset.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
String name = AssetName.of("[PROJECT]", "[LOCATION]", "[ASSET]").toString();
Asset response = livestreamServiceClient.getAsset(name);
}
Parameter | |
---|---|
Name | Description |
name |
String Required. Name of the resource, in the following form:
|
Returns | |
---|---|
Type | Description |
Asset |
getAssetCallable()
public final UnaryCallable<GetAssetRequest,Asset> getAssetCallable()
Returns the specified asset.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
GetAssetRequest request =
GetAssetRequest.newBuilder()
.setName(AssetName.of("[PROJECT]", "[LOCATION]", "[ASSET]").toString())
.build();
ApiFuture<Asset> future = livestreamServiceClient.getAssetCallable().futureCall(request);
// Do something.
Asset response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<GetAssetRequest,Asset> |
getChannel(ChannelName name)
public final Channel getChannel(ChannelName name)
Returns the specified channel.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
ChannelName name = ChannelName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]");
Channel response = livestreamServiceClient.getChannel(name);
}
Parameter | |
---|---|
Name | Description |
name |
ChannelName Required. The name of the channel resource, in the form of:
|
Returns | |
---|---|
Type | Description |
Channel |
getChannel(GetChannelRequest request)
public final Channel getChannel(GetChannelRequest request)
Returns the specified channel.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
GetChannelRequest request =
GetChannelRequest.newBuilder()
.setName(ChannelName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]").toString())
.build();
Channel response = livestreamServiceClient.getChannel(request);
}
Parameter | |
---|---|
Name | Description |
request |
GetChannelRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
Channel |
getChannel(String name)
public final Channel getChannel(String name)
Returns the specified channel.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
String name = ChannelName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]").toString();
Channel response = livestreamServiceClient.getChannel(name);
}
Parameter | |
---|---|
Name | Description |
name |
String Required. The name of the channel resource, in the form of:
|
Returns | |
---|---|
Type | Description |
Channel |
getChannelCallable()
public final UnaryCallable<GetChannelRequest,Channel> getChannelCallable()
Returns the specified channel.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
GetChannelRequest request =
GetChannelRequest.newBuilder()
.setName(ChannelName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]").toString())
.build();
ApiFuture<Channel> future = livestreamServiceClient.getChannelCallable().futureCall(request);
// Do something.
Channel response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<GetChannelRequest,Channel> |
getEvent(EventName name)
public final Event getEvent(EventName name)
Returns the specified event.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
EventName name = EventName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]", "[EVENT]");
Event response = livestreamServiceClient.getEvent(name);
}
Parameter | |
---|---|
Name | Description |
name |
EventName Required. The name of the event resource, in the form of:
|
Returns | |
---|---|
Type | Description |
Event |
getEvent(GetEventRequest request)
public final Event getEvent(GetEventRequest request)
Returns the specified event.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
GetEventRequest request =
GetEventRequest.newBuilder()
.setName(EventName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]", "[EVENT]").toString())
.build();
Event response = livestreamServiceClient.getEvent(request);
}
Parameter | |
---|---|
Name | Description |
request |
GetEventRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
Event |
getEvent(String name)
public final Event getEvent(String name)
Returns the specified event.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
String name = EventName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]", "[EVENT]").toString();
Event response = livestreamServiceClient.getEvent(name);
}
Parameter | |
---|---|
Name | Description |
name |
String Required. The name of the event resource, in the form of:
|
Returns | |
---|---|
Type | Description |
Event |
getEventCallable()
public final UnaryCallable<GetEventRequest,Event> getEventCallable()
Returns the specified event.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
GetEventRequest request =
GetEventRequest.newBuilder()
.setName(EventName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]", "[EVENT]").toString())
.build();
ApiFuture<Event> future = livestreamServiceClient.getEventCallable().futureCall(request);
// Do something.
Event response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<GetEventRequest,Event> |
getHttpJsonOperationsClient()
public final OperationsClient getHttpJsonOperationsClient()
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 |
getInput(GetInputRequest request)
public final Input getInput(GetInputRequest request)
Returns the specified input.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
GetInputRequest request =
GetInputRequest.newBuilder()
.setName(InputName.of("[PROJECT]", "[LOCATION]", "[INPUT]").toString())
.build();
Input response = livestreamServiceClient.getInput(request);
}
Parameter | |
---|---|
Name | Description |
request |
GetInputRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
Input |
getInput(InputName name)
public final Input getInput(InputName name)
Returns the specified input.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
InputName name = InputName.of("[PROJECT]", "[LOCATION]", "[INPUT]");
Input response = livestreamServiceClient.getInput(name);
}
Parameter | |
---|---|
Name | Description |
name |
InputName Required. The name of the input resource, in the form of:
|
Returns | |
---|---|
Type | Description |
Input |
getInput(String name)
public final Input getInput(String name)
Returns the specified input.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
String name = InputName.of("[PROJECT]", "[LOCATION]", "[INPUT]").toString();
Input response = livestreamServiceClient.getInput(name);
}
Parameter | |
---|---|
Name | Description |
name |
String Required. The name of the input resource, in the form of:
|
Returns | |
---|---|
Type | Description |
Input |
getInputCallable()
public final UnaryCallable<GetInputRequest,Input> getInputCallable()
Returns the specified input.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
GetInputRequest request =
GetInputRequest.newBuilder()
.setName(InputName.of("[PROJECT]", "[LOCATION]", "[INPUT]").toString())
.build();
ApiFuture<Input> future = livestreamServiceClient.getInputCallable().futureCall(request);
// Do something.
Input response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<GetInputRequest,Input> |
getLocation(GetLocationRequest request)
public final Location getLocation(GetLocationRequest request)
Gets information about a 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 (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
Location response = livestreamServiceClient.getLocation(request);
}
Parameter | |
---|---|
Name | Description |
request |
com.google.cloud.location.GetLocationRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
com.google.cloud.location.Location |
getLocationCallable()
public final UnaryCallable<GetLocationRequest,Location> getLocationCallable()
Gets information about a 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 (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
ApiFuture<Location> future =
livestreamServiceClient.getLocationCallable().futureCall(request);
// Do something.
Location response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> |
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 |
getPool(GetPoolRequest request)
public final Pool getPool(GetPoolRequest request)
Returns the specified pool.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
GetPoolRequest request =
GetPoolRequest.newBuilder()
.setName(PoolName.of("[PROJECT]", "[LOCATION]", "[POOL]").toString())
.build();
Pool response = livestreamServiceClient.getPool(request);
}
Parameter | |
---|---|
Name | Description |
request |
GetPoolRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
Pool |
getPool(PoolName name)
public final Pool getPool(PoolName name)
Returns the specified pool.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
PoolName name = PoolName.of("[PROJECT]", "[LOCATION]", "[POOL]");
Pool response = livestreamServiceClient.getPool(name);
}
Parameter | |
---|---|
Name | Description |
name |
PoolName Required. The name of the pool resource, in the form of:
|
Returns | |
---|---|
Type | Description |
Pool |
getPool(String name)
public final Pool getPool(String name)
Returns the specified pool.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
String name = PoolName.of("[PROJECT]", "[LOCATION]", "[POOL]").toString();
Pool response = livestreamServiceClient.getPool(name);
}
Parameter | |
---|---|
Name | Description |
name |
String Required. The name of the pool resource, in the form of:
|
Returns | |
---|---|
Type | Description |
Pool |
getPoolCallable()
public final UnaryCallable<GetPoolRequest,Pool> getPoolCallable()
Returns the specified pool.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
GetPoolRequest request =
GetPoolRequest.newBuilder()
.setName(PoolName.of("[PROJECT]", "[LOCATION]", "[POOL]").toString())
.build();
ApiFuture<Pool> future = livestreamServiceClient.getPoolCallable().futureCall(request);
// Do something.
Pool response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<GetPoolRequest,Pool> |
getSettings()
public final LivestreamServiceSettings getSettings()
Returns | |
---|---|
Type | Description |
LivestreamServiceSettings |
getStub()
public LivestreamServiceStub getStub()
Returns | |
---|---|
Type | Description |
LivestreamServiceStub |
isShutdown()
public boolean isShutdown()
Returns | |
---|---|
Type | Description |
boolean |
isTerminated()
public boolean isTerminated()
Returns | |
---|---|
Type | Description |
boolean |
listAssets(ListAssetsRequest request)
public final LivestreamServiceClient.ListAssetsPagedResponse listAssets(ListAssetsRequest request)
Returns a list of all assets 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 (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
ListAssetsRequest request =
ListAssetsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
for (Asset element : livestreamServiceClient.listAssets(request).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
request |
ListAssetsRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
LivestreamServiceClient.ListAssetsPagedResponse |
listAssets(LocationName parent)
public final LivestreamServiceClient.ListAssetsPagedResponse listAssets(LocationName parent)
Returns a list of all assets 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 (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
for (Asset element : livestreamServiceClient.listAssets(parent).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
parent |
LocationName Required. The parent location for the resource, in the form of:
|
Returns | |
---|---|
Type | Description |
LivestreamServiceClient.ListAssetsPagedResponse |
listAssets(String parent)
public final LivestreamServiceClient.ListAssetsPagedResponse listAssets(String parent)
Returns a list of all assets 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 (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
for (Asset element : livestreamServiceClient.listAssets(parent).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
parent |
String Required. The parent location for the resource, in the form of:
|
Returns | |
---|---|
Type | Description |
LivestreamServiceClient.ListAssetsPagedResponse |
listAssetsCallable()
public final UnaryCallable<ListAssetsRequest,ListAssetsResponse> listAssetsCallable()
Returns a list of all assets 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 (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
ListAssetsRequest request =
ListAssetsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
while (true) {
ListAssetsResponse response = livestreamServiceClient.listAssetsCallable().call(request);
for (Asset element : response.getAssetsList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
Returns | |
---|---|
Type | Description |
UnaryCallable<ListAssetsRequest,ListAssetsResponse> |
listAssetsPagedCallable()
public final UnaryCallable<ListAssetsRequest,LivestreamServiceClient.ListAssetsPagedResponse> listAssetsPagedCallable()
Returns a list of all assets 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 (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
ListAssetsRequest request =
ListAssetsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
ApiFuture<Asset> future =
livestreamServiceClient.listAssetsPagedCallable().futureCall(request);
// Do something.
for (Asset element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
Returns | |
---|---|
Type | Description |
UnaryCallable<ListAssetsRequest,ListAssetsPagedResponse> |
listChannels(ListChannelsRequest request)
public final LivestreamServiceClient.ListChannelsPagedResponse listChannels(ListChannelsRequest request)
Returns a list of all channels 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 (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
ListChannelsRequest request =
ListChannelsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
for (Channel element : livestreamServiceClient.listChannels(request).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
request |
ListChannelsRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
LivestreamServiceClient.ListChannelsPagedResponse |
listChannels(LocationName parent)
public final LivestreamServiceClient.ListChannelsPagedResponse listChannels(LocationName parent)
Returns a list of all channels 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 (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
for (Channel element : livestreamServiceClient.listChannels(parent).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
parent |
LocationName Required. The parent location for the resource, in the form of:
|
Returns | |
---|---|
Type | Description |
LivestreamServiceClient.ListChannelsPagedResponse |
listChannels(String parent)
public final LivestreamServiceClient.ListChannelsPagedResponse listChannels(String parent)
Returns a list of all channels 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 (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
for (Channel element : livestreamServiceClient.listChannels(parent).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
parent |
String Required. The parent location for the resource, in the form of:
|
Returns | |
---|---|
Type | Description |
LivestreamServiceClient.ListChannelsPagedResponse |
listChannelsCallable()
public final UnaryCallable<ListChannelsRequest,ListChannelsResponse> listChannelsCallable()
Returns a list of all channels 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 (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
ListChannelsRequest request =
ListChannelsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
while (true) {
ListChannelsResponse response =
livestreamServiceClient.listChannelsCallable().call(request);
for (Channel element : response.getChannelsList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
Returns | |
---|---|
Type | Description |
UnaryCallable<ListChannelsRequest,ListChannelsResponse> |
listChannelsPagedCallable()
public final UnaryCallable<ListChannelsRequest,LivestreamServiceClient.ListChannelsPagedResponse> listChannelsPagedCallable()
Returns a list of all channels 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 (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
ListChannelsRequest request =
ListChannelsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
ApiFuture<Channel> future =
livestreamServiceClient.listChannelsPagedCallable().futureCall(request);
// Do something.
for (Channel element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
Returns | |
---|---|
Type | Description |
UnaryCallable<ListChannelsRequest,ListChannelsPagedResponse> |
listEvents(ChannelName parent)
public final LivestreamServiceClient.ListEventsPagedResponse listEvents(ChannelName parent)
Returns a list of all events in the specified channel.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
ChannelName parent = ChannelName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]");
for (Event element : livestreamServiceClient.listEvents(parent).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
parent |
ChannelName Required. The parent channel for the resource, in the form of:
|
Returns | |
---|---|
Type | Description |
LivestreamServiceClient.ListEventsPagedResponse |
listEvents(ListEventsRequest request)
public final LivestreamServiceClient.ListEventsPagedResponse listEvents(ListEventsRequest request)
Returns a list of all events in the specified channel.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
ListEventsRequest request =
ListEventsRequest.newBuilder()
.setParent(ChannelName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
for (Event element : livestreamServiceClient.listEvents(request).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
request |
ListEventsRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
LivestreamServiceClient.ListEventsPagedResponse |
listEvents(String parent)
public final LivestreamServiceClient.ListEventsPagedResponse listEvents(String parent)
Returns a list of all events in the specified channel.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
String parent = ChannelName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]").toString();
for (Event element : livestreamServiceClient.listEvents(parent).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
parent |
String Required. The parent channel for the resource, in the form of:
|
Returns | |
---|---|
Type | Description |
LivestreamServiceClient.ListEventsPagedResponse |
listEventsCallable()
public final UnaryCallable<ListEventsRequest,ListEventsResponse> listEventsCallable()
Returns a list of all events in the specified channel.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
ListEventsRequest request =
ListEventsRequest.newBuilder()
.setParent(ChannelName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
while (true) {
ListEventsResponse response = livestreamServiceClient.listEventsCallable().call(request);
for (Event element : response.getEventsList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
Returns | |
---|---|
Type | Description |
UnaryCallable<ListEventsRequest,ListEventsResponse> |
listEventsPagedCallable()
public final UnaryCallable<ListEventsRequest,LivestreamServiceClient.ListEventsPagedResponse> listEventsPagedCallable()
Returns a list of all events in the specified channel.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
ListEventsRequest request =
ListEventsRequest.newBuilder()
.setParent(ChannelName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
ApiFuture<Event> future =
livestreamServiceClient.listEventsPagedCallable().futureCall(request);
// Do something.
for (Event element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
Returns | |
---|---|
Type | Description |
UnaryCallable<ListEventsRequest,ListEventsPagedResponse> |
listInputs(ListInputsRequest request)
public final LivestreamServiceClient.ListInputsPagedResponse listInputs(ListInputsRequest request)
Returns a list of all inputs 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 (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
ListInputsRequest request =
ListInputsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
for (Input element : livestreamServiceClient.listInputs(request).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
request |
ListInputsRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
LivestreamServiceClient.ListInputsPagedResponse |
listInputs(LocationName parent)
public final LivestreamServiceClient.ListInputsPagedResponse listInputs(LocationName parent)
Returns a list of all inputs 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 (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
for (Input element : livestreamServiceClient.listInputs(parent).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
parent |
LocationName Required. The parent location for the resource, in the form of:
|
Returns | |
---|---|
Type | Description |
LivestreamServiceClient.ListInputsPagedResponse |
listInputs(String parent)
public final LivestreamServiceClient.ListInputsPagedResponse listInputs(String parent)
Returns a list of all inputs 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 (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
for (Input element : livestreamServiceClient.listInputs(parent).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
parent |
String Required. The parent location for the resource, in the form of:
|
Returns | |
---|---|
Type | Description |
LivestreamServiceClient.ListInputsPagedResponse |
listInputsCallable()
public final UnaryCallable<ListInputsRequest,ListInputsResponse> listInputsCallable()
Returns a list of all inputs 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 (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
ListInputsRequest request =
ListInputsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
while (true) {
ListInputsResponse response = livestreamServiceClient.listInputsCallable().call(request);
for (Input element : response.getInputsList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
Returns | |
---|---|
Type | Description |
UnaryCallable<ListInputsRequest,ListInputsResponse> |
listInputsPagedCallable()
public final UnaryCallable<ListInputsRequest,LivestreamServiceClient.ListInputsPagedResponse> listInputsPagedCallable()
Returns a list of all inputs 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 (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
ListInputsRequest request =
ListInputsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.build();
ApiFuture<Input> future =
livestreamServiceClient.listInputsPagedCallable().futureCall(request);
// Do something.
for (Input element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
Returns | |
---|---|
Type | Description |
UnaryCallable<ListInputsRequest,ListInputsPagedResponse> |
listLocations(ListLocationsRequest request)
public final LivestreamServiceClient.ListLocationsPagedResponse listLocations(ListLocationsRequest request)
Lists information about the supported locations for this 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 (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
ListLocationsRequest request =
ListLocationsRequest.newBuilder()
.setName("name3373707")
.setFilter("filter-1274492040")
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
for (Location element : livestreamServiceClient.listLocations(request).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
request |
com.google.cloud.location.ListLocationsRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
LivestreamServiceClient.ListLocationsPagedResponse |
listLocationsCallable()
public final UnaryCallable<ListLocationsRequest,ListLocationsResponse> listLocationsCallable()
Lists information about the supported locations for this 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 (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
ListLocationsRequest request =
ListLocationsRequest.newBuilder()
.setName("name3373707")
.setFilter("filter-1274492040")
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
while (true) {
ListLocationsResponse response =
livestreamServiceClient.listLocationsCallable().call(request);
for (Location element : response.getLocationsList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
Returns | |
---|---|
Type | Description |
UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse> |
listLocationsPagedCallable()
public final UnaryCallable<ListLocationsRequest,LivestreamServiceClient.ListLocationsPagedResponse> listLocationsPagedCallable()
Lists information about the supported locations for this 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 (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
ListLocationsRequest request =
ListLocationsRequest.newBuilder()
.setName("name3373707")
.setFilter("filter-1274492040")
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
ApiFuture<Location> future =
livestreamServiceClient.listLocationsPagedCallable().futureCall(request);
// Do something.
for (Location element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
Returns | |
---|---|
Type | Description |
UnaryCallable<com.google.cloud.location.ListLocationsRequest,ListLocationsPagedResponse> |
shutdown()
public void shutdown()
shutdownNow()
public void shutdownNow()
startChannelAsync(ChannelName name)
public final OperationFuture<ChannelOperationResponse,OperationMetadata> startChannelAsync(ChannelName name)
Starts the specified channel. Part of the video pipeline will be created only when the StartChannel request is received by the server.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
ChannelName name = ChannelName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]");
ChannelOperationResponse response = livestreamServiceClient.startChannelAsync(name).get();
}
Parameter | |
---|---|
Name | Description |
name |
ChannelName Required. The name of the channel resource, in the form of:
|
Returns | |
---|---|
Type | Description |
OperationFuture<ChannelOperationResponse,OperationMetadata> |
startChannelAsync(StartChannelRequest request)
public final OperationFuture<ChannelOperationResponse,OperationMetadata> startChannelAsync(StartChannelRequest request)
Starts the specified channel. Part of the video pipeline will be created only when the StartChannel request is received by the server.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
StartChannelRequest request =
StartChannelRequest.newBuilder()
.setName(ChannelName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]").toString())
.setRequestId("requestId693933066")
.build();
ChannelOperationResponse response = livestreamServiceClient.startChannelAsync(request).get();
}
Parameter | |
---|---|
Name | Description |
request |
StartChannelRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
OperationFuture<ChannelOperationResponse,OperationMetadata> |
startChannelAsync(String name)
public final OperationFuture<ChannelOperationResponse,OperationMetadata> startChannelAsync(String name)
Starts the specified channel. Part of the video pipeline will be created only when the StartChannel request is received by the server.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
String name = ChannelName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]").toString();
ChannelOperationResponse response = livestreamServiceClient.startChannelAsync(name).get();
}
Parameter | |
---|---|
Name | Description |
name |
String Required. The name of the channel resource, in the form of:
|
Returns | |
---|---|
Type | Description |
OperationFuture<ChannelOperationResponse,OperationMetadata> |
startChannelCallable()
public final UnaryCallable<StartChannelRequest,Operation> startChannelCallable()
Starts the specified channel. Part of the video pipeline will be created only when the StartChannel request is received by the server.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
StartChannelRequest request =
StartChannelRequest.newBuilder()
.setName(ChannelName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]").toString())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future =
livestreamServiceClient.startChannelCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<StartChannelRequest,Operation> |
startChannelOperationCallable()
public final OperationCallable<StartChannelRequest,ChannelOperationResponse,OperationMetadata> startChannelOperationCallable()
Starts the specified channel. Part of the video pipeline will be created only when the StartChannel request is received by the server.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
StartChannelRequest request =
StartChannelRequest.newBuilder()
.setName(ChannelName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]").toString())
.setRequestId("requestId693933066")
.build();
OperationFuture<ChannelOperationResponse, OperationMetadata> future =
livestreamServiceClient.startChannelOperationCallable().futureCall(request);
// Do something.
ChannelOperationResponse response = future.get();
}
Returns | |
---|---|
Type | Description |
OperationCallable<StartChannelRequest,ChannelOperationResponse,OperationMetadata> |
stopChannelAsync(ChannelName name)
public final OperationFuture<ChannelOperationResponse,OperationMetadata> stopChannelAsync(ChannelName name)
Stops the specified channel. Part of the video pipeline will be released when the StopChannel request is received by the server.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
ChannelName name = ChannelName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]");
ChannelOperationResponse response = livestreamServiceClient.stopChannelAsync(name).get();
}
Parameter | |
---|---|
Name | Description |
name |
ChannelName Required. The name of the channel resource, in the form of:
|
Returns | |
---|---|
Type | Description |
OperationFuture<ChannelOperationResponse,OperationMetadata> |
stopChannelAsync(StopChannelRequest request)
public final OperationFuture<ChannelOperationResponse,OperationMetadata> stopChannelAsync(StopChannelRequest request)
Stops the specified channel. Part of the video pipeline will be released when the StopChannel request is received by the server.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
StopChannelRequest request =
StopChannelRequest.newBuilder()
.setName(ChannelName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]").toString())
.setRequestId("requestId693933066")
.build();
ChannelOperationResponse response = livestreamServiceClient.stopChannelAsync(request).get();
}
Parameter | |
---|---|
Name | Description |
request |
StopChannelRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
OperationFuture<ChannelOperationResponse,OperationMetadata> |
stopChannelAsync(String name)
public final OperationFuture<ChannelOperationResponse,OperationMetadata> stopChannelAsync(String name)
Stops the specified channel. Part of the video pipeline will be released when the StopChannel request is received by the server.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
String name = ChannelName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]").toString();
ChannelOperationResponse response = livestreamServiceClient.stopChannelAsync(name).get();
}
Parameter | |
---|---|
Name | Description |
name |
String Required. The name of the channel resource, in the form of:
|
Returns | |
---|---|
Type | Description |
OperationFuture<ChannelOperationResponse,OperationMetadata> |
stopChannelCallable()
public final UnaryCallable<StopChannelRequest,Operation> stopChannelCallable()
Stops the specified channel. Part of the video pipeline will be released when the StopChannel request is received by the server.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
StopChannelRequest request =
StopChannelRequest.newBuilder()
.setName(ChannelName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]").toString())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future =
livestreamServiceClient.stopChannelCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<StopChannelRequest,Operation> |
stopChannelOperationCallable()
public final OperationCallable<StopChannelRequest,ChannelOperationResponse,OperationMetadata> stopChannelOperationCallable()
Stops the specified channel. Part of the video pipeline will be released when the StopChannel request is received by the server.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
StopChannelRequest request =
StopChannelRequest.newBuilder()
.setName(ChannelName.of("[PROJECT]", "[LOCATION]", "[CHANNEL]").toString())
.setRequestId("requestId693933066")
.build();
OperationFuture<ChannelOperationResponse, OperationMetadata> future =
livestreamServiceClient.stopChannelOperationCallable().futureCall(request);
// Do something.
ChannelOperationResponse response = future.get();
}
Returns | |
---|---|
Type | Description |
OperationCallable<StopChannelRequest,ChannelOperationResponse,OperationMetadata> |
updateChannelAsync(Channel channel, FieldMask updateMask)
public final OperationFuture<Channel,OperationMetadata> updateChannelAsync(Channel channel, FieldMask updateMask)
Updates the specified channel.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
Channel channel = Channel.newBuilder().build();
FieldMask updateMask = FieldMask.newBuilder().build();
Channel response = livestreamServiceClient.updateChannelAsync(channel, updateMask).get();
}
Parameters | |
---|---|
Name | Description |
channel |
Channel Required. The channel resource to be updated. |
updateMask |
FieldMask Field mask is used to specify the fields to be overwritten in the Channel resource by the update. You can only update the following fields:
The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the mask is not present, then each field from the list above is updated if the field appears in the request payload. To unset a field, add the field to the update mask and remove it from the request payload. |
Returns | |
---|---|
Type | Description |
OperationFuture<Channel,OperationMetadata> |
updateChannelAsync(UpdateChannelRequest request)
public final OperationFuture<Channel,OperationMetadata> updateChannelAsync(UpdateChannelRequest request)
Updates the specified channel.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
UpdateChannelRequest request =
UpdateChannelRequest.newBuilder()
.setUpdateMask(FieldMask.newBuilder().build())
.setChannel(Channel.newBuilder().build())
.setRequestId("requestId693933066")
.build();
Channel response = livestreamServiceClient.updateChannelAsync(request).get();
}
Parameter | |
---|---|
Name | Description |
request |
UpdateChannelRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
OperationFuture<Channel,OperationMetadata> |
updateChannelCallable()
public final UnaryCallable<UpdateChannelRequest,Operation> updateChannelCallable()
Updates the specified channel.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
UpdateChannelRequest request =
UpdateChannelRequest.newBuilder()
.setUpdateMask(FieldMask.newBuilder().build())
.setChannel(Channel.newBuilder().build())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future =
livestreamServiceClient.updateChannelCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<UpdateChannelRequest,Operation> |
updateChannelOperationCallable()
public final OperationCallable<UpdateChannelRequest,Channel,OperationMetadata> updateChannelOperationCallable()
Updates the specified channel.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
UpdateChannelRequest request =
UpdateChannelRequest.newBuilder()
.setUpdateMask(FieldMask.newBuilder().build())
.setChannel(Channel.newBuilder().build())
.setRequestId("requestId693933066")
.build();
OperationFuture<Channel, OperationMetadata> future =
livestreamServiceClient.updateChannelOperationCallable().futureCall(request);
// Do something.
Channel response = future.get();
}
Returns | |
---|---|
Type | Description |
OperationCallable<UpdateChannelRequest,Channel,OperationMetadata> |
updateInputAsync(Input input, FieldMask updateMask)
public final OperationFuture<Input,OperationMetadata> updateInputAsync(Input input, FieldMask updateMask)
Updates the specified input.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
Input input = Input.newBuilder().build();
FieldMask updateMask = FieldMask.newBuilder().build();
Input response = livestreamServiceClient.updateInputAsync(input, updateMask).get();
}
Parameters | |
---|---|
Name | Description |
input |
Input Required. The input resource to be updated. |
updateMask |
FieldMask Field mask is used to specify the fields to be overwritten in the Input resource by the update. You can only update the following fields: The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the mask is not present, then each field from the list above is updated if the field appears in the request payload. To unset a field, add the field to the update mask and remove it from the request payload. |
Returns | |
---|---|
Type | Description |
OperationFuture<Input,OperationMetadata> |
updateInputAsync(UpdateInputRequest request)
public final OperationFuture<Input,OperationMetadata> updateInputAsync(UpdateInputRequest request)
Updates the specified input.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
UpdateInputRequest request =
UpdateInputRequest.newBuilder()
.setUpdateMask(FieldMask.newBuilder().build())
.setInput(Input.newBuilder().build())
.setRequestId("requestId693933066")
.build();
Input response = livestreamServiceClient.updateInputAsync(request).get();
}
Parameter | |
---|---|
Name | Description |
request |
UpdateInputRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
OperationFuture<Input,OperationMetadata> |
updateInputCallable()
public final UnaryCallable<UpdateInputRequest,Operation> updateInputCallable()
Updates the specified input.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
UpdateInputRequest request =
UpdateInputRequest.newBuilder()
.setUpdateMask(FieldMask.newBuilder().build())
.setInput(Input.newBuilder().build())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future =
livestreamServiceClient.updateInputCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<UpdateInputRequest,Operation> |
updateInputOperationCallable()
public final OperationCallable<UpdateInputRequest,Input,OperationMetadata> updateInputOperationCallable()
Updates the specified input.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
UpdateInputRequest request =
UpdateInputRequest.newBuilder()
.setUpdateMask(FieldMask.newBuilder().build())
.setInput(Input.newBuilder().build())
.setRequestId("requestId693933066")
.build();
OperationFuture<Input, OperationMetadata> future =
livestreamServiceClient.updateInputOperationCallable().futureCall(request);
// Do something.
Input response = future.get();
}
Returns | |
---|---|
Type | Description |
OperationCallable<UpdateInputRequest,Input,OperationMetadata> |
updatePoolAsync(Pool pool, FieldMask updateMask)
public final OperationFuture<Pool,OperationMetadata> updatePoolAsync(Pool pool, FieldMask updateMask)
Updates the specified pool.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
Pool pool = Pool.newBuilder().build();
FieldMask updateMask = FieldMask.newBuilder().build();
Pool response = livestreamServiceClient.updatePoolAsync(pool, updateMask).get();
}
Parameters | |
---|---|
Name | Description |
pool |
Pool Required. The pool resource to be updated. |
updateMask |
FieldMask Field mask is used to specify the fields to be overwritten in the Pool resource by the update. You can only update the following fields:
The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. |
Returns | |
---|---|
Type | Description |
OperationFuture<Pool,OperationMetadata> |
updatePoolAsync(UpdatePoolRequest request)
public final OperationFuture<Pool,OperationMetadata> updatePoolAsync(UpdatePoolRequest request)
Updates the specified pool.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
UpdatePoolRequest request =
UpdatePoolRequest.newBuilder()
.setUpdateMask(FieldMask.newBuilder().build())
.setPool(Pool.newBuilder().build())
.setRequestId("requestId693933066")
.build();
Pool response = livestreamServiceClient.updatePoolAsync(request).get();
}
Parameter | |
---|---|
Name | Description |
request |
UpdatePoolRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
OperationFuture<Pool,OperationMetadata> |
updatePoolCallable()
public final UnaryCallable<UpdatePoolRequest,Operation> updatePoolCallable()
Updates the specified pool.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
UpdatePoolRequest request =
UpdatePoolRequest.newBuilder()
.setUpdateMask(FieldMask.newBuilder().build())
.setPool(Pool.newBuilder().build())
.setRequestId("requestId693933066")
.build();
ApiFuture<Operation> future =
livestreamServiceClient.updatePoolCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<UpdatePoolRequest,Operation> |
updatePoolOperationCallable()
public final OperationCallable<UpdatePoolRequest,Pool,OperationMetadata> updatePoolOperationCallable()
Updates the specified pool.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.create()) {
UpdatePoolRequest request =
UpdatePoolRequest.newBuilder()
.setUpdateMask(FieldMask.newBuilder().build())
.setPool(Pool.newBuilder().build())
.setRequestId("requestId693933066")
.build();
OperationFuture<Pool, OperationMetadata> future =
livestreamServiceClient.updatePoolOperationCallable().futureCall(request);
// Do something.
Pool response = future.get();
}
Returns | |
---|---|
Type | Description |
OperationCallable<UpdatePoolRequest,Pool,OperationMetadata> |