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
CreateAssetOperationsClient
public virtual OperationsClient CreateAssetOperationsClient { get; }
The long-running operations client for CreateAsset
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
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 |
IReadOnlyListstring |
The default LivestreamService scopes are:
DeleteAssetOperationsClient
public virtual OperationsClient DeleteAssetOperationsClient { get; }
The long-running operations client for DeleteAsset
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
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 |
LivestreamServiceLivestreamServiceClient |
LocationsClient
public virtual LocationsClient LocationsClient { get; }
The LocationsClient associated with this client.
Property Value | |
---|---|
Type | Description |
LocationsClient |
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 |
UpdatePoolOperationsClient
public virtual OperationsClient UpdatePoolOperationsClient { get; }
The long-running operations client for UpdatePool
.
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. |
CreateAsset(LocationName, Asset, string, CallSettings)
public virtual Operation<Asset, OperationMetadata> CreateAsset(LocationName parent, Asset asset, string assetId, CallSettings callSettings = null)
Creates a Asset 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:
|
asset | Asset Required. The asset resource to be created. |
assetId | string Required. The ID of the asset resource to be created.
This value must be 1-63 characters, begin and end with |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationAssetOperationMetadata | The RPC response. |
// Create client
LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Asset asset = new Asset();
string assetId = "";
// Make the request
Operation<Asset, OperationMetadata> response = livestreamServiceClient.CreateAsset(parent, asset, assetId);
// Poll until the returned long-running operation is complete
Operation<Asset, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Asset 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<Asset, OperationMetadata> retrievedResponse = livestreamServiceClient.PollOnceCreateAsset(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Asset retrievedResult = retrievedResponse.Result;
}
CreateAsset(CreateAssetRequest, CallSettings)
public virtual Operation<Asset, OperationMetadata> CreateAsset(CreateAssetRequest request, CallSettings callSettings = null)
Creates a Asset with the provided unique ID in the specified region.
Parameters | |
---|---|
Name | Description |
request | CreateAssetRequest 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 |
OperationAssetOperationMetadata | The RPC response. |
// Create client
LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.Create();
// Initialize request argument(s)
CreateAssetRequest request = new CreateAssetRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Asset = new Asset(),
AssetId = "",
RequestId = "",
};
// Make the request
Operation<Asset, OperationMetadata> response = livestreamServiceClient.CreateAsset(request);
// Poll until the returned long-running operation is complete
Operation<Asset, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Asset 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<Asset, OperationMetadata> retrievedResponse = livestreamServiceClient.PollOnceCreateAsset(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Asset retrievedResult = retrievedResponse.Result;
}
CreateAsset(string, Asset, string, CallSettings)
public virtual Operation<Asset, OperationMetadata> CreateAsset(string parent, Asset asset, string assetId, CallSettings callSettings = null)
Creates a Asset 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:
|
asset | Asset Required. The asset resource to be created. |
assetId | string Required. The ID of the asset resource to be created.
This value must be 1-63 characters, begin and end with |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationAssetOperationMetadata | The RPC response. |
// Create client
LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Asset asset = new Asset();
string assetId = "";
// Make the request
Operation<Asset, OperationMetadata> response = livestreamServiceClient.CreateAsset(parent, asset, assetId);
// Poll until the returned long-running operation is complete
Operation<Asset, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Asset 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<Asset, OperationMetadata> retrievedResponse = livestreamServiceClient.PollOnceCreateAsset(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Asset retrievedResult = retrievedResponse.Result;
}
CreateAssetAsync(LocationName, Asset, string, CallSettings)
public virtual Task<Operation<Asset, OperationMetadata>> CreateAssetAsync(LocationName parent, Asset asset, string assetId, CallSettings callSettings = null)
Creates a Asset 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:
|
asset | Asset Required. The asset resource to be created. |
assetId | string Required. The ID of the asset resource to be created.
This value must be 1-63 characters, begin and end with |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationAssetOperationMetadata | A Task containing the RPC response. |
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Asset asset = new Asset();
string assetId = "";
// Make the request
Operation<Asset, OperationMetadata> response = await livestreamServiceClient.CreateAssetAsync(parent, asset, assetId);
// Poll until the returned long-running operation is complete
Operation<Asset, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Asset 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<Asset, OperationMetadata> retrievedResponse = await livestreamServiceClient.PollOnceCreateAssetAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Asset retrievedResult = retrievedResponse.Result;
}
CreateAssetAsync(LocationName, Asset, string, CancellationToken)
public virtual Task<Operation<Asset, OperationMetadata>> CreateAssetAsync(LocationName parent, Asset asset, string assetId, CancellationToken cancellationToken)
Creates a Asset 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:
|
asset | Asset Required. The asset resource to be created. |
assetId | string Required. The ID of the asset resource to be created.
This value must be 1-63 characters, begin and end with |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationAssetOperationMetadata | A Task containing the RPC response. |
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Asset asset = new Asset();
string assetId = "";
// Make the request
Operation<Asset, OperationMetadata> response = await livestreamServiceClient.CreateAssetAsync(parent, asset, assetId);
// Poll until the returned long-running operation is complete
Operation<Asset, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Asset 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<Asset, OperationMetadata> retrievedResponse = await livestreamServiceClient.PollOnceCreateAssetAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Asset retrievedResult = retrievedResponse.Result;
}
CreateAssetAsync(CreateAssetRequest, CallSettings)
public virtual Task<Operation<Asset, OperationMetadata>> CreateAssetAsync(CreateAssetRequest request, CallSettings callSettings = null)
Creates a Asset with the provided unique ID in the specified region.
Parameters | |
---|---|
Name | Description |
request | CreateAssetRequest 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 |
TaskOperationAssetOperationMetadata | A Task containing the RPC response. |
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
CreateAssetRequest request = new CreateAssetRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Asset = new Asset(),
AssetId = "",
RequestId = "",
};
// Make the request
Operation<Asset, OperationMetadata> response = await livestreamServiceClient.CreateAssetAsync(request);
// Poll until the returned long-running operation is complete
Operation<Asset, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Asset 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<Asset, OperationMetadata> retrievedResponse = await livestreamServiceClient.PollOnceCreateAssetAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Asset retrievedResult = retrievedResponse.Result;
}
CreateAssetAsync(CreateAssetRequest, CancellationToken)
public virtual Task<Operation<Asset, OperationMetadata>> CreateAssetAsync(CreateAssetRequest request, CancellationToken cancellationToken)
Creates a Asset with the provided unique ID in the specified region.
Parameters | |
---|---|
Name | Description |
request | CreateAssetRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationAssetOperationMetadata | A Task containing the RPC response. |
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
CreateAssetRequest request = new CreateAssetRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Asset = new Asset(),
AssetId = "",
RequestId = "",
};
// Make the request
Operation<Asset, OperationMetadata> response = await livestreamServiceClient.CreateAssetAsync(request);
// Poll until the returned long-running operation is complete
Operation<Asset, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Asset 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<Asset, OperationMetadata> retrievedResponse = await livestreamServiceClient.PollOnceCreateAssetAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Asset retrievedResult = retrievedResponse.Result;
}
CreateAssetAsync(string, Asset, string, CallSettings)
public virtual Task<Operation<Asset, OperationMetadata>> CreateAssetAsync(string parent, Asset asset, string assetId, CallSettings callSettings = null)
Creates a Asset 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:
|
asset | Asset Required. The asset resource to be created. |
assetId | string Required. The ID of the asset resource to be created.
This value must be 1-63 characters, begin and end with |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationAssetOperationMetadata | A Task containing the RPC response. |
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Asset asset = new Asset();
string assetId = "";
// Make the request
Operation<Asset, OperationMetadata> response = await livestreamServiceClient.CreateAssetAsync(parent, asset, assetId);
// Poll until the returned long-running operation is complete
Operation<Asset, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Asset 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<Asset, OperationMetadata> retrievedResponse = await livestreamServiceClient.PollOnceCreateAssetAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Asset retrievedResult = retrievedResponse.Result;
}
CreateAssetAsync(string, Asset, string, CancellationToken)
public virtual Task<Operation<Asset, OperationMetadata>> CreateAssetAsync(string parent, Asset asset, string assetId, CancellationToken cancellationToken)
Creates a Asset 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:
|
asset | Asset Required. The asset resource to be created. |
assetId | string Required. The ID of the asset resource to be created.
This value must be 1-63 characters, begin and end with |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationAssetOperationMetadata | A Task containing the RPC response. |
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Asset asset = new Asset();
string assetId = "";
// Make the request
Operation<Asset, OperationMetadata> response = await livestreamServiceClient.CreateAssetAsync(parent, asset, assetId);
// Poll until the returned long-running operation is complete
Operation<Asset, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Asset 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<Asset, OperationMetadata> retrievedResponse = await livestreamServiceClient.PollOnceCreateAssetAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Asset retrievedResult = retrievedResponse.Result;
}
CreateAsync(CancellationToken)
public static Task<LivestreamServiceClient> CreateAsync(CancellationToken cancellationToken = default)
Asynchronously creates a LivestreamServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use LivestreamServiceClientBuilder.
Parameter | |
---|---|
Name | Description |
cancellationToken | CancellationToken The CancellationToken to use while creating the client. |
Returns | |
---|---|
Type | Description |
TaskLivestreamServiceClient | The task representing the created LivestreamServiceClient. |
CreateChannel(LocationName, Channel, string, CallSettings)
public virtual Operation<Channel, OperationMetadata> CreateChannel(LocationName parent, Channel channel, string channelId, CallSettings callSettings = null)
Creates a channel with the provided unique ID in the specified region.
Parameters | |
---|---|
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 |
OperationChannelOperationMetadata | 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 |
OperationChannelOperationMetadata | 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 |
OperationChannelOperationMetadata | 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 |
TaskOperationChannelOperationMetadata | 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 |
TaskOperationChannelOperationMetadata | 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 |
TaskOperationChannelOperationMetadata | 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 |
TaskOperationChannelOperationMetadata | 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 |
TaskOperationChannelOperationMetadata | 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 |
TaskOperationChannelOperationMetadata | 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 |
TaskEvent | 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 |
TaskEvent | 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 |
TaskEvent | 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 |
TaskEvent | 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 |
TaskEvent | 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 |
TaskEvent | 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 |
OperationInputOperationMetadata | 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 |
OperationInputOperationMetadata | 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 |
OperationInputOperationMetadata | 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 |
TaskOperationInputOperationMetadata | 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 |
TaskOperationInputOperationMetadata | 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 |
TaskOperationInputOperationMetadata | 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 |
TaskOperationInputOperationMetadata | 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 |
TaskOperationInputOperationMetadata | 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 |
TaskOperationInputOperationMetadata | 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;
}
DeleteAsset(AssetName, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteAsset(AssetName name, CallSettings callSettings = null)
Deletes the specified asset if it is not used.
Parameters | |
---|---|
Name | Description |
name | AssetName Required. The name of the asset resource, in the form of:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata | The RPC response. |
// Create client
LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.Create();
// Initialize request argument(s)
AssetName name = AssetName.FromProjectLocationAsset("[PROJECT]", "[LOCATION]", "[ASSET]");
// Make the request
Operation<Empty, OperationMetadata> response = livestreamServiceClient.DeleteAsset(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.PollOnceDeleteAsset(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;
}
DeleteAsset(DeleteAssetRequest, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteAsset(DeleteAssetRequest request, CallSettings callSettings = null)
Deletes the specified asset if it is not used.
Parameters | |
---|---|
Name | Description |
request | DeleteAssetRequest 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 |
OperationEmptyOperationMetadata | The RPC response. |
// Create client
LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.Create();
// Initialize request argument(s)
DeleteAssetRequest request = new DeleteAssetRequest
{
AssetName = AssetName.FromProjectLocationAsset("[PROJECT]", "[LOCATION]", "[ASSET]"),
RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = livestreamServiceClient.DeleteAsset(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.PollOnceDeleteAsset(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;
}
DeleteAsset(string, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteAsset(string name, CallSettings callSettings = null)
Deletes the specified asset if it is not used.
Parameters | |
---|---|
Name | Description |
name | string Required. The name of the asset resource, in the form of:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata | The RPC response. |
// Create client
LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/assets/[ASSET]";
// Make the request
Operation<Empty, OperationMetadata> response = livestreamServiceClient.DeleteAsset(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.PollOnceDeleteAsset(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;
}
DeleteAssetAsync(AssetName, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteAssetAsync(AssetName name, CallSettings callSettings = null)
Deletes the specified asset if it is not used.
Parameters | |
---|---|
Name | Description |
name | AssetName Required. The name of the asset resource, in the form of:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata | A Task containing the RPC response. |
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
AssetName name = AssetName.FromProjectLocationAsset("[PROJECT]", "[LOCATION]", "[ASSET]");
// Make the request
Operation<Empty, OperationMetadata> response = await livestreamServiceClient.DeleteAssetAsync(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.PollOnceDeleteAssetAsync(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;
}
DeleteAssetAsync(AssetName, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteAssetAsync(AssetName name, CancellationToken cancellationToken)
Deletes the specified asset if it is not used.
Parameters | |
---|---|
Name | Description |
name | AssetName Required. The name of the asset resource, in the form of:
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata | A Task containing the RPC response. |
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
AssetName name = AssetName.FromProjectLocationAsset("[PROJECT]", "[LOCATION]", "[ASSET]");
// Make the request
Operation<Empty, OperationMetadata> response = await livestreamServiceClient.DeleteAssetAsync(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.PollOnceDeleteAssetAsync(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;
}
DeleteAssetAsync(DeleteAssetRequest, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteAssetAsync(DeleteAssetRequest request, CallSettings callSettings = null)
Deletes the specified asset if it is not used.
Parameters | |
---|---|
Name | Description |
request | DeleteAssetRequest 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 |
TaskOperationEmptyOperationMetadata | A Task containing the RPC response. |
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteAssetRequest request = new DeleteAssetRequest
{
AssetName = AssetName.FromProjectLocationAsset("[PROJECT]", "[LOCATION]", "[ASSET]"),
RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await livestreamServiceClient.DeleteAssetAsync(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.PollOnceDeleteAssetAsync(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;
}
DeleteAssetAsync(DeleteAssetRequest, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteAssetAsync(DeleteAssetRequest request, CancellationToken cancellationToken)
Deletes the specified asset if it is not used.
Parameters | |
---|---|
Name | Description |
request | DeleteAssetRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata | A Task containing the RPC response. |
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteAssetRequest request = new DeleteAssetRequest
{
AssetName = AssetName.FromProjectLocationAsset("[PROJECT]", "[LOCATION]", "[ASSET]"),
RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await livestreamServiceClient.DeleteAssetAsync(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.PollOnceDeleteAssetAsync(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;
}
DeleteAssetAsync(string, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteAssetAsync(string name, CallSettings callSettings = null)
Deletes the specified asset if it is not used.
Parameters | |
---|---|
Name | Description |
name | string Required. The name of the asset resource, in the form of:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata | A Task containing the RPC response. |
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/assets/[ASSET]";
// Make the request
Operation<Empty, OperationMetadata> response = await livestreamServiceClient.DeleteAssetAsync(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.PollOnceDeleteAssetAsync(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;
}
DeleteAssetAsync(string, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteAssetAsync(string name, CancellationToken cancellationToken)
Deletes the specified asset if it is not used.
Parameters | |
---|---|
Name | Description |
name | string Required. The name of the asset resource, in the form of:
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata | A Task containing the RPC response. |
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/assets/[ASSET]";
// Make the request
Operation<Empty, OperationMetadata> response = await livestreamServiceClient.DeleteAssetAsync(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.PollOnceDeleteAssetAsync(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(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 |
OperationEmptyOperationMetadata | 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 |
OperationEmptyOperationMetadata | 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 |
OperationEmptyOperationMetadata | 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 |
TaskOperationEmptyOperationMetadata | 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 |
TaskOperationEmptyOperationMetadata | 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 |
TaskOperationEmptyOperationMetadata | 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 |
TaskOperationEmptyOperationMetadata | 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 |
TaskOperationEmptyOperationMetadata | 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 |
TaskOperationEmptyOperationMetadata | 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 |
OperationEmptyOperationMetadata | 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 |
OperationEmptyOperationMetadata | 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 |
OperationEmptyOperationMetadata | 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 |
TaskOperationEmptyOperationMetadata | 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 |
TaskOperationEmptyOperationMetadata | 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 |
TaskOperationEmptyOperationMetadata | 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 |
TaskOperationEmptyOperationMetadata | 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 |
TaskOperationEmptyOperationMetadata | 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 |
TaskOperationEmptyOperationMetadata | 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;
}
GetAsset(AssetName, CallSettings)
public virtual Asset GetAsset(AssetName name, CallSettings callSettings = null)
Returns the specified asset.
Parameters | |
---|---|
Name | Description |
name | AssetName Required. Name of the resource, in the following form:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Asset | The RPC response. |
// Create client
LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.Create();
// Initialize request argument(s)
AssetName name = AssetName.FromProjectLocationAsset("[PROJECT]", "[LOCATION]", "[ASSET]");
// Make the request
Asset response = livestreamServiceClient.GetAsset(name);
GetAsset(GetAssetRequest, CallSettings)
public virtual Asset GetAsset(GetAssetRequest request, CallSettings callSettings = null)
Returns the specified asset.
Parameters | |
---|---|
Name | Description |
request | GetAssetRequest 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 |
Asset | The RPC response. |
// Create client
LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.Create();
// Initialize request argument(s)
GetAssetRequest request = new GetAssetRequest
{
AssetName = AssetName.FromProjectLocationAsset("[PROJECT]", "[LOCATION]", "[ASSET]"),
};
// Make the request
Asset response = livestreamServiceClient.GetAsset(request);
GetAsset(string, CallSettings)
public virtual Asset GetAsset(string name, CallSettings callSettings = null)
Returns the specified asset.
Parameters | |
---|---|
Name | Description |
name | string Required. Name of the resource, in the following form:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Asset | The RPC response. |
// Create client
LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/assets/[ASSET]";
// Make the request
Asset response = livestreamServiceClient.GetAsset(name);
GetAssetAsync(AssetName, CallSettings)
public virtual Task<Asset> GetAssetAsync(AssetName name, CallSettings callSettings = null)
Returns the specified asset.
Parameters | |
---|---|
Name | Description |
name | AssetName Required. Name of the resource, in the following form:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskAsset | A Task containing the RPC response. |
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
AssetName name = AssetName.FromProjectLocationAsset("[PROJECT]", "[LOCATION]", "[ASSET]");
// Make the request
Asset response = await livestreamServiceClient.GetAssetAsync(name);
GetAssetAsync(AssetName, CancellationToken)
public virtual Task<Asset> GetAssetAsync(AssetName name, CancellationToken cancellationToken)
Returns the specified asset.
Parameters | |
---|---|
Name | Description |
name | AssetName Required. Name of the resource, in the following form:
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskAsset | A Task containing the RPC response. |
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
AssetName name = AssetName.FromProjectLocationAsset("[PROJECT]", "[LOCATION]", "[ASSET]");
// Make the request
Asset response = await livestreamServiceClient.GetAssetAsync(name);
GetAssetAsync(GetAssetRequest, CallSettings)
public virtual Task<Asset> GetAssetAsync(GetAssetRequest request, CallSettings callSettings = null)
Returns the specified asset.
Parameters | |
---|---|
Name | Description |
request | GetAssetRequest 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 |
TaskAsset | A Task containing the RPC response. |
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
GetAssetRequest request = new GetAssetRequest
{
AssetName = AssetName.FromProjectLocationAsset("[PROJECT]", "[LOCATION]", "[ASSET]"),
};
// Make the request
Asset response = await livestreamServiceClient.GetAssetAsync(request);
GetAssetAsync(GetAssetRequest, CancellationToken)
public virtual Task<Asset> GetAssetAsync(GetAssetRequest request, CancellationToken cancellationToken)
Returns the specified asset.
Parameters | |
---|---|
Name | Description |
request | GetAssetRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskAsset | A Task containing the RPC response. |
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
GetAssetRequest request = new GetAssetRequest
{
AssetName = AssetName.FromProjectLocationAsset("[PROJECT]", "[LOCATION]", "[ASSET]"),
};
// Make the request
Asset response = await livestreamServiceClient.GetAssetAsync(request);
GetAssetAsync(string, CallSettings)
public virtual Task<Asset> GetAssetAsync(string name, CallSettings callSettings = null)
Returns the specified asset.
Parameters | |
---|---|
Name | Description |
name | string Required. Name of the resource, in the following form:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskAsset | A Task containing the RPC response. |
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/assets/[ASSET]";
// Make the request
Asset response = await livestreamServiceClient.GetAssetAsync(name);
GetAssetAsync(string, CancellationToken)
public virtual Task<Asset> GetAssetAsync(string name, CancellationToken cancellationToken)
Returns the specified asset.
Parameters | |
---|---|
Name | Description |
name | string Required. Name of the resource, in the following form:
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskAsset | A Task containing the RPC response. |
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/assets/[ASSET]";
// Make the request
Asset response = await livestreamServiceClient.GetAssetAsync(name);
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 |
TaskChannel | 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 |
TaskChannel | 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 |
TaskChannel | 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 |
TaskChannel | 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 |
TaskChannel | 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 |
TaskChannel | 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 |
TaskEvent | 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 |
TaskEvent | 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 |
TaskEvent | 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 |
TaskEvent | 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 |
TaskEvent | 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 |
TaskEvent | 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 |
TaskInput | 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 |
TaskInput | 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 |
TaskInput | 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 |
TaskInput | 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 |
TaskInput | 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 |
TaskInput | 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);
GetPool(GetPoolRequest, CallSettings)
public virtual Pool GetPool(GetPoolRequest request, CallSettings callSettings = null)
Returns the specified pool.
Parameters | |
---|---|
Name | Description |
request | GetPoolRequest 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 |
Pool | The RPC response. |
// Create client
LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.Create();
// Initialize request argument(s)
GetPoolRequest request = new GetPoolRequest
{
PoolName = PoolName.FromProjectLocationPool("[PROJECT]", "[LOCATION]", "[POOL]"),
};
// Make the request
Pool response = livestreamServiceClient.GetPool(request);
GetPool(PoolName, CallSettings)
public virtual Pool GetPool(PoolName name, CallSettings callSettings = null)
Returns the specified pool.
Parameters | |
---|---|
Name | Description |
name | PoolName Required. The name of the pool resource, in the form of:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Pool | The RPC response. |
// Create client
LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.Create();
// Initialize request argument(s)
PoolName name = PoolName.FromProjectLocationPool("[PROJECT]", "[LOCATION]", "[POOL]");
// Make the request
Pool response = livestreamServiceClient.GetPool(name);
GetPool(string, CallSettings)
public virtual Pool GetPool(string name, CallSettings callSettings = null)
Returns the specified pool.
Parameters | |
---|---|
Name | Description |
name | string Required. The name of the pool resource, in the form of:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Pool | The RPC response. |
// Create client
LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/pools/[POOL]";
// Make the request
Pool response = livestreamServiceClient.GetPool(name);
GetPoolAsync(GetPoolRequest, CallSettings)
public virtual Task<Pool> GetPoolAsync(GetPoolRequest request, CallSettings callSettings = null)
Returns the specified pool.
Parameters | |
---|---|
Name | Description |
request | GetPoolRequest 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 |
TaskPool | A Task containing the RPC response. |
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
GetPoolRequest request = new GetPoolRequest
{
PoolName = PoolName.FromProjectLocationPool("[PROJECT]", "[LOCATION]", "[POOL]"),
};
// Make the request
Pool response = await livestreamServiceClient.GetPoolAsync(request);
GetPoolAsync(GetPoolRequest, CancellationToken)
public virtual Task<Pool> GetPoolAsync(GetPoolRequest request, CancellationToken cancellationToken)
Returns the specified pool.
Parameters | |
---|---|
Name | Description |
request | GetPoolRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskPool | A Task containing the RPC response. |
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
GetPoolRequest request = new GetPoolRequest
{
PoolName = PoolName.FromProjectLocationPool("[PROJECT]", "[LOCATION]", "[POOL]"),
};
// Make the request
Pool response = await livestreamServiceClient.GetPoolAsync(request);
GetPoolAsync(PoolName, CallSettings)
public virtual Task<Pool> GetPoolAsync(PoolName name, CallSettings callSettings = null)
Returns the specified pool.
Parameters | |
---|---|
Name | Description |
name | PoolName Required. The name of the pool resource, in the form of:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskPool | A Task containing the RPC response. |
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
PoolName name = PoolName.FromProjectLocationPool("[PROJECT]", "[LOCATION]", "[POOL]");
// Make the request
Pool response = await livestreamServiceClient.GetPoolAsync(name);
GetPoolAsync(PoolName, CancellationToken)
public virtual Task<Pool> GetPoolAsync(PoolName name, CancellationToken cancellationToken)
Returns the specified pool.
Parameters | |
---|---|
Name | Description |
name | PoolName Required. The name of the pool resource, in the form of:
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskPool | A Task containing the RPC response. |
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
PoolName name = PoolName.FromProjectLocationPool("[PROJECT]", "[LOCATION]", "[POOL]");
// Make the request
Pool response = await livestreamServiceClient.GetPoolAsync(name);
GetPoolAsync(string, CallSettings)
public virtual Task<Pool> GetPoolAsync(string name, CallSettings callSettings = null)
Returns the specified pool.
Parameters | |
---|---|
Name | Description |
name | string Required. The name of the pool resource, in the form of:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskPool | A Task containing the RPC response. |
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/pools/[POOL]";
// Make the request
Pool response = await livestreamServiceClient.GetPoolAsync(name);
GetPoolAsync(string, CancellationToken)
public virtual Task<Pool> GetPoolAsync(string name, CancellationToken cancellationToken)
Returns the specified pool.
Parameters | |
---|---|
Name | Description |
name | string Required. The name of the pool resource, in the form of:
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskPool | A Task containing the RPC response. |
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/pools/[POOL]";
// Make the request
Pool response = await livestreamServiceClient.GetPoolAsync(name);
ListAssets(LocationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListAssetsResponse, Asset> ListAssets(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Returns a list of all assets 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 | int 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 |
PagedEnumerableListAssetsResponseAsset | A pageable sequence of Asset resources. |
// Create client
LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListAssetsResponse, Asset> response = livestreamServiceClient.ListAssets(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (Asset 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 (ListAssetsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Asset 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<Asset> 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 (Asset 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;
ListAssets(ListAssetsRequest, CallSettings)
public virtual PagedEnumerable<ListAssetsResponse, Asset> ListAssets(ListAssetsRequest request, CallSettings callSettings = null)
Returns a list of all assets in the specified region.
Parameters | |
---|---|
Name | Description |
request | ListAssetsRequest 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 |
PagedEnumerableListAssetsResponseAsset | A pageable sequence of Asset resources. |
// Create client
LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.Create();
// Initialize request argument(s)
ListAssetsRequest request = new ListAssetsRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedEnumerable<ListAssetsResponse, Asset> response = livestreamServiceClient.ListAssets(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (Asset 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 (ListAssetsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Asset 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<Asset> 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 (Asset 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;
ListAssets(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListAssetsResponse, Asset> ListAssets(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Returns a list of all assets 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 | int 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 |
PagedEnumerableListAssetsResponseAsset | A pageable sequence of Asset resources. |
// Create client
LivestreamServiceClient livestreamServiceClient = LivestreamServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListAssetsResponse, Asset> response = livestreamServiceClient.ListAssets(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (Asset 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 (ListAssetsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Asset 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<Asset> 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 (Asset 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;
ListAssetsAsync(LocationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListAssetsResponse, Asset> ListAssetsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Returns a list of all assets 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 | int 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 |
PagedAsyncEnumerableListAssetsResponseAsset | A pageable asynchronous sequence of Asset resources. |
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListAssetsResponse, Asset> response = livestreamServiceClient.ListAssetsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Asset 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((ListAssetsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Asset 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<Asset> 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 (Asset 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;
ListAssetsAsync(ListAssetsRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListAssetsResponse, Asset> ListAssetsAsync(ListAssetsRequest request, CallSettings callSettings = null)
Returns a list of all assets in the specified region.
Parameters | |
---|---|
Name | Description |
request | ListAssetsRequest 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 |
PagedAsyncEnumerableListAssetsResponseAsset | A pageable asynchronous sequence of Asset resources. |
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
ListAssetsRequest request = new ListAssetsRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListAssetsResponse, Asset> response = livestreamServiceClient.ListAssetsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Asset 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((ListAssetsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Asset 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<Asset> 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 (Asset 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;
ListAssetsAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListAssetsResponse, Asset> ListAssetsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Returns a list of all assets 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 | int 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 |
PagedAsyncEnumerableListAssetsResponseAsset | A pageable asynchronous sequence of Asset resources. |
// Create client
LivestreamServiceClient livestreamServiceClient = await LivestreamServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListAssetsResponse, Asset> response = livestreamServiceClient.ListAssetsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Asset 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((ListAssetsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Asset 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<Asset> 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 (Asset 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(LocationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListChannelsResponse, Channel> ListChannels(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Returns a list of all channels in the specified region.
Parameters | |
---|---|
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 | int 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 |
PagedEnumerableListChannelsResponseChannel | 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 |
PagedEnumerableListChannelsResponseChannel | 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, int?, CallSettings)
public virtual PagedEnumerable<ListChannelsResponse, Channel> ListChannels(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Returns a list of all channels in the specified region.
Parameters | |
---|---|
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 | int 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 |
PagedEnumerableListChannelsResponseChannel | 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, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListChannelsResponse, Channel> ListChannelsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Returns a list of all channels in the specified region.
Parameters | |
---|---|
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 | int 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 |
PagedAsyncEnumerableListChannelsResponseChannel | 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 |
PagedAsyncEnumerableListChannelsResponseChannel | 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, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListChannelsResponse, Channel> ListChannelsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Returns a list of all channels in the specified region.
Parameters | |
---|---|
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 | int 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 |
PagedAsyncEnumerableListChannelsResponseChannel | 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, int?, CallSettings)
public virtual PagedEnumerable<ListEventsResponse, Event> ListEvents(ChannelName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Returns a list of all events in the specified channel.
Parameters | |
---|---|
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 | int 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 |
PagedEnumerableListEventsResponseEvent | 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 |
PagedEnumerableListEventsResponseEvent | 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, int?, CallSettings)
public virtual PagedEnumerable<ListEventsResponse, Event> ListEvents(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Returns a list of all events in the specified channel.
Parameters | |
---|---|
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 | int 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 |
PagedEnumerableListEventsResponseEvent | 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, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListEventsResponse, Event> ListEventsAsync(ChannelName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Returns a list of all events in the specified channel.
Parameters | |
---|---|
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 | int 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 |
PagedAsyncEnumerableListEventsResponseEvent | 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 |
PagedAsyncEnumerableListEventsResponseEvent | 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, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListEventsResponse, Event> ListEventsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Returns a list of all events in the specified channel.
Parameters | |
---|---|
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 | int 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 |
PagedAsyncEnumerableListEventsResponseEvent | 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, int?, CallSettings)
public virtual PagedEnumerable<ListInputsResponse, Input> ListInputs(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Returns a list of all inputs in the specified region.
Parameters | |
---|---|
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 | int 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 |
PagedEnumerableListInputsResponseInput | 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 |
PagedEnumerableListInputsResponseInput | 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, int?, CallSettings)
public virtual PagedEnumerable<ListInputsResponse, Input> ListInputs(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Returns a list of all inputs in the specified region.
Parameters | |
---|---|
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 | int 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 |
PagedEnumerableListInputsResponseInput | 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, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListInputsResponse, Input> ListInputsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Returns a list of all inputs in the specified region.
Parameters | |
---|---|
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 | int 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 |
PagedAsyncEnumerableListInputsResponseInput | 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 |
PagedAsyncEnumerableListInputsResponseInput | 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, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListInputsResponse, Input> ListInputsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Returns a list of all inputs in the specified region.
Parameters | |
---|---|
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 | int 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 |
PagedAsyncEnumerableListInputsResponseInput | 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;
PollOnceCreateAsset(string, CallSettings)
public virtual Operation<Asset, OperationMetadata> PollOnceCreateAsset(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of CreateAsset
.
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 |
OperationAssetOperationMetadata | The result of polling the operation. |
PollOnceCreateAssetAsync(string, CallSettings)
public virtual Task<Operation<Asset, OperationMetadata>> PollOnceCreateAssetAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
CreateAsset
.
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 |
TaskOperationAssetOperationMetadata | A task representing the result of polling the operation. |
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 |
OperationChannelOperationMetadata | The result of polling the operation. |
PollOnceCreateChannelAsync(string, CallSettings)
public virtual Task<Operation<Channel, OperationMetadata>> PollOnceCreateChannelAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
CreateChannel
.
Parameters | |
---|---|
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 |
TaskOperationChannelOperationMetadata | A task representing the result of polling the operation. |
PollOnceCreateInput(string, CallSettings)
public virtual Operation<Input, OperationMetadata> PollOnceCreateInput(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of CreateInput
.
Parameters | |
---|---|
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 |
OperationInputOperationMetadata | The result of polling the operation. |
PollOnceCreateInputAsync(string, CallSettings)
public virtual Task<Operation<Input, OperationMetadata>> PollOnceCreateInputAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
CreateInput
.
Parameters | |
---|---|
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 |
TaskOperationInputOperationMetadata | A task representing the result of polling the operation. |
PollOnceDeleteAsset(string, CallSettings)
public virtual Operation<Empty, OperationMetadata> PollOnceDeleteAsset(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of DeleteAsset
.
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 |
OperationEmptyOperationMetadata | The result of polling the operation. |
PollOnceDeleteAssetAsync(string, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteAssetAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
DeleteAsset
.
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 |
TaskOperationEmptyOperationMetadata | 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 |
OperationEmptyOperationMetadata | The result of polling the operation. |
PollOnceDeleteChannelAsync(string, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteChannelAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
DeleteChannel
.
Parameters | |
---|---|
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 |
TaskOperationEmptyOperationMetadata | A task representing the result of polling the operation. |
PollOnceDeleteInput(string, CallSettings)
public virtual Operation<Empty, OperationMetadata> PollOnceDeleteInput(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of DeleteInput
.
Parameters | |
---|---|
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 |
OperationEmptyOperationMetadata | The result of polling the operation. |
PollOnceDeleteInputAsync(string, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteInputAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
DeleteInput
.
Parameters | |
---|---|
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 |
TaskOperationEmptyOperationMetadata | A task representing the result of polling the operation. |
PollOnceStartChannel(string, CallSettings)
public virtual Operation<ChannelOperationResponse, OperationMetadata> PollOnceStartChannel(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of StartChannel
.
Parameters | |
---|---|
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 |
OperationChannelOperationResponseOperationMetadata | The result of polling the operation. |
PollOnceStartChannelAsync(string, CallSettings)
public virtual Task<Operation<ChannelOperationResponse, OperationMetadata>> PollOnceStartChannelAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
StartChannel
.
Parameters | |
---|---|
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 |
TaskOperationChannelOperationResponseOperationMetadata | A task representing the result of polling the operation. |
PollOnceStopChannel(string, CallSettings)
public virtual Operation<ChannelOperationResponse, OperationMetadata> PollOnceStopChannel(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of StopChannel
.
Parameters | |
---|---|
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 |
OperationChannelOperationResponseOperationMetadata | The result of polling the operation. |
PollOnceStopChannelAsync(string, CallSettings)
public virtual Task<Operation<ChannelOperationResponse, OperationMetadata>> PollOnceStopChannelAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
StopChannel
.
Parameters | |
---|---|
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 |
TaskOperationChannelOperationResponseOperationMetadata | A task representing the result of polling the operation. |
PollOnceUpdateChannel(string, CallSettings)
public virtual Operation<Channel, OperationMetadata> PollOnceUpdateChannel(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of UpdateChannel
.
Parameters | |
---|---|
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 |
OperationChannelOperationMetadata | The result of polling the operation. |
PollOnceUpdateChannelAsync(string, CallSettings)
public virtual Task<Operation<Channel, OperationMetadata>> PollOnceUpdateChannelAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
UpdateChannel
.
Parameters | |
---|---|
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 |
TaskOperationChannelOperationMetadata | A task representing the result of polling the operation. |
PollOnceUpdateInput(string, CallSettings)
public virtual Operation<Input, OperationMetadata> PollOnceUpdateInput(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of UpdateInput
.
Parameters | |
---|---|
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 |
OperationInputOperationMetadata | The result of polling the operation. |
PollOnceUpdateInputAsync(string, CallSettings)
public virtual Task<Operation<Input, OperationMetadata>> PollOnceUpdateInputAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
UpdateInput
.
Parameters | |
---|---|
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 |
TaskOperationInputOperationMetadata | A task representing the result of polling the operation. |
PollOnceUpdatePool(string, CallSettings)
public virtual Operation<Pool, OperationMetadata> PollOnceUpdatePool(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of UpdatePool
.
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 |
OperationPoolOperationMetadata | The result of polling the operation. |
PollOnceUpdatePoolAsync(string, CallSettings)
public virtual Task<Operation<Pool, OperationMetadata>> PollOnceUpdatePoolAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
UpdatePool
.
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 |
TaskOperationPoolOperationMetadata | 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 |
OperationChannelOperationResponseOperationMetadata | 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 |
OperationChannelOperationResponseOperationMetadata | 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 |
OperationChannelOperationResponseOperationMetadata | 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 |
TaskOperationChannelOperationResponseOperationMetadata | 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 |
TaskOperationChannelOperationResponseOperationMetadata | 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 |
TaskOperationChannelOperationResponseOperationMetadata | 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 |
TaskOperationChannelOperationResponseOperationMetadata | 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 |
TaskOperationChannelOperationResponseOperationMetadata | 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 |
TaskOperationChannelOperationResponseOperationMetadata | 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 |
OperationChannelOperationResponseOperationMetadata | 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 |
OperationChannelOperationResponseOperationMetadata | 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 |
OperationChannelOperationResponseOperationMetadata | 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 |
TaskOperationChannelOperationResponseOperationMetadata | 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 |
TaskOperationChannelOperationResponseOperationMetadata | A Task containing the RPC respon |