-
Notifications
You must be signed in to change notification settings - Fork 460
Expand file tree
/
Copy pathReportTask.php
More file actions
183 lines (164 loc) · 7.17 KB
/
ReportTask.php
File metadata and controls
183 lines (164 loc) · 7.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/analytics/data/v1alpha/analytics_data_api.proto
namespace Google\Analytics\Data\V1alpha;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\GPBUtil;
use Google\Protobuf\RepeatedField;
/**
* A specific report task configuration.
*
* Generated from protobuf message <code>google.analytics.data.v1alpha.ReportTask</code>
*/
class ReportTask extends \Google\Protobuf\Internal\Message
{
/**
* Output only. Identifier. The report task resource name assigned during
* creation. Format: "properties/{property}/reportTasks/{report_task}"
*
* Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY];</code>
*/
protected $name = '';
/**
* Optional. A report definition to fetch report data, which describes the
* structure of a report. It typically includes the fields that will be
* included in the report and the criteria that will be used to filter the
* data.
*
* Generated from protobuf field <code>.google.analytics.data.v1alpha.ReportTask.ReportDefinition report_definition = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
*/
protected $report_definition = null;
/**
* Output only. The report metadata for a specific report task, which provides
* information about a report. It typically includes the following
* information: the resource name of the report, the state of the report, the
* timestamp the report was created, etc,
*
* Generated from protobuf field <code>.google.analytics.data.v1alpha.ReportTask.ReportMetadata report_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
*/
protected $report_metadata = null;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $name
* Output only. Identifier. The report task resource name assigned during
* creation. Format: "properties/{property}/reportTasks/{report_task}"
* @type \Google\Analytics\Data\V1alpha\ReportTask\ReportDefinition $report_definition
* Optional. A report definition to fetch report data, which describes the
* structure of a report. It typically includes the fields that will be
* included in the report and the criteria that will be used to filter the
* data.
* @type \Google\Analytics\Data\V1alpha\ReportTask\ReportMetadata $report_metadata
* Output only. The report metadata for a specific report task, which provides
* information about a report. It typically includes the following
* information: the resource name of the report, the state of the report, the
* timestamp the report was created, etc,
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Google\Analytics\Data\V1Alpha\AnalyticsDataApi::initOnce();
parent::__construct($data);
}
/**
* Output only. Identifier. The report task resource name assigned during
* creation. Format: "properties/{property}/reportTasks/{report_task}"
*
* Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY];</code>
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. Identifier. The report task resource name assigned during
* creation. Format: "properties/{property}/reportTasks/{report_task}"
*
* Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY];</code>
* @param string $var
* @return $this
*/
public function setName($var)
{
GPBUtil::checkString($var, True);
$this->name = $var;
return $this;
}
/**
* Optional. A report definition to fetch report data, which describes the
* structure of a report. It typically includes the fields that will be
* included in the report and the criteria that will be used to filter the
* data.
*
* Generated from protobuf field <code>.google.analytics.data.v1alpha.ReportTask.ReportDefinition report_definition = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
* @return \Google\Analytics\Data\V1alpha\ReportTask\ReportDefinition|null
*/
public function getReportDefinition()
{
return $this->report_definition;
}
public function hasReportDefinition()
{
return isset($this->report_definition);
}
public function clearReportDefinition()
{
unset($this->report_definition);
}
/**
* Optional. A report definition to fetch report data, which describes the
* structure of a report. It typically includes the fields that will be
* included in the report and the criteria that will be used to filter the
* data.
*
* Generated from protobuf field <code>.google.analytics.data.v1alpha.ReportTask.ReportDefinition report_definition = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
* @param \Google\Analytics\Data\V1alpha\ReportTask\ReportDefinition $var
* @return $this
*/
public function setReportDefinition($var)
{
GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\ReportTask\ReportDefinition::class);
$this->report_definition = $var;
return $this;
}
/**
* Output only. The report metadata for a specific report task, which provides
* information about a report. It typically includes the following
* information: the resource name of the report, the state of the report, the
* timestamp the report was created, etc,
*
* Generated from protobuf field <code>.google.analytics.data.v1alpha.ReportTask.ReportMetadata report_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
* @return \Google\Analytics\Data\V1alpha\ReportTask\ReportMetadata|null
*/
public function getReportMetadata()
{
return $this->report_metadata;
}
public function hasReportMetadata()
{
return isset($this->report_metadata);
}
public function clearReportMetadata()
{
unset($this->report_metadata);
}
/**
* Output only. The report metadata for a specific report task, which provides
* information about a report. It typically includes the following
* information: the resource name of the report, the state of the report, the
* timestamp the report was created, etc,
*
* Generated from protobuf field <code>.google.analytics.data.v1alpha.ReportTask.ReportMetadata report_metadata = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
* @param \Google\Analytics\Data\V1alpha\ReportTask\ReportMetadata $var
* @return $this
*/
public function setReportMetadata($var)
{
GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\ReportTask\ReportMetadata::class);
$this->report_metadata = $var;
return $this;
}
}