# Google Cloud Monitoring v3 API - Class ServiceMonitoringServiceClient (3.16.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [3.16.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceMonitoringServiceClient)
- [3.15.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.15.0/Google.Cloud.Monitoring.V3.ServiceMonitoringServiceClient)
- [3.14.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.14.0/Google.Cloud.Monitoring.V3.ServiceMonitoringServiceClient)
- [3.13.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.13.0/Google.Cloud.Monitoring.V3.ServiceMonitoringServiceClient)
- [3.12.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.12.0/Google.Cloud.Monitoring.V3.ServiceMonitoringServiceClient)
- [3.11.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.11.0/Google.Cloud.Monitoring.V3.ServiceMonitoringServiceClient)
- [3.10.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.10.0/Google.Cloud.Monitoring.V3.ServiceMonitoringServiceClient)
- [3.9.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.9.0/Google.Cloud.Monitoring.V3.ServiceMonitoringServiceClient)
- [3.8.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.8.0/Google.Cloud.Monitoring.V3.ServiceMonitoringServiceClient)
- [3.7.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.7.0/Google.Cloud.Monitoring.V3.ServiceMonitoringServiceClient)
- [3.6.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.6.0/Google.Cloud.Monitoring.V3.ServiceMonitoringServiceClient)
- [3.5.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.5.0/Google.Cloud.Monitoring.V3.ServiceMonitoringServiceClient)
- [3.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.4.0/Google.Cloud.Monitoring.V3.ServiceMonitoringServiceClient)
- [3.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.3.0/Google.Cloud.Monitoring.V3.ServiceMonitoringServiceClient)
- [3.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.2.0/Google.Cloud.Monitoring.V3.ServiceMonitoringServiceClient)
- [3.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.1.0/Google.Cloud.Monitoring.V3.ServiceMonitoringServiceClient)
- [3.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.0.0/Google.Cloud.Monitoring.V3.ServiceMonitoringServiceClient)
- [2.6.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/2.6.0/Google.Cloud.Monitoring.V3.ServiceMonitoringServiceClient)
- [2.5.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/2.5.0/Google.Cloud.Monitoring.V3.ServiceMonitoringServiceClient)
- [2.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/2.4.0/Google.Cloud.Monitoring.V3.ServiceMonitoringServiceClient)
- [2.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/2.3.0/Google.Cloud.Monitoring.V3.ServiceMonitoringServiceClient)

    public abstract class ServiceMonitoringServiceClient

Reference documentation and code samples for the Google Cloud Monitoring v3 API class ServiceMonitoringServiceClient.

ServiceMonitoringService client wrapper, for convenient use.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> ServiceMonitoringServiceClient

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Derived Types

[ServiceMonitoringServiceClientImpl](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceMonitoringServiceClientImpl)

## Namespace

[Google.Cloud.Monitoring.V3](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3)

## Assembly

Google.Cloud.Monitoring.V3.dll

## Remarks

The Cloud Monitoring Service-Oriented Monitoring API has endpoints for
managing and querying aspects of a Metrics Scope's services. These include
the `Service`'s monitored resources, its Service-Level Objectives, and a
taxonomy of categorized Health Metrics.

## Properties

### DefaultEndpoint

    public static string DefaultEndpoint { get; }

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### DefaultScopes

    public static IReadOnlyList<string> DefaultScopes { get; }

The default ServiceMonitoringService scopes.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlylist-1https://learn.microsoft.com/dotnet/api/system.string` |   |

**Remarks** The default ServiceMonitoringService scopes are:

- <https://www.googleapis.com/auth/cloud-platform>
- <https://www.googleapis.com/auth/monitoring>
- <https://www.googleapis.com/auth/monitoring.read>

<br />

### GrpcClient

    public virtual ServiceMonitoringService.ServiceMonitoringServiceClient GrpcClient { get; }

The underlying gRPC ServiceMonitoringService client

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceMonitoringServicehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceMonitoringService.ServiceMonitoringServiceClient` |   |

### ServiceMetadata

    public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.ServiceMetadata.html` |   |

## Methods

### Create()

    public static ServiceMonitoringServiceClient Create()

Synchronously creates a [ServiceMonitoringServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceMonitoringServiceClient) using the default credentials, endpoint
and settings. To specify custom credentials or other settings, use
[ServiceMonitoringServiceClientBuilder](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceMonitoringServiceClientBuilder).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceMonitoringServiceClient` | The created [ServiceMonitoringServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceMonitoringServiceClient). |

### CreateAsync(CancellationToken)

    public static Task<ServiceMonitoringServiceClient> CreateAsync(CancellationToken cancellationToken = default)

Asynchronously creates a [ServiceMonitoringServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceMonitoringServiceClient) using the default credentials,
endpoint and settings. To specify custom credentials or other settings, use
[ServiceMonitoringServiceClientBuilder](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceMonitoringServiceClientBuilder).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` The [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use while creating the client. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceMonitoringServiceClient` | The task representing the created [ServiceMonitoringServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceMonitoringServiceClient). |

### CreateService(IResourceName, Service, CallSettings)

    public virtual Service CreateService(IResourceName parent, Service service, CallSettings callSettings = null)

Create a `Service`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.IResourceName.html` Required. Resource [name](https://cloud.google.com/monitoring/api/v3#project_name) of the parent Metrics Scope. The format is: projects/\[PROJECT_ID_OR_NUMBER\] |
| `service` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service` Required. The `Service` to create. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service` | The RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = ServiceMonitoringServiceClient.Create();
    // Initialize request argument(s)
    IResourceName parent = new UnparsedResourceName("a/wildcard/resource");
    Service service = new Service();
    // Make the request
    Service response = serviceMonitoringServiceClient.CreateService(parent, service);

### CreateService(FolderName, Service, CallSettings)

    public virtual Service CreateService(FolderName parent, Service service, CallSettings callSettings = null)

Create a `Service`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.FolderName.html` Required. Resource [name](https://cloud.google.com/monitoring/api/v3#project_name) of the parent Metrics Scope. The format is: projects/\[PROJECT_ID_OR_NUMBER\] |
| `service` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service` Required. The `Service` to create. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service` | The RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = ServiceMonitoringServiceClient.Create();
    // Initialize request argument(s)
    FolderName parent = FolderName.FromFolder("[FOLDER]");
    Service service = new Service();
    // Make the request
    Service response = serviceMonitoringServiceClient.CreateService(parent, service);

### CreateService(OrganizationName, Service, CallSettings)

    public virtual Service CreateService(OrganizationName parent, Service service, CallSettings callSettings = null)

Create a `Service`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.OrganizationName.html` Required. Resource [name](https://cloud.google.com/monitoring/api/v3#project_name) of the parent Metrics Scope. The format is: projects/\[PROJECT_ID_OR_NUMBER\] |
| `service` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service` Required. The `Service` to create. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service` | The RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = ServiceMonitoringServiceClient.Create();
    // Initialize request argument(s)
    OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
    Service service = new Service();
    // Make the request
    Service response = serviceMonitoringServiceClient.CreateService(parent, service);

### CreateService(ProjectName, Service, CallSettings)

    public virtual Service CreateService(ProjectName parent, Service service, CallSettings callSettings = null)

Create a `Service`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.ProjectName.html` Required. Resource [name](https://cloud.google.com/monitoring/api/v3#project_name) of the parent Metrics Scope. The format is: projects/\[PROJECT_ID_OR_NUMBER\] |
| `service` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service` Required. The `Service` to create. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service` | The RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = ServiceMonitoringServiceClient.Create();
    // Initialize request argument(s)
    ProjectName parent = ProjectName.FromProject("[PROJECT]");
    Service service = new Service();
    // Make the request
    Service response = serviceMonitoringServiceClient.CreateService(parent, service);

### CreateService(CreateServiceRequest, CallSettings)

    public virtual Service CreateService(CreateServiceRequest request, CallSettings callSettings = null)

Create a `Service`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.CreateServiceRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service` | The RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = ServiceMonitoringServiceClient.Create();
    // Initialize request argument(s)
    CreateServiceRequest request = new CreateServiceRequest
    {
        ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
        Service = new Service(),
        ServiceId = "",
    };
    // Make the request
    Service response = serviceMonitoringServiceClient.CreateService(request);

### CreateService(string, Service, CallSettings)

    public virtual Service CreateService(string parent, Service service, CallSettings callSettings = null)

Create a `Service`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Resource [name](https://cloud.google.com/monitoring/api/v3#project_name) of the parent Metrics Scope. The format is: projects/\[PROJECT_ID_OR_NUMBER\] |
| `service` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service` Required. The `Service` to create. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service` | The RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = ServiceMonitoringServiceClient.Create();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]";
    Service service = new Service();
    // Make the request
    Service response = serviceMonitoringServiceClient.CreateService(parent, service);

### CreateServiceAsync(IResourceName, Service, CallSettings)

    public virtual Task<Service> CreateServiceAsync(IResourceName parent, Service service, CallSettings callSettings = null)

Create a `Service`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.IResourceName.html` Required. Resource [name](https://cloud.google.com/monitoring/api/v3#project_name) of the parent Metrics Scope. The format is: projects/\[PROJECT_ID_OR_NUMBER\] |
| `service` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service` Required. The `Service` to create. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service` | A Task containing the RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
    // Initialize request argument(s)
    IResourceName parent = new UnparsedResourceName("a/wildcard/resource");
    Service service = new Service();
    // Make the request
    Service response = await serviceMonitoringServiceClient.CreateServiceAsync(parent, service);

### CreateServiceAsync(IResourceName, Service, CancellationToken)

    public virtual Task<Service> CreateServiceAsync(IResourceName parent, Service service, CancellationToken cancellationToken)

Create a `Service`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.IResourceName.html` Required. Resource [name](https://cloud.google.com/monitoring/api/v3#project_name) of the parent Metrics Scope. The format is: projects/\[PROJECT_ID_OR_NUMBER\] |
| `service` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service` Required. The `Service` to create. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service` | A Task containing the RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
    // Initialize request argument(s)
    IResourceName parent = new UnparsedResourceName("a/wildcard/resource");
    Service service = new Service();
    // Make the request
    Service response = await serviceMonitoringServiceClient.CreateServiceAsync(parent, service);

### CreateServiceAsync(FolderName, Service, CallSettings)

    public virtual Task<Service> CreateServiceAsync(FolderName parent, Service service, CallSettings callSettings = null)

Create a `Service`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.FolderName.html` Required. Resource [name](https://cloud.google.com/monitoring/api/v3#project_name) of the parent Metrics Scope. The format is: projects/\[PROJECT_ID_OR_NUMBER\] |
| `service` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service` Required. The `Service` to create. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service` | A Task containing the RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
    // Initialize request argument(s)
    FolderName parent = FolderName.FromFolder("[FOLDER]");
    Service service = new Service();
    // Make the request
    Service response = await serviceMonitoringServiceClient.CreateServiceAsync(parent, service);

### CreateServiceAsync(FolderName, Service, CancellationToken)

    public virtual Task<Service> CreateServiceAsync(FolderName parent, Service service, CancellationToken cancellationToken)

Create a `Service`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.FolderName.html` Required. Resource [name](https://cloud.google.com/monitoring/api/v3#project_name) of the parent Metrics Scope. The format is: projects/\[PROJECT_ID_OR_NUMBER\] |
| `service` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service` Required. The `Service` to create. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service` | A Task containing the RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
    // Initialize request argument(s)
    FolderName parent = FolderName.FromFolder("[FOLDER]");
    Service service = new Service();
    // Make the request
    Service response = await serviceMonitoringServiceClient.CreateServiceAsync(parent, service);

### CreateServiceAsync(OrganizationName, Service, CallSettings)

    public virtual Task<Service> CreateServiceAsync(OrganizationName parent, Service service, CallSettings callSettings = null)

Create a `Service`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.OrganizationName.html` Required. Resource [name](https://cloud.google.com/monitoring/api/v3#project_name) of the parent Metrics Scope. The format is: projects/\[PROJECT_ID_OR_NUMBER\] |
| `service` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service` Required. The `Service` to create. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service` | A Task containing the RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
    // Initialize request argument(s)
    OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
    Service service = new Service();
    // Make the request
    Service response = await serviceMonitoringServiceClient.CreateServiceAsync(parent, service);

### CreateServiceAsync(OrganizationName, Service, CancellationToken)

    public virtual Task<Service> CreateServiceAsync(OrganizationName parent, Service service, CancellationToken cancellationToken)

Create a `Service`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.OrganizationName.html` Required. Resource [name](https://cloud.google.com/monitoring/api/v3#project_name) of the parent Metrics Scope. The format is: projects/\[PROJECT_ID_OR_NUMBER\] |
| `service` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service` Required. The `Service` to create. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service` | A Task containing the RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
    // Initialize request argument(s)
    OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
    Service service = new Service();
    // Make the request
    Service response = await serviceMonitoringServiceClient.CreateServiceAsync(parent, service);

### CreateServiceAsync(ProjectName, Service, CallSettings)

    public virtual Task<Service> CreateServiceAsync(ProjectName parent, Service service, CallSettings callSettings = null)

Create a `Service`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.ProjectName.html` Required. Resource [name](https://cloud.google.com/monitoring/api/v3#project_name) of the parent Metrics Scope. The format is: projects/\[PROJECT_ID_OR_NUMBER\] |
| `service` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service` Required. The `Service` to create. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service` | A Task containing the RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
    // Initialize request argument(s)
    ProjectName parent = ProjectName.FromProject("[PROJECT]");
    Service service = new Service();
    // Make the request
    Service response = await serviceMonitoringServiceClient.CreateServiceAsync(parent, service);

### CreateServiceAsync(ProjectName, Service, CancellationToken)

    public virtual Task<Service> CreateServiceAsync(ProjectName parent, Service service, CancellationToken cancellationToken)

Create a `Service`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.ProjectName.html` Required. Resource [name](https://cloud.google.com/monitoring/api/v3#project_name) of the parent Metrics Scope. The format is: projects/\[PROJECT_ID_OR_NUMBER\] |
| `service` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service` Required. The `Service` to create. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service` | A Task containing the RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
    // Initialize request argument(s)
    ProjectName parent = ProjectName.FromProject("[PROJECT]");
    Service service = new Service();
    // Make the request
    Service response = await serviceMonitoringServiceClient.CreateServiceAsync(parent, service);

### CreateServiceAsync(CreateServiceRequest, CallSettings)

    public virtual Task<Service> CreateServiceAsync(CreateServiceRequest request, CallSettings callSettings = null)

Create a `Service`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.CreateServiceRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service` | A Task containing the RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
    // Initialize request argument(s)
    CreateServiceRequest request = new CreateServiceRequest
    {
        ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
        Service = new Service(),
        ServiceId = "",
    };
    // Make the request
    Service response = await serviceMonitoringServiceClient.CreateServiceAsync(request);

### CreateServiceAsync(CreateServiceRequest, CancellationToken)

    public virtual Task<Service> CreateServiceAsync(CreateServiceRequest request, CancellationToken cancellationToken)

Create a `Service`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.CreateServiceRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service` | A Task containing the RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
    // Initialize request argument(s)
    CreateServiceRequest request = new CreateServiceRequest
    {
        ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
        Service = new Service(),
        ServiceId = "",
    };
    // Make the request
    Service response = await serviceMonitoringServiceClient.CreateServiceAsync(request);

### CreateServiceAsync(string, Service, CallSettings)

    public virtual Task<Service> CreateServiceAsync(string parent, Service service, CallSettings callSettings = null)

Create a `Service`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Resource [name](https://cloud.google.com/monitoring/api/v3#project_name) of the parent Metrics Scope. The format is: projects/\[PROJECT_ID_OR_NUMBER\] |
| `service` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service` Required. The `Service` to create. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service` | A Task containing the RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]";
    Service service = new Service();
    // Make the request
    Service response = await serviceMonitoringServiceClient.CreateServiceAsync(parent, service);

### CreateServiceAsync(string, Service, CancellationToken)

    public virtual Task<Service> CreateServiceAsync(string parent, Service service, CancellationToken cancellationToken)

Create a `Service`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Resource [name](https://cloud.google.com/monitoring/api/v3#project_name) of the parent Metrics Scope. The format is: projects/\[PROJECT_ID_OR_NUMBER\] |
| `service` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service` Required. The `Service` to create. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service` | A Task containing the RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]";
    Service service = new Service();
    // Make the request
    Service response = await serviceMonitoringServiceClient.CreateServiceAsync(parent, service);

### CreateServiceLevelObjective(IResourceName, ServiceLevelObjective, CallSettings)

    public virtual ServiceLevelObjective CreateServiceLevelObjective(IResourceName parent, ServiceLevelObjective serviceLevelObjective, CallSettings callSettings = null)

Create a `ServiceLevelObjective` for the given `Service`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.IResourceName.html` Required. Resource name of the parent `Service`. The format is: projects/\[PROJECT_ID_OR_NUMBER\]/services/\[SERVICE_ID\] |
| `serviceLevelObjective` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceLevelObjective` Required. The `ServiceLevelObjective` to create. The provided `name` will be respected if no `ServiceLevelObjective` exists with this name. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceLevelObjective` | The RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = ServiceMonitoringServiceClient.Create();
    // Initialize request argument(s)
    IResourceName parent = new UnparsedResourceName("a/wildcard/resource");
    ServiceLevelObjective serviceLevelObjective = new ServiceLevelObjective();
    // Make the request
    ServiceLevelObjective response = serviceMonitoringServiceClient.CreateServiceLevelObjective(parent, serviceLevelObjective);

### CreateServiceLevelObjective(CreateServiceLevelObjectiveRequest, CallSettings)

    public virtual ServiceLevelObjective CreateServiceLevelObjective(CreateServiceLevelObjectiveRequest request, CallSettings callSettings = null)

Create a `ServiceLevelObjective` for the given `Service`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.CreateServiceLevelObjectiveRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceLevelObjective` | The RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = ServiceMonitoringServiceClient.Create();
    // Initialize request argument(s)
    CreateServiceLevelObjectiveRequest request = new CreateServiceLevelObjectiveRequest
    {
        ParentAsServiceName = ServiceName.FromProjectService("[PROJECT]", "[SERVICE]"),
        ServiceLevelObjective = new ServiceLevelObjective(),
        ServiceLevelObjectiveId = "",
    };
    // Make the request
    ServiceLevelObjective response = serviceMonitoringServiceClient.CreateServiceLevelObjective(request);

### CreateServiceLevelObjective(ServiceName, ServiceLevelObjective, CallSettings)

    public virtual ServiceLevelObjective CreateServiceLevelObjective(ServiceName parent, ServiceLevelObjective serviceLevelObjective, CallSettings callSettings = null)

Create a `ServiceLevelObjective` for the given `Service`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceName` Required. Resource name of the parent `Service`. The format is: projects/\[PROJECT_ID_OR_NUMBER\]/services/\[SERVICE_ID\] |
| `serviceLevelObjective` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceLevelObjective` Required. The `ServiceLevelObjective` to create. The provided `name` will be respected if no `ServiceLevelObjective` exists with this name. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceLevelObjective` | The RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = ServiceMonitoringServiceClient.Create();
    // Initialize request argument(s)
    ServiceName parent = ServiceName.FromProjectService("[PROJECT]", "[SERVICE]");
    ServiceLevelObjective serviceLevelObjective = new ServiceLevelObjective();
    // Make the request
    ServiceLevelObjective response = serviceMonitoringServiceClient.CreateServiceLevelObjective(parent, serviceLevelObjective);

### CreateServiceLevelObjective(string, ServiceLevelObjective, CallSettings)

    public virtual ServiceLevelObjective CreateServiceLevelObjective(string parent, ServiceLevelObjective serviceLevelObjective, CallSettings callSettings = null)

Create a `ServiceLevelObjective` for the given `Service`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Resource name of the parent `Service`. The format is: projects/\[PROJECT_ID_OR_NUMBER\]/services/\[SERVICE_ID\] |
| `serviceLevelObjective` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceLevelObjective` Required. The `ServiceLevelObjective` to create. The provided `name` will be respected if no `ServiceLevelObjective` exists with this name. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceLevelObjective` | The RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = ServiceMonitoringServiceClient.Create();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/services/[SERVICE]";
    ServiceLevelObjective serviceLevelObjective = new ServiceLevelObjective();
    // Make the request
    ServiceLevelObjective response = serviceMonitoringServiceClient.CreateServiceLevelObjective(parent, serviceLevelObjective);

### CreateServiceLevelObjectiveAsync(IResourceName, ServiceLevelObjective, CallSettings)

    public virtual Task<ServiceLevelObjective> CreateServiceLevelObjectiveAsync(IResourceName parent, ServiceLevelObjective serviceLevelObjective, CallSettings callSettings = null)

Create a `ServiceLevelObjective` for the given `Service`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.IResourceName.html` Required. Resource name of the parent `Service`. The format is: projects/\[PROJECT_ID_OR_NUMBER\]/services/\[SERVICE_ID\] |
| `serviceLevelObjective` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceLevelObjective` Required. The `ServiceLevelObjective` to create. The provided `name` will be respected if no `ServiceLevelObjective` exists with this name. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceLevelObjective` | A Task containing the RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
    // Initialize request argument(s)
    IResourceName parent = new UnparsedResourceName("a/wildcard/resource");
    ServiceLevelObjective serviceLevelObjective = new ServiceLevelObjective();
    // Make the request
    ServiceLevelObjective response = await serviceMonitoringServiceClient.CreateServiceLevelObjectiveAsync(parent, serviceLevelObjective);

### CreateServiceLevelObjectiveAsync(IResourceName, ServiceLevelObjective, CancellationToken)

    public virtual Task<ServiceLevelObjective> CreateServiceLevelObjectiveAsync(IResourceName parent, ServiceLevelObjective serviceLevelObjective, CancellationToken cancellationToken)

Create a `ServiceLevelObjective` for the given `Service`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.IResourceName.html` Required. Resource name of the parent `Service`. The format is: projects/\[PROJECT_ID_OR_NUMBER\]/services/\[SERVICE_ID\] |
| `serviceLevelObjective` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceLevelObjective` Required. The `ServiceLevelObjective` to create. The provided `name` will be respected if no `ServiceLevelObjective` exists with this name. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceLevelObjective` | A Task containing the RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
    // Initialize request argument(s)
    IResourceName parent = new UnparsedResourceName("a/wildcard/resource");
    ServiceLevelObjective serviceLevelObjective = new ServiceLevelObjective();
    // Make the request
    ServiceLevelObjective response = await serviceMonitoringServiceClient.CreateServiceLevelObjectiveAsync(parent, serviceLevelObjective);

### CreateServiceLevelObjectiveAsync(CreateServiceLevelObjectiveRequest, CallSettings)

    public virtual Task<ServiceLevelObjective> CreateServiceLevelObjectiveAsync(CreateServiceLevelObjectiveRequest request, CallSettings callSettings = null)

Create a `ServiceLevelObjective` for the given `Service`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.CreateServiceLevelObjectiveRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceLevelObjective` | A Task containing the RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
    // Initialize request argument(s)
    CreateServiceLevelObjectiveRequest request = new CreateServiceLevelObjectiveRequest
    {
        ParentAsServiceName = ServiceName.FromProjectService("[PROJECT]", "[SERVICE]"),
        ServiceLevelObjective = new ServiceLevelObjective(),
        ServiceLevelObjectiveId = "",
    };
    // Make the request
    ServiceLevelObjective response = await serviceMonitoringServiceClient.CreateServiceLevelObjectiveAsync(request);

### CreateServiceLevelObjectiveAsync(CreateServiceLevelObjectiveRequest, CancellationToken)

    public virtual Task<ServiceLevelObjective> CreateServiceLevelObjectiveAsync(CreateServiceLevelObjectiveRequest request, CancellationToken cancellationToken)

Create a `ServiceLevelObjective` for the given `Service`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.CreateServiceLevelObjectiveRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceLevelObjective` | A Task containing the RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
    // Initialize request argument(s)
    CreateServiceLevelObjectiveRequest request = new CreateServiceLevelObjectiveRequest
    {
        ParentAsServiceName = ServiceName.FromProjectService("[PROJECT]", "[SERVICE]"),
        ServiceLevelObjective = new ServiceLevelObjective(),
        ServiceLevelObjectiveId = "",
    };
    // Make the request
    ServiceLevelObjective response = await serviceMonitoringServiceClient.CreateServiceLevelObjectiveAsync(request);

### CreateServiceLevelObjectiveAsync(ServiceName, ServiceLevelObjective, CallSettings)

    public virtual Task<ServiceLevelObjective> CreateServiceLevelObjectiveAsync(ServiceName parent, ServiceLevelObjective serviceLevelObjective, CallSettings callSettings = null)

Create a `ServiceLevelObjective` for the given `Service`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceName` Required. Resource name of the parent `Service`. The format is: projects/\[PROJECT_ID_OR_NUMBER\]/services/\[SERVICE_ID\] |
| `serviceLevelObjective` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceLevelObjective` Required. The `ServiceLevelObjective` to create. The provided `name` will be respected if no `ServiceLevelObjective` exists with this name. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceLevelObjective` | A Task containing the RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
    // Initialize request argument(s)
    ServiceName parent = ServiceName.FromProjectService("[PROJECT]", "[SERVICE]");
    ServiceLevelObjective serviceLevelObjective = new ServiceLevelObjective();
    // Make the request
    ServiceLevelObjective response = await serviceMonitoringServiceClient.CreateServiceLevelObjectiveAsync(parent, serviceLevelObjective);

### CreateServiceLevelObjectiveAsync(ServiceName, ServiceLevelObjective, CancellationToken)

    public virtual Task<ServiceLevelObjective> CreateServiceLevelObjectiveAsync(ServiceName parent, ServiceLevelObjective serviceLevelObjective, CancellationToken cancellationToken)

Create a `ServiceLevelObjective` for the given `Service`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceName` Required. Resource name of the parent `Service`. The format is: projects/\[PROJECT_ID_OR_NUMBER\]/services/\[SERVICE_ID\] |
| `serviceLevelObjective` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceLevelObjective` Required. The `ServiceLevelObjective` to create. The provided `name` will be respected if no `ServiceLevelObjective` exists with this name. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceLevelObjective` | A Task containing the RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
    // Initialize request argument(s)
    ServiceName parent = ServiceName.FromProjectService("[PROJECT]", "[SERVICE]");
    ServiceLevelObjective serviceLevelObjective = new ServiceLevelObjective();
    // Make the request
    ServiceLevelObjective response = await serviceMonitoringServiceClient.CreateServiceLevelObjectiveAsync(parent, serviceLevelObjective);

### CreateServiceLevelObjectiveAsync(string, ServiceLevelObjective, CallSettings)

    public virtual Task<ServiceLevelObjective> CreateServiceLevelObjectiveAsync(string parent, ServiceLevelObjective serviceLevelObjective, CallSettings callSettings = null)

Create a `ServiceLevelObjective` for the given `Service`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Resource name of the parent `Service`. The format is: projects/\[PROJECT_ID_OR_NUMBER\]/services/\[SERVICE_ID\] |
| `serviceLevelObjective` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceLevelObjective` Required. The `ServiceLevelObjective` to create. The provided `name` will be respected if no `ServiceLevelObjective` exists with this name. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceLevelObjective` | A Task containing the RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/services/[SERVICE]";
    ServiceLevelObjective serviceLevelObjective = new ServiceLevelObjective();
    // Make the request
    ServiceLevelObjective response = await serviceMonitoringServiceClient.CreateServiceLevelObjectiveAsync(parent, serviceLevelObjective);

### CreateServiceLevelObjectiveAsync(string, ServiceLevelObjective, CancellationToken)

    public virtual Task<ServiceLevelObjective> CreateServiceLevelObjectiveAsync(string parent, ServiceLevelObjective serviceLevelObjective, CancellationToken cancellationToken)

Create a `ServiceLevelObjective` for the given `Service`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Resource name of the parent `Service`. The format is: projects/\[PROJECT_ID_OR_NUMBER\]/services/\[SERVICE_ID\] |
| `serviceLevelObjective` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceLevelObjective` Required. The `ServiceLevelObjective` to create. The provided `name` will be respected if no `ServiceLevelObjective` exists with this name. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceLevelObjective` | A Task containing the RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/services/[SERVICE]";
    ServiceLevelObjective serviceLevelObjective = new ServiceLevelObjective();
    // Make the request
    ServiceLevelObjective response = await serviceMonitoringServiceClient.CreateServiceLevelObjectiveAsync(parent, serviceLevelObjective);

### DeleteService(IResourceName, CallSettings)

    public virtual void DeleteService(IResourceName name, CallSettings callSettings = null)

Soft delete this `Service`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.IResourceName.html` Required. Resource name of the `Service` to delete. The format is: projects/\[PROJECT_ID_OR_NUMBER\]/services/\[SERVICE_ID\] |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = ServiceMonitoringServiceClient.Create();
    // Initialize request argument(s)
    IResourceName name = new UnparsedResourceName("a/wildcard/resource");
    // Make the request
    serviceMonitoringServiceClient.DeleteService(name);

### DeleteService(DeleteServiceRequest, CallSettings)

    public virtual void DeleteService(DeleteServiceRequest request, CallSettings callSettings = null)

Soft delete this `Service`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.DeleteServiceRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = ServiceMonitoringServiceClient.Create();
    // Initialize request argument(s)
    DeleteServiceRequest request = new DeleteServiceRequest
    {
        ServiceName = ServiceName.FromProjectService("[PROJECT]", "[SERVICE]"),
    };
    // Make the request
    serviceMonitoringServiceClient.DeleteService(request);

### DeleteService(ServiceName, CallSettings)

    public virtual void DeleteService(ServiceName name, CallSettings callSettings = null)

Soft delete this `Service`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceName` Required. Resource name of the `Service` to delete. The format is: projects/\[PROJECT_ID_OR_NUMBER\]/services/\[SERVICE_ID\] |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = ServiceMonitoringServiceClient.Create();
    // Initialize request argument(s)
    ServiceName name = ServiceName.FromProjectService("[PROJECT]", "[SERVICE]");
    // Make the request
    serviceMonitoringServiceClient.DeleteService(name);

### DeleteService(string, CallSettings)

    public virtual void DeleteService(string name, CallSettings callSettings = null)

Soft delete this `Service`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Resource name of the `Service` to delete. The format is: projects/\[PROJECT_ID_OR_NUMBER\]/services/\[SERVICE_ID\] |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = ServiceMonitoringServiceClient.Create();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/services/[SERVICE]";
    // Make the request
    serviceMonitoringServiceClient.DeleteService(name);

### DeleteServiceAsync(IResourceName, CallSettings)

    public virtual Task DeleteServiceAsync(IResourceName name, CallSettings callSettings = null)

Soft delete this `Service`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.IResourceName.html` Required. Resource name of the `Service` to delete. The format is: projects/\[PROJECT_ID_OR_NUMBER\]/services/\[SERVICE_ID\] |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A Task containing the RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
    // Initialize request argument(s)
    IResourceName name = new UnparsedResourceName("a/wildcard/resource");
    // Make the request
    await serviceMonitoringServiceClient.DeleteServiceAsync(name);

### DeleteServiceAsync(IResourceName, CancellationToken)

    public virtual Task DeleteServiceAsync(IResourceName name, CancellationToken cancellationToken)

Soft delete this `Service`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.IResourceName.html` Required. Resource name of the `Service` to delete. The format is: projects/\[PROJECT_ID_OR_NUMBER\]/services/\[SERVICE_ID\] |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A Task containing the RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
    // Initialize request argument(s)
    IResourceName name = new UnparsedResourceName("a/wildcard/resource");
    // Make the request
    await serviceMonitoringServiceClient.DeleteServiceAsync(name);

### DeleteServiceAsync(DeleteServiceRequest, CallSettings)

    public virtual Task DeleteServiceAsync(DeleteServiceRequest request, CallSettings callSettings = null)

Soft delete this `Service`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.DeleteServiceRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A Task containing the RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
    // Initialize request argument(s)
    DeleteServiceRequest request = new DeleteServiceRequest
    {
        ServiceName = ServiceName.FromProjectService("[PROJECT]", "[SERVICE]"),
    };
    // Make the request
    await serviceMonitoringServiceClient.DeleteServiceAsync(request);

### DeleteServiceAsync(DeleteServiceRequest, CancellationToken)

    public virtual Task DeleteServiceAsync(DeleteServiceRequest request, CancellationToken cancellationToken)

Soft delete this `Service`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.DeleteServiceRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A Task containing the RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
    // Initialize request argument(s)
    DeleteServiceRequest request = new DeleteServiceRequest
    {
        ServiceName = ServiceName.FromProjectService("[PROJECT]", "[SERVICE]"),
    };
    // Make the request
    await serviceMonitoringServiceClient.DeleteServiceAsync(request);

### DeleteServiceAsync(ServiceName, CallSettings)

    public virtual Task DeleteServiceAsync(ServiceName name, CallSettings callSettings = null)

Soft delete this `Service`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceName` Required. Resource name of the `Service` to delete. The format is: projects/\[PROJECT_ID_OR_NUMBER\]/services/\[SERVICE_ID\] |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A Task containing the RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
    // Initialize request argument(s)
    ServiceName name = ServiceName.FromProjectService("[PROJECT]", "[SERVICE]");
    // Make the request
    await serviceMonitoringServiceClient.DeleteServiceAsync(name);

### DeleteServiceAsync(ServiceName, CancellationToken)

    public virtual Task DeleteServiceAsync(ServiceName name, CancellationToken cancellationToken)

Soft delete this `Service`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceName` Required. Resource name of the `Service` to delete. The format is: projects/\[PROJECT_ID_OR_NUMBER\]/services/\[SERVICE_ID\] |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A Task containing the RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
    // Initialize request argument(s)
    ServiceName name = ServiceName.FromProjectService("[PROJECT]", "[SERVICE]");
    // Make the request
    await serviceMonitoringServiceClient.DeleteServiceAsync(name);

### DeleteServiceAsync(string, CallSettings)

    public virtual Task DeleteServiceAsync(string name, CallSettings callSettings = null)

Soft delete this `Service`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Resource name of the `Service` to delete. The format is: projects/\[PROJECT_ID_OR_NUMBER\]/services/\[SERVICE_ID\] |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A Task containing the RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/services/[SERVICE]";
    // Make the request
    await serviceMonitoringServiceClient.DeleteServiceAsync(name);

### DeleteServiceAsync(string, CancellationToken)

    public virtual Task DeleteServiceAsync(string name, CancellationToken cancellationToken)

Soft delete this `Service`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Resource name of the `Service` to delete. The format is: projects/\[PROJECT_ID_OR_NUMBER\]/services/\[SERVICE_ID\] |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A Task containing the RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/services/[SERVICE]";
    // Make the request
    await serviceMonitoringServiceClient.DeleteServiceAsync(name);

### DeleteServiceLevelObjective(IResourceName, CallSettings)

    public virtual void DeleteServiceLevelObjective(IResourceName name, CallSettings callSettings = null)

Delete the given `ServiceLevelObjective`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.IResourceName.html` Required. Resource name of the `ServiceLevelObjective` to delete. The format is: projects/\[PROJECT_ID_OR_NUMBER\]/services/\[SERVICE_ID\]/serviceLevelObjectives/\[SLO_NAME\] |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = ServiceMonitoringServiceClient.Create();
    // Initialize request argument(s)
    IResourceName name = new UnparsedResourceName("a/wildcard/resource");
    // Make the request
    serviceMonitoringServiceClient.DeleteServiceLevelObjective(name);

### DeleteServiceLevelObjective(DeleteServiceLevelObjectiveRequest, CallSettings)

    public virtual void DeleteServiceLevelObjective(DeleteServiceLevelObjectiveRequest request, CallSettings callSettings = null)

Delete the given `ServiceLevelObjective`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.DeleteServiceLevelObjectiveRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = ServiceMonitoringServiceClient.Create();
    // Initialize request argument(s)
    DeleteServiceLevelObjectiveRequest request = new DeleteServiceLevelObjectiveRequest
    {
        ServiceLevelObjectiveName = ServiceLevelObjectiveName.FromProjectServiceServiceLevelObjective("[PROJECT]", "[SERVICE]", "[SERVICE_LEVEL_OBJECTIVE]"),
    };
    // Make the request
    serviceMonitoringServiceClient.DeleteServiceLevelObjective(request);

### DeleteServiceLevelObjective(ServiceLevelObjectiveName, CallSettings)

    public virtual void DeleteServiceLevelObjective(ServiceLevelObjectiveName name, CallSettings callSettings = null)

Delete the given `ServiceLevelObjective`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceLevelObjectiveName` Required. Resource name of the `ServiceLevelObjective` to delete. The format is: projects/\[PROJECT_ID_OR_NUMBER\]/services/\[SERVICE_ID\]/serviceLevelObjectives/\[SLO_NAME\] |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = ServiceMonitoringServiceClient.Create();
    // Initialize request argument(s)
    ServiceLevelObjectiveName name = ServiceLevelObjectiveName.FromProjectServiceServiceLevelObjective("[PROJECT]", "[SERVICE]", "[SERVICE_LEVEL_OBJECTIVE]");
    // Make the request
    serviceMonitoringServiceClient.DeleteServiceLevelObjective(name);

### DeleteServiceLevelObjective(string, CallSettings)

    public virtual void DeleteServiceLevelObjective(string name, CallSettings callSettings = null)

Delete the given `ServiceLevelObjective`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Resource name of the `ServiceLevelObjective` to delete. The format is: projects/\[PROJECT_ID_OR_NUMBER\]/services/\[SERVICE_ID\]/serviceLevelObjectives/\[SLO_NAME\] |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = ServiceMonitoringServiceClient.Create();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/services/[SERVICE]/serviceLevelObjectives/[SERVICE_LEVEL_OBJECTIVE]";
    // Make the request
    serviceMonitoringServiceClient.DeleteServiceLevelObjective(name);

### DeleteServiceLevelObjectiveAsync(IResourceName, CallSettings)

    public virtual Task DeleteServiceLevelObjectiveAsync(IResourceName name, CallSettings callSettings = null)

Delete the given `ServiceLevelObjective`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.IResourceName.html` Required. Resource name of the `ServiceLevelObjective` to delete. The format is: projects/\[PROJECT_ID_OR_NUMBER\]/services/\[SERVICE_ID\]/serviceLevelObjectives/\[SLO_NAME\] |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A Task containing the RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
    // Initialize request argument(s)
    IResourceName name = new UnparsedResourceName("a/wildcard/resource");
    // Make the request
    await serviceMonitoringServiceClient.DeleteServiceLevelObjectiveAsync(name);

### DeleteServiceLevelObjectiveAsync(IResourceName, CancellationToken)

    public virtual Task DeleteServiceLevelObjectiveAsync(IResourceName name, CancellationToken cancellationToken)

Delete the given `ServiceLevelObjective`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.IResourceName.html` Required. Resource name of the `ServiceLevelObjective` to delete. The format is: projects/\[PROJECT_ID_OR_NUMBER\]/services/\[SERVICE_ID\]/serviceLevelObjectives/\[SLO_NAME\] |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A Task containing the RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
    // Initialize request argument(s)
    IResourceName name = new UnparsedResourceName("a/wildcard/resource");
    // Make the request
    await serviceMonitoringServiceClient.DeleteServiceLevelObjectiveAsync(name);

### DeleteServiceLevelObjectiveAsync(DeleteServiceLevelObjectiveRequest, CallSettings)

    public virtual Task DeleteServiceLevelObjectiveAsync(DeleteServiceLevelObjectiveRequest request, CallSettings callSettings = null)

Delete the given `ServiceLevelObjective`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.DeleteServiceLevelObjectiveRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A Task containing the RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
    // Initialize request argument(s)
    DeleteServiceLevelObjectiveRequest request = new DeleteServiceLevelObjectiveRequest
    {
        ServiceLevelObjectiveName = ServiceLevelObjectiveName.FromProjectServiceServiceLevelObjective("[PROJECT]", "[SERVICE]", "[SERVICE_LEVEL_OBJECTIVE]"),
    };
    // Make the request
    await serviceMonitoringServiceClient.DeleteServiceLevelObjectiveAsync(request);

### DeleteServiceLevelObjectiveAsync(DeleteServiceLevelObjectiveRequest, CancellationToken)

    public virtual Task DeleteServiceLevelObjectiveAsync(DeleteServiceLevelObjectiveRequest request, CancellationToken cancellationToken)

Delete the given `ServiceLevelObjective`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.DeleteServiceLevelObjectiveRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A Task containing the RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
    // Initialize request argument(s)
    DeleteServiceLevelObjectiveRequest request = new DeleteServiceLevelObjectiveRequest
    {
        ServiceLevelObjectiveName = ServiceLevelObjectiveName.FromProjectServiceServiceLevelObjective("[PROJECT]", "[SERVICE]", "[SERVICE_LEVEL_OBJECTIVE]"),
    };
    // Make the request
    await serviceMonitoringServiceClient.DeleteServiceLevelObjectiveAsync(request);

### DeleteServiceLevelObjectiveAsync(ServiceLevelObjectiveName, CallSettings)

    public virtual Task DeleteServiceLevelObjectiveAsync(ServiceLevelObjectiveName name, CallSettings callSettings = null)

Delete the given `ServiceLevelObjective`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceLevelObjectiveName` Required. Resource name of the `ServiceLevelObjective` to delete. The format is: projects/\[PROJECT_ID_OR_NUMBER\]/services/\[SERVICE_ID\]/serviceLevelObjectives/\[SLO_NAME\] |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A Task containing the RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
    // Initialize request argument(s)
    ServiceLevelObjectiveName name = ServiceLevelObjectiveName.FromProjectServiceServiceLevelObjective("[PROJECT]", "[SERVICE]", "[SERVICE_LEVEL_OBJECTIVE]");
    // Make the request
    await serviceMonitoringServiceClient.DeleteServiceLevelObjectiveAsync(name);

### DeleteServiceLevelObjectiveAsync(ServiceLevelObjectiveName, CancellationToken)

    public virtual Task DeleteServiceLevelObjectiveAsync(ServiceLevelObjectiveName name, CancellationToken cancellationToken)

Delete the given `ServiceLevelObjective`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceLevelObjectiveName` Required. Resource name of the `ServiceLevelObjective` to delete. The format is: projects/\[PROJECT_ID_OR_NUMBER\]/services/\[SERVICE_ID\]/serviceLevelObjectives/\[SLO_NAME\] |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A Task containing the RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
    // Initialize request argument(s)
    ServiceLevelObjectiveName name = ServiceLevelObjectiveName.FromProjectServiceServiceLevelObjective("[PROJECT]", "[SERVICE]", "[SERVICE_LEVEL_OBJECTIVE]");
    // Make the request
    await serviceMonitoringServiceClient.DeleteServiceLevelObjectiveAsync(name);

### DeleteServiceLevelObjectiveAsync(string, CallSettings)

    public virtual Task DeleteServiceLevelObjectiveAsync(string name, CallSettings callSettings = null)

Delete the given `ServiceLevelObjective`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Resource name of the `ServiceLevelObjective` to delete. The format is: projects/\[PROJECT_ID_OR_NUMBER\]/services/\[SERVICE_ID\]/serviceLevelObjectives/\[SLO_NAME\] |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A Task containing the RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/services/[SERVICE]/serviceLevelObjectives/[SERVICE_LEVEL_OBJECTIVE]";
    // Make the request
    await serviceMonitoringServiceClient.DeleteServiceLevelObjectiveAsync(name);

### DeleteServiceLevelObjectiveAsync(string, CancellationToken)

    public virtual Task DeleteServiceLevelObjectiveAsync(string name, CancellationToken cancellationToken)

Delete the given `ServiceLevelObjective`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Resource name of the `ServiceLevelObjective` to delete. The format is: projects/\[PROJECT_ID_OR_NUMBER\]/services/\[SERVICE_ID\]/serviceLevelObjectives/\[SLO_NAME\] |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A Task containing the RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/services/[SERVICE]/serviceLevelObjectives/[SERVICE_LEVEL_OBJECTIVE]";
    // Make the request
    await serviceMonitoringServiceClient.DeleteServiceLevelObjectiveAsync(name);

### GetService(IResourceName, CallSettings)

    public virtual Service GetService(IResourceName name, CallSettings callSettings = null)

Get the named `Service`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.IResourceName.html` Required. Resource name of the `Service`. The format is: projects/\[PROJECT_ID_OR_NUMBER\]/services/\[SERVICE_ID\] |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service` | The RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = ServiceMonitoringServiceClient.Create();
    // Initialize request argument(s)
    IResourceName name = new UnparsedResourceName("a/wildcard/resource");
    // Make the request
    Service response = serviceMonitoringServiceClient.GetService(name);

### GetService(GetServiceRequest, CallSettings)

    public virtual Service GetService(GetServiceRequest request, CallSettings callSettings = null)

Get the named `Service`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.GetServiceRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service` | The RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = ServiceMonitoringServiceClient.Create();
    // Initialize request argument(s)
    GetServiceRequest request = new GetServiceRequest
    {
        ServiceName = ServiceName.FromProjectService("[PROJECT]", "[SERVICE]"),
    };
    // Make the request
    Service response = serviceMonitoringServiceClient.GetService(request);

### GetService(ServiceName, CallSettings)

    public virtual Service GetService(ServiceName name, CallSettings callSettings = null)

Get the named `Service`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceName` Required. Resource name of the `Service`. The format is: projects/\[PROJECT_ID_OR_NUMBER\]/services/\[SERVICE_ID\] |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service` | The RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = ServiceMonitoringServiceClient.Create();
    // Initialize request argument(s)
    ServiceName name = ServiceName.FromProjectService("[PROJECT]", "[SERVICE]");
    // Make the request
    Service response = serviceMonitoringServiceClient.GetService(name);

### GetService(string, CallSettings)

    public virtual Service GetService(string name, CallSettings callSettings = null)

Get the named `Service`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Resource name of the `Service`. The format is: projects/\[PROJECT_ID_OR_NUMBER\]/services/\[SERVICE_ID\] |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service` | The RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = ServiceMonitoringServiceClient.Create();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/services/[SERVICE]";
    // Make the request
    Service response = serviceMonitoringServiceClient.GetService(name);

### GetServiceAsync(IResourceName, CallSettings)

    public virtual Task<Service> GetServiceAsync(IResourceName name, CallSettings callSettings = null)

Get the named `Service`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.IResourceName.html` Required. Resource name of the `Service`. The format is: projects/\[PROJECT_ID_OR_NUMBER\]/services/\[SERVICE_ID\] |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service` | A Task containing the RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
    // Initialize request argument(s)
    IResourceName name = new UnparsedResourceName("a/wildcard/resource");
    // Make the request
    Service response = await serviceMonitoringServiceClient.GetServiceAsync(name);

### GetServiceAsync(IResourceName, CancellationToken)

    public virtual Task<Service> GetServiceAsync(IResourceName name, CancellationToken cancellationToken)

Get the named `Service`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.IResourceName.html` Required. Resource name of the `Service`. The format is: projects/\[PROJECT_ID_OR_NUMBER\]/services/\[SERVICE_ID\] |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service` | A Task containing the RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
    // Initialize request argument(s)
    IResourceName name = new UnparsedResourceName("a/wildcard/resource");
    // Make the request
    Service response = await serviceMonitoringServiceClient.GetServiceAsync(name);

### GetServiceAsync(GetServiceRequest, CallSettings)

    public virtual Task<Service> GetServiceAsync(GetServiceRequest request, CallSettings callSettings = null)

Get the named `Service`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.GetServiceRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service` | A Task containing the RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
    // Initialize request argument(s)
    GetServiceRequest request = new GetServiceRequest
    {
        ServiceName = ServiceName.FromProjectService("[PROJECT]", "[SERVICE]"),
    };
    // Make the request
    Service response = await serviceMonitoringServiceClient.GetServiceAsync(request);

### GetServiceAsync(GetServiceRequest, CancellationToken)

    public virtual Task<Service> GetServiceAsync(GetServiceRequest request, CancellationToken cancellationToken)

Get the named `Service`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.GetServiceRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service` | A Task containing the RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
    // Initialize request argument(s)
    GetServiceRequest request = new GetServiceRequest
    {
        ServiceName = ServiceName.FromProjectService("[PROJECT]", "[SERVICE]"),
    };
    // Make the request
    Service response = await serviceMonitoringServiceClient.GetServiceAsync(request);

### GetServiceAsync(ServiceName, CallSettings)

    public virtual Task<Service> GetServiceAsync(ServiceName name, CallSettings callSettings = null)

Get the named `Service`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceName` Required. Resource name of the `Service`. The format is: projects/\[PROJECT_ID_OR_NUMBER\]/services/\[SERVICE_ID\] |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service` | A Task containing the RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
    // Initialize request argument(s)
    ServiceName name = ServiceName.FromProjectService("[PROJECT]", "[SERVICE]");
    // Make the request
    Service response = await serviceMonitoringServiceClient.GetServiceAsync(name);

### GetServiceAsync(ServiceName, CancellationToken)

    public virtual Task<Service> GetServiceAsync(ServiceName name, CancellationToken cancellationToken)

Get the named `Service`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceName` Required. Resource name of the `Service`. The format is: projects/\[PROJECT_ID_OR_NUMBER\]/services/\[SERVICE_ID\] |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service` | A Task containing the RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
    // Initialize request argument(s)
    ServiceName name = ServiceName.FromProjectService("[PROJECT]", "[SERVICE]");
    // Make the request
    Service response = await serviceMonitoringServiceClient.GetServiceAsync(name);

### GetServiceAsync(string, CallSettings)

    public virtual Task<Service> GetServiceAsync(string name, CallSettings callSettings = null)

Get the named `Service`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Resource name of the `Service`. The format is: projects/\[PROJECT_ID_OR_NUMBER\]/services/\[SERVICE_ID\] |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service` | A Task containing the RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/services/[SERVICE]";
    // Make the request
    Service response = await serviceMonitoringServiceClient.GetServiceAsync(name);

### GetServiceAsync(string, CancellationToken)

    public virtual Task<Service> GetServiceAsync(string name, CancellationToken cancellationToken)

Get the named `Service`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Resource name of the `Service`. The format is: projects/\[PROJECT_ID_OR_NUMBER\]/services/\[SERVICE_ID\] |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service` | A Task containing the RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/services/[SERVICE]";
    // Make the request
    Service response = await serviceMonitoringServiceClient.GetServiceAsync(name);

### GetServiceLevelObjective(IResourceName, CallSettings)

    public virtual ServiceLevelObjective GetServiceLevelObjective(IResourceName name, CallSettings callSettings = null)

Get a `ServiceLevelObjective` by name.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.IResourceName.html` Required. Resource name of the `ServiceLevelObjective` to get. The format is: projects/\[PROJECT_ID_OR_NUMBER\]/services/\[SERVICE_ID\]/serviceLevelObjectives/\[SLO_NAME\] |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceLevelObjective` | The RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = ServiceMonitoringServiceClient.Create();
    // Initialize request argument(s)
    IResourceName name = new UnparsedResourceName("a/wildcard/resource");
    // Make the request
    ServiceLevelObjective response = serviceMonitoringServiceClient.GetServiceLevelObjective(name);

### GetServiceLevelObjective(GetServiceLevelObjectiveRequest, CallSettings)

    public virtual ServiceLevelObjective GetServiceLevelObjective(GetServiceLevelObjectiveRequest request, CallSettings callSettings = null)

Get a `ServiceLevelObjective` by name.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.GetServiceLevelObjectiveRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceLevelObjective` | The RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = ServiceMonitoringServiceClient.Create();
    // Initialize request argument(s)
    GetServiceLevelObjectiveRequest request = new GetServiceLevelObjectiveRequest
    {
        ServiceLevelObjectiveName = ServiceLevelObjectiveName.FromProjectServiceServiceLevelObjective("[PROJECT]", "[SERVICE]", "[SERVICE_LEVEL_OBJECTIVE]"),
        View = ServiceLevelObjective.Types.View.Unspecified,
    };
    // Make the request
    ServiceLevelObjective response = serviceMonitoringServiceClient.GetServiceLevelObjective(request);

### GetServiceLevelObjective(ServiceLevelObjectiveName, CallSettings)

    public virtual ServiceLevelObjective GetServiceLevelObjective(ServiceLevelObjectiveName name, CallSettings callSettings = null)

Get a `ServiceLevelObjective` by name.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceLevelObjectiveName` Required. Resource name of the `ServiceLevelObjective` to get. The format is: projects/\[PROJECT_ID_OR_NUMBER\]/services/\[SERVICE_ID\]/serviceLevelObjectives/\[SLO_NAME\] |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceLevelObjective` | The RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = ServiceMonitoringServiceClient.Create();
    // Initialize request argument(s)
    ServiceLevelObjectiveName name = ServiceLevelObjectiveName.FromProjectServiceServiceLevelObjective("[PROJECT]", "[SERVICE]", "[SERVICE_LEVEL_OBJECTIVE]");
    // Make the request
    ServiceLevelObjective response = serviceMonitoringServiceClient.GetServiceLevelObjective(name);

### GetServiceLevelObjective(string, CallSettings)

    public virtual ServiceLevelObjective GetServiceLevelObjective(string name, CallSettings callSettings = null)

Get a `ServiceLevelObjective` by name.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Resource name of the `ServiceLevelObjective` to get. The format is: projects/\[PROJECT_ID_OR_NUMBER\]/services/\[SERVICE_ID\]/serviceLevelObjectives/\[SLO_NAME\] |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceLevelObjective` | The RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = ServiceMonitoringServiceClient.Create();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/services/[SERVICE]/serviceLevelObjectives/[SERVICE_LEVEL_OBJECTIVE]";
    // Make the request
    ServiceLevelObjective response = serviceMonitoringServiceClient.GetServiceLevelObjective(name);

### GetServiceLevelObjectiveAsync(IResourceName, CallSettings)

    public virtual Task<ServiceLevelObjective> GetServiceLevelObjectiveAsync(IResourceName name, CallSettings callSettings = null)

Get a `ServiceLevelObjective` by name.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.IResourceName.html` Required. Resource name of the `ServiceLevelObjective` to get. The format is: projects/\[PROJECT_ID_OR_NUMBER\]/services/\[SERVICE_ID\]/serviceLevelObjectives/\[SLO_NAME\] |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceLevelObjective` | A Task containing the RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
    // Initialize request argument(s)
    IResourceName name = new UnparsedResourceName("a/wildcard/resource");
    // Make the request
    ServiceLevelObjective response = await serviceMonitoringServiceClient.GetServiceLevelObjectiveAsync(name);

### GetServiceLevelObjectiveAsync(IResourceName, CancellationToken)

    public virtual Task<ServiceLevelObjective> GetServiceLevelObjectiveAsync(IResourceName name, CancellationToken cancellationToken)

Get a `ServiceLevelObjective` by name.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.IResourceName.html` Required. Resource name of the `ServiceLevelObjective` to get. The format is: projects/\[PROJECT_ID_OR_NUMBER\]/services/\[SERVICE_ID\]/serviceLevelObjectives/\[SLO_NAME\] |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceLevelObjective` | A Task containing the RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
    // Initialize request argument(s)
    IResourceName name = new UnparsedResourceName("a/wildcard/resource");
    // Make the request
    ServiceLevelObjective response = await serviceMonitoringServiceClient.GetServiceLevelObjectiveAsync(name);

### GetServiceLevelObjectiveAsync(GetServiceLevelObjectiveRequest, CallSettings)

    public virtual Task<ServiceLevelObjective> GetServiceLevelObjectiveAsync(GetServiceLevelObjectiveRequest request, CallSettings callSettings = null)

Get a `ServiceLevelObjective` by name.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.GetServiceLevelObjectiveRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceLevelObjective` | A Task containing the RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
    // Initialize request argument(s)
    GetServiceLevelObjectiveRequest request = new GetServiceLevelObjectiveRequest
    {
        ServiceLevelObjectiveName = ServiceLevelObjectiveName.FromProjectServiceServiceLevelObjective("[PROJECT]", "[SERVICE]", "[SERVICE_LEVEL_OBJECTIVE]"),
        View = ServiceLevelObjective.Types.View.Unspecified,
    };
    // Make the request
    ServiceLevelObjective response = await serviceMonitoringServiceClient.GetServiceLevelObjectiveAsync(request);

### GetServiceLevelObjectiveAsync(GetServiceLevelObjectiveRequest, CancellationToken)

    public virtual Task<ServiceLevelObjective> GetServiceLevelObjectiveAsync(GetServiceLevelObjectiveRequest request, CancellationToken cancellationToken)

Get a `ServiceLevelObjective` by name.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.GetServiceLevelObjectiveRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceLevelObjective` | A Task containing the RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
    // Initialize request argument(s)
    GetServiceLevelObjectiveRequest request = new GetServiceLevelObjectiveRequest
    {
        ServiceLevelObjectiveName = ServiceLevelObjectiveName.FromProjectServiceServiceLevelObjective("[PROJECT]", "[SERVICE]", "[SERVICE_LEVEL_OBJECTIVE]"),
        View = ServiceLevelObjective.Types.View.Unspecified,
    };
    // Make the request
    ServiceLevelObjective response = await serviceMonitoringServiceClient.GetServiceLevelObjectiveAsync(request);

### GetServiceLevelObjectiveAsync(ServiceLevelObjectiveName, CallSettings)

    public virtual Task<ServiceLevelObjective> GetServiceLevelObjectiveAsync(ServiceLevelObjectiveName name, CallSettings callSettings = null)

Get a `ServiceLevelObjective` by name.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceLevelObjectiveName` Required. Resource name of the `ServiceLevelObjective` to get. The format is: projects/\[PROJECT_ID_OR_NUMBER\]/services/\[SERVICE_ID\]/serviceLevelObjectives/\[SLO_NAME\] |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceLevelObjective` | A Task containing the RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
    // Initialize request argument(s)
    ServiceLevelObjectiveName name = ServiceLevelObjectiveName.FromProjectServiceServiceLevelObjective("[PROJECT]", "[SERVICE]", "[SERVICE_LEVEL_OBJECTIVE]");
    // Make the request
    ServiceLevelObjective response = await serviceMonitoringServiceClient.GetServiceLevelObjectiveAsync(name);

### GetServiceLevelObjectiveAsync(ServiceLevelObjectiveName, CancellationToken)

    public virtual Task<ServiceLevelObjective> GetServiceLevelObjectiveAsync(ServiceLevelObjectiveName name, CancellationToken cancellationToken)

Get a `ServiceLevelObjective` by name.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceLevelObjectiveName` Required. Resource name of the `ServiceLevelObjective` to get. The format is: projects/\[PROJECT_ID_OR_NUMBER\]/services/\[SERVICE_ID\]/serviceLevelObjectives/\[SLO_NAME\] |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceLevelObjective` | A Task containing the RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
    // Initialize request argument(s)
    ServiceLevelObjectiveName name = ServiceLevelObjectiveName.FromProjectServiceServiceLevelObjective("[PROJECT]", "[SERVICE]", "[SERVICE_LEVEL_OBJECTIVE]");
    // Make the request
    ServiceLevelObjective response = await serviceMonitoringServiceClient.GetServiceLevelObjectiveAsync(name);

### GetServiceLevelObjectiveAsync(string, CallSettings)

    public virtual Task<ServiceLevelObjective> GetServiceLevelObjectiveAsync(string name, CallSettings callSettings = null)

Get a `ServiceLevelObjective` by name.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Resource name of the `ServiceLevelObjective` to get. The format is: projects/\[PROJECT_ID_OR_NUMBER\]/services/\[SERVICE_ID\]/serviceLevelObjectives/\[SLO_NAME\] |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceLevelObjective` | A Task containing the RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/services/[SERVICE]/serviceLevelObjectives/[SERVICE_LEVEL_OBJECTIVE]";
    // Make the request
    ServiceLevelObjective response = await serviceMonitoringServiceClient.GetServiceLevelObjectiveAsync(name);

### GetServiceLevelObjectiveAsync(string, CancellationToken)

    public virtual Task<ServiceLevelObjective> GetServiceLevelObjectiveAsync(string name, CancellationToken cancellationToken)

Get a `ServiceLevelObjective` by name.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Resource name of the `ServiceLevelObjective` to get. The format is: projects/\[PROJECT_ID_OR_NUMBER\]/services/\[SERVICE_ID\]/serviceLevelObjectives/\[SLO_NAME\] |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceLevelObjective` | A Task containing the RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/services/[SERVICE]/serviceLevelObjectives/[SERVICE_LEVEL_OBJECTIVE]";
    // Make the request
    ServiceLevelObjective response = await serviceMonitoringServiceClient.GetServiceLevelObjectiveAsync(name);

### ListServiceLevelObjectives(IResourceName, string, int?, CallSettings)

    public virtual PagedEnumerable<ListServiceLevelObjectivesResponse, ServiceLevelObjective> ListServiceLevelObjectives(IResourceName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List the `ServiceLevelObjective`s for the given `Service`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.IResourceName.html` Required. Resource name of the parent containing the listed SLOs, either a project or a Monitoring Metrics Scope. The formats are: projects/\[PROJECT_ID_OR_NUMBER\]/services/\[SERVICE_ID\] workspaces/\[HOST_PROJECT_ID_OR_NUMBER\]/services/- |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` 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` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ListServiceLevelObjectivesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceLevelObjective` | A pageable sequence of [ServiceLevelObjective](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceLevelObjective) resources. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = ServiceMonitoringServiceClient.Create();
    // Initialize request argument(s)
    IResourceName parent = new UnparsedResourceName("a/wildcard/resource");
    // Make the request
    PagedEnumerable<ListServiceLevelObjectivesResponse, ServiceLevelObjective> response = serviceMonitoringServiceClient.ListServiceLevelObjectives(parent);

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

### ListServiceLevelObjectives(ListServiceLevelObjectivesRequest, CallSettings)

    public virtual PagedEnumerable<ListServiceLevelObjectivesResponse, ServiceLevelObjective> ListServiceLevelObjectives(ListServiceLevelObjectivesRequest request, CallSettings callSettings = null)

List the `ServiceLevelObjective`s for the given `Service`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ListServiceLevelObjectivesRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ListServiceLevelObjectivesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceLevelObjective` | A pageable sequence of [ServiceLevelObjective](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceLevelObjective) resources. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = ServiceMonitoringServiceClient.Create();
    // Initialize request argument(s)
    ListServiceLevelObjectivesRequest request = new ListServiceLevelObjectivesRequest
    {
        ParentAsServiceName = ServiceName.FromProjectService("[PROJECT]", "[SERVICE]"),
        Filter = "",
        View = ServiceLevelObjective.Types.View.Unspecified,
    };
    // Make the request
    PagedEnumerable<ListServiceLevelObjectivesResponse, ServiceLevelObjective> response = serviceMonitoringServiceClient.ListServiceLevelObjectives(request);

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

### ListServiceLevelObjectives(ServiceName, string, int?, CallSettings)

    public virtual PagedEnumerable<ListServiceLevelObjectivesResponse, ServiceLevelObjective> ListServiceLevelObjectives(ServiceName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List the `ServiceLevelObjective`s for the given `Service`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceName` Required. Resource name of the parent containing the listed SLOs, either a project or a Monitoring Metrics Scope. The formats are: projects/\[PROJECT_ID_OR_NUMBER\]/services/\[SERVICE_ID\] workspaces/\[HOST_PROJECT_ID_OR_NUMBER\]/services/- |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` 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` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ListServiceLevelObjectivesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceLevelObjective` | A pageable sequence of [ServiceLevelObjective](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceLevelObjective) resources. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = ServiceMonitoringServiceClient.Create();
    // Initialize request argument(s)
    ServiceName parent = ServiceName.FromProjectService("[PROJECT]", "[SERVICE]");
    // Make the request
    PagedEnumerable<ListServiceLevelObjectivesResponse, ServiceLevelObjective> response = serviceMonitoringServiceClient.ListServiceLevelObjectives(parent);

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

### ListServiceLevelObjectives(string, string, int?, CallSettings)

    public virtual PagedEnumerable<ListServiceLevelObjectivesResponse, ServiceLevelObjective> ListServiceLevelObjectives(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List the `ServiceLevelObjective`s for the given `Service`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Resource name of the parent containing the listed SLOs, either a project or a Monitoring Metrics Scope. The formats are: projects/\[PROJECT_ID_OR_NUMBER\]/services/\[SERVICE_ID\] workspaces/\[HOST_PROJECT_ID_OR_NUMBER\]/services/- |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` 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` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ListServiceLevelObjectivesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceLevelObjective` | A pageable sequence of [ServiceLevelObjective](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceLevelObjective) resources. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = ServiceMonitoringServiceClient.Create();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/services/[SERVICE]";
    // Make the request
    PagedEnumerable<ListServiceLevelObjectivesResponse, ServiceLevelObjective> response = serviceMonitoringServiceClient.ListServiceLevelObjectives(parent);

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

### ListServiceLevelObjectivesAsync(IResourceName, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListServiceLevelObjectivesResponse, ServiceLevelObjective> ListServiceLevelObjectivesAsync(IResourceName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List the `ServiceLevelObjective`s for the given `Service`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.IResourceName.html` Required. Resource name of the parent containing the listed SLOs, either a project or a Monitoring Metrics Scope. The formats are: projects/\[PROJECT_ID_OR_NUMBER\]/services/\[SERVICE_ID\] workspaces/\[HOST_PROJECT_ID_OR_NUMBER\]/services/- |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` 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` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ListServiceLevelObjectivesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceLevelObjective` | A pageable asynchronous sequence of [ServiceLevelObjective](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceLevelObjective) resources. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
    // Initialize request argument(s)
    IResourceName parent = new UnparsedResourceName("a/wildcard/resource");
    // Make the request
    PagedAsyncEnumerable<ListServiceLevelObjectivesResponse, ServiceLevelObjective> response = serviceMonitoringServiceClient.ListServiceLevelObjectivesAsync(parent);

    // Iterate over all response items, lazily performing RPCs as required
    await response.ForEachAsync((ServiceLevelObjective item) =>
    {
        // Do something with each item
        Console.WriteLine(item);
    });

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

### ListServiceLevelObjectivesAsync(ListServiceLevelObjectivesRequest, CallSettings)

    public virtual PagedAsyncEnumerable<ListServiceLevelObjectivesResponse, ServiceLevelObjective> ListServiceLevelObjectivesAsync(ListServiceLevelObjectivesRequest request, CallSettings callSettings = null)

List the `ServiceLevelObjective`s for the given `Service`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ListServiceLevelObjectivesRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ListServiceLevelObjectivesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceLevelObjective` | A pageable asynchronous sequence of [ServiceLevelObjective](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceLevelObjective) resources. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
    // Initialize request argument(s)
    ListServiceLevelObjectivesRequest request = new ListServiceLevelObjectivesRequest
    {
        ParentAsServiceName = ServiceName.FromProjectService("[PROJECT]", "[SERVICE]"),
        Filter = "",
        View = ServiceLevelObjective.Types.View.Unspecified,
    };
    // Make the request
    PagedAsyncEnumerable<ListServiceLevelObjectivesResponse, ServiceLevelObjective> response = serviceMonitoringServiceClient.ListServiceLevelObjectivesAsync(request);

    // Iterate over all response items, lazily performing RPCs as required
    await response.ForEachAsync((ServiceLevelObjective item) =>
    {
        // Do something with each item
        Console.WriteLine(item);
    });

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

### ListServiceLevelObjectivesAsync(ServiceName, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListServiceLevelObjectivesResponse, ServiceLevelObjective> ListServiceLevelObjectivesAsync(ServiceName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List the `ServiceLevelObjective`s for the given `Service`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceName` Required. Resource name of the parent containing the listed SLOs, either a project or a Monitoring Metrics Scope. The formats are: projects/\[PROJECT_ID_OR_NUMBER\]/services/\[SERVICE_ID\] workspaces/\[HOST_PROJECT_ID_OR_NUMBER\]/services/- |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` 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` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ListServiceLevelObjectivesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceLevelObjective` | A pageable asynchronous sequence of [ServiceLevelObjective](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceLevelObjective) resources. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
    // Initialize request argument(s)
    ServiceName parent = ServiceName.FromProjectService("[PROJECT]", "[SERVICE]");
    // Make the request
    PagedAsyncEnumerable<ListServiceLevelObjectivesResponse, ServiceLevelObjective> response = serviceMonitoringServiceClient.ListServiceLevelObjectivesAsync(parent);

    // Iterate over all response items, lazily performing RPCs as required
    await response.ForEachAsync((ServiceLevelObjective item) =>
    {
        // Do something with each item
        Console.WriteLine(item);
    });

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

### ListServiceLevelObjectivesAsync(string, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListServiceLevelObjectivesResponse, ServiceLevelObjective> ListServiceLevelObjectivesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List the `ServiceLevelObjective`s for the given `Service`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Resource name of the parent containing the listed SLOs, either a project or a Monitoring Metrics Scope. The formats are: projects/\[PROJECT_ID_OR_NUMBER\]/services/\[SERVICE_ID\] workspaces/\[HOST_PROJECT_ID_OR_NUMBER\]/services/- |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` 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` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ListServiceLevelObjectivesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceLevelObjective` | A pageable asynchronous sequence of [ServiceLevelObjective](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceLevelObjective) resources. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/services/[SERVICE]";
    // Make the request
    PagedAsyncEnumerable<ListServiceLevelObjectivesResponse, ServiceLevelObjective> response = serviceMonitoringServiceClient.ListServiceLevelObjectivesAsync(parent);

    // Iterate over all response items, lazily performing RPCs as required
    await response.ForEachAsync((ServiceLevelObjective item) =>
    {
        // Do something with each item
        Console.WriteLine(item);
    });

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

### ListServices(IResourceName, string, int?, CallSettings)

    public virtual PagedEnumerable<ListServicesResponse, Service> ListServices(IResourceName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List `Service`s for this Metrics Scope.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.IResourceName.html` Required. Resource name of the parent containing the listed services, either a [project](https://cloud.google.com/monitoring/api/v3#project_name) or a Monitoring Metrics Scope. The formats are: projects/\[PROJECT_ID_OR_NUMBER\] workspaces/\[HOST_PROJECT_ID_OR_NUMBER\] |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` 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` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ListServicesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service` | A pageable sequence of [Service](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service) resources. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = ServiceMonitoringServiceClient.Create();
    // Initialize request argument(s)
    IResourceName parent = new UnparsedResourceName("a/wildcard/resource");
    // Make the request
    PagedEnumerable<ListServicesResponse, Service> response = serviceMonitoringServiceClient.ListServices(parent);

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

### ListServices(FolderName, string, int?, CallSettings)

    public virtual PagedEnumerable<ListServicesResponse, Service> ListServices(FolderName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List `Service`s for this Metrics Scope.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.FolderName.html` Required. Resource name of the parent containing the listed services, either a [project](https://cloud.google.com/monitoring/api/v3#project_name) or a Monitoring Metrics Scope. The formats are: projects/\[PROJECT_ID_OR_NUMBER\] workspaces/\[HOST_PROJECT_ID_OR_NUMBER\] |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` 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` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ListServicesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service` | A pageable sequence of [Service](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service) resources. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = ServiceMonitoringServiceClient.Create();
    // Initialize request argument(s)
    FolderName parent = FolderName.FromFolder("[FOLDER]");
    // Make the request
    PagedEnumerable<ListServicesResponse, Service> response = serviceMonitoringServiceClient.ListServices(parent);

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

### ListServices(OrganizationName, string, int?, CallSettings)

    public virtual PagedEnumerable<ListServicesResponse, Service> ListServices(OrganizationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List `Service`s for this Metrics Scope.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.OrganizationName.html` Required. Resource name of the parent containing the listed services, either a [project](https://cloud.google.com/monitoring/api/v3#project_name) or a Monitoring Metrics Scope. The formats are: projects/\[PROJECT_ID_OR_NUMBER\] workspaces/\[HOST_PROJECT_ID_OR_NUMBER\] |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` 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` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ListServicesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service` | A pageable sequence of [Service](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service) resources. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = ServiceMonitoringServiceClient.Create();
    // Initialize request argument(s)
    OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
    // Make the request
    PagedEnumerable<ListServicesResponse, Service> response = serviceMonitoringServiceClient.ListServices(parent);

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

### ListServices(ProjectName, string, int?, CallSettings)

    public virtual PagedEnumerable<ListServicesResponse, Service> ListServices(ProjectName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List `Service`s for this Metrics Scope.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.ProjectName.html` Required. Resource name of the parent containing the listed services, either a [project](https://cloud.google.com/monitoring/api/v3#project_name) or a Monitoring Metrics Scope. The formats are: projects/\[PROJECT_ID_OR_NUMBER\] workspaces/\[HOST_PROJECT_ID_OR_NUMBER\] |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` 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` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ListServicesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service` | A pageable sequence of [Service](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service) resources. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = ServiceMonitoringServiceClient.Create();
    // Initialize request argument(s)
    ProjectName parent = ProjectName.FromProject("[PROJECT]");
    // Make the request
    PagedEnumerable<ListServicesResponse, Service> response = serviceMonitoringServiceClient.ListServices(parent);

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

### ListServices(ListServicesRequest, CallSettings)

    public virtual PagedEnumerable<ListServicesResponse, Service> ListServices(ListServicesRequest request, CallSettings callSettings = null)

List `Service`s for this Metrics Scope.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ListServicesRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ListServicesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service` | A pageable sequence of [Service](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service) resources. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = ServiceMonitoringServiceClient.Create();
    // Initialize request argument(s)
    ListServicesRequest request = new ListServicesRequest
    {
        ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
        Filter = "",
    };
    // Make the request
    PagedEnumerable<ListServicesResponse, Service> response = serviceMonitoringServiceClient.ListServices(request);

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

### ListServices(string, string, int?, CallSettings)

    public virtual PagedEnumerable<ListServicesResponse, Service> ListServices(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List `Service`s for this Metrics Scope.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Resource name of the parent containing the listed services, either a [project](https://cloud.google.com/monitoring/api/v3#project_name) or a Monitoring Metrics Scope. The formats are: projects/\[PROJECT_ID_OR_NUMBER\] workspaces/\[HOST_PROJECT_ID_OR_NUMBER\] |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` 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` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ListServicesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service` | A pageable sequence of [Service](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service) resources. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = ServiceMonitoringServiceClient.Create();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]";
    // Make the request
    PagedEnumerable<ListServicesResponse, Service> response = serviceMonitoringServiceClient.ListServices(parent);

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

### ListServicesAsync(IResourceName, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListServicesResponse, Service> ListServicesAsync(IResourceName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List `Service`s for this Metrics Scope.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.IResourceName.html` Required. Resource name of the parent containing the listed services, either a [project](https://cloud.google.com/monitoring/api/v3#project_name) or a Monitoring Metrics Scope. The formats are: projects/\[PROJECT_ID_OR_NUMBER\] workspaces/\[HOST_PROJECT_ID_OR_NUMBER\] |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` 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` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ListServicesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service` | A pageable asynchronous sequence of [Service](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service) resources. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
    // Initialize request argument(s)
    IResourceName parent = new UnparsedResourceName("a/wildcard/resource");
    // Make the request
    PagedAsyncEnumerable<ListServicesResponse, Service> response = serviceMonitoringServiceClient.ListServicesAsync(parent);

    // Iterate over all response items, lazily performing RPCs as required
    await response.ForEachAsync((Service item) =>
    {
        // Do something with each item
        Console.WriteLine(item);
    });

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

### ListServicesAsync(FolderName, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListServicesResponse, Service> ListServicesAsync(FolderName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List `Service`s for this Metrics Scope.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.FolderName.html` Required. Resource name of the parent containing the listed services, either a [project](https://cloud.google.com/monitoring/api/v3#project_name) or a Monitoring Metrics Scope. The formats are: projects/\[PROJECT_ID_OR_NUMBER\] workspaces/\[HOST_PROJECT_ID_OR_NUMBER\] |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` 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` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ListServicesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service` | A pageable asynchronous sequence of [Service](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service) resources. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
    // Initialize request argument(s)
    FolderName parent = FolderName.FromFolder("[FOLDER]");
    // Make the request
    PagedAsyncEnumerable<ListServicesResponse, Service> response = serviceMonitoringServiceClient.ListServicesAsync(parent);

    // Iterate over all response items, lazily performing RPCs as required
    await response.ForEachAsync((Service item) =>
    {
        // Do something with each item
        Console.WriteLine(item);
    });

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

### ListServicesAsync(OrganizationName, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListServicesResponse, Service> ListServicesAsync(OrganizationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List `Service`s for this Metrics Scope.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.OrganizationName.html` Required. Resource name of the parent containing the listed services, either a [project](https://cloud.google.com/monitoring/api/v3#project_name) or a Monitoring Metrics Scope. The formats are: projects/\[PROJECT_ID_OR_NUMBER\] workspaces/\[HOST_PROJECT_ID_OR_NUMBER\] |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` 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` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ListServicesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service` | A pageable asynchronous sequence of [Service](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service) resources. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
    // Initialize request argument(s)
    OrganizationName parent = OrganizationName.FromOrganization("[ORGANIZATION]");
    // Make the request
    PagedAsyncEnumerable<ListServicesResponse, Service> response = serviceMonitoringServiceClient.ListServicesAsync(parent);

    // Iterate over all response items, lazily performing RPCs as required
    await response.ForEachAsync((Service item) =>
    {
        // Do something with each item
        Console.WriteLine(item);
    });

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

### ListServicesAsync(ProjectName, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListServicesResponse, Service> ListServicesAsync(ProjectName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List `Service`s for this Metrics Scope.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.ProjectName.html` Required. Resource name of the parent containing the listed services, either a [project](https://cloud.google.com/monitoring/api/v3#project_name) or a Monitoring Metrics Scope. The formats are: projects/\[PROJECT_ID_OR_NUMBER\] workspaces/\[HOST_PROJECT_ID_OR_NUMBER\] |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` 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` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ListServicesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service` | A pageable asynchronous sequence of [Service](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service) resources. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
    // Initialize request argument(s)
    ProjectName parent = ProjectName.FromProject("[PROJECT]");
    // Make the request
    PagedAsyncEnumerable<ListServicesResponse, Service> response = serviceMonitoringServiceClient.ListServicesAsync(parent);

    // Iterate over all response items, lazily performing RPCs as required
    await response.ForEachAsync((Service item) =>
    {
        // Do something with each item
        Console.WriteLine(item);
    });

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

### ListServicesAsync(ListServicesRequest, CallSettings)

    public virtual PagedAsyncEnumerable<ListServicesResponse, Service> ListServicesAsync(ListServicesRequest request, CallSettings callSettings = null)

List `Service`s for this Metrics Scope.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ListServicesRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ListServicesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service` | A pageable asynchronous sequence of [Service](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service) resources. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
    // Initialize request argument(s)
    ListServicesRequest request = new ListServicesRequest
    {
        ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
        Filter = "",
    };
    // Make the request
    PagedAsyncEnumerable<ListServicesResponse, Service> response = serviceMonitoringServiceClient.ListServicesAsync(request);

    // Iterate over all response items, lazily performing RPCs as required
    await response.ForEachAsync((Service item) =>
    {
        // Do something with each item
        Console.WriteLine(item);
    });

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

### ListServicesAsync(string, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListServicesResponse, Service> ListServicesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List `Service`s for this Metrics Scope.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Resource name of the parent containing the listed services, either a [project](https://cloud.google.com/monitoring/api/v3#project_name) or a Monitoring Metrics Scope. The formats are: projects/\[PROJECT_ID_OR_NUMBER\] workspaces/\[HOST_PROJECT_ID_OR_NUMBER\] |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` 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` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ListServicesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service` | A pageable asynchronous sequence of [Service](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service) resources. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]";
    // Make the request
    PagedAsyncEnumerable<ListServicesResponse, Service> response = serviceMonitoringServiceClient.ListServicesAsync(parent);

    // Iterate over all response items, lazily performing RPCs as required
    await response.ForEachAsync((Service item) =>
    {
        // Do something with each item
        Console.WriteLine(item);
    });

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await response.AsRawResponses().ForEachAsync((ListServicesResponse page) =>
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (Service 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<Service> 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 (Service item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ShutdownDefaultChannelsAsync()

    public static Task ShutdownDefaultChannelsAsync()

Shuts down any channels automatically created by [Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceMonitoringServiceClient#Google_Cloud_Monitoring_V3_ServiceMonitoringServiceClient_Create) and
[CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceMonitoringServiceClient#Google_Cloud_Monitoring_V3_ServiceMonitoringServiceClient_CreateAsync_System_Threading_CancellationToken_). Channels which weren't automatically created are not
affected.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A task representing the asynchronous shutdown operation. |

**Remarks** After calling this method, further calls to [Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceMonitoringServiceClient#Google_Cloud_Monitoring_V3_ServiceMonitoringServiceClient_Create) and
[CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceMonitoringServiceClient#Google_Cloud_Monitoring_V3_ServiceMonitoringServiceClient_CreateAsync_System_Threading_CancellationToken_) will create new channels, which could in turn be shut down
by another call to this method.

### UpdateService(Service, CallSettings)

    public virtual Service UpdateService(Service service, CallSettings callSettings = null)

Update this `Service`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `service` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service` Required. The `Service` to draw updates from. The given `name` specifies the resource to update. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service` | The RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = ServiceMonitoringServiceClient.Create();
    // Initialize request argument(s)
    Service service = new Service();
    // Make the request
    Service response = serviceMonitoringServiceClient.UpdateService(service);

### UpdateService(UpdateServiceRequest, CallSettings)

    public virtual Service UpdateService(UpdateServiceRequest request, CallSettings callSettings = null)

Update this `Service`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.UpdateServiceRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service` | The RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = ServiceMonitoringServiceClient.Create();
    // Initialize request argument(s)
    UpdateServiceRequest request = new UpdateServiceRequest
    {
        Service = new Service(),
        UpdateMask = new FieldMask(),
    };
    // Make the request
    Service response = serviceMonitoringServiceClient.UpdateService(request);

### UpdateServiceAsync(Service, CallSettings)

    public virtual Task<Service> UpdateServiceAsync(Service service, CallSettings callSettings = null)

Update this `Service`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `service` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service` Required. The `Service` to draw updates from. The given `name` specifies the resource to update. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service` | A Task containing the RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
    // Initialize request argument(s)
    Service service = new Service();
    // Make the request
    Service response = await serviceMonitoringServiceClient.UpdateServiceAsync(service);

### UpdateServiceAsync(Service, CancellationToken)

    public virtual Task<Service> UpdateServiceAsync(Service service, CancellationToken cancellationToken)

Update this `Service`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `service` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service` Required. The `Service` to draw updates from. The given `name` specifies the resource to update. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service` | A Task containing the RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
    // Initialize request argument(s)
    Service service = new Service();
    // Make the request
    Service response = await serviceMonitoringServiceClient.UpdateServiceAsync(service);

### UpdateServiceAsync(UpdateServiceRequest, CallSettings)

    public virtual Task<Service> UpdateServiceAsync(UpdateServiceRequest request, CallSettings callSettings = null)

Update this `Service`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.UpdateServiceRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service` | A Task containing the RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
    // Initialize request argument(s)
    UpdateServiceRequest request = new UpdateServiceRequest
    {
        Service = new Service(),
        UpdateMask = new FieldMask(),
    };
    // Make the request
    Service response = await serviceMonitoringServiceClient.UpdateServiceAsync(request);

### UpdateServiceAsync(UpdateServiceRequest, CancellationToken)

    public virtual Task<Service> UpdateServiceAsync(UpdateServiceRequest request, CancellationToken cancellationToken)

Update this `Service`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.UpdateServiceRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.Service` | A Task containing the RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
    // Initialize request argument(s)
    UpdateServiceRequest request = new UpdateServiceRequest
    {
        Service = new Service(),
        UpdateMask = new FieldMask(),
    };
    // Make the request
    Service response = await serviceMonitoringServiceClient.UpdateServiceAsync(request);

### UpdateServiceLevelObjective(ServiceLevelObjective, CallSettings)

    public virtual ServiceLevelObjective UpdateServiceLevelObjective(ServiceLevelObjective serviceLevelObjective, CallSettings callSettings = null)

Update the given `ServiceLevelObjective`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `serviceLevelObjective` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceLevelObjective` Required. The `ServiceLevelObjective` to draw updates from. The given `name` specifies the resource to update. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceLevelObjective` | The RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = ServiceMonitoringServiceClient.Create();
    // Initialize request argument(s)
    ServiceLevelObjective serviceLevelObjective = new ServiceLevelObjective();
    // Make the request
    ServiceLevelObjective response = serviceMonitoringServiceClient.UpdateServiceLevelObjective(serviceLevelObjective);

### UpdateServiceLevelObjective(UpdateServiceLevelObjectiveRequest, CallSettings)

    public virtual ServiceLevelObjective UpdateServiceLevelObjective(UpdateServiceLevelObjectiveRequest request, CallSettings callSettings = null)

Update the given `ServiceLevelObjective`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.UpdateServiceLevelObjectiveRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceLevelObjective` | The RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = ServiceMonitoringServiceClient.Create();
    // Initialize request argument(s)
    UpdateServiceLevelObjectiveRequest request = new UpdateServiceLevelObjectiveRequest
    {
        ServiceLevelObjective = new ServiceLevelObjective(),
        UpdateMask = new FieldMask(),
    };
    // Make the request
    ServiceLevelObjective response = serviceMonitoringServiceClient.UpdateServiceLevelObjective(request);

### UpdateServiceLevelObjectiveAsync(ServiceLevelObjective, CallSettings)

    public virtual Task<ServiceLevelObjective> UpdateServiceLevelObjectiveAsync(ServiceLevelObjective serviceLevelObjective, CallSettings callSettings = null)

Update the given `ServiceLevelObjective`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `serviceLevelObjective` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceLevelObjective` Required. The `ServiceLevelObjective` to draw updates from. The given `name` specifies the resource to update. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceLevelObjective` | A Task containing the RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
    // Initialize request argument(s)
    ServiceLevelObjective serviceLevelObjective = new ServiceLevelObjective();
    // Make the request
    ServiceLevelObjective response = await serviceMonitoringServiceClient.UpdateServiceLevelObjectiveAsync(serviceLevelObjective);

### UpdateServiceLevelObjectiveAsync(ServiceLevelObjective, CancellationToken)

    public virtual Task<ServiceLevelObjective> UpdateServiceLevelObjectiveAsync(ServiceLevelObjective serviceLevelObjective, CancellationToken cancellationToken)

Update the given `ServiceLevelObjective`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `serviceLevelObjective` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceLevelObjective` Required. The `ServiceLevelObjective` to draw updates from. The given `name` specifies the resource to update. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceLevelObjective` | A Task containing the RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
    // Initialize request argument(s)
    ServiceLevelObjective serviceLevelObjective = new ServiceLevelObjective();
    // Make the request
    ServiceLevelObjective response = await serviceMonitoringServiceClient.UpdateServiceLevelObjectiveAsync(serviceLevelObjective);

### UpdateServiceLevelObjectiveAsync(UpdateServiceLevelObjectiveRequest, CallSettings)

    public virtual Task<ServiceLevelObjective> UpdateServiceLevelObjectiveAsync(UpdateServiceLevelObjectiveRequest request, CallSettings callSettings = null)

Update the given `ServiceLevelObjective`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.UpdateServiceLevelObjectiveRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceLevelObjective` | A Task containing the RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
    // Initialize request argument(s)
    UpdateServiceLevelObjectiveRequest request = new UpdateServiceLevelObjectiveRequest
    {
        ServiceLevelObjective = new ServiceLevelObjective(),
        UpdateMask = new FieldMask(),
    };
    // Make the request
    ServiceLevelObjective response = await serviceMonitoringServiceClient.UpdateServiceLevelObjectiveAsync(request);

### UpdateServiceLevelObjectiveAsync(UpdateServiceLevelObjectiveRequest, CancellationToken)

    public virtual Task<ServiceLevelObjective> UpdateServiceLevelObjectiveAsync(UpdateServiceLevelObjectiveRequest request, CancellationToken cancellationToken)

Update the given `ServiceLevelObjective`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.UpdateServiceLevelObjectiveRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.ServiceLevelObjective` | A Task containing the RPC response. |

**Example**

    // Create client
    ServiceMonitoringServiceClient serviceMonitoringServiceClient = await ServiceMonitoringServiceClient.CreateAsync();
    // Initialize request argument(s)
    UpdateServiceLevelObjectiveRequest request = new UpdateServiceLevelObjectiveRequest
    {
        ServiceLevelObjective = new ServiceLevelObjective(),
        UpdateMask = new FieldMask(),
    };
    // Make the request
    ServiceLevelObjective response = await serviceMonitoringServiceClient.UpdateServiceLevelObjectiveAsync(request);