← All changes
|
includes/sdk/google/google/common-protos/src/Api/Logging.php
+14
-14
1.0.3
→
1.4.2
View file →
| @@ -1,13 +1,13 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | # Generated by the protocol buffer compiler. DO NOT EDIT! |
| 4 | 4 | # source: google/api/logging.proto |
| 5 | -namespace Dudlewebs\WPMCS\Google\Api; | |
| 5 | +namespace Dudlewebs\WPMCS\GCP\Google\Api; | |
| 6 | 6 | |
| 7 | -use Dudlewebs\WPMCS\Google\Protobuf\Internal\GPBType; | |
| 8 | -use Dudlewebs\WPMCS\Google\Protobuf\Internal\RepeatedField; | |
| 9 | -use Dudlewebs\WPMCS\Google\Protobuf\Internal\GPBUtil; | |
| 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 | 10 | /** |
| 11 | 11 | * Logging configuration of the service. |
| 12 | 12 | * The following example shows how to configure logs to be sent to the |
| 13 | 13 | * producer and consumer projects. In the example, the `activity_history` |
| @@ -37,9 +37,9 @@ | ||
| 37 | 37 | * - activity_history |
| 38 | 38 | * |
| 39 | 39 | * Generated from protobuf message <code>google.api.Logging</code> |
| 40 | 40 | */ |
| 41 | -class Logging extends \Dudlewebs\WPMCS\Google\Protobuf\Internal\Message | |
| 41 | +class Logging extends \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\Message | |
| 42 | 42 | { |
| 43 | 43 | /** |
| 44 | 44 | * Logging configurations for sending logs to the producer project. |
| 45 | 45 | * There can be multiple producer destinations, each one must have a |
| @@ -63,14 +63,14 @@ | ||
| 63 | 63 | * |
| 64 | 64 | * @param array $data { |
| 65 | 65 | * Optional. Data for populating the Message object. |
| 66 | 66 | * |
| 67 | - * @type array<\Google\Api\Logging\LoggingDestination>|\Google\Protobuf\Internal\RepeatedField $producer_destinations | |
| 67 | + * @type \Google\Api\Logging\LoggingDestination[] $producer_destinations | |
| 68 | 68 | * Logging configurations for sending logs to the producer project. |
| 69 | 69 | * There can be multiple producer destinations, each one must have a |
| 70 | 70 | * different monitored resource type. A log can be used in at most |
| 71 | 71 | * one producer destination. |
| 72 | - * @type array<\Google\Api\Logging\LoggingDestination>|\Google\Protobuf\Internal\RepeatedField $consumer_destinations | |
| 72 | + * @type \Google\Api\Logging\LoggingDestination[] $consumer_destinations | |
| 73 | 73 | * Logging configurations for sending logs to the consumer project. |
| 74 | 74 | * There can be multiple consumer destinations, each one must have a |
| 75 | 75 | * different monitored resource type. A log can be used in at most |
| 76 | 76 | * one consumer destination. |
| @@ -77,9 +77,9 @@ | ||
| 77 | 77 | * } |
| 78 | 78 | */ |
| 79 | 79 | public function __construct($data = NULL) |
| 80 | 80 | { |
| 81 | - \Dudlewebs\WPMCS\GPBMetadata\Google\Api\Logging::initOnce(); | |
| 81 | + \Dudlewebs\WPMCS\GCP\GPBMetadata\Google\Api\Logging::initOnce(); | |
| 82 | 82 | parent::__construct($data); |
| 83 | 83 | } |
| 84 | 84 | /** |
| 85 | 85 | * Logging configurations for sending logs to the producer project. |
| @@ -87,9 +87,9 @@ | ||
| 87 | 87 | * different monitored resource type. A log can be used in at most |
| 88 | 88 | * one producer destination. |
| 89 | 89 | * |
| 90 | 90 | * Generated from protobuf field <code>repeated .google.api.Logging.LoggingDestination producer_destinations = 1;</code> |
| 91 | - * @return \Google\Protobuf\Internal\RepeatedField | |
| 91 | + * @return RepeatedField<\Google\Api\Logging\LoggingDestination> | |
| 92 | 92 | */ |
| 93 | 93 | public function getProducerDestinations() |
| 94 | 94 | { |
| 95 | 95 | return $this->producer_destinations; |
| @@ -100,14 +100,14 @@ | ||
| 100 | 100 | * different monitored resource type. A log can be used in at most |
| 101 | 101 | * one producer destination. |
| 102 | 102 | * |
| 103 | 103 | * Generated from protobuf field <code>repeated .google.api.Logging.LoggingDestination producer_destinations = 1;</code> |
| 104 | - * @param array<\Google\Api\Logging\LoggingDestination>|\Google\Protobuf\Internal\RepeatedField $var | |
| 104 | + * @param \Google\Api\Logging\LoggingDestination[] $var | |
| 105 | 105 | * @return $this |
| 106 | 106 | */ |
| 107 | 107 | public function setProducerDestinations($var) |
| 108 | 108 | { |
| 109 | - $arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\Google\Protobuf\Internal\GPBType::MESSAGE, \Dudlewebs\WPMCS\Google\Api\Logging\LoggingDestination::class); | |
| 109 | + $arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\GPBType::MESSAGE, \Dudlewebs\WPMCS\GCP\Google\Api\Logging\LoggingDestination::class); | |
| 110 | 110 | $this->producer_destinations = $arr; |
| 111 | 111 | return $this; |
| 112 | 112 | } |
| 113 | 113 | /** |
| @@ -116,9 +116,9 @@ | ||
| 116 | 116 | * different monitored resource type. A log can be used in at most |
| 117 | 117 | * one consumer destination. |
| 118 | 118 | * |
| 119 | 119 | * Generated from protobuf field <code>repeated .google.api.Logging.LoggingDestination consumer_destinations = 2;</code> |
| 120 | - * @return \Google\Protobuf\Internal\RepeatedField | |
| 120 | + * @return RepeatedField<\Google\Api\Logging\LoggingDestination> | |
| 121 | 121 | */ |
| 122 | 122 | public function getConsumerDestinations() |
| 123 | 123 | { |
| 124 | 124 | return $this->consumer_destinations; |
| @@ -129,14 +129,14 @@ | ||
| 129 | 129 | * different monitored resource type. A log can be used in at most |
| 130 | 130 | * one consumer destination. |
| 131 | 131 | * |
| 132 | 132 | * Generated from protobuf field <code>repeated .google.api.Logging.LoggingDestination consumer_destinations = 2;</code> |
| 133 | - * @param array<\Google\Api\Logging\LoggingDestination>|\Google\Protobuf\Internal\RepeatedField $var | |
| 133 | + * @param \Google\Api\Logging\LoggingDestination[] $var | |
| 134 | 134 | * @return $this |
| 135 | 135 | */ |
| 136 | 136 | public function setConsumerDestinations($var) |
| 137 | 137 | { |
| 138 | - $arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\Google\Protobuf\Internal\GPBType::MESSAGE, \Dudlewebs\WPMCS\Google\Api\Logging\LoggingDestination::class); | |
| 138 | + $arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\GPBType::MESSAGE, \Dudlewebs\WPMCS\GCP\Google\Api\Logging\LoggingDestination::class); | |
| 139 | 139 | $this->consumer_destinations = $arr; |
| 140 | 140 | return $this; |
| 141 | 141 | } |
| 142 | 142 | } |