public abstract class LivestreamServiceClient
Reference documentation and code samples for the Live Stream v1 API class LivestreamServiceClient.
LivestreamService client wrapper, for convenient use.
Derived Types
Namespace
Google.Cloud.Video.LiveStream.V1Assembly
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 | |
---|---|
Type | Description |
OperationsClient |
CreateInputOperationsClient
public virtual OperationsClient CreateInputOperationsClient { get; }
The long-running operations client for CreateInput
.
Property Value | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
String |
DefaultScopes
public static IReadOnlyList<string> DefaultScopes { get; }
The default LivestreamService scopes.
Property Value | |
---|---|
Type | Description |
IReadOnlyList<String> |
The default LivestreamService scopes are:
DeleteChannelOperationsClient
public virtual OperationsClient DeleteChannelOperationsClient { get; }
The long-running operations client for DeleteChannel
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
DeleteInputOperationsClient
public virtual OperationsClient DeleteInputOperationsClient { get; }
The long-running operations client for DeleteInput
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
GrpcClient
public virtual LivestreamService.LivestreamServiceClient GrpcClient { get; }
The underlying gRPC LivestreamService client
Property Value | |
---|---|
Type | Description |
LivestreamService.LivestreamServiceClient |
ServiceMetadata
public static ServiceMetadata ServiceMetadata { get; }
The service metadata associated with this client type.
Property Value | |
---|---|
Type | Description |
ServiceMetadata |
StartChannelOperationsClient
public virtual OperationsClient StartChannelOperationsClient { get; }
The long-running operations client for StartChannel
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
StopChannelOperationsClient
public virtual OperationsClient StopChannelOperationsClient { get; }
The long-running operations client for StopChannel
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
UpdateChannelOperationsClient
public virtual OperationsClient UpdateChannelOperationsClient { get; }
The long-running operations client for UpdateChannel
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
UpdateInputOperationsClient
public virtual OperationsClient UpdateInputOperationsClient { get; }
The long-running operations client for UpdateInput
.
Property Value | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
LivestreamServiceClient | The created LivestreamServiceClient. |
CreateAsync(CancellationToken)
public static Task<LivestreamServiceClient> CreateAsync(CancellationToken cancellationToken = default(CancellationToken))
Asynchronously creates a LivestreamServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use LivestreamServiceClientBuilder.
Parameter | |
---|---|
Name | Description |
cancellationToken | CancellationToken The CancellationToken to use while creating the client. |
Returns | |
---|---|
Type | Description |
Task<LivestreamServiceClient> | 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 | |
---|---|
Name | Description |
parent | LocationName Required. The parent location for the resource, in the form of:
|
channel | Channel Required. The channel resource to be created. |
channelId | String Required. The ID of the channel resource to be created.
This value must be 1-63 characters, begin and end with |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Channel, OperationMetadata> | The RPC response. |
// 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 | |
---|---|
Name | Description |
request | CreateChannelRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Channel, OperationMetadata> | The RPC response. |
// 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 | |
---|---|
Name | Description |
parent | String Required. The parent location for the resource, in the form of:
|
channel | Channel Required. The channel resource to be created. |
channelId | String Required. The ID of the channel resource to be created.
This value must be 1-63 characters, begin and end with |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Channel, OperationMetadata> | The RPC response. |
// 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 | |
---|---|
Name | Description |
parent | LocationName Required. The parent location for the resource, in the form of:
|
channel | Channel Required. The channel resource to be created. |
channelId | String Required. The ID of the channel resource to be created.
This value must be 1-63 characters, begin and end with |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Channel, OperationMetadata>> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent | LocationName Required. The parent location for the resource, in the form of:
|
channel | Channel Required. The channel resource to be created. |
channelId | String Required. The ID of the channel resource to be created.
This value must be 1-63 characters, begin and end with |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Channel, OperationMetadata>> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request | CreateChannelRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Channel, OperationMetadata>> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request | CreateChannelRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Channel, OperationMetadata>> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent | String Required. The parent location for the resource, in the form of:
|
channel | Channel Required. The channel resource to be created. |
channelId | String Required. The ID of the channel resource to be created.
This value must be 1-63 characters, begin and end with |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Channel, OperationMetadata>> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent | String Required. The parent location for the resource, in the form of:
|
channel | Channel Required. The channel resource to be created. |
channelId | String Required. The ID of the channel resource to be created.
This value must be 1-63 characters, begin and end with |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Channel, OperationMetadata>> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent | ChannelName Required. The parent channel for the resource, in the form of:
|
event | Event Required. The event resource to be created. |
eventId | String Required. The ID of the event resource to be created.
This value must be 1-63 characters, begin and end with |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Event | The RPC response. |
// 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 | |
---|---|
Name | Description |
request | CreateEventRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Event | The RPC response. |
// 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 | |
---|---|
Name | Description |
parent | String Required. The parent channel for the resource, in the form of:
|
event | Event Required. The event resource to be created. |
eventId | String Required. The ID of the event resource to be created.
This value must be 1-63 characters, begin and end with |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Event | The RPC response. |
// 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 | |
---|---|
Name | Description |
parent | ChannelName Required. The parent channel for the resource, in the form of:
|
event | Event Required. The event resource to be created. |
eventId | String Required. The ID of the event resource to be created.
This value must be 1-63 characters, begin and end with |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Event> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent | ChannelName Required. The parent channel for the resource, in the form of:
|
event | Event Required. The event resource to be created. |
eventId | String Required. The ID of the event resource to be created.
This value must be 1-63 characters, begin and end with |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Event> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request | CreateEventRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Event> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request | CreateEventRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Event> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent | String Required. The parent channel for the resource, in the form of:
|
event | Event Required. The event resource to be created. |
eventId | String Required. The ID of the event resource to be created.
This value must be 1-63 characters, begin and end with |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Event> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent | String Required. The parent channel for the resource, in the form of:
|
event | Event Required. The event resource to be created. |
eventId | String Required. The ID of the event resource to be created.
This value must be 1-63 characters, begin and end with |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Event> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent | LocationName Required. The parent location for the resource, in the form of:
|
input | Input Required. The input resource to be created. |
inputId | String Required. The ID of the input resource to be created.
This value must be 1-63 characters, begin and end with |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Input, OperationMetadata> | The RPC response. |
// 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 | |
---|---|
Name | Description |
request | CreateInputRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Input, OperationMetadata> | The RPC response. |
// 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 | |
---|---|
Name | Description |
parent | String Required. The parent location for the resource, in the form of:
|
input | Input Required. The input resource to be created. |
inputId | String Required. The ID of the input resource to be created.
This value must be 1-63 characters, begin and end with |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Input, OperationMetadata> | The RPC response. |
// 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 | |
---|---|
Name | Description |
parent | LocationName Required. The parent location for the resource, in the form of:
|
input | Input Required. The input resource to be created. |
inputId | String Required. The ID of the input resource to be created.
This value must be 1-63 characters, begin and end with |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Input, OperationMetadata>> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent | LocationName Required. The parent location for the resource, in the form of:
|
input | Input Required. The input resource to be created. |
inputId | String Required. The ID of the input resource to be created.
This value must be 1-63 characters, begin and end with |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Input, OperationMetadata>> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request | CreateInputRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Input, OperationMetadata>> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request | CreateInputRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Input, OperationMetadata>> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent | String Required. The parent location for the resource, in the form of:
|
input | Input Required. The input resource to be created. |
inputId | String Required. The ID of the input resource to be created.
This value must be 1-63 characters, begin and end with |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Input, OperationMetadata>> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
parent | String Required. The parent location for the resource, in the form of:
|
input | Input Required. The input resource to be created. |
inputId | String Required. The ID of the input resource to be created.
This value must be 1-63 characters, begin and end with |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Input, OperationMetadata>> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
name | ChannelName Required. The name of the channel resource, in the form of:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Empty, OperationMetadata> | The RPC response. |
// 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 | |
---|---|
Name | Description |
request | DeleteChannelRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Empty, OperationMetadata> | The RPC response. |
// 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 | |
---|---|
Name | Description |
name | String Required. The name of the channel resource, in the form of:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Empty, OperationMetadata> | The RPC response. |
// 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 | |
---|---|
Name | Description |
name | ChannelName Required. The name of the channel resource, in the form of:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
name | ChannelName Required. The name of the channel resource, in the form of:
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request | DeleteChannelRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request | DeleteChannelRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
name | String Required. The name of the channel resource, in the form of:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
name | String Required. The name of the channel resource, in the form of:
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request | DeleteEventRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
// 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 | |
---|---|
Name | Description |
name | EventName Required. The name of the event resource, in the form of:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
// 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 | |
---|---|
Name | Description |
name | String Required. The name of the event resource, in the form of:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
// 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 | |
---|---|
Name | Description |
request | DeleteEventRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request | DeleteEventRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
name | EventName Required. The name of the event resource, in the form of:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
name | EventName Required. The name of the event resource, in the form of:
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
name | String Required. The name of the event resource, in the form of:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
name | String Required. The name of the event resource, in the form of:
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request | DeleteInputRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Empty, OperationMetadata> | The RPC response. |
// 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 | |
---|---|
Name | Description |
name | InputName Required. The name of the input resource, in the form of:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Empty, OperationMetadata> | The RPC response. |
// 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 | |
---|---|
Name | Description |
name | String Required. The name of the input resource, in the form of:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Empty, OperationMetadata> | The RPC response. |
// 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 | |
---|---|
Name | Description |
request | DeleteInputRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request | DeleteInputRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
name | InputName Required. The name of the input resource, in the form of:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
name | InputName Required. The name of the input resource, in the form of:
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
name | String Required. The name of the input resource, in the form of:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
name | String Required. The name of the input resource, in the form of:
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
name | ChannelName Required. The name of the channel resource, in the form of:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Channel | The RPC response. |
// 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 | |
---|---|
Name | Description |
request | GetChannelRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Channel | The RPC response. |
// 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 | |
---|---|
Name | Description |
name | String Required. The name of the channel resource, in the form of:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Channel | The RPC response. |
// 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 | |
---|---|
Name | Description |
name | ChannelName Required. The name of the channel resource, in the form of:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Channel> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
name | ChannelName Required. The name of the channel resource, in the form of:
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Channel> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request | GetChannelRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Channel> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request | GetChannelRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Channel> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
name | String Required. The name of the channel resource, in the form of:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Channel> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
name | String Required. The name of the channel resource, in the form of:
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Channel> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
name | EventName Required. The name of the event resource, in the form of:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Event | The RPC response. |
// 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 | |
---|---|
Name | Description |
request | GetEventRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Event | The RPC response. |
// 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 | |
---|---|
Name | Description |
name | String Required. The name of the event resource, in the form of:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Event | The RPC response. |
// 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 | |
---|---|
Name | Description |
name | EventName Required. The name of the event resource, in the form of:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Event> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
name | EventName Required. The name of the event resource, in the form of:
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Event> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request | GetEventRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Event> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request | GetEventRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Event> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
name | String Required. The name of the event resource, in the form of:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Event> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
name | String Required. The name of the event resource, in the form of:
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Event> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request | GetInputRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Input | The RPC response. |
// 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 | |
---|---|
Name | Description |
name | InputName Required. The name of the input resource, in the form of:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Input | The RPC response. |
// 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 | |
---|---|
Name | Description |
name | String Required. The name of the input resource, in the form of:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Input | The RPC response. |
// 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 | |
---|---|
Name | Description |
request | GetInputRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Input> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request | GetInputRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Input> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
name | InputName Required. The name of the input resource, in the form of:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Input> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
name | InputName Required. The name of the input resource, in the form of:
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Input> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
name | String Required. The name of the input resource, in the form of:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Input> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
name | String Required. The name of the input resource, in the form of:
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Input> | A Task containing the RPC response. |
// 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, Nullable<Int32>, 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 | |
---|---|
Name | Description |
parent | LocationName Required. The parent location for the resource, in the form of:
|
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListChannelsResponse, Channel> | A pageable sequence of Channel resources. |
// 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 | |
---|---|
Name | Description |
request | ListChannelsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListChannelsResponse, Channel> | A pageable sequence of Channel resources. |
// 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, Nullable<Int32>, 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 | |
---|---|
Name | Description |
parent | String Required. The parent location for the resource, in the form of:
|
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListChannelsResponse, Channel> | A pageable sequence of Channel resources. |
// 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, Nullable<Int32>, 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 | |
---|---|
Name | Description |
parent | LocationName Required. The parent location for the resource, in the form of:
|
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListChannelsResponse, Channel> | A pageable asynchronous sequence of Channel resources. |
// 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 | |
---|---|
Name | Description |
request | ListChannelsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListChannelsResponse, Channel> | A pageable asynchronous sequence of Channel resources. |
// 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, Nullable<Int32>, 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 | |
---|---|
Name | Description |
parent | String Required. The parent location for the resource, in the form of:
|
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListChannelsResponse, Channel> | A pageable asynchronous sequence of Channel resources. |
// 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, Nullable<Int32>, 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 | |
---|---|
Name | Description |
parent | ChannelName Required. The parent channel for the resource, in the form of:
|
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListEventsResponse, Event> | A pageable sequence of Event resources. |
// 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 | |
---|---|
Name | Description |
request | ListEventsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListEventsResponse, Event> | A pageable sequence of Event resources. |
// 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, Nullable<Int32>, 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 | |
---|---|
Name | Description |
parent | String Required. The parent channel for the resource, in the form of:
|
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListEventsResponse, Event> | A pageable sequence of Event resources. |
// 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, Nullable<Int32>, 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 | |
---|---|
Name | Description |
parent | ChannelName Required. The parent channel for the resource, in the form of:
|
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListEventsResponse, Event> | A pageable asynchronous sequence of Event resources. |
// 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 | |
---|---|
Name | Description |
request | ListEventsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListEventsResponse, Event> | A pageable asynchronous sequence of Event resources. |
// 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, Nullable<Int32>, 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 | |
---|---|
Name | Description |
parent | String Required. The parent channel for the resource, in the form of:
|
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListEventsResponse, Event> | A pageable asynchronous sequence of Event resources. |
// 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, Nullable<Int32>, 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 | |
---|---|
Name | Description |
parent | LocationName Required. The parent location for the resource, in the form of:
|
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListInputsResponse, Input> | A pageable sequence of Input resources. |
// 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 | |
---|---|
Name | Description |
request | ListInputsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListInputsResponse, Input> | A pageable sequence of Input resources. |
// 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, Nullable<Int32>, 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 | |
---|---|
Name | Description |
parent | String Required. The parent location for the resource, in the form of:
|
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListInputsResponse, Input> | A pageable sequence of Input resources. |
// 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, Nullable<Int32>, 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 | |
---|---|
Name | Description |
parent | LocationName Required. The parent location for the resource, in the form of:
|
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListInputsResponse, Input> | A pageable asynchronous sequence of Input resources. |
// 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 | |
---|---|
Name | Description |
request | ListInputsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListInputsResponse, Input> | A pageable asynchronous sequence of Input resources. |
// 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, Nullable<Int32>, 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 | |
---|---|
Name | Description |
parent | String Required. The parent location for the resource, in the form of:
|
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListInputsResponse, Input> | A pageable asynchronous sequence of Input resources. |
// 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 | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Channel, OperationMetadata> | 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 | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Channel, OperationMetadata>> | 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 | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Input, OperationMetadata> | 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 | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Input, OperationMetadata>> | 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 | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Empty, OperationMetadata> | 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 | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OperationMetadata>> | 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 | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Empty, OperationMetadata> | 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 | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OperationMetadata>> | 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 | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<ChannelOperationResponse, OperationMetadata> | 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 | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<ChannelOperationResponse, OperationMetadata>> | 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 | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<ChannelOperationResponse, OperationMetadata> | 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 | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<ChannelOperationResponse, OperationMetadata>> | 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 | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Channel, OperationMetadata> | 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 | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Channel, OperationMetadata>> | 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 | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Input, OperationMetadata> | 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 | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Input, OperationMetadata>> | 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 | |
---|---|
Type | Description |
Task | A task representing the asynchronous shutdown operation. |
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 | |
---|---|
Name | Description |
name | ChannelName Required. The name of the channel resource, in the form of:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<ChannelOperationResponse, OperationMetadata> | The RPC response. |
// 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 | |
---|---|
Name | Description |
request | StartChannelRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<ChannelOperationResponse, OperationMetadata> | The RPC response. |
// 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 | |
---|---|
Name | Description |
name | String Required. The name of the channel resource, in the form of:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<ChannelOperationResponse, OperationMetadata> | The RPC response. |
// 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 | |
---|---|
Name | Description |
name | ChannelName Required. The name of the channel resource, in the form of:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<ChannelOperationResponse, OperationMetadata>> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
name | ChannelName Required. The name of the channel resource, in the form of:
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<ChannelOperationResponse, OperationMetadata>> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request | StartChannelRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<ChannelOperationResponse, OperationMetadata>> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request | StartChannelRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<ChannelOperationResponse, OperationMetadata>> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
name | String Required. The name of the channel resource, in the form of:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<ChannelOperationResponse, OperationMetadata>> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
name | String Required. The name of the channel resource, in the form of:
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<ChannelOperationResponse, OperationMetadata>> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
name | ChannelName Required. The name of the channel resource, in the form of:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<ChannelOperationResponse, OperationMetadata> | The RPC response. |
// 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 | |
---|---|
Name | Description |
request | StopChannelRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<ChannelOperationResponse, OperationMetadata> | The RPC response. |
// 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 | |
---|---|
Name | Description |
name | String Required. The name of the channel resource, in the form of:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<ChannelOperationResponse, OperationMetadata> | The RPC response. |
// 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 | |
---|---|
Name | Description |
name | ChannelName Required. The name of the channel resource, in the form of:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<ChannelOperationResponse, OperationMetadata>> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
name | ChannelName Required. The name of the channel resource, in the form of:
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<ChannelOperationResponse, OperationMetadata>> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request | StopChannelRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<ChannelOperationResponse, OperationMetadata>> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request | StopChannelRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<ChannelOperationResponse, OperationMetadata>> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
name | String Required. The name of the channel resource, in the form of:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<ChannelOperationResponse, OperationMetadata>> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
name | String Required. The name of the channel resource, in the form of:
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<ChannelOperationResponse, OperationMetadata>> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
channel | Channel Required. The channel resource to be updated. |
updateMask | FieldMask Field mask is used to specify the fields to be overwritten in the Channel resource by the update. You can only update the following fields: The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Channel, OperationMetadata> | The RPC response. |
// 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 | |
---|---|
Name | Description |
request | UpdateChannelRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Channel, OperationMetadata> | The RPC response. |
// 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 | |
---|---|
Name | Description |
channel | Channel Required. The channel resource to be updated. |
updateMask | FieldMask Field mask is used to specify the fields to be overwritten in the Channel resource by the update. You can only update the following fields: The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Channel, OperationMetadata>> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
channel | Channel Required. The channel resource to be updated. |
updateMask | FieldMask Field mask is used to specify the fields to be overwritten in the Channel resource by the update. You can only update the following fields: The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Channel, OperationMetadata>> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request | UpdateChannelRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Channel, OperationMetadata>> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request | UpdateChannelRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Channel, OperationMetadata>> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
input | Input Required. The input resource to be updated. |
updateMask | FieldMask Field mask is used to specify the fields to be overwritten in the Input resource by the update. You can only update the following fields: The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Input, OperationMetadata> | The RPC response. |
// 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 | |
---|---|
Name | Description |
request | UpdateInputRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Input, OperationMetadata> | The RPC response. |
// 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 | |
---|---|
Name | Description |
input | Input Required. The input resource to be updated. |
updateMask | FieldMask Field mask is used to specify the fields to be overwritten in the Input resource by the update. You can only update the following fields: The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Input, OperationMetadata>> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
input | Input Required. The input resource to be updated. |
updateMask | FieldMask Field mask is used to specify the fields to be overwritten in the Input resource by the update. You can only update the following fields: The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Input, OperationMetadata>> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request | UpdateInputRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Input, OperationMetadata>> | A Task containing the RPC response. |
// 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 | |
---|---|
Name | Description |
request | UpdateInputRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Input, OperationMetadata>> | A Task containing the RPC response. |
// 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;
}