Show / Hide Table of Contents

Class SlateServiceClient

SlateService client wrapper, for convenient use.

Inheritance
object
SlateServiceClient
SlateServiceClientImpl
Inherited Members
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ToString()
Namespace: Google.Ads.AdManager.V1
Assembly: Google.Ads.AdManager.V1.dll
Syntax
public abstract class SlateServiceClient
Remarks

Provides methods for handling Slate objects.

Properties

DefaultEndpoint

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

Declaration
public static string DefaultEndpoint { get; }
Property Value
Type Description
string

DefaultScopes

The default SlateService scopes.

Declaration
public static IReadOnlyList<string> DefaultScopes { get; }
Property Value
Type Description
IReadOnlyList<string>
Remarks

The default SlateService scopes are:

  • https://www.googleapis.com/auth/admanager
  • https://www.googleapis.com/auth/admanager.readonly

GrpcClient

The underlying gRPC SlateService client

Declaration
public virtual SlateService.SlateServiceClient GrpcClient { get; }
Property Value
Type Description
SlateService.SlateServiceClient

ServiceMetadata

The service metadata associated with this client type.

Declaration
public static ServiceMetadata ServiceMetadata { get; }
Property Value
Type Description
ServiceMetadata

Methods

BatchArchiveSlates(BatchArchiveSlatesRequest, CallSettings)

Batch archives Slate objects.

Declaration
public virtual BatchArchiveSlatesResponse BatchArchiveSlates(BatchArchiveSlatesRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchArchiveSlatesRequest request

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
BatchArchiveSlatesResponse

The RPC response.

Sample code
// Create client
SlateServiceClient slateServiceClient = SlateServiceClient.Create();
// Initialize request argument(s)
BatchArchiveSlatesRequest request = new BatchArchiveSlatesRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    SlateNames =
    {
        SlateName.FromNetworkCodeSlate("[NETWORK_CODE]", "[SLATE]"),
    },
};
// Make the request
BatchArchiveSlatesResponse response = slateServiceClient.BatchArchiveSlates(request);

BatchArchiveSlates(NetworkName, IEnumerable<SlateName>, CallSettings)

Batch archives Slate objects.

Declaration
public virtual BatchArchiveSlatesResponse BatchArchiveSlates(NetworkName parent, IEnumerable<SlateName> names, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource containing the slates. Format: "networks/{network_code}"

IEnumerable<SlateName> names

Required. The resource names of the slates to archive. Format: "networks/{network_code}/slates/{slate_id}"

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchArchiveSlatesResponse

The RPC response.

Sample code
// Create client
SlateServiceClient slateServiceClient = SlateServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<SlateName> names = new SlateName[]
{
    SlateName.FromNetworkCodeSlate("[NETWORK_CODE]", "[SLATE]"),
};
// Make the request
BatchArchiveSlatesResponse response = slateServiceClient.BatchArchiveSlates(parent, names);

BatchArchiveSlates(string, IEnumerable<string>, CallSettings)

Batch archives Slate objects.

Declaration
public virtual BatchArchiveSlatesResponse BatchArchiveSlates(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent resource containing the slates. Format: "networks/{network_code}"

IEnumerable<string> names

Required. The resource names of the slates to archive. Format: "networks/{network_code}/slates/{slate_id}"

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchArchiveSlatesResponse

The RPC response.

Sample code
// Create client
SlateServiceClient slateServiceClient = SlateServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/slates/[SLATE]",
};
// Make the request
BatchArchiveSlatesResponse response = slateServiceClient.BatchArchiveSlates(parent, names);

BatchArchiveSlatesAsync(BatchArchiveSlatesRequest, CallSettings)

Batch archives Slate objects.

Declaration
public virtual Task<BatchArchiveSlatesResponse> BatchArchiveSlatesAsync(BatchArchiveSlatesRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchArchiveSlatesRequest request

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<BatchArchiveSlatesResponse>

A Task containing the RPC response.

Sample code
// Create client
SlateServiceClient slateServiceClient = await SlateServiceClient.CreateAsync();
// Initialize request argument(s)
BatchArchiveSlatesRequest request = new BatchArchiveSlatesRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    SlateNames =
    {
        SlateName.FromNetworkCodeSlate("[NETWORK_CODE]", "[SLATE]"),
    },
};
// Make the request
BatchArchiveSlatesResponse response = await slateServiceClient.BatchArchiveSlatesAsync(request);

BatchArchiveSlatesAsync(BatchArchiveSlatesRequest, CancellationToken)

Batch archives Slate objects.

Declaration
public virtual Task<BatchArchiveSlatesResponse> BatchArchiveSlatesAsync(BatchArchiveSlatesRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
BatchArchiveSlatesRequest request

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<BatchArchiveSlatesResponse>

A Task containing the RPC response.

Sample code
// Create client
SlateServiceClient slateServiceClient = await SlateServiceClient.CreateAsync();
// Initialize request argument(s)
BatchArchiveSlatesRequest request = new BatchArchiveSlatesRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    SlateNames =
    {
        SlateName.FromNetworkCodeSlate("[NETWORK_CODE]", "[SLATE]"),
    },
};
// Make the request
BatchArchiveSlatesResponse response = await slateServiceClient.BatchArchiveSlatesAsync(request);

BatchArchiveSlatesAsync(NetworkName, IEnumerable<SlateName>, CallSettings)

Batch archives Slate objects.

Declaration
public virtual Task<BatchArchiveSlatesResponse> BatchArchiveSlatesAsync(NetworkName parent, IEnumerable<SlateName> names, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource containing the slates. Format: "networks/{network_code}"

IEnumerable<SlateName> names

Required. The resource names of the slates to archive. Format: "networks/{network_code}/slates/{slate_id}"

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchArchiveSlatesResponse>

A Task containing the RPC response.

Sample code
// Create client
SlateServiceClient slateServiceClient = await SlateServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<SlateName> names = new SlateName[]
{
    SlateName.FromNetworkCodeSlate("[NETWORK_CODE]", "[SLATE]"),
};
// Make the request
BatchArchiveSlatesResponse response = await slateServiceClient.BatchArchiveSlatesAsync(parent, names);

BatchArchiveSlatesAsync(NetworkName, IEnumerable<SlateName>, CancellationToken)

Batch archives Slate objects.

Declaration
public virtual Task<BatchArchiveSlatesResponse> BatchArchiveSlatesAsync(NetworkName parent, IEnumerable<SlateName> names, CancellationToken cancellationToken)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource containing the slates. Format: "networks/{network_code}"

IEnumerable<SlateName> names

Required. The resource names of the slates to archive. Format: "networks/{network_code}/slates/{slate_id}"

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchArchiveSlatesResponse>

A Task containing the RPC response.

Sample code
// Create client
SlateServiceClient slateServiceClient = await SlateServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<SlateName> names = new SlateName[]
{
    SlateName.FromNetworkCodeSlate("[NETWORK_CODE]", "[SLATE]"),
};
// Make the request
BatchArchiveSlatesResponse response = await slateServiceClient.BatchArchiveSlatesAsync(parent, names);

BatchArchiveSlatesAsync(string, IEnumerable<string>, CallSettings)

Batch archives Slate objects.

Declaration
public virtual Task<BatchArchiveSlatesResponse> BatchArchiveSlatesAsync(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent resource containing the slates. Format: "networks/{network_code}"

IEnumerable<string> names

Required. The resource names of the slates to archive. Format: "networks/{network_code}/slates/{slate_id}"

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchArchiveSlatesResponse>

A Task containing the RPC response.

Sample code
// Create client
SlateServiceClient slateServiceClient = await SlateServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/slates/[SLATE]",
};
// Make the request
BatchArchiveSlatesResponse response = await slateServiceClient.BatchArchiveSlatesAsync(parent, names);

BatchArchiveSlatesAsync(string, IEnumerable<string>, CancellationToken)

Batch archives Slate objects.

Declaration
public virtual Task<BatchArchiveSlatesResponse> BatchArchiveSlatesAsync(string parent, IEnumerable<string> names, CancellationToken cancellationToken)
Parameters
Type Name Description
string parent

Required. The parent resource containing the slates. Format: "networks/{network_code}"

IEnumerable<string> names

Required. The resource names of the slates to archive. Format: "networks/{network_code}/slates/{slate_id}"

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchArchiveSlatesResponse>

A Task containing the RPC response.

Sample code
// Create client
SlateServiceClient slateServiceClient = await SlateServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/slates/[SLATE]",
};
// Make the request
BatchArchiveSlatesResponse response = await slateServiceClient.BatchArchiveSlatesAsync(parent, names);

BatchCreateSlates(BatchCreateSlatesRequest, CallSettings)

Batch creates Slate objects.

Declaration
public virtual BatchCreateSlatesResponse BatchCreateSlates(BatchCreateSlatesRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchCreateSlatesRequest request

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
BatchCreateSlatesResponse

The RPC response.

Sample code
// Create client
SlateServiceClient slateServiceClient = SlateServiceClient.Create();
// Initialize request argument(s)
BatchCreateSlatesRequest request = new BatchCreateSlatesRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    Requests =
    {
        new CreateSlateRequest(),
    },
};
// Make the request
BatchCreateSlatesResponse response = slateServiceClient.BatchCreateSlates(request);

BatchCreateSlates(NetworkName, IEnumerable<CreateSlateRequest>, CallSettings)

Batch creates Slate objects.

Declaration
public virtual BatchCreateSlatesResponse BatchCreateSlates(NetworkName parent, IEnumerable<CreateSlateRequest> requests, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where Slates will be created. Format: networks/{network_code} The parent field in the CreateSlateRequest must match this field.

IEnumerable<CreateSlateRequest> requests

Required. The Slate objects to create. A maximum of 100 objects can be created in a batch.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchCreateSlatesResponse

The RPC response.

Sample code
// Create client
SlateServiceClient slateServiceClient = SlateServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<CreateSlateRequest> requests = new CreateSlateRequest[]
{
    new CreateSlateRequest(),
};
// Make the request
BatchCreateSlatesResponse response = slateServiceClient.BatchCreateSlates(parent, requests);

BatchCreateSlates(string, IEnumerable<CreateSlateRequest>, CallSettings)

Batch creates Slate objects.

Declaration
public virtual BatchCreateSlatesResponse BatchCreateSlates(string parent, IEnumerable<CreateSlateRequest> requests, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent resource where Slates will be created. Format: networks/{network_code} The parent field in the CreateSlateRequest must match this field.

IEnumerable<CreateSlateRequest> requests

Required. The Slate objects to create. A maximum of 100 objects can be created in a batch.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchCreateSlatesResponse

The RPC response.

Sample code
// Create client
SlateServiceClient slateServiceClient = SlateServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<CreateSlateRequest> requests = new CreateSlateRequest[]
{
    new CreateSlateRequest(),
};
// Make the request
BatchCreateSlatesResponse response = slateServiceClient.BatchCreateSlates(parent, requests);

BatchCreateSlatesAsync(BatchCreateSlatesRequest, CallSettings)

Batch creates Slate objects.

Declaration
public virtual Task<BatchCreateSlatesResponse> BatchCreateSlatesAsync(BatchCreateSlatesRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchCreateSlatesRequest request

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<BatchCreateSlatesResponse>

A Task containing the RPC response.

Sample code
// Create client
SlateServiceClient slateServiceClient = await SlateServiceClient.CreateAsync();
// Initialize request argument(s)
BatchCreateSlatesRequest request = new BatchCreateSlatesRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    Requests =
    {
        new CreateSlateRequest(),
    },
};
// Make the request
BatchCreateSlatesResponse response = await slateServiceClient.BatchCreateSlatesAsync(request);

BatchCreateSlatesAsync(BatchCreateSlatesRequest, CancellationToken)

Batch creates Slate objects.

Declaration
public virtual Task<BatchCreateSlatesResponse> BatchCreateSlatesAsync(BatchCreateSlatesRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
BatchCreateSlatesRequest request

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<BatchCreateSlatesResponse>

A Task containing the RPC response.

Sample code
// Create client
SlateServiceClient slateServiceClient = await SlateServiceClient.CreateAsync();
// Initialize request argument(s)
BatchCreateSlatesRequest request = new BatchCreateSlatesRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    Requests =
    {
        new CreateSlateRequest(),
    },
};
// Make the request
BatchCreateSlatesResponse response = await slateServiceClient.BatchCreateSlatesAsync(request);

BatchCreateSlatesAsync(NetworkName, IEnumerable<CreateSlateRequest>, CallSettings)

Batch creates Slate objects.

Declaration
public virtual Task<BatchCreateSlatesResponse> BatchCreateSlatesAsync(NetworkName parent, IEnumerable<CreateSlateRequest> requests, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where Slates will be created. Format: networks/{network_code} The parent field in the CreateSlateRequest must match this field.

IEnumerable<CreateSlateRequest> requests

Required. The Slate objects to create. A maximum of 100 objects can be created in a batch.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchCreateSlatesResponse>

A Task containing the RPC response.

Sample code
// Create client
SlateServiceClient slateServiceClient = await SlateServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<CreateSlateRequest> requests = new CreateSlateRequest[]
{
    new CreateSlateRequest(),
};
// Make the request
BatchCreateSlatesResponse response = await slateServiceClient.BatchCreateSlatesAsync(parent, requests);

BatchCreateSlatesAsync(NetworkName, IEnumerable<CreateSlateRequest>, CancellationToken)

Batch creates Slate objects.

Declaration
public virtual Task<BatchCreateSlatesResponse> BatchCreateSlatesAsync(NetworkName parent, IEnumerable<CreateSlateRequest> requests, CancellationToken cancellationToken)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where Slates will be created. Format: networks/{network_code} The parent field in the CreateSlateRequest must match this field.

IEnumerable<CreateSlateRequest> requests

Required. The Slate objects to create. A maximum of 100 objects can be created in a batch.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchCreateSlatesResponse>

A Task containing the RPC response.

Sample code
// Create client
SlateServiceClient slateServiceClient = await SlateServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<CreateSlateRequest> requests = new CreateSlateRequest[]
{
    new CreateSlateRequest(),
};
// Make the request
BatchCreateSlatesResponse response = await slateServiceClient.BatchCreateSlatesAsync(parent, requests);

BatchCreateSlatesAsync(string, IEnumerable<CreateSlateRequest>, CallSettings)

Batch creates Slate objects.

Declaration
public virtual Task<BatchCreateSlatesResponse> BatchCreateSlatesAsync(string parent, IEnumerable<CreateSlateRequest> requests, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent resource where Slates will be created. Format: networks/{network_code} The parent field in the CreateSlateRequest must match this field.

IEnumerable<CreateSlateRequest> requests

Required. The Slate objects to create. A maximum of 100 objects can be created in a batch.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchCreateSlatesResponse>

A Task containing the RPC response.

Sample code
// Create client
SlateServiceClient slateServiceClient = await SlateServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<CreateSlateRequest> requests = new CreateSlateRequest[]
{
    new CreateSlateRequest(),
};
// Make the request
BatchCreateSlatesResponse response = await slateServiceClient.BatchCreateSlatesAsync(parent, requests);

BatchCreateSlatesAsync(string, IEnumerable<CreateSlateRequest>, CancellationToken)

Batch creates Slate objects.

Declaration
public virtual Task<BatchCreateSlatesResponse> BatchCreateSlatesAsync(string parent, IEnumerable<CreateSlateRequest> requests, CancellationToken cancellationToken)
Parameters
Type Name Description
string parent

Required. The parent resource where Slates will be created. Format: networks/{network_code} The parent field in the CreateSlateRequest must match this field.

IEnumerable<CreateSlateRequest> requests

Required. The Slate objects to create. A maximum of 100 objects can be created in a batch.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchCreateSlatesResponse>

A Task containing the RPC response.

Sample code
// Create client
SlateServiceClient slateServiceClient = await SlateServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<CreateSlateRequest> requests = new CreateSlateRequest[]
{
    new CreateSlateRequest(),
};
// Make the request
BatchCreateSlatesResponse response = await slateServiceClient.BatchCreateSlatesAsync(parent, requests);

BatchUnarchiveSlates(BatchUnarchiveSlatesRequest, CallSettings)

Batch unarchives Slate objects.

Declaration
public virtual BatchUnarchiveSlatesResponse BatchUnarchiveSlates(BatchUnarchiveSlatesRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchUnarchiveSlatesRequest request

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
BatchUnarchiveSlatesResponse

The RPC response.

Sample code
// Create client
SlateServiceClient slateServiceClient = SlateServiceClient.Create();
// Initialize request argument(s)
BatchUnarchiveSlatesRequest request = new BatchUnarchiveSlatesRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    SlateNames =
    {
        SlateName.FromNetworkCodeSlate("[NETWORK_CODE]", "[SLATE]"),
    },
};
// Make the request
BatchUnarchiveSlatesResponse response = slateServiceClient.BatchUnarchiveSlates(request);

BatchUnarchiveSlates(NetworkName, IEnumerable<SlateName>, CallSettings)

Batch unarchives Slate objects.

Declaration
public virtual BatchUnarchiveSlatesResponse BatchUnarchiveSlates(NetworkName parent, IEnumerable<SlateName> names, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource containing the slates. Format: "networks/{network_code}"

IEnumerable<SlateName> names

Required. The resource names of the slates to unarchive. Format: "networks/{network_code}/slates/{slate_id}"

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchUnarchiveSlatesResponse

The RPC response.

Sample code
// Create client
SlateServiceClient slateServiceClient = SlateServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<SlateName> names = new SlateName[]
{
    SlateName.FromNetworkCodeSlate("[NETWORK_CODE]", "[SLATE]"),
};
// Make the request
BatchUnarchiveSlatesResponse response = slateServiceClient.BatchUnarchiveSlates(parent, names);

BatchUnarchiveSlates(string, IEnumerable<string>, CallSettings)

Batch unarchives Slate objects.

Declaration
public virtual BatchUnarchiveSlatesResponse BatchUnarchiveSlates(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent resource containing the slates. Format: "networks/{network_code}"

IEnumerable<string> names

Required. The resource names of the slates to unarchive. Format: "networks/{network_code}/slates/{slate_id}"

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchUnarchiveSlatesResponse

The RPC response.

Sample code
// Create client
SlateServiceClient slateServiceClient = SlateServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/slates/[SLATE]",
};
// Make the request
BatchUnarchiveSlatesResponse response = slateServiceClient.BatchUnarchiveSlates(parent, names);

BatchUnarchiveSlatesAsync(BatchUnarchiveSlatesRequest, CallSettings)

Batch unarchives Slate objects.

Declaration
public virtual Task<BatchUnarchiveSlatesResponse> BatchUnarchiveSlatesAsync(BatchUnarchiveSlatesRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchUnarchiveSlatesRequest request

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<BatchUnarchiveSlatesResponse>

A Task containing the RPC response.

Sample code
// Create client
SlateServiceClient slateServiceClient = await SlateServiceClient.CreateAsync();
// Initialize request argument(s)
BatchUnarchiveSlatesRequest request = new BatchUnarchiveSlatesRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    SlateNames =
    {
        SlateName.FromNetworkCodeSlate("[NETWORK_CODE]", "[SLATE]"),
    },
};
// Make the request
BatchUnarchiveSlatesResponse response = await slateServiceClient.BatchUnarchiveSlatesAsync(request);

BatchUnarchiveSlatesAsync(BatchUnarchiveSlatesRequest, CancellationToken)

Batch unarchives Slate objects.

Declaration
public virtual Task<BatchUnarchiveSlatesResponse> BatchUnarchiveSlatesAsync(BatchUnarchiveSlatesRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
BatchUnarchiveSlatesRequest request

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<BatchUnarchiveSlatesResponse>

A Task containing the RPC response.

Sample code
// Create client
SlateServiceClient slateServiceClient = await SlateServiceClient.CreateAsync();
// Initialize request argument(s)
BatchUnarchiveSlatesRequest request = new BatchUnarchiveSlatesRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    SlateNames =
    {
        SlateName.FromNetworkCodeSlate("[NETWORK_CODE]", "[SLATE]"),
    },
};
// Make the request
BatchUnarchiveSlatesResponse response = await slateServiceClient.BatchUnarchiveSlatesAsync(request);

BatchUnarchiveSlatesAsync(NetworkName, IEnumerable<SlateName>, CallSettings)

Batch unarchives Slate objects.

Declaration
public virtual Task<BatchUnarchiveSlatesResponse> BatchUnarchiveSlatesAsync(NetworkName parent, IEnumerable<SlateName> names, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource containing the slates. Format: "networks/{network_code}"

IEnumerable<SlateName> names

Required. The resource names of the slates to unarchive. Format: "networks/{network_code}/slates/{slate_id}"

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchUnarchiveSlatesResponse>

A Task containing the RPC response.

Sample code
// Create client
SlateServiceClient slateServiceClient = await SlateServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<SlateName> names = new SlateName[]
{
    SlateName.FromNetworkCodeSlate("[NETWORK_CODE]", "[SLATE]"),
};
// Make the request
BatchUnarchiveSlatesResponse response = await slateServiceClient.BatchUnarchiveSlatesAsync(parent, names);

BatchUnarchiveSlatesAsync(NetworkName, IEnumerable<SlateName>, CancellationToken)

Batch unarchives Slate objects.

Declaration
public virtual Task<BatchUnarchiveSlatesResponse> BatchUnarchiveSlatesAsync(NetworkName parent, IEnumerable<SlateName> names, CancellationToken cancellationToken)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource containing the slates. Format: "networks/{network_code}"

IEnumerable<SlateName> names

Required. The resource names of the slates to unarchive. Format: "networks/{network_code}/slates/{slate_id}"

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchUnarchiveSlatesResponse>

A Task containing the RPC response.

Sample code
// Create client
SlateServiceClient slateServiceClient = await SlateServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<SlateName> names = new SlateName[]
{
    SlateName.FromNetworkCodeSlate("[NETWORK_CODE]", "[SLATE]"),
};
// Make the request
BatchUnarchiveSlatesResponse response = await slateServiceClient.BatchUnarchiveSlatesAsync(parent, names);

BatchUnarchiveSlatesAsync(string, IEnumerable<string>, CallSettings)

Batch unarchives Slate objects.

Declaration
public virtual Task<BatchUnarchiveSlatesResponse> BatchUnarchiveSlatesAsync(string parent, IEnumerable<string> names, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent resource containing the slates. Format: "networks/{network_code}"

IEnumerable<string> names

Required. The resource names of the slates to unarchive. Format: "networks/{network_code}/slates/{slate_id}"

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchUnarchiveSlatesResponse>

A Task containing the RPC response.

Sample code
// Create client
SlateServiceClient slateServiceClient = await SlateServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/slates/[SLATE]",
};
// Make the request
BatchUnarchiveSlatesResponse response = await slateServiceClient.BatchUnarchiveSlatesAsync(parent, names);

BatchUnarchiveSlatesAsync(string, IEnumerable<string>, CancellationToken)

Batch unarchives Slate objects.

Declaration
public virtual Task<BatchUnarchiveSlatesResponse> BatchUnarchiveSlatesAsync(string parent, IEnumerable<string> names, CancellationToken cancellationToken)
Parameters
Type Name Description
string parent

Required. The parent resource containing the slates. Format: "networks/{network_code}"

IEnumerable<string> names

Required. The resource names of the slates to unarchive. Format: "networks/{network_code}/slates/{slate_id}"

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchUnarchiveSlatesResponse>

A Task containing the RPC response.

Sample code
// Create client
SlateServiceClient slateServiceClient = await SlateServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/slates/[SLATE]",
};
// Make the request
BatchUnarchiveSlatesResponse response = await slateServiceClient.BatchUnarchiveSlatesAsync(parent, names);

BatchUpdateSlates(BatchUpdateSlatesRequest, CallSettings)

Batch updates Slate objects.

Declaration
public virtual BatchUpdateSlatesResponse BatchUpdateSlates(BatchUpdateSlatesRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchUpdateSlatesRequest request

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
BatchUpdateSlatesResponse

The RPC response.

Sample code
// Create client
SlateServiceClient slateServiceClient = SlateServiceClient.Create();
// Initialize request argument(s)
BatchUpdateSlatesRequest request = new BatchUpdateSlatesRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    Requests =
    {
        new UpdateSlateRequest(),
    },
};
// Make the request
BatchUpdateSlatesResponse response = slateServiceClient.BatchUpdateSlates(request);

BatchUpdateSlates(NetworkName, IEnumerable<UpdateSlateRequest>, CallSettings)

Batch updates Slate objects.

Declaration
public virtual BatchUpdateSlatesResponse BatchUpdateSlates(NetworkName parent, IEnumerable<UpdateSlateRequest> requests, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where Slates will be updated. Format: networks/{network_code} The parent field in the UpdateSlateRequest must match this field.

IEnumerable<UpdateSlateRequest> requests

Required. The Slate objects to update. A maximum of 100 objects can be updated in a batch.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchUpdateSlatesResponse

The RPC response.

Sample code
// Create client
SlateServiceClient slateServiceClient = SlateServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<UpdateSlateRequest> requests = new UpdateSlateRequest[]
{
    new UpdateSlateRequest(),
};
// Make the request
BatchUpdateSlatesResponse response = slateServiceClient.BatchUpdateSlates(parent, requests);

BatchUpdateSlates(string, IEnumerable<UpdateSlateRequest>, CallSettings)

Batch updates Slate objects.

Declaration
public virtual BatchUpdateSlatesResponse BatchUpdateSlates(string parent, IEnumerable<UpdateSlateRequest> requests, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent resource where Slates will be updated. Format: networks/{network_code} The parent field in the UpdateSlateRequest must match this field.

IEnumerable<UpdateSlateRequest> requests

Required. The Slate objects to update. A maximum of 100 objects can be updated in a batch.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchUpdateSlatesResponse

The RPC response.

Sample code
// Create client
SlateServiceClient slateServiceClient = SlateServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<UpdateSlateRequest> requests = new UpdateSlateRequest[]
{
    new UpdateSlateRequest(),
};
// Make the request
BatchUpdateSlatesResponse response = slateServiceClient.BatchUpdateSlates(parent, requests);

BatchUpdateSlatesAsync(BatchUpdateSlatesRequest, CallSettings)

Batch updates Slate objects.

Declaration
public virtual Task<BatchUpdateSlatesResponse> BatchUpdateSlatesAsync(BatchUpdateSlatesRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchUpdateSlatesRequest request

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<BatchUpdateSlatesResponse>

A Task containing the RPC response.

Sample code
// Create client
SlateServiceClient slateServiceClient = await SlateServiceClient.CreateAsync();
// Initialize request argument(s)
BatchUpdateSlatesRequest request = new BatchUpdateSlatesRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    Requests =
    {
        new UpdateSlateRequest(),
    },
};
// Make the request
BatchUpdateSlatesResponse response = await slateServiceClient.BatchUpdateSlatesAsync(request);

BatchUpdateSlatesAsync(BatchUpdateSlatesRequest, CancellationToken)

Batch updates Slate objects.

Declaration
public virtual Task<BatchUpdateSlatesResponse> BatchUpdateSlatesAsync(BatchUpdateSlatesRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
BatchUpdateSlatesRequest request

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<BatchUpdateSlatesResponse>

A Task containing the RPC response.

Sample code
// Create client
SlateServiceClient slateServiceClient = await SlateServiceClient.CreateAsync();
// Initialize request argument(s)
BatchUpdateSlatesRequest request = new BatchUpdateSlatesRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    Requests =
    {
        new UpdateSlateRequest(),
    },
};
// Make the request
BatchUpdateSlatesResponse response = await slateServiceClient.BatchUpdateSlatesAsync(request);

BatchUpdateSlatesAsync(NetworkName, IEnumerable<UpdateSlateRequest>, CallSettings)

Batch updates Slate objects.

Declaration
public virtual Task<BatchUpdateSlatesResponse> BatchUpdateSlatesAsync(NetworkName parent, IEnumerable<UpdateSlateRequest> requests, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where Slates will be updated. Format: networks/{network_code} The parent field in the UpdateSlateRequest must match this field.

IEnumerable<UpdateSlateRequest> requests

Required. The Slate objects to update. A maximum of 100 objects can be updated in a batch.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchUpdateSlatesResponse>

A Task containing the RPC response.

Sample code
// Create client
SlateServiceClient slateServiceClient = await SlateServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<UpdateSlateRequest> requests = new UpdateSlateRequest[]
{
    new UpdateSlateRequest(),
};
// Make the request
BatchUpdateSlatesResponse response = await slateServiceClient.BatchUpdateSlatesAsync(parent, requests);

BatchUpdateSlatesAsync(NetworkName, IEnumerable<UpdateSlateRequest>, CancellationToken)

Batch updates Slate objects.

Declaration
public virtual Task<BatchUpdateSlatesResponse> BatchUpdateSlatesAsync(NetworkName parent, IEnumerable<UpdateSlateRequest> requests, CancellationToken cancellationToken)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where Slates will be updated. Format: networks/{network_code} The parent field in the UpdateSlateRequest must match this field.

IEnumerable<UpdateSlateRequest> requests

Required. The Slate objects to update. A maximum of 100 objects can be updated in a batch.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchUpdateSlatesResponse>

A Task containing the RPC response.

Sample code
// Create client
SlateServiceClient slateServiceClient = await SlateServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<UpdateSlateRequest> requests = new UpdateSlateRequest[]
{
    new UpdateSlateRequest(),
};
// Make the request
BatchUpdateSlatesResponse response = await slateServiceClient.BatchUpdateSlatesAsync(parent, requests);

BatchUpdateSlatesAsync(string, IEnumerable<UpdateSlateRequest>, CallSettings)

Batch updates Slate objects.

Declaration
public virtual Task<BatchUpdateSlatesResponse> BatchUpdateSlatesAsync(string parent, IEnumerable<UpdateSlateRequest> requests, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent resource where Slates will be updated. Format: networks/{network_code} The parent field in the UpdateSlateRequest must match this field.

IEnumerable<UpdateSlateRequest> requests

Required. The Slate objects to update. A maximum of 100 objects can be updated in a batch.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchUpdateSlatesResponse>

A Task containing the RPC response.

Sample code
// Create client
SlateServiceClient slateServiceClient = await SlateServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<UpdateSlateRequest> requests = new UpdateSlateRequest[]
{
    new UpdateSlateRequest(),
};
// Make the request
BatchUpdateSlatesResponse response = await slateServiceClient.BatchUpdateSlatesAsync(parent, requests);

BatchUpdateSlatesAsync(string, IEnumerable<UpdateSlateRequest>, CancellationToken)

Batch updates Slate objects.

Declaration
public virtual Task<BatchUpdateSlatesResponse> BatchUpdateSlatesAsync(string parent, IEnumerable<UpdateSlateRequest> requests, CancellationToken cancellationToken)
Parameters
Type Name Description
string parent

Required. The parent resource where Slates will be updated. Format: networks/{network_code} The parent field in the UpdateSlateRequest must match this field.

IEnumerable<UpdateSlateRequest> requests

Required. The Slate objects to update. A maximum of 100 objects can be updated in a batch.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchUpdateSlatesResponse>

A Task containing the RPC response.

Sample code
// Create client
SlateServiceClient slateServiceClient = await SlateServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<UpdateSlateRequest> requests = new UpdateSlateRequest[]
{
    new UpdateSlateRequest(),
};
// Make the request
BatchUpdateSlatesResponse response = await slateServiceClient.BatchUpdateSlatesAsync(parent, requests);

Create()

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

Declaration
public static SlateServiceClient Create()
Returns
Type Description
SlateServiceClient

The created SlateServiceClient.

CreateAsync(CancellationToken)

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

Declaration
public static Task<SlateServiceClient> CreateAsync(CancellationToken cancellationToken = default)
Parameters
Type Name Description
CancellationToken cancellationToken

The CancellationToken to use while creating the client.

Returns
Type Description
Task<SlateServiceClient>

The task representing the created SlateServiceClient.

CreateSlate(CreateSlateRequest, CallSettings)

Creates a Slate object.

Declaration
public virtual Slate CreateSlate(CreateSlateRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
CreateSlateRequest request

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
Slate

The RPC response.

Sample code
// Create client
SlateServiceClient slateServiceClient = SlateServiceClient.Create();
// Initialize request argument(s)
CreateSlateRequest request = new CreateSlateRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    Slate = new Slate(),
};
// Make the request
Slate response = slateServiceClient.CreateSlate(request);

CreateSlate(NetworkName, Slate, CallSettings)

Creates a Slate object.

Declaration
public virtual Slate CreateSlate(NetworkName parent, Slate slate, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where this Slate will be created. Format: networks/{network_code}

Slate slate

Required. The Slate to create.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Slate

The RPC response.

Sample code
// Create client
SlateServiceClient slateServiceClient = SlateServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
Slate slate = new Slate();
// Make the request
Slate response = slateServiceClient.CreateSlate(parent, slate);

CreateSlate(string, Slate, CallSettings)

Creates a Slate object.

Declaration
public virtual Slate CreateSlate(string parent, Slate slate, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent resource where this Slate will be created. Format: networks/{network_code}

Slate slate

Required. The Slate to create.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Slate

The RPC response.

Sample code
// Create client
SlateServiceClient slateServiceClient = SlateServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
Slate slate = new Slate();
// Make the request
Slate response = slateServiceClient.CreateSlate(parent, slate);

CreateSlateAsync(CreateSlateRequest, CallSettings)

Creates a Slate object.

Declaration
public virtual Task<Slate> CreateSlateAsync(CreateSlateRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
CreateSlateRequest request

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<Slate>

A Task containing the RPC response.

Sample code
// Create client
SlateServiceClient slateServiceClient = await SlateServiceClient.CreateAsync();
// Initialize request argument(s)
CreateSlateRequest request = new CreateSlateRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    Slate = new Slate(),
};
// Make the request
Slate response = await slateServiceClient.CreateSlateAsync(request);

CreateSlateAsync(CreateSlateRequest, CancellationToken)

Creates a Slate object.

Declaration
public virtual Task<Slate> CreateSlateAsync(CreateSlateRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
CreateSlateRequest request

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<Slate>

A Task containing the RPC response.

Sample code
// Create client
SlateServiceClient slateServiceClient = await SlateServiceClient.CreateAsync();
// Initialize request argument(s)
CreateSlateRequest request = new CreateSlateRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    Slate = new Slate(),
};
// Make the request
Slate response = await slateServiceClient.CreateSlateAsync(request);

CreateSlateAsync(NetworkName, Slate, CallSettings)

Creates a Slate object.

Declaration
public virtual Task<Slate> CreateSlateAsync(NetworkName parent, Slate slate, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where this Slate will be created. Format: networks/{network_code}

Slate slate

Required. The Slate to create.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Slate>

A Task containing the RPC response.

Sample code
// Create client
SlateServiceClient slateServiceClient = await SlateServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
Slate slate = new Slate();
// Make the request
Slate response = await slateServiceClient.CreateSlateAsync(parent, slate);

CreateSlateAsync(NetworkName, Slate, CancellationToken)

Creates a Slate object.

Declaration
public virtual Task<Slate> CreateSlateAsync(NetworkName parent, Slate slate, CancellationToken cancellationToken)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource where this Slate will be created. Format: networks/{network_code}

Slate slate

Required. The Slate to create.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<Slate>

A Task containing the RPC response.

Sample code
// Create client
SlateServiceClient slateServiceClient = await SlateServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
Slate slate = new Slate();
// Make the request
Slate response = await slateServiceClient.CreateSlateAsync(parent, slate);

CreateSlateAsync(string, Slate, CallSettings)

Creates a Slate object.

Declaration
public virtual Task<Slate> CreateSlateAsync(string parent, Slate slate, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent resource where this Slate will be created. Format: networks/{network_code}

Slate slate

Required. The Slate to create.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Slate>

A Task containing the RPC response.

Sample code
// Create client
SlateServiceClient slateServiceClient = await SlateServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
Slate slate = new Slate();
// Make the request
Slate response = await slateServiceClient.CreateSlateAsync(parent, slate);

CreateSlateAsync(string, Slate, CancellationToken)

Creates a Slate object.

Declaration
public virtual Task<Slate> CreateSlateAsync(string parent, Slate slate, CancellationToken cancellationToken)
Parameters
Type Name Description
string parent

Required. The parent resource where this Slate will be created. Format: networks/{network_code}

Slate slate

Required. The Slate to create.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<Slate>

A Task containing the RPC response.

Sample code
// Create client
SlateServiceClient slateServiceClient = await SlateServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
Slate slate = new Slate();
// Make the request
Slate response = await slateServiceClient.CreateSlateAsync(parent, slate);

GetSlate(GetSlateRequest, CallSettings)

Retrieves a Slate object.

Declaration
public virtual Slate GetSlate(GetSlateRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
GetSlateRequest request

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
Slate

The RPC response.

Sample code
// Create client
SlateServiceClient slateServiceClient = SlateServiceClient.Create();
// Initialize request argument(s)
GetSlateRequest request = new GetSlateRequest
{
    SlateName = SlateName.FromNetworkCodeSlate("[NETWORK_CODE]", "[SLATE]"),
};
// Make the request
Slate response = slateServiceClient.GetSlate(request);

GetSlate(SlateName, CallSettings)

Retrieves a Slate object.

Declaration
public virtual Slate GetSlate(SlateName name, CallSettings callSettings = null)
Parameters
Type Name Description
SlateName name

Required. The resource name of the Slate to retrieve. Format: networks/{network_code}/slates/{slate_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Slate

The RPC response.

Sample code
// Create client
SlateServiceClient slateServiceClient = SlateServiceClient.Create();
// Initialize request argument(s)
SlateName name = SlateName.FromNetworkCodeSlate("[NETWORK_CODE]", "[SLATE]");
// Make the request
Slate response = slateServiceClient.GetSlate(name);

GetSlate(string, CallSettings)

Retrieves a Slate object.

Declaration
public virtual Slate GetSlate(string name, CallSettings callSettings = null)
Parameters
Type Name Description
string name

Required. The resource name of the Slate to retrieve. Format: networks/{network_code}/slates/{slate_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Slate

The RPC response.

Sample code
// Create client
SlateServiceClient slateServiceClient = SlateServiceClient.Create();
// Initialize request argument(s)
string name = "networks/[NETWORK_CODE]/slates/[SLATE]";
// Make the request
Slate response = slateServiceClient.GetSlate(name);

GetSlateAsync(GetSlateRequest, CallSettings)

Retrieves a Slate object.

Declaration
public virtual Task<Slate> GetSlateAsync(GetSlateRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
GetSlateRequest request

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<Slate>

A Task containing the RPC response.

Sample code
// Create client
SlateServiceClient slateServiceClient = await SlateServiceClient.CreateAsync();
// Initialize request argument(s)
GetSlateRequest request = new GetSlateRequest
{
    SlateName = SlateName.FromNetworkCodeSlate("[NETWORK_CODE]", "[SLATE]"),
};
// Make the request
Slate response = await slateServiceClient.GetSlateAsync(request);

GetSlateAsync(GetSlateRequest, CancellationToken)

Retrieves a Slate object.

Declaration
public virtual Task<Slate> GetSlateAsync(GetSlateRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
GetSlateRequest request

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<Slate>

A Task containing the RPC response.

Sample code
// Create client
SlateServiceClient slateServiceClient = await SlateServiceClient.CreateAsync();
// Initialize request argument(s)
GetSlateRequest request = new GetSlateRequest
{
    SlateName = SlateName.FromNetworkCodeSlate("[NETWORK_CODE]", "[SLATE]"),
};
// Make the request
Slate response = await slateServiceClient.GetSlateAsync(request);

GetSlateAsync(SlateName, CallSettings)

Retrieves a Slate object.

Declaration
public virtual Task<Slate> GetSlateAsync(SlateName name, CallSettings callSettings = null)
Parameters
Type Name Description
SlateName name

Required. The resource name of the Slate to retrieve. Format: networks/{network_code}/slates/{slate_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Slate>

A Task containing the RPC response.

Sample code
// Create client
SlateServiceClient slateServiceClient = await SlateServiceClient.CreateAsync();
// Initialize request argument(s)
SlateName name = SlateName.FromNetworkCodeSlate("[NETWORK_CODE]", "[SLATE]");
// Make the request
Slate response = await slateServiceClient.GetSlateAsync(name);

GetSlateAsync(SlateName, CancellationToken)

Retrieves a Slate object.

Declaration
public virtual Task<Slate> GetSlateAsync(SlateName name, CancellationToken cancellationToken)
Parameters
Type Name Description
SlateName name

Required. The resource name of the Slate to retrieve. Format: networks/{network_code}/slates/{slate_id}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<Slate>

A Task containing the RPC response.

Sample code
// Create client
SlateServiceClient slateServiceClient = await SlateServiceClient.CreateAsync();
// Initialize request argument(s)
SlateName name = SlateName.FromNetworkCodeSlate("[NETWORK_CODE]", "[SLATE]");
// Make the request
Slate response = await slateServiceClient.GetSlateAsync(name);

GetSlateAsync(string, CallSettings)

Retrieves a Slate object.

Declaration
public virtual Task<Slate> GetSlateAsync(string name, CallSettings callSettings = null)
Parameters
Type Name Description
string name

Required. The resource name of the Slate to retrieve. Format: networks/{network_code}/slates/{slate_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Slate>

A Task containing the RPC response.

Sample code
// Create client
SlateServiceClient slateServiceClient = await SlateServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "networks/[NETWORK_CODE]/slates/[SLATE]";
// Make the request
Slate response = await slateServiceClient.GetSlateAsync(name);

GetSlateAsync(string, CancellationToken)

Retrieves a Slate object.

Declaration
public virtual Task<Slate> GetSlateAsync(string name, CancellationToken cancellationToken)
Parameters
Type Name Description
string name

Required. The resource name of the Slate to retrieve. Format: networks/{network_code}/slates/{slate_id}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<Slate>

A Task containing the RPC response.

Sample code
// Create client
SlateServiceClient slateServiceClient = await SlateServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "networks/[NETWORK_CODE]/slates/[SLATE]";
// Make the request
Slate response = await slateServiceClient.GetSlateAsync(name);

ListSlates(ListSlatesRequest, CallSettings)

Lists Slate objects.

Declaration
public virtual PagedEnumerable<ListSlatesResponse, Slate> ListSlates(ListSlatesRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
ListSlatesRequest request

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<ListSlatesResponse, Slate>

A pageable sequence of Slate resources.

Sample code
// Create client
SlateServiceClient slateServiceClient = SlateServiceClient.Create();
// Initialize request argument(s)
ListSlatesRequest request = new ListSlatesRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    Filter = "",
    OrderBy = "",
    Skip = 0,
};
// Make the request
PagedEnumerable<ListSlatesResponse, Slate> response = slateServiceClient.ListSlates(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (Slate 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 (ListSlatesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Slate 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<Slate> 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 (Slate 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;

ListSlates(NetworkName, string, int?, CallSettings)

Lists Slate objects.

Declaration
public virtual PagedEnumerable<ListSlatesResponse, Slate> ListSlates(NetworkName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource containing the Slates. Format: networks/{network_code}

string pageToken

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

int? pageSize

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

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerable<ListSlatesResponse, Slate>

A pageable sequence of Slate resources.

Sample code
// Create client
SlateServiceClient slateServiceClient = SlateServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
// Make the request
PagedEnumerable<ListSlatesResponse, Slate> response = slateServiceClient.ListSlates(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Slate 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 (ListSlatesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Slate 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<Slate> 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 (Slate 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;

ListSlates(string, string, int?, CallSettings)

Lists Slate objects.

Declaration
public virtual PagedEnumerable<ListSlatesResponse, Slate> ListSlates(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent resource containing the Slates. Format: networks/{network_code}

string pageToken

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

int? pageSize

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

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerable<ListSlatesResponse, Slate>

A pageable sequence of Slate resources.

Sample code
// Create client
SlateServiceClient slateServiceClient = SlateServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
// Make the request
PagedEnumerable<ListSlatesResponse, Slate> response = slateServiceClient.ListSlates(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Slate 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 (ListSlatesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Slate 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<Slate> 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 (Slate 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;

ListSlatesAsync(ListSlatesRequest, CallSettings)

Lists Slate objects.

Declaration
public virtual PagedAsyncEnumerable<ListSlatesResponse, Slate> ListSlatesAsync(ListSlatesRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
ListSlatesRequest request

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<ListSlatesResponse, Slate>

A pageable asynchronous sequence of Slate resources.

Sample code
// Create client
SlateServiceClient slateServiceClient = await SlateServiceClient.CreateAsync();
// Initialize request argument(s)
ListSlatesRequest request = new ListSlatesRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    Filter = "",
    OrderBy = "",
    Skip = 0,
};
// Make the request
PagedAsyncEnumerable<ListSlatesResponse, Slate> response = slateServiceClient.ListSlatesAsync(request);

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

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListSlatesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Slate 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<Slate> 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 (Slate 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;

ListSlatesAsync(NetworkName, string, int?, CallSettings)

Lists Slate objects.

Declaration
public virtual PagedAsyncEnumerable<ListSlatesResponse, Slate> ListSlatesAsync(NetworkName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent resource containing the Slates. Format: networks/{network_code}

string pageToken

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

int? pageSize

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

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerable<ListSlatesResponse, Slate>

A pageable asynchronous sequence of Slate resources.

Sample code
// Create client
SlateServiceClient slateServiceClient = await SlateServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
// Make the request
PagedAsyncEnumerable<ListSlatesResponse, Slate> response = slateServiceClient.ListSlatesAsync(parent);

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

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListSlatesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Slate 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<Slate> 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 (Slate 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;

ListSlatesAsync(string, string, int?, CallSettings)

Lists Slate objects.

Declaration
public virtual PagedAsyncEnumerable<ListSlatesResponse, Slate> ListSlatesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent resource containing the Slates. Format: networks/{network_code}

string pageToken

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

int? pageSize

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

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerable<ListSlatesResponse, Slate>

A pageable asynchronous sequence of Slate resources.

Sample code
// Create client
SlateServiceClient slateServiceClient = await SlateServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
// Make the request
PagedAsyncEnumerable<ListSlatesResponse, Slate> response = slateServiceClient.ListSlatesAsync(parent);

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

// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListSlatesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Slate 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<Slate> 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 (Slate 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()

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

Declaration
public static Task ShutdownDefaultChannelsAsync()
Returns
Type Description
Task

A task representing the asynchronous shutdown operation.

Remarks

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

UpdateSlate(Slate, FieldMask, CallSettings)

Updates a Slate object.

Declaration
public virtual Slate UpdateSlate(Slate slate, FieldMask updateMask, CallSettings callSettings = null)
Parameters
Type Name Description
Slate slate

Required. The Slate to update.

The Slate's name is used to identify the Slate to update.

FieldMask updateMask

Optional. The list of fields to update.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Slate

The RPC response.

Sample code
// Create client
SlateServiceClient slateServiceClient = SlateServiceClient.Create();
// Initialize request argument(s)
Slate slate = new Slate();
FieldMask updateMask = new FieldMask();
// Make the request
Slate response = slateServiceClient.UpdateSlate(slate, updateMask);

UpdateSlate(UpdateSlateRequest, CallSettings)

Updates a Slate object.

Declaration
public virtual Slate UpdateSlate(UpdateSlateRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
UpdateSlateRequest request

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
Slate

The RPC response.

Sample code
// Create client
SlateServiceClient slateServiceClient = SlateServiceClient.Create();
// Initialize request argument(s)
UpdateSlateRequest request = new UpdateSlateRequest
{
    Slate = new Slate(),
    UpdateMask = new FieldMask(),
};
// Make the request
Slate response = slateServiceClient.UpdateSlate(request);

UpdateSlateAsync(Slate, FieldMask, CallSettings)

Updates a Slate object.

Declaration
public virtual Task<Slate> UpdateSlateAsync(Slate slate, FieldMask updateMask, CallSettings callSettings = null)
Parameters
Type Name Description
Slate slate

Required. The Slate to update.

The Slate's name is used to identify the Slate to update.

FieldMask updateMask

Optional. The list of fields to update.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<Slate>

A Task containing the RPC response.

Sample code
// Create client
SlateServiceClient slateServiceClient = await SlateServiceClient.CreateAsync();
// Initialize request argument(s)
Slate slate = new Slate();
FieldMask updateMask = new FieldMask();
// Make the request
Slate response = await slateServiceClient.UpdateSlateAsync(slate, updateMask);

UpdateSlateAsync(Slate, FieldMask, CancellationToken)

Updates a Slate object.

Declaration
public virtual Task<Slate> UpdateSlateAsync(Slate slate, FieldMask updateMask, CancellationToken cancellationToken)
Parameters
Type Name Description
Slate slate

Required. The Slate to update.

The Slate's name is used to identify the Slate to update.

FieldMask updateMask

Optional. The list of fields to update.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<Slate>

A Task containing the RPC response.

Sample code
// Create client
SlateServiceClient slateServiceClient = await SlateServiceClient.CreateAsync();
// Initialize request argument(s)
Slate slate = new Slate();
FieldMask updateMask = new FieldMask();
// Make the request
Slate response = await slateServiceClient.UpdateSlateAsync(slate, updateMask);

UpdateSlateAsync(UpdateSlateRequest, CallSettings)

Updates a Slate object.

Declaration
public virtual Task<Slate> UpdateSlateAsync(UpdateSlateRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
UpdateSlateRequest request

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<Slate>

A Task containing the RPC response.

Sample code
// Create client
SlateServiceClient slateServiceClient = await SlateServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateSlateRequest request = new UpdateSlateRequest
{
    Slate = new Slate(),
    UpdateMask = new FieldMask(),
};
// Make the request
Slate response = await slateServiceClient.UpdateSlateAsync(request);

UpdateSlateAsync(UpdateSlateRequest, CancellationToken)

Updates a Slate object.

Declaration
public virtual Task<Slate> UpdateSlateAsync(UpdateSlateRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
UpdateSlateRequest request

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<Slate>

A Task containing the RPC response.

Sample code
// Create client
SlateServiceClient slateServiceClient = await SlateServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateSlateRequest request = new UpdateSlateRequest
{
    Slate = new Slate(),
    UpdateMask = new FieldMask(),
};
// Make the request
Slate response = await slateServiceClient.UpdateSlateAsync(request);
In this article
Back to top Generated by DocFX