# Google Cloud Ai Platform V1 Client - Class ReasoningEngineSpec (1.60.0)

1.60.0 (latest) 1.59.0 1.58.0 1.57.0 1.56.0 1.55.0 1.54.0 1.53.0 1.52.0 1.51.0 1.50.0 1.49.0 1.48.0 1.47.0 1.46.0 1.45.0 1.44.0 1.43.0 1.42.0 1.41.0 1.40.0 1.39.0 1.38.0 1.37.0 1.36.0 1.35.0 1.34.0 1.33.0 1.32.1 1.31.0 1.30.0 1.26.0 1.23.0 1.22.0 1.21.0 1.20.0 1.19.0 1.18.0 1.17.0 1.16.0 1.15.0 1.14.0 1.13.1 1.12.0 1.11.0 1.10.0 1.9.0 1.8.0 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0 0.39.0 0.38.0 0.37.1 0.32.0 0.31.0 0.30.0 0.29.0 0.28.0 0.27.0 0.26.2 0.25.0 0.24.0 0.23.0 0.22.0 0.21.0 0.20.0 0.19.0 0.18.0 0.17.0 0.16.0 0.15.0 0.13.0 0.12.0 0.11.1 0.10.0 Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class ReasoningEngineSpec.

ReasoningEngine configurations

Generated from protobuf message `google.cloud.aiplatform.v1.ReasoningEngineSpec`

## Namespace

Google \\ Cloud \\ AIPlatform \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ source_code_spec` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.ReasoningEngineSpec.SourceCodeSpec` Deploy from source code files with a defined entrypoint. |
| `↳ container_spec` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.ReasoningEngineSpec.ContainerSpec` Deploy from a container image with a defined entrypoint and commands. |
| `↳ service_account` | `string` Optional. The service account that the Reasoning Engine artifact runs as. It should have "roles/storage.objectViewer" for reading the user project's Cloud Storage and "roles/aiplatform.user" for using Vertex extensions. If not specified, the Vertex AI Reasoning Engine Service Agent in the project will be used. |
| `↳ package_spec` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.ReasoningEngineSpec.PackageSpec` Optional. User provided package spec of the ReasoningEngine. Ignored when users directly specify a deployment image through `deployment_spec.first_party_image_override`, but keeping the field_behavior to avoid introducing breaking changes. The `deployment_source` field should not be set if `package_spec` is specified. |
| `↳ deployment_spec` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.ReasoningEngineSpec.DeploymentSpec` Optional. The specification of a Reasoning Engine deployment. |
| `↳ class_methods` | `array<https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Struct>` Optional. Declarations for object class methods in OpenAPI specification format. |
| `↳ agent_framework` | `string` Optional. The OSS agent framework used to develop the agent. Currently supported values: "google-adk", "langchain", "langgraph", "ag2", "llama-index", "custom". |

### getSourceCodeSpec

Deploy from source code files with a defined entrypoint.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.ReasoningEngineSpec.SourceCodeSpec|null` |   |

### hasSourceCodeSpec

### setSourceCodeSpec

Deploy from source code files with a defined entrypoint.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.ReasoningEngineSpec.SourceCodeSpec` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getContainerSpec

Deploy from a container image with a defined entrypoint and commands.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.ReasoningEngineSpec.ContainerSpec|null` |   |

### hasContainerSpec

### setContainerSpec

Deploy from a container image with a defined entrypoint and commands.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.ReasoningEngineSpec.ContainerSpec` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getServiceAccount

Optional. The service account that the Reasoning Engine artifact runs as.

It should have "roles/storage.objectViewer" for reading the user project's
Cloud Storage and "roles/aiplatform.user" for using Vertex extensions. If
not specified, the Vertex AI Reasoning Engine Service Agent in the project
will be used.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasServiceAccount

### clearServiceAccount

### setServiceAccount

Optional. The service account that the Reasoning Engine artifact runs as.

It should have "roles/storage.objectViewer" for reading the user project's
Cloud Storage and "roles/aiplatform.user" for using Vertex extensions. If
not specified, the Vertex AI Reasoning Engine Service Agent in the project
will be used.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getPackageSpec

Optional. User provided package spec of the ReasoningEngine.

Ignored when users directly specify a deployment image through
`deployment_spec.first_party_image_override`, but keeping the
field_behavior to avoid introducing breaking changes.
The `deployment_source` field should not be set if `package_spec` is
specified.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.ReasoningEngineSpec.PackageSpec|null` |   |

### hasPackageSpec

### clearPackageSpec

### setPackageSpec

Optional. User provided package spec of the ReasoningEngine.

Ignored when users directly specify a deployment image through
`deployment_spec.first_party_image_override`, but keeping the
field_behavior to avoid introducing breaking changes.
The `deployment_source` field should not be set if `package_spec` is
specified.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.ReasoningEngineSpec.PackageSpec` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDeploymentSpec

Optional. The specification of a Reasoning Engine deployment.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.ReasoningEngineSpec.DeploymentSpec|null` |   |

### hasDeploymentSpec

### clearDeploymentSpec

### setDeploymentSpec

Optional. The specification of a Reasoning Engine deployment.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-ai-platform/latest/V1.ReasoningEngineSpec.DeploymentSpec` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getClassMethods

Optional. Declarations for object class methods in OpenAPI specification
format.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Struct>` |   |

### setClassMethods

Optional. Declarations for object class methods in OpenAPI specification
format.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Struct>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getAgentFramework

Optional. The OSS agent framework used to develop the agent.

Currently supported values: "google-adk", "langchain", "langgraph", "ag2",
"llama-index", "custom".

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setAgentFramework

Optional. The OSS agent framework used to develop the agent.

Currently supported values: "google-adk", "langchain", "langgraph", "ag2",
"llama-index", "custom".

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDeploymentSource

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |