public abstract class TranscoderServiceClient
TranscoderService client wrapper, for convenient use.
Derived Types
Namespace
Google.Cloud.Video.Transcoder.V1Assembly
Google.Cloud.Video.Transcoder.V1.dll
Remarks
Using the Transcoder API, you can queue asynchronous jobs for transcoding media into various output formats. Output formats may include different streaming standards such as HTTP Live Streaming (HLS) and Dynamic Adaptive Streaming over HTTP (DASH). You can also customize jobs using advanced features such as Digital Rights Management (DRM), audio equalization, content concatenation, and digital ad-stitch ready content generation.
Properties
DefaultEndpoint
public static string DefaultEndpoint { get; }
The default endpoint for the TranscoderService service, which is a host of "transcoder.googleapis.com" and a port of 443.
Property Value | |
---|---|
Type | Description |
String |
DefaultScopes
public static IReadOnlyList<string> DefaultScopes { get; }
The default TranscoderService scopes.
Property Value | |
---|---|
Type | Description |
IReadOnlyList<String> |
The default TranscoderService scopes are:
GrpcClient
public virtual TranscoderService.TranscoderServiceClient GrpcClient { get; }
The underlying gRPC TranscoderService client
Property Value | |
---|---|
Type | Description |
TranscoderService.TranscoderServiceClient |
ServiceMetadata
public static ServiceMetadata ServiceMetadata { get; }
The service metadata associated with this client type.
Property Value | |
---|---|
Type | Description |
ServiceMetadata |
Methods
Create()
public static TranscoderServiceClient Create()
Synchronously creates a TranscoderServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use TranscoderServiceClientBuilder.
Returns | |
---|---|
Type | Description |
TranscoderServiceClient | The created TranscoderServiceClient. |
CreateAsync(CancellationToken)
public static Task<TranscoderServiceClient> CreateAsync(CancellationToken cancellationToken = default(CancellationToken))
Asynchronously creates a TranscoderServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use TranscoderServiceClientBuilder.
Parameter | |
---|---|
Name | Description |
cancellationToken | CancellationToken The CancellationToken to use while creating the client. |
Returns | |
---|---|
Type | Description |
Task<TranscoderServiceClient> | The task representing the created TranscoderServiceClient. |
CreateJob(LocationName, Job, CallSettings)
public virtual Job CreateJob(LocationName parent, Job job, CallSettings callSettings = null)
Creates a job in the specified region.
Parameters | |
---|---|
Name | Description |
parent | LocationName Required. The parent location to create and process this job.
Format: |
job | Job Required. Parameters for creating transcoding job. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Job | The RPC response. |
// Create client
TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Job job = new Job();
// Make the request
Job response = transcoderServiceClient.CreateJob(parent, job);
CreateJob(CreateJobRequest, CallSettings)
public virtual Job CreateJob(CreateJobRequest request, CallSettings callSettings = null)
Creates a job in the specified region.
Parameters | |
---|---|
Name | Description |
request | CreateJobRequest 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 |
Job | The RPC response. |
// Create client
TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.Create();
// Initialize request argument(s)
CreateJobRequest request = new CreateJobRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Job = new Job(),
};
// Make the request
Job response = transcoderServiceClient.CreateJob(request);
CreateJob(String, Job, CallSettings)
public virtual Job CreateJob(string parent, Job job, CallSettings callSettings = null)
Creates a job in the specified region.
Parameters | |
---|---|
Name | Description |
parent | String Required. The parent location to create and process this job.
Format: |
job | Job Required. Parameters for creating transcoding job. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Job | The RPC response. |
// Create client
TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Job job = new Job();
// Make the request
Job response = transcoderServiceClient.CreateJob(parent, job);
CreateJobAsync(LocationName, Job, CallSettings)
public virtual Task<Job> CreateJobAsync(LocationName parent, Job job, CallSettings callSettings = null)
Creates a job in the specified region.
Parameters | |
---|---|
Name | Description |
parent | LocationName Required. The parent location to create and process this job.
Format: |
job | Job Required. Parameters for creating transcoding job. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Job> | A Task containing the RPC response. |
// Create client
TranscoderServiceClient transcoderServiceClient = await TranscoderServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Job job = new Job();
// Make the request
Job response = await transcoderServiceClient.CreateJobAsync(parent, job);
CreateJobAsync(LocationName, Job, CancellationToken)
public virtual Task<Job> CreateJobAsync(LocationName parent, Job job, CancellationToken cancellationToken)
Creates a job in the specified region.
Parameters | |
---|---|
Name | Description |
parent | LocationName Required. The parent location to create and process this job.
Format: |
job | Job Required. Parameters for creating transcoding job. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Job> | A Task containing the RPC response. |
// Create client
TranscoderServiceClient transcoderServiceClient = await TranscoderServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Job job = new Job();
// Make the request
Job response = await transcoderServiceClient.CreateJobAsync(parent, job);
CreateJobAsync(CreateJobRequest, CallSettings)
public virtual Task<Job> CreateJobAsync(CreateJobRequest request, CallSettings callSettings = null)
Creates a job in the specified region.
Parameters | |
---|---|
Name | Description |
request | CreateJobRequest 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<Job> | A Task containing the RPC response. |
// Create client
TranscoderServiceClient transcoderServiceClient = await TranscoderServiceClient.CreateAsync();
// Initialize request argument(s)
CreateJobRequest request = new CreateJobRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Job = new Job(),
};
// Make the request
Job response = await transcoderServiceClient.CreateJobAsync(request);
CreateJobAsync(CreateJobRequest, CancellationToken)
public virtual Task<Job> CreateJobAsync(CreateJobRequest request, CancellationToken cancellationToken)
Creates a job in the specified region.
Parameters | |
---|---|
Name | Description |
request | CreateJobRequest 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<Job> | A Task containing the RPC response. |
// Create client
TranscoderServiceClient transcoderServiceClient = await TranscoderServiceClient.CreateAsync();
// Initialize request argument(s)
CreateJobRequest request = new CreateJobRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Job = new Job(),
};
// Make the request
Job response = await transcoderServiceClient.CreateJobAsync(request);
CreateJobAsync(String, Job, CallSettings)
public virtual Task<Job> CreateJobAsync(string parent, Job job, CallSettings callSettings = null)
Creates a job in the specified region.
Parameters | |
---|---|
Name | Description |
parent | String Required. The parent location to create and process this job.
Format: |
job | Job Required. Parameters for creating transcoding job. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Job> | A Task containing the RPC response. |
// Create client
TranscoderServiceClient transcoderServiceClient = await TranscoderServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Job job = new Job();
// Make the request
Job response = await transcoderServiceClient.CreateJobAsync(parent, job);
CreateJobAsync(String, Job, CancellationToken)
public virtual Task<Job> CreateJobAsync(string parent, Job job, CancellationToken cancellationToken)
Creates a job in the specified region.
Parameters | |
---|---|
Name | Description |
parent | String Required. The parent location to create and process this job.
Format: |
job | Job Required. Parameters for creating transcoding job. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Job> | A Task containing the RPC response. |
// Create client
TranscoderServiceClient transcoderServiceClient = await TranscoderServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Job job = new Job();
// Make the request
Job response = await transcoderServiceClient.CreateJobAsync(parent, job);
CreateJobTemplate(LocationName, JobTemplate, String, CallSettings)
public virtual JobTemplate CreateJobTemplate(LocationName parent, JobTemplate jobTemplate, string jobTemplateId, CallSettings callSettings = null)
Creates a job template in the specified region.
Parameters | |
---|---|
Name | Description |
parent | LocationName Required. The parent location to create this job template.
Format: |
jobTemplate | JobTemplate Required. Parameters for creating job template. |
jobTemplateId | String Required. The ID to use for the job template, which will become the final component of the job template's resource name. This value should be 4-63 characters, and valid characters must match the
regular expression |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
JobTemplate | The RPC response. |
// Create client
TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
JobTemplate jobTemplate = new JobTemplate();
string jobTemplateId = "";
// Make the request
JobTemplate response = transcoderServiceClient.CreateJobTemplate(parent, jobTemplate, jobTemplateId);
CreateJobTemplate(CreateJobTemplateRequest, CallSettings)
public virtual JobTemplate CreateJobTemplate(CreateJobTemplateRequest request, CallSettings callSettings = null)
Creates a job template in the specified region.
Parameters | |
---|---|
Name | Description |
request | CreateJobTemplateRequest 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 |
JobTemplate | The RPC response. |
// Create client
TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.Create();
// Initialize request argument(s)
CreateJobTemplateRequest request = new CreateJobTemplateRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
JobTemplate = new JobTemplate(),
JobTemplateId = "",
};
// Make the request
JobTemplate response = transcoderServiceClient.CreateJobTemplate(request);
CreateJobTemplate(String, JobTemplate, String, CallSettings)
public virtual JobTemplate CreateJobTemplate(string parent, JobTemplate jobTemplate, string jobTemplateId, CallSettings callSettings = null)
Creates a job template in the specified region.
Parameters | |
---|---|
Name | Description |
parent | String Required. The parent location to create this job template.
Format: |
jobTemplate | JobTemplate Required. Parameters for creating job template. |
jobTemplateId | String Required. The ID to use for the job template, which will become the final component of the job template's resource name. This value should be 4-63 characters, and valid characters must match the
regular expression |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
JobTemplate | The RPC response. |
// Create client
TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
JobTemplate jobTemplate = new JobTemplate();
string jobTemplateId = "";
// Make the request
JobTemplate response = transcoderServiceClient.CreateJobTemplate(parent, jobTemplate, jobTemplateId);
CreateJobTemplateAsync(LocationName, JobTemplate, String, CallSettings)
public virtual Task<JobTemplate> CreateJobTemplateAsync(LocationName parent, JobTemplate jobTemplate, string jobTemplateId, CallSettings callSettings = null)
Creates a job template in the specified region.
Parameters | |
---|---|
Name | Description |
parent | LocationName Required. The parent location to create this job template.
Format: |
jobTemplate | JobTemplate Required. Parameters for creating job template. |
jobTemplateId | String Required. The ID to use for the job template, which will become the final component of the job template's resource name. This value should be 4-63 characters, and valid characters must match the
regular expression |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<JobTemplate> | A Task containing the RPC response. |
// Create client
TranscoderServiceClient transcoderServiceClient = await TranscoderServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
JobTemplate jobTemplate = new JobTemplate();
string jobTemplateId = "";
// Make the request
JobTemplate response = await transcoderServiceClient.CreateJobTemplateAsync(parent, jobTemplate, jobTemplateId);
CreateJobTemplateAsync(LocationName, JobTemplate, String, CancellationToken)
public virtual Task<JobTemplate> CreateJobTemplateAsync(LocationName parent, JobTemplate jobTemplate, string jobTemplateId, CancellationToken cancellationToken)
Creates a job template in the specified region.
Parameters | |
---|---|
Name | Description |
parent | LocationName Required. The parent location to create this job template.
Format: |
jobTemplate | JobTemplate Required. Parameters for creating job template. |
jobTemplateId | String Required. The ID to use for the job template, which will become the final component of the job template's resource name. This value should be 4-63 characters, and valid characters must match the
regular expression |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<JobTemplate> | A Task containing the RPC response. |
// Create client
TranscoderServiceClient transcoderServiceClient = await TranscoderServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
JobTemplate jobTemplate = new JobTemplate();
string jobTemplateId = "";
// Make the request
JobTemplate response = await transcoderServiceClient.CreateJobTemplateAsync(parent, jobTemplate, jobTemplateId);
CreateJobTemplateAsync(CreateJobTemplateRequest, CallSettings)
public virtual Task<JobTemplate> CreateJobTemplateAsync(CreateJobTemplateRequest request, CallSettings callSettings = null)
Creates a job template in the specified region.
Parameters | |
---|---|
Name | Description |
request | CreateJobTemplateRequest 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<JobTemplate> | A Task containing the RPC response. |
// Create client
TranscoderServiceClient transcoderServiceClient = await TranscoderServiceClient.CreateAsync();
// Initialize request argument(s)
CreateJobTemplateRequest request = new CreateJobTemplateRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
JobTemplate = new JobTemplate(),
JobTemplateId = "",
};
// Make the request
JobTemplate response = await transcoderServiceClient.CreateJobTemplateAsync(request);
CreateJobTemplateAsync(CreateJobTemplateRequest, CancellationToken)
public virtual Task<JobTemplate> CreateJobTemplateAsync(CreateJobTemplateRequest request, CancellationToken cancellationToken)
Creates a job template in the specified region.
Parameters | |
---|---|
Name | Description |
request | CreateJobTemplateRequest 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<JobTemplate> | A Task containing the RPC response. |
// Create client
TranscoderServiceClient transcoderServiceClient = await TranscoderServiceClient.CreateAsync();
// Initialize request argument(s)
CreateJobTemplateRequest request = new CreateJobTemplateRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
JobTemplate = new JobTemplate(),
JobTemplateId = "",
};
// Make the request
JobTemplate response = await transcoderServiceClient.CreateJobTemplateAsync(request);
CreateJobTemplateAsync(String, JobTemplate, String, CallSettings)
public virtual Task<JobTemplate> CreateJobTemplateAsync(string parent, JobTemplate jobTemplate, string jobTemplateId, CallSettings callSettings = null)
Creates a job template in the specified region.
Parameters | |
---|---|
Name | Description |
parent | String Required. The parent location to create this job template.
Format: |
jobTemplate | JobTemplate Required. Parameters for creating job template. |
jobTemplateId | String Required. The ID to use for the job template, which will become the final component of the job template's resource name. This value should be 4-63 characters, and valid characters must match the
regular expression |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<JobTemplate> | A Task containing the RPC response. |
// Create client
TranscoderServiceClient transcoderServiceClient = await TranscoderServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
JobTemplate jobTemplate = new JobTemplate();
string jobTemplateId = "";
// Make the request
JobTemplate response = await transcoderServiceClient.CreateJobTemplateAsync(parent, jobTemplate, jobTemplateId);
CreateJobTemplateAsync(String, JobTemplate, String, CancellationToken)
public virtual Task<JobTemplate> CreateJobTemplateAsync(string parent, JobTemplate jobTemplate, string jobTemplateId, CancellationToken cancellationToken)
Creates a job template in the specified region.
Parameters | |
---|---|
Name | Description |
parent | String Required. The parent location to create this job template.
Format: |
jobTemplate | JobTemplate Required. Parameters for creating job template. |
jobTemplateId | String Required. The ID to use for the job template, which will become the final component of the job template's resource name. This value should be 4-63 characters, and valid characters must match the
regular expression |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<JobTemplate> | A Task containing the RPC response. |
// Create client
TranscoderServiceClient transcoderServiceClient = await TranscoderServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
JobTemplate jobTemplate = new JobTemplate();
string jobTemplateId = "";
// Make the request
JobTemplate response = await transcoderServiceClient.CreateJobTemplateAsync(parent, jobTemplate, jobTemplateId);
DeleteJob(DeleteJobRequest, CallSettings)
public virtual void DeleteJob(DeleteJobRequest request, CallSettings callSettings = null)
Deletes a job.
Parameters | |
---|---|
Name | Description |
request | DeleteJobRequest 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
TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.Create();
// Initialize request argument(s)
DeleteJobRequest request = new DeleteJobRequest
{
JobName = JobName.FromProjectLocationJob("[PROJECT]", "[LOCATION]", "[JOB]"),
AllowMissing = false,
};
// Make the request
transcoderServiceClient.DeleteJob(request);
DeleteJob(JobName, CallSettings)
public virtual void DeleteJob(JobName name, CallSettings callSettings = null)
Deletes a job.
Parameters | |
---|---|
Name | Description |
name | JobName Required. The name of the job to delete.
Format: |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
// Create client
TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.Create();
// Initialize request argument(s)
JobName name = JobName.FromProjectLocationJob("[PROJECT]", "[LOCATION]", "[JOB]");
// Make the request
transcoderServiceClient.DeleteJob(name);
DeleteJob(String, CallSettings)
public virtual void DeleteJob(string name, CallSettings callSettings = null)
Deletes a job.
Parameters | |
---|---|
Name | Description |
name | String Required. The name of the job to delete.
Format: |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
// Create client
TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/jobs/[JOB]";
// Make the request
transcoderServiceClient.DeleteJob(name);
DeleteJobAsync(DeleteJobRequest, CallSettings)
public virtual Task DeleteJobAsync(DeleteJobRequest request, CallSettings callSettings = null)
Deletes a job.
Parameters | |
---|---|
Name | Description |
request | DeleteJobRequest 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
TranscoderServiceClient transcoderServiceClient = await TranscoderServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteJobRequest request = new DeleteJobRequest
{
JobName = JobName.FromProjectLocationJob("[PROJECT]", "[LOCATION]", "[JOB]"),
AllowMissing = false,
};
// Make the request
await transcoderServiceClient.DeleteJobAsync(request);
DeleteJobAsync(DeleteJobRequest, CancellationToken)
public virtual Task DeleteJobAsync(DeleteJobRequest request, CancellationToken cancellationToken)
Deletes a job.
Parameters | |
---|---|
Name | Description |
request | DeleteJobRequest 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
TranscoderServiceClient transcoderServiceClient = await TranscoderServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteJobRequest request = new DeleteJobRequest
{
JobName = JobName.FromProjectLocationJob("[PROJECT]", "[LOCATION]", "[JOB]"),
AllowMissing = false,
};
// Make the request
await transcoderServiceClient.DeleteJobAsync(request);
DeleteJobAsync(JobName, CallSettings)
public virtual Task DeleteJobAsync(JobName name, CallSettings callSettings = null)
Deletes a job.
Parameters | |
---|---|
Name | Description |
name | JobName Required. The name of the job to delete.
Format: |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// Create client
TranscoderServiceClient transcoderServiceClient = await TranscoderServiceClient.CreateAsync();
// Initialize request argument(s)
JobName name = JobName.FromProjectLocationJob("[PROJECT]", "[LOCATION]", "[JOB]");
// Make the request
await transcoderServiceClient.DeleteJobAsync(name);
DeleteJobAsync(JobName, CancellationToken)
public virtual Task DeleteJobAsync(JobName name, CancellationToken cancellationToken)
Deletes a job.
Parameters | |
---|---|
Name | Description |
name | JobName Required. The name of the job to delete.
Format: |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// Create client
TranscoderServiceClient transcoderServiceClient = await TranscoderServiceClient.CreateAsync();
// Initialize request argument(s)
JobName name = JobName.FromProjectLocationJob("[PROJECT]", "[LOCATION]", "[JOB]");
// Make the request
await transcoderServiceClient.DeleteJobAsync(name);
DeleteJobAsync(String, CallSettings)
public virtual Task DeleteJobAsync(string name, CallSettings callSettings = null)
Deletes a job.
Parameters | |
---|---|
Name | Description |
name | String Required. The name of the job to delete.
Format: |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// Create client
TranscoderServiceClient transcoderServiceClient = await TranscoderServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/jobs/[JOB]";
// Make the request
await transcoderServiceClient.DeleteJobAsync(name);
DeleteJobAsync(String, CancellationToken)
public virtual Task DeleteJobAsync(string name, CancellationToken cancellationToken)
Deletes a job.
Parameters | |
---|---|
Name | Description |
name | String Required. The name of the job to delete.
Format: |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// Create client
TranscoderServiceClient transcoderServiceClient = await TranscoderServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/jobs/[JOB]";
// Make the request
await transcoderServiceClient.DeleteJobAsync(name);
DeleteJobTemplate(DeleteJobTemplateRequest, CallSettings)
public virtual void DeleteJobTemplate(DeleteJobTemplateRequest request, CallSettings callSettings = null)
Deletes a job template.
Parameters | |
---|---|
Name | Description |
request | DeleteJobTemplateRequest 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
TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.Create();
// Initialize request argument(s)
DeleteJobTemplateRequest request = new DeleteJobTemplateRequest
{
JobTemplateName = JobTemplateName.FromProjectLocationJobTemplate("[PROJECT]", "[LOCATION]", "[JOB_TEMPLATE]"),
AllowMissing = false,
};
// Make the request
transcoderServiceClient.DeleteJobTemplate(request);
DeleteJobTemplate(JobTemplateName, CallSettings)
public virtual void DeleteJobTemplate(JobTemplateName name, CallSettings callSettings = null)
Deletes a job template.
Parameters | |
---|---|
Name | Description |
name | JobTemplateName Required. The name of the job template to delete.
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
// Create client
TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.Create();
// Initialize request argument(s)
JobTemplateName name = JobTemplateName.FromProjectLocationJobTemplate("[PROJECT]", "[LOCATION]", "[JOB_TEMPLATE]");
// Make the request
transcoderServiceClient.DeleteJobTemplate(name);
DeleteJobTemplate(String, CallSettings)
public virtual void DeleteJobTemplate(string name, CallSettings callSettings = null)
Deletes a job template.
Parameters | |
---|---|
Name | Description |
name | String Required. The name of the job template to delete.
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
// Create client
TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/jobTemplates/[JOB_TEMPLATE]";
// Make the request
transcoderServiceClient.DeleteJobTemplate(name);
DeleteJobTemplateAsync(DeleteJobTemplateRequest, CallSettings)
public virtual Task DeleteJobTemplateAsync(DeleteJobTemplateRequest request, CallSettings callSettings = null)
Deletes a job template.
Parameters | |
---|---|
Name | Description |
request | DeleteJobTemplateRequest 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
TranscoderServiceClient transcoderServiceClient = await TranscoderServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteJobTemplateRequest request = new DeleteJobTemplateRequest
{
JobTemplateName = JobTemplateName.FromProjectLocationJobTemplate("[PROJECT]", "[LOCATION]", "[JOB_TEMPLATE]"),
AllowMissing = false,
};
// Make the request
await transcoderServiceClient.DeleteJobTemplateAsync(request);
DeleteJobTemplateAsync(DeleteJobTemplateRequest, CancellationToken)
public virtual Task DeleteJobTemplateAsync(DeleteJobTemplateRequest request, CancellationToken cancellationToken)
Deletes a job template.
Parameters | |
---|---|
Name | Description |
request | DeleteJobTemplateRequest 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
TranscoderServiceClient transcoderServiceClient = await TranscoderServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteJobTemplateRequest request = new DeleteJobTemplateRequest
{
JobTemplateName = JobTemplateName.FromProjectLocationJobTemplate("[PROJECT]", "[LOCATION]", "[JOB_TEMPLATE]"),
AllowMissing = false,
};
// Make the request
await transcoderServiceClient.DeleteJobTemplateAsync(request);
DeleteJobTemplateAsync(JobTemplateName, CallSettings)
public virtual Task DeleteJobTemplateAsync(JobTemplateName name, CallSettings callSettings = null)
Deletes a job template.
Parameters | |
---|---|
Name | Description |
name | JobTemplateName Required. The name of the job template to delete.
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// Create client
TranscoderServiceClient transcoderServiceClient = await TranscoderServiceClient.CreateAsync();
// Initialize request argument(s)
JobTemplateName name = JobTemplateName.FromProjectLocationJobTemplate("[PROJECT]", "[LOCATION]", "[JOB_TEMPLATE]");
// Make the request
await transcoderServiceClient.DeleteJobTemplateAsync(name);
DeleteJobTemplateAsync(JobTemplateName, CancellationToken)
public virtual Task DeleteJobTemplateAsync(JobTemplateName name, CancellationToken cancellationToken)
Deletes a job template.
Parameters | |
---|---|
Name | Description |
name | JobTemplateName Required. The name of the job template to delete.
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// Create client
TranscoderServiceClient transcoderServiceClient = await TranscoderServiceClient.CreateAsync();
// Initialize request argument(s)
JobTemplateName name = JobTemplateName.FromProjectLocationJobTemplate("[PROJECT]", "[LOCATION]", "[JOB_TEMPLATE]");
// Make the request
await transcoderServiceClient.DeleteJobTemplateAsync(name);
DeleteJobTemplateAsync(String, CallSettings)
public virtual Task DeleteJobTemplateAsync(string name, CallSettings callSettings = null)
Deletes a job template.
Parameters | |
---|---|
Name | Description |
name | String Required. The name of the job template to delete.
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// Create client
TranscoderServiceClient transcoderServiceClient = await TranscoderServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/jobTemplates/[JOB_TEMPLATE]";
// Make the request
await transcoderServiceClient.DeleteJobTemplateAsync(name);
DeleteJobTemplateAsync(String, CancellationToken)
public virtual Task DeleteJobTemplateAsync(string name, CancellationToken cancellationToken)
Deletes a job template.
Parameters | |
---|---|
Name | Description |
name | String Required. The name of the job template to delete.
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// Create client
TranscoderServiceClient transcoderServiceClient = await TranscoderServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/jobTemplates/[JOB_TEMPLATE]";
// Make the request
await transcoderServiceClient.DeleteJobTemplateAsync(name);
GetJob(GetJobRequest, CallSettings)
public virtual Job GetJob(GetJobRequest request, CallSettings callSettings = null)
Returns the job data.
Parameters | |
---|---|
Name | Description |
request | GetJobRequest 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 |
Job | The RPC response. |
// Create client
TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.Create();
// Initialize request argument(s)
GetJobRequest request = new GetJobRequest
{
JobName = JobName.FromProjectLocationJob("[PROJECT]", "[LOCATION]", "[JOB]"),
};
// Make the request
Job response = transcoderServiceClient.GetJob(request);
GetJob(JobName, CallSettings)
public virtual Job GetJob(JobName name, CallSettings callSettings = null)
Returns the job data.
Parameters | |
---|---|
Name | Description |
name | JobName Required. The name of the job to retrieve.
Format: |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Job | The RPC response. |
// Create client
TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.Create();
// Initialize request argument(s)
JobName name = JobName.FromProjectLocationJob("[PROJECT]", "[LOCATION]", "[JOB]");
// Make the request
Job response = transcoderServiceClient.GetJob(name);
GetJob(String, CallSettings)
public virtual Job GetJob(string name, CallSettings callSettings = null)
Returns the job data.
Parameters | |
---|---|
Name | Description |
name | String Required. The name of the job to retrieve.
Format: |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Job | The RPC response. |
// Create client
TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/jobs/[JOB]";
// Make the request
Job response = transcoderServiceClient.GetJob(name);
GetJobAsync(GetJobRequest, CallSettings)
public virtual Task<Job> GetJobAsync(GetJobRequest request, CallSettings callSettings = null)
Returns the job data.
Parameters | |
---|---|
Name | Description |
request | GetJobRequest 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<Job> | A Task containing the RPC response. |
// Create client
TranscoderServiceClient transcoderServiceClient = await TranscoderServiceClient.CreateAsync();
// Initialize request argument(s)
GetJobRequest request = new GetJobRequest
{
JobName = JobName.FromProjectLocationJob("[PROJECT]", "[LOCATION]", "[JOB]"),
};
// Make the request
Job response = await transcoderServiceClient.GetJobAsync(request);
GetJobAsync(GetJobRequest, CancellationToken)
public virtual Task<Job> GetJobAsync(GetJobRequest request, CancellationToken cancellationToken)
Returns the job data.
Parameters | |
---|---|
Name | Description |
request | GetJobRequest 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<Job> | A Task containing the RPC response. |
// Create client
TranscoderServiceClient transcoderServiceClient = await TranscoderServiceClient.CreateAsync();
// Initialize request argument(s)
GetJobRequest request = new GetJobRequest
{
JobName = JobName.FromProjectLocationJob("[PROJECT]", "[LOCATION]", "[JOB]"),
};
// Make the request
Job response = await transcoderServiceClient.GetJobAsync(request);
GetJobAsync(JobName, CallSettings)
public virtual Task<Job> GetJobAsync(JobName name, CallSettings callSettings = null)
Returns the job data.
Parameters | |
---|---|
Name | Description |
name | JobName Required. The name of the job to retrieve.
Format: |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Job> | A Task containing the RPC response. |
// Create client
TranscoderServiceClient transcoderServiceClient = await TranscoderServiceClient.CreateAsync();
// Initialize request argument(s)
JobName name = JobName.FromProjectLocationJob("[PROJECT]", "[LOCATION]", "[JOB]");
// Make the request
Job response = await transcoderServiceClient.GetJobAsync(name);
GetJobAsync(JobName, CancellationToken)
public virtual Task<Job> GetJobAsync(JobName name, CancellationToken cancellationToken)
Returns the job data.
Parameters | |
---|---|
Name | Description |
name | JobName Required. The name of the job to retrieve.
Format: |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Job> | A Task containing the RPC response. |
// Create client
TranscoderServiceClient transcoderServiceClient = await TranscoderServiceClient.CreateAsync();
// Initialize request argument(s)
JobName name = JobName.FromProjectLocationJob("[PROJECT]", "[LOCATION]", "[JOB]");
// Make the request
Job response = await transcoderServiceClient.GetJobAsync(name);
GetJobAsync(String, CallSettings)
public virtual Task<Job> GetJobAsync(string name, CallSettings callSettings = null)
Returns the job data.
Parameters | |
---|---|
Name | Description |
name | String Required. The name of the job to retrieve.
Format: |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Job> | A Task containing the RPC response. |
// Create client
TranscoderServiceClient transcoderServiceClient = await TranscoderServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/jobs/[JOB]";
// Make the request
Job response = await transcoderServiceClient.GetJobAsync(name);
GetJobAsync(String, CancellationToken)
public virtual Task<Job> GetJobAsync(string name, CancellationToken cancellationToken)
Returns the job data.
Parameters | |
---|---|
Name | Description |
name | String Required. The name of the job to retrieve.
Format: |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Job> | A Task containing the RPC response. |
// Create client
TranscoderServiceClient transcoderServiceClient = await TranscoderServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/jobs/[JOB]";
// Make the request
Job response = await transcoderServiceClient.GetJobAsync(name);
GetJobTemplate(GetJobTemplateRequest, CallSettings)
public virtual JobTemplate GetJobTemplate(GetJobTemplateRequest request, CallSettings callSettings = null)
Returns the job template data.
Parameters | |
---|---|
Name | Description |
request | GetJobTemplateRequest 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 |
JobTemplate | The RPC response. |
// Create client
TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.Create();
// Initialize request argument(s)
GetJobTemplateRequest request = new GetJobTemplateRequest
{
JobTemplateName = JobTemplateName.FromProjectLocationJobTemplate("[PROJECT]", "[LOCATION]", "[JOB_TEMPLATE]"),
};
// Make the request
JobTemplate response = transcoderServiceClient.GetJobTemplate(request);
GetJobTemplate(JobTemplateName, CallSettings)
public virtual JobTemplate GetJobTemplate(JobTemplateName name, CallSettings callSettings = null)
Returns the job template data.
Parameters | |
---|---|
Name | Description |
name | JobTemplateName Required. The name of the job template to retrieve.
Format:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
JobTemplate | The RPC response. |
// Create client
TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.Create();
// Initialize request argument(s)
JobTemplateName name = JobTemplateName.FromProjectLocationJobTemplate("[PROJECT]", "[LOCATION]", "[JOB_TEMPLATE]");
// Make the request
JobTemplate response = transcoderServiceClient.GetJobTemplate(name);
GetJobTemplate(String, CallSettings)
public virtual JobTemplate GetJobTemplate(string name, CallSettings callSettings = null)
Returns the job template data.
Parameters | |
---|---|
Name | Description |
name | String Required. The name of the job template to retrieve.
Format:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
JobTemplate | The RPC response. |
// Create client
TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/jobTemplates/[JOB_TEMPLATE]";
// Make the request
JobTemplate response = transcoderServiceClient.GetJobTemplate(name);
GetJobTemplateAsync(GetJobTemplateRequest, CallSettings)
public virtual Task<JobTemplate> GetJobTemplateAsync(GetJobTemplateRequest request, CallSettings callSettings = null)
Returns the job template data.
Parameters | |
---|---|
Name | Description |
request | GetJobTemplateRequest 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<JobTemplate> | A Task containing the RPC response. |
// Create client
TranscoderServiceClient transcoderServiceClient = await TranscoderServiceClient.CreateAsync();
// Initialize request argument(s)
GetJobTemplateRequest request = new GetJobTemplateRequest
{
JobTemplateName = JobTemplateName.FromProjectLocationJobTemplate("[PROJECT]", "[LOCATION]", "[JOB_TEMPLATE]"),
};
// Make the request
JobTemplate response = await transcoderServiceClient.GetJobTemplateAsync(request);
GetJobTemplateAsync(GetJobTemplateRequest, CancellationToken)
public virtual Task<JobTemplate> GetJobTemplateAsync(GetJobTemplateRequest request, CancellationToken cancellationToken)
Returns the job template data.
Parameters | |
---|---|
Name | Description |
request | GetJobTemplateRequest 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<JobTemplate> | A Task containing the RPC response. |
// Create client
TranscoderServiceClient transcoderServiceClient = await TranscoderServiceClient.CreateAsync();
// Initialize request argument(s)
GetJobTemplateRequest request = new GetJobTemplateRequest
{
JobTemplateName = JobTemplateName.FromProjectLocationJobTemplate("[PROJECT]", "[LOCATION]", "[JOB_TEMPLATE]"),
};
// Make the request
JobTemplate response = await transcoderServiceClient.GetJobTemplateAsync(request);
GetJobTemplateAsync(JobTemplateName, CallSettings)
public virtual Task<JobTemplate> GetJobTemplateAsync(JobTemplateName name, CallSettings callSettings = null)
Returns the job template data.
Parameters | |
---|---|
Name | Description |
name | JobTemplateName Required. The name of the job template to retrieve.
Format:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<JobTemplate> | A Task containing the RPC response. |
// Create client
TranscoderServiceClient transcoderServiceClient = await TranscoderServiceClient.CreateAsync();
// Initialize request argument(s)
JobTemplateName name = JobTemplateName.FromProjectLocationJobTemplate("[PROJECT]", "[LOCATION]", "[JOB_TEMPLATE]");
// Make the request
JobTemplate response = await transcoderServiceClient.GetJobTemplateAsync(name);
GetJobTemplateAsync(JobTemplateName, CancellationToken)
public virtual Task<JobTemplate> GetJobTemplateAsync(JobTemplateName name, CancellationToken cancellationToken)
Returns the job template data.
Parameters | |
---|---|
Name | Description |
name | JobTemplateName Required. The name of the job template to retrieve.
Format:
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<JobTemplate> | A Task containing the RPC response. |
// Create client
TranscoderServiceClient transcoderServiceClient = await TranscoderServiceClient.CreateAsync();
// Initialize request argument(s)
JobTemplateName name = JobTemplateName.FromProjectLocationJobTemplate("[PROJECT]", "[LOCATION]", "[JOB_TEMPLATE]");
// Make the request
JobTemplate response = await transcoderServiceClient.GetJobTemplateAsync(name);
GetJobTemplateAsync(String, CallSettings)
public virtual Task<JobTemplate> GetJobTemplateAsync(string name, CallSettings callSettings = null)
Returns the job template data.
Parameters | |
---|---|
Name | Description |
name | String Required. The name of the job template to retrieve.
Format:
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<JobTemplate> | A Task containing the RPC response. |
// Create client
TranscoderServiceClient transcoderServiceClient = await TranscoderServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/jobTemplates/[JOB_TEMPLATE]";
// Make the request
JobTemplate response = await transcoderServiceClient.GetJobTemplateAsync(name);
GetJobTemplateAsync(String, CancellationToken)
public virtual Task<JobTemplate> GetJobTemplateAsync(string name, CancellationToken cancellationToken)
Returns the job template data.
Parameters | |
---|---|
Name | Description |
name | String Required. The name of the job template to retrieve.
Format:
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<JobTemplate> | A Task containing the RPC response. |
// Create client
TranscoderServiceClient transcoderServiceClient = await TranscoderServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/jobTemplates/[JOB_TEMPLATE]";
// Make the request
JobTemplate response = await transcoderServiceClient.GetJobTemplateAsync(name);
ListJobs(LocationName, String, Nullable<Int32>, CallSettings)
public virtual PagedEnumerable<ListJobsResponse, Job> ListJobs(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists jobs in the specified region.
Parameters | |
---|---|
Name | Description |
parent | LocationName Required. Format: |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListJobsResponse, Job> | A pageable sequence of Job resources. |
// Create client
TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListJobsResponse, Job> response = transcoderServiceClient.ListJobs(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (Job 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 (ListJobsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Job 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<Job> 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 (Job 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;
ListJobs(ListJobsRequest, CallSettings)
public virtual PagedEnumerable<ListJobsResponse, Job> ListJobs(ListJobsRequest request, CallSettings callSettings = null)
Lists jobs in the specified region.
Parameters | |
---|---|
Name | Description |
request | ListJobsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListJobsResponse, Job> | A pageable sequence of Job resources. |
// Create client
TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.Create();
// Initialize request argument(s)
ListJobsRequest request = new ListJobsRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedEnumerable<ListJobsResponse, Job> response = transcoderServiceClient.ListJobs(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (Job 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 (ListJobsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Job 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<Job> 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 (Job 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;
ListJobs(String, String, Nullable<Int32>, CallSettings)
public virtual PagedEnumerable<ListJobsResponse, Job> ListJobs(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists jobs in the specified region.
Parameters | |
---|---|
Name | Description |
parent | String Required. Format: |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListJobsResponse, Job> | A pageable sequence of Job resources. |
// Create client
TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListJobsResponse, Job> response = transcoderServiceClient.ListJobs(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (Job 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 (ListJobsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Job 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<Job> 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 (Job 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;
ListJobsAsync(LocationName, String, Nullable<Int32>, CallSettings)
public virtual PagedAsyncEnumerable<ListJobsResponse, Job> ListJobsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists jobs in the specified region.
Parameters | |
---|---|
Name | Description |
parent | LocationName Required. Format: |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListJobsResponse, Job> | A pageable asynchronous sequence of Job resources. |
// Create client
TranscoderServiceClient transcoderServiceClient = await TranscoderServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListJobsResponse, Job> response = transcoderServiceClient.ListJobsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Job 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((ListJobsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Job 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<Job> 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 (Job 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;
ListJobsAsync(ListJobsRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListJobsResponse, Job> ListJobsAsync(ListJobsRequest request, CallSettings callSettings = null)
Lists jobs in the specified region.
Parameters | |
---|---|
Name | Description |
request | ListJobsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListJobsResponse, Job> | A pageable asynchronous sequence of Job resources. |
// Create client
TranscoderServiceClient transcoderServiceClient = await TranscoderServiceClient.CreateAsync();
// Initialize request argument(s)
ListJobsRequest request = new ListJobsRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListJobsResponse, Job> response = transcoderServiceClient.ListJobsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Job 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((ListJobsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Job 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<Job> 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 (Job 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;
ListJobsAsync(String, String, Nullable<Int32>, CallSettings)
public virtual PagedAsyncEnumerable<ListJobsResponse, Job> ListJobsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists jobs in the specified region.
Parameters | |
---|---|
Name | Description |
parent | String Required. Format: |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListJobsResponse, Job> | A pageable asynchronous sequence of Job resources. |
// Create client
TranscoderServiceClient transcoderServiceClient = await TranscoderServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListJobsResponse, Job> response = transcoderServiceClient.ListJobsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Job 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((ListJobsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Job 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<Job> 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 (Job 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;
ListJobTemplates(LocationName, String, Nullable<Int32>, CallSettings)
public virtual PagedEnumerable<ListJobTemplatesResponse, JobTemplate> ListJobTemplates(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists job templates in the specified region.
Parameters | |
---|---|
Name | Description |
parent | LocationName Required. The parent location from which to retrieve the collection of job templates.
Format: |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListJobTemplatesResponse, JobTemplate> | A pageable sequence of JobTemplate resources. |
// Create client
TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListJobTemplatesResponse, JobTemplate> response = transcoderServiceClient.ListJobTemplates(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (JobTemplate 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 (ListJobTemplatesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (JobTemplate 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<JobTemplate> 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 (JobTemplate 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;
ListJobTemplates(ListJobTemplatesRequest, CallSettings)
public virtual PagedEnumerable<ListJobTemplatesResponse, JobTemplate> ListJobTemplates(ListJobTemplatesRequest request, CallSettings callSettings = null)
Lists job templates in the specified region.
Parameters | |
---|---|
Name | Description |
request | ListJobTemplatesRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListJobTemplatesResponse, JobTemplate> | A pageable sequence of JobTemplate resources. |
// Create client
TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.Create();
// Initialize request argument(s)
ListJobTemplatesRequest request = new ListJobTemplatesRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedEnumerable<ListJobTemplatesResponse, JobTemplate> response = transcoderServiceClient.ListJobTemplates(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (JobTemplate 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 (ListJobTemplatesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (JobTemplate 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<JobTemplate> 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 (JobTemplate 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;
ListJobTemplates(String, String, Nullable<Int32>, CallSettings)
public virtual PagedEnumerable<ListJobTemplatesResponse, JobTemplate> ListJobTemplates(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists job templates in the specified region.
Parameters | |
---|---|
Name | Description |
parent | String Required. The parent location from which to retrieve the collection of job templates.
Format: |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListJobTemplatesResponse, JobTemplate> | A pageable sequence of JobTemplate resources. |
// Create client
TranscoderServiceClient transcoderServiceClient = TranscoderServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListJobTemplatesResponse, JobTemplate> response = transcoderServiceClient.ListJobTemplates(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (JobTemplate 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 (ListJobTemplatesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (JobTemplate 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<JobTemplate> 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 (JobTemplate 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;
ListJobTemplatesAsync(LocationName, String, Nullable<Int32>, CallSettings)
public virtual PagedAsyncEnumerable<ListJobTemplatesResponse, JobTemplate> ListJobTemplatesAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists job templates in the specified region.
Parameters | |
---|---|
Name | Description |
parent | LocationName Required. The parent location from which to retrieve the collection of job templates.
Format: |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListJobTemplatesResponse, JobTemplate> | A pageable asynchronous sequence of JobTemplate resources. |
// Create client
TranscoderServiceClient transcoderServiceClient = await TranscoderServiceClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListJobTemplatesResponse, JobTemplate> response = transcoderServiceClient.ListJobTemplatesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((JobTemplate 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((ListJobTemplatesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (JobTemplate 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<JobTemplate> 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 (JobTemplate 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;
ListJobTemplatesAsync(ListJobTemplatesRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListJobTemplatesResponse, JobTemplate> ListJobTemplatesAsync(ListJobTemplatesRequest request, CallSettings callSettings = null)
Lists job templates in the specified region.
Parameters | |
---|---|
Name | Description |
request | ListJobTemplatesRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListJobTemplatesResponse, JobTemplate> | A pageable asynchronous sequence of JobTemplate resources. |
// Create client
TranscoderServiceClient transcoderServiceClient = await TranscoderServiceClient.CreateAsync();
// Initialize request argument(s)
ListJobTemplatesRequest request = new ListJobTemplatesRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListJobTemplatesResponse, JobTemplate> response = transcoderServiceClient.ListJobTemplatesAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((JobTemplate 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((ListJobTemplatesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (JobTemplate 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<JobTemplate> 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 (JobTemplate 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;
ListJobTemplatesAsync(String, String, Nullable<Int32>, CallSettings)
public virtual PagedAsyncEnumerable<ListJobTemplatesResponse, JobTemplate> ListJobTemplatesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists job templates in the specified region.
Parameters | |
---|---|
Name | Description |
parent | String Required. The parent location from which to retrieve the collection of job templates.
Format: |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListJobTemplatesResponse, JobTemplate> | A pageable asynchronous sequence of JobTemplate resources. |
// Create client
TranscoderServiceClient transcoderServiceClient = await TranscoderServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListJobTemplatesResponse, JobTemplate> response = transcoderServiceClient.ListJobTemplatesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((JobTemplate 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((ListJobTemplatesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (JobTemplate 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<JobTemplate> 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 (JobTemplate 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;
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.