Live Stream v1 API - Class LivestreamServiceClient (1.2.0)

public abstract class LivestreamServiceClient

Reference documentation and code samples for the Live Stream v1 API class LivestreamServiceClient.

LivestreamService client wrapper, for convenient use.

Inheritance

object > LivestreamServiceClient

Namespace

GoogleCloudGoogle.Cloud.VideoGoogle.Cloud.Video.LiveStreamV1

Assembly

Google.Cloud.Video.LiveStream.V1.dll

Remarks

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).

Properties

CreateChannelOperationsClient

public virtual OperationsClient CreateChannelOperationsClient { get; }

The long-running operations client for CreateChannel.

Property Value
TypeDescription
OperationsClient

CreateInputOperationsClient

public virtual OperationsClient CreateInputOperationsClient { get; }

The long-running operations client for CreateInput.

Property Value
TypeDescription
OperationsClient

DefaultEndpoint

public static string DefaultEndpoint { get; }

The default endpoint for the LivestreamService service, which is a host of "livestream.googleapis.com" and a port of 443.

Property Value
TypeDescription
string

DefaultScopes

public static IReadOnlyList<string> DefaultScopes { get; }

The default LivestreamService scopes.

Property Value
TypeDescription
IReadOnlyListstring
Remarks

The default LivestreamService scopes are:

DeleteChannelOperationsClient

public virtual OperationsClient DeleteChannelOperationsClient { get; }

The long-running operations client for DeleteChannel.

Property Value
TypeDescription
OperationsClient

DeleteInputOperationsClient

public virtual OperationsClient DeleteInputOperationsClient { get; }

The long-running operations client for DeleteInput.

Property Value
TypeDescription
OperationsClient

GrpcClient

public virtual LivestreamService.LivestreamServiceClient GrpcClient { get; }

The underlying gRPC LivestreamService client

Property Value
TypeDescription
LivestreamServiceLivestreamServiceClient

LocationsClient

public virtual LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
TypeDescription
LocationsClient

ServiceMetadata

public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

Property Value
TypeDescription
ServiceMetadata

StartChannelOperationsClient

public virtual OperationsClient StartChannelOperationsClient { get; }

The long-running operations client for StartChannel.

Property Value
TypeDescription
OperationsClient

StopChannelOperationsClient

public virtual OperationsClient StopChannelOperationsClient { get; }

The long-running operations client for StopChannel.

Property Value
TypeDescription
OperationsClient

UpdateChannelOperationsClient

public virtual OperationsClient UpdateChannelOperationsClient { get; }

The long-running operations client for UpdateChannel.

Property Value
TypeDescription
OperationsClient

UpdateInputOperationsClient

public virtual OperationsClient UpdateInputOperationsClient { get; }

The long-running operations client for UpdateInput.

Property Value
TypeDescription
OperationsClient

Methods

Create()

public static LivestreamServiceClient Create()

Synchronously creates a LivestreamServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use LivestreamServiceClientBuilder.

Returns
TypeDescription
LivestreamServiceClient

The created LivestreamServiceClient.

CreateAsync(CancellationToken)

public static Task<LivestreamServiceClient> CreateAsync(CancellationToken cancellationToken = default)

Asynchronously creates a LivestreamServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use LivestreamServiceClientBuilder.

Parameter
NameDescription
cancellationTokenCancellationToken

The CancellationToken to use while creating the client.

Returns
TypeDescription
TaskLivestreamServiceClient

The task representing the created LivestreamServiceClient.

CreateChannel(LocationName, Channel, string, CallSettings)

public virtual Operation<Channel, OperationMetadata> CreateChannel(LocationName parent, Channel channel, string channelId, CallSettings callSettings = null)

Creates a channel with the provided unique ID in the specified region.

Parameters
NameDescription
parentLocationName

Required. The parent location for the resource, in the form of: projects/{project}/locations/{location}.

channelChannel

Required. The channel resource to be created.

channelIdstring

Required. The ID of the channel resource to be created. This value must be 1-63 characters, begin and end with [a-z0-9], could contain dashes (-) in between.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationChannelOperationMetadata

The RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Channel channel = new Channel();
string channelId = "";
// Make the request
Operation<Channel, OperationMetadata> response = livestreamServiceClient.CreateChannel(parent, channel, channelId);

// Poll until the returned long-running operation is complete
Operation<Channel, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Channel result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Channel, OperationMetadata> retrievedResponse = livestreamServiceClient.PollOnceCreateChannel(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Channel retrievedResult = retrievedResponse.Result;
}

CreateChannel(CreateChannelRequest, CallSettings)

public virtual Operation<Channel, OperationMetadata> CreateChannel(CreateChannelRequest request, CallSettings callSettings = null)

Creates a channel with the provided unique ID in the specified region.

Parameters
NameDescription
requestCreateChannelRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationChannelOperationMetadata

The RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.Create();
// Initialize request argument(s)
CreateChannelRequest request = new CreateChannelRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Channel = new Channel(),
    ChannelId = "",
    RequestId = "",
};
// Make the request
Operation<Channel, OperationMetadata> response = livestreamServiceClient.CreateChannel(request);

// Poll until the returned long-running operation is complete
Operation<Channel, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Channel result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Channel, OperationMetadata> retrievedResponse = livestreamServiceClient.PollOnceCreateChannel(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Channel retrievedResult = retrievedResponse.Result;
}

CreateChannel(string, Channel, string, CallSettings)

public virtual Operation<Channel, OperationMetadata> CreateChannel(string parent, Channel channel, string channelId, CallSettings callSettings = null)

Creates a channel with the provided unique ID in the specified region.

Parameters
NameDescription
parentstring

Required. The parent location for the resource, in the form of: projects/{project}/locations/{location}.

channelChannel

Required. The channel resource to be created.

channelIdstring

Required. The ID of the channel resource to be created. This value must be 1-63 characters, begin and end with [a-z0-9], could contain dashes (-) in between.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationChannelOperationMetadata

The RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Channel channel = new Channel();
string channelId = "";
// Make the request
Operation<Channel, OperationMetadata> response = livestreamServiceClient.CreateChannel(parent, channel, channelId);

// Poll until the returned long-running operation is complete
Operation<Channel, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Channel result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Channel, OperationMetadata> retrievedResponse = livestreamServiceClient.PollOnceCreateChannel(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Channel retrievedResult = retrievedResponse.Result;
}

CreateChannelAsync(LocationName, Channel, string, CallSettings)

public virtual Task<Operation<Channel, OperationMetadata>> CreateChannelAsync(LocationName parent, Channel channel, string channelId, CallSettings callSettings = null)

Creates a channel with the provided unique ID in the specified region.

Parameters
NameDescription
parentLocationName

Required. The parent location for the resource, in the form of: projects/{project}/locations/{location}.

channelChannel

Required. The channel resource to be created.

channelIdstring

Required. The ID of the channel resource to be created. This value must be 1-63 characters, begin and end with [a-z0-9], could contain dashes (-) in between.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationChannelOperationMetadata

A Task containing the RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Channel channel = new Channel();
string channelId = "";
// Make the request
Operation<Channel, OperationMetadata> response = await livestreamServiceClient.CreateChannelAsync(parent, channel, channelId);

// Poll until the returned long-running operation is complete
Operation<Channel, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Channel result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Channel, OperationMetadata> retrievedResponse = await livestreamServiceClient.PollOnceCreateChannelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Channel retrievedResult = retrievedResponse.Result;
}

CreateChannelAsync(LocationName, Channel, string, CancellationToken)

public virtual Task<Operation<Channel, OperationMetadata>> CreateChannelAsync(LocationName parent, Channel channel, string channelId, CancellationToken cancellationToken)

Creates a channel with the provided unique ID in the specified region.

Parameters
NameDescription
parentLocationName

Required. The parent location for the resource, in the form of: projects/{project}/locations/{location}.

channelChannel

Required. The channel resource to be created.

channelIdstring

Required. The ID of the channel resource to be created. This value must be 1-63 characters, begin and end with [a-z0-9], could contain dashes (-) in between.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationChannelOperationMetadata

A Task containing the RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Channel channel = new Channel();
string channelId = "";
// Make the request
Operation<Channel, OperationMetadata> response = await livestreamServiceClient.CreateChannelAsync(parent, channel, channelId);

// Poll until the returned long-running operation is complete
Operation<Channel, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Channel result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Channel, OperationMetadata> retrievedResponse = await livestreamServiceClient.PollOnceCreateChannelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Channel retrievedResult = retrievedResponse.Result;
}

CreateChannelAsync(CreateChannelRequest, CallSettings)

public virtual Task<Operation<Channel, OperationMetadata>> CreateChannelAsync(CreateChannelRequest request, CallSettings callSettings = null)

Creates a channel with the provided unique ID in the specified region.

Parameters
NameDescription
requestCreateChannelRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationChannelOperationMetadata

A Task containing the RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
CreateChannelRequest request = new CreateChannelRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Channel = new Channel(),
    ChannelId = "",
    RequestId = "",
};
// Make the request
Operation<Channel, OperationMetadata> response = await livestreamServiceClient.CreateChannelAsync(request);

// Poll until the returned long-running operation is complete
Operation<Channel, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Channel result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Channel, OperationMetadata> retrievedResponse = await livestreamServiceClient.PollOnceCreateChannelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Channel retrievedResult = retrievedResponse.Result;
}

CreateChannelAsync(CreateChannelRequest, CancellationToken)

public virtual Task<Operation<Channel, OperationMetadata>> CreateChannelAsync(CreateChannelRequest request, CancellationToken cancellationToken)

Creates a channel with the provided unique ID in the specified region.

Parameters
NameDescription
requestCreateChannelRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationChannelOperationMetadata

A Task containing the RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
CreateChannelRequest request = new CreateChannelRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Channel = new Channel(),
    ChannelId = "",
    RequestId = "",
};
// Make the request
Operation<Channel, OperationMetadata> response = await livestreamServiceClient.CreateChannelAsync(request);

// Poll until the returned long-running operation is complete
Operation<Channel, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Channel result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Channel, OperationMetadata> retrievedResponse = await livestreamServiceClient.PollOnceCreateChannelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Channel retrievedResult = retrievedResponse.Result;
}

CreateChannelAsync(string, Channel, string, CallSettings)

public virtual Task<Operation<Channel, OperationMetadata>> CreateChannelAsync(string parent, Channel channel, string channelId, CallSettings callSettings = null)

Creates a channel with the provided unique ID in the specified region.

Parameters
NameDescription
parentstring

Required. The parent location for the resource, in the form of: projects/{project}/locations/{location}.

channelChannel

Required. The channel resource to be created.

channelIdstring

Required. The ID of the channel resource to be created. This value must be 1-63 characters, begin and end with [a-z0-9], could contain dashes (-) in between.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationChannelOperationMetadata

A Task containing the RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Channel channel = new Channel();
string channelId = "";
// Make the request
Operation<Channel, OperationMetadata> response = await livestreamServiceClient.CreateChannelAsync(parent, channel, channelId);

// Poll until the returned long-running operation is complete
Operation<Channel, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Channel result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Channel, OperationMetadata> retrievedResponse = await livestreamServiceClient.PollOnceCreateChannelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Channel retrievedResult = retrievedResponse.Result;
}

CreateChannelAsync(string, Channel, string, CancellationToken)

public virtual Task<Operation<Channel, OperationMetadata>> CreateChannelAsync(string parent, Channel channel, string channelId, CancellationToken cancellationToken)

Creates a channel with the provided unique ID in the specified region.

Parameters
NameDescription
parentstring

Required. The parent location for the resource, in the form of: projects/{project}/locations/{location}.

channelChannel

Required. The channel resource to be created.

channelIdstring

Required. The ID of the channel resource to be created. This value must be 1-63 characters, begin and end with [a-z0-9], could contain dashes (-) in between.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationChannelOperationMetadata

A Task containing the RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Channel channel = new Channel();
string channelId = "";
// Make the request
Operation<Channel, OperationMetadata> response = await livestreamServiceClient.CreateChannelAsync(parent, channel, channelId);

// Poll until the returned long-running operation is complete
Operation<Channel, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Channel result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Channel, OperationMetadata> retrievedResponse = await livestreamServiceClient.PollOnceCreateChannelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Channel retrievedResult = retrievedResponse.Result;
}

CreateEvent(ChannelName, Event, string, CallSettings)

public virtual Event CreateEvent(ChannelName parent, Event @event, string eventId, CallSettings callSettings = null)

Creates an event with the provided unique ID in the specified channel.

Parameters
NameDescription
parentChannelName

Required. The parent channel for the resource, in the form of: projects/{project}/locations/{location}/channels/{channelId}.

eventEvent

Required. The event resource to be created.

eventIdstring

Required. The ID of the event resource to be created. This value must be 1-63 characters, begin and end with [a-z0-9], could contain dashes (-) in between.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Event

The RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.Create();
// Initialize request argument(s)
ChannelName parent = ChannelName.FromProjectLocationChannel("[PROJECT]", "[LOCATION]", "[CHANNEL]");
Event @event = new Event();
string eventId = "";
// Make the request
Event response = livestreamServiceClient.CreateEvent(parent, @event, eventId);

CreateEvent(CreateEventRequest, CallSettings)

public virtual Event CreateEvent(CreateEventRequest request, CallSettings callSettings = null)

Creates an event with the provided unique ID in the specified channel.

Parameters
NameDescription
requestCreateEventRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Event

The RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.Create();
// Initialize request argument(s)
CreateEventRequest request = new CreateEventRequest
{
    ParentAsChannelName = ChannelName.FromProjectLocationChannel("[PROJECT]", "[LOCATION]", "[CHANNEL]"),
    Event = new Event(),
    EventId = "",
    RequestId = "",
};
// Make the request
Event response = livestreamServiceClient.CreateEvent(request);

CreateEvent(string, Event, string, CallSettings)

public virtual Event CreateEvent(string parent, Event @event, string eventId, CallSettings callSettings = null)

Creates an event with the provided unique ID in the specified channel.

Parameters
NameDescription
parentstring

Required. The parent channel for the resource, in the form of: projects/{project}/locations/{location}/channels/{channelId}.

eventEvent

Required. The event resource to be created.

eventIdstring

Required. The ID of the event resource to be created. This value must be 1-63 characters, begin and end with [a-z0-9], could contain dashes (-) in between.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Event

The RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/channels/[CHANNEL]";
Event @event = new Event();
string eventId = "";
// Make the request
Event response = livestreamServiceClient.CreateEvent(parent, @event, eventId);

CreateEventAsync(ChannelName, Event, string, CallSettings)

public virtual Task<Event> CreateEventAsync(ChannelName parent, Event @event, string eventId, CallSettings callSettings = null)

Creates an event with the provided unique ID in the specified channel.

Parameters
NameDescription
parentChannelName

Required. The parent channel for the resource, in the form of: projects/{project}/locations/{location}/channels/{channelId}.

eventEvent

Required. The event resource to be created.

eventIdstring

Required. The ID of the event resource to be created. This value must be 1-63 characters, begin and end with [a-z0-9], could contain dashes (-) in between.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskEvent

A Task containing the RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
ChannelName parent = ChannelName.FromProjectLocationChannel("[PROJECT]", "[LOCATION]", "[CHANNEL]");
Event @event = new Event();
string eventId = "";
// Make the request
Event response = await livestreamServiceClient.CreateEventAsync(parent, @event, eventId);

CreateEventAsync(ChannelName, Event, string, CancellationToken)

public virtual Task<Event> CreateEventAsync(ChannelName parent, Event @event, string eventId, CancellationToken cancellationToken)

Creates an event with the provided unique ID in the specified channel.

Parameters
NameDescription
parentChannelName

Required. The parent channel for the resource, in the form of: projects/{project}/locations/{location}/channels/{channelId}.

eventEvent

Required. The event resource to be created.

eventIdstring

Required. The ID of the event resource to be created. This value must be 1-63 characters, begin and end with [a-z0-9], could contain dashes (-) in between.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskEvent

A Task containing the RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
ChannelName parent = ChannelName.FromProjectLocationChannel("[PROJECT]", "[LOCATION]", "[CHANNEL]");
Event @event = new Event();
string eventId = "";
// Make the request
Event response = await livestreamServiceClient.CreateEventAsync(parent, @event, eventId);

CreateEventAsync(CreateEventRequest, CallSettings)

public virtual Task<Event> CreateEventAsync(CreateEventRequest request, CallSettings callSettings = null)

Creates an event with the provided unique ID in the specified channel.

Parameters
NameDescription
requestCreateEventRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskEvent

A Task containing the RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
CreateEventRequest request = new CreateEventRequest
{
    ParentAsChannelName = ChannelName.FromProjectLocationChannel("[PROJECT]", "[LOCATION]", "[CHANNEL]"),
    Event = new Event(),
    EventId = "",
    RequestId = "",
};
// Make the request
Event response = await livestreamServiceClient.CreateEventAsync(request);

CreateEventAsync(CreateEventRequest, CancellationToken)

public virtual Task<Event> CreateEventAsync(CreateEventRequest request, CancellationToken cancellationToken)

Creates an event with the provided unique ID in the specified channel.

Parameters
NameDescription
requestCreateEventRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskEvent

A Task containing the RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
CreateEventRequest request = new CreateEventRequest
{
    ParentAsChannelName = ChannelName.FromProjectLocationChannel("[PROJECT]", "[LOCATION]", "[CHANNEL]"),
    Event = new Event(),
    EventId = "",
    RequestId = "",
};
// Make the request
Event response = await livestreamServiceClient.CreateEventAsync(request);

CreateEventAsync(string, Event, string, CallSettings)

public virtual Task<Event> CreateEventAsync(string parent, Event @event, string eventId, CallSettings callSettings = null)

Creates an event with the provided unique ID in the specified channel.

Parameters
NameDescription
parentstring

Required. The parent channel for the resource, in the form of: projects/{project}/locations/{location}/channels/{channelId}.

eventEvent

Required. The event resource to be created.

eventIdstring

Required. The ID of the event resource to be created. This value must be 1-63 characters, begin and end with [a-z0-9], could contain dashes (-) in between.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskEvent

A Task containing the RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/channels/[CHANNEL]";
Event @event = new Event();
string eventId = "";
// Make the request
Event response = await livestreamServiceClient.CreateEventAsync(parent, @event, eventId);

CreateEventAsync(string, Event, string, CancellationToken)

public virtual Task<Event> CreateEventAsync(string parent, Event @event, string eventId, CancellationToken cancellationToken)

Creates an event with the provided unique ID in the specified channel.

Parameters
NameDescription
parentstring

Required. The parent channel for the resource, in the form of: projects/{project}/locations/{location}/channels/{channelId}.

eventEvent

Required. The event resource to be created.

eventIdstring

Required. The ID of the event resource to be created. This value must be 1-63 characters, begin and end with [a-z0-9], could contain dashes (-) in between.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskEvent

A Task containing the RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/channels/[CHANNEL]";
Event @event = new Event();
string eventId = "";
// Make the request
Event response = await livestreamServiceClient.CreateEventAsync(parent, @event, eventId);

CreateInput(LocationName, Input, string, CallSettings)

public virtual Operation<Input, OperationMetadata> CreateInput(LocationName parent, Input input, string inputId, CallSettings callSettings = null)

Creates an input with the provided unique ID in the specified region.

Parameters
NameDescription
parentLocationName

Required. The parent location for the resource, in the form of: projects/{project}/locations/{location}.

inputInput

Required. The input resource to be created.

inputIdstring

Required. The ID of the input resource to be created. This value must be 1-63 characters, begin and end with [a-z0-9], could contain dashes (-) in between.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationInputOperationMetadata

The RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Input input = new Input();
string inputId = "";
// Make the request
Operation<Input, OperationMetadata> response = livestreamServiceClient.CreateInput(parent, input, inputId);

// Poll until the returned long-running operation is complete
Operation<Input, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Input result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Input, OperationMetadata> retrievedResponse = livestreamServiceClient.PollOnceCreateInput(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Input retrievedResult = retrievedResponse.Result;
}

CreateInput(CreateInputRequest, CallSettings)

public virtual Operation<Input, OperationMetadata> CreateInput(CreateInputRequest request, CallSettings callSettings = null)

Creates an input with the provided unique ID in the specified region.

Parameters
NameDescription
requestCreateInputRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationInputOperationMetadata

The RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.Create();
// Initialize request argument(s)
CreateInputRequest request = new CreateInputRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Input = new Input(),
    InputId = "",
    RequestId = "",
};
// Make the request
Operation<Input, OperationMetadata> response = livestreamServiceClient.CreateInput(request);

// Poll until the returned long-running operation is complete
Operation<Input, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Input result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Input, OperationMetadata> retrievedResponse = livestreamServiceClient.PollOnceCreateInput(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Input retrievedResult = retrievedResponse.Result;
}

CreateInput(string, Input, string, CallSettings)

public virtual Operation<Input, OperationMetadata> CreateInput(string parent, Input input, string inputId, CallSettings callSettings = null)

Creates an input with the provided unique ID in the specified region.

Parameters
NameDescription
parentstring

Required. The parent location for the resource, in the form of: projects/{project}/locations/{location}.

inputInput

Required. The input resource to be created.

inputIdstring

Required. The ID of the input resource to be created. This value must be 1-63 characters, begin and end with [a-z0-9], could contain dashes (-) in between.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationInputOperationMetadata

The RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Input input = new Input();
string inputId = "";
// Make the request
Operation<Input, OperationMetadata> response = livestreamServiceClient.CreateInput(parent, input, inputId);

// Poll until the returned long-running operation is complete
Operation<Input, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Input result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Input, OperationMetadata> retrievedResponse = livestreamServiceClient.PollOnceCreateInput(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Input retrievedResult = retrievedResponse.Result;
}

CreateInputAsync(LocationName, Input, string, CallSettings)

public virtual Task<Operation<Input, OperationMetadata>> CreateInputAsync(LocationName parent, Input input, string inputId, CallSettings callSettings = null)

Creates an input with the provided unique ID in the specified region.

Parameters
NameDescription
parentLocationName

Required. The parent location for the resource, in the form of: projects/{project}/locations/{location}.

inputInput

Required. The input resource to be created.

inputIdstring

Required. The ID of the input resource to be created. This value must be 1-63 characters, begin and end with [a-z0-9], could contain dashes (-) in between.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationInputOperationMetadata

A Task containing the RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Input input = new Input();
string inputId = "";
// Make the request
Operation<Input, OperationMetadata> response = await livestreamServiceClient.CreateInputAsync(parent, input, inputId);

// Poll until the returned long-running operation is complete
Operation<Input, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Input result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Input, OperationMetadata> retrievedResponse = await livestreamServiceClient.PollOnceCreateInputAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Input retrievedResult = retrievedResponse.Result;
}

CreateInputAsync(LocationName, Input, string, CancellationToken)

public virtual Task<Operation<Input, OperationMetadata>> CreateInputAsync(LocationName parent, Input input, string inputId, CancellationToken cancellationToken)

Creates an input with the provided unique ID in the specified region.

Parameters
NameDescription
parentLocationName

Required. The parent location for the resource, in the form of: projects/{project}/locations/{location}.

inputInput

Required. The input resource to be created.

inputIdstring

Required. The ID of the input resource to be created. This value must be 1-63 characters, begin and end with [a-z0-9], could contain dashes (-) in between.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationInputOperationMetadata

A Task containing the RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Input input = new Input();
string inputId = "";
// Make the request
Operation<Input, OperationMetadata> response = await livestreamServiceClient.CreateInputAsync(parent, input, inputId);

// Poll until the returned long-running operation is complete
Operation<Input, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Input result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Input, OperationMetadata> retrievedResponse = await livestreamServiceClient.PollOnceCreateInputAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Input retrievedResult = retrievedResponse.Result;
}

CreateInputAsync(CreateInputRequest, CallSettings)

public virtual Task<Operation<Input, OperationMetadata>> CreateInputAsync(CreateInputRequest request, CallSettings callSettings = null)

Creates an input with the provided unique ID in the specified region.

Parameters
NameDescription
requestCreateInputRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationInputOperationMetadata

A Task containing the RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
CreateInputRequest request = new CreateInputRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Input = new Input(),
    InputId = "",
    RequestId = "",
};
// Make the request
Operation<Input, OperationMetadata> response = await livestreamServiceClient.CreateInputAsync(request);

// Poll until the returned long-running operation is complete
Operation<Input, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Input result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Input, OperationMetadata> retrievedResponse = await livestreamServiceClient.PollOnceCreateInputAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Input retrievedResult = retrievedResponse.Result;
}

CreateInputAsync(CreateInputRequest, CancellationToken)

public virtual Task<Operation<Input, OperationMetadata>> CreateInputAsync(CreateInputRequest request, CancellationToken cancellationToken)

Creates an input with the provided unique ID in the specified region.

Parameters
NameDescription
requestCreateInputRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationInputOperationMetadata

A Task containing the RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
CreateInputRequest request = new CreateInputRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Input = new Input(),
    InputId = "",
    RequestId = "",
};
// Make the request
Operation<Input, OperationMetadata> response = await livestreamServiceClient.CreateInputAsync(request);

// Poll until the returned long-running operation is complete
Operation<Input, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Input result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Input, OperationMetadata> retrievedResponse = await livestreamServiceClient.PollOnceCreateInputAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Input retrievedResult = retrievedResponse.Result;
}

CreateInputAsync(string, Input, string, CallSettings)

public virtual Task<Operation<Input, OperationMetadata>> CreateInputAsync(string parent, Input input, string inputId, CallSettings callSettings = null)

Creates an input with the provided unique ID in the specified region.

Parameters
NameDescription
parentstring

Required. The parent location for the resource, in the form of: projects/{project}/locations/{location}.

inputInput

Required. The input resource to be created.

inputIdstring

Required. The ID of the input resource to be created. This value must be 1-63 characters, begin and end with [a-z0-9], could contain dashes (-) in between.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationInputOperationMetadata

A Task containing the RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Input input = new Input();
string inputId = "";
// Make the request
Operation<Input, OperationMetadata> response = await livestreamServiceClient.CreateInputAsync(parent, input, inputId);

// Poll until the returned long-running operation is complete
Operation<Input, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Input result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Input, OperationMetadata> retrievedResponse = await livestreamServiceClient.PollOnceCreateInputAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Input retrievedResult = retrievedResponse.Result;
}

CreateInputAsync(string, Input, string, CancellationToken)

public virtual Task<Operation<Input, OperationMetadata>> CreateInputAsync(string parent, Input input, string inputId, CancellationToken cancellationToken)

Creates an input with the provided unique ID in the specified region.

Parameters
NameDescription
parentstring

Required. The parent location for the resource, in the form of: projects/{project}/locations/{location}.

inputInput

Required. The input resource to be created.

inputIdstring

Required. The ID of the input resource to be created. This value must be 1-63 characters, begin and end with [a-z0-9], could contain dashes (-) in between.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationInputOperationMetadata

A Task containing the RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Input input = new Input();
string inputId = "";
// Make the request
Operation<Input, OperationMetadata> response = await livestreamServiceClient.CreateInputAsync(parent, input, inputId);

// Poll until the returned long-running operation is complete
Operation<Input, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Input result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Input, OperationMetadata> retrievedResponse = await livestreamServiceClient.PollOnceCreateInputAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Input retrievedResult = retrievedResponse.Result;
}

DeleteChannel(ChannelName, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteChannel(ChannelName name, CallSettings callSettings = null)

Deletes the specified channel.

Parameters
NameDescription
nameChannelName

Required. The name of the channel resource, in the form of: projects/{project}/locations/{location}/channels/{channelId}.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.Create();
// Initialize request argument(s)
ChannelName name = ChannelName.FromProjectLocationChannel("[PROJECT]", "[LOCATION]", "[CHANNEL]");
// Make the request
Operation<Empty, OperationMetadata> response = livestreamServiceClient.DeleteChannel(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = livestreamServiceClient.PollOnceDeleteChannel(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteChannel(DeleteChannelRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteChannel(DeleteChannelRequest request, CallSettings callSettings = null)

Deletes the specified channel.

Parameters
NameDescription
requestDeleteChannelRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.Create();
// Initialize request argument(s)
DeleteChannelRequest request = new DeleteChannelRequest
{
    ChannelName = ChannelName.FromProjectLocationChannel("[PROJECT]", "[LOCATION]", "[CHANNEL]"),
    RequestId = "",
    Force = false,
};
// Make the request
Operation<Empty, OperationMetadata> response = livestreamServiceClient.DeleteChannel(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = livestreamServiceClient.PollOnceDeleteChannel(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteChannel(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteChannel(string name, CallSettings callSettings = null)

Deletes the specified channel.

Parameters
NameDescription
namestring

Required. The name of the channel resource, in the form of: projects/{project}/locations/{location}/channels/{channelId}.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/channels/[CHANNEL]";
// Make the request
Operation<Empty, OperationMetadata> response = livestreamServiceClient.DeleteChannel(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = livestreamServiceClient.PollOnceDeleteChannel(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteChannelAsync(ChannelName, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteChannelAsync(ChannelName name, CallSettings callSettings = null)

Deletes the specified channel.

Parameters
NameDescription
nameChannelName

Required. The name of the channel resource, in the form of: projects/{project}/locations/{location}/channels/{channelId}.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
ChannelName name = ChannelName.FromProjectLocationChannel("[PROJECT]", "[LOCATION]", "[CHANNEL]");
// Make the request
Operation<Empty, OperationMetadata> response = await livestreamServiceClient.DeleteChannelAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await livestreamServiceClient.PollOnceDeleteChannelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteChannelAsync(ChannelName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteChannelAsync(ChannelName name, CancellationToken cancellationToken)

Deletes the specified channel.

Parameters
NameDescription
nameChannelName

Required. The name of the channel resource, in the form of: projects/{project}/locations/{location}/channels/{channelId}.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
ChannelName name = ChannelName.FromProjectLocationChannel("[PROJECT]", "[LOCATION]", "[CHANNEL]");
// Make the request
Operation<Empty, OperationMetadata> response = await livestreamServiceClient.DeleteChannelAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await livestreamServiceClient.PollOnceDeleteChannelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteChannelAsync(DeleteChannelRequest, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteChannelAsync(DeleteChannelRequest request, CallSettings callSettings = null)

Deletes the specified channel.

Parameters
NameDescription
requestDeleteChannelRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteChannelRequest request = new DeleteChannelRequest
{
    ChannelName = ChannelName.FromProjectLocationChannel("[PROJECT]", "[LOCATION]", "[CHANNEL]"),
    RequestId = "",
    Force = false,
};
// Make the request
Operation<Empty, OperationMetadata> response = await livestreamServiceClient.DeleteChannelAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await livestreamServiceClient.PollOnceDeleteChannelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteChannelAsync(DeleteChannelRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteChannelAsync(DeleteChannelRequest request, CancellationToken cancellationToken)

Deletes the specified channel.

Parameters
NameDescription
requestDeleteChannelRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteChannelRequest request = new DeleteChannelRequest
{
    ChannelName = ChannelName.FromProjectLocationChannel("[PROJECT]", "[LOCATION]", "[CHANNEL]"),
    RequestId = "",
    Force = false,
};
// Make the request
Operation<Empty, OperationMetadata> response = await livestreamServiceClient.DeleteChannelAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await livestreamServiceClient.PollOnceDeleteChannelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteChannelAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteChannelAsync(string name, CallSettings callSettings = null)

Deletes the specified channel.

Parameters
NameDescription
namestring

Required. The name of the channel resource, in the form of: projects/{project}/locations/{location}/channels/{channelId}.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/channels/[CHANNEL]";
// Make the request
Operation<Empty, OperationMetadata> response = await livestreamServiceClient.DeleteChannelAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await livestreamServiceClient.PollOnceDeleteChannelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteChannelAsync(string, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteChannelAsync(string name, CancellationToken cancellationToken)

Deletes the specified channel.

Parameters
NameDescription
namestring

Required. The name of the channel resource, in the form of: projects/{project}/locations/{location}/channels/{channelId}.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/channels/[CHANNEL]";
// Make the request
Operation<Empty, OperationMetadata> response = await livestreamServiceClient.DeleteChannelAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await livestreamServiceClient.PollOnceDeleteChannelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteEvent(DeleteEventRequest, CallSettings)

public virtual void DeleteEvent(DeleteEventRequest request, CallSettings callSettings = null)

Deletes the specified event.

Parameters
NameDescription
requestDeleteEventRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.Create();
// Initialize request argument(s)
DeleteEventRequest request = new DeleteEventRequest
{
    EventName = EventName.FromProjectLocationChannelEvent("[PROJECT]", "[LOCATION]", "[CHANNEL]", "[EVENT]"),
    RequestId = "",
};
// Make the request
livestreamServiceClient.DeleteEvent(request);

DeleteEvent(EventName, CallSettings)

public virtual void DeleteEvent(EventName name, CallSettings callSettings = null)

Deletes the specified event.

Parameters
NameDescription
nameEventName

Required. The name of the event resource, in the form of: projects/{project}/locations/{location}/channels/{channelId}/events/{eventId}.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.Create();
// Initialize request argument(s)
EventName name = EventName.FromProjectLocationChannelEvent("[PROJECT]", "[LOCATION]", "[CHANNEL]", "[EVENT]");
// Make the request
livestreamServiceClient.DeleteEvent(name);

DeleteEvent(string, CallSettings)

public virtual void DeleteEvent(string name, CallSettings callSettings = null)

Deletes the specified event.

Parameters
NameDescription
namestring

Required. The name of the event resource, in the form of: projects/{project}/locations/{location}/channels/{channelId}/events/{eventId}.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/channels/[CHANNEL]/events/[EVENT]";
// Make the request
livestreamServiceClient.DeleteEvent(name);

DeleteEventAsync(DeleteEventRequest, CallSettings)

public virtual Task DeleteEventAsync(DeleteEventRequest request, CallSettings callSettings = null)

Deletes the specified event.

Parameters
NameDescription
requestDeleteEventRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteEventRequest request = new DeleteEventRequest
{
    EventName = EventName.FromProjectLocationChannelEvent("[PROJECT]", "[LOCATION]", "[CHANNEL]", "[EVENT]"),
    RequestId = "",
};
// Make the request
await livestreamServiceClient.DeleteEventAsync(request);

DeleteEventAsync(DeleteEventRequest, CancellationToken)

public virtual Task DeleteEventAsync(DeleteEventRequest request, CancellationToken cancellationToken)

Deletes the specified event.

Parameters
NameDescription
requestDeleteEventRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteEventRequest request = new DeleteEventRequest
{
    EventName = EventName.FromProjectLocationChannelEvent("[PROJECT]", "[LOCATION]", "[CHANNEL]", "[EVENT]"),
    RequestId = "",
};
// Make the request
await livestreamServiceClient.DeleteEventAsync(request);

DeleteEventAsync(EventName, CallSettings)

public virtual Task DeleteEventAsync(EventName name, CallSettings callSettings = null)

Deletes the specified event.

Parameters
NameDescription
nameEventName

Required. The name of the event resource, in the form of: projects/{project}/locations/{location}/channels/{channelId}/events/{eventId}.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
EventName name = EventName.FromProjectLocationChannelEvent("[PROJECT]", "[LOCATION]", "[CHANNEL]", "[EVENT]");
// Make the request
await livestreamServiceClient.DeleteEventAsync(name);

DeleteEventAsync(EventName, CancellationToken)

public virtual Task DeleteEventAsync(EventName name, CancellationToken cancellationToken)

Deletes the specified event.

Parameters
NameDescription
nameEventName

Required. The name of the event resource, in the form of: projects/{project}/locations/{location}/channels/{channelId}/events/{eventId}.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
EventName name = EventName.FromProjectLocationChannelEvent("[PROJECT]", "[LOCATION]", "[CHANNEL]", "[EVENT]");
// Make the request
await livestreamServiceClient.DeleteEventAsync(name);

DeleteEventAsync(string, CallSettings)

public virtual Task DeleteEventAsync(string name, CallSettings callSettings = null)

Deletes the specified event.

Parameters
NameDescription
namestring

Required. The name of the event resource, in the form of: projects/{project}/locations/{location}/channels/{channelId}/events/{eventId}.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/channels/[CHANNEL]/events/[EVENT]";
// Make the request
await livestreamServiceClient.DeleteEventAsync(name);

DeleteEventAsync(string, CancellationToken)

public virtual Task DeleteEventAsync(string name, CancellationToken cancellationToken)

Deletes the specified event.

Parameters
NameDescription
namestring

Required. The name of the event resource, in the form of: projects/{project}/locations/{location}/channels/{channelId}/events/{eventId}.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/channels/[CHANNEL]/events/[EVENT]";
// Make the request
await livestreamServiceClient.DeleteEventAsync(name);

DeleteInput(DeleteInputRequest, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteInput(DeleteInputRequest request, CallSettings callSettings = null)

Deletes the specified input.

Parameters
NameDescription
requestDeleteInputRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.Create();
// Initialize request argument(s)
DeleteInputRequest request = new DeleteInputRequest
{
    InputName = InputName.FromProjectLocationInput("[PROJECT]", "[LOCATION]", "[INPUT]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = livestreamServiceClient.DeleteInput(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = livestreamServiceClient.PollOnceDeleteInput(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteInput(InputName, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteInput(InputName name, CallSettings callSettings = null)

Deletes the specified input.

Parameters
NameDescription
nameInputName

Required. The name of the input resource, in the form of: projects/{project}/locations/{location}/inputs/{inputId}.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.Create();
// Initialize request argument(s)
InputName name = InputName.FromProjectLocationInput("[PROJECT]", "[LOCATION]", "[INPUT]");
// Make the request
Operation<Empty, OperationMetadata> response = livestreamServiceClient.DeleteInput(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = livestreamServiceClient.PollOnceDeleteInput(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteInput(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> DeleteInput(string name, CallSettings callSettings = null)

Deletes the specified input.

Parameters
NameDescription
namestring

Required. The name of the input resource, in the form of: projects/{project}/locations/{location}/inputs/{inputId}.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/inputs/[INPUT]";
// Make the request
Operation<Empty, OperationMetadata> response = livestreamServiceClient.DeleteInput(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = livestreamServiceClient.PollOnceDeleteInput(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteInputAsync(DeleteInputRequest, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteInputAsync(DeleteInputRequest request, CallSettings callSettings = null)

Deletes the specified input.

Parameters
NameDescription
requestDeleteInputRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteInputRequest request = new DeleteInputRequest
{
    InputName = InputName.FromProjectLocationInput("[PROJECT]", "[LOCATION]", "[INPUT]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await livestreamServiceClient.DeleteInputAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await livestreamServiceClient.PollOnceDeleteInputAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteInputAsync(DeleteInputRequest, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteInputAsync(DeleteInputRequest request, CancellationToken cancellationToken)

Deletes the specified input.

Parameters
NameDescription
requestDeleteInputRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteInputRequest request = new DeleteInputRequest
{
    InputName = InputName.FromProjectLocationInput("[PROJECT]", "[LOCATION]", "[INPUT]"),
    RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await livestreamServiceClient.DeleteInputAsync(request);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await livestreamServiceClient.PollOnceDeleteInputAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteInputAsync(InputName, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteInputAsync(InputName name, CallSettings callSettings = null)

Deletes the specified input.

Parameters
NameDescription
nameInputName

Required. The name of the input resource, in the form of: projects/{project}/locations/{location}/inputs/{inputId}.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
InputName name = InputName.FromProjectLocationInput("[PROJECT]", "[LOCATION]", "[INPUT]");
// Make the request
Operation<Empty, OperationMetadata> response = await livestreamServiceClient.DeleteInputAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await livestreamServiceClient.PollOnceDeleteInputAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteInputAsync(InputName, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteInputAsync(InputName name, CancellationToken cancellationToken)

Deletes the specified input.

Parameters
NameDescription
nameInputName

Required. The name of the input resource, in the form of: projects/{project}/locations/{location}/inputs/{inputId}.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
InputName name = InputName.FromProjectLocationInput("[PROJECT]", "[LOCATION]", "[INPUT]");
// Make the request
Operation<Empty, OperationMetadata> response = await livestreamServiceClient.DeleteInputAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await livestreamServiceClient.PollOnceDeleteInputAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteInputAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteInputAsync(string name, CallSettings callSettings = null)

Deletes the specified input.

Parameters
NameDescription
namestring

Required. The name of the input resource, in the form of: projects/{project}/locations/{location}/inputs/{inputId}.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/inputs/[INPUT]";
// Make the request
Operation<Empty, OperationMetadata> response = await livestreamServiceClient.DeleteInputAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await livestreamServiceClient.PollOnceDeleteInputAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

DeleteInputAsync(string, CancellationToken)

public virtual Task<Operation<Empty, OperationMetadata>> DeleteInputAsync(string name, CancellationToken cancellationToken)

Deletes the specified input.

Parameters
NameDescription
namestring

Required. The name of the input resource, in the form of: projects/{project}/locations/{location}/inputs/{inputId}.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A Task containing the RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/inputs/[INPUT]";
// Make the request
Operation<Empty, OperationMetadata> response = await livestreamServiceClient.DeleteInputAsync(name);

// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await livestreamServiceClient.PollOnceDeleteInputAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Empty retrievedResult = retrievedResponse.Result;
}

GetChannel(ChannelName, CallSettings)

public virtual Channel GetChannel(ChannelName name, CallSettings callSettings = null)

Returns the specified channel.

Parameters
NameDescription
nameChannelName

Required. The name of the channel resource, in the form of: projects/{project}/locations/{location}/channels/{channelId}.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Channel

The RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.Create();
// Initialize request argument(s)
ChannelName name = ChannelName.FromProjectLocationChannel("[PROJECT]", "[LOCATION]", "[CHANNEL]");
// Make the request
Channel response = livestreamServiceClient.GetChannel(name);

GetChannel(GetChannelRequest, CallSettings)

public virtual Channel GetChannel(GetChannelRequest request, CallSettings callSettings = null)

Returns the specified channel.

Parameters
NameDescription
requestGetChannelRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Channel

The RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.Create();
// Initialize request argument(s)
GetChannelRequest request = new GetChannelRequest
{
    ChannelName = ChannelName.FromProjectLocationChannel("[PROJECT]", "[LOCATION]", "[CHANNEL]"),
};
// Make the request
Channel response = livestreamServiceClient.GetChannel(request);

GetChannel(string, CallSettings)

public virtual Channel GetChannel(string name, CallSettings callSettings = null)

Returns the specified channel.

Parameters
NameDescription
namestring

Required. The name of the channel resource, in the form of: projects/{project}/locations/{location}/channels/{channelId}.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Channel

The RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/channels/[CHANNEL]";
// Make the request
Channel response = livestreamServiceClient.GetChannel(name);

GetChannelAsync(ChannelName, CallSettings)

public virtual Task<Channel> GetChannelAsync(ChannelName name, CallSettings callSettings = null)

Returns the specified channel.

Parameters
NameDescription
nameChannelName

Required. The name of the channel resource, in the form of: projects/{project}/locations/{location}/channels/{channelId}.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskChannel

A Task containing the RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
ChannelName name = ChannelName.FromProjectLocationChannel("[PROJECT]", "[LOCATION]", "[CHANNEL]");
// Make the request
Channel response = await livestreamServiceClient.GetChannelAsync(name);

GetChannelAsync(ChannelName, CancellationToken)

public virtual Task<Channel> GetChannelAsync(ChannelName name, CancellationToken cancellationToken)

Returns the specified channel.

Parameters
NameDescription
nameChannelName

Required. The name of the channel resource, in the form of: projects/{project}/locations/{location}/channels/{channelId}.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskChannel

A Task containing the RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
ChannelName name = ChannelName.FromProjectLocationChannel("[PROJECT]", "[LOCATION]", "[CHANNEL]");
// Make the request
Channel response = await livestreamServiceClient.GetChannelAsync(name);

GetChannelAsync(GetChannelRequest, CallSettings)

public virtual Task<Channel> GetChannelAsync(GetChannelRequest request, CallSettings callSettings = null)

Returns the specified channel.

Parameters
NameDescription
requestGetChannelRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskChannel

A Task containing the RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
GetChannelRequest request = new GetChannelRequest
{
    ChannelName = ChannelName.FromProjectLocationChannel("[PROJECT]", "[LOCATION]", "[CHANNEL]"),
};
// Make the request
Channel response = await livestreamServiceClient.GetChannelAsync(request);

GetChannelAsync(GetChannelRequest, CancellationToken)

public virtual Task<Channel> GetChannelAsync(GetChannelRequest request, CancellationToken cancellationToken)

Returns the specified channel.

Parameters
NameDescription
requestGetChannelRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskChannel

A Task containing the RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
GetChannelRequest request = new GetChannelRequest
{
    ChannelName = ChannelName.FromProjectLocationChannel("[PROJECT]", "[LOCATION]", "[CHANNEL]"),
};
// Make the request
Channel response = await livestreamServiceClient.GetChannelAsync(request);

GetChannelAsync(string, CallSettings)

public virtual Task<Channel> GetChannelAsync(string name, CallSettings callSettings = null)

Returns the specified channel.

Parameters
NameDescription
namestring

Required. The name of the channel resource, in the form of: projects/{project}/locations/{location}/channels/{channelId}.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskChannel

A Task containing the RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/channels/[CHANNEL]";
// Make the request
Channel response = await livestreamServiceClient.GetChannelAsync(name);

GetChannelAsync(string, CancellationToken)

public virtual Task<Channel> GetChannelAsync(string name, CancellationToken cancellationToken)

Returns the specified channel.

Parameters
NameDescription
namestring

Required. The name of the channel resource, in the form of: projects/{project}/locations/{location}/channels/{channelId}.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskChannel

A Task containing the RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/channels/[CHANNEL]";
// Make the request
Channel response = await livestreamServiceClient.GetChannelAsync(name);

GetEvent(EventName, CallSettings)

public virtual Event GetEvent(EventName name, CallSettings callSettings = null)

Returns the specified event.

Parameters
NameDescription
nameEventName

Required. The name of the event resource, in the form of: projects/{project}/locations/{location}/channels/{channelId}/events/{eventId}.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Event

The RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.Create();
// Initialize request argument(s)
EventName name = EventName.FromProjectLocationChannelEvent("[PROJECT]", "[LOCATION]", "[CHANNEL]", "[EVENT]");
// Make the request
Event response = livestreamServiceClient.GetEvent(name);

GetEvent(GetEventRequest, CallSettings)

public virtual Event GetEvent(GetEventRequest request, CallSettings callSettings = null)

Returns the specified event.

Parameters
NameDescription
requestGetEventRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Event

The RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.Create();
// Initialize request argument(s)
GetEventRequest request = new GetEventRequest
{
    EventName = EventName.FromProjectLocationChannelEvent("[PROJECT]", "[LOCATION]", "[CHANNEL]", "[EVENT]"),
};
// Make the request
Event response = livestreamServiceClient.GetEvent(request);

GetEvent(string, CallSettings)

public virtual Event GetEvent(string name, CallSettings callSettings = null)

Returns the specified event.

Parameters
NameDescription
namestring

Required. The name of the event resource, in the form of: projects/{project}/locations/{location}/channels/{channelId}/events/{eventId}.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Event

The RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/channels/[CHANNEL]/events/[EVENT]";
// Make the request
Event response = livestreamServiceClient.GetEvent(name);

GetEventAsync(EventName, CallSettings)

public virtual Task<Event> GetEventAsync(EventName name, CallSettings callSettings = null)

Returns the specified event.

Parameters
NameDescription
nameEventName

Required. The name of the event resource, in the form of: projects/{project}/locations/{location}/channels/{channelId}/events/{eventId}.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskEvent

A Task containing the RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
EventName name = EventName.FromProjectLocationChannelEvent("[PROJECT]", "[LOCATION]", "[CHANNEL]", "[EVENT]");
// Make the request
Event response = await livestreamServiceClient.GetEventAsync(name);

GetEventAsync(EventName, CancellationToken)

public virtual Task<Event> GetEventAsync(EventName name, CancellationToken cancellationToken)

Returns the specified event.

Parameters
NameDescription
nameEventName

Required. The name of the event resource, in the form of: projects/{project}/locations/{location}/channels/{channelId}/events/{eventId}.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskEvent

A Task containing the RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
EventName name = EventName.FromProjectLocationChannelEvent("[PROJECT]", "[LOCATION]", "[CHANNEL]", "[EVENT]");
// Make the request
Event response = await livestreamServiceClient.GetEventAsync(name);

GetEventAsync(GetEventRequest, CallSettings)

public virtual Task<Event> GetEventAsync(GetEventRequest request, CallSettings callSettings = null)

Returns the specified event.

Parameters
NameDescription
requestGetEventRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskEvent

A Task containing the RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
GetEventRequest request = new GetEventRequest
{
    EventName = EventName.FromProjectLocationChannelEvent("[PROJECT]", "[LOCATION]", "[CHANNEL]", "[EVENT]"),
};
// Make the request
Event response = await livestreamServiceClient.GetEventAsync(request);

GetEventAsync(GetEventRequest, CancellationToken)

public virtual Task<Event> GetEventAsync(GetEventRequest request, CancellationToken cancellationToken)

Returns the specified event.

Parameters
NameDescription
requestGetEventRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskEvent

A Task containing the RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
GetEventRequest request = new GetEventRequest
{
    EventName = EventName.FromProjectLocationChannelEvent("[PROJECT]", "[LOCATION]", "[CHANNEL]", "[EVENT]"),
};
// Make the request
Event response = await livestreamServiceClient.GetEventAsync(request);

GetEventAsync(string, CallSettings)

public virtual Task<Event> GetEventAsync(string name, CallSettings callSettings = null)

Returns the specified event.

Parameters
NameDescription
namestring

Required. The name of the event resource, in the form of: projects/{project}/locations/{location}/channels/{channelId}/events/{eventId}.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskEvent

A Task containing the RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/channels/[CHANNEL]/events/[EVENT]";
// Make the request
Event response = await livestreamServiceClient.GetEventAsync(name);

GetEventAsync(string, CancellationToken)

public virtual Task<Event> GetEventAsync(string name, CancellationToken cancellationToken)

Returns the specified event.

Parameters
NameDescription
namestring

Required. The name of the event resource, in the form of: projects/{project}/locations/{location}/channels/{channelId}/events/{eventId}.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskEvent

A Task containing the RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/channels/[CHANNEL]/events/[EVENT]";
// Make the request
Event response = await livestreamServiceClient.GetEventAsync(name);

GetInput(GetInputRequest, CallSettings)

public virtual Input GetInput(GetInputRequest request, CallSettings callSettings = null)

Returns the specified input.

Parameters
NameDescription
requestGetInputRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Input

The RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.Create();
// Initialize request argument(s)
GetInputRequest request = new GetInputRequest
{
    InputName = InputName.FromProjectLocationInput("[PROJECT]", "[LOCATION]", "[INPUT]"),
};
// Make the request
Input response = livestreamServiceClient.GetInput(request);

GetInput(InputName, CallSettings)

public virtual Input GetInput(InputName name, CallSettings callSettings = null)

Returns the specified input.

Parameters
NameDescription
nameInputName

Required. The name of the input resource, in the form of: projects/{project}/locations/{location}/inputs/{inputId}.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Input

The RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.Create();
// Initialize request argument(s)
InputName name = InputName.FromProjectLocationInput("[PROJECT]", "[LOCATION]", "[INPUT]");
// Make the request
Input response = livestreamServiceClient.GetInput(name);

GetInput(string, CallSettings)

public virtual Input GetInput(string name, CallSettings callSettings = null)

Returns the specified input.

Parameters
NameDescription
namestring

Required. The name of the input resource, in the form of: projects/{project}/locations/{location}/inputs/{inputId}.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Input

The RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/inputs/[INPUT]";
// Make the request
Input response = livestreamServiceClient.GetInput(name);

GetInputAsync(GetInputRequest, CallSettings)

public virtual Task<Input> GetInputAsync(GetInputRequest request, CallSettings callSettings = null)

Returns the specified input.

Parameters
NameDescription
requestGetInputRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskInput

A Task containing the RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
GetInputRequest request = new GetInputRequest
{
    InputName = InputName.FromProjectLocationInput("[PROJECT]", "[LOCATION]", "[INPUT]"),
};
// Make the request
Input response = await livestreamServiceClient.GetInputAsync(request);

GetInputAsync(GetInputRequest, CancellationToken)

public virtual Task<Input> GetInputAsync(GetInputRequest request, CancellationToken cancellationToken)

Returns the specified input.

Parameters
NameDescription
requestGetInputRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskInput

A Task containing the RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
GetInputRequest request = new GetInputRequest
{
    InputName = InputName.FromProjectLocationInput("[PROJECT]", "[LOCATION]", "[INPUT]"),
};
// Make the request
Input response = await livestreamServiceClient.GetInputAsync(request);

GetInputAsync(InputName, CallSettings)

public virtual Task<Input> GetInputAsync(InputName name, CallSettings callSettings = null)

Returns the specified input.

Parameters
NameDescription
nameInputName

Required. The name of the input resource, in the form of: projects/{project}/locations/{location}/inputs/{inputId}.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskInput

A Task containing the RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
InputName name = InputName.FromProjectLocationInput("[PROJECT]", "[LOCATION]", "[INPUT]");
// Make the request
Input response = await livestreamServiceClient.GetInputAsync(name);

GetInputAsync(InputName, CancellationToken)

public virtual Task<Input> GetInputAsync(InputName name, CancellationToken cancellationToken)

Returns the specified input.

Parameters
NameDescription
nameInputName

Required. The name of the input resource, in the form of: projects/{project}/locations/{location}/inputs/{inputId}.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskInput

A Task containing the RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
InputName name = InputName.FromProjectLocationInput("[PROJECT]", "[LOCATION]", "[INPUT]");
// Make the request
Input response = await livestreamServiceClient.GetInputAsync(name);

GetInputAsync(string, CallSettings)

public virtual Task<Input> GetInputAsync(string name, CallSettings callSettings = null)

Returns the specified input.

Parameters
NameDescription
namestring

Required. The name of the input resource, in the form of: projects/{project}/locations/{location}/inputs/{inputId}.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskInput

A Task containing the RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/inputs/[INPUT]";
// Make the request
Input response = await livestreamServiceClient.GetInputAsync(name);

GetInputAsync(string, CancellationToken)

public virtual Task<Input> GetInputAsync(string name, CancellationToken cancellationToken)

Returns the specified input.

Parameters
NameDescription
namestring

Required. The name of the input resource, in the form of: projects/{project}/locations/{location}/inputs/{inputId}.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskInput

A Task containing the RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/inputs/[INPUT]";
// Make the request
Input response = await livestreamServiceClient.GetInputAsync(name);

ListChannels(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListChannelsResponse, Channel> ListChannels(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns a list of all channels in the specified region.

Parameters
NameDescription
parentLocationName

Required. The parent location for the resource, in the form of: projects/{project}/locations/{location}.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListChannelsResponseChannel

A pageable sequence of Channel resources.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListChannelsResponse, Channel> response = livestreamServiceClient.ListChannels(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Channel item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListChannelsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Channel item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Channel> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Channel item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListChannels(ListChannelsRequest, CallSettings)

public virtual PagedEnumerable<ListChannelsResponse, Channel> ListChannels(ListChannelsRequest request, CallSettings callSettings = null)

Returns a list of all channels in the specified region.

Parameters
NameDescription
requestListChannelsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListChannelsResponseChannel

A pageable sequence of Channel resources.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.Create();
// Initialize request argument(s)
ListChannelsRequest request = new ListChannelsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedEnumerable<ListChannelsResponse, Channel> response = livestreamServiceClient.ListChannels(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (Channel item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListChannelsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Channel item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Channel> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Channel item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListChannels(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListChannelsResponse, Channel> ListChannels(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns a list of all channels in the specified region.

Parameters
NameDescription
parentstring

Required. The parent location for the resource, in the form of: projects/{project}/locations/{location}.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListChannelsResponseChannel

A pageable sequence of Channel resources.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListChannelsResponse, Channel> response = livestreamServiceClient.ListChannels(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Channel item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListChannelsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Channel item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Channel> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Channel item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListChannelsAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListChannelsResponse, Channel> ListChannelsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns a list of all channels in the specified region.

Parameters
NameDescription
parentLocationName

Required. The parent location for the resource, in the form of: projects/{project}/locations/{location}.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListChannelsResponseChannel

A pageable asynchronous sequence of Channel resources.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListChannelsResponse, Channel> response = livestreamServiceClient.ListChannelsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Channel item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListChannelsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Channel item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Channel> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Channel item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListChannelsAsync(ListChannelsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListChannelsResponse, Channel> ListChannelsAsync(ListChannelsRequest request, CallSettings callSettings = null)

Returns a list of all channels in the specified region.

Parameters
NameDescription
requestListChannelsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListChannelsResponseChannel

A pageable asynchronous sequence of Channel resources.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
ListChannelsRequest request = new ListChannelsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListChannelsResponse, Channel> response = livestreamServiceClient.ListChannelsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Channel item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListChannelsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Channel item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Channel> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Channel item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListChannelsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListChannelsResponse, Channel> ListChannelsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns a list of all channels in the specified region.

Parameters
NameDescription
parentstring

Required. The parent location for the resource, in the form of: projects/{project}/locations/{location}.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListChannelsResponseChannel

A pageable asynchronous sequence of Channel resources.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListChannelsResponse, Channel> response = livestreamServiceClient.ListChannelsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Channel item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListChannelsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Channel item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Channel> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Channel item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListEvents(ChannelName, string, int?, CallSettings)

public virtual PagedEnumerable<ListEventsResponse, Event> ListEvents(ChannelName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns a list of all events in the specified channel.

Parameters
NameDescription
parentChannelName

Required. The parent channel for the resource, in the form of: projects/{project}/locations/{location}/channels/{channelId}.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListEventsResponseEvent

A pageable sequence of Event resources.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.Create();
// Initialize request argument(s)
ChannelName parent = ChannelName.FromProjectLocationChannel("[PROJECT]", "[LOCATION]", "[CHANNEL]");
// Make the request
PagedEnumerable<ListEventsResponse, Event> response = livestreamServiceClient.ListEvents(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Event item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListEventsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Event item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Event> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Event item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListEvents(ListEventsRequest, CallSettings)

public virtual PagedEnumerable<ListEventsResponse, Event> ListEvents(ListEventsRequest request, CallSettings callSettings = null)

Returns a list of all events in the specified channel.

Parameters
NameDescription
requestListEventsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListEventsResponseEvent

A pageable sequence of Event resources.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.Create();
// Initialize request argument(s)
ListEventsRequest request = new ListEventsRequest
{
    ParentAsChannelName = ChannelName.FromProjectLocationChannel("[PROJECT]", "[LOCATION]", "[CHANNEL]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedEnumerable<ListEventsResponse, Event> response = livestreamServiceClient.ListEvents(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (Event item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListEventsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Event item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Event> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Event item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListEvents(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListEventsResponse, Event> ListEvents(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns a list of all events in the specified channel.

Parameters
NameDescription
parentstring

Required. The parent channel for the resource, in the form of: projects/{project}/locations/{location}/channels/{channelId}.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListEventsResponseEvent

A pageable sequence of Event resources.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/channels/[CHANNEL]";
// Make the request
PagedEnumerable<ListEventsResponse, Event> response = livestreamServiceClient.ListEvents(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Event item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListEventsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Event item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Event> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Event item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListEventsAsync(ChannelName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListEventsResponse, Event> ListEventsAsync(ChannelName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns a list of all events in the specified channel.

Parameters
NameDescription
parentChannelName

Required. The parent channel for the resource, in the form of: projects/{project}/locations/{location}/channels/{channelId}.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListEventsResponseEvent

A pageable asynchronous sequence of Event resources.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
ChannelName parent = ChannelName.FromProjectLocationChannel("[PROJECT]", "[LOCATION]", "[CHANNEL]");
// Make the request
PagedAsyncEnumerable<ListEventsResponse, Event> response = livestreamServiceClient.ListEventsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Event item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListEventsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Event item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Event> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Event item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListEventsAsync(ListEventsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListEventsResponse, Event> ListEventsAsync(ListEventsRequest request, CallSettings callSettings = null)

Returns a list of all events in the specified channel.

Parameters
NameDescription
requestListEventsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListEventsResponseEvent

A pageable asynchronous sequence of Event resources.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
ListEventsRequest request = new ListEventsRequest
{
    ParentAsChannelName = ChannelName.FromProjectLocationChannel("[PROJECT]", "[LOCATION]", "[CHANNEL]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListEventsResponse, Event> response = livestreamServiceClient.ListEventsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Event item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListEventsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Event item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Event> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Event item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListEventsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListEventsResponse, Event> ListEventsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns a list of all events in the specified channel.

Parameters
NameDescription
parentstring

Required. The parent channel for the resource, in the form of: projects/{project}/locations/{location}/channels/{channelId}.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListEventsResponseEvent

A pageable asynchronous sequence of Event resources.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/channels/[CHANNEL]";
// Make the request
PagedAsyncEnumerable<ListEventsResponse, Event> response = livestreamServiceClient.ListEventsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Event item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListEventsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Event item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Event> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Event item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListInputs(LocationName, string, int?, CallSettings)

public virtual PagedEnumerable<ListInputsResponse, Input> ListInputs(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns a list of all inputs in the specified region.

Parameters
NameDescription
parentLocationName

Required. The parent location for the resource, in the form of: projects/{project}/locations/{location}.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListInputsResponseInput

A pageable sequence of Input resources.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListInputsResponse, Input> response = livestreamServiceClient.ListInputs(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Input item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListInputsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Input item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Input> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Input item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListInputs(ListInputsRequest, CallSettings)

public virtual PagedEnumerable<ListInputsResponse, Input> ListInputs(ListInputsRequest request, CallSettings callSettings = null)

Returns a list of all inputs in the specified region.

Parameters
NameDescription
requestListInputsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListInputsResponseInput

A pageable sequence of Input resources.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.Create();
// Initialize request argument(s)
ListInputsRequest request = new ListInputsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedEnumerable<ListInputsResponse, Input> response = livestreamServiceClient.ListInputs(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (Input item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListInputsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Input item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Input> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Input item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListInputs(string, string, int?, CallSettings)

public virtual PagedEnumerable<ListInputsResponse, Input> ListInputs(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns a list of all inputs in the specified region.

Parameters
NameDescription
parentstring

Required. The parent location for the resource, in the form of: projects/{project}/locations/{location}.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableListInputsResponseInput

A pageable sequence of Input resources.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListInputsResponse, Input> response = livestreamServiceClient.ListInputs(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Input item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListInputsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Input item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Input> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Input item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListInputsAsync(LocationName, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListInputsResponse, Input> ListInputsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns a list of all inputs in the specified region.

Parameters
NameDescription
parentLocationName

Required. The parent location for the resource, in the form of: projects/{project}/locations/{location}.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListInputsResponseInput

A pageable asynchronous sequence of Input resources.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListInputsResponse, Input> response = livestreamServiceClient.ListInputsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Input item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListInputsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Input item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Input> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Input item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListInputsAsync(ListInputsRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListInputsResponse, Input> ListInputsAsync(ListInputsRequest request, CallSettings callSettings = null)

Returns a list of all inputs in the specified region.

Parameters
NameDescription
requestListInputsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListInputsResponseInput

A pageable asynchronous sequence of Input resources.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
ListInputsRequest request = new ListInputsRequest
{
    ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    Filter = "",
    OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListInputsResponse, Input> response = livestreamServiceClient.ListInputsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Input item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListInputsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Input item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Input> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Input item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListInputsAsync(string, string, int?, CallSettings)

public virtual PagedAsyncEnumerable<ListInputsResponse, Input> ListInputsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Returns a list of all inputs in the specified region.

Parameters
NameDescription
parentstring

Required. The parent location for the resource, in the form of: projects/{project}/locations/{location}.

pageTokenstring

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeint

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableListInputsResponseInput

A pageable asynchronous sequence of Input resources.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListInputsResponse, Input> response = livestreamServiceClient.ListInputsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Input item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListInputsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Input item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Input> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Input item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

PollOnceCreateChannel(string, CallSettings)

public virtual Operation<Channel, OperationMetadata> PollOnceCreateChannel(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of CreateChannel.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationChannelOperationMetadata

The result of polling the operation.

PollOnceCreateChannelAsync(string, CallSettings)

public virtual Task<Operation<Channel, OperationMetadata>> PollOnceCreateChannelAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of CreateChannel.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationChannelOperationMetadata

A task representing the result of polling the operation.

PollOnceCreateInput(string, CallSettings)

public virtual Operation<Input, OperationMetadata> PollOnceCreateInput(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of CreateInput.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationInputOperationMetadata

The result of polling the operation.

PollOnceCreateInputAsync(string, CallSettings)

public virtual Task<Operation<Input, OperationMetadata>> PollOnceCreateInputAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of CreateInput.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationInputOperationMetadata

A task representing the result of polling the operation.

PollOnceDeleteChannel(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> PollOnceDeleteChannel(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of DeleteChannel.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The result of polling the operation.

PollOnceDeleteChannelAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteChannelAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of DeleteChannel.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A task representing the result of polling the operation.

PollOnceDeleteInput(string, CallSettings)

public virtual Operation<Empty, OperationMetadata> PollOnceDeleteInput(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of DeleteInput.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationEmptyOperationMetadata

The result of polling the operation.

PollOnceDeleteInputAsync(string, CallSettings)

public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteInputAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of DeleteInput.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationEmptyOperationMetadata

A task representing the result of polling the operation.

PollOnceStartChannel(string, CallSettings)

public virtual Operation<ChannelOperationResponse, OperationMetadata> PollOnceStartChannel(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of StartChannel.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationChannelOperationResponseOperationMetadata

The result of polling the operation.

PollOnceStartChannelAsync(string, CallSettings)

public virtual Task<Operation<ChannelOperationResponse, OperationMetadata>> PollOnceStartChannelAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of StartChannel.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationChannelOperationResponseOperationMetadata

A task representing the result of polling the operation.

PollOnceStopChannel(string, CallSettings)

public virtual Operation<ChannelOperationResponse, OperationMetadata> PollOnceStopChannel(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of StopChannel.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationChannelOperationResponseOperationMetadata

The result of polling the operation.

PollOnceStopChannelAsync(string, CallSettings)

public virtual Task<Operation<ChannelOperationResponse, OperationMetadata>> PollOnceStopChannelAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of StopChannel.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationChannelOperationResponseOperationMetadata

A task representing the result of polling the operation.

PollOnceUpdateChannel(string, CallSettings)

public virtual Operation<Channel, OperationMetadata> PollOnceUpdateChannel(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of UpdateChannel.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationChannelOperationMetadata

The result of polling the operation.

PollOnceUpdateChannelAsync(string, CallSettings)

public virtual Task<Operation<Channel, OperationMetadata>> PollOnceUpdateChannelAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of UpdateChannel.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationChannelOperationMetadata

A task representing the result of polling the operation.

PollOnceUpdateInput(string, CallSettings)

public virtual Operation<Input, OperationMetadata> PollOnceUpdateInput(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of UpdateInput.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationInputOperationMetadata

The result of polling the operation.

PollOnceUpdateInputAsync(string, CallSettings)

public virtual Task<Operation<Input, OperationMetadata>> PollOnceUpdateInputAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of UpdateInput.

Parameters
NameDescription
operationNamestring

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationInputOperationMetadata

A task representing the result of polling the operation.

ShutdownDefaultChannelsAsync()

public static Task ShutdownDefaultChannelsAsync()

Shuts down any channels automatically created by Create() and CreateAsync(CancellationToken). Channels which weren't automatically created are not affected.

Returns
TypeDescription
Task

A task representing the asynchronous shutdown operation.

Remarks

After calling this method, further calls to Create() and CreateAsync(CancellationToken) will create new channels, which could in turn be shut down by another call to this method.

StartChannel(ChannelName, CallSettings)

public virtual Operation<ChannelOperationResponse, OperationMetadata> StartChannel(ChannelName name, CallSettings callSettings = null)

Starts the specified channel. Part of the video pipeline will be created only when the StartChannel request is received by the server.

Parameters
NameDescription
nameChannelName

Required. The name of the channel resource, in the form of: projects/{project}/locations/{location}/channels/{channelId}.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationChannelOperationResponseOperationMetadata

The RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.Create();
// Initialize request argument(s)
ChannelName name = ChannelName.FromProjectLocationChannel("[PROJECT]", "[LOCATION]", "[CHANNEL]");
// Make the request
Operation<ChannelOperationResponse, OperationMetadata> response = livestreamServiceClient.StartChannel(name);

// Poll until the returned long-running operation is complete
Operation<ChannelOperationResponse, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ChannelOperationResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ChannelOperationResponse, OperationMetadata> retrievedResponse = livestreamServiceClient.PollOnceStartChannel(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ChannelOperationResponse retrievedResult = retrievedResponse.Result;
}

StartChannel(StartChannelRequest, CallSettings)

public virtual Operation<ChannelOperationResponse, OperationMetadata> StartChannel(StartChannelRequest request, CallSettings callSettings = null)

Starts the specified channel. Part of the video pipeline will be created only when the StartChannel request is received by the server.

Parameters
NameDescription
requestStartChannelRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationChannelOperationResponseOperationMetadata

The RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.Create();
// Initialize request argument(s)
StartChannelRequest request = new StartChannelRequest
{
    ChannelName = ChannelName.FromProjectLocationChannel("[PROJECT]", "[LOCATION]", "[CHANNEL]"),
    RequestId = "",
};
// Make the request
Operation<ChannelOperationResponse, OperationMetadata> response = livestreamServiceClient.StartChannel(request);

// Poll until the returned long-running operation is complete
Operation<ChannelOperationResponse, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ChannelOperationResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ChannelOperationResponse, OperationMetadata> retrievedResponse = livestreamServiceClient.PollOnceStartChannel(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ChannelOperationResponse retrievedResult = retrievedResponse.Result;
}

StartChannel(string, CallSettings)

public virtual Operation<ChannelOperationResponse, OperationMetadata> StartChannel(string name, CallSettings callSettings = null)

Starts the specified channel. Part of the video pipeline will be created only when the StartChannel request is received by the server.

Parameters
NameDescription
namestring

Required. The name of the channel resource, in the form of: projects/{project}/locations/{location}/channels/{channelId}.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationChannelOperationResponseOperationMetadata

The RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/channels/[CHANNEL]";
// Make the request
Operation<ChannelOperationResponse, OperationMetadata> response = livestreamServiceClient.StartChannel(name);

// Poll until the returned long-running operation is complete
Operation<ChannelOperationResponse, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ChannelOperationResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ChannelOperationResponse, OperationMetadata> retrievedResponse = livestreamServiceClient.PollOnceStartChannel(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ChannelOperationResponse retrievedResult = retrievedResponse.Result;
}

StartChannelAsync(ChannelName, CallSettings)

public virtual Task<Operation<ChannelOperationResponse, OperationMetadata>> StartChannelAsync(ChannelName name, CallSettings callSettings = null)

Starts the specified channel. Part of the video pipeline will be created only when the StartChannel request is received by the server.

Parameters
NameDescription
nameChannelName

Required. The name of the channel resource, in the form of: projects/{project}/locations/{location}/channels/{channelId}.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationChannelOperationResponseOperationMetadata

A Task containing the RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
ChannelName name = ChannelName.FromProjectLocationChannel("[PROJECT]", "[LOCATION]", "[CHANNEL]");
// Make the request
Operation<ChannelOperationResponse, OperationMetadata> response = await livestreamServiceClient.StartChannelAsync(name);

// Poll until the returned long-running operation is complete
Operation<ChannelOperationResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ChannelOperationResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ChannelOperationResponse, OperationMetadata> retrievedResponse = await livestreamServiceClient.PollOnceStartChannelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ChannelOperationResponse retrievedResult = retrievedResponse.Result;
}

StartChannelAsync(ChannelName, CancellationToken)

public virtual Task<Operation<ChannelOperationResponse, OperationMetadata>> StartChannelAsync(ChannelName name, CancellationToken cancellationToken)

Starts the specified channel. Part of the video pipeline will be created only when the StartChannel request is received by the server.

Parameters
NameDescription
nameChannelName

Required. The name of the channel resource, in the form of: projects/{project}/locations/{location}/channels/{channelId}.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationChannelOperationResponseOperationMetadata

A Task containing the RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
ChannelName name = ChannelName.FromProjectLocationChannel("[PROJECT]", "[LOCATION]", "[CHANNEL]");
// Make the request
Operation<ChannelOperationResponse, OperationMetadata> response = await livestreamServiceClient.StartChannelAsync(name);

// Poll until the returned long-running operation is complete
Operation<ChannelOperationResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ChannelOperationResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ChannelOperationResponse, OperationMetadata> retrievedResponse = await livestreamServiceClient.PollOnceStartChannelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ChannelOperationResponse retrievedResult = retrievedResponse.Result;
}

StartChannelAsync(StartChannelRequest, CallSettings)

public virtual Task<Operation<ChannelOperationResponse, OperationMetadata>> StartChannelAsync(StartChannelRequest request, CallSettings callSettings = null)

Starts the specified channel. Part of the video pipeline will be created only when the StartChannel request is received by the server.

Parameters
NameDescription
requestStartChannelRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationChannelOperationResponseOperationMetadata

A Task containing the RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
StartChannelRequest request = new StartChannelRequest
{
    ChannelName = ChannelName.FromProjectLocationChannel("[PROJECT]", "[LOCATION]", "[CHANNEL]"),
    RequestId = "",
};
// Make the request
Operation<ChannelOperationResponse, OperationMetadata> response = await livestreamServiceClient.StartChannelAsync(request);

// Poll until the returned long-running operation is complete
Operation<ChannelOperationResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ChannelOperationResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ChannelOperationResponse, OperationMetadata> retrievedResponse = await livestreamServiceClient.PollOnceStartChannelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ChannelOperationResponse retrievedResult = retrievedResponse.Result;
}

StartChannelAsync(StartChannelRequest, CancellationToken)

public virtual Task<Operation<ChannelOperationResponse, OperationMetadata>> StartChannelAsync(StartChannelRequest request, CancellationToken cancellationToken)

Starts the specified channel. Part of the video pipeline will be created only when the StartChannel request is received by the server.

Parameters
NameDescription
requestStartChannelRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationChannelOperationResponseOperationMetadata

A Task containing the RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
StartChannelRequest request = new StartChannelRequest
{
    ChannelName = ChannelName.FromProjectLocationChannel("[PROJECT]", "[LOCATION]", "[CHANNEL]"),
    RequestId = "",
};
// Make the request
Operation<ChannelOperationResponse, OperationMetadata> response = await livestreamServiceClient.StartChannelAsync(request);

// Poll until the returned long-running operation is complete
Operation<ChannelOperationResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ChannelOperationResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ChannelOperationResponse, OperationMetadata> retrievedResponse = await livestreamServiceClient.PollOnceStartChannelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ChannelOperationResponse retrievedResult = retrievedResponse.Result;
}

StartChannelAsync(string, CallSettings)

public virtual Task<Operation<ChannelOperationResponse, OperationMetadata>> StartChannelAsync(string name, CallSettings callSettings = null)

Starts the specified channel. Part of the video pipeline will be created only when the StartChannel request is received by the server.

Parameters
NameDescription
namestring

Required. The name of the channel resource, in the form of: projects/{project}/locations/{location}/channels/{channelId}.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationChannelOperationResponseOperationMetadata

A Task containing the RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/channels/[CHANNEL]";
// Make the request
Operation<ChannelOperationResponse, OperationMetadata> response = await livestreamServiceClient.StartChannelAsync(name);

// Poll until the returned long-running operation is complete
Operation<ChannelOperationResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ChannelOperationResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ChannelOperationResponse, OperationMetadata> retrievedResponse = await livestreamServiceClient.PollOnceStartChannelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ChannelOperationResponse retrievedResult = retrievedResponse.Result;
}

StartChannelAsync(string, CancellationToken)

public virtual Task<Operation<ChannelOperationResponse, OperationMetadata>> StartChannelAsync(string name, CancellationToken cancellationToken)

Starts the specified channel. Part of the video pipeline will be created only when the StartChannel request is received by the server.

Parameters
NameDescription
namestring

Required. The name of the channel resource, in the form of: projects/{project}/locations/{location}/channels/{channelId}.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationChannelOperationResponseOperationMetadata

A Task containing the RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/channels/[CHANNEL]";
// Make the request
Operation<ChannelOperationResponse, OperationMetadata> response = await livestreamServiceClient.StartChannelAsync(name);

// Poll until the returned long-running operation is complete
Operation<ChannelOperationResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ChannelOperationResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ChannelOperationResponse, OperationMetadata> retrievedResponse = await livestreamServiceClient.PollOnceStartChannelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ChannelOperationResponse retrievedResult = retrievedResponse.Result;
}

StopChannel(ChannelName, CallSettings)

public virtual Operation<ChannelOperationResponse, OperationMetadata> StopChannel(ChannelName name, CallSettings callSettings = null)

Stops the specified channel. Part of the video pipeline will be released when the StopChannel request is received by the server.

Parameters
NameDescription
nameChannelName

Required. The name of the channel resource, in the form of: projects/{project}/locations/{location}/channels/{channelId}.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationChannelOperationResponseOperationMetadata

The RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.Create();
// Initialize request argument(s)
ChannelName name = ChannelName.FromProjectLocationChannel("[PROJECT]", "[LOCATION]", "[CHANNEL]");
// Make the request
Operation<ChannelOperationResponse, OperationMetadata> response = livestreamServiceClient.StopChannel(name);

// Poll until the returned long-running operation is complete
Operation<ChannelOperationResponse, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ChannelOperationResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ChannelOperationResponse, OperationMetadata> retrievedResponse = livestreamServiceClient.PollOnceStopChannel(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ChannelOperationResponse retrievedResult = retrievedResponse.Result;
}

StopChannel(StopChannelRequest, CallSettings)

public virtual Operation<ChannelOperationResponse, OperationMetadata> StopChannel(StopChannelRequest request, CallSettings callSettings = null)

Stops the specified channel. Part of the video pipeline will be released when the StopChannel request is received by the server.

Parameters
NameDescription
requestStopChannelRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationChannelOperationResponseOperationMetadata

The RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.Create();
// Initialize request argument(s)
StopChannelRequest request = new StopChannelRequest
{
    ChannelName = ChannelName.FromProjectLocationChannel("[PROJECT]", "[LOCATION]", "[CHANNEL]"),
    RequestId = "",
};
// Make the request
Operation<ChannelOperationResponse, OperationMetadata> response = livestreamServiceClient.StopChannel(request);

// Poll until the returned long-running operation is complete
Operation<ChannelOperationResponse, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ChannelOperationResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ChannelOperationResponse, OperationMetadata> retrievedResponse = livestreamServiceClient.PollOnceStopChannel(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ChannelOperationResponse retrievedResult = retrievedResponse.Result;
}

StopChannel(string, CallSettings)

public virtual Operation<ChannelOperationResponse, OperationMetadata> StopChannel(string name, CallSettings callSettings = null)

Stops the specified channel. Part of the video pipeline will be released when the StopChannel request is received by the server.

Parameters
NameDescription
namestring

Required. The name of the channel resource, in the form of: projects/{project}/locations/{location}/channels/{channelId}.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationChannelOperationResponseOperationMetadata

The RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/channels/[CHANNEL]";
// Make the request
Operation<ChannelOperationResponse, OperationMetadata> response = livestreamServiceClient.StopChannel(name);

// Poll until the returned long-running operation is complete
Operation<ChannelOperationResponse, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
ChannelOperationResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ChannelOperationResponse, OperationMetadata> retrievedResponse = livestreamServiceClient.PollOnceStopChannel(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ChannelOperationResponse retrievedResult = retrievedResponse.Result;
}

StopChannelAsync(ChannelName, CallSettings)

public virtual Task<Operation<ChannelOperationResponse, OperationMetadata>> StopChannelAsync(ChannelName name, CallSettings callSettings = null)

Stops the specified channel. Part of the video pipeline will be released when the StopChannel request is received by the server.

Parameters
NameDescription
nameChannelName

Required. The name of the channel resource, in the form of: projects/{project}/locations/{location}/channels/{channelId}.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationChannelOperationResponseOperationMetadata

A Task containing the RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
ChannelName name = ChannelName.FromProjectLocationChannel("[PROJECT]", "[LOCATION]", "[CHANNEL]");
// Make the request
Operation<ChannelOperationResponse, OperationMetadata> response = await livestreamServiceClient.StopChannelAsync(name);

// Poll until the returned long-running operation is complete
Operation<ChannelOperationResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ChannelOperationResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ChannelOperationResponse, OperationMetadata> retrievedResponse = await livestreamServiceClient.PollOnceStopChannelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ChannelOperationResponse retrievedResult = retrievedResponse.Result;
}

StopChannelAsync(ChannelName, CancellationToken)

public virtual Task<Operation<ChannelOperationResponse, OperationMetadata>> StopChannelAsync(ChannelName name, CancellationToken cancellationToken)

Stops the specified channel. Part of the video pipeline will be released when the StopChannel request is received by the server.

Parameters
NameDescription
nameChannelName

Required. The name of the channel resource, in the form of: projects/{project}/locations/{location}/channels/{channelId}.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationChannelOperationResponseOperationMetadata

A Task containing the RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
ChannelName name = ChannelName.FromProjectLocationChannel("[PROJECT]", "[LOCATION]", "[CHANNEL]");
// Make the request
Operation<ChannelOperationResponse, OperationMetadata> response = await livestreamServiceClient.StopChannelAsync(name);

// Poll until the returned long-running operation is complete
Operation<ChannelOperationResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ChannelOperationResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ChannelOperationResponse, OperationMetadata> retrievedResponse = await livestreamServiceClient.PollOnceStopChannelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ChannelOperationResponse retrievedResult = retrievedResponse.Result;
}

StopChannelAsync(StopChannelRequest, CallSettings)

public virtual Task<Operation<ChannelOperationResponse, OperationMetadata>> StopChannelAsync(StopChannelRequest request, CallSettings callSettings = null)

Stops the specified channel. Part of the video pipeline will be released when the StopChannel request is received by the server.

Parameters
NameDescription
requestStopChannelRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationChannelOperationResponseOperationMetadata

A Task containing the RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
StopChannelRequest request = new StopChannelRequest
{
    ChannelName = ChannelName.FromProjectLocationChannel("[PROJECT]", "[LOCATION]", "[CHANNEL]"),
    RequestId = "",
};
// Make the request
Operation<ChannelOperationResponse, OperationMetadata> response = await livestreamServiceClient.StopChannelAsync(request);

// Poll until the returned long-running operation is complete
Operation<ChannelOperationResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ChannelOperationResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ChannelOperationResponse, OperationMetadata> retrievedResponse = await livestreamServiceClient.PollOnceStopChannelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ChannelOperationResponse retrievedResult = retrievedResponse.Result;
}

StopChannelAsync(StopChannelRequest, CancellationToken)

public virtual Task<Operation<ChannelOperationResponse, OperationMetadata>> StopChannelAsync(StopChannelRequest request, CancellationToken cancellationToken)

Stops the specified channel. Part of the video pipeline will be released when the StopChannel request is received by the server.

Parameters
NameDescription
requestStopChannelRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationChannelOperationResponseOperationMetadata

A Task containing the RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
StopChannelRequest request = new StopChannelRequest
{
    ChannelName = ChannelName.FromProjectLocationChannel("[PROJECT]", "[LOCATION]", "[CHANNEL]"),
    RequestId = "",
};
// Make the request
Operation<ChannelOperationResponse, OperationMetadata> response = await livestreamServiceClient.StopChannelAsync(request);

// Poll until the returned long-running operation is complete
Operation<ChannelOperationResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ChannelOperationResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ChannelOperationResponse, OperationMetadata> retrievedResponse = await livestreamServiceClient.PollOnceStopChannelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ChannelOperationResponse retrievedResult = retrievedResponse.Result;
}

StopChannelAsync(string, CallSettings)

public virtual Task<Operation<ChannelOperationResponse, OperationMetadata>> StopChannelAsync(string name, CallSettings callSettings = null)

Stops the specified channel. Part of the video pipeline will be released when the StopChannel request is received by the server.

Parameters
NameDescription
namestring

Required. The name of the channel resource, in the form of: projects/{project}/locations/{location}/channels/{channelId}.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationChannelOperationResponseOperationMetadata

A Task containing the RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/channels/[CHANNEL]";
// Make the request
Operation<ChannelOperationResponse, OperationMetadata> response = await livestreamServiceClient.StopChannelAsync(name);

// Poll until the returned long-running operation is complete
Operation<ChannelOperationResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ChannelOperationResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ChannelOperationResponse, OperationMetadata> retrievedResponse = await livestreamServiceClient.PollOnceStopChannelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ChannelOperationResponse retrievedResult = retrievedResponse.Result;
}

StopChannelAsync(string, CancellationToken)

public virtual Task<Operation<ChannelOperationResponse, OperationMetadata>> StopChannelAsync(string name, CancellationToken cancellationToken)

Stops the specified channel. Part of the video pipeline will be released when the StopChannel request is received by the server.

Parameters
NameDescription
namestring

Required. The name of the channel resource, in the form of: projects/{project}/locations/{location}/channels/{channelId}.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationChannelOperationResponseOperationMetadata

A Task containing the RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/channels/[CHANNEL]";
// Make the request
Operation<ChannelOperationResponse, OperationMetadata> response = await livestreamServiceClient.StopChannelAsync(name);

// Poll until the returned long-running operation is complete
Operation<ChannelOperationResponse, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
ChannelOperationResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<ChannelOperationResponse, OperationMetadata> retrievedResponse = await livestreamServiceClient.PollOnceStopChannelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    ChannelOperationResponse retrievedResult = retrievedResponse.Result;
}

UpdateChannel(Channel, FieldMask, CallSettings)

public virtual Operation<Channel, OperationMetadata> UpdateChannel(Channel channel, FieldMask updateMask, CallSettings callSettings = null)

Updates the specified channel.

Parameters
NameDescription
channelChannel

Required. The channel resource to be updated.

updateMaskFieldMask

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationChannelOperationMetadata

The RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.Create();
// Initialize request argument(s)
Channel channel = new Channel();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Channel, OperationMetadata> response = livestreamServiceClient.UpdateChannel(channel, updateMask);

// Poll until the returned long-running operation is complete
Operation<Channel, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Channel result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Channel, OperationMetadata> retrievedResponse = livestreamServiceClient.PollOnceUpdateChannel(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Channel retrievedResult = retrievedResponse.Result;
}

UpdateChannel(UpdateChannelRequest, CallSettings)

public virtual Operation<Channel, OperationMetadata> UpdateChannel(UpdateChannelRequest request, CallSettings callSettings = null)

Updates the specified channel.

Parameters
NameDescription
requestUpdateChannelRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationChannelOperationMetadata

The RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.Create();
// Initialize request argument(s)
UpdateChannelRequest request = new UpdateChannelRequest
{
    UpdateMask = new FieldMask(),
    Channel = new Channel(),
    RequestId = "",
};
// Make the request
Operation<Channel, OperationMetadata> response = livestreamServiceClient.UpdateChannel(request);

// Poll until the returned long-running operation is complete
Operation<Channel, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Channel result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Channel, OperationMetadata> retrievedResponse = livestreamServiceClient.PollOnceUpdateChannel(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Channel retrievedResult = retrievedResponse.Result;
}

UpdateChannelAsync(Channel, FieldMask, CallSettings)

public virtual Task<Operation<Channel, OperationMetadata>> UpdateChannelAsync(Channel channel, FieldMask updateMask, CallSettings callSettings = null)

Updates the specified channel.

Parameters
NameDescription
channelChannel

Required. The channel resource to be updated.

updateMaskFieldMask

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationChannelOperationMetadata

A Task containing the RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
Channel channel = new Channel();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Channel, OperationMetadata> response = await livestreamServiceClient.UpdateChannelAsync(channel, updateMask);

// Poll until the returned long-running operation is complete
Operation<Channel, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Channel result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Channel, OperationMetadata> retrievedResponse = await livestreamServiceClient.PollOnceUpdateChannelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Channel retrievedResult = retrievedResponse.Result;
}

UpdateChannelAsync(Channel, FieldMask, CancellationToken)

public virtual Task<Operation<Channel, OperationMetadata>> UpdateChannelAsync(Channel channel, FieldMask updateMask, CancellationToken cancellationToken)

Updates the specified channel.

Parameters
NameDescription
channelChannel

Required. The channel resource to be updated.

updateMaskFieldMask

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.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationChannelOperationMetadata

A Task containing the RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
Channel channel = new Channel();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Channel, OperationMetadata> response = await livestreamServiceClient.UpdateChannelAsync(channel, updateMask);

// Poll until the returned long-running operation is complete
Operation<Channel, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Channel result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Channel, OperationMetadata> retrievedResponse = await livestreamServiceClient.PollOnceUpdateChannelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Channel retrievedResult = retrievedResponse.Result;
}

UpdateChannelAsync(UpdateChannelRequest, CallSettings)

public virtual Task<Operation<Channel, OperationMetadata>> UpdateChannelAsync(UpdateChannelRequest request, CallSettings callSettings = null)

Updates the specified channel.

Parameters
NameDescription
requestUpdateChannelRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationChannelOperationMetadata

A Task containing the RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateChannelRequest request = new UpdateChannelRequest
{
    UpdateMask = new FieldMask(),
    Channel = new Channel(),
    RequestId = "",
};
// Make the request
Operation<Channel, OperationMetadata> response = await livestreamServiceClient.UpdateChannelAsync(request);

// Poll until the returned long-running operation is complete
Operation<Channel, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Channel result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Channel, OperationMetadata> retrievedResponse = await livestreamServiceClient.PollOnceUpdateChannelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Channel retrievedResult = retrievedResponse.Result;
}

UpdateChannelAsync(UpdateChannelRequest, CancellationToken)

public virtual Task<Operation<Channel, OperationMetadata>> UpdateChannelAsync(UpdateChannelRequest request, CancellationToken cancellationToken)

Updates the specified channel.

Parameters
NameDescription
requestUpdateChannelRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationChannelOperationMetadata

A Task containing the RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateChannelRequest request = new UpdateChannelRequest
{
    UpdateMask = new FieldMask(),
    Channel = new Channel(),
    RequestId = "",
};
// Make the request
Operation<Channel, OperationMetadata> response = await livestreamServiceClient.UpdateChannelAsync(request);

// Poll until the returned long-running operation is complete
Operation<Channel, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Channel result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Channel, OperationMetadata> retrievedResponse = await livestreamServiceClient.PollOnceUpdateChannelAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Channel retrievedResult = retrievedResponse.Result;
}

UpdateInput(Input, FieldMask, CallSettings)

public virtual Operation<Input, OperationMetadata> UpdateInput(Input input, FieldMask updateMask, CallSettings callSettings = null)

Updates the specified input.

Parameters
NameDescription
inputInput

Required. The input resource to be updated.

updateMaskFieldMask

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationInputOperationMetadata

The RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.Create();
// Initialize request argument(s)
Input input = new Input();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Input, OperationMetadata> response = livestreamServiceClient.UpdateInput(input, updateMask);

// Poll until the returned long-running operation is complete
Operation<Input, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Input result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Input, OperationMetadata> retrievedResponse = livestreamServiceClient.PollOnceUpdateInput(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Input retrievedResult = retrievedResponse.Result;
}

UpdateInput(UpdateInputRequest, CallSettings)

public virtual Operation<Input, OperationMetadata> UpdateInput(UpdateInputRequest request, CallSettings callSettings = null)

Updates the specified input.

Parameters
NameDescription
requestUpdateInputRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationInputOperationMetadata

The RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.Create();
// Initialize request argument(s)
UpdateInputRequest request = new UpdateInputRequest
{
    UpdateMask = new FieldMask(),
    Input = new Input(),
    RequestId = "",
};
// Make the request
Operation<Input, OperationMetadata> response = livestreamServiceClient.UpdateInput(request);

// Poll until the returned long-running operation is complete
Operation<Input, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Input result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Input, OperationMetadata> retrievedResponse = livestreamServiceClient.PollOnceUpdateInput(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Input retrievedResult = retrievedResponse.Result;
}

UpdateInputAsync(Input, FieldMask, CallSettings)

public virtual Task<Operation<Input, OperationMetadata>> UpdateInputAsync(Input input, FieldMask updateMask, CallSettings callSettings = null)

Updates the specified input.

Parameters
NameDescription
inputInput

Required. The input resource to be updated.

updateMaskFieldMask

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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationInputOperationMetadata

A Task containing the RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
Input input = new Input();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Input, OperationMetadata> response = await livestreamServiceClient.UpdateInputAsync(input, updateMask);

// Poll until the returned long-running operation is complete
Operation<Input, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Input result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Input, OperationMetadata> retrievedResponse = await livestreamServiceClient.PollOnceUpdateInputAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Input retrievedResult = retrievedResponse.Result;
}

UpdateInputAsync(Input, FieldMask, CancellationToken)

public virtual Task<Operation<Input, OperationMetadata>> UpdateInputAsync(Input input, FieldMask updateMask, CancellationToken cancellationToken)

Updates the specified input.

Parameters
NameDescription
inputInput

Required. The input resource to be updated.

updateMaskFieldMask

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.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationInputOperationMetadata

A Task containing the RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
Input input = new Input();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Input, OperationMetadata> response = await livestreamServiceClient.UpdateInputAsync(input, updateMask);

// Poll until the returned long-running operation is complete
Operation<Input, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Input result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Input, OperationMetadata> retrievedResponse = await livestreamServiceClient.PollOnceUpdateInputAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Input retrievedResult = retrievedResponse.Result;
}

UpdateInputAsync(UpdateInputRequest, CallSettings)

public virtual Task<Operation<Input, OperationMetadata>> UpdateInputAsync(UpdateInputRequest request, CallSettings callSettings = null)

Updates the specified input.

Parameters
NameDescription
requestUpdateInputRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationInputOperationMetadata

A Task containing the RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateInputRequest request = new UpdateInputRequest
{
    UpdateMask = new FieldMask(),
    Input = new Input(),
    RequestId = "",
};
// Make the request
Operation<Input, OperationMetadata> response = await livestreamServiceClient.UpdateInputAsync(request);

// Poll until the returned long-running operation is complete
Operation<Input, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Input result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Input, OperationMetadata> retrievedResponse = await livestreamServiceClient.PollOnceUpdateInputAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Input retrievedResult = retrievedResponse.Result;
}

UpdateInputAsync(UpdateInputRequest, CancellationToken)

public virtual Task<Operation<Input, OperationMetadata>> UpdateInputAsync(UpdateInputRequest request, CancellationToken cancellationToken)

Updates the specified input.

Parameters
NameDescription
requestUpdateInputRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
TaskOperationInputOperationMetadata

A Task containing the RPC response.

Example
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateInputRequest request = new UpdateInputRequest
{
    UpdateMask = new FieldMask(),
    Input = new Input(),
    RequestId = "",
};
// Make the request
Operation<Input, OperationMetadata> response = await livestreamServiceClient.UpdateInputAsync(request);

// Poll until the returned long-running operation is complete
Operation<Input, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Input result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Input, OperationMetadata> retrievedResponse = await livestreamServiceClient.PollOnceUpdateInputAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    Input retrievedResult = retrievedResponse.Result;
}