# Google Cloud Billing Budgets V1 Client - Class CustomPeriod (2.1.2)

2.1.2 (latest) 2.1.1 2.0.5 1.4.5 1.3.1 1.2.2 1.1.0 1.0.5 Reference documentation and code samples for the Google Cloud Billing Budgets V1 Client class CustomPeriod.

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

Generated from protobuf message `google.cloud.billing.budgets.v1.CustomPeriod`

## Namespace

Google \\ Cloud \\ Billing \\ Budgets \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ start_date` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.Date.html` Required. The start date must be after January 1, 2017. |
| `↳ end_date` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.Date.html` 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. |

### getStartDate

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.Date.html|null` |   |

### hasStartDate

### clearStartDate

### setStartDate

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

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.Date.html` |

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

### getEndDate

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.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.Date.html|null` |   |

### hasEndDate

### clearEndDate

### setEndDate

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.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.Date.html` |

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