1.0.0-beta25 (latest) 1.0.0-beta24

    public abstract class UserLicenseServiceClient

Reference documentation and code samples for the Discovery Engine v1beta API class UserLicenseServiceClient.

UserLicenseService client wrapper, for convenient use.

## Inheritance

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

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

[UserLicenseServiceClientImpl](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.UserLicenseServiceClientImpl)

## Namespace

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

## Assembly

Google.Cloud.DiscoveryEngine.V1Beta.dll

## Remarks

Service for managing User Licenses.

## Properties

### BatchUpdateUserLicensesOperationsClient

    public virtual OperationsClient BatchUpdateUserLicensesOperationsClient { get; }

The long-running operations client for `BatchUpdateUserLicenses`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClient.html` |   |

### DefaultEndpoint

    public static string DefaultEndpoint { get; }

The default endpoint for the UserLicenseService service, which is a host of "discoveryengine.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 UserLicenseService 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 UserLicenseService scopes are:

- <https://www.googleapis.com/auth/cloud-platform>
- <https://www.googleapis.com/auth/discoveryengine.readwrite>
- <https://www.googleapis.com/auth/discoveryengine.serving.readwrite>

### GrpcClient

    public virtual UserLicenseService.UserLicenseServiceClient GrpcClient { get; }

The underlying gRPC UserLicenseService client

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.UserLicenseServicehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.UserLicenseService.UserLicenseServiceClient` |   |

### LocationsClient

    public virtual LocationsClient LocationsClient { get; }

The [LocationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Location/latest/Google.Cloud.Location.LocationsClient.html) associated with this client.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Location/latest/Google.Cloud.Location.LocationsClient.html` |   |

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

### BatchUpdateUserLicenses(BatchUpdateUserLicensesRequest, CallSettings)

    public virtual Operation<BatchUpdateUserLicensesResponse, BatchUpdateUserLicensesMetadata> BatchUpdateUserLicenses(BatchUpdateUserLicensesRequest request, CallSettings callSettings = null)

Updates the User License.
This method is used for batch assign/unassign licenses to users.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.BatchUpdateUserLicensesRequest` 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.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.BatchUpdateUserLicensesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.BatchUpdateUserLicensesMetadata` | The RPC response. |

**Example**

    // Create client
    UserLicenseServiceClient userLicenseServiceClient = UserLicenseServiceClient.Create();
    // Initialize request argument(s)
    BatchUpdateUserLicensesRequest request = new BatchUpdateUserLicensesRequest
    {
        ParentAsUserStoreName = UserStoreName.FromProjectLocationUserStore("[PROJECT]", "[LOCATION]", "[USER_STORE]"),
        InlineSource = new BatchUpdateUserLicensesRequest.Types.InlineSource(),
        DeleteUnassignedUserLicenses = false,
    };
    // Make the request
    Operation<BatchUpdateUserLicensesResponse, BatchUpdateUserLicensesMetadata> response = userLicenseServiceClient.BatchUpdateUserLicenses(request);

    // Poll until the returned long-running operation is complete
    Operation<BatchUpdateUserLicensesResponse, BatchUpdateUserLicensesMetadata> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    BatchUpdateUserLicensesResponse result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<BatchUpdateUserLicensesResponse, BatchUpdateUserLicensesMetadata> retrievedResponse = userLicenseServiceClient.PollOnceBatchUpdateUserLicenses(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        BatchUpdateUserLicensesResponse retrievedResult = retrievedResponse.Result;
    }

### BatchUpdateUserLicensesAsync(BatchUpdateUserLicensesRequest, CallSettings)

    public virtual Task<Operation<BatchUpdateUserLicensesResponse, BatchUpdateUserLicensesMetadata>> BatchUpdateUserLicensesAsync(BatchUpdateUserLicensesRequest request, CallSettings callSettings = null)

Updates the User License.
This method is used for batch assign/unassign licenses to users.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.BatchUpdateUserLicensesRequest` 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.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.BatchUpdateUserLicensesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.BatchUpdateUserLicensesMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    UserLicenseServiceClient userLicenseServiceClient = await UserLicenseServiceClient.CreateAsync();
    // Initialize request argument(s)
    BatchUpdateUserLicensesRequest request = new BatchUpdateUserLicensesRequest
    {
        ParentAsUserStoreName = UserStoreName.FromProjectLocationUserStore("[PROJECT]", "[LOCATION]", "[USER_STORE]"),
        InlineSource = new BatchUpdateUserLicensesRequest.Types.InlineSource(),
        DeleteUnassignedUserLicenses = false,
    };
    // Make the request
    Operation<BatchUpdateUserLicensesResponse, BatchUpdateUserLicensesMetadata> response = await userLicenseServiceClient.BatchUpdateUserLicensesAsync(request);

    // Poll until the returned long-running operation is complete
    Operation<BatchUpdateUserLicensesResponse, BatchUpdateUserLicensesMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    BatchUpdateUserLicensesResponse result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<BatchUpdateUserLicensesResponse, BatchUpdateUserLicensesMetadata> retrievedResponse = await userLicenseServiceClient.PollOnceBatchUpdateUserLicensesAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        BatchUpdateUserLicensesResponse retrievedResult = retrievedResponse.Result;
    }

### BatchUpdateUserLicensesAsync(BatchUpdateUserLicensesRequest, CancellationToken)

    public virtual Task<Operation<BatchUpdateUserLicensesResponse, BatchUpdateUserLicensesMetadata>> BatchUpdateUserLicensesAsync(BatchUpdateUserLicensesRequest request, CancellationToken cancellationToken)

Updates the User License.
This method is used for batch assign/unassign licenses to users.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.BatchUpdateUserLicensesRequest` 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.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.BatchUpdateUserLicensesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.BatchUpdateUserLicensesMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    UserLicenseServiceClient userLicenseServiceClient = await UserLicenseServiceClient.CreateAsync();
    // Initialize request argument(s)
    BatchUpdateUserLicensesRequest request = new BatchUpdateUserLicensesRequest
    {
        ParentAsUserStoreName = UserStoreName.FromProjectLocationUserStore("[PROJECT]", "[LOCATION]", "[USER_STORE]"),
        InlineSource = new BatchUpdateUserLicensesRequest.Types.InlineSource(),
        DeleteUnassignedUserLicenses = false,
    };
    // Make the request
    Operation<BatchUpdateUserLicensesResponse, BatchUpdateUserLicensesMetadata> response = await userLicenseServiceClient.BatchUpdateUserLicensesAsync(request);

    // Poll until the returned long-running operation is complete
    Operation<BatchUpdateUserLicensesResponse, BatchUpdateUserLicensesMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    BatchUpdateUserLicensesResponse result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<BatchUpdateUserLicensesResponse, BatchUpdateUserLicensesMetadata> retrievedResponse = await userLicenseServiceClient.PollOnceBatchUpdateUserLicensesAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        BatchUpdateUserLicensesResponse retrievedResult = retrievedResponse.Result;
    }

### Create()

    public static UserLicenseServiceClient Create()

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

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

### CreateAsync(CancellationToken)

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

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

| **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.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.UserLicenseServiceClient` | The task representing the created [UserLicenseServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.UserLicenseServiceClient). |

### ListLicenseConfigsUsageStats(ListLicenseConfigsUsageStatsRequest, CallSettings)

    public virtual ListLicenseConfigsUsageStatsResponse ListLicenseConfigsUsageStats(ListLicenseConfigsUsageStatsRequest request, CallSettings callSettings = null)

Lists all the
\[LicenseConfigUsageStats\]\[google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats\]s
associated with the project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.ListLicenseConfigsUsageStatsRequest` 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.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.ListLicenseConfigsUsageStatsResponse` | The RPC response. |

**Example**

    // Create client
    UserLicenseServiceClient userLicenseServiceClient = UserLicenseServiceClient.Create();
    // Initialize request argument(s)
    ListLicenseConfigsUsageStatsRequest request = new ListLicenseConfigsUsageStatsRequest
    {
        ParentAsUserStoreName = UserStoreName.FromProjectLocationUserStore("[PROJECT]", "[LOCATION]", "[USER_STORE]"),
    };
    // Make the request
    ListLicenseConfigsUsageStatsResponse response = userLicenseServiceClient.ListLicenseConfigsUsageStats(request);

### ListLicenseConfigsUsageStats(UserStoreName, CallSettings)

    public virtual ListLicenseConfigsUsageStatsResponse ListLicenseConfigsUsageStats(UserStoreName parent, CallSettings callSettings = null)

Lists all the
\[LicenseConfigUsageStats\]\[google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats\]s
associated with the project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.UserStoreName` Required. The parent branch resource name, such as `projects/{project}/locations/{location}/userStores/{user_store_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.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.ListLicenseConfigsUsageStatsResponse` | The RPC response. |

**Example**

    // Create client
    UserLicenseServiceClient userLicenseServiceClient = UserLicenseServiceClient.Create();
    // Initialize request argument(s)
    UserStoreName parent = UserStoreName.FromProjectLocationUserStore("[PROJECT]", "[LOCATION]", "[USER_STORE]");
    // Make the request
    ListLicenseConfigsUsageStatsResponse response = userLicenseServiceClient.ListLicenseConfigsUsageStats(parent);

### ListLicenseConfigsUsageStats(string, CallSettings)

    public virtual ListLicenseConfigsUsageStatsResponse ListLicenseConfigsUsageStats(string parent, CallSettings callSettings = null)

Lists all the
\[LicenseConfigUsageStats\]\[google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats\]s
associated with the project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The parent branch resource name, such as `projects/{project}/locations/{location}/userStores/{user_store_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.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.ListLicenseConfigsUsageStatsResponse` | The RPC response. |

**Example**

    // Create client
    UserLicenseServiceClient userLicenseServiceClient = UserLicenseServiceClient.Create();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]/userStores/[USER_STORE]";
    // Make the request
    ListLicenseConfigsUsageStatsResponse response = userLicenseServiceClient.ListLicenseConfigsUsageStats(parent);

### ListLicenseConfigsUsageStatsAsync(ListLicenseConfigsUsageStatsRequest, CallSettings)

    public virtual Task<ListLicenseConfigsUsageStatsResponse> ListLicenseConfigsUsageStatsAsync(ListLicenseConfigsUsageStatsRequest request, CallSettings callSettings = null)

Lists all the
\[LicenseConfigUsageStats\]\[google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats\]s
associated with the project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.ListLicenseConfigsUsageStatsRequest` 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.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.ListLicenseConfigsUsageStatsResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    UserLicenseServiceClient userLicenseServiceClient = await UserLicenseServiceClient.CreateAsync();
    // Initialize request argument(s)
    ListLicenseConfigsUsageStatsRequest request = new ListLicenseConfigsUsageStatsRequest
    {
        ParentAsUserStoreName = UserStoreName.FromProjectLocationUserStore("[PROJECT]", "[LOCATION]", "[USER_STORE]"),
    };
    // Make the request
    ListLicenseConfigsUsageStatsResponse response = await userLicenseServiceClient.ListLicenseConfigsUsageStatsAsync(request);

### ListLicenseConfigsUsageStatsAsync(ListLicenseConfigsUsageStatsRequest, CancellationToken)

    public virtual Task<ListLicenseConfigsUsageStatsResponse> ListLicenseConfigsUsageStatsAsync(ListLicenseConfigsUsageStatsRequest request, CancellationToken cancellationToken)

Lists all the
\[LicenseConfigUsageStats\]\[google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats\]s
associated with the project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.ListLicenseConfigsUsageStatsRequest` 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.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.ListLicenseConfigsUsageStatsResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    UserLicenseServiceClient userLicenseServiceClient = await UserLicenseServiceClient.CreateAsync();
    // Initialize request argument(s)
    ListLicenseConfigsUsageStatsRequest request = new ListLicenseConfigsUsageStatsRequest
    {
        ParentAsUserStoreName = UserStoreName.FromProjectLocationUserStore("[PROJECT]", "[LOCATION]", "[USER_STORE]"),
    };
    // Make the request
    ListLicenseConfigsUsageStatsResponse response = await userLicenseServiceClient.ListLicenseConfigsUsageStatsAsync(request);

### ListLicenseConfigsUsageStatsAsync(UserStoreName, CallSettings)

    public virtual Task<ListLicenseConfigsUsageStatsResponse> ListLicenseConfigsUsageStatsAsync(UserStoreName parent, CallSettings callSettings = null)

Lists all the
\[LicenseConfigUsageStats\]\[google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats\]s
associated with the project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.UserStoreName` Required. The parent branch resource name, such as `projects/{project}/locations/{location}/userStores/{user_store_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.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.ListLicenseConfigsUsageStatsResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    UserLicenseServiceClient userLicenseServiceClient = await UserLicenseServiceClient.CreateAsync();
    // Initialize request argument(s)
    UserStoreName parent = UserStoreName.FromProjectLocationUserStore("[PROJECT]", "[LOCATION]", "[USER_STORE]");
    // Make the request
    ListLicenseConfigsUsageStatsResponse response = await userLicenseServiceClient.ListLicenseConfigsUsageStatsAsync(parent);

### ListLicenseConfigsUsageStatsAsync(UserStoreName, CancellationToken)

    public virtual Task<ListLicenseConfigsUsageStatsResponse> ListLicenseConfigsUsageStatsAsync(UserStoreName parent, CancellationToken cancellationToken)

Lists all the
\[LicenseConfigUsageStats\]\[google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats\]s
associated with the project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.UserStoreName` Required. The parent branch resource name, such as `projects/{project}/locations/{location}/userStores/{user_store_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.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.ListLicenseConfigsUsageStatsResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    UserLicenseServiceClient userLicenseServiceClient = await UserLicenseServiceClient.CreateAsync();
    // Initialize request argument(s)
    UserStoreName parent = UserStoreName.FromProjectLocationUserStore("[PROJECT]", "[LOCATION]", "[USER_STORE]");
    // Make the request
    ListLicenseConfigsUsageStatsResponse response = await userLicenseServiceClient.ListLicenseConfigsUsageStatsAsync(parent);

### ListLicenseConfigsUsageStatsAsync(string, CallSettings)

    public virtual Task<ListLicenseConfigsUsageStatsResponse> ListLicenseConfigsUsageStatsAsync(string parent, CallSettings callSettings = null)

Lists all the
\[LicenseConfigUsageStats\]\[google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats\]s
associated with the project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The parent branch resource name, such as `projects/{project}/locations/{location}/userStores/{user_store_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.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.ListLicenseConfigsUsageStatsResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    UserLicenseServiceClient userLicenseServiceClient = await UserLicenseServiceClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]/userStores/[USER_STORE]";
    // Make the request
    ListLicenseConfigsUsageStatsResponse response = await userLicenseServiceClient.ListLicenseConfigsUsageStatsAsync(parent);

### ListLicenseConfigsUsageStatsAsync(string, CancellationToken)

    public virtual Task<ListLicenseConfigsUsageStatsResponse> ListLicenseConfigsUsageStatsAsync(string parent, CancellationToken cancellationToken)

Lists all the
\[LicenseConfigUsageStats\]\[google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats\]s
associated with the project.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The parent branch resource name, such as `projects/{project}/locations/{location}/userStores/{user_store_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.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.ListLicenseConfigsUsageStatsResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    UserLicenseServiceClient userLicenseServiceClient = await UserLicenseServiceClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]/userStores/[USER_STORE]";
    // Make the request
    ListLicenseConfigsUsageStatsResponse response = await userLicenseServiceClient.ListLicenseConfigsUsageStatsAsync(parent);

### ListUserLicenses(ListUserLicensesRequest, CallSettings)

    public virtual PagedEnumerable<ListUserLicensesResponse, UserLicense> ListUserLicenses(ListUserLicensesRequest request, CallSettings callSettings = null)

Lists the User Licenses.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.ListUserLicensesRequest` 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.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.ListUserLicensesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.UserLicense` | A pageable sequence of [UserLicense](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.UserLicense) resources. |

**Example**

    // Create client
    UserLicenseServiceClient userLicenseServiceClient = UserLicenseServiceClient.Create();
    // Initialize request argument(s)
    ListUserLicensesRequest request = new ListUserLicensesRequest
    {
        ParentAsUserStoreName = UserStoreName.FromProjectLocationUserStore("[PROJECT]", "[LOCATION]", "[USER_STORE]"),
        Filter = "",
        OrderBy = "",
    };
    // Make the request
    PagedEnumerable<ListUserLicensesResponse, UserLicense> response = userLicenseServiceClient.ListUserLicenses(request);

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

### ListUserLicenses(UserStoreName, string, int?, CallSettings)

    public virtual PagedEnumerable<ListUserLicensesResponse, UserLicense> ListUserLicenses(UserStoreName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists the User Licenses.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.UserStoreName` Required. The parent \[UserStore\]\[google.cloud.discoveryengine.v1beta.UserStore\] resource name, format: `projects/{project}/locations/{location}/userStores/{user_store_id}`. |
| `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.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.ListUserLicensesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.UserLicense` | A pageable sequence of [UserLicense](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.UserLicense) resources. |

**Example**

    // Create client
    UserLicenseServiceClient userLicenseServiceClient = UserLicenseServiceClient.Create();
    // Initialize request argument(s)
    UserStoreName parent = UserStoreName.FromProjectLocationUserStore("[PROJECT]", "[LOCATION]", "[USER_STORE]");
    // Make the request
    PagedEnumerable<ListUserLicensesResponse, UserLicense> response = userLicenseServiceClient.ListUserLicenses(parent);

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

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

    public virtual PagedEnumerable<ListUserLicensesResponse, UserLicense> ListUserLicenses(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists the User Licenses.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The parent \[UserStore\]\[google.cloud.discoveryengine.v1beta.UserStore\] resource name, format: `projects/{project}/locations/{location}/userStores/{user_store_id}`. |
| `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.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.ListUserLicensesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.UserLicense` | A pageable sequence of [UserLicense](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.UserLicense) resources. |

**Example**

    // Create client
    UserLicenseServiceClient userLicenseServiceClient = UserLicenseServiceClient.Create();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]/userStores/[USER_STORE]";
    // Make the request
    PagedEnumerable<ListUserLicensesResponse, UserLicense> response = userLicenseServiceClient.ListUserLicenses(parent);

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

### ListUserLicensesAsync(ListUserLicensesRequest, CallSettings)

    public virtual PagedAsyncEnumerable<ListUserLicensesResponse, UserLicense> ListUserLicensesAsync(ListUserLicensesRequest request, CallSettings callSettings = null)

Lists the User Licenses.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.ListUserLicensesRequest` 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.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.ListUserLicensesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.UserLicense` | A pageable asynchronous sequence of [UserLicense](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.UserLicense) resources. |

**Example**

    // Create client
    UserLicenseServiceClient userLicenseServiceClient = await UserLicenseServiceClient.CreateAsync();
    // Initialize request argument(s)
    ListUserLicensesRequest request = new ListUserLicensesRequest
    {
        ParentAsUserStoreName = UserStoreName.FromProjectLocationUserStore("[PROJECT]", "[LOCATION]", "[USER_STORE]"),
        Filter = "",
        OrderBy = "",
    };
    // Make the request
    PagedAsyncEnumerable<ListUserLicensesResponse, UserLicense> response = userLicenseServiceClient.ListUserLicensesAsync(request);

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

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

### ListUserLicensesAsync(UserStoreName, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListUserLicensesResponse, UserLicense> ListUserLicensesAsync(UserStoreName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists the User Licenses.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.UserStoreName` Required. The parent \[UserStore\]\[google.cloud.discoveryengine.v1beta.UserStore\] resource name, format: `projects/{project}/locations/{location}/userStores/{user_store_id}`. |
| `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.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.ListUserLicensesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.UserLicense` | A pageable asynchronous sequence of [UserLicense](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.UserLicense) resources. |

**Example**

    // Create client
    UserLicenseServiceClient userLicenseServiceClient = await UserLicenseServiceClient.CreateAsync();
    // Initialize request argument(s)
    UserStoreName parent = UserStoreName.FromProjectLocationUserStore("[PROJECT]", "[LOCATION]", "[USER_STORE]");
    // Make the request
    PagedAsyncEnumerable<ListUserLicensesResponse, UserLicense> response = userLicenseServiceClient.ListUserLicensesAsync(parent);

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

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

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

    public virtual PagedAsyncEnumerable<ListUserLicensesResponse, UserLicense> ListUserLicensesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists the User Licenses.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The parent \[UserStore\]\[google.cloud.discoveryengine.v1beta.UserStore\] resource name, format: `projects/{project}/locations/{location}/userStores/{user_store_id}`. |
| `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.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.ListUserLicensesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.UserLicense` | A pageable asynchronous sequence of [UserLicense](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.UserLicense) resources. |

**Example**

    // Create client
    UserLicenseServiceClient userLicenseServiceClient = await UserLicenseServiceClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]/userStores/[USER_STORE]";
    // Make the request
    PagedAsyncEnumerable<ListUserLicensesResponse, UserLicense> response = userLicenseServiceClient.ListUserLicensesAsync(parent);

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

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

### PollOnceBatchUpdateUserLicenses(string, CallSettings)

    public virtual Operation<BatchUpdateUserLicensesResponse, BatchUpdateUserLicensesMetadata> PollOnceBatchUpdateUserLicenses(string operationName, CallSettings callSettings = null)

Poll an operation once, using an `operationName` from a previous invocation of
`BatchUpdateUserLicenses`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of a previously invoked operation. Must not be `null` or empty. |
| `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.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.BatchUpdateUserLicensesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.BatchUpdateUserLicensesMetadata` | The result of polling the operation. |

### PollOnceBatchUpdateUserLicensesAsync(string, CallSettings)

    public virtual Task<Operation<BatchUpdateUserLicensesResponse, BatchUpdateUserLicensesMetadata>> PollOnceBatchUpdateUserLicensesAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an `operationName` from a previous invocation of
`BatchUpdateUserLicenses`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of a previously invoked operation. Must not be `null` or empty. |
| `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.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.BatchUpdateUserLicensesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.BatchUpdateUserLicensesMetadata` | A task representing the result of polling the operation. |

### ShutdownDefaultChannelsAsync()

    public static Task ShutdownDefaultChannelsAsync()

Shuts down any channels automatically created by [Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.UserLicenseServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_UserLicenseServiceClient_Create) and
[CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.UserLicenseServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_UserLicenseServiceClient_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.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.UserLicenseServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_UserLicenseServiceClient_Create) and
[CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.UserLicenseServiceClient#Google_Cloud_DiscoveryEngine_V1Beta_UserLicenseServiceClient_CreateAsync_System_Threading_CancellationToken_) will create new channels, which could in turn be shut down
by another call to this method.