- 0.57.0 (latest)
- 0.56.0
- 0.55.0
- 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
public class LivestreamServiceClient implements BackgroundResource
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().
The surface of this class includes several types of Java methods for each of the API's methods:
- A "flattened" method. With this type of method, the fields of the request type have been converted into function parameters. It may be the case that not all fields are available as parameters, and not every API method will have a flattened method entry point.
- A "request object" method. This type of method only takes one parameter, a request object, which must be constructed before the call. Not every API method will have a request object method.
- A "callable" method. This type of method takes no parameters and returns an immutable API callable object, which can be used to initiate calls to the service.
See the individual methods for example code.
Many parameters require resource names to be formatted in a particular way. To assist with these names, this class includes a format method for each type of name, and additionally a parse method to extract the individual identifiers contained within names that are returned.
This class can be customized by passing in a custom instance of 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.
Implements
BackgroundResourceStatic Methods
create()
public static final LivestreamServiceClient create()
Constructs an instance of LivestreamServiceClient with default settings.
Type | Description |
LivestreamServiceClient |
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.
Name | Description |
settings | LivestreamServiceSettings |
Type | Description |
LivestreamServiceClient |
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).
Name | Description |
stub | LivestreamServiceStub |
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.
Name | Description |
settings | LivestreamServiceSettings |
LivestreamServiceClient(LivestreamServiceStub stub)
protected LivestreamServiceClient(LivestreamServiceStub stub)
Name | Description |
stub | LivestreamServiceStub |
Methods
awaitTermination(long duration, TimeUnit unit)
public boolean awaitTermination(long duration, TimeUnit unit)
Name | Description |
duration | long |
unit | TimeUnit |
Type | Description |
boolean |
Type | Description |
InterruptedException |
close()
public final void close()
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();
}
Name | Description |
request | CreateChannelRequest The request object containing all of the parameters for the API call. |
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();
}
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 |
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();
}
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 |
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();
}
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();
}
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);
}
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 |
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);
}
Name | Description |
request | CreateEventRequest The request object containing all of the parameters for the API call. |
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);
}
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 |
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();
}
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();
}
Name | Description |
request | CreateInputRequest The request object containing all of the parameters for the API call. |
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();
}
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 |
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();
}
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 |
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();
}
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();
}
Type | Description |
OperationCallable<CreateInputRequest,Input,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();
}
Name | Description |
name | ChannelName Required. The name of the channel resource, in the form of:
|
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();
}
Name | Description |
request | DeleteChannelRequest The request object containing all of the parameters for the API call. |
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();
}
Name | Description |
name | String Required. The name of the channel resource, in the form of:
|
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();
}
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();
}
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);
}
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);
}
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);
}
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();
}
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();
}
Name | Description |
request | DeleteInputRequest The request object containing all of the parameters for the API call. |
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();
}
Name | Description |
name | InputName Required. The name of the input resource, in the form of:
|
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();
}
Name | Description |
name | String Required. The name of the input resource, in the form of:
|
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();
}
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();
}
Type | Description |
OperationCallable<DeleteInputRequest,Empty,OperationMetadata> |
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);
}
Name | Description |
name | ChannelName Required. The name of the channel resource, in the form of:
|
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);
}
Name | Description |
request | GetChannelRequest The request object containing all of the parameters for the API call. |
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);
}
Name | Description |
name | String Required. The name of the channel resource, in the form of:
|
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();
}
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);
}
Name | Description |
name | EventName Required. The name of the event resource, in the form of:
|
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);
}
Name | Description |
request | GetEventRequest The request object containing all of the parameters for the API call. |
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);
}
Name | Description |
name | String Required. The name of the event resource, in the form of:
|
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();
}
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.
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);
}
Name | Description |
request | GetInputRequest The request object containing all of the parameters for the API call. |
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);
}
Name | Description |
name | InputName Required. The name of the input resource, in the form of:
|
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);
}
Name | Description |
name | String Required. The name of the input resource, in the form of:
|
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();
}
Type | Description |
UnaryCallable<GetInputRequest,Input> |
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.
Type | Description |
OperationsClient |
getSettings()
public final LivestreamServiceSettings getSettings()
Type | Description |
LivestreamServiceSettings |
getStub()
public LivestreamServiceStub getStub()
Type | Description |
LivestreamServiceStub |
isShutdown()
public boolean isShutdown()
Type | Description |
boolean |
isTerminated()
public boolean isTerminated()
Type | Description |
boolean |
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);
}
}
Name | Description |
request | ListChannelsRequest The request object containing all of the parameters for the API call. |
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);
}
}
Name | Description |
parent | LocationName Required. The parent location for the resource, in the form of:
|
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);
}
}
Name | Description |
parent | String Required. The parent location for the resource, in the form of:
|
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;
}
}
}
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);
}
}
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);
}
}
Name | Description |
parent | ChannelName Required. The parent channel for the resource, in the form of:
|
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);
}
}
Name | Description |
request | ListEventsRequest The request object containing all of the parameters for the API call. |
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);
}
}
Name | Description |
parent | String Required. The parent channel for the resource, in the form of:
|
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;
}
}
}
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);
}
}
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);
}
}
Name | Description |
request | ListInputsRequest The request object containing all of the parameters for the API call. |
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);
}
}
Name | Description |
parent | LocationName Required. The parent location for the resource, in the form of:
|
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);
}
}
Name | Description |
parent | String Required. The parent location for the resource, in the form of:
|
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;
}
}
}
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);
}
}
Type | Description |
UnaryCallable<ListInputsRequest,ListInputsPagedResponse> |
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();
}
Name | Description |
name | ChannelName Required. The name of the channel resource, in the form of:
|
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();
}
Name | Description |
request | StartChannelRequest The request object containing all of the parameters for the API call. |
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();
}
Name | Description |
name | String Required. The name of the channel resource, in the form of:
|
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();
}
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();
}
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();
}
Name | Description |
name | ChannelName Required. The name of the channel resource, in the form of:
|
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();
}
Name | Description |
request | StopChannelRequest The request object containing all of the parameters for the API call. |
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();
}
Name | Description |
name | String Required. The name of the channel resource, in the form of:
|
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();
}
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();
}
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();
}
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. |
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();
}
Name | Description |
request | UpdateChannelRequest The request object containing all of the parameters for the API call. |
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();
}
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();
}
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();
}
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. |
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();
}
Name | Description |
request | UpdateInputRequest The request object containing all of the parameters for the API call. |
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();
}
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();
}
Type | Description |
OperationCallable<UpdateInputRequest,Input,OperationMetadata> |