PluginProbe ʕ •ᴥ•ʔ
ShareThis Dashboard for Google Analytics / 3.2.2
ShareThis Dashboard for Google Analytics v3.2.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 / Api / Logging / LoggingDestination.php
googleanalytics / lib / analytics-admin / vendor / google / common-protos / src / Api / Logging Last commit date
LoggingDestination.php 3 years ago
LoggingDestination.php
122 lines
1 <?php
2 # Generated by the protocol buffer compiler. DO NOT EDIT!
3 # source: google/api/logging.proto
4
5 namespace Google\Api\Logging;
6
7 use Google\Protobuf\Internal\GPBType;
8 use Google\Protobuf\Internal\RepeatedField;
9 use Google\Protobuf\Internal\GPBUtil;
10
11 /**
12 * Configuration of a specific logging destination (the producer project
13 * or the consumer project).
14 *
15 * Generated from protobuf message <code>google.api.Logging.LoggingDestination</code>
16 */
17 class LoggingDestination extends \Google\Protobuf\Internal\Message
18 {
19 /**
20 * The monitored resource type. The type must be defined in the
21 * [Service.monitored_resources][google.api.Service.monitored_resources] section.
22 *
23 * Generated from protobuf field <code>string monitored_resource = 3;</code>
24 */
25 private $monitored_resource = '';
26 /**
27 * Names of the logs to be sent to this destination. Each name must
28 * be defined in the [Service.logs][google.api.Service.logs] section. If the log name is
29 * not a domain scoped name, it will be automatically prefixed with
30 * the service name followed by "/".
31 *
32 * Generated from protobuf field <code>repeated string logs = 1;</code>
33 */
34 private $logs;
35
36 /**
37 * Constructor.
38 *
39 * @param array $data {
40 * Optional. Data for populating the Message object.
41 *
42 * @type string $monitored_resource
43 * The monitored resource type. The type must be defined in the
44 * [Service.monitored_resources][google.api.Service.monitored_resources] section.
45 * @type string[]|\Google\Protobuf\Internal\RepeatedField $logs
46 * Names of the logs to be sent to this destination. Each name must
47 * be defined in the [Service.logs][google.api.Service.logs] section. If the log name is
48 * not a domain scoped name, it will be automatically prefixed with
49 * the service name followed by "/".
50 * }
51 */
52 public function __construct($data = NULL) {
53 \GPBMetadata\Google\Api\Logging::initOnce();
54 parent::__construct($data);
55 }
56
57 /**
58 * The monitored resource type. The type must be defined in the
59 * [Service.monitored_resources][google.api.Service.monitored_resources] section.
60 *
61 * Generated from protobuf field <code>string monitored_resource = 3;</code>
62 * @return string
63 */
64 public function getMonitoredResource()
65 {
66 return $this->monitored_resource;
67 }
68
69 /**
70 * The monitored resource type. The type must be defined in the
71 * [Service.monitored_resources][google.api.Service.monitored_resources] section.
72 *
73 * Generated from protobuf field <code>string monitored_resource = 3;</code>
74 * @param string $var
75 * @return $this
76 */
77 public function setMonitoredResource($var)
78 {
79 GPBUtil::checkString($var, True);
80 $this->monitored_resource = $var;
81
82 return $this;
83 }
84
85 /**
86 * Names of the logs to be sent to this destination. Each name must
87 * be defined in the [Service.logs][google.api.Service.logs] section. If the log name is
88 * not a domain scoped name, it will be automatically prefixed with
89 * the service name followed by "/".
90 *
91 * Generated from protobuf field <code>repeated string logs = 1;</code>
92 * @return \Google\Protobuf\Internal\RepeatedField
93 */
94 public function getLogs()
95 {
96 return $this->logs;
97 }
98
99 /**
100 * Names of the logs to be sent to this destination. Each name must
101 * be defined in the [Service.logs][google.api.Service.logs] section. If the log name is
102 * not a domain scoped name, it will be automatically prefixed with
103 * the service name followed by "/".
104 *
105 * Generated from protobuf field <code>repeated string logs = 1;</code>
106 * @param string[]|\Google\Protobuf\Internal\RepeatedField $var
107 * @return $this
108 */
109 public function setLogs($var)
110 {
111 $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
112 $this->logs = $arr;
113
114 return $this;
115 }
116
117 }
118
119 // Adding a class alias for backwards compatibility with the previous class name.
120 class_alias(LoggingDestination::class, \Google\Api\Logging_LoggingDestination::class);
121
122