PluginProbe ʕ •ᴥ•ʔ
ShareThis Dashboard for Google Analytics / 3.3.2
ShareThis Dashboard for Google Analytics v3.3.2
3.3.2 trunk 1.0.7 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.1 2.1.2 2.1.3 2.1.4 2.1.5 2.2.5 2.3.5 2.3.6 2.3.7 2.3.8 2.4.0 2.4.1 2.5.0 2.5.1 2.5.2 2.5.3 2.5.4 2.5.5 3.0.0 3.1.0 3.1.1 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 3.1.7 3.2.0 3.2.1 3.2.2 3.2.3 3.2.4 3.3.0 3.3.1
googleanalytics / lib / analytics-admin / vendor / google / common-protos / src / Rpc / QuotaFailure / Violation.php
googleanalytics / lib / analytics-admin / vendor / google / common-protos / src / Rpc / QuotaFailure Last commit date
Violation.php 3 years ago
Violation.php
134 lines
1 <?php
2 # Generated by the protocol buffer compiler. DO NOT EDIT!
3 # source: google/rpc/error_details.proto
4
5 namespace Google\Rpc\QuotaFailure;
6
7 use Google\Protobuf\Internal\GPBType;
8 use Google\Protobuf\Internal\RepeatedField;
9 use Google\Protobuf\Internal\GPBUtil;
10
11 /**
12 * A message type used to describe a single quota violation. For example, a
13 * daily quota or a custom quota that was exceeded.
14 *
15 * Generated from protobuf message <code>google.rpc.QuotaFailure.Violation</code>
16 */
17 class Violation extends \Google\Protobuf\Internal\Message
18 {
19 /**
20 * The subject on which the quota check failed.
21 * For example, "clientip:<ip address of client>" or "project:<Google
22 * developer project id>".
23 *
24 * Generated from protobuf field <code>string subject = 1;</code>
25 */
26 protected $subject = '';
27 /**
28 * A description of how the quota check failed. Clients can use this
29 * description to find more about the quota configuration in the service's
30 * public documentation, or find the relevant quota limit to adjust through
31 * developer console.
32 * For example: "Service disabled" or "Daily Limit for read operations
33 * exceeded".
34 *
35 * Generated from protobuf field <code>string description = 2;</code>
36 */
37 protected $description = '';
38
39 /**
40 * Constructor.
41 *
42 * @param array $data {
43 * Optional. Data for populating the Message object.
44 *
45 * @type string $subject
46 * The subject on which the quota check failed.
47 * For example, "clientip:<ip address of client>" or "project:<Google
48 * developer project id>".
49 * @type string $description
50 * A description of how the quota check failed. Clients can use this
51 * description to find more about the quota configuration in the service's
52 * public documentation, or find the relevant quota limit to adjust through
53 * developer console.
54 * For example: "Service disabled" or "Daily Limit for read operations
55 * exceeded".
56 * }
57 */
58 public function __construct($data = NULL) {
59 \GPBMetadata\Google\Rpc\ErrorDetails::initOnce();
60 parent::__construct($data);
61 }
62
63 /**
64 * The subject on which the quota check failed.
65 * For example, "clientip:<ip address of client>" or "project:<Google
66 * developer project id>".
67 *
68 * Generated from protobuf field <code>string subject = 1;</code>
69 * @return string
70 */
71 public function getSubject()
72 {
73 return $this->subject;
74 }
75
76 /**
77 * The subject on which the quota check failed.
78 * For example, "clientip:<ip address of client>" or "project:<Google
79 * developer project id>".
80 *
81 * Generated from protobuf field <code>string subject = 1;</code>
82 * @param string $var
83 * @return $this
84 */
85 public function setSubject($var)
86 {
87 GPBUtil::checkString($var, True);
88 $this->subject = $var;
89
90 return $this;
91 }
92
93 /**
94 * A description of how the quota check failed. Clients can use this
95 * description to find more about the quota configuration in the service's
96 * public documentation, or find the relevant quota limit to adjust through
97 * developer console.
98 * For example: "Service disabled" or "Daily Limit for read operations
99 * exceeded".
100 *
101 * Generated from protobuf field <code>string description = 2;</code>
102 * @return string
103 */
104 public function getDescription()
105 {
106 return $this->description;
107 }
108
109 /**
110 * A description of how the quota check failed. Clients can use this
111 * description to find more about the quota configuration in the service's
112 * public documentation, or find the relevant quota limit to adjust through
113 * developer console.
114 * For example: "Service disabled" or "Daily Limit for read operations
115 * exceeded".
116 *
117 * Generated from protobuf field <code>string description = 2;</code>
118 * @param string $var
119 * @return $this
120 */
121 public function setDescription($var)
122 {
123 GPBUtil::checkString($var, True);
124 $this->description = $var;
125
126 return $this;
127 }
128
129 }
130
131 // Adding a class alias for backwards compatibility with the previous class name.
132 class_alias(Violation::class, \Google\Rpc\QuotaFailure_Violation::class);
133
134