Reference documentation and code samples for the Google Analytics Admin V1alpha Client class DateRange.
Represents a Reporting Data Annotation's date range, both start and end dates are inclusive. Time zones are based on the parent property.
Generated from protobuf message google.analytics.admin.v1alpha.ReportingDataAnnotation.DateRange
Namespace
Google \ Analytics \ Admin \ V1alpha \ ReportingDataAnnotationMethods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ start_date |
Google\Type\Date
Required. The start date for this range. Must be a valid date with year, month, and day set. The date may be in the past, present, or future. |
↳ end_date |
Google\Type\Date
Required. The end date for this range. Must be a valid date with year, month, and day set. This date must be greater than or equal to the start date. |
getStartDate
Required. The start date for this range. Must be a valid date with year, month, and day set. The date may be in the past, present, or future.
Returns | |
---|---|
Type | Description |
Google\Type\Date|null |
hasStartDate
clearStartDate
setStartDate
Required. The start date for this range. Must be a valid date with year, month, and day set. The date may be in the past, present, or future.
Parameter | |
---|---|
Name | Description |
var |
Google\Type\Date
|
Returns | |
---|---|
Type | Description |
$this |
getEndDate
Required. The end date for this range. Must be a valid date with year, month, and day set. This date must be greater than or equal to the start date.
Returns | |
---|---|
Type | Description |
Google\Type\Date|null |
hasEndDate
clearEndDate
setEndDate
Required. The end date for this range. Must be a valid date with year, month, and day set. This date must be greater than or equal to the start date.
Parameter | |
---|---|
Name | Description |
var |
Google\Type\Date
|
Returns | |
---|---|
Type | Description |
$this |