Show / Hide Table of Contents

Class NativeStyleServiceClient

NativeStyleService client wrapper, for convenient use.

Inheritance
object
NativeStyleServiceClient
NativeStyleServiceClientImpl
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 NativeStyleServiceClient
Remarks

Provides methods for handling NativeStyle objects.

Properties

DefaultEndpoint

The default endpoint for the NativeStyleService 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 NativeStyleService scopes.

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

The default NativeStyleService scopes are:

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

GrpcClient

The underlying gRPC NativeStyleService client

Declaration
public virtual NativeStyleService.NativeStyleServiceClient GrpcClient { get; }
Property Value
Type Description
NativeStyleService.NativeStyleServiceClient

ServiceMetadata

The service metadata associated with this client type.

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

Methods

BatchActivateNativeStyles(BatchActivateNativeStylesRequest, CallSettings)

Beginning of non-CRUD Activates a list of NativeStyle objects.

Declaration
public virtual BatchActivateNativeStylesResponse BatchActivateNativeStyles(BatchActivateNativeStylesRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchActivateNativeStylesRequest 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
BatchActivateNativeStylesResponse

The RPC response.

Sample code
// Create client
NativeStyleServiceClient nativeStyleServiceClient = NativeStyleServiceClient.Create();
// Initialize request argument(s)
BatchActivateNativeStylesRequest request = new BatchActivateNativeStylesRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    NativeStyleNames =
    {
        NativeStyleName.FromNetworkCodeNativeStyle("[NETWORK_CODE]", "[NATIVE_STYLE]"),
    },
};
// Make the request
BatchActivateNativeStylesResponse response = nativeStyleServiceClient.BatchActivateNativeStyles(request);

BatchActivateNativeStyles(NetworkName, IEnumerable<NativeStyleName>, CallSettings)

Beginning of non-CRUD Activates a list of NativeStyle objects.

Declaration
public virtual BatchActivateNativeStylesResponse BatchActivateNativeStyles(NetworkName parent, IEnumerable<NativeStyleName> names, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. Format: networks/{network_code}

IEnumerable<NativeStyleName> names

Required. Resource names for the NativeStyles. Format: networks/{network_code}/nativeStyles/{native_style_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchActivateNativeStylesResponse

The RPC response.

Sample code
// Create client
NativeStyleServiceClient nativeStyleServiceClient = NativeStyleServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<NativeStyleName> names = new NativeStyleName[]
{
    NativeStyleName.FromNetworkCodeNativeStyle("[NETWORK_CODE]", "[NATIVE_STYLE]"),
};
// Make the request
BatchActivateNativeStylesResponse response = nativeStyleServiceClient.BatchActivateNativeStyles(parent, names);

BatchActivateNativeStyles(string, IEnumerable<string>, CallSettings)

Beginning of non-CRUD Activates a list of NativeStyle objects.

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

Required. Format: networks/{network_code}

IEnumerable<string> names

Required. Resource names for the NativeStyles. Format: networks/{network_code}/nativeStyles/{native_style_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchActivateNativeStylesResponse

The RPC response.

Sample code
// Create client
NativeStyleServiceClient nativeStyleServiceClient = NativeStyleServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/nativeStyles/[NATIVE_STYLE]",
};
// Make the request
BatchActivateNativeStylesResponse response = nativeStyleServiceClient.BatchActivateNativeStyles(parent, names);

BatchActivateNativeStylesAsync(BatchActivateNativeStylesRequest, CallSettings)

Beginning of non-CRUD Activates a list of NativeStyle objects.

Declaration
public virtual Task<BatchActivateNativeStylesResponse> BatchActivateNativeStylesAsync(BatchActivateNativeStylesRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchActivateNativeStylesRequest 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<BatchActivateNativeStylesResponse>

A Task containing the RPC response.

Sample code
// Create client
NativeStyleServiceClient nativeStyleServiceClient = await NativeStyleServiceClient.CreateAsync();
// Initialize request argument(s)
BatchActivateNativeStylesRequest request = new BatchActivateNativeStylesRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    NativeStyleNames =
    {
        NativeStyleName.FromNetworkCodeNativeStyle("[NETWORK_CODE]", "[NATIVE_STYLE]"),
    },
};
// Make the request
BatchActivateNativeStylesResponse response = await nativeStyleServiceClient.BatchActivateNativeStylesAsync(request);

BatchActivateNativeStylesAsync(BatchActivateNativeStylesRequest, CancellationToken)

Beginning of non-CRUD Activates a list of NativeStyle objects.

Declaration
public virtual Task<BatchActivateNativeStylesResponse> BatchActivateNativeStylesAsync(BatchActivateNativeStylesRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
BatchActivateNativeStylesRequest 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<BatchActivateNativeStylesResponse>

A Task containing the RPC response.

Sample code
// Create client
NativeStyleServiceClient nativeStyleServiceClient = await NativeStyleServiceClient.CreateAsync();
// Initialize request argument(s)
BatchActivateNativeStylesRequest request = new BatchActivateNativeStylesRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    NativeStyleNames =
    {
        NativeStyleName.FromNetworkCodeNativeStyle("[NETWORK_CODE]", "[NATIVE_STYLE]"),
    },
};
// Make the request
BatchActivateNativeStylesResponse response = await nativeStyleServiceClient.BatchActivateNativeStylesAsync(request);

BatchActivateNativeStylesAsync(NetworkName, IEnumerable<NativeStyleName>, CallSettings)

Beginning of non-CRUD Activates a list of NativeStyle objects.

Declaration
public virtual Task<BatchActivateNativeStylesResponse> BatchActivateNativeStylesAsync(NetworkName parent, IEnumerable<NativeStyleName> names, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. Format: networks/{network_code}

IEnumerable<NativeStyleName> names

Required. Resource names for the NativeStyles. Format: networks/{network_code}/nativeStyles/{native_style_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchActivateNativeStylesResponse>

A Task containing the RPC response.

Sample code
// Create client
NativeStyleServiceClient nativeStyleServiceClient = await NativeStyleServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<NativeStyleName> names = new NativeStyleName[]
{
    NativeStyleName.FromNetworkCodeNativeStyle("[NETWORK_CODE]", "[NATIVE_STYLE]"),
};
// Make the request
BatchActivateNativeStylesResponse response = await nativeStyleServiceClient.BatchActivateNativeStylesAsync(parent, names);

BatchActivateNativeStylesAsync(NetworkName, IEnumerable<NativeStyleName>, CancellationToken)

Beginning of non-CRUD Activates a list of NativeStyle objects.

Declaration
public virtual Task<BatchActivateNativeStylesResponse> BatchActivateNativeStylesAsync(NetworkName parent, IEnumerable<NativeStyleName> names, CancellationToken cancellationToken)
Parameters
Type Name Description
NetworkName parent

Required. Format: networks/{network_code}

IEnumerable<NativeStyleName> names

Required. Resource names for the NativeStyles. Format: networks/{network_code}/nativeStyles/{native_style_id}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchActivateNativeStylesResponse>

A Task containing the RPC response.

Sample code
// Create client
NativeStyleServiceClient nativeStyleServiceClient = await NativeStyleServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<NativeStyleName> names = new NativeStyleName[]
{
    NativeStyleName.FromNetworkCodeNativeStyle("[NETWORK_CODE]", "[NATIVE_STYLE]"),
};
// Make the request
BatchActivateNativeStylesResponse response = await nativeStyleServiceClient.BatchActivateNativeStylesAsync(parent, names);

BatchActivateNativeStylesAsync(string, IEnumerable<string>, CallSettings)

Beginning of non-CRUD Activates a list of NativeStyle objects.

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

Required. Format: networks/{network_code}

IEnumerable<string> names

Required. Resource names for the NativeStyles. Format: networks/{network_code}/nativeStyles/{native_style_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchActivateNativeStylesResponse>

A Task containing the RPC response.

Sample code
// Create client
NativeStyleServiceClient nativeStyleServiceClient = await NativeStyleServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/nativeStyles/[NATIVE_STYLE]",
};
// Make the request
BatchActivateNativeStylesResponse response = await nativeStyleServiceClient.BatchActivateNativeStylesAsync(parent, names);

BatchActivateNativeStylesAsync(string, IEnumerable<string>, CancellationToken)

Beginning of non-CRUD Activates a list of NativeStyle objects.

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

Required. Format: networks/{network_code}

IEnumerable<string> names

Required. Resource names for the NativeStyles. Format: networks/{network_code}/nativeStyles/{native_style_id}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchActivateNativeStylesResponse>

A Task containing the RPC response.

Sample code
// Create client
NativeStyleServiceClient nativeStyleServiceClient = await NativeStyleServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/nativeStyles/[NATIVE_STYLE]",
};
// Make the request
BatchActivateNativeStylesResponse response = await nativeStyleServiceClient.BatchActivateNativeStylesAsync(parent, names);

BatchArchiveNativeStyles(BatchArchiveNativeStylesRequest, CallSettings)

Archives a list of NativeStyle objects.

Declaration
public virtual BatchArchiveNativeStylesResponse BatchArchiveNativeStyles(BatchArchiveNativeStylesRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchArchiveNativeStylesRequest 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
BatchArchiveNativeStylesResponse

The RPC response.

Sample code
// Create client
NativeStyleServiceClient nativeStyleServiceClient = NativeStyleServiceClient.Create();
// Initialize request argument(s)
BatchArchiveNativeStylesRequest request = new BatchArchiveNativeStylesRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    NativeStyleNames =
    {
        NativeStyleName.FromNetworkCodeNativeStyle("[NETWORK_CODE]", "[NATIVE_STYLE]"),
    },
};
// Make the request
BatchArchiveNativeStylesResponse response = nativeStyleServiceClient.BatchArchiveNativeStyles(request);

BatchArchiveNativeStyles(NetworkName, IEnumerable<NativeStyleName>, CallSettings)

Archives a list of NativeStyle objects.

Declaration
public virtual BatchArchiveNativeStylesResponse BatchArchiveNativeStyles(NetworkName parent, IEnumerable<NativeStyleName> names, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. Format: networks/{network_code}

IEnumerable<NativeStyleName> names

Required. Resource names for the NativeStyles. Format: networks/{network_code}/nativeStyles/{native_style_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchArchiveNativeStylesResponse

The RPC response.

Sample code
// Create client
NativeStyleServiceClient nativeStyleServiceClient = NativeStyleServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<NativeStyleName> names = new NativeStyleName[]
{
    NativeStyleName.FromNetworkCodeNativeStyle("[NETWORK_CODE]", "[NATIVE_STYLE]"),
};
// Make the request
BatchArchiveNativeStylesResponse response = nativeStyleServiceClient.BatchArchiveNativeStyles(parent, names);

BatchArchiveNativeStyles(string, IEnumerable<string>, CallSettings)

Archives a list of NativeStyle objects.

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

Required. Format: networks/{network_code}

IEnumerable<string> names

Required. Resource names for the NativeStyles. Format: networks/{network_code}/nativeStyles/{native_style_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchArchiveNativeStylesResponse

The RPC response.

Sample code
// Create client
NativeStyleServiceClient nativeStyleServiceClient = NativeStyleServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/nativeStyles/[NATIVE_STYLE]",
};
// Make the request
BatchArchiveNativeStylesResponse response = nativeStyleServiceClient.BatchArchiveNativeStyles(parent, names);

BatchArchiveNativeStylesAsync(BatchArchiveNativeStylesRequest, CallSettings)

Archives a list of NativeStyle objects.

Declaration
public virtual Task<BatchArchiveNativeStylesResponse> BatchArchiveNativeStylesAsync(BatchArchiveNativeStylesRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchArchiveNativeStylesRequest 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<BatchArchiveNativeStylesResponse>

A Task containing the RPC response.

Sample code
// Create client
NativeStyleServiceClient nativeStyleServiceClient = await NativeStyleServiceClient.CreateAsync();
// Initialize request argument(s)
BatchArchiveNativeStylesRequest request = new BatchArchiveNativeStylesRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    NativeStyleNames =
    {
        NativeStyleName.FromNetworkCodeNativeStyle("[NETWORK_CODE]", "[NATIVE_STYLE]"),
    },
};
// Make the request
BatchArchiveNativeStylesResponse response = await nativeStyleServiceClient.BatchArchiveNativeStylesAsync(request);

BatchArchiveNativeStylesAsync(BatchArchiveNativeStylesRequest, CancellationToken)

Archives a list of NativeStyle objects.

Declaration
public virtual Task<BatchArchiveNativeStylesResponse> BatchArchiveNativeStylesAsync(BatchArchiveNativeStylesRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
BatchArchiveNativeStylesRequest 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<BatchArchiveNativeStylesResponse>

A Task containing the RPC response.

Sample code
// Create client
NativeStyleServiceClient nativeStyleServiceClient = await NativeStyleServiceClient.CreateAsync();
// Initialize request argument(s)
BatchArchiveNativeStylesRequest request = new BatchArchiveNativeStylesRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    NativeStyleNames =
    {
        NativeStyleName.FromNetworkCodeNativeStyle("[NETWORK_CODE]", "[NATIVE_STYLE]"),
    },
};
// Make the request
BatchArchiveNativeStylesResponse response = await nativeStyleServiceClient.BatchArchiveNativeStylesAsync(request);

BatchArchiveNativeStylesAsync(NetworkName, IEnumerable<NativeStyleName>, CallSettings)

Archives a list of NativeStyle objects.

Declaration
public virtual Task<BatchArchiveNativeStylesResponse> BatchArchiveNativeStylesAsync(NetworkName parent, IEnumerable<NativeStyleName> names, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. Format: networks/{network_code}

IEnumerable<NativeStyleName> names

Required. Resource names for the NativeStyles. Format: networks/{network_code}/nativeStyles/{native_style_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchArchiveNativeStylesResponse>

A Task containing the RPC response.

Sample code
// Create client
NativeStyleServiceClient nativeStyleServiceClient = await NativeStyleServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<NativeStyleName> names = new NativeStyleName[]
{
    NativeStyleName.FromNetworkCodeNativeStyle("[NETWORK_CODE]", "[NATIVE_STYLE]"),
};
// Make the request
BatchArchiveNativeStylesResponse response = await nativeStyleServiceClient.BatchArchiveNativeStylesAsync(parent, names);

BatchArchiveNativeStylesAsync(NetworkName, IEnumerable<NativeStyleName>, CancellationToken)

Archives a list of NativeStyle objects.

Declaration
public virtual Task<BatchArchiveNativeStylesResponse> BatchArchiveNativeStylesAsync(NetworkName parent, IEnumerable<NativeStyleName> names, CancellationToken cancellationToken)
Parameters
Type Name Description
NetworkName parent

Required. Format: networks/{network_code}

IEnumerable<NativeStyleName> names

Required. Resource names for the NativeStyles. Format: networks/{network_code}/nativeStyles/{native_style_id}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchArchiveNativeStylesResponse>

A Task containing the RPC response.

Sample code
// Create client
NativeStyleServiceClient nativeStyleServiceClient = await NativeStyleServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<NativeStyleName> names = new NativeStyleName[]
{
    NativeStyleName.FromNetworkCodeNativeStyle("[NETWORK_CODE]", "[NATIVE_STYLE]"),
};
// Make the request
BatchArchiveNativeStylesResponse response = await nativeStyleServiceClient.BatchArchiveNativeStylesAsync(parent, names);

BatchArchiveNativeStylesAsync(string, IEnumerable<string>, CallSettings)

Archives a list of NativeStyle objects.

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

Required. Format: networks/{network_code}

IEnumerable<string> names

Required. Resource names for the NativeStyles. Format: networks/{network_code}/nativeStyles/{native_style_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchArchiveNativeStylesResponse>

A Task containing the RPC response.

Sample code
// Create client
NativeStyleServiceClient nativeStyleServiceClient = await NativeStyleServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/nativeStyles/[NATIVE_STYLE]",
};
// Make the request
BatchArchiveNativeStylesResponse response = await nativeStyleServiceClient.BatchArchiveNativeStylesAsync(parent, names);

BatchArchiveNativeStylesAsync(string, IEnumerable<string>, CancellationToken)

Archives a list of NativeStyle objects.

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

Required. Format: networks/{network_code}

IEnumerable<string> names

Required. Resource names for the NativeStyles. Format: networks/{network_code}/nativeStyles/{native_style_id}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchArchiveNativeStylesResponse>

A Task containing the RPC response.

Sample code
// Create client
NativeStyleServiceClient nativeStyleServiceClient = await NativeStyleServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/nativeStyles/[NATIVE_STYLE]",
};
// Make the request
BatchArchiveNativeStylesResponse response = await nativeStyleServiceClient.BatchArchiveNativeStylesAsync(parent, names);

BatchCreateNativeStyles(BatchCreateNativeStylesRequest, CallSettings)

Creates NativeStyle objects.

Declaration
public virtual BatchCreateNativeStylesResponse BatchCreateNativeStyles(BatchCreateNativeStylesRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchCreateNativeStylesRequest 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
BatchCreateNativeStylesResponse

The RPC response.

Sample code
// Create client
NativeStyleServiceClient nativeStyleServiceClient = NativeStyleServiceClient.Create();
// Initialize request argument(s)
BatchCreateNativeStylesRequest request = new BatchCreateNativeStylesRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    Requests =
    {
        new CreateNativeStyleRequest(),
    },
};
// Make the request
BatchCreateNativeStylesResponse response = nativeStyleServiceClient.BatchCreateNativeStyles(request);

BatchCreateNativeStyles(NetworkName, IEnumerable<CreateNativeStyleRequest>, CallSettings)

Creates NativeStyle objects.

Declaration
public virtual BatchCreateNativeStylesResponse BatchCreateNativeStyles(NetworkName parent, IEnumerable<CreateNativeStyleRequest> requests, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

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

IEnumerable<CreateNativeStyleRequest> requests

Required. The NativeStyle 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
BatchCreateNativeStylesResponse

The RPC response.

Sample code
// Create client
NativeStyleServiceClient nativeStyleServiceClient = NativeStyleServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<CreateNativeStyleRequest> requests = new CreateNativeStyleRequest[]
{
    new CreateNativeStyleRequest(),
};
// Make the request
BatchCreateNativeStylesResponse response = nativeStyleServiceClient.BatchCreateNativeStyles(parent, requests);

BatchCreateNativeStyles(string, IEnumerable<CreateNativeStyleRequest>, CallSettings)

Creates NativeStyle objects.

Declaration
public virtual BatchCreateNativeStylesResponse BatchCreateNativeStyles(string parent, IEnumerable<CreateNativeStyleRequest> requests, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

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

IEnumerable<CreateNativeStyleRequest> requests

Required. The NativeStyle 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
BatchCreateNativeStylesResponse

The RPC response.

Sample code
// Create client
NativeStyleServiceClient nativeStyleServiceClient = NativeStyleServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<CreateNativeStyleRequest> requests = new CreateNativeStyleRequest[]
{
    new CreateNativeStyleRequest(),
};
// Make the request
BatchCreateNativeStylesResponse response = nativeStyleServiceClient.BatchCreateNativeStyles(parent, requests);

BatchCreateNativeStylesAsync(BatchCreateNativeStylesRequest, CallSettings)

Creates NativeStyle objects.

Declaration
public virtual Task<BatchCreateNativeStylesResponse> BatchCreateNativeStylesAsync(BatchCreateNativeStylesRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchCreateNativeStylesRequest 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<BatchCreateNativeStylesResponse>

A Task containing the RPC response.

Sample code
// Create client
NativeStyleServiceClient nativeStyleServiceClient = await NativeStyleServiceClient.CreateAsync();
// Initialize request argument(s)
BatchCreateNativeStylesRequest request = new BatchCreateNativeStylesRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    Requests =
    {
        new CreateNativeStyleRequest(),
    },
};
// Make the request
BatchCreateNativeStylesResponse response = await nativeStyleServiceClient.BatchCreateNativeStylesAsync(request);

BatchCreateNativeStylesAsync(BatchCreateNativeStylesRequest, CancellationToken)

Creates NativeStyle objects.

Declaration
public virtual Task<BatchCreateNativeStylesResponse> BatchCreateNativeStylesAsync(BatchCreateNativeStylesRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
BatchCreateNativeStylesRequest 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<BatchCreateNativeStylesResponse>

A Task containing the RPC response.

Sample code
// Create client
NativeStyleServiceClient nativeStyleServiceClient = await NativeStyleServiceClient.CreateAsync();
// Initialize request argument(s)
BatchCreateNativeStylesRequest request = new BatchCreateNativeStylesRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    Requests =
    {
        new CreateNativeStyleRequest(),
    },
};
// Make the request
BatchCreateNativeStylesResponse response = await nativeStyleServiceClient.BatchCreateNativeStylesAsync(request);

BatchCreateNativeStylesAsync(NetworkName, IEnumerable<CreateNativeStyleRequest>, CallSettings)

Creates NativeStyle objects.

Declaration
public virtual Task<BatchCreateNativeStylesResponse> BatchCreateNativeStylesAsync(NetworkName parent, IEnumerable<CreateNativeStyleRequest> requests, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

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

IEnumerable<CreateNativeStyleRequest> requests

Required. The NativeStyle 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<BatchCreateNativeStylesResponse>

A Task containing the RPC response.

Sample code
// Create client
NativeStyleServiceClient nativeStyleServiceClient = await NativeStyleServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<CreateNativeStyleRequest> requests = new CreateNativeStyleRequest[]
{
    new CreateNativeStyleRequest(),
};
// Make the request
BatchCreateNativeStylesResponse response = await nativeStyleServiceClient.BatchCreateNativeStylesAsync(parent, requests);

BatchCreateNativeStylesAsync(NetworkName, IEnumerable<CreateNativeStyleRequest>, CancellationToken)

Creates NativeStyle objects.

Declaration
public virtual Task<BatchCreateNativeStylesResponse> BatchCreateNativeStylesAsync(NetworkName parent, IEnumerable<CreateNativeStyleRequest> requests, CancellationToken cancellationToken)
Parameters
Type Name Description
NetworkName parent

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

IEnumerable<CreateNativeStyleRequest> requests

Required. The NativeStyle 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<BatchCreateNativeStylesResponse>

A Task containing the RPC response.

Sample code
// Create client
NativeStyleServiceClient nativeStyleServiceClient = await NativeStyleServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<CreateNativeStyleRequest> requests = new CreateNativeStyleRequest[]
{
    new CreateNativeStyleRequest(),
};
// Make the request
BatchCreateNativeStylesResponse response = await nativeStyleServiceClient.BatchCreateNativeStylesAsync(parent, requests);

BatchCreateNativeStylesAsync(string, IEnumerable<CreateNativeStyleRequest>, CallSettings)

Creates NativeStyle objects.

Declaration
public virtual Task<BatchCreateNativeStylesResponse> BatchCreateNativeStylesAsync(string parent, IEnumerable<CreateNativeStyleRequest> requests, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

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

IEnumerable<CreateNativeStyleRequest> requests

Required. The NativeStyle 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<BatchCreateNativeStylesResponse>

A Task containing the RPC response.

Sample code
// Create client
NativeStyleServiceClient nativeStyleServiceClient = await NativeStyleServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<CreateNativeStyleRequest> requests = new CreateNativeStyleRequest[]
{
    new CreateNativeStyleRequest(),
};
// Make the request
BatchCreateNativeStylesResponse response = await nativeStyleServiceClient.BatchCreateNativeStylesAsync(parent, requests);

BatchCreateNativeStylesAsync(string, IEnumerable<CreateNativeStyleRequest>, CancellationToken)

Creates NativeStyle objects.

Declaration
public virtual Task<BatchCreateNativeStylesResponse> BatchCreateNativeStylesAsync(string parent, IEnumerable<CreateNativeStyleRequest> requests, CancellationToken cancellationToken)
Parameters
Type Name Description
string parent

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

IEnumerable<CreateNativeStyleRequest> requests

Required. The NativeStyle 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<BatchCreateNativeStylesResponse>

A Task containing the RPC response.

Sample code
// Create client
NativeStyleServiceClient nativeStyleServiceClient = await NativeStyleServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<CreateNativeStyleRequest> requests = new CreateNativeStyleRequest[]
{
    new CreateNativeStyleRequest(),
};
// Make the request
BatchCreateNativeStylesResponse response = await nativeStyleServiceClient.BatchCreateNativeStylesAsync(parent, requests);

BatchDeactivateNativeStyles(BatchDeactivateNativeStylesRequest, CallSettings)

Deactivates a list of NativeStyle objects.

Declaration
public virtual BatchDeactivateNativeStylesResponse BatchDeactivateNativeStyles(BatchDeactivateNativeStylesRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchDeactivateNativeStylesRequest 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
BatchDeactivateNativeStylesResponse

The RPC response.

Sample code
// Create client
NativeStyleServiceClient nativeStyleServiceClient = NativeStyleServiceClient.Create();
// Initialize request argument(s)
BatchDeactivateNativeStylesRequest request = new BatchDeactivateNativeStylesRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    NativeStyleNames =
    {
        NativeStyleName.FromNetworkCodeNativeStyle("[NETWORK_CODE]", "[NATIVE_STYLE]"),
    },
};
// Make the request
BatchDeactivateNativeStylesResponse response = nativeStyleServiceClient.BatchDeactivateNativeStyles(request);

BatchDeactivateNativeStyles(NetworkName, IEnumerable<NativeStyleName>, CallSettings)

Deactivates a list of NativeStyle objects.

Declaration
public virtual BatchDeactivateNativeStylesResponse BatchDeactivateNativeStyles(NetworkName parent, IEnumerable<NativeStyleName> names, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. Format: networks/{network_code}

IEnumerable<NativeStyleName> names

Required. Resource names for the NativeStyles. Format: networks/{network_code}/nativeStyles/{native_style_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchDeactivateNativeStylesResponse

The RPC response.

Sample code
// Create client
NativeStyleServiceClient nativeStyleServiceClient = NativeStyleServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<NativeStyleName> names = new NativeStyleName[]
{
    NativeStyleName.FromNetworkCodeNativeStyle("[NETWORK_CODE]", "[NATIVE_STYLE]"),
};
// Make the request
BatchDeactivateNativeStylesResponse response = nativeStyleServiceClient.BatchDeactivateNativeStyles(parent, names);

BatchDeactivateNativeStyles(string, IEnumerable<string>, CallSettings)

Deactivates a list of NativeStyle objects.

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

Required. Format: networks/{network_code}

IEnumerable<string> names

Required. Resource names for the NativeStyles. Format: networks/{network_code}/nativeStyles/{native_style_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BatchDeactivateNativeStylesResponse

The RPC response.

Sample code
// Create client
NativeStyleServiceClient nativeStyleServiceClient = NativeStyleServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/nativeStyles/[NATIVE_STYLE]",
};
// Make the request
BatchDeactivateNativeStylesResponse response = nativeStyleServiceClient.BatchDeactivateNativeStyles(parent, names);

BatchDeactivateNativeStylesAsync(BatchDeactivateNativeStylesRequest, CallSettings)

Deactivates a list of NativeStyle objects.

Declaration
public virtual Task<BatchDeactivateNativeStylesResponse> BatchDeactivateNativeStylesAsync(BatchDeactivateNativeStylesRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchDeactivateNativeStylesRequest 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<BatchDeactivateNativeStylesResponse>

A Task containing the RPC response.

Sample code
// Create client
NativeStyleServiceClient nativeStyleServiceClient = await NativeStyleServiceClient.CreateAsync();
// Initialize request argument(s)
BatchDeactivateNativeStylesRequest request = new BatchDeactivateNativeStylesRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    NativeStyleNames =
    {
        NativeStyleName.FromNetworkCodeNativeStyle("[NETWORK_CODE]", "[NATIVE_STYLE]"),
    },
};
// Make the request
BatchDeactivateNativeStylesResponse response = await nativeStyleServiceClient.BatchDeactivateNativeStylesAsync(request);

BatchDeactivateNativeStylesAsync(BatchDeactivateNativeStylesRequest, CancellationToken)

Deactivates a list of NativeStyle objects.

Declaration
public virtual Task<BatchDeactivateNativeStylesResponse> BatchDeactivateNativeStylesAsync(BatchDeactivateNativeStylesRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
BatchDeactivateNativeStylesRequest 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<BatchDeactivateNativeStylesResponse>

A Task containing the RPC response.

Sample code
// Create client
NativeStyleServiceClient nativeStyleServiceClient = await NativeStyleServiceClient.CreateAsync();
// Initialize request argument(s)
BatchDeactivateNativeStylesRequest request = new BatchDeactivateNativeStylesRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    NativeStyleNames =
    {
        NativeStyleName.FromNetworkCodeNativeStyle("[NETWORK_CODE]", "[NATIVE_STYLE]"),
    },
};
// Make the request
BatchDeactivateNativeStylesResponse response = await nativeStyleServiceClient.BatchDeactivateNativeStylesAsync(request);

BatchDeactivateNativeStylesAsync(NetworkName, IEnumerable<NativeStyleName>, CallSettings)

Deactivates a list of NativeStyle objects.

Declaration
public virtual Task<BatchDeactivateNativeStylesResponse> BatchDeactivateNativeStylesAsync(NetworkName parent, IEnumerable<NativeStyleName> names, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. Format: networks/{network_code}

IEnumerable<NativeStyleName> names

Required. Resource names for the NativeStyles. Format: networks/{network_code}/nativeStyles/{native_style_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchDeactivateNativeStylesResponse>

A Task containing the RPC response.

Sample code
// Create client
NativeStyleServiceClient nativeStyleServiceClient = await NativeStyleServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<NativeStyleName> names = new NativeStyleName[]
{
    NativeStyleName.FromNetworkCodeNativeStyle("[NETWORK_CODE]", "[NATIVE_STYLE]"),
};
// Make the request
BatchDeactivateNativeStylesResponse response = await nativeStyleServiceClient.BatchDeactivateNativeStylesAsync(parent, names);

BatchDeactivateNativeStylesAsync(NetworkName, IEnumerable<NativeStyleName>, CancellationToken)

Deactivates a list of NativeStyle objects.

Declaration
public virtual Task<BatchDeactivateNativeStylesResponse> BatchDeactivateNativeStylesAsync(NetworkName parent, IEnumerable<NativeStyleName> names, CancellationToken cancellationToken)
Parameters
Type Name Description
NetworkName parent

Required. Format: networks/{network_code}

IEnumerable<NativeStyleName> names

Required. Resource names for the NativeStyles. Format: networks/{network_code}/nativeStyles/{native_style_id}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchDeactivateNativeStylesResponse>

A Task containing the RPC response.

Sample code
// Create client
NativeStyleServiceClient nativeStyleServiceClient = await NativeStyleServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<NativeStyleName> names = new NativeStyleName[]
{
    NativeStyleName.FromNetworkCodeNativeStyle("[NETWORK_CODE]", "[NATIVE_STYLE]"),
};
// Make the request
BatchDeactivateNativeStylesResponse response = await nativeStyleServiceClient.BatchDeactivateNativeStylesAsync(parent, names);

BatchDeactivateNativeStylesAsync(string, IEnumerable<string>, CallSettings)

Deactivates a list of NativeStyle objects.

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

Required. Format: networks/{network_code}

IEnumerable<string> names

Required. Resource names for the NativeStyles. Format: networks/{network_code}/nativeStyles/{native_style_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BatchDeactivateNativeStylesResponse>

A Task containing the RPC response.

Sample code
// Create client
NativeStyleServiceClient nativeStyleServiceClient = await NativeStyleServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/nativeStyles/[NATIVE_STYLE]",
};
// Make the request
BatchDeactivateNativeStylesResponse response = await nativeStyleServiceClient.BatchDeactivateNativeStylesAsync(parent, names);

BatchDeactivateNativeStylesAsync(string, IEnumerable<string>, CancellationToken)

Deactivates a list of NativeStyle objects.

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

Required. Format: networks/{network_code}

IEnumerable<string> names

Required. Resource names for the NativeStyles. Format: networks/{network_code}/nativeStyles/{native_style_id}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BatchDeactivateNativeStylesResponse>

A Task containing the RPC response.

Sample code
// Create client
NativeStyleServiceClient nativeStyleServiceClient = await NativeStyleServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<string> names = new string[]
{
    "networks/[NETWORK_CODE]/nativeStyles/[NATIVE_STYLE]",
};
// Make the request
BatchDeactivateNativeStylesResponse response = await nativeStyleServiceClient.BatchDeactivateNativeStylesAsync(parent, names);

BatchUpdateNativeStyles(BatchUpdateNativeStylesRequest, CallSettings)

Batch updates NativeStyle objects.

Declaration
public virtual BatchUpdateNativeStylesResponse BatchUpdateNativeStyles(BatchUpdateNativeStylesRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchUpdateNativeStylesRequest 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
BatchUpdateNativeStylesResponse

The RPC response.

Sample code
// Create client
NativeStyleServiceClient nativeStyleServiceClient = NativeStyleServiceClient.Create();
// Initialize request argument(s)
BatchUpdateNativeStylesRequest request = new BatchUpdateNativeStylesRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    Requests =
    {
        new UpdateNativeStyleRequest(),
    },
};
// Make the request
BatchUpdateNativeStylesResponse response = nativeStyleServiceClient.BatchUpdateNativeStyles(request);

BatchUpdateNativeStyles(NetworkName, IEnumerable<UpdateNativeStyleRequest>, CallSettings)

Batch updates NativeStyle objects.

Declaration
public virtual BatchUpdateNativeStylesResponse BatchUpdateNativeStyles(NetworkName parent, IEnumerable<UpdateNativeStyleRequest> requests, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

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

IEnumerable<UpdateNativeStyleRequest> requests

Required. The NativeStyle 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
BatchUpdateNativeStylesResponse

The RPC response.

Sample code
// Create client
NativeStyleServiceClient nativeStyleServiceClient = NativeStyleServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<UpdateNativeStyleRequest> requests = new UpdateNativeStyleRequest[]
{
    new UpdateNativeStyleRequest(),
};
// Make the request
BatchUpdateNativeStylesResponse response = nativeStyleServiceClient.BatchUpdateNativeStyles(parent, requests);

BatchUpdateNativeStyles(string, IEnumerable<UpdateNativeStyleRequest>, CallSettings)

Batch updates NativeStyle objects.

Declaration
public virtual BatchUpdateNativeStylesResponse BatchUpdateNativeStyles(string parent, IEnumerable<UpdateNativeStyleRequest> requests, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

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

IEnumerable<UpdateNativeStyleRequest> requests

Required. The NativeStyle 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
BatchUpdateNativeStylesResponse

The RPC response.

Sample code
// Create client
NativeStyleServiceClient nativeStyleServiceClient = NativeStyleServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<UpdateNativeStyleRequest> requests = new UpdateNativeStyleRequest[]
{
    new UpdateNativeStyleRequest(),
};
// Make the request
BatchUpdateNativeStylesResponse response = nativeStyleServiceClient.BatchUpdateNativeStyles(parent, requests);

BatchUpdateNativeStylesAsync(BatchUpdateNativeStylesRequest, CallSettings)

Batch updates NativeStyle objects.

Declaration
public virtual Task<BatchUpdateNativeStylesResponse> BatchUpdateNativeStylesAsync(BatchUpdateNativeStylesRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
BatchUpdateNativeStylesRequest 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<BatchUpdateNativeStylesResponse>

A Task containing the RPC response.

Sample code
// Create client
NativeStyleServiceClient nativeStyleServiceClient = await NativeStyleServiceClient.CreateAsync();
// Initialize request argument(s)
BatchUpdateNativeStylesRequest request = new BatchUpdateNativeStylesRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    Requests =
    {
        new UpdateNativeStyleRequest(),
    },
};
// Make the request
BatchUpdateNativeStylesResponse response = await nativeStyleServiceClient.BatchUpdateNativeStylesAsync(request);

BatchUpdateNativeStylesAsync(BatchUpdateNativeStylesRequest, CancellationToken)

Batch updates NativeStyle objects.

Declaration
public virtual Task<BatchUpdateNativeStylesResponse> BatchUpdateNativeStylesAsync(BatchUpdateNativeStylesRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
BatchUpdateNativeStylesRequest 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<BatchUpdateNativeStylesResponse>

A Task containing the RPC response.

Sample code
// Create client
NativeStyleServiceClient nativeStyleServiceClient = await NativeStyleServiceClient.CreateAsync();
// Initialize request argument(s)
BatchUpdateNativeStylesRequest request = new BatchUpdateNativeStylesRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    Requests =
    {
        new UpdateNativeStyleRequest(),
    },
};
// Make the request
BatchUpdateNativeStylesResponse response = await nativeStyleServiceClient.BatchUpdateNativeStylesAsync(request);

BatchUpdateNativeStylesAsync(NetworkName, IEnumerable<UpdateNativeStyleRequest>, CallSettings)

Batch updates NativeStyle objects.

Declaration
public virtual Task<BatchUpdateNativeStylesResponse> BatchUpdateNativeStylesAsync(NetworkName parent, IEnumerable<UpdateNativeStyleRequest> requests, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

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

IEnumerable<UpdateNativeStyleRequest> requests

Required. The NativeStyle 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<BatchUpdateNativeStylesResponse>

A Task containing the RPC response.

Sample code
// Create client
NativeStyleServiceClient nativeStyleServiceClient = await NativeStyleServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<UpdateNativeStyleRequest> requests = new UpdateNativeStyleRequest[]
{
    new UpdateNativeStyleRequest(),
};
// Make the request
BatchUpdateNativeStylesResponse response = await nativeStyleServiceClient.BatchUpdateNativeStylesAsync(parent, requests);

BatchUpdateNativeStylesAsync(NetworkName, IEnumerable<UpdateNativeStyleRequest>, CancellationToken)

Batch updates NativeStyle objects.

Declaration
public virtual Task<BatchUpdateNativeStylesResponse> BatchUpdateNativeStylesAsync(NetworkName parent, IEnumerable<UpdateNativeStyleRequest> requests, CancellationToken cancellationToken)
Parameters
Type Name Description
NetworkName parent

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

IEnumerable<UpdateNativeStyleRequest> requests

Required. The NativeStyle 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<BatchUpdateNativeStylesResponse>

A Task containing the RPC response.

Sample code
// Create client
NativeStyleServiceClient nativeStyleServiceClient = await NativeStyleServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
IEnumerable<UpdateNativeStyleRequest> requests = new UpdateNativeStyleRequest[]
{
    new UpdateNativeStyleRequest(),
};
// Make the request
BatchUpdateNativeStylesResponse response = await nativeStyleServiceClient.BatchUpdateNativeStylesAsync(parent, requests);

BatchUpdateNativeStylesAsync(string, IEnumerable<UpdateNativeStyleRequest>, CallSettings)

Batch updates NativeStyle objects.

Declaration
public virtual Task<BatchUpdateNativeStylesResponse> BatchUpdateNativeStylesAsync(string parent, IEnumerable<UpdateNativeStyleRequest> requests, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

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

IEnumerable<UpdateNativeStyleRequest> requests

Required. The NativeStyle 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<BatchUpdateNativeStylesResponse>

A Task containing the RPC response.

Sample code
// Create client
NativeStyleServiceClient nativeStyleServiceClient = await NativeStyleServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<UpdateNativeStyleRequest> requests = new UpdateNativeStyleRequest[]
{
    new UpdateNativeStyleRequest(),
};
// Make the request
BatchUpdateNativeStylesResponse response = await nativeStyleServiceClient.BatchUpdateNativeStylesAsync(parent, requests);

BatchUpdateNativeStylesAsync(string, IEnumerable<UpdateNativeStyleRequest>, CancellationToken)

Batch updates NativeStyle objects.

Declaration
public virtual Task<BatchUpdateNativeStylesResponse> BatchUpdateNativeStylesAsync(string parent, IEnumerable<UpdateNativeStyleRequest> requests, CancellationToken cancellationToken)
Parameters
Type Name Description
string parent

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

IEnumerable<UpdateNativeStyleRequest> requests

Required. The NativeStyle 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<BatchUpdateNativeStylesResponse>

A Task containing the RPC response.

Sample code
// Create client
NativeStyleServiceClient nativeStyleServiceClient = await NativeStyleServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
IEnumerable<UpdateNativeStyleRequest> requests = new UpdateNativeStyleRequest[]
{
    new UpdateNativeStyleRequest(),
};
// Make the request
BatchUpdateNativeStylesResponse response = await nativeStyleServiceClient.BatchUpdateNativeStylesAsync(parent, requests);

Create()

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

Declaration
public static NativeStyleServiceClient Create()
Returns
Type Description
NativeStyleServiceClient

The created NativeStyleServiceClient.

CreateAsync(CancellationToken)

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

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

The CancellationToken to use while creating the client.

Returns
Type Description
Task<NativeStyleServiceClient>

The task representing the created NativeStyleServiceClient.

GetNativeStyle(GetNativeStyleRequest, CallSettings)

Retrieves a NativeStyle object.

Declaration
public virtual NativeStyle GetNativeStyle(GetNativeStyleRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
GetNativeStyleRequest 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
NativeStyle

The RPC response.

Sample code
// Create client
NativeStyleServiceClient nativeStyleServiceClient = NativeStyleServiceClient.Create();
// Initialize request argument(s)
GetNativeStyleRequest request = new GetNativeStyleRequest
{
    NativeStyleName = NativeStyleName.FromNetworkCodeNativeStyle("[NETWORK_CODE]", "[NATIVE_STYLE]"),
};
// Make the request
NativeStyle response = nativeStyleServiceClient.GetNativeStyle(request);

GetNativeStyle(NativeStyleName, CallSettings)

Retrieves a NativeStyle object.

Declaration
public virtual NativeStyle GetNativeStyle(NativeStyleName name, CallSettings callSettings = null)
Parameters
Type Name Description
NativeStyleName name

Required. The resource name of the NativeStyle. Format: networks/{network_code}/nativeStyles/{native_style_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
NativeStyle

The RPC response.

Sample code
// Create client
NativeStyleServiceClient nativeStyleServiceClient = NativeStyleServiceClient.Create();
// Initialize request argument(s)
NativeStyleName name = NativeStyleName.FromNetworkCodeNativeStyle("[NETWORK_CODE]", "[NATIVE_STYLE]");
// Make the request
NativeStyle response = nativeStyleServiceClient.GetNativeStyle(name);

GetNativeStyle(string, CallSettings)

Retrieves a NativeStyle object.

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

Required. The resource name of the NativeStyle. Format: networks/{network_code}/nativeStyles/{native_style_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
NativeStyle

The RPC response.

Sample code
// Create client
NativeStyleServiceClient nativeStyleServiceClient = NativeStyleServiceClient.Create();
// Initialize request argument(s)
string name = "networks/[NETWORK_CODE]/nativeStyles/[NATIVE_STYLE]";
// Make the request
NativeStyle response = nativeStyleServiceClient.GetNativeStyle(name);

GetNativeStyleAsync(GetNativeStyleRequest, CallSettings)

Retrieves a NativeStyle object.

Declaration
public virtual Task<NativeStyle> GetNativeStyleAsync(GetNativeStyleRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
GetNativeStyleRequest 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<NativeStyle>

A Task containing the RPC response.

Sample code
// Create client
NativeStyleServiceClient nativeStyleServiceClient = await NativeStyleServiceClient.CreateAsync();
// Initialize request argument(s)
GetNativeStyleRequest request = new GetNativeStyleRequest
{
    NativeStyleName = NativeStyleName.FromNetworkCodeNativeStyle("[NETWORK_CODE]", "[NATIVE_STYLE]"),
};
// Make the request
NativeStyle response = await nativeStyleServiceClient.GetNativeStyleAsync(request);

GetNativeStyleAsync(GetNativeStyleRequest, CancellationToken)

Retrieves a NativeStyle object.

Declaration
public virtual Task<NativeStyle> GetNativeStyleAsync(GetNativeStyleRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
GetNativeStyleRequest 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<NativeStyle>

A Task containing the RPC response.

Sample code
// Create client
NativeStyleServiceClient nativeStyleServiceClient = await NativeStyleServiceClient.CreateAsync();
// Initialize request argument(s)
GetNativeStyleRequest request = new GetNativeStyleRequest
{
    NativeStyleName = NativeStyleName.FromNetworkCodeNativeStyle("[NETWORK_CODE]", "[NATIVE_STYLE]"),
};
// Make the request
NativeStyle response = await nativeStyleServiceClient.GetNativeStyleAsync(request);

GetNativeStyleAsync(NativeStyleName, CallSettings)

Retrieves a NativeStyle object.

Declaration
public virtual Task<NativeStyle> GetNativeStyleAsync(NativeStyleName name, CallSettings callSettings = null)
Parameters
Type Name Description
NativeStyleName name

Required. The resource name of the NativeStyle. Format: networks/{network_code}/nativeStyles/{native_style_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<NativeStyle>

A Task containing the RPC response.

Sample code
// Create client
NativeStyleServiceClient nativeStyleServiceClient = await NativeStyleServiceClient.CreateAsync();
// Initialize request argument(s)
NativeStyleName name = NativeStyleName.FromNetworkCodeNativeStyle("[NETWORK_CODE]", "[NATIVE_STYLE]");
// Make the request
NativeStyle response = await nativeStyleServiceClient.GetNativeStyleAsync(name);

GetNativeStyleAsync(NativeStyleName, CancellationToken)

Retrieves a NativeStyle object.

Declaration
public virtual Task<NativeStyle> GetNativeStyleAsync(NativeStyleName name, CancellationToken cancellationToken)
Parameters
Type Name Description
NativeStyleName name

Required. The resource name of the NativeStyle. Format: networks/{network_code}/nativeStyles/{native_style_id}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<NativeStyle>

A Task containing the RPC response.

Sample code
// Create client
NativeStyleServiceClient nativeStyleServiceClient = await NativeStyleServiceClient.CreateAsync();
// Initialize request argument(s)
NativeStyleName name = NativeStyleName.FromNetworkCodeNativeStyle("[NETWORK_CODE]", "[NATIVE_STYLE]");
// Make the request
NativeStyle response = await nativeStyleServiceClient.GetNativeStyleAsync(name);

GetNativeStyleAsync(string, CallSettings)

Retrieves a NativeStyle object.

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

Required. The resource name of the NativeStyle. Format: networks/{network_code}/nativeStyles/{native_style_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<NativeStyle>

A Task containing the RPC response.

Sample code
// Create client
NativeStyleServiceClient nativeStyleServiceClient = await NativeStyleServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "networks/[NETWORK_CODE]/nativeStyles/[NATIVE_STYLE]";
// Make the request
NativeStyle response = await nativeStyleServiceClient.GetNativeStyleAsync(name);

GetNativeStyleAsync(string, CancellationToken)

Retrieves a NativeStyle object.

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

Required. The resource name of the NativeStyle. Format: networks/{network_code}/nativeStyles/{native_style_id}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<NativeStyle>

A Task containing the RPC response.

Sample code
// Create client
NativeStyleServiceClient nativeStyleServiceClient = await NativeStyleServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "networks/[NETWORK_CODE]/nativeStyles/[NATIVE_STYLE]";
// Make the request
NativeStyle response = await nativeStyleServiceClient.GetNativeStyleAsync(name);

ListNativeStyles(ListNativeStylesRequest, CallSettings)

Lists NativeStyle objects.

Declaration
public virtual PagedEnumerable<ListNativeStylesResponse, NativeStyle> ListNativeStyles(ListNativeStylesRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
ListNativeStylesRequest 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<ListNativeStylesResponse, NativeStyle>

A pageable sequence of NativeStyle resources.

Sample code
// Create client
NativeStyleServiceClient nativeStyleServiceClient = NativeStyleServiceClient.Create();
// Initialize request argument(s)
ListNativeStylesRequest request = new ListNativeStylesRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    Filter = "",
    OrderBy = "",
    Skip = 0,
};
// Make the request
PagedEnumerable<ListNativeStylesResponse, NativeStyle> response = nativeStyleServiceClient.ListNativeStyles(request);

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

ListNativeStyles(NetworkName, string, int?, CallSettings)

Lists NativeStyle objects.

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

Required. The parent, which owns this collection of NativeStyles. 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<ListNativeStylesResponse, NativeStyle>

A pageable sequence of NativeStyle resources.

Sample code
// Create client
NativeStyleServiceClient nativeStyleServiceClient = NativeStyleServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
// Make the request
PagedEnumerable<ListNativeStylesResponse, NativeStyle> response = nativeStyleServiceClient.ListNativeStyles(parent);

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

ListNativeStyles(string, string, int?, CallSettings)

Lists NativeStyle objects.

Declaration
public virtual PagedEnumerable<ListNativeStylesResponse, NativeStyle> ListNativeStyles(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent, which owns this collection of NativeStyles. 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<ListNativeStylesResponse, NativeStyle>

A pageable sequence of NativeStyle resources.

Sample code
// Create client
NativeStyleServiceClient nativeStyleServiceClient = NativeStyleServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
// Make the request
PagedEnumerable<ListNativeStylesResponse, NativeStyle> response = nativeStyleServiceClient.ListNativeStyles(parent);

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

ListNativeStylesAsync(ListNativeStylesRequest, CallSettings)

Lists NativeStyle objects.

Declaration
public virtual PagedAsyncEnumerable<ListNativeStylesResponse, NativeStyle> ListNativeStylesAsync(ListNativeStylesRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
ListNativeStylesRequest 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<ListNativeStylesResponse, NativeStyle>

A pageable asynchronous sequence of NativeStyle resources.

Sample code
// Create client
NativeStyleServiceClient nativeStyleServiceClient = await NativeStyleServiceClient.CreateAsync();
// Initialize request argument(s)
ListNativeStylesRequest request = new ListNativeStylesRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    Filter = "",
    OrderBy = "",
    Skip = 0,
};
// Make the request
PagedAsyncEnumerable<ListNativeStylesResponse, NativeStyle> response = nativeStyleServiceClient.ListNativeStylesAsync(request);

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

ListNativeStylesAsync(NetworkName, string, int?, CallSettings)

Lists NativeStyle objects.

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

Required. The parent, which owns this collection of NativeStyles. 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<ListNativeStylesResponse, NativeStyle>

A pageable asynchronous sequence of NativeStyle resources.

Sample code
// Create client
NativeStyleServiceClient nativeStyleServiceClient = await NativeStyleServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
// Make the request
PagedAsyncEnumerable<ListNativeStylesResponse, NativeStyle> response = nativeStyleServiceClient.ListNativeStylesAsync(parent);

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

ListNativeStylesAsync(string, string, int?, CallSettings)

Lists NativeStyle objects.

Declaration
public virtual PagedAsyncEnumerable<ListNativeStylesResponse, NativeStyle> ListNativeStylesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent, which owns this collection of NativeStyles. 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<ListNativeStylesResponse, NativeStyle>

A pageable asynchronous sequence of NativeStyle resources.

Sample code
// Create client
NativeStyleServiceClient nativeStyleServiceClient = await NativeStyleServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
// Make the request
PagedAsyncEnumerable<ListNativeStylesResponse, NativeStyle> response = nativeStyleServiceClient.ListNativeStylesAsync(parent);

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

In this article
Back to top Generated by DocFX