-
Notifications
You must be signed in to change notification settings - Fork 461
Expand file tree
/
Copy pathMetricHeader.php
More file actions
104 lines (92 loc) · 2.58 KB
/
MetricHeader.php
File metadata and controls
104 lines (92 loc) · 2.58 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
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/analytics/data/v1alpha/data.proto
namespace Google\Analytics\Data\V1alpha;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\GPBUtil;
use Google\Protobuf\RepeatedField;
/**
* Describes a metric column in the report. Visible metrics requested in a
* report produce column entries within rows and MetricHeaders. However,
* metrics used exclusively within filters or expressions do not produce columns
* in a report; correspondingly, those metrics do not produce headers.
*
* Generated from protobuf message <code>google.analytics.data.v1alpha.MetricHeader</code>
*/
class MetricHeader extends \Google\Protobuf\Internal\Message
{
/**
* The metric's name.
*
* Generated from protobuf field <code>string name = 1;</code>
*/
protected $name = '';
/**
* The metric's data type.
*
* Generated from protobuf field <code>.google.analytics.data.v1alpha.MetricType type = 2;</code>
*/
protected $type = 0;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $name
* The metric's name.
* @type int $type
* The metric's data type.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Google\Analytics\Data\V1Alpha\Data::initOnce();
parent::__construct($data);
}
/**
* The metric's name.
*
* Generated from protobuf field <code>string name = 1;</code>
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The metric's name.
*
* Generated from protobuf field <code>string name = 1;</code>
* @param string $var
* @return $this
*/
public function setName($var)
{
GPBUtil::checkString($var, True);
$this->name = $var;
return $this;
}
/**
* The metric's data type.
*
* Generated from protobuf field <code>.google.analytics.data.v1alpha.MetricType type = 2;</code>
* @return int
*/
public function getType()
{
return $this->type;
}
/**
* The metric's data type.
*
* Generated from protobuf field <code>.google.analytics.data.v1alpha.MetricType type = 2;</code>
* @param int $var
* @return $this
*/
public function setType($var)
{
GPBUtil::checkEnum($var, \Google\Analytics\Data\V1alpha\MetricType::class);
$this->type = $var;
return $this;
}
}