← All changes
|
includes/sdk/google/google/common-protos/src/Api/Usage.php
+14
-14
1.1.1
→
1.4.2
View file →
| @@ -1,19 +1,19 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | # Generated by the protocol buffer compiler. DO NOT EDIT! |
| 4 | 4 | # source: google/api/usage.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 | * Configuration controlling usage of a service. |
| 12 | 12 | * |
| 13 | 13 | * Generated from protobuf message <code>google.api.Usage</code> |
| 14 | 14 | */ |
| 15 | -class Usage extends \Dudlewebs\WPMCS\Google\Protobuf\Internal\Message | |
| 15 | +class Usage extends \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\Message | |
| 16 | 16 | { |
| 17 | 17 | /** |
| 18 | 18 | * Requirements that must be satisfied before a consumer project can use the |
| 19 | 19 | * service. Each requirement is of the form <service.name>/<requirement-id>; |
| @@ -51,9 +51,9 @@ | ||
| 51 | 51 | * |
| 52 | 52 | * @param array $data { |
| 53 | 53 | * Optional. Data for populating the Message object. |
| 54 | 54 | * |
| 55 | - * @type array<string>|\Google\Protobuf\Internal\RepeatedField $requirements | |
| 55 | + * @type string[] $requirements | |
| 56 | 56 | * Requirements that must be satisfied before a consumer project can use the |
| 57 | 57 | * service. Each requirement is of the form <service.name>/<requirement-id>; |
| 58 | 58 | * for example 'serviceusage.googleapis.com/billing-enabled'. |
| 59 | 59 | * For Google APIs, a Terms of Service requirement must be included here. |
| @@ -60,9 +60,9 @@ | ||
| 60 | 60 | * Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud". |
| 61 | 61 | * Other Google APIs should include |
| 62 | 62 | * "serviceusage.googleapis.com/tos/universal". Additional ToS can be |
| 63 | 63 | * included based on the business needs. |
| 64 | - * @type array<\Google\Api\UsageRule>|\Google\Protobuf\Internal\RepeatedField $rules | |
| 64 | + * @type \Google\Api\UsageRule[] $rules | |
| 65 | 65 | * A list of usage rules that apply to individual API methods. |
| 66 | 66 | * **NOTE:** All service configuration rules follow "last one wins" order. |
| 67 | 67 | * @type string $producer_notification_channel |
| 68 | 68 | * The full resource name of a channel used for sending notifications to the |
| @@ -75,9 +75,9 @@ | ||
| 75 | 75 | * } |
| 76 | 76 | */ |
| 77 | 77 | public function __construct($data = NULL) |
| 78 | 78 | { |
| 79 | - \Dudlewebs\WPMCS\GPBMetadata\Google\Api\Usage::initOnce(); | |
| 79 | + \Dudlewebs\WPMCS\GCP\GPBMetadata\Google\Api\Usage::initOnce(); | |
| 80 | 80 | parent::__construct($data); |
| 81 | 81 | } |
| 82 | 82 | /** |
| 83 | 83 | * Requirements that must be satisfied before a consumer project can use the |
| @@ -89,9 +89,9 @@ | ||
| 89 | 89 | * "serviceusage.googleapis.com/tos/universal". Additional ToS can be |
| 90 | 90 | * included based on the business needs. |
| 91 | 91 | * |
| 92 | 92 | * Generated from protobuf field <code>repeated string requirements = 1;</code> |
| 93 | - * @return \Google\Protobuf\Internal\RepeatedField | |
| 93 | + * @return RepeatedField<string> | |
| 94 | 94 | */ |
| 95 | 95 | public function getRequirements() |
| 96 | 96 | { |
| 97 | 97 | return $this->requirements; |
| @@ -106,14 +106,14 @@ | ||
| 106 | 106 | * "serviceusage.googleapis.com/tos/universal". Additional ToS can be |
| 107 | 107 | * included based on the business needs. |
| 108 | 108 | * |
| 109 | 109 | * Generated from protobuf field <code>repeated string requirements = 1;</code> |
| 110 | - * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var | |
| 110 | + * @param string[] $var | |
| 111 | 111 | * @return $this |
| 112 | 112 | */ |
| 113 | 113 | public function setRequirements($var) |
| 114 | 114 | { |
| 115 | - $arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\Google\Protobuf\Internal\GPBType::STRING); | |
| 115 | + $arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\GPBType::STRING); | |
| 116 | 116 | $this->requirements = $arr; |
| 117 | 117 | return $this; |
| 118 | 118 | } |
| 119 | 119 | /** |
| @@ -120,9 +120,9 @@ | ||
| 120 | 120 | * A list of usage rules that apply to individual API methods. |
| 121 | 121 | * **NOTE:** All service configuration rules follow "last one wins" order. |
| 122 | 122 | * |
| 123 | 123 | * Generated from protobuf field <code>repeated .google.api.UsageRule rules = 6;</code> |
| 124 | - * @return \Google\Protobuf\Internal\RepeatedField | |
| 124 | + * @return RepeatedField<\Google\Api\UsageRule> | |
| 125 | 125 | */ |
| 126 | 126 | public function getRules() |
| 127 | 127 | { |
| 128 | 128 | return $this->rules; |
| @@ -131,14 +131,14 @@ | ||
| 131 | 131 | * A list of usage rules that apply to individual API methods. |
| 132 | 132 | * **NOTE:** All service configuration rules follow "last one wins" order. |
| 133 | 133 | * |
| 134 | 134 | * Generated from protobuf field <code>repeated .google.api.UsageRule rules = 6;</code> |
| 135 | - * @param array<\Google\Api\UsageRule>|\Google\Protobuf\Internal\RepeatedField $var | |
| 135 | + * @param \Google\Api\UsageRule[] $var | |
| 136 | 136 | * @return $this |
| 137 | 137 | */ |
| 138 | 138 | public function setRules($var) |
| 139 | 139 | { |
| 140 | - $arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\Google\Protobuf\Internal\GPBType::MESSAGE, \Dudlewebs\WPMCS\Google\Api\UsageRule::class); | |
| 140 | + $arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\GPBType::MESSAGE, \Dudlewebs\WPMCS\GCP\Google\Api\UsageRule::class); | |
| 141 | 141 | $this->rules = $arr; |
| 142 | 142 | return $this; |
| 143 | 143 | } |
| 144 | 144 | /** |