1.0.0 (latest) 1.0.0-beta02

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

Reference documentation and code samples for the Financial Services v1 API class BacktestResult.

BacktestResult is created to test the performance of a model on a dataset.

## Inheritance

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

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[BacktestResult](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.FinancialServices.V1/latest/Google.Cloud.FinancialServices.V1.BacktestResult.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[BacktestResult](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.FinancialServices.V1/latest/Google.Cloud.FinancialServices.V1.BacktestResult.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[BacktestResult](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.FinancialServices.V1/latest/Google.Cloud.FinancialServices.V1.BacktestResult.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.FinancialServices.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.FinancialServices.V1/latest/Google.Cloud.FinancialServices.V1.md.txt)

## Assembly

Google.Cloud.FinancialServices.V1.dll

## Constructors

### BacktestResult()

    public BacktestResult()

### BacktestResult(BacktestResult)

    public BacktestResult(BacktestResult other)

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

## Properties

### BacktestPeriods

    public int BacktestPeriods { get; set; }

The number of consecutive months to conduct backtesting for, ending with
the last full month prior to the end_time according to the dataset's
timezone.

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

### BacktestResultName

    public BacktestResultName BacktestResultName { get; set; }

[BacktestResultName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.FinancialServices.V1/latest/Google.Cloud.FinancialServices.V1.BacktestResultName.md.txt)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.FinancialServices.V1/latest/Google.Cloud.FinancialServices.V1.BacktestResult.md.txt#Google_Cloud_FinancialServices_V1_BacktestResult_Name) resource name property.

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

### CreateTime

    public Timestamp CreateTime { get; set; }

Output only. The timestamp of creation of this resource.

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

### Dataset

    public string Dataset { get; set; }

Required. The resource name of the Dataset to backtest on
Format:
`/projects/{project_num}/locations/{location}/instances/{instance}/datasets/{dataset}`

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

### DatasetAsDatasetName

    public DatasetName DatasetAsDatasetName { get; set; }

[DatasetName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.FinancialServices.V1/latest/Google.Cloud.FinancialServices.V1.DatasetName.md.txt)-typed view over the [Dataset](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.FinancialServices.V1/latest/Google.Cloud.FinancialServices.V1.BacktestResult.md.txt#Google_Cloud_FinancialServices_V1_BacktestResult_Dataset) resource name property.

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

### EndTime

    public Timestamp EndTime { get; set; }

Required. End_time specifies the latest time from which labels are used and
from which data is used to generate features for backtesting. End_time
should be no later than the end of the date_range of the primary dataset.

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

### Labels

    public MapField<string, string> Labels { get; }

Labels

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

### LineOfBusiness

    public LineOfBusiness LineOfBusiness { get; set; }

Output only. The line of business (Retail/Commercial) this backtest is for.
Determined by Model, cannot be set by user.

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

### Model

    public string Model { get; set; }

Required. The resource name of the Model to use or to backtest.
Format:
`/projects/{project_num}/locations/{location}/instances/{instance}/models/{model}`

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

### ModelAsModelName

    public ModelName ModelAsModelName { get; set; }

[ModelName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.FinancialServices.V1/latest/Google.Cloud.FinancialServices.V1.ModelName.md.txt)-typed view over the [Model](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.FinancialServices.V1/latest/Google.Cloud.FinancialServices.V1.BacktestResult.md.txt#Google_Cloud_FinancialServices_V1_BacktestResult_Model) resource name property.

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

### Name

    public string Name { get; set; }

Output only. The resource name of the BacktestResult.
format:
`/projects/{project_num}/locations/{location}/instances/{instance}/backtestResults/{backtest_result}`

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

### PerformanceTarget

    public BacktestResult.Types.PerformanceTarget PerformanceTarget { get; set; }

Required. PerformanceTarget gives information on how the test will be
evaluated.

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

### State

    public BacktestResult.Types.State State { get; set; }

Output only. State of the BacktestResult (creating, active, deleting, etc.)

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

### UpdateTime

    public Timestamp UpdateTime { get; set; }

Output only. The timestamp of the most recent update of this resource.

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