1.1.0 (latest) 1.0.0

    public sealed class CreateAgentRequest : IMessage<CreateAgentRequest>, IEquatable<CreateAgentRequest>, IDeepCloneable<CreateAgentRequest>, IBufferMessage, IMessage

Reference documentation and code samples for the Gemini Enterprise for Customer Experience v1 API class CreateAgentRequest.

Request message for
\[AgentService.CreateAgent\]\[google.cloud.ces.v1.AgentService.CreateAgent\].

## Inheritance

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

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[CreateAgentRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1/latest/Google.Cloud.Ces.V1.CreateAgentRequest.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CreateAgentRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1/latest/Google.Cloud.Ces.V1.CreateAgentRequest.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[CreateAgentRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1/latest/Google.Cloud.Ces.V1.CreateAgentRequest.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## 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.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Ces.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1/latest/Google.Cloud.Ces.V1.md.txt)

## Assembly

Google.Cloud.Ces.V1.dll

## Constructors

### CreateAgentRequest()

    public CreateAgentRequest()

### CreateAgentRequest(CreateAgentRequest)

    public CreateAgentRequest(CreateAgentRequest other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `CreateAgentRequest` |

## Properties

### Agent

    public Agent Agent { get; set; }

Required. The agent to create.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `Agent` |   |

### AgentId

    public string AgentId { get; set; }

Optional. The ID to use for the agent, which will become the final
component of the agent's resource name. If not provided, a unique ID will
be automatically assigned for the agent.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### Parent

    public string Parent { get; set; }

Required. The resource name of the app to create an agent in.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### ParentAsAppName

    public AppName ParentAsAppName { get; set; }

[AppName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1/latest/Google.Cloud.Ces.V1.AppName.md.txt)-typed view over the [Parent](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1/latest/Google.Cloud.Ces.V1.CreateAgentRequest.md.txt#Google_Cloud_Ces_V1_CreateAgentRequest_Parent) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `AppName` |   |