# Cloud Billing Budget v1beta1 API - Class CustomPeriod (2.0.0-beta07)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [2.0.0-beta07 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.Budgets.V1Beta1/latest/Google.Cloud.Billing.Budgets.V1Beta1.CustomPeriod)
- [2.0.0-beta06](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.Budgets.V1Beta1/2.0.0-beta06/Google.Cloud.Billing.Budgets.V1Beta1.CustomPeriod)
- [1.0.0-beta05](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.Budgets.V1Beta1/1.0.0-beta05/Google.Cloud.Billing.Budgets.V1Beta1.CustomPeriod)

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

Reference documentation and code samples for the Cloud Billing Budget v1beta1 API class CustomPeriod.

All date times begin at 12 AM US and Canadian Pacific Time (UTC-8).

## Inheritance

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

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[CustomPeriod](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.Budgets.V1Beta1/latest/Google.Cloud.Billing.Budgets.V1Beta1.CustomPeriod), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CustomPeriod](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.Budgets.V1Beta1/latest/Google.Cloud.Billing.Budgets.V1Beta1.CustomPeriod), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[CustomPeriod](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.Budgets.V1Beta1/latest/Google.Cloud.Billing.Budgets.V1Beta1.CustomPeriod), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## 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.Billing.Budgets.V1Beta1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.Budgets.V1Beta1/latest/Google.Cloud.Billing.Budgets.V1Beta1)

## Assembly

Google.Cloud.Billing.Budgets.V1Beta1.dll

## Constructors

### CustomPeriod()

    public CustomPeriod()

### CustomPeriod(CustomPeriod)

    public CustomPeriod(CustomPeriod other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.Budgets.V1Beta1/latest/Google.Cloud.Billing.Budgets.V1Beta1.CustomPeriod` |

## Properties

### EndDate

    public Date EndDate { get; set; }

Optional. The end date of the time period. Budgets with elapsed end date
won't be processed. If unset, specifies to track all usage incurred since
the start_date.

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

### StartDate

    public Date StartDate { get; set; }

Required. The start date must be after January 1, 2017.

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