Show / Hide Table of Contents

Class MapManagementClient

MapManagement client wrapper, for convenient use.

Inheritance
object
MapManagementClient
MapManagementClientImpl
Inherited Members
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ToString()
Namespace: Google.Maps.MapManagement.V2Beta
Assembly: Google.Maps.MapManagement.V2Beta.dll
Syntax
public abstract class MapManagementClient
Remarks

The Map Management API uses your inputs to create and manage Google Cloud based styling resources for Google Maps.

Using this API, you can can create and manage MapConfigs (Map IDs), StyleConfigs (JSON-based styling), and MapContextConfigs (associations between styles, datasets, and map variants).

This API offers features through three channels:

  • v2alpha: Experimental features.
  • v2beta: Preview features, recommended for early adoption.
  • v2: General Availability (GA) features.

Capabilities described here are generally available across both the v2alpha and v2beta endpoints.

Properties

DefaultEndpoint

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

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

DefaultScopes

The default MapManagement scopes.

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

The default MapManagement scopes are:

  • https://www.googleapis.com/auth/cloud-platform

GrpcClient

The underlying gRPC MapManagement client

Declaration
public virtual MapManagement.MapManagementClient GrpcClient { get; }
Property Value
Type Description
MapManagement.MapManagementClient

ServiceMetadata

The service metadata associated with this client type.

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

Methods

Create()

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

Declaration
public static MapManagementClient Create()
Returns
Type Description
MapManagementClient

The created MapManagementClient.

CreateAsync(CancellationToken)

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

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

The CancellationToken to use while creating the client.

Returns
Type Description
Task<MapManagementClient>

The task representing the created MapManagementClient.

CreateMapConfig(ProjectName, MapConfig, CallSettings)

Creates a MapConfig in a project.

Declaration
public virtual MapConfig CreateMapConfig(ProjectName parent, MapConfig mapConfig, CallSettings callSettings = null)
Parameters
Type Name Description
ProjectName parent

Required. Parent project that will own the MapConfig. Format: projects/{$my-project-id}

MapConfig mapConfig

Required. The MapConfig to create.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
MapConfig

The RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = MapManagementClient.Create();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
MapConfig mapConfig = new MapConfig();
// Make the request
MapConfig response = mapManagementClient.CreateMapConfig(parent, mapConfig);

CreateMapConfig(CreateMapConfigRequest, CallSettings)

Creates a MapConfig in a project.

Declaration
public virtual MapConfig CreateMapConfig(CreateMapConfigRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
CreateMapConfigRequest 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
MapConfig

The RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = MapManagementClient.Create();
// Initialize request argument(s)
CreateMapConfigRequest request = new CreateMapConfigRequest
{
    ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
    MapConfig = new MapConfig(),
};
// Make the request
MapConfig response = mapManagementClient.CreateMapConfig(request);

CreateMapConfig(string, MapConfig, CallSettings)

Creates a MapConfig in a project.

Declaration
public virtual MapConfig CreateMapConfig(string parent, MapConfig mapConfig, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. Parent project that will own the MapConfig. Format: projects/{$my-project-id}

MapConfig mapConfig

Required. The MapConfig to create.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
MapConfig

The RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = MapManagementClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]";
MapConfig mapConfig = new MapConfig();
// Make the request
MapConfig response = mapManagementClient.CreateMapConfig(parent, mapConfig);

CreateMapConfigAsync(ProjectName, MapConfig, CallSettings)

Creates a MapConfig in a project.

Declaration
public virtual Task<MapConfig> CreateMapConfigAsync(ProjectName parent, MapConfig mapConfig, CallSettings callSettings = null)
Parameters
Type Name Description
ProjectName parent

Required. Parent project that will own the MapConfig. Format: projects/{$my-project-id}

MapConfig mapConfig

Required. The MapConfig to create.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<MapConfig>

A Task containing the RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
MapConfig mapConfig = new MapConfig();
// Make the request
MapConfig response = await mapManagementClient.CreateMapConfigAsync(parent, mapConfig);

CreateMapConfigAsync(ProjectName, MapConfig, CancellationToken)

Creates a MapConfig in a project.

Declaration
public virtual Task<MapConfig> CreateMapConfigAsync(ProjectName parent, MapConfig mapConfig, CancellationToken cancellationToken)
Parameters
Type Name Description
ProjectName parent

Required. Parent project that will own the MapConfig. Format: projects/{$my-project-id}

MapConfig mapConfig

Required. The MapConfig to create.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<MapConfig>

A Task containing the RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
MapConfig mapConfig = new MapConfig();
// Make the request
MapConfig response = await mapManagementClient.CreateMapConfigAsync(parent, mapConfig);

CreateMapConfigAsync(CreateMapConfigRequest, CallSettings)

Creates a MapConfig in a project.

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

A Task containing the RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync();
// Initialize request argument(s)
CreateMapConfigRequest request = new CreateMapConfigRequest
{
    ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
    MapConfig = new MapConfig(),
};
// Make the request
MapConfig response = await mapManagementClient.CreateMapConfigAsync(request);

CreateMapConfigAsync(CreateMapConfigRequest, CancellationToken)

Creates a MapConfig in a project.

Declaration
public virtual Task<MapConfig> CreateMapConfigAsync(CreateMapConfigRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
CreateMapConfigRequest 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<MapConfig>

A Task containing the RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync();
// Initialize request argument(s)
CreateMapConfigRequest request = new CreateMapConfigRequest
{
    ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
    MapConfig = new MapConfig(),
};
// Make the request
MapConfig response = await mapManagementClient.CreateMapConfigAsync(request);

CreateMapConfigAsync(string, MapConfig, CallSettings)

Creates a MapConfig in a project.

Declaration
public virtual Task<MapConfig> CreateMapConfigAsync(string parent, MapConfig mapConfig, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. Parent project that will own the MapConfig. Format: projects/{$my-project-id}

MapConfig mapConfig

Required. The MapConfig to create.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<MapConfig>

A Task containing the RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]";
MapConfig mapConfig = new MapConfig();
// Make the request
MapConfig response = await mapManagementClient.CreateMapConfigAsync(parent, mapConfig);

CreateMapConfigAsync(string, MapConfig, CancellationToken)

Creates a MapConfig in a project.

Declaration
public virtual Task<MapConfig> CreateMapConfigAsync(string parent, MapConfig mapConfig, CancellationToken cancellationToken)
Parameters
Type Name Description
string parent

Required. Parent project that will own the MapConfig. Format: projects/{$my-project-id}

MapConfig mapConfig

Required. The MapConfig to create.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<MapConfig>

A Task containing the RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]";
MapConfig mapConfig = new MapConfig();
// Make the request
MapConfig response = await mapManagementClient.CreateMapConfigAsync(parent, mapConfig);

CreateMapContextConfig(CreateMapContextConfigRequest, CallSettings)

Creates a MapContextConfig.

Declaration
public virtual MapContextConfig CreateMapContextConfig(CreateMapContextConfigRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
CreateMapContextConfigRequest 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
MapContextConfig

The RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = MapManagementClient.Create();
// Initialize request argument(s)
CreateMapContextConfigRequest request = new CreateMapContextConfigRequest
{
    ParentAsMapConfigName = MapConfigName.FromProjectMapConfig("[PROJECT]", "[MAP_CONFIG]"),
    MapContextConfig = new MapContextConfig(),
};
// Make the request
MapContextConfig response = mapManagementClient.CreateMapContextConfig(request);

CreateMapContextConfig(MapConfigName, MapContextConfig, CallSettings)

Creates a MapContextConfig.

Declaration
public virtual MapContextConfig CreateMapContextConfig(MapConfigName parent, MapContextConfig mapContextConfig, CallSettings callSettings = null)
Parameters
Type Name Description
MapConfigName parent

Required. Parent MapConfig that will own the MapContextConfig. Format: projects/{project}/mapConfigs/{map_config}

MapContextConfig mapContextConfig

Required. The MapContextConfig to create.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
MapContextConfig

The RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = MapManagementClient.Create();
// Initialize request argument(s)
MapConfigName parent = MapConfigName.FromProjectMapConfig("[PROJECT]", "[MAP_CONFIG]");
MapContextConfig mapContextConfig = new MapContextConfig();
// Make the request
MapContextConfig response = mapManagementClient.CreateMapContextConfig(parent, mapContextConfig);

CreateMapContextConfig(string, MapContextConfig, CallSettings)

Creates a MapContextConfig.

Declaration
public virtual MapContextConfig CreateMapContextConfig(string parent, MapContextConfig mapContextConfig, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. Parent MapConfig that will own the MapContextConfig. Format: projects/{project}/mapConfigs/{map_config}

MapContextConfig mapContextConfig

Required. The MapContextConfig to create.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
MapContextConfig

The RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = MapManagementClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/mapConfigs/[MAP_CONFIG]";
MapContextConfig mapContextConfig = new MapContextConfig();
// Make the request
MapContextConfig response = mapManagementClient.CreateMapContextConfig(parent, mapContextConfig);

CreateMapContextConfigAsync(CreateMapContextConfigRequest, CallSettings)

Creates a MapContextConfig.

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

A Task containing the RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync();
// Initialize request argument(s)
CreateMapContextConfigRequest request = new CreateMapContextConfigRequest
{
    ParentAsMapConfigName = MapConfigName.FromProjectMapConfig("[PROJECT]", "[MAP_CONFIG]"),
    MapContextConfig = new MapContextConfig(),
};
// Make the request
MapContextConfig response = await mapManagementClient.CreateMapContextConfigAsync(request);

CreateMapContextConfigAsync(CreateMapContextConfigRequest, CancellationToken)

Creates a MapContextConfig.

Declaration
public virtual Task<MapContextConfig> CreateMapContextConfigAsync(CreateMapContextConfigRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
CreateMapContextConfigRequest 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<MapContextConfig>

A Task containing the RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync();
// Initialize request argument(s)
CreateMapContextConfigRequest request = new CreateMapContextConfigRequest
{
    ParentAsMapConfigName = MapConfigName.FromProjectMapConfig("[PROJECT]", "[MAP_CONFIG]"),
    MapContextConfig = new MapContextConfig(),
};
// Make the request
MapContextConfig response = await mapManagementClient.CreateMapContextConfigAsync(request);

CreateMapContextConfigAsync(MapConfigName, MapContextConfig, CallSettings)

Creates a MapContextConfig.

Declaration
public virtual Task<MapContextConfig> CreateMapContextConfigAsync(MapConfigName parent, MapContextConfig mapContextConfig, CallSettings callSettings = null)
Parameters
Type Name Description
MapConfigName parent

Required. Parent MapConfig that will own the MapContextConfig. Format: projects/{project}/mapConfigs/{map_config}

MapContextConfig mapContextConfig

Required. The MapContextConfig to create.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<MapContextConfig>

A Task containing the RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync();
// Initialize request argument(s)
MapConfigName parent = MapConfigName.FromProjectMapConfig("[PROJECT]", "[MAP_CONFIG]");
MapContextConfig mapContextConfig = new MapContextConfig();
// Make the request
MapContextConfig response = await mapManagementClient.CreateMapContextConfigAsync(parent, mapContextConfig);

CreateMapContextConfigAsync(MapConfigName, MapContextConfig, CancellationToken)

Creates a MapContextConfig.

Declaration
public virtual Task<MapContextConfig> CreateMapContextConfigAsync(MapConfigName parent, MapContextConfig mapContextConfig, CancellationToken cancellationToken)
Parameters
Type Name Description
MapConfigName parent

Required. Parent MapConfig that will own the MapContextConfig. Format: projects/{project}/mapConfigs/{map_config}

MapContextConfig mapContextConfig

Required. The MapContextConfig to create.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<MapContextConfig>

A Task containing the RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync();
// Initialize request argument(s)
MapConfigName parent = MapConfigName.FromProjectMapConfig("[PROJECT]", "[MAP_CONFIG]");
MapContextConfig mapContextConfig = new MapContextConfig();
// Make the request
MapContextConfig response = await mapManagementClient.CreateMapContextConfigAsync(parent, mapContextConfig);

CreateMapContextConfigAsync(string, MapContextConfig, CallSettings)

Creates a MapContextConfig.

Declaration
public virtual Task<MapContextConfig> CreateMapContextConfigAsync(string parent, MapContextConfig mapContextConfig, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. Parent MapConfig that will own the MapContextConfig. Format: projects/{project}/mapConfigs/{map_config}

MapContextConfig mapContextConfig

Required. The MapContextConfig to create.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<MapContextConfig>

A Task containing the RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/mapConfigs/[MAP_CONFIG]";
MapContextConfig mapContextConfig = new MapContextConfig();
// Make the request
MapContextConfig response = await mapManagementClient.CreateMapContextConfigAsync(parent, mapContextConfig);

CreateMapContextConfigAsync(string, MapContextConfig, CancellationToken)

Creates a MapContextConfig.

Declaration
public virtual Task<MapContextConfig> CreateMapContextConfigAsync(string parent, MapContextConfig mapContextConfig, CancellationToken cancellationToken)
Parameters
Type Name Description
string parent

Required. Parent MapConfig that will own the MapContextConfig. Format: projects/{project}/mapConfigs/{map_config}

MapContextConfig mapContextConfig

Required. The MapContextConfig to create.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<MapContextConfig>

A Task containing the RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/mapConfigs/[MAP_CONFIG]";
MapContextConfig mapContextConfig = new MapContextConfig();
// Make the request
MapContextConfig response = await mapManagementClient.CreateMapContextConfigAsync(parent, mapContextConfig);

CreateStyleConfig(ProjectName, StyleConfig, CallSettings)

Creates a StyleConfig.

Declaration
public virtual StyleConfig CreateStyleConfig(ProjectName parent, StyleConfig styleConfig, CallSettings callSettings = null)
Parameters
Type Name Description
ProjectName parent

Required. Parent project that will own the StyleConfig. Format: projects/{project}

StyleConfig styleConfig

Required. The StyleConfig to create.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
StyleConfig

The RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = MapManagementClient.Create();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
StyleConfig styleConfig = new StyleConfig();
// Make the request
StyleConfig response = mapManagementClient.CreateStyleConfig(parent, styleConfig);

CreateStyleConfig(CreateStyleConfigRequest, CallSettings)

Creates a StyleConfig.

Declaration
public virtual StyleConfig CreateStyleConfig(CreateStyleConfigRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
CreateStyleConfigRequest 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
StyleConfig

The RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = MapManagementClient.Create();
// Initialize request argument(s)
CreateStyleConfigRequest request = new CreateStyleConfigRequest
{
    ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
    StyleConfig = new StyleConfig(),
};
// Make the request
StyleConfig response = mapManagementClient.CreateStyleConfig(request);

CreateStyleConfig(string, StyleConfig, CallSettings)

Creates a StyleConfig.

Declaration
public virtual StyleConfig CreateStyleConfig(string parent, StyleConfig styleConfig, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. Parent project that will own the StyleConfig. Format: projects/{project}

StyleConfig styleConfig

Required. The StyleConfig to create.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
StyleConfig

The RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = MapManagementClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]";
StyleConfig styleConfig = new StyleConfig();
// Make the request
StyleConfig response = mapManagementClient.CreateStyleConfig(parent, styleConfig);

CreateStyleConfigAsync(ProjectName, StyleConfig, CallSettings)

Creates a StyleConfig.

Declaration
public virtual Task<StyleConfig> CreateStyleConfigAsync(ProjectName parent, StyleConfig styleConfig, CallSettings callSettings = null)
Parameters
Type Name Description
ProjectName parent

Required. Parent project that will own the StyleConfig. Format: projects/{project}

StyleConfig styleConfig

Required. The StyleConfig to create.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<StyleConfig>

A Task containing the RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
StyleConfig styleConfig = new StyleConfig();
// Make the request
StyleConfig response = await mapManagementClient.CreateStyleConfigAsync(parent, styleConfig);

CreateStyleConfigAsync(ProjectName, StyleConfig, CancellationToken)

Creates a StyleConfig.

Declaration
public virtual Task<StyleConfig> CreateStyleConfigAsync(ProjectName parent, StyleConfig styleConfig, CancellationToken cancellationToken)
Parameters
Type Name Description
ProjectName parent

Required. Parent project that will own the StyleConfig. Format: projects/{project}

StyleConfig styleConfig

Required. The StyleConfig to create.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<StyleConfig>

A Task containing the RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
StyleConfig styleConfig = new StyleConfig();
// Make the request
StyleConfig response = await mapManagementClient.CreateStyleConfigAsync(parent, styleConfig);

CreateStyleConfigAsync(CreateStyleConfigRequest, CallSettings)

Creates a StyleConfig.

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

A Task containing the RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync();
// Initialize request argument(s)
CreateStyleConfigRequest request = new CreateStyleConfigRequest
{
    ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
    StyleConfig = new StyleConfig(),
};
// Make the request
StyleConfig response = await mapManagementClient.CreateStyleConfigAsync(request);

CreateStyleConfigAsync(CreateStyleConfigRequest, CancellationToken)

Creates a StyleConfig.

Declaration
public virtual Task<StyleConfig> CreateStyleConfigAsync(CreateStyleConfigRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
CreateStyleConfigRequest 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<StyleConfig>

A Task containing the RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync();
// Initialize request argument(s)
CreateStyleConfigRequest request = new CreateStyleConfigRequest
{
    ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
    StyleConfig = new StyleConfig(),
};
// Make the request
StyleConfig response = await mapManagementClient.CreateStyleConfigAsync(request);

CreateStyleConfigAsync(string, StyleConfig, CallSettings)

Creates a StyleConfig.

Declaration
public virtual Task<StyleConfig> CreateStyleConfigAsync(string parent, StyleConfig styleConfig, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. Parent project that will own the StyleConfig. Format: projects/{project}

StyleConfig styleConfig

Required. The StyleConfig to create.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<StyleConfig>

A Task containing the RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]";
StyleConfig styleConfig = new StyleConfig();
// Make the request
StyleConfig response = await mapManagementClient.CreateStyleConfigAsync(parent, styleConfig);

CreateStyleConfigAsync(string, StyleConfig, CancellationToken)

Creates a StyleConfig.

Declaration
public virtual Task<StyleConfig> CreateStyleConfigAsync(string parent, StyleConfig styleConfig, CancellationToken cancellationToken)
Parameters
Type Name Description
string parent

Required. Parent project that will own the StyleConfig. Format: projects/{project}

StyleConfig styleConfig

Required. The StyleConfig to create.

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<StyleConfig>

A Task containing the RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]";
StyleConfig styleConfig = new StyleConfig();
// Make the request
StyleConfig response = await mapManagementClient.CreateStyleConfigAsync(parent, styleConfig);

DeleteMapConfig(DeleteMapConfigRequest, CallSettings)

Deletes a MapConfig.

Declaration
public virtual void DeleteMapConfig(DeleteMapConfigRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
DeleteMapConfigRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Sample code
// Create client
MapManagementClient mapManagementClient = MapManagementClient.Create();
// Initialize request argument(s)
DeleteMapConfigRequest request = new DeleteMapConfigRequest
{
    MapConfigName = MapConfigName.FromProjectMapConfig("[PROJECT]", "[MAP_CONFIG]"),
    Force = false,
};
// Make the request
mapManagementClient.DeleteMapConfig(request);

DeleteMapConfig(MapConfigName, bool, CallSettings)

Deletes a MapConfig.

Declaration
public virtual void DeleteMapConfig(MapConfigName name, bool force, CallSettings callSettings = null)
Parameters
Type Name Description
MapConfigName name

Required. Resource name of the MapConfig to delete. Format: projects/{project}/mapConfigs/{map_config}

bool force

Optional. If set to true, any MapContextConfigs from this MapConfig will also be deleted. (Otherwise, the request will only work if the MapConfig has no MapContextConfigs.)

CallSettings callSettings

If not null, applies overrides to this RPC call.

Sample code
// Create client
MapManagementClient mapManagementClient = MapManagementClient.Create();
// Initialize request argument(s)
MapConfigName name = MapConfigName.FromProjectMapConfig("[PROJECT]", "[MAP_CONFIG]");
bool force = false;
// Make the request
mapManagementClient.DeleteMapConfig(name, force);

DeleteMapConfig(string, bool, CallSettings)

Deletes a MapConfig.

Declaration
public virtual void DeleteMapConfig(string name, bool force, CallSettings callSettings = null)
Parameters
Type Name Description
string name

Required. Resource name of the MapConfig to delete. Format: projects/{project}/mapConfigs/{map_config}

bool force

Optional. If set to true, any MapContextConfigs from this MapConfig will also be deleted. (Otherwise, the request will only work if the MapConfig has no MapContextConfigs.)

CallSettings callSettings

If not null, applies overrides to this RPC call.

Sample code
// Create client
MapManagementClient mapManagementClient = MapManagementClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/mapConfigs/[MAP_CONFIG]";
bool force = false;
// Make the request
mapManagementClient.DeleteMapConfig(name, force);

DeleteMapConfigAsync(DeleteMapConfigRequest, CallSettings)

Deletes a MapConfig.

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

A Task containing the RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync();
// Initialize request argument(s)
DeleteMapConfigRequest request = new DeleteMapConfigRequest
{
    MapConfigName = MapConfigName.FromProjectMapConfig("[PROJECT]", "[MAP_CONFIG]"),
    Force = false,
};
// Make the request
await mapManagementClient.DeleteMapConfigAsync(request);

DeleteMapConfigAsync(DeleteMapConfigRequest, CancellationToken)

Deletes a MapConfig.

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

A Task containing the RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync();
// Initialize request argument(s)
DeleteMapConfigRequest request = new DeleteMapConfigRequest
{
    MapConfigName = MapConfigName.FromProjectMapConfig("[PROJECT]", "[MAP_CONFIG]"),
    Force = false,
};
// Make the request
await mapManagementClient.DeleteMapConfigAsync(request);

DeleteMapConfigAsync(MapConfigName, bool, CallSettings)

Deletes a MapConfig.

Declaration
public virtual Task DeleteMapConfigAsync(MapConfigName name, bool force, CallSettings callSettings = null)
Parameters
Type Name Description
MapConfigName name

Required. Resource name of the MapConfig to delete. Format: projects/{project}/mapConfigs/{map_config}

bool force

Optional. If set to true, any MapContextConfigs from this MapConfig will also be deleted. (Otherwise, the request will only work if the MapConfig has no MapContextConfigs.)

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync();
// Initialize request argument(s)
MapConfigName name = MapConfigName.FromProjectMapConfig("[PROJECT]", "[MAP_CONFIG]");
bool force = false;
// Make the request
await mapManagementClient.DeleteMapConfigAsync(name, force);

DeleteMapConfigAsync(MapConfigName, bool, CancellationToken)

Deletes a MapConfig.

Declaration
public virtual Task DeleteMapConfigAsync(MapConfigName name, bool force, CancellationToken cancellationToken)
Parameters
Type Name Description
MapConfigName name

Required. Resource name of the MapConfig to delete. Format: projects/{project}/mapConfigs/{map_config}

bool force

Optional. If set to true, any MapContextConfigs from this MapConfig will also be deleted. (Otherwise, the request will only work if the MapConfig has no MapContextConfigs.)

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync();
// Initialize request argument(s)
MapConfigName name = MapConfigName.FromProjectMapConfig("[PROJECT]", "[MAP_CONFIG]");
bool force = false;
// Make the request
await mapManagementClient.DeleteMapConfigAsync(name, force);

DeleteMapConfigAsync(string, bool, CallSettings)

Deletes a MapConfig.

Declaration
public virtual Task DeleteMapConfigAsync(string name, bool force, CallSettings callSettings = null)
Parameters
Type Name Description
string name

Required. Resource name of the MapConfig to delete. Format: projects/{project}/mapConfigs/{map_config}

bool force

Optional. If set to true, any MapContextConfigs from this MapConfig will also be deleted. (Otherwise, the request will only work if the MapConfig has no MapContextConfigs.)

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/mapConfigs/[MAP_CONFIG]";
bool force = false;
// Make the request
await mapManagementClient.DeleteMapConfigAsync(name, force);

DeleteMapConfigAsync(string, bool, CancellationToken)

Deletes a MapConfig.

Declaration
public virtual Task DeleteMapConfigAsync(string name, bool force, CancellationToken cancellationToken)
Parameters
Type Name Description
string name

Required. Resource name of the MapConfig to delete. Format: projects/{project}/mapConfigs/{map_config}

bool force

Optional. If set to true, any MapContextConfigs from this MapConfig will also be deleted. (Otherwise, the request will only work if the MapConfig has no MapContextConfigs.)

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/mapConfigs/[MAP_CONFIG]";
bool force = false;
// Make the request
await mapManagementClient.DeleteMapConfigAsync(name, force);

DeleteMapContextConfig(DeleteMapContextConfigRequest, CallSettings)

Deletes a MapContextConfig.

Declaration
public virtual void DeleteMapContextConfig(DeleteMapContextConfigRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
DeleteMapContextConfigRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Sample code
// Create client
MapManagementClient mapManagementClient = MapManagementClient.Create();
// Initialize request argument(s)
DeleteMapContextConfigRequest request = new DeleteMapContextConfigRequest
{
    MapContextConfigName = MapContextConfigName.FromProjectMapConfigMapContextConfig("[PROJECT]", "[MAP_CONFIG]", "[MAP_CONTEXT_CONFIG]"),
};
// Make the request
mapManagementClient.DeleteMapContextConfig(request);

DeleteMapContextConfig(MapContextConfigName, CallSettings)

Deletes a MapContextConfig.

Declaration
public virtual void DeleteMapContextConfig(MapContextConfigName name, CallSettings callSettings = null)
Parameters
Type Name Description
MapContextConfigName name

Required. Resource name of the MapContextConfig to delete. Format: projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Sample code
// Create client
MapManagementClient mapManagementClient = MapManagementClient.Create();
// Initialize request argument(s)
MapContextConfigName name = MapContextConfigName.FromProjectMapConfigMapContextConfig("[PROJECT]", "[MAP_CONFIG]", "[MAP_CONTEXT_CONFIG]");
// Make the request
mapManagementClient.DeleteMapContextConfig(name);

DeleteMapContextConfig(string, CallSettings)

Deletes a MapContextConfig.

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

Required. Resource name of the MapContextConfig to delete. Format: projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Sample code
// Create client
MapManagementClient mapManagementClient = MapManagementClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/mapConfigs/[MAP_CONFIG]/mapContextConfigs/[MAP_CONTEXT_CONFIG]";
// Make the request
mapManagementClient.DeleteMapContextConfig(name);

DeleteMapContextConfigAsync(DeleteMapContextConfigRequest, CallSettings)

Deletes a MapContextConfig.

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

A Task containing the RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync();
// Initialize request argument(s)
DeleteMapContextConfigRequest request = new DeleteMapContextConfigRequest
{
    MapContextConfigName = MapContextConfigName.FromProjectMapConfigMapContextConfig("[PROJECT]", "[MAP_CONFIG]", "[MAP_CONTEXT_CONFIG]"),
};
// Make the request
await mapManagementClient.DeleteMapContextConfigAsync(request);

DeleteMapContextConfigAsync(DeleteMapContextConfigRequest, CancellationToken)

Deletes a MapContextConfig.

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

A Task containing the RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync();
// Initialize request argument(s)
DeleteMapContextConfigRequest request = new DeleteMapContextConfigRequest
{
    MapContextConfigName = MapContextConfigName.FromProjectMapConfigMapContextConfig("[PROJECT]", "[MAP_CONFIG]", "[MAP_CONTEXT_CONFIG]"),
};
// Make the request
await mapManagementClient.DeleteMapContextConfigAsync(request);

DeleteMapContextConfigAsync(MapContextConfigName, CallSettings)

Deletes a MapContextConfig.

Declaration
public virtual Task DeleteMapContextConfigAsync(MapContextConfigName name, CallSettings callSettings = null)
Parameters
Type Name Description
MapContextConfigName name

Required. Resource name of the MapContextConfig to delete. Format: projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync();
// Initialize request argument(s)
MapContextConfigName name = MapContextConfigName.FromProjectMapConfigMapContextConfig("[PROJECT]", "[MAP_CONFIG]", "[MAP_CONTEXT_CONFIG]");
// Make the request
await mapManagementClient.DeleteMapContextConfigAsync(name);

DeleteMapContextConfigAsync(MapContextConfigName, CancellationToken)

Deletes a MapContextConfig.

Declaration
public virtual Task DeleteMapContextConfigAsync(MapContextConfigName name, CancellationToken cancellationToken)
Parameters
Type Name Description
MapContextConfigName name

Required. Resource name of the MapContextConfig to delete. Format: projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync();
// Initialize request argument(s)
MapContextConfigName name = MapContextConfigName.FromProjectMapConfigMapContextConfig("[PROJECT]", "[MAP_CONFIG]", "[MAP_CONTEXT_CONFIG]");
// Make the request
await mapManagementClient.DeleteMapContextConfigAsync(name);

DeleteMapContextConfigAsync(string, CallSettings)

Deletes a MapContextConfig.

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

Required. Resource name of the MapContextConfig to delete. Format: projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/mapConfigs/[MAP_CONFIG]/mapContextConfigs/[MAP_CONTEXT_CONFIG]";
// Make the request
await mapManagementClient.DeleteMapContextConfigAsync(name);

DeleteMapContextConfigAsync(string, CancellationToken)

Deletes a MapContextConfig.

Declaration
public virtual Task DeleteMapContextConfigAsync(string name, CancellationToken cancellationToken)
Parameters
Type Name Description
string name

Required. Resource name of the MapContextConfig to delete. Format: projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/mapConfigs/[MAP_CONFIG]/mapContextConfigs/[MAP_CONTEXT_CONFIG]";
// Make the request
await mapManagementClient.DeleteMapContextConfigAsync(name);

DeleteStyleConfig(DeleteStyleConfigRequest, CallSettings)

Deletes a StyleConfig.

Declaration
public virtual void DeleteStyleConfig(DeleteStyleConfigRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
DeleteStyleConfigRequest request

The request object containing all of the parameters for the API call.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Sample code
// Create client
MapManagementClient mapManagementClient = MapManagementClient.Create();
// Initialize request argument(s)
DeleteStyleConfigRequest request = new DeleteStyleConfigRequest
{
    StyleConfigName = StyleConfigName.FromProjectStyleConfig("[PROJECT]", "[STYLE_CONFIG]"),
};
// Make the request
mapManagementClient.DeleteStyleConfig(request);

DeleteStyleConfig(StyleConfigName, CallSettings)

Deletes a StyleConfig.

Declaration
public virtual void DeleteStyleConfig(StyleConfigName name, CallSettings callSettings = null)
Parameters
Type Name Description
StyleConfigName name

Required. Resource name of the StyleConfig to delete. Format: projects/{project}/styleConfigs/{style_config}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Sample code
// Create client
MapManagementClient mapManagementClient = MapManagementClient.Create();
// Initialize request argument(s)
StyleConfigName name = StyleConfigName.FromProjectStyleConfig("[PROJECT]", "[STYLE_CONFIG]");
// Make the request
mapManagementClient.DeleteStyleConfig(name);

DeleteStyleConfig(string, CallSettings)

Deletes a StyleConfig.

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

Required. Resource name of the StyleConfig to delete. Format: projects/{project}/styleConfigs/{style_config}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Sample code
// Create client
MapManagementClient mapManagementClient = MapManagementClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/styleConfigs/[STYLE_CONFIG]";
// Make the request
mapManagementClient.DeleteStyleConfig(name);

DeleteStyleConfigAsync(DeleteStyleConfigRequest, CallSettings)

Deletes a StyleConfig.

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

A Task containing the RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync();
// Initialize request argument(s)
DeleteStyleConfigRequest request = new DeleteStyleConfigRequest
{
    StyleConfigName = StyleConfigName.FromProjectStyleConfig("[PROJECT]", "[STYLE_CONFIG]"),
};
// Make the request
await mapManagementClient.DeleteStyleConfigAsync(request);

DeleteStyleConfigAsync(DeleteStyleConfigRequest, CancellationToken)

Deletes a StyleConfig.

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

A Task containing the RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync();
// Initialize request argument(s)
DeleteStyleConfigRequest request = new DeleteStyleConfigRequest
{
    StyleConfigName = StyleConfigName.FromProjectStyleConfig("[PROJECT]", "[STYLE_CONFIG]"),
};
// Make the request
await mapManagementClient.DeleteStyleConfigAsync(request);

DeleteStyleConfigAsync(StyleConfigName, CallSettings)

Deletes a StyleConfig.

Declaration
public virtual Task DeleteStyleConfigAsync(StyleConfigName name, CallSettings callSettings = null)
Parameters
Type Name Description
StyleConfigName name

Required. Resource name of the StyleConfig to delete. Format: projects/{project}/styleConfigs/{style_config}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync();
// Initialize request argument(s)
StyleConfigName name = StyleConfigName.FromProjectStyleConfig("[PROJECT]", "[STYLE_CONFIG]");
// Make the request
await mapManagementClient.DeleteStyleConfigAsync(name);

DeleteStyleConfigAsync(StyleConfigName, CancellationToken)

Deletes a StyleConfig.

Declaration
public virtual Task DeleteStyleConfigAsync(StyleConfigName name, CancellationToken cancellationToken)
Parameters
Type Name Description
StyleConfigName name

Required. Resource name of the StyleConfig to delete. Format: projects/{project}/styleConfigs/{style_config}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync();
// Initialize request argument(s)
StyleConfigName name = StyleConfigName.FromProjectStyleConfig("[PROJECT]", "[STYLE_CONFIG]");
// Make the request
await mapManagementClient.DeleteStyleConfigAsync(name);

DeleteStyleConfigAsync(string, CallSettings)

Deletes a StyleConfig.

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

Required. Resource name of the StyleConfig to delete. Format: projects/{project}/styleConfigs/{style_config}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/styleConfigs/[STYLE_CONFIG]";
// Make the request
await mapManagementClient.DeleteStyleConfigAsync(name);

DeleteStyleConfigAsync(string, CancellationToken)

Deletes a StyleConfig.

Declaration
public virtual Task DeleteStyleConfigAsync(string name, CancellationToken cancellationToken)
Parameters
Type Name Description
string name

Required. Resource name of the StyleConfig to delete. Format: projects/{project}/styleConfigs/{style_config}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task

A Task containing the RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/styleConfigs/[STYLE_CONFIG]";
// Make the request
await mapManagementClient.DeleteStyleConfigAsync(name);

GetMapConfig(GetMapConfigRequest, CallSettings)

Gets a MapConfig.

Declaration
public virtual MapConfig GetMapConfig(GetMapConfigRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
GetMapConfigRequest 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
MapConfig

The RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = MapManagementClient.Create();
// Initialize request argument(s)
GetMapConfigRequest request = new GetMapConfigRequest
{
    MapConfigName = MapConfigName.FromProjectMapConfig("[PROJECT]", "[MAP_CONFIG]"),
};
// Make the request
MapConfig response = mapManagementClient.GetMapConfig(request);

GetMapConfig(MapConfigName, CallSettings)

Gets a MapConfig.

Declaration
public virtual MapConfig GetMapConfig(MapConfigName name, CallSettings callSettings = null)
Parameters
Type Name Description
MapConfigName name

Required. Resource name of the MapConfig. Format: projects/{project}/mapConfigs/{map_config}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
MapConfig

The RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = MapManagementClient.Create();
// Initialize request argument(s)
MapConfigName name = MapConfigName.FromProjectMapConfig("[PROJECT]", "[MAP_CONFIG]");
// Make the request
MapConfig response = mapManagementClient.GetMapConfig(name);

GetMapConfig(string, CallSettings)

Gets a MapConfig.

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

Required. Resource name of the MapConfig. Format: projects/{project}/mapConfigs/{map_config}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
MapConfig

The RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = MapManagementClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/mapConfigs/[MAP_CONFIG]";
// Make the request
MapConfig response = mapManagementClient.GetMapConfig(name);

GetMapConfigAsync(GetMapConfigRequest, CallSettings)

Gets a MapConfig.

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

A Task containing the RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync();
// Initialize request argument(s)
GetMapConfigRequest request = new GetMapConfigRequest
{
    MapConfigName = MapConfigName.FromProjectMapConfig("[PROJECT]", "[MAP_CONFIG]"),
};
// Make the request
MapConfig response = await mapManagementClient.GetMapConfigAsync(request);

GetMapConfigAsync(GetMapConfigRequest, CancellationToken)

Gets a MapConfig.

Declaration
public virtual Task<MapConfig> GetMapConfigAsync(GetMapConfigRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
GetMapConfigRequest 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<MapConfig>

A Task containing the RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync();
// Initialize request argument(s)
GetMapConfigRequest request = new GetMapConfigRequest
{
    MapConfigName = MapConfigName.FromProjectMapConfig("[PROJECT]", "[MAP_CONFIG]"),
};
// Make the request
MapConfig response = await mapManagementClient.GetMapConfigAsync(request);

GetMapConfigAsync(MapConfigName, CallSettings)

Gets a MapConfig.

Declaration
public virtual Task<MapConfig> GetMapConfigAsync(MapConfigName name, CallSettings callSettings = null)
Parameters
Type Name Description
MapConfigName name

Required. Resource name of the MapConfig. Format: projects/{project}/mapConfigs/{map_config}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<MapConfig>

A Task containing the RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync();
// Initialize request argument(s)
MapConfigName name = MapConfigName.FromProjectMapConfig("[PROJECT]", "[MAP_CONFIG]");
// Make the request
MapConfig response = await mapManagementClient.GetMapConfigAsync(name);

GetMapConfigAsync(MapConfigName, CancellationToken)

Gets a MapConfig.

Declaration
public virtual Task<MapConfig> GetMapConfigAsync(MapConfigName name, CancellationToken cancellationToken)
Parameters
Type Name Description
MapConfigName name

Required. Resource name of the MapConfig. Format: projects/{project}/mapConfigs/{map_config}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<MapConfig>

A Task containing the RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync();
// Initialize request argument(s)
MapConfigName name = MapConfigName.FromProjectMapConfig("[PROJECT]", "[MAP_CONFIG]");
// Make the request
MapConfig response = await mapManagementClient.GetMapConfigAsync(name);

GetMapConfigAsync(string, CallSettings)

Gets a MapConfig.

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

Required. Resource name of the MapConfig. Format: projects/{project}/mapConfigs/{map_config}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<MapConfig>

A Task containing the RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/mapConfigs/[MAP_CONFIG]";
// Make the request
MapConfig response = await mapManagementClient.GetMapConfigAsync(name);

GetMapConfigAsync(string, CancellationToken)

Gets a MapConfig.

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

Required. Resource name of the MapConfig. Format: projects/{project}/mapConfigs/{map_config}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<MapConfig>

A Task containing the RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/mapConfigs/[MAP_CONFIG]";
// Make the request
MapConfig response = await mapManagementClient.GetMapConfigAsync(name);

GetMapContextConfig(GetMapContextConfigRequest, CallSettings)

Gets a MapContextConfig.

Declaration
public virtual MapContextConfig GetMapContextConfig(GetMapContextConfigRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
GetMapContextConfigRequest 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
MapContextConfig

The RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = MapManagementClient.Create();
// Initialize request argument(s)
GetMapContextConfigRequest request = new GetMapContextConfigRequest
{
    MapContextConfigName = MapContextConfigName.FromProjectMapConfigMapContextConfig("[PROJECT]", "[MAP_CONFIG]", "[MAP_CONTEXT_CONFIG]"),
};
// Make the request
MapContextConfig response = mapManagementClient.GetMapContextConfig(request);

GetMapContextConfig(MapContextConfigName, CallSettings)

Gets a MapContextConfig.

Declaration
public virtual MapContextConfig GetMapContextConfig(MapContextConfigName name, CallSettings callSettings = null)
Parameters
Type Name Description
MapContextConfigName name

Required. Resource name of the MapContextConfig. Format: projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
MapContextConfig

The RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = MapManagementClient.Create();
// Initialize request argument(s)
MapContextConfigName name = MapContextConfigName.FromProjectMapConfigMapContextConfig("[PROJECT]", "[MAP_CONFIG]", "[MAP_CONTEXT_CONFIG]");
// Make the request
MapContextConfig response = mapManagementClient.GetMapContextConfig(name);

GetMapContextConfig(string, CallSettings)

Gets a MapContextConfig.

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

Required. Resource name of the MapContextConfig. Format: projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
MapContextConfig

The RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = MapManagementClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/mapConfigs/[MAP_CONFIG]/mapContextConfigs/[MAP_CONTEXT_CONFIG]";
// Make the request
MapContextConfig response = mapManagementClient.GetMapContextConfig(name);

GetMapContextConfigAsync(GetMapContextConfigRequest, CallSettings)

Gets a MapContextConfig.

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

A Task containing the RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync();
// Initialize request argument(s)
GetMapContextConfigRequest request = new GetMapContextConfigRequest
{
    MapContextConfigName = MapContextConfigName.FromProjectMapConfigMapContextConfig("[PROJECT]", "[MAP_CONFIG]", "[MAP_CONTEXT_CONFIG]"),
};
// Make the request
MapContextConfig response = await mapManagementClient.GetMapContextConfigAsync(request);

GetMapContextConfigAsync(GetMapContextConfigRequest, CancellationToken)

Gets a MapContextConfig.

Declaration
public virtual Task<MapContextConfig> GetMapContextConfigAsync(GetMapContextConfigRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
GetMapContextConfigRequest 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<MapContextConfig>

A Task containing the RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync();
// Initialize request argument(s)
GetMapContextConfigRequest request = new GetMapContextConfigRequest
{
    MapContextConfigName = MapContextConfigName.FromProjectMapConfigMapContextConfig("[PROJECT]", "[MAP_CONFIG]", "[MAP_CONTEXT_CONFIG]"),
};
// Make the request
MapContextConfig response = await mapManagementClient.GetMapContextConfigAsync(request);

GetMapContextConfigAsync(MapContextConfigName, CallSettings)

Gets a MapContextConfig.

Declaration
public virtual Task<MapContextConfig> GetMapContextConfigAsync(MapContextConfigName name, CallSettings callSettings = null)
Parameters
Type Name Description
MapContextConfigName name

Required. Resource name of the MapContextConfig. Format: projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<MapContextConfig>

A Task containing the RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync();
// Initialize request argument(s)
MapContextConfigName name = MapContextConfigName.FromProjectMapConfigMapContextConfig("[PROJECT]", "[MAP_CONFIG]", "[MAP_CONTEXT_CONFIG]");
// Make the request
MapContextConfig response = await mapManagementClient.GetMapContextConfigAsync(name);

GetMapContextConfigAsync(MapContextConfigName, CancellationToken)

Gets a MapContextConfig.

Declaration
public virtual Task<MapContextConfig> GetMapContextConfigAsync(MapContextConfigName name, CancellationToken cancellationToken)
Parameters
Type Name Description
MapContextConfigName name

Required. Resource name of the MapContextConfig. Format: projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<MapContextConfig>

A Task containing the RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync();
// Initialize request argument(s)
MapContextConfigName name = MapContextConfigName.FromProjectMapConfigMapContextConfig("[PROJECT]", "[MAP_CONFIG]", "[MAP_CONTEXT_CONFIG]");
// Make the request
MapContextConfig response = await mapManagementClient.GetMapContextConfigAsync(name);

GetMapContextConfigAsync(string, CallSettings)

Gets a MapContextConfig.

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

Required. Resource name of the MapContextConfig. Format: projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<MapContextConfig>

A Task containing the RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/mapConfigs/[MAP_CONFIG]/mapContextConfigs/[MAP_CONTEXT_CONFIG]";
// Make the request
MapContextConfig response = await mapManagementClient.GetMapContextConfigAsync(name);

GetMapContextConfigAsync(string, CancellationToken)

Gets a MapContextConfig.

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

Required. Resource name of the MapContextConfig. Format: projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<MapContextConfig>

A Task containing the RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/mapConfigs/[MAP_CONFIG]/mapContextConfigs/[MAP_CONTEXT_CONFIG]";
// Make the request
MapContextConfig response = await mapManagementClient.GetMapContextConfigAsync(name);

GetStyleConfig(GetStyleConfigRequest, CallSettings)

Gets a StyleConfig.

Declaration
public virtual StyleConfig GetStyleConfig(GetStyleConfigRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
GetStyleConfigRequest 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
StyleConfig

The RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = MapManagementClient.Create();
// Initialize request argument(s)
GetStyleConfigRequest request = new GetStyleConfigRequest
{
    StyleConfigName = StyleConfigName.FromProjectStyleConfig("[PROJECT]", "[STYLE_CONFIG]"),
};
// Make the request
StyleConfig response = mapManagementClient.GetStyleConfig(request);

GetStyleConfig(StyleConfigName, CallSettings)

Gets a StyleConfig.

Declaration
public virtual StyleConfig GetStyleConfig(StyleConfigName name, CallSettings callSettings = null)
Parameters
Type Name Description
StyleConfigName name

Required. Resource name of the StyleConfig. Format: projects/{project}/styleConfigs/{style_config}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
StyleConfig

The RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = MapManagementClient.Create();
// Initialize request argument(s)
StyleConfigName name = StyleConfigName.FromProjectStyleConfig("[PROJECT]", "[STYLE_CONFIG]");
// Make the request
StyleConfig response = mapManagementClient.GetStyleConfig(name);

GetStyleConfig(string, CallSettings)

Gets a StyleConfig.

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

Required. Resource name of the StyleConfig. Format: projects/{project}/styleConfigs/{style_config}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
StyleConfig

The RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = MapManagementClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/styleConfigs/[STYLE_CONFIG]";
// Make the request
StyleConfig response = mapManagementClient.GetStyleConfig(name);

GetStyleConfigAsync(GetStyleConfigRequest, CallSettings)

Gets a StyleConfig.

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

A Task containing the RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync();
// Initialize request argument(s)
GetStyleConfigRequest request = new GetStyleConfigRequest
{
    StyleConfigName = StyleConfigName.FromProjectStyleConfig("[PROJECT]", "[STYLE_CONFIG]"),
};
// Make the request
StyleConfig response = await mapManagementClient.GetStyleConfigAsync(request);

GetStyleConfigAsync(GetStyleConfigRequest, CancellationToken)

Gets a StyleConfig.

Declaration
public virtual Task<StyleConfig> GetStyleConfigAsync(GetStyleConfigRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
GetStyleConfigRequest 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<StyleConfig>

A Task containing the RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync();
// Initialize request argument(s)
GetStyleConfigRequest request = new GetStyleConfigRequest
{
    StyleConfigName = StyleConfigName.FromProjectStyleConfig("[PROJECT]", "[STYLE_CONFIG]"),
};
// Make the request
StyleConfig response = await mapManagementClient.GetStyleConfigAsync(request);

GetStyleConfigAsync(StyleConfigName, CallSettings)

Gets a StyleConfig.

Declaration
public virtual Task<StyleConfig> GetStyleConfigAsync(StyleConfigName name, CallSettings callSettings = null)
Parameters
Type Name Description
StyleConfigName name

Required. Resource name of the StyleConfig. Format: projects/{project}/styleConfigs/{style_config}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<StyleConfig>

A Task containing the RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync();
// Initialize request argument(s)
StyleConfigName name = StyleConfigName.FromProjectStyleConfig("[PROJECT]", "[STYLE_CONFIG]");
// Make the request
StyleConfig response = await mapManagementClient.GetStyleConfigAsync(name);

GetStyleConfigAsync(StyleConfigName, CancellationToken)

Gets a StyleConfig.

Declaration
public virtual Task<StyleConfig> GetStyleConfigAsync(StyleConfigName name, CancellationToken cancellationToken)
Parameters
Type Name Description
StyleConfigName name

Required. Resource name of the StyleConfig. Format: projects/{project}/styleConfigs/{style_config}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<StyleConfig>

A Task containing the RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync();
// Initialize request argument(s)
StyleConfigName name = StyleConfigName.FromProjectStyleConfig("[PROJECT]", "[STYLE_CONFIG]");
// Make the request
StyleConfig response = await mapManagementClient.GetStyleConfigAsync(name);

GetStyleConfigAsync(string, CallSettings)

Gets a StyleConfig.

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

Required. Resource name of the StyleConfig. Format: projects/{project}/styleConfigs/{style_config}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<StyleConfig>

A Task containing the RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/styleConfigs/[STYLE_CONFIG]";
// Make the request
StyleConfig response = await mapManagementClient.GetStyleConfigAsync(name);

GetStyleConfigAsync(string, CancellationToken)

Gets a StyleConfig.

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

Required. Resource name of the StyleConfig. Format: projects/{project}/styleConfigs/{style_config}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<StyleConfig>

A Task containing the RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/styleConfigs/[STYLE_CONFIG]";
// Make the request
StyleConfig response = await mapManagementClient.GetStyleConfigAsync(name);

ListMapConfigs(ProjectName, string, int?, CallSettings)

Lists MapConfigs for a project.

Declaration
public virtual PagedEnumerable<ListMapConfigsResponse, MapConfig> ListMapConfigs(ProjectName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
Type Name Description
ProjectName parent

Required. Parent project that owns the MapConfigs. Format: projects/{project}

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<ListMapConfigsResponse, MapConfig>

A pageable sequence of MapConfig resources.

Sample code
// Create client
MapManagementClient mapManagementClient = MapManagementClient.Create();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
// Make the request
PagedEnumerable<ListMapConfigsResponse, MapConfig> response = mapManagementClient.ListMapConfigs(parent);

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

ListMapConfigs(ListMapConfigsRequest, CallSettings)

Lists MapConfigs for a project.

Declaration
public virtual PagedEnumerable<ListMapConfigsResponse, MapConfig> ListMapConfigs(ListMapConfigsRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
ListMapConfigsRequest 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<ListMapConfigsResponse, MapConfig>

A pageable sequence of MapConfig resources.

Sample code
// Create client
MapManagementClient mapManagementClient = MapManagementClient.Create();
// Initialize request argument(s)
ListMapConfigsRequest request = new ListMapConfigsRequest
{
    ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
};
// Make the request
PagedEnumerable<ListMapConfigsResponse, MapConfig> response = mapManagementClient.ListMapConfigs(request);

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

ListMapConfigs(string, string, int?, CallSettings)

Lists MapConfigs for a project.

Declaration
public virtual PagedEnumerable<ListMapConfigsResponse, MapConfig> ListMapConfigs(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. Parent project that owns the MapConfigs. Format: projects/{project}

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<ListMapConfigsResponse, MapConfig>

A pageable sequence of MapConfig resources.

Sample code
// Create client
MapManagementClient mapManagementClient = MapManagementClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]";
// Make the request
PagedEnumerable<ListMapConfigsResponse, MapConfig> response = mapManagementClient.ListMapConfigs(parent);

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

ListMapConfigsAsync(ProjectName, string, int?, CallSettings)

Lists MapConfigs for a project.

Declaration
public virtual PagedAsyncEnumerable<ListMapConfigsResponse, MapConfig> ListMapConfigsAsync(ProjectName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
Type Name Description
ProjectName parent

Required. Parent project that owns the MapConfigs. Format: projects/{project}

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<ListMapConfigsResponse, MapConfig>

A pageable asynchronous sequence of MapConfig resources.

Sample code
// Create client
MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
// Make the request
PagedAsyncEnumerable<ListMapConfigsResponse, MapConfig> response = mapManagementClient.ListMapConfigsAsync(parent);

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

ListMapConfigsAsync(ListMapConfigsRequest, CallSettings)

Lists MapConfigs for a project.

Declaration
public virtual PagedAsyncEnumerable<ListMapConfigsResponse, MapConfig> ListMapConfigsAsync(ListMapConfigsRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
ListMapConfigsRequest 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<ListMapConfigsResponse, MapConfig>

A pageable asynchronous sequence of MapConfig resources.

Sample code
// Create client
MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync();
// Initialize request argument(s)
ListMapConfigsRequest request = new ListMapConfigsRequest
{
    ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
};
// Make the request
PagedAsyncEnumerable<ListMapConfigsResponse, MapConfig> response = mapManagementClient.ListMapConfigsAsync(request);

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

ListMapConfigsAsync(string, string, int?, CallSettings)

Lists MapConfigs for a project.

Declaration
public virtual PagedAsyncEnumerable<ListMapConfigsResponse, MapConfig> ListMapConfigsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. Parent project that owns the MapConfigs. Format: projects/{project}

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<ListMapConfigsResponse, MapConfig>

A pageable asynchronous sequence of MapConfig resources.

Sample code
// Create client
MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]";
// Make the request
PagedAsyncEnumerable<ListMapConfigsResponse, MapConfig> response = mapManagementClient.ListMapConfigsAsync(parent);

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

ListMapContextConfigs(ListMapContextConfigsRequest, CallSettings)

Lists MapContextConfigs.

Declaration
public virtual PagedEnumerable<ListMapContextConfigsResponse, MapContextConfig> ListMapContextConfigs(ListMapContextConfigsRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
ListMapContextConfigsRequest 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<ListMapContextConfigsResponse, MapContextConfig>

A pageable sequence of MapContextConfig resources.

Sample code
// Create client
MapManagementClient mapManagementClient = MapManagementClient.Create();
// Initialize request argument(s)
ListMapContextConfigsRequest request = new ListMapContextConfigsRequest
{
    ParentAsMapConfigName = MapConfigName.FromProjectMapConfig("[PROJECT]", "[MAP_CONFIG]"),
};
// Make the request
PagedEnumerable<ListMapContextConfigsResponse, MapContextConfig> response = mapManagementClient.ListMapContextConfigs(request);

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

ListMapContextConfigs(MapConfigName, string, int?, CallSettings)

Lists MapContextConfigs.

Declaration
public virtual PagedEnumerable<ListMapContextConfigsResponse, MapContextConfig> ListMapContextConfigs(MapConfigName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
Type Name Description
MapConfigName parent

Required. Parent MapConfig that owns the MapContextConfigs. Format: projects/{project}/mapConfigs/{map_config}

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<ListMapContextConfigsResponse, MapContextConfig>

A pageable sequence of MapContextConfig resources.

Sample code
// Create client
MapManagementClient mapManagementClient = MapManagementClient.Create();
// Initialize request argument(s)
MapConfigName parent = MapConfigName.FromProjectMapConfig("[PROJECT]", "[MAP_CONFIG]");
// Make the request
PagedEnumerable<ListMapContextConfigsResponse, MapContextConfig> response = mapManagementClient.ListMapContextConfigs(parent);

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

ListMapContextConfigs(string, string, int?, CallSettings)

Lists MapContextConfigs.

Declaration
public virtual PagedEnumerable<ListMapContextConfigsResponse, MapContextConfig> ListMapContextConfigs(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. Parent MapConfig that owns the MapContextConfigs. Format: projects/{project}/mapConfigs/{map_config}

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<ListMapContextConfigsResponse, MapContextConfig>

A pageable sequence of MapContextConfig resources.

Sample code
// Create client
MapManagementClient mapManagementClient = MapManagementClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/mapConfigs/[MAP_CONFIG]";
// Make the request
PagedEnumerable<ListMapContextConfigsResponse, MapContextConfig> response = mapManagementClient.ListMapContextConfigs(parent);

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

ListMapContextConfigsAsync(ListMapContextConfigsRequest, CallSettings)

Lists MapContextConfigs.

Declaration
public virtual PagedAsyncEnumerable<ListMapContextConfigsResponse, MapContextConfig> ListMapContextConfigsAsync(ListMapContextConfigsRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
ListMapContextConfigsRequest 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<ListMapContextConfigsResponse, MapContextConfig>

A pageable asynchronous sequence of MapContextConfig resources.

Sample code
// Create client
MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync();
// Initialize request argument(s)
ListMapContextConfigsRequest request = new ListMapContextConfigsRequest
{
    ParentAsMapConfigName = MapConfigName.FromProjectMapConfig("[PROJECT]", "[MAP_CONFIG]"),
};
// Make the request
PagedAsyncEnumerable<ListMapContextConfigsResponse, MapContextConfig> response = mapManagementClient.ListMapContextConfigsAsync(request);

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

ListMapContextConfigsAsync(MapConfigName, string, int?, CallSettings)

Lists MapContextConfigs.

Declaration
public virtual PagedAsyncEnumerable<ListMapContextConfigsResponse, MapContextConfig> ListMapContextConfigsAsync(MapConfigName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
Type Name Description
MapConfigName parent

Required. Parent MapConfig that owns the MapContextConfigs. Format: projects/{project}/mapConfigs/{map_config}

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<ListMapContextConfigsResponse, MapContextConfig>

A pageable asynchronous sequence of MapContextConfig resources.

Sample code
// Create client
MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync();
// Initialize request argument(s)
MapConfigName parent = MapConfigName.FromProjectMapConfig("[PROJECT]", "[MAP_CONFIG]");
// Make the request
PagedAsyncEnumerable<ListMapContextConfigsResponse, MapContextConfig> response = mapManagementClient.ListMapContextConfigsAsync(parent);

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

ListMapContextConfigsAsync(string, string, int?, CallSettings)

Lists MapContextConfigs.

Declaration
public virtual PagedAsyncEnumerable<ListMapContextConfigsResponse, MapContextConfig> ListMapContextConfigsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. Parent MapConfig that owns the MapContextConfigs. Format: projects/{project}/mapConfigs/{map_config}

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<ListMapContextConfigsResponse, MapContextConfig>

A pageable asynchronous sequence of MapContextConfig resources.

Sample code
// Create client
MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/mapConfigs/[MAP_CONFIG]";
// Make the request
PagedAsyncEnumerable<ListMapContextConfigsResponse, MapContextConfig> response = mapManagementClient.ListMapContextConfigsAsync(parent);

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

ListStyleConfigs(ProjectName, string, int?, CallSettings)

Lists StyleConfigs.

Declaration
public virtual PagedEnumerable<ListStyleConfigsResponse, StyleConfig> ListStyleConfigs(ProjectName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
Type Name Description
ProjectName parent

Required. Parent project that owns the StyleConfigs. Format: projects/{project}

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<ListStyleConfigsResponse, StyleConfig>

A pageable sequence of StyleConfig resources.

Sample code
// Create client
MapManagementClient mapManagementClient = MapManagementClient.Create();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
// Make the request
PagedEnumerable<ListStyleConfigsResponse, StyleConfig> response = mapManagementClient.ListStyleConfigs(parent);

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

ListStyleConfigs(ListStyleConfigsRequest, CallSettings)

Lists StyleConfigs.

Declaration
public virtual PagedEnumerable<ListStyleConfigsResponse, StyleConfig> ListStyleConfigs(ListStyleConfigsRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
ListStyleConfigsRequest 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<ListStyleConfigsResponse, StyleConfig>

A pageable sequence of StyleConfig resources.

Sample code
// Create client
MapManagementClient mapManagementClient = MapManagementClient.Create();
// Initialize request argument(s)
ListStyleConfigsRequest request = new ListStyleConfigsRequest
{
    ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
    Filter = "",
    View = StyleConfigView.Unspecified,
};
// Make the request
PagedEnumerable<ListStyleConfigsResponse, StyleConfig> response = mapManagementClient.ListStyleConfigs(request);

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

ListStyleConfigs(string, string, int?, CallSettings)

Lists StyleConfigs.

Declaration
public virtual PagedEnumerable<ListStyleConfigsResponse, StyleConfig> ListStyleConfigs(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. Parent project that owns the StyleConfigs. Format: projects/{project}

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<ListStyleConfigsResponse, StyleConfig>

A pageable sequence of StyleConfig resources.

Sample code
// Create client
MapManagementClient mapManagementClient = MapManagementClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]";
// Make the request
PagedEnumerable<ListStyleConfigsResponse, StyleConfig> response = mapManagementClient.ListStyleConfigs(parent);

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

ListStyleConfigsAsync(ProjectName, string, int?, CallSettings)

Lists StyleConfigs.

Declaration
public virtual PagedAsyncEnumerable<ListStyleConfigsResponse, StyleConfig> ListStyleConfigsAsync(ProjectName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
Type Name Description
ProjectName parent

Required. Parent project that owns the StyleConfigs. Format: projects/{project}

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<ListStyleConfigsResponse, StyleConfig>

A pageable asynchronous sequence of StyleConfig resources.

Sample code
// Create client
MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
// Make the request
PagedAsyncEnumerable<ListStyleConfigsResponse, StyleConfig> response = mapManagementClient.ListStyleConfigsAsync(parent);

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

ListStyleConfigsAsync(ListStyleConfigsRequest, CallSettings)

Lists StyleConfigs.

Declaration
public virtual PagedAsyncEnumerable<ListStyleConfigsResponse, StyleConfig> ListStyleConfigsAsync(ListStyleConfigsRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
ListStyleConfigsRequest 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<ListStyleConfigsResponse, StyleConfig>

A pageable asynchronous sequence of StyleConfig resources.

Sample code
// Create client
MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync();
// Initialize request argument(s)
ListStyleConfigsRequest request = new ListStyleConfigsRequest
{
    ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
    Filter = "",
    View = StyleConfigView.Unspecified,
};
// Make the request
PagedAsyncEnumerable<ListStyleConfigsResponse, StyleConfig> response = mapManagementClient.ListStyleConfigsAsync(request);

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

ListStyleConfigsAsync(string, string, int?, CallSettings)

Lists StyleConfigs.

Declaration
public virtual PagedAsyncEnumerable<ListStyleConfigsResponse, StyleConfig> ListStyleConfigsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. Parent project that owns the StyleConfigs. Format: projects/{project}

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<ListStyleConfigsResponse, StyleConfig>

A pageable asynchronous sequence of StyleConfig resources.

Sample code
// Create client
MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]";
// Make the request
PagedAsyncEnumerable<ListStyleConfigsResponse, StyleConfig> response = mapManagementClient.ListStyleConfigsAsync(parent);

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

UpdateMapConfig(MapConfig, FieldMask, CallSettings)

Updates a MapConfig.

Declaration
public virtual MapConfig UpdateMapConfig(MapConfig mapConfig, FieldMask updateMask, CallSettings callSettings = null)
Parameters
Type Name Description
MapConfig mapConfig

Required. The MapConfig to update.

The MapConfig's name field is used to identify the MapConfig to update. Format: projects/{project}/mapConfigs/{map_config}

FieldMask updateMask

Optional. The specific field to update for the MapConfig. If not specified, the MapConfig will be updated in its entirety. Valid fields are:

  • display_name
  • description
  • map_features
CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
MapConfig

The RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = MapManagementClient.Create();
// Initialize request argument(s)
MapConfig mapConfig = new MapConfig();
FieldMask updateMask = new FieldMask();
// Make the request
MapConfig response = mapManagementClient.UpdateMapConfig(mapConfig, updateMask);

UpdateMapConfig(UpdateMapConfigRequest, CallSettings)

Updates a MapConfig.

Declaration
public virtual MapConfig UpdateMapConfig(UpdateMapConfigRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
UpdateMapConfigRequest 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
MapConfig

The RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = MapManagementClient.Create();
// Initialize request argument(s)
UpdateMapConfigRequest request = new UpdateMapConfigRequest
{
    MapConfig = new MapConfig(),
    UpdateMask = new FieldMask(),
};
// Make the request
MapConfig response = mapManagementClient.UpdateMapConfig(request);

UpdateMapConfigAsync(MapConfig, FieldMask, CallSettings)

Updates a MapConfig.

Declaration
public virtual Task<MapConfig> UpdateMapConfigAsync(MapConfig mapConfig, FieldMask updateMask, CallSettings callSettings = null)
Parameters
Type Name Description
MapConfig mapConfig

Required. The MapConfig to update.

The MapConfig's name field is used to identify the MapConfig to update. Format: projects/{project}/mapConfigs/{map_config}

FieldMask updateMask

Optional. The specific field to update for the MapConfig. If not specified, the MapConfig will be updated in its entirety. Valid fields are:

  • display_name
  • description
  • map_features
CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<MapConfig>

A Task containing the RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync();
// Initialize request argument(s)
MapConfig mapConfig = new MapConfig();
FieldMask updateMask = new FieldMask();
// Make the request
MapConfig response = await mapManagementClient.UpdateMapConfigAsync(mapConfig, updateMask);

UpdateMapConfigAsync(MapConfig, FieldMask, CancellationToken)

Updates a MapConfig.

Declaration
public virtual Task<MapConfig> UpdateMapConfigAsync(MapConfig mapConfig, FieldMask updateMask, CancellationToken cancellationToken)
Parameters
Type Name Description
MapConfig mapConfig

Required. The MapConfig to update.

The MapConfig's name field is used to identify the MapConfig to update. Format: projects/{project}/mapConfigs/{map_config}

FieldMask updateMask

Optional. The specific field to update for the MapConfig. If not specified, the MapConfig will be updated in its entirety. Valid fields are:

  • display_name
  • description
  • map_features
CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<MapConfig>

A Task containing the RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync();
// Initialize request argument(s)
MapConfig mapConfig = new MapConfig();
FieldMask updateMask = new FieldMask();
// Make the request
MapConfig response = await mapManagementClient.UpdateMapConfigAsync(mapConfig, updateMask);

UpdateMapConfigAsync(UpdateMapConfigRequest, CallSettings)

Updates a MapConfig.

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

A Task containing the RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync();
// Initialize request argument(s)
UpdateMapConfigRequest request = new UpdateMapConfigRequest
{
    MapConfig = new MapConfig(),
    UpdateMask = new FieldMask(),
};
// Make the request
MapConfig response = await mapManagementClient.UpdateMapConfigAsync(request);

UpdateMapConfigAsync(UpdateMapConfigRequest, CancellationToken)

Updates a MapConfig.

Declaration
public virtual Task<MapConfig> UpdateMapConfigAsync(UpdateMapConfigRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
UpdateMapConfigRequest 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<MapConfig>

A Task containing the RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync();
// Initialize request argument(s)
UpdateMapConfigRequest request = new UpdateMapConfigRequest
{
    MapConfig = new MapConfig(),
    UpdateMask = new FieldMask(),
};
// Make the request
MapConfig response = await mapManagementClient.UpdateMapConfigAsync(request);

UpdateMapContextConfig(MapContextConfig, FieldMask, CallSettings)

Updates a MapContextConfig.

Declaration
public virtual MapContextConfig UpdateMapContextConfig(MapContextConfig mapContextConfig, FieldMask updateMask, CallSettings callSettings = null)
Parameters
Type Name Description
MapContextConfig mapContextConfig

Required. The MapContextConfig to update.

The MapContextConfig's name field is used to identify the MapContextConfig to update. Format: projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}

FieldMask updateMask

Optional. The list of fields to update. If not specified, the MapContextConfig will be updated in its entirety. Valid fields are:

  • display_name
  • alias
  • map_variants
  • style_config
  • dataset
CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
MapContextConfig

The RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = MapManagementClient.Create();
// Initialize request argument(s)
MapContextConfig mapContextConfig = new MapContextConfig();
FieldMask updateMask = new FieldMask();
// Make the request
MapContextConfig response = mapManagementClient.UpdateMapContextConfig(mapContextConfig, updateMask);

UpdateMapContextConfig(UpdateMapContextConfigRequest, CallSettings)

Updates a MapContextConfig.

Declaration
public virtual MapContextConfig UpdateMapContextConfig(UpdateMapContextConfigRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
UpdateMapContextConfigRequest 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
MapContextConfig

The RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = MapManagementClient.Create();
// Initialize request argument(s)
UpdateMapContextConfigRequest request = new UpdateMapContextConfigRequest
{
    MapContextConfig = new MapContextConfig(),
    UpdateMask = new FieldMask(),
};
// Make the request
MapContextConfig response = mapManagementClient.UpdateMapContextConfig(request);

UpdateMapContextConfigAsync(MapContextConfig, FieldMask, CallSettings)

Updates a MapContextConfig.

Declaration
public virtual Task<MapContextConfig> UpdateMapContextConfigAsync(MapContextConfig mapContextConfig, FieldMask updateMask, CallSettings callSettings = null)
Parameters
Type Name Description
MapContextConfig mapContextConfig

Required. The MapContextConfig to update.

The MapContextConfig's name field is used to identify the MapContextConfig to update. Format: projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}

FieldMask updateMask

Optional. The list of fields to update. If not specified, the MapContextConfig will be updated in its entirety. Valid fields are:

  • display_name
  • alias
  • map_variants
  • style_config
  • dataset
CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<MapContextConfig>

A Task containing the RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync();
// Initialize request argument(s)
MapContextConfig mapContextConfig = new MapContextConfig();
FieldMask updateMask = new FieldMask();
// Make the request
MapContextConfig response = await mapManagementClient.UpdateMapContextConfigAsync(mapContextConfig, updateMask);

UpdateMapContextConfigAsync(MapContextConfig, FieldMask, CancellationToken)

Updates a MapContextConfig.

Declaration
public virtual Task<MapContextConfig> UpdateMapContextConfigAsync(MapContextConfig mapContextConfig, FieldMask updateMask, CancellationToken cancellationToken)
Parameters
Type Name Description
MapContextConfig mapContextConfig

Required. The MapContextConfig to update.

The MapContextConfig's name field is used to identify the MapContextConfig to update. Format: projects/{project}/mapConfigs/{map_config}/mapContextConfigs/{map_context_config}

FieldMask updateMask

Optional. The list of fields to update. If not specified, the MapContextConfig will be updated in its entirety. Valid fields are:

  • display_name
  • alias
  • map_variants
  • style_config
  • dataset
CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<MapContextConfig>

A Task containing the RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync();
// Initialize request argument(s)
MapContextConfig mapContextConfig = new MapContextConfig();
FieldMask updateMask = new FieldMask();
// Make the request
MapContextConfig response = await mapManagementClient.UpdateMapContextConfigAsync(mapContextConfig, updateMask);

UpdateMapContextConfigAsync(UpdateMapContextConfigRequest, CallSettings)

Updates a MapContextConfig.

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

A Task containing the RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync();
// Initialize request argument(s)
UpdateMapContextConfigRequest request = new UpdateMapContextConfigRequest
{
    MapContextConfig = new MapContextConfig(),
    UpdateMask = new FieldMask(),
};
// Make the request
MapContextConfig response = await mapManagementClient.UpdateMapContextConfigAsync(request);

UpdateMapContextConfigAsync(UpdateMapContextConfigRequest, CancellationToken)

Updates a MapContextConfig.

Declaration
public virtual Task<MapContextConfig> UpdateMapContextConfigAsync(UpdateMapContextConfigRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
UpdateMapContextConfigRequest 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<MapContextConfig>

A Task containing the RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync();
// Initialize request argument(s)
UpdateMapContextConfigRequest request = new UpdateMapContextConfigRequest
{
    MapContextConfig = new MapContextConfig(),
    UpdateMask = new FieldMask(),
};
// Make the request
MapContextConfig response = await mapManagementClient.UpdateMapContextConfigAsync(request);

UpdateStyleConfig(StyleConfig, FieldMask, CallSettings)

Updates a StyleConfig.

Declaration
public virtual StyleConfig UpdateStyleConfig(StyleConfig styleConfig, FieldMask updateMask, CallSettings callSettings = null)
Parameters
Type Name Description
StyleConfig styleConfig

Required. The StyleConfig to update.

The StyleConfig's name field is used to identify the StyleConfig to update. Format: projects/{project}/styleConfigs/{style_config}

FieldMask updateMask

Optional. The list of fields to update. If not specified, the StyleConfig will be updated in its entirety. Valid fields are:

  • display_name
  • description
  • json_style_sheet
CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
StyleConfig

The RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = MapManagementClient.Create();
// Initialize request argument(s)
StyleConfig styleConfig = new StyleConfig();
FieldMask updateMask = new FieldMask();
// Make the request
StyleConfig response = mapManagementClient.UpdateStyleConfig(styleConfig, updateMask);

UpdateStyleConfig(UpdateStyleConfigRequest, CallSettings)

Updates a StyleConfig.

Declaration
public virtual StyleConfig UpdateStyleConfig(UpdateStyleConfigRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
UpdateStyleConfigRequest 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
StyleConfig

The RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = MapManagementClient.Create();
// Initialize request argument(s)
UpdateStyleConfigRequest request = new UpdateStyleConfigRequest
{
    StyleConfig = new StyleConfig(),
    UpdateMask = new FieldMask(),
};
// Make the request
StyleConfig response = mapManagementClient.UpdateStyleConfig(request);

UpdateStyleConfigAsync(StyleConfig, FieldMask, CallSettings)

Updates a StyleConfig.

Declaration
public virtual Task<StyleConfig> UpdateStyleConfigAsync(StyleConfig styleConfig, FieldMask updateMask, CallSettings callSettings = null)
Parameters
Type Name Description
StyleConfig styleConfig

Required. The StyleConfig to update.

The StyleConfig's name field is used to identify the StyleConfig to update. Format: projects/{project}/styleConfigs/{style_config}

FieldMask updateMask

Optional. The list of fields to update. If not specified, the StyleConfig will be updated in its entirety. Valid fields are:

  • display_name
  • description
  • json_style_sheet
CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<StyleConfig>

A Task containing the RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync();
// Initialize request argument(s)
StyleConfig styleConfig = new StyleConfig();
FieldMask updateMask = new FieldMask();
// Make the request
StyleConfig response = await mapManagementClient.UpdateStyleConfigAsync(styleConfig, updateMask);

UpdateStyleConfigAsync(StyleConfig, FieldMask, CancellationToken)

Updates a StyleConfig.

Declaration
public virtual Task<StyleConfig> UpdateStyleConfigAsync(StyleConfig styleConfig, FieldMask updateMask, CancellationToken cancellationToken)
Parameters
Type Name Description
StyleConfig styleConfig

Required. The StyleConfig to update.

The StyleConfig's name field is used to identify the StyleConfig to update. Format: projects/{project}/styleConfigs/{style_config}

FieldMask updateMask

Optional. The list of fields to update. If not specified, the StyleConfig will be updated in its entirety. Valid fields are:

  • display_name
  • description
  • json_style_sheet
CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<StyleConfig>

A Task containing the RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync();
// Initialize request argument(s)
StyleConfig styleConfig = new StyleConfig();
FieldMask updateMask = new FieldMask();
// Make the request
StyleConfig response = await mapManagementClient.UpdateStyleConfigAsync(styleConfig, updateMask);

UpdateStyleConfigAsync(UpdateStyleConfigRequest, CallSettings)

Updates a StyleConfig.

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

A Task containing the RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync();
// Initialize request argument(s)
UpdateStyleConfigRequest request = new UpdateStyleConfigRequest
{
    StyleConfig = new StyleConfig(),
    UpdateMask = new FieldMask(),
};
// Make the request
StyleConfig response = await mapManagementClient.UpdateStyleConfigAsync(request);

UpdateStyleConfigAsync(UpdateStyleConfigRequest, CancellationToken)

Updates a StyleConfig.

Declaration
public virtual Task<StyleConfig> UpdateStyleConfigAsync(UpdateStyleConfigRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
UpdateStyleConfigRequest 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<StyleConfig>

A Task containing the RPC response.

Sample code
// Create client
MapManagementClient mapManagementClient = await MapManagementClient.CreateAsync();
// Initialize request argument(s)
UpdateStyleConfigRequest request = new UpdateStyleConfigRequest
{
    StyleConfig = new StyleConfig(),
    UpdateMask = new FieldMask(),
};
// Make the request
StyleConfig response = await mapManagementClient.UpdateStyleConfigAsync(request);
In this article
Back to top Generated by DocFX