1.0.0-beta87 (latest) 1.0.0-beta86

    public abstract class MemoryBankServiceClient

Reference documentation and code samples for the Vertex AI v1beta1 API class MemoryBankServiceClient.

MemoryBankService client wrapper, for convenient use.

## Inheritance

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

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

[MemoryBankServiceClientImpl](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.MemoryBankServiceClientImpl)

## Namespace

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

## Assembly

Google.Cloud.AIPlatform.V1Beta1.dll

## Remarks

A service for managing memories for LLM applications.

## Properties

### CreateMemoryOperationsClient

    public virtual OperationsClient CreateMemoryOperationsClient { get; }

The long-running operations client for `CreateMemory`.

| **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 MemoryBankService service, which is a host of "aiplatform.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 MemoryBankService 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 MemoryBankService scopes are:

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

### DeleteMemoryOperationsClient

    public virtual OperationsClient DeleteMemoryOperationsClient { get; }

The long-running operations client for `DeleteMemory`.

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

### GenerateMemoriesOperationsClient

    public virtual OperationsClient GenerateMemoriesOperationsClient { get; }

The long-running operations client for `GenerateMemories`.

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

### GrpcClient

    public virtual MemoryBankService.MemoryBankServiceClient GrpcClient { get; }

The underlying gRPC MemoryBankService client

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.MemoryBankServicehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.MemoryBankService.MemoryBankServiceClient` |   |

### IAMPolicyClient

    public virtual IAMPolicyClient IAMPolicyClient { get; }

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

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

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

### UpdateMemoryOperationsClient

    public virtual OperationsClient UpdateMemoryOperationsClient { get; }

The long-running operations client for `UpdateMemory`.

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

## Methods

### Create()

    public static MemoryBankServiceClient Create()

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

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

### CreateAsync(CancellationToken)

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

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

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

### CreateMemory(CreateMemoryRequest, CallSettings)

    public virtual Operation<Memory, CreateMemoryOperationMetadata> CreateMemory(CreateMemoryRequest request, CallSettings callSettings = null)

Create a Memory.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.CreateMemoryRequest` 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.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.Memoryhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.CreateMemoryOperationMetadata` | The RPC response. |

**Example**

    // Create client
    MemoryBankServiceClient memoryBankServiceClient = MemoryBankServiceClient.Create();
    // Initialize request argument(s)
    CreateMemoryRequest request = new CreateMemoryRequest
    {
        ParentAsReasoningEngineName = ReasoningEngineName.FromProjectLocationReasoningEngine("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]"),
        Memory = new Memory(),
        MemoryId = "",
    };
    // Make the request
    Operation<Memory, CreateMemoryOperationMetadata> response = memoryBankServiceClient.CreateMemory(request);

    // Poll until the returned long-running operation is complete
    Operation<Memory, CreateMemoryOperationMetadata> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    Memory 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<Memory, CreateMemoryOperationMetadata> retrievedResponse = memoryBankServiceClient.PollOnceCreateMemory(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Memory retrievedResult = retrievedResponse.Result;
    }

### CreateMemory(ReasoningEngineName, Memory, string, CallSettings)

    public virtual Operation<Memory, CreateMemoryOperationMetadata> CreateMemory(ReasoningEngineName parent, Memory memory, string memoryId, CallSettings callSettings = null)

Create a Memory.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.ReasoningEngineName` Required. The resource name of the ReasoningEngine to create the Memory under. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` |
| `memory` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.Memory` Required. The Memory to be created. |
| `memoryId` | `https://learn.microsoft.com/dotnet/api/system.string` Optional. The user defined ID to use for memory, which will become the final component of the memory resource name. If not provided, Vertex AI will generate a value for this ID. This value may be up to 63 characters, and valid characters are `[a-z0-9-]`. The first character must be a letter, and the last character must be a letter or number. |
| `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.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.Memoryhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.CreateMemoryOperationMetadata` | The RPC response. |

**Example**

    // Create client
    MemoryBankServiceClient memoryBankServiceClient = MemoryBankServiceClient.Create();
    // Initialize request argument(s)
    ReasoningEngineName parent = ReasoningEngineName.FromProjectLocationReasoningEngine("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]");
    Memory memory = new Memory();
    string memoryId = "";
    // Make the request
    Operation<Memory, CreateMemoryOperationMetadata> response = memoryBankServiceClient.CreateMemory(parent, memory, memoryId);

    // Poll until the returned long-running operation is complete
    Operation<Memory, CreateMemoryOperationMetadata> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    Memory 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<Memory, CreateMemoryOperationMetadata> retrievedResponse = memoryBankServiceClient.PollOnceCreateMemory(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Memory retrievedResult = retrievedResponse.Result;
    }

### CreateMemory(string, Memory, string, CallSettings)

    public virtual Operation<Memory, CreateMemoryOperationMetadata> CreateMemory(string parent, Memory memory, string memoryId, CallSettings callSettings = null)

Create a Memory.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The resource name of the ReasoningEngine to create the Memory under. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` |
| `memory` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.Memory` Required. The Memory to be created. |
| `memoryId` | `https://learn.microsoft.com/dotnet/api/system.string` Optional. The user defined ID to use for memory, which will become the final component of the memory resource name. If not provided, Vertex AI will generate a value for this ID. This value may be up to 63 characters, and valid characters are `[a-z0-9-]`. The first character must be a letter, and the last character must be a letter or number. |
| `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.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.Memoryhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.CreateMemoryOperationMetadata` | The RPC response. |

**Example**

    // Create client
    MemoryBankServiceClient memoryBankServiceClient = MemoryBankServiceClient.Create();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]/reasoningEngines/[REASONING_ENGINE]";
    Memory memory = new Memory();
    string memoryId = "";
    // Make the request
    Operation<Memory, CreateMemoryOperationMetadata> response = memoryBankServiceClient.CreateMemory(parent, memory, memoryId);

    // Poll until the returned long-running operation is complete
    Operation<Memory, CreateMemoryOperationMetadata> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    Memory 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<Memory, CreateMemoryOperationMetadata> retrievedResponse = memoryBankServiceClient.PollOnceCreateMemory(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Memory retrievedResult = retrievedResponse.Result;
    }

### CreateMemoryAsync(CreateMemoryRequest, CallSettings)

    public virtual Task<Operation<Memory, CreateMemoryOperationMetadata>> CreateMemoryAsync(CreateMemoryRequest request, CallSettings callSettings = null)

Create a Memory.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.CreateMemoryRequest` 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.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.Memoryhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.CreateMemoryOperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    MemoryBankServiceClient memoryBankServiceClient = await MemoryBankServiceClient.CreateAsync();
    // Initialize request argument(s)
    CreateMemoryRequest request = new CreateMemoryRequest
    {
        ParentAsReasoningEngineName = ReasoningEngineName.FromProjectLocationReasoningEngine("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]"),
        Memory = new Memory(),
        MemoryId = "",
    };
    // Make the request
    Operation<Memory, CreateMemoryOperationMetadata> response = await memoryBankServiceClient.CreateMemoryAsync(request);

    // Poll until the returned long-running operation is complete
    Operation<Memory, CreateMemoryOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Memory 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<Memory, CreateMemoryOperationMetadata> retrievedResponse = await memoryBankServiceClient.PollOnceCreateMemoryAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Memory retrievedResult = retrievedResponse.Result;
    }

### CreateMemoryAsync(CreateMemoryRequest, CancellationToken)

    public virtual Task<Operation<Memory, CreateMemoryOperationMetadata>> CreateMemoryAsync(CreateMemoryRequest request, CancellationToken cancellationToken)

Create a Memory.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.CreateMemoryRequest` 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.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.Memoryhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.CreateMemoryOperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    MemoryBankServiceClient memoryBankServiceClient = await MemoryBankServiceClient.CreateAsync();
    // Initialize request argument(s)
    CreateMemoryRequest request = new CreateMemoryRequest
    {
        ParentAsReasoningEngineName = ReasoningEngineName.FromProjectLocationReasoningEngine("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]"),
        Memory = new Memory(),
        MemoryId = "",
    };
    // Make the request
    Operation<Memory, CreateMemoryOperationMetadata> response = await memoryBankServiceClient.CreateMemoryAsync(request);

    // Poll until the returned long-running operation is complete
    Operation<Memory, CreateMemoryOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Memory 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<Memory, CreateMemoryOperationMetadata> retrievedResponse = await memoryBankServiceClient.PollOnceCreateMemoryAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Memory retrievedResult = retrievedResponse.Result;
    }

### CreateMemoryAsync(ReasoningEngineName, Memory, string, CallSettings)

    public virtual Task<Operation<Memory, CreateMemoryOperationMetadata>> CreateMemoryAsync(ReasoningEngineName parent, Memory memory, string memoryId, CallSettings callSettings = null)

Create a Memory.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.ReasoningEngineName` Required. The resource name of the ReasoningEngine to create the Memory under. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` |
| `memory` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.Memory` Required. The Memory to be created. |
| `memoryId` | `https://learn.microsoft.com/dotnet/api/system.string` Optional. The user defined ID to use for memory, which will become the final component of the memory resource name. If not provided, Vertex AI will generate a value for this ID. This value may be up to 63 characters, and valid characters are `[a-z0-9-]`. The first character must be a letter, and the last character must be a letter or number. |
| `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.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.Memoryhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.CreateMemoryOperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    MemoryBankServiceClient memoryBankServiceClient = await MemoryBankServiceClient.CreateAsync();
    // Initialize request argument(s)
    ReasoningEngineName parent = ReasoningEngineName.FromProjectLocationReasoningEngine("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]");
    Memory memory = new Memory();
    string memoryId = "";
    // Make the request
    Operation<Memory, CreateMemoryOperationMetadata> response = await memoryBankServiceClient.CreateMemoryAsync(parent, memory, memoryId);

    // Poll until the returned long-running operation is complete
    Operation<Memory, CreateMemoryOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Memory 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<Memory, CreateMemoryOperationMetadata> retrievedResponse = await memoryBankServiceClient.PollOnceCreateMemoryAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Memory retrievedResult = retrievedResponse.Result;
    }

### CreateMemoryAsync(ReasoningEngineName, Memory, string, CancellationToken)

    public virtual Task<Operation<Memory, CreateMemoryOperationMetadata>> CreateMemoryAsync(ReasoningEngineName parent, Memory memory, string memoryId, CancellationToken cancellationToken)

Create a Memory.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.ReasoningEngineName` Required. The resource name of the ReasoningEngine to create the Memory under. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` |
| `memory` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.Memory` Required. The Memory to be created. |
| `memoryId` | `https://learn.microsoft.com/dotnet/api/system.string` Optional. The user defined ID to use for memory, which will become the final component of the memory resource name. If not provided, Vertex AI will generate a value for this ID. This value may be up to 63 characters, and valid characters are `[a-z0-9-]`. The first character must be a letter, and the last character must be a letter or number. |
| `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.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.Memoryhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.CreateMemoryOperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    MemoryBankServiceClient memoryBankServiceClient = await MemoryBankServiceClient.CreateAsync();
    // Initialize request argument(s)
    ReasoningEngineName parent = ReasoningEngineName.FromProjectLocationReasoningEngine("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]");
    Memory memory = new Memory();
    string memoryId = "";
    // Make the request
    Operation<Memory, CreateMemoryOperationMetadata> response = await memoryBankServiceClient.CreateMemoryAsync(parent, memory, memoryId);

    // Poll until the returned long-running operation is complete
    Operation<Memory, CreateMemoryOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Memory 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<Memory, CreateMemoryOperationMetadata> retrievedResponse = await memoryBankServiceClient.PollOnceCreateMemoryAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Memory retrievedResult = retrievedResponse.Result;
    }

### CreateMemoryAsync(string, Memory, string, CallSettings)

    public virtual Task<Operation<Memory, CreateMemoryOperationMetadata>> CreateMemoryAsync(string parent, Memory memory, string memoryId, CallSettings callSettings = null)

Create a Memory.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The resource name of the ReasoningEngine to create the Memory under. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` |
| `memory` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.Memory` Required. The Memory to be created. |
| `memoryId` | `https://learn.microsoft.com/dotnet/api/system.string` Optional. The user defined ID to use for memory, which will become the final component of the memory resource name. If not provided, Vertex AI will generate a value for this ID. This value may be up to 63 characters, and valid characters are `[a-z0-9-]`. The first character must be a letter, and the last character must be a letter or number. |
| `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.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.Memoryhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.CreateMemoryOperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    MemoryBankServiceClient memoryBankServiceClient = await MemoryBankServiceClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]/reasoningEngines/[REASONING_ENGINE]";
    Memory memory = new Memory();
    string memoryId = "";
    // Make the request
    Operation<Memory, CreateMemoryOperationMetadata> response = await memoryBankServiceClient.CreateMemoryAsync(parent, memory, memoryId);

    // Poll until the returned long-running operation is complete
    Operation<Memory, CreateMemoryOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Memory 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<Memory, CreateMemoryOperationMetadata> retrievedResponse = await memoryBankServiceClient.PollOnceCreateMemoryAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Memory retrievedResult = retrievedResponse.Result;
    }

### CreateMemoryAsync(string, Memory, string, CancellationToken)

    public virtual Task<Operation<Memory, CreateMemoryOperationMetadata>> CreateMemoryAsync(string parent, Memory memory, string memoryId, CancellationToken cancellationToken)

Create a Memory.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The resource name of the ReasoningEngine to create the Memory under. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` |
| `memory` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.Memory` Required. The Memory to be created. |
| `memoryId` | `https://learn.microsoft.com/dotnet/api/system.string` Optional. The user defined ID to use for memory, which will become the final component of the memory resource name. If not provided, Vertex AI will generate a value for this ID. This value may be up to 63 characters, and valid characters are `[a-z0-9-]`. The first character must be a letter, and the last character must be a letter or number. |
| `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.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.Memoryhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.CreateMemoryOperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    MemoryBankServiceClient memoryBankServiceClient = await MemoryBankServiceClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]/reasoningEngines/[REASONING_ENGINE]";
    Memory memory = new Memory();
    string memoryId = "";
    // Make the request
    Operation<Memory, CreateMemoryOperationMetadata> response = await memoryBankServiceClient.CreateMemoryAsync(parent, memory, memoryId);

    // Poll until the returned long-running operation is complete
    Operation<Memory, CreateMemoryOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Memory 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<Memory, CreateMemoryOperationMetadata> retrievedResponse = await memoryBankServiceClient.PollOnceCreateMemoryAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Memory retrievedResult = retrievedResponse.Result;
    }

### DeleteMemory(DeleteMemoryRequest, CallSettings)

    public virtual Operation<Empty, DeleteMemoryOperationMetadata> DeleteMemory(DeleteMemoryRequest request, CallSettings callSettings = null)

Delete a Memory.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.DeleteMemoryRequest` 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://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.DeleteMemoryOperationMetadata` | The RPC response. |

**Example**

    // Create client
    MemoryBankServiceClient memoryBankServiceClient = MemoryBankServiceClient.Create();
    // Initialize request argument(s)
    DeleteMemoryRequest request = new DeleteMemoryRequest
    {
        MemoryName = MemoryName.FromProjectLocationReasoningEngineMemory("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]", "[MEMORY]"),
    };
    // Make the request
    Operation<Empty, DeleteMemoryOperationMetadata> response = memoryBankServiceClient.DeleteMemory(request);

    // Poll until the returned long-running operation is complete
    Operation<Empty, DeleteMemoryOperationMetadata> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    Empty 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<Empty, DeleteMemoryOperationMetadata> retrievedResponse = memoryBankServiceClient.PollOnceDeleteMemory(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Empty retrievedResult = retrievedResponse.Result;
    }

### DeleteMemory(MemoryName, CallSettings)

    public virtual Operation<Empty, DeleteMemoryOperationMetadata> DeleteMemory(MemoryName name, CallSettings callSettings = null)

Delete a Memory.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.MemoryName` Required. The resource name of the Memory to delete. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/memories/{memory}` |
| `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://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.DeleteMemoryOperationMetadata` | The RPC response. |

**Example**

    // Create client
    MemoryBankServiceClient memoryBankServiceClient = MemoryBankServiceClient.Create();
    // Initialize request argument(s)
    MemoryName name = MemoryName.FromProjectLocationReasoningEngineMemory("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]", "[MEMORY]");
    // Make the request
    Operation<Empty, DeleteMemoryOperationMetadata> response = memoryBankServiceClient.DeleteMemory(name);

    // Poll until the returned long-running operation is complete
    Operation<Empty, DeleteMemoryOperationMetadata> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    Empty 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<Empty, DeleteMemoryOperationMetadata> retrievedResponse = memoryBankServiceClient.PollOnceDeleteMemory(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Empty retrievedResult = retrievedResponse.Result;
    }

### DeleteMemory(string, CallSettings)

    public virtual Operation<Empty, DeleteMemoryOperationMetadata> DeleteMemory(string name, CallSettings callSettings = null)

Delete a Memory.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The resource name of the Memory to delete. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/memories/{memory}` |
| `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://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.DeleteMemoryOperationMetadata` | The RPC response. |

**Example**

    // Create client
    MemoryBankServiceClient memoryBankServiceClient = MemoryBankServiceClient.Create();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/reasoningEngines/[REASONING_ENGINE]/memories/[MEMORY]";
    // Make the request
    Operation<Empty, DeleteMemoryOperationMetadata> response = memoryBankServiceClient.DeleteMemory(name);

    // Poll until the returned long-running operation is complete
    Operation<Empty, DeleteMemoryOperationMetadata> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    Empty 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<Empty, DeleteMemoryOperationMetadata> retrievedResponse = memoryBankServiceClient.PollOnceDeleteMemory(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Empty retrievedResult = retrievedResponse.Result;
    }

### DeleteMemoryAsync(DeleteMemoryRequest, CallSettings)

    public virtual Task<Operation<Empty, DeleteMemoryOperationMetadata>> DeleteMemoryAsync(DeleteMemoryRequest request, CallSettings callSettings = null)

Delete a Memory.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.DeleteMemoryRequest` 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://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.DeleteMemoryOperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    MemoryBankServiceClient memoryBankServiceClient = await MemoryBankServiceClient.CreateAsync();
    // Initialize request argument(s)
    DeleteMemoryRequest request = new DeleteMemoryRequest
    {
        MemoryName = MemoryName.FromProjectLocationReasoningEngineMemory("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]", "[MEMORY]"),
    };
    // Make the request
    Operation<Empty, DeleteMemoryOperationMetadata> response = await memoryBankServiceClient.DeleteMemoryAsync(request);

    // Poll until the returned long-running operation is complete
    Operation<Empty, DeleteMemoryOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Empty 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<Empty, DeleteMemoryOperationMetadata> retrievedResponse = await memoryBankServiceClient.PollOnceDeleteMemoryAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Empty retrievedResult = retrievedResponse.Result;
    }

### DeleteMemoryAsync(DeleteMemoryRequest, CancellationToken)

    public virtual Task<Operation<Empty, DeleteMemoryOperationMetadata>> DeleteMemoryAsync(DeleteMemoryRequest request, CancellationToken cancellationToken)

Delete a Memory.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.DeleteMemoryRequest` 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://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.DeleteMemoryOperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    MemoryBankServiceClient memoryBankServiceClient = await MemoryBankServiceClient.CreateAsync();
    // Initialize request argument(s)
    DeleteMemoryRequest request = new DeleteMemoryRequest
    {
        MemoryName = MemoryName.FromProjectLocationReasoningEngineMemory("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]", "[MEMORY]"),
    };
    // Make the request
    Operation<Empty, DeleteMemoryOperationMetadata> response = await memoryBankServiceClient.DeleteMemoryAsync(request);

    // Poll until the returned long-running operation is complete
    Operation<Empty, DeleteMemoryOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Empty 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<Empty, DeleteMemoryOperationMetadata> retrievedResponse = await memoryBankServiceClient.PollOnceDeleteMemoryAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Empty retrievedResult = retrievedResponse.Result;
    }

### DeleteMemoryAsync(MemoryName, CallSettings)

    public virtual Task<Operation<Empty, DeleteMemoryOperationMetadata>> DeleteMemoryAsync(MemoryName name, CallSettings callSettings = null)

Delete a Memory.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.MemoryName` Required. The resource name of the Memory to delete. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/memories/{memory}` |
| `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://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.DeleteMemoryOperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    MemoryBankServiceClient memoryBankServiceClient = await MemoryBankServiceClient.CreateAsync();
    // Initialize request argument(s)
    MemoryName name = MemoryName.FromProjectLocationReasoningEngineMemory("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]", "[MEMORY]");
    // Make the request
    Operation<Empty, DeleteMemoryOperationMetadata> response = await memoryBankServiceClient.DeleteMemoryAsync(name);

    // Poll until the returned long-running operation is complete
    Operation<Empty, DeleteMemoryOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Empty 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<Empty, DeleteMemoryOperationMetadata> retrievedResponse = await memoryBankServiceClient.PollOnceDeleteMemoryAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Empty retrievedResult = retrievedResponse.Result;
    }

### DeleteMemoryAsync(MemoryName, CancellationToken)

    public virtual Task<Operation<Empty, DeleteMemoryOperationMetadata>> DeleteMemoryAsync(MemoryName name, CancellationToken cancellationToken)

Delete a Memory.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.MemoryName` Required. The resource name of the Memory to delete. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/memories/{memory}` |
| `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://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.DeleteMemoryOperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    MemoryBankServiceClient memoryBankServiceClient = await MemoryBankServiceClient.CreateAsync();
    // Initialize request argument(s)
    MemoryName name = MemoryName.FromProjectLocationReasoningEngineMemory("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]", "[MEMORY]");
    // Make the request
    Operation<Empty, DeleteMemoryOperationMetadata> response = await memoryBankServiceClient.DeleteMemoryAsync(name);

    // Poll until the returned long-running operation is complete
    Operation<Empty, DeleteMemoryOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Empty 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<Empty, DeleteMemoryOperationMetadata> retrievedResponse = await memoryBankServiceClient.PollOnceDeleteMemoryAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Empty retrievedResult = retrievedResponse.Result;
    }

### DeleteMemoryAsync(string, CallSettings)

    public virtual Task<Operation<Empty, DeleteMemoryOperationMetadata>> DeleteMemoryAsync(string name, CallSettings callSettings = null)

Delete a Memory.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The resource name of the Memory to delete. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/memories/{memory}` |
| `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://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.DeleteMemoryOperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    MemoryBankServiceClient memoryBankServiceClient = await MemoryBankServiceClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/reasoningEngines/[REASONING_ENGINE]/memories/[MEMORY]";
    // Make the request
    Operation<Empty, DeleteMemoryOperationMetadata> response = await memoryBankServiceClient.DeleteMemoryAsync(name);

    // Poll until the returned long-running operation is complete
    Operation<Empty, DeleteMemoryOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Empty 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<Empty, DeleteMemoryOperationMetadata> retrievedResponse = await memoryBankServiceClient.PollOnceDeleteMemoryAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Empty retrievedResult = retrievedResponse.Result;
    }

### DeleteMemoryAsync(string, CancellationToken)

    public virtual Task<Operation<Empty, DeleteMemoryOperationMetadata>> DeleteMemoryAsync(string name, CancellationToken cancellationToken)

Delete a Memory.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The resource name of the Memory to delete. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/memories/{memory}` |
| `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://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.DeleteMemoryOperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    MemoryBankServiceClient memoryBankServiceClient = await MemoryBankServiceClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/reasoningEngines/[REASONING_ENGINE]/memories/[MEMORY]";
    // Make the request
    Operation<Empty, DeleteMemoryOperationMetadata> response = await memoryBankServiceClient.DeleteMemoryAsync(name);

    // Poll until the returned long-running operation is complete
    Operation<Empty, DeleteMemoryOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Empty 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<Empty, DeleteMemoryOperationMetadata> retrievedResponse = await memoryBankServiceClient.PollOnceDeleteMemoryAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Empty retrievedResult = retrievedResponse.Result;
    }

### GenerateMemories(GenerateMemoriesRequest, CallSettings)

    public virtual Operation<GenerateMemoriesResponse, GenerateMemoriesOperationMetadata> GenerateMemories(GenerateMemoriesRequest request, CallSettings callSettings = null)

Generate memories.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.GenerateMemoriesRequest` 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.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.GenerateMemoriesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.GenerateMemoriesOperationMetadata` | The RPC response. |

**Example**

    // Create client
    MemoryBankServiceClient memoryBankServiceClient = MemoryBankServiceClient.Create();
    // Initialize request argument(s)
    GenerateMemoriesRequest request = new GenerateMemoriesRequest
    {
        ParentAsReasoningEngineName = ReasoningEngineName.FromProjectLocationReasoningEngine("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]"),
        VertexSessionSource = new GenerateMemoriesRequest.Types.VertexSessionSource(),
        DisableConsolidation = false,
        Scope = { { "", "" }, },
    };
    // Make the request
    Operation<GenerateMemoriesResponse, GenerateMemoriesOperationMetadata> response = memoryBankServiceClient.GenerateMemories(request);

    // Poll until the returned long-running operation is complete
    Operation<GenerateMemoriesResponse, GenerateMemoriesOperationMetadata> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    GenerateMemoriesResponse 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<GenerateMemoriesResponse, GenerateMemoriesOperationMetadata> retrievedResponse = memoryBankServiceClient.PollOnceGenerateMemories(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        GenerateMemoriesResponse retrievedResult = retrievedResponse.Result;
    }

### GenerateMemories(ReasoningEngineName, CallSettings)

    public virtual Operation<GenerateMemoriesResponse, GenerateMemoriesOperationMetadata> GenerateMemories(ReasoningEngineName parent, CallSettings callSettings = null)

Generate memories.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.ReasoningEngineName` Required. The resource name of the ReasoningEngine to generate memories for. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` |
| `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.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.GenerateMemoriesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.GenerateMemoriesOperationMetadata` | The RPC response. |

**Example**

    // Create client
    MemoryBankServiceClient memoryBankServiceClient = MemoryBankServiceClient.Create();
    // Initialize request argument(s)
    ReasoningEngineName parent = ReasoningEngineName.FromProjectLocationReasoningEngine("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]");
    // Make the request
    Operation<GenerateMemoriesResponse, GenerateMemoriesOperationMetadata> response = memoryBankServiceClient.GenerateMemories(parent);

    // Poll until the returned long-running operation is complete
    Operation<GenerateMemoriesResponse, GenerateMemoriesOperationMetadata> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    GenerateMemoriesResponse 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<GenerateMemoriesResponse, GenerateMemoriesOperationMetadata> retrievedResponse = memoryBankServiceClient.PollOnceGenerateMemories(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        GenerateMemoriesResponse retrievedResult = retrievedResponse.Result;
    }

### GenerateMemories(string, CallSettings)

    public virtual Operation<GenerateMemoriesResponse, GenerateMemoriesOperationMetadata> GenerateMemories(string parent, CallSettings callSettings = null)

Generate memories.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The resource name of the ReasoningEngine to generate memories for. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` |
| `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.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.GenerateMemoriesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.GenerateMemoriesOperationMetadata` | The RPC response. |

**Example**

    // Create client
    MemoryBankServiceClient memoryBankServiceClient = MemoryBankServiceClient.Create();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]/reasoningEngines/[REASONING_ENGINE]";
    // Make the request
    Operation<GenerateMemoriesResponse, GenerateMemoriesOperationMetadata> response = memoryBankServiceClient.GenerateMemories(parent);

    // Poll until the returned long-running operation is complete
    Operation<GenerateMemoriesResponse, GenerateMemoriesOperationMetadata> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    GenerateMemoriesResponse 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<GenerateMemoriesResponse, GenerateMemoriesOperationMetadata> retrievedResponse = memoryBankServiceClient.PollOnceGenerateMemories(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        GenerateMemoriesResponse retrievedResult = retrievedResponse.Result;
    }

### GenerateMemoriesAsync(GenerateMemoriesRequest, CallSettings)

    public virtual Task<Operation<GenerateMemoriesResponse, GenerateMemoriesOperationMetadata>> GenerateMemoriesAsync(GenerateMemoriesRequest request, CallSettings callSettings = null)

Generate memories.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.GenerateMemoriesRequest` 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.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.GenerateMemoriesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.GenerateMemoriesOperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    MemoryBankServiceClient memoryBankServiceClient = await MemoryBankServiceClient.CreateAsync();
    // Initialize request argument(s)
    GenerateMemoriesRequest request = new GenerateMemoriesRequest
    {
        ParentAsReasoningEngineName = ReasoningEngineName.FromProjectLocationReasoningEngine("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]"),
        VertexSessionSource = new GenerateMemoriesRequest.Types.VertexSessionSource(),
        DisableConsolidation = false,
        Scope = { { "", "" }, },
    };
    // Make the request
    Operation<GenerateMemoriesResponse, GenerateMemoriesOperationMetadata> response = await memoryBankServiceClient.GenerateMemoriesAsync(request);

    // Poll until the returned long-running operation is complete
    Operation<GenerateMemoriesResponse, GenerateMemoriesOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    GenerateMemoriesResponse 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<GenerateMemoriesResponse, GenerateMemoriesOperationMetadata> retrievedResponse = await memoryBankServiceClient.PollOnceGenerateMemoriesAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        GenerateMemoriesResponse retrievedResult = retrievedResponse.Result;
    }

### GenerateMemoriesAsync(GenerateMemoriesRequest, CancellationToken)

    public virtual Task<Operation<GenerateMemoriesResponse, GenerateMemoriesOperationMetadata>> GenerateMemoriesAsync(GenerateMemoriesRequest request, CancellationToken cancellationToken)

Generate memories.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.GenerateMemoriesRequest` 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.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.GenerateMemoriesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.GenerateMemoriesOperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    MemoryBankServiceClient memoryBankServiceClient = await MemoryBankServiceClient.CreateAsync();
    // Initialize request argument(s)
    GenerateMemoriesRequest request = new GenerateMemoriesRequest
    {
        ParentAsReasoningEngineName = ReasoningEngineName.FromProjectLocationReasoningEngine("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]"),
        VertexSessionSource = new GenerateMemoriesRequest.Types.VertexSessionSource(),
        DisableConsolidation = false,
        Scope = { { "", "" }, },
    };
    // Make the request
    Operation<GenerateMemoriesResponse, GenerateMemoriesOperationMetadata> response = await memoryBankServiceClient.GenerateMemoriesAsync(request);

    // Poll until the returned long-running operation is complete
    Operation<GenerateMemoriesResponse, GenerateMemoriesOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    GenerateMemoriesResponse 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<GenerateMemoriesResponse, GenerateMemoriesOperationMetadata> retrievedResponse = await memoryBankServiceClient.PollOnceGenerateMemoriesAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        GenerateMemoriesResponse retrievedResult = retrievedResponse.Result;
    }

### GenerateMemoriesAsync(ReasoningEngineName, CallSettings)

    public virtual Task<Operation<GenerateMemoriesResponse, GenerateMemoriesOperationMetadata>> GenerateMemoriesAsync(ReasoningEngineName parent, CallSettings callSettings = null)

Generate memories.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.ReasoningEngineName` Required. The resource name of the ReasoningEngine to generate memories for. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` |
| `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.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.GenerateMemoriesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.GenerateMemoriesOperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    MemoryBankServiceClient memoryBankServiceClient = await MemoryBankServiceClient.CreateAsync();
    // Initialize request argument(s)
    ReasoningEngineName parent = ReasoningEngineName.FromProjectLocationReasoningEngine("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]");
    // Make the request
    Operation<GenerateMemoriesResponse, GenerateMemoriesOperationMetadata> response = await memoryBankServiceClient.GenerateMemoriesAsync(parent);

    // Poll until the returned long-running operation is complete
    Operation<GenerateMemoriesResponse, GenerateMemoriesOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    GenerateMemoriesResponse 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<GenerateMemoriesResponse, GenerateMemoriesOperationMetadata> retrievedResponse = await memoryBankServiceClient.PollOnceGenerateMemoriesAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        GenerateMemoriesResponse retrievedResult = retrievedResponse.Result;
    }

### GenerateMemoriesAsync(ReasoningEngineName, CancellationToken)

    public virtual Task<Operation<GenerateMemoriesResponse, GenerateMemoriesOperationMetadata>> GenerateMemoriesAsync(ReasoningEngineName parent, CancellationToken cancellationToken)

Generate memories.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.ReasoningEngineName` Required. The resource name of the ReasoningEngine to generate memories for. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` |
| `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.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.GenerateMemoriesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.GenerateMemoriesOperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    MemoryBankServiceClient memoryBankServiceClient = await MemoryBankServiceClient.CreateAsync();
    // Initialize request argument(s)
    ReasoningEngineName parent = ReasoningEngineName.FromProjectLocationReasoningEngine("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]");
    // Make the request
    Operation<GenerateMemoriesResponse, GenerateMemoriesOperationMetadata> response = await memoryBankServiceClient.GenerateMemoriesAsync(parent);

    // Poll until the returned long-running operation is complete
    Operation<GenerateMemoriesResponse, GenerateMemoriesOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    GenerateMemoriesResponse 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<GenerateMemoriesResponse, GenerateMemoriesOperationMetadata> retrievedResponse = await memoryBankServiceClient.PollOnceGenerateMemoriesAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        GenerateMemoriesResponse retrievedResult = retrievedResponse.Result;
    }

### GenerateMemoriesAsync(string, CallSettings)

    public virtual Task<Operation<GenerateMemoriesResponse, GenerateMemoriesOperationMetadata>> GenerateMemoriesAsync(string parent, CallSettings callSettings = null)

Generate memories.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The resource name of the ReasoningEngine to generate memories for. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` |
| `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.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.GenerateMemoriesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.GenerateMemoriesOperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    MemoryBankServiceClient memoryBankServiceClient = await MemoryBankServiceClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]/reasoningEngines/[REASONING_ENGINE]";
    // Make the request
    Operation<GenerateMemoriesResponse, GenerateMemoriesOperationMetadata> response = await memoryBankServiceClient.GenerateMemoriesAsync(parent);

    // Poll until the returned long-running operation is complete
    Operation<GenerateMemoriesResponse, GenerateMemoriesOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    GenerateMemoriesResponse 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<GenerateMemoriesResponse, GenerateMemoriesOperationMetadata> retrievedResponse = await memoryBankServiceClient.PollOnceGenerateMemoriesAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        GenerateMemoriesResponse retrievedResult = retrievedResponse.Result;
    }

### GenerateMemoriesAsync(string, CancellationToken)

    public virtual Task<Operation<GenerateMemoriesResponse, GenerateMemoriesOperationMetadata>> GenerateMemoriesAsync(string parent, CancellationToken cancellationToken)

Generate memories.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The resource name of the ReasoningEngine to generate memories for. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` |
| `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.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.GenerateMemoriesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.GenerateMemoriesOperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    MemoryBankServiceClient memoryBankServiceClient = await MemoryBankServiceClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]/reasoningEngines/[REASONING_ENGINE]";
    // Make the request
    Operation<GenerateMemoriesResponse, GenerateMemoriesOperationMetadata> response = await memoryBankServiceClient.GenerateMemoriesAsync(parent);

    // Poll until the returned long-running operation is complete
    Operation<GenerateMemoriesResponse, GenerateMemoriesOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    GenerateMemoriesResponse 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<GenerateMemoriesResponse, GenerateMemoriesOperationMetadata> retrievedResponse = await memoryBankServiceClient.PollOnceGenerateMemoriesAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        GenerateMemoriesResponse retrievedResult = retrievedResponse.Result;
    }

### GetMemory(GetMemoryRequest, CallSettings)

    public virtual Memory GetMemory(GetMemoryRequest request, CallSettings callSettings = null)

Get a Memory.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.GetMemoryRequest` 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.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.Memory` | The RPC response. |

**Example**

    // Create client
    MemoryBankServiceClient memoryBankServiceClient = MemoryBankServiceClient.Create();
    // Initialize request argument(s)
    GetMemoryRequest request = new GetMemoryRequest
    {
        MemoryName = MemoryName.FromProjectLocationReasoningEngineMemory("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]", "[MEMORY]"),
    };
    // Make the request
    Memory response = memoryBankServiceClient.GetMemory(request);

### GetMemory(MemoryName, CallSettings)

    public virtual Memory GetMemory(MemoryName name, CallSettings callSettings = null)

Get a Memory.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.MemoryName` Required. The resource name of the Memory. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/memories/{memory}` |
| `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.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.Memory` | The RPC response. |

**Example**

    // Create client
    MemoryBankServiceClient memoryBankServiceClient = MemoryBankServiceClient.Create();
    // Initialize request argument(s)
    MemoryName name = MemoryName.FromProjectLocationReasoningEngineMemory("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]", "[MEMORY]");
    // Make the request
    Memory response = memoryBankServiceClient.GetMemory(name);

### GetMemory(string, CallSettings)

    public virtual Memory GetMemory(string name, CallSettings callSettings = null)

Get a Memory.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The resource name of the Memory. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/memories/{memory}` |
| `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.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.Memory` | The RPC response. |

**Example**

    // Create client
    MemoryBankServiceClient memoryBankServiceClient = MemoryBankServiceClient.Create();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/reasoningEngines/[REASONING_ENGINE]/memories/[MEMORY]";
    // Make the request
    Memory response = memoryBankServiceClient.GetMemory(name);

### GetMemoryAsync(GetMemoryRequest, CallSettings)

    public virtual Task<Memory> GetMemoryAsync(GetMemoryRequest request, CallSettings callSettings = null)

Get a Memory.

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

**Example**

    // Create client
    MemoryBankServiceClient memoryBankServiceClient = await MemoryBankServiceClient.CreateAsync();
    // Initialize request argument(s)
    GetMemoryRequest request = new GetMemoryRequest
    {
        MemoryName = MemoryName.FromProjectLocationReasoningEngineMemory("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]", "[MEMORY]"),
    };
    // Make the request
    Memory response = await memoryBankServiceClient.GetMemoryAsync(request);

### GetMemoryAsync(GetMemoryRequest, CancellationToken)

    public virtual Task<Memory> GetMemoryAsync(GetMemoryRequest request, CancellationToken cancellationToken)

Get a Memory.

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

**Example**

    // Create client
    MemoryBankServiceClient memoryBankServiceClient = await MemoryBankServiceClient.CreateAsync();
    // Initialize request argument(s)
    GetMemoryRequest request = new GetMemoryRequest
    {
        MemoryName = MemoryName.FromProjectLocationReasoningEngineMemory("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]", "[MEMORY]"),
    };
    // Make the request
    Memory response = await memoryBankServiceClient.GetMemoryAsync(request);

### GetMemoryAsync(MemoryName, CallSettings)

    public virtual Task<Memory> GetMemoryAsync(MemoryName name, CallSettings callSettings = null)

Get a Memory.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.MemoryName` Required. The resource name of the Memory. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/memories/{memory}` |
| `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.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.Memory` | A Task containing the RPC response. |

**Example**

    // Create client
    MemoryBankServiceClient memoryBankServiceClient = await MemoryBankServiceClient.CreateAsync();
    // Initialize request argument(s)
    MemoryName name = MemoryName.FromProjectLocationReasoningEngineMemory("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]", "[MEMORY]");
    // Make the request
    Memory response = await memoryBankServiceClient.GetMemoryAsync(name);

### GetMemoryAsync(MemoryName, CancellationToken)

    public virtual Task<Memory> GetMemoryAsync(MemoryName name, CancellationToken cancellationToken)

Get a Memory.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.MemoryName` Required. The resource name of the Memory. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/memories/{memory}` |
| `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.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.Memory` | A Task containing the RPC response. |

**Example**

    // Create client
    MemoryBankServiceClient memoryBankServiceClient = await MemoryBankServiceClient.CreateAsync();
    // Initialize request argument(s)
    MemoryName name = MemoryName.FromProjectLocationReasoningEngineMemory("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]", "[MEMORY]");
    // Make the request
    Memory response = await memoryBankServiceClient.GetMemoryAsync(name);

### GetMemoryAsync(string, CallSettings)

    public virtual Task<Memory> GetMemoryAsync(string name, CallSettings callSettings = null)

Get a Memory.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The resource name of the Memory. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/memories/{memory}` |
| `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.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.Memory` | A Task containing the RPC response. |

**Example**

    // Create client
    MemoryBankServiceClient memoryBankServiceClient = await MemoryBankServiceClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/reasoningEngines/[REASONING_ENGINE]/memories/[MEMORY]";
    // Make the request
    Memory response = await memoryBankServiceClient.GetMemoryAsync(name);

### GetMemoryAsync(string, CancellationToken)

    public virtual Task<Memory> GetMemoryAsync(string name, CancellationToken cancellationToken)

Get a Memory.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The resource name of the Memory. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/memories/{memory}` |
| `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.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.Memory` | A Task containing the RPC response. |

**Example**

    // Create client
    MemoryBankServiceClient memoryBankServiceClient = await MemoryBankServiceClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/reasoningEngines/[REASONING_ENGINE]/memories/[MEMORY]";
    // Make the request
    Memory response = await memoryBankServiceClient.GetMemoryAsync(name);

### ListMemories(ListMemoriesRequest, CallSettings)

    public virtual PagedEnumerable<ListMemoriesResponse, Memory> ListMemories(ListMemoriesRequest request, CallSettings callSettings = null)

List Memories.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.ListMemoriesRequest` 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.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.ListMemoriesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.Memory` | A pageable sequence of [Memory](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.Memory) resources. |

**Example**

    // Create client
    MemoryBankServiceClient memoryBankServiceClient = MemoryBankServiceClient.Create();
    // Initialize request argument(s)
    ListMemoriesRequest request = new ListMemoriesRequest
    {
        ParentAsReasoningEngineName = ReasoningEngineName.FromProjectLocationReasoningEngine("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]"),
        Filter = "",
    };
    // Make the request
    PagedEnumerable<ListMemoriesResponse, Memory> response = memoryBankServiceClient.ListMemories(request);

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

### ListMemories(ReasoningEngineName, string, int?, CallSettings)

    public virtual PagedEnumerable<ListMemoriesResponse, Memory> ListMemories(ReasoningEngineName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List Memories.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.ReasoningEngineName` Required. The resource name of the ReasoningEngine to list the Memories under. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` |
| `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.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.ListMemoriesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.Memory` | A pageable sequence of [Memory](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.Memory) resources. |

**Example**

    // Create client
    MemoryBankServiceClient memoryBankServiceClient = MemoryBankServiceClient.Create();
    // Initialize request argument(s)
    ReasoningEngineName parent = ReasoningEngineName.FromProjectLocationReasoningEngine("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]");
    // Make the request
    PagedEnumerable<ListMemoriesResponse, Memory> response = memoryBankServiceClient.ListMemories(parent);

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

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

    public virtual PagedEnumerable<ListMemoriesResponse, Memory> ListMemories(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List Memories.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The resource name of the ReasoningEngine to list the Memories under. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` |
| `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.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.ListMemoriesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.Memory` | A pageable sequence of [Memory](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.Memory) resources. |

**Example**

    // Create client
    MemoryBankServiceClient memoryBankServiceClient = MemoryBankServiceClient.Create();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]/reasoningEngines/[REASONING_ENGINE]";
    // Make the request
    PagedEnumerable<ListMemoriesResponse, Memory> response = memoryBankServiceClient.ListMemories(parent);

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

### ListMemoriesAsync(ListMemoriesRequest, CallSettings)

    public virtual PagedAsyncEnumerable<ListMemoriesResponse, Memory> ListMemoriesAsync(ListMemoriesRequest request, CallSettings callSettings = null)

List Memories.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.ListMemoriesRequest` 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.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.ListMemoriesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.Memory` | A pageable asynchronous sequence of [Memory](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.Memory) resources. |

**Example**

    // Create client
    MemoryBankServiceClient memoryBankServiceClient = await MemoryBankServiceClient.CreateAsync();
    // Initialize request argument(s)
    ListMemoriesRequest request = new ListMemoriesRequest
    {
        ParentAsReasoningEngineName = ReasoningEngineName.FromProjectLocationReasoningEngine("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]"),
        Filter = "",
    };
    // Make the request
    PagedAsyncEnumerable<ListMemoriesResponse, Memory> response = memoryBankServiceClient.ListMemoriesAsync(request);

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

### ListMemoriesAsync(ReasoningEngineName, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListMemoriesResponse, Memory> ListMemoriesAsync(ReasoningEngineName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List Memories.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.ReasoningEngineName` Required. The resource name of the ReasoningEngine to list the Memories under. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` |
| `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.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.ListMemoriesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.Memory` | A pageable asynchronous sequence of [Memory](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.Memory) resources. |

**Example**

    // Create client
    MemoryBankServiceClient memoryBankServiceClient = await MemoryBankServiceClient.CreateAsync();
    // Initialize request argument(s)
    ReasoningEngineName parent = ReasoningEngineName.FromProjectLocationReasoningEngine("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]");
    // Make the request
    PagedAsyncEnumerable<ListMemoriesResponse, Memory> response = memoryBankServiceClient.ListMemoriesAsync(parent);

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

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

    public virtual PagedAsyncEnumerable<ListMemoriesResponse, Memory> ListMemoriesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List Memories.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The resource name of the ReasoningEngine to list the Memories under. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` |
| `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.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.ListMemoriesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.Memory` | A pageable asynchronous sequence of [Memory](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.Memory) resources. |

**Example**

    // Create client
    MemoryBankServiceClient memoryBankServiceClient = await MemoryBankServiceClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]/reasoningEngines/[REASONING_ENGINE]";
    // Make the request
    PagedAsyncEnumerable<ListMemoriesResponse, Memory> response = memoryBankServiceClient.ListMemoriesAsync(parent);

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

### PollOnceCreateMemory(string, CallSettings)

    public virtual Operation<Memory, CreateMemoryOperationMetadata> PollOnceCreateMemory(string operationName, CallSettings callSettings = null)

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

| **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.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.Memoryhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.CreateMemoryOperationMetadata` | The result of polling the operation. |

### PollOnceCreateMemoryAsync(string, CallSettings)

    public virtual Task<Operation<Memory, CreateMemoryOperationMetadata>> PollOnceCreateMemoryAsync(string operationName, CallSettings callSettings = null)

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

| **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.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.Memoryhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.CreateMemoryOperationMetadata` | A task representing the result of polling the operation. |

### PollOnceDeleteMemory(string, CallSettings)

    public virtual Operation<Empty, DeleteMemoryOperationMetadata> PollOnceDeleteMemory(string operationName, CallSettings callSettings = null)

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

| **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://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.DeleteMemoryOperationMetadata` | The result of polling the operation. |

### PollOnceDeleteMemoryAsync(string, CallSettings)

    public virtual Task<Operation<Empty, DeleteMemoryOperationMetadata>> PollOnceDeleteMemoryAsync(string operationName, CallSettings callSettings = null)

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

| **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://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.DeleteMemoryOperationMetadata` | A task representing the result of polling the operation. |

### PollOnceGenerateMemories(string, CallSettings)

    public virtual Operation<GenerateMemoriesResponse, GenerateMemoriesOperationMetadata> PollOnceGenerateMemories(string operationName, CallSettings callSettings = null)

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

| **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.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.GenerateMemoriesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.GenerateMemoriesOperationMetadata` | The result of polling the operation. |

### PollOnceGenerateMemoriesAsync(string, CallSettings)

    public virtual Task<Operation<GenerateMemoriesResponse, GenerateMemoriesOperationMetadata>> PollOnceGenerateMemoriesAsync(string operationName, CallSettings callSettings = null)

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

| **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.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.GenerateMemoriesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.GenerateMemoriesOperationMetadata` | A task representing the result of polling the operation. |

### PollOnceUpdateMemory(string, CallSettings)

    public virtual Operation<Memory, UpdateMemoryOperationMetadata> PollOnceUpdateMemory(string operationName, CallSettings callSettings = null)

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

| **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.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.Memoryhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.UpdateMemoryOperationMetadata` | The result of polling the operation. |

### PollOnceUpdateMemoryAsync(string, CallSettings)

    public virtual Task<Operation<Memory, UpdateMemoryOperationMetadata>> PollOnceUpdateMemoryAsync(string operationName, CallSettings callSettings = null)

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

| **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.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.Memoryhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.UpdateMemoryOperationMetadata` | A task representing the result of polling the operation. |

### RetrieveMemories(ReasoningEngineName, CallSettings)

    public virtual RetrieveMemoriesResponse RetrieveMemories(ReasoningEngineName parent, CallSettings callSettings = null)

Retrieve memories.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.ReasoningEngineName` Required. The resource name of the ReasoningEngine to retrieve memories from. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` |
| `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.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.RetrieveMemoriesResponse` | The RPC response. |

**Example**

    // Create client
    MemoryBankServiceClient memoryBankServiceClient = MemoryBankServiceClient.Create();
    // Initialize request argument(s)
    ReasoningEngineName parent = ReasoningEngineName.FromProjectLocationReasoningEngine("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]");
    // Make the request
    RetrieveMemoriesResponse response = memoryBankServiceClient.RetrieveMemories(parent);

### RetrieveMemories(RetrieveMemoriesRequest, CallSettings)

    public virtual RetrieveMemoriesResponse RetrieveMemories(RetrieveMemoriesRequest request, CallSettings callSettings = null)

Retrieve memories.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.RetrieveMemoriesRequest` 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.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.RetrieveMemoriesResponse` | The RPC response. |

**Example**

    // Create client
    MemoryBankServiceClient memoryBankServiceClient = MemoryBankServiceClient.Create();
    // Initialize request argument(s)
    RetrieveMemoriesRequest request = new RetrieveMemoriesRequest
    {
        ParentAsReasoningEngineName = ReasoningEngineName.FromProjectLocationReasoningEngine("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]"),
        SimilaritySearchParams = new RetrieveMemoriesRequest.Types.SimilaritySearchParams(),
        Scope = { { "", "" }, },
    };
    // Make the request
    RetrieveMemoriesResponse response = memoryBankServiceClient.RetrieveMemories(request);

### RetrieveMemories(string, CallSettings)

    public virtual RetrieveMemoriesResponse RetrieveMemories(string parent, CallSettings callSettings = null)

Retrieve memories.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The resource name of the ReasoningEngine to retrieve memories from. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` |
| `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.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.RetrieveMemoriesResponse` | The RPC response. |

**Example**

    // Create client
    MemoryBankServiceClient memoryBankServiceClient = MemoryBankServiceClient.Create();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]/reasoningEngines/[REASONING_ENGINE]";
    // Make the request
    RetrieveMemoriesResponse response = memoryBankServiceClient.RetrieveMemories(parent);

### RetrieveMemoriesAsync(ReasoningEngineName, CallSettings)

    public virtual Task<RetrieveMemoriesResponse> RetrieveMemoriesAsync(ReasoningEngineName parent, CallSettings callSettings = null)

Retrieve memories.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.ReasoningEngineName` Required. The resource name of the ReasoningEngine to retrieve memories from. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` |
| `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.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.RetrieveMemoriesResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    MemoryBankServiceClient memoryBankServiceClient = await MemoryBankServiceClient.CreateAsync();
    // Initialize request argument(s)
    ReasoningEngineName parent = ReasoningEngineName.FromProjectLocationReasoningEngine("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]");
    // Make the request
    RetrieveMemoriesResponse response = await memoryBankServiceClient.RetrieveMemoriesAsync(parent);

### RetrieveMemoriesAsync(ReasoningEngineName, CancellationToken)

    public virtual Task<RetrieveMemoriesResponse> RetrieveMemoriesAsync(ReasoningEngineName parent, CancellationToken cancellationToken)

Retrieve memories.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.ReasoningEngineName` Required. The resource name of the ReasoningEngine to retrieve memories from. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` |
| `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.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.RetrieveMemoriesResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    MemoryBankServiceClient memoryBankServiceClient = await MemoryBankServiceClient.CreateAsync();
    // Initialize request argument(s)
    ReasoningEngineName parent = ReasoningEngineName.FromProjectLocationReasoningEngine("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]");
    // Make the request
    RetrieveMemoriesResponse response = await memoryBankServiceClient.RetrieveMemoriesAsync(parent);

### RetrieveMemoriesAsync(RetrieveMemoriesRequest, CallSettings)

    public virtual Task<RetrieveMemoriesResponse> RetrieveMemoriesAsync(RetrieveMemoriesRequest request, CallSettings callSettings = null)

Retrieve memories.

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

**Example**

    // Create client
    MemoryBankServiceClient memoryBankServiceClient = await MemoryBankServiceClient.CreateAsync();
    // Initialize request argument(s)
    RetrieveMemoriesRequest request = new RetrieveMemoriesRequest
    {
        ParentAsReasoningEngineName = ReasoningEngineName.FromProjectLocationReasoningEngine("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]"),
        SimilaritySearchParams = new RetrieveMemoriesRequest.Types.SimilaritySearchParams(),
        Scope = { { "", "" }, },
    };
    // Make the request
    RetrieveMemoriesResponse response = await memoryBankServiceClient.RetrieveMemoriesAsync(request);

### RetrieveMemoriesAsync(RetrieveMemoriesRequest, CancellationToken)

    public virtual Task<RetrieveMemoriesResponse> RetrieveMemoriesAsync(RetrieveMemoriesRequest request, CancellationToken cancellationToken)

Retrieve memories.

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

**Example**

    // Create client
    MemoryBankServiceClient memoryBankServiceClient = await MemoryBankServiceClient.CreateAsync();
    // Initialize request argument(s)
    RetrieveMemoriesRequest request = new RetrieveMemoriesRequest
    {
        ParentAsReasoningEngineName = ReasoningEngineName.FromProjectLocationReasoningEngine("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]"),
        SimilaritySearchParams = new RetrieveMemoriesRequest.Types.SimilaritySearchParams(),
        Scope = { { "", "" }, },
    };
    // Make the request
    RetrieveMemoriesResponse response = await memoryBankServiceClient.RetrieveMemoriesAsync(request);

### RetrieveMemoriesAsync(string, CallSettings)

    public virtual Task<RetrieveMemoriesResponse> RetrieveMemoriesAsync(string parent, CallSettings callSettings = null)

Retrieve memories.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The resource name of the ReasoningEngine to retrieve memories from. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` |
| `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.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.RetrieveMemoriesResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    MemoryBankServiceClient memoryBankServiceClient = await MemoryBankServiceClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]/reasoningEngines/[REASONING_ENGINE]";
    // Make the request
    RetrieveMemoriesResponse response = await memoryBankServiceClient.RetrieveMemoriesAsync(parent);

### RetrieveMemoriesAsync(string, CancellationToken)

    public virtual Task<RetrieveMemoriesResponse> RetrieveMemoriesAsync(string parent, CancellationToken cancellationToken)

Retrieve memories.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The resource name of the ReasoningEngine to retrieve memories from. Format: `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` |
| `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.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.RetrieveMemoriesResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    MemoryBankServiceClient memoryBankServiceClient = await MemoryBankServiceClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]/reasoningEngines/[REASONING_ENGINE]";
    // Make the request
    RetrieveMemoriesResponse response = await memoryBankServiceClient.RetrieveMemoriesAsync(parent);

### ShutdownDefaultChannelsAsync()

    public static Task ShutdownDefaultChannelsAsync()

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

### UpdateMemory(Memory, FieldMask, CallSettings)

    public virtual Operation<Memory, UpdateMemoryOperationMetadata> UpdateMemory(Memory memory, FieldMask updateMask, CallSettings callSettings = null)

Update a Memory.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `memory` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.Memory` Required. The Memory which replaces the resource on the server. |
| `updateMask` | `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.FieldMask.html` Optional. Mask specifying which fields to update. Supported fields: - `display_name` - `description` - `fact` |
| `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.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.Memoryhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.UpdateMemoryOperationMetadata` | The RPC response. |

**Example**

    // Create client
    MemoryBankServiceClient memoryBankServiceClient = MemoryBankServiceClient.Create();
    // Initialize request argument(s)
    Memory memory = new Memory();
    FieldMask updateMask = new FieldMask();
    // Make the request
    Operation<Memory, UpdateMemoryOperationMetadata> response = memoryBankServiceClient.UpdateMemory(memory, updateMask);

    // Poll until the returned long-running operation is complete
    Operation<Memory, UpdateMemoryOperationMetadata> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    Memory 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<Memory, UpdateMemoryOperationMetadata> retrievedResponse = memoryBankServiceClient.PollOnceUpdateMemory(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Memory retrievedResult = retrievedResponse.Result;
    }

### UpdateMemory(UpdateMemoryRequest, CallSettings)

    public virtual Operation<Memory, UpdateMemoryOperationMetadata> UpdateMemory(UpdateMemoryRequest request, CallSettings callSettings = null)

Update a Memory.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.UpdateMemoryRequest` 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.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.Memoryhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.UpdateMemoryOperationMetadata` | The RPC response. |

**Example**

    // Create client
    MemoryBankServiceClient memoryBankServiceClient = MemoryBankServiceClient.Create();
    // Initialize request argument(s)
    UpdateMemoryRequest request = new UpdateMemoryRequest
    {
        Memory = new Memory(),
        UpdateMask = new FieldMask(),
    };
    // Make the request
    Operation<Memory, UpdateMemoryOperationMetadata> response = memoryBankServiceClient.UpdateMemory(request);

    // Poll until the returned long-running operation is complete
    Operation<Memory, UpdateMemoryOperationMetadata> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    Memory 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<Memory, UpdateMemoryOperationMetadata> retrievedResponse = memoryBankServiceClient.PollOnceUpdateMemory(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Memory retrievedResult = retrievedResponse.Result;
    }

### UpdateMemoryAsync(Memory, FieldMask, CallSettings)

    public virtual Task<Operation<Memory, UpdateMemoryOperationMetadata>> UpdateMemoryAsync(Memory memory, FieldMask updateMask, CallSettings callSettings = null)

Update a Memory.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `memory` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.Memory` Required. The Memory which replaces the resource on the server. |
| `updateMask` | `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.FieldMask.html` Optional. Mask specifying which fields to update. Supported fields: - `display_name` - `description` - `fact` |
| `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.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.Memoryhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.UpdateMemoryOperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    MemoryBankServiceClient memoryBankServiceClient = await MemoryBankServiceClient.CreateAsync();
    // Initialize request argument(s)
    Memory memory = new Memory();
    FieldMask updateMask = new FieldMask();
    // Make the request
    Operation<Memory, UpdateMemoryOperationMetadata> response = await memoryBankServiceClient.UpdateMemoryAsync(memory, updateMask);

    // Poll until the returned long-running operation is complete
    Operation<Memory, UpdateMemoryOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Memory 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<Memory, UpdateMemoryOperationMetadata> retrievedResponse = await memoryBankServiceClient.PollOnceUpdateMemoryAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Memory retrievedResult = retrievedResponse.Result;
    }

### UpdateMemoryAsync(Memory, FieldMask, CancellationToken)

    public virtual Task<Operation<Memory, UpdateMemoryOperationMetadata>> UpdateMemoryAsync(Memory memory, FieldMask updateMask, CancellationToken cancellationToken)

Update a Memory.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `memory` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.Memory` Required. The Memory which replaces the resource on the server. |
| `updateMask` | `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.FieldMask.html` Optional. Mask specifying which fields to update. Supported fields: - `display_name` - `description` - `fact` |
| `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.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.Memoryhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.UpdateMemoryOperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    MemoryBankServiceClient memoryBankServiceClient = await MemoryBankServiceClient.CreateAsync();
    // Initialize request argument(s)
    Memory memory = new Memory();
    FieldMask updateMask = new FieldMask();
    // Make the request
    Operation<Memory, UpdateMemoryOperationMetadata> response = await memoryBankServiceClient.UpdateMemoryAsync(memory, updateMask);

    // Poll until the returned long-running operation is complete
    Operation<Memory, UpdateMemoryOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Memory 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<Memory, UpdateMemoryOperationMetadata> retrievedResponse = await memoryBankServiceClient.PollOnceUpdateMemoryAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Memory retrievedResult = retrievedResponse.Result;
    }

### UpdateMemoryAsync(UpdateMemoryRequest, CallSettings)

    public virtual Task<Operation<Memory, UpdateMemoryOperationMetadata>> UpdateMemoryAsync(UpdateMemoryRequest request, CallSettings callSettings = null)

Update a Memory.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.UpdateMemoryRequest` 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.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.Memoryhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.UpdateMemoryOperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    MemoryBankServiceClient memoryBankServiceClient = await MemoryBankServiceClient.CreateAsync();
    // Initialize request argument(s)
    UpdateMemoryRequest request = new UpdateMemoryRequest
    {
        Memory = new Memory(),
        UpdateMask = new FieldMask(),
    };
    // Make the request
    Operation<Memory, UpdateMemoryOperationMetadata> response = await memoryBankServiceClient.UpdateMemoryAsync(request);

    // Poll until the returned long-running operation is complete
    Operation<Memory, UpdateMemoryOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Memory 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<Memory, UpdateMemoryOperationMetadata> retrievedResponse = await memoryBankServiceClient.PollOnceUpdateMemoryAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Memory retrievedResult = retrievedResponse.Result;
    }

### UpdateMemoryAsync(UpdateMemoryRequest, CancellationToken)

    public virtual Task<Operation<Memory, UpdateMemoryOperationMetadata>> UpdateMemoryAsync(UpdateMemoryRequest request, CancellationToken cancellationToken)

Update a Memory.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.UpdateMemoryRequest` 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.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.Memoryhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.UpdateMemoryOperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    MemoryBankServiceClient memoryBankServiceClient = await MemoryBankServiceClient.CreateAsync();
    // Initialize request argument(s)
    UpdateMemoryRequest request = new UpdateMemoryRequest
    {
        Memory = new Memory(),
        UpdateMask = new FieldMask(),
    };
    // Make the request
    Operation<Memory, UpdateMemoryOperationMetadata> response = await memoryBankServiceClient.UpdateMemoryAsync(request);

    // Poll until the returned long-running operation is complete
    Operation<Memory, UpdateMemoryOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Memory 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<Memory, UpdateMemoryOperationMetadata> retrievedResponse = await memoryBankServiceClient.PollOnceUpdateMemoryAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Memory retrievedResult = retrievedResponse.Result;
    }