PluginProbe
Media Cloud Sync / 1.4.2
Media Cloud Sync v1.4.2
1.4.2 1.4.1 1.4.0 1.3.12 1.3.11 1.3.10 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.2.0 1.2.10 1.2.11 1.2.12 1.2.13 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 All 36 releases
media-cloud-sync / includes / sdk / google / google / common-protos / src / Api / Logging / LoggingDestination.php

LoggingDestination.php in Media Cloud Sync 1.4.2, at includes/sdk/google/google/common-protos/src/Api/Logging/LoggingDestination.php

114 lines 4.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 # Generated by the protocol buffer compiler. DO NOT EDIT!
4 # source: google/api/logging.proto
5 namespace Dudlewebs\WPMCS\GCP\Google\Api\Logging;
6
7 use Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\GPBType;
8 use Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\GPBUtil;
9 use Dudlewebs\WPMCS\GCP\Google\Protobuf\RepeatedField;
10 /**
11 * Configuration of a specific logging destination (the producer project
12 * or the consumer project).
13 *
14 * Generated from protobuf message <code>google.api.Logging.LoggingDestination</code>
15 */
16 class LoggingDestination extends \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\Message
17 {
18 /**
19 * The monitored resource type. The type must be defined in the
20 * [Service.monitored_resources][google.api.Service.monitored_resources]
21 * section.
22 *
23 * Generated from protobuf field <code>string monitored_resource = 3;</code>
24 */
25 protected $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
29 * log name is not a domain scoped name, it will be automatically prefixed
30 * with the service name followed by "/".
31 *
32 * Generated from protobuf field <code>repeated string logs = 1;</code>
33 */
34 private $logs;
35 /**
36 * Constructor.
37 *
38 * @param array $data {
39 * Optional. Data for populating the Message object.
40 *
41 * @type string $monitored_resource
42 * The monitored resource type. The type must be defined in the
43 * [Service.monitored_resources][google.api.Service.monitored_resources]
44 * section.
45 * @type string[] $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
48 * log name is not a domain scoped name, it will be automatically prefixed
49 * with the service name followed by "/".
50 * }
51 */
52 public function __construct($data = NULL)
53 {
54 \Dudlewebs\WPMCS\GCP\GPBMetadata\Google\Api\Logging::initOnce();
55 parent::__construct($data);
56 }
57 /**
58 * The monitored resource type. The type must be defined in the
59 * [Service.monitored_resources][google.api.Service.monitored_resources]
60 * section.
61 *
62 * Generated from protobuf field <code>string monitored_resource = 3;</code>
63 * @return string
64 */
65 public function getMonitoredResource()
66 {
67 return $this->monitored_resource;
68 }
69 /**
70 * The monitored resource type. The type must be defined in the
71 * [Service.monitored_resources][google.api.Service.monitored_resources]
72 * section.
73 *
74 * Generated from protobuf field <code>string monitored_resource = 3;</code>
75 * @param string $var
76 * @return $this
77 */
78 public function setMonitoredResource($var)
79 {
80 GPBUtil::checkString($var, True);
81 $this->monitored_resource = $var;
82 return $this;
83 }
84 /**
85 * Names of the logs to be sent to this destination. Each name must
86 * be defined in the [Service.logs][google.api.Service.logs] section. If the
87 * log name is not a domain scoped name, it will be automatically prefixed
88 * with the service name followed by "/".
89 *
90 * Generated from protobuf field <code>repeated string logs = 1;</code>
91 * @return RepeatedField<string>
92 */
93 public function getLogs()
94 {
95 return $this->logs;
96 }
97 /**
98 * Names of the logs to be sent to this destination. Each name must
99 * be defined in the [Service.logs][google.api.Service.logs] section. If the
100 * log name is not a domain scoped name, it will be automatically prefixed
101 * with the service name followed by "/".
102 *
103 * Generated from protobuf field <code>repeated string logs = 1;</code>
104 * @param string[] $var
105 * @return $this
106 */
107 public function setLogs($var)
108 {
109 $arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\GPBType::STRING);
110 $this->logs = $arr;
111 return $this;
112 }
113 }
114