← All changes
|
includes/sdk/google/google/common-protos/src/Rpc/Status.php
+10
-10
1.2.11
→
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/rpc/status.proto |
| 5 | -namespace Dudlewebs\WPMCS\Google\Rpc; | |
| 5 | +namespace Dudlewebs\WPMCS\GCP\Google\Rpc; | |
| 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 | * The `Status` type defines a logical error model that is suitable for |
| 12 | 12 | * different programming environments, including REST APIs and RPC APIs. It is |
| 13 | 13 | * used by [gRPC](https://github.com/grpc). Each `Status` message contains |
| @@ -16,9 +16,9 @@ | ||
| 16 | 16 | * [API Design Guide](https://cloud.google.com/apis/design/errors). |
| 17 | 17 | * |
| 18 | 18 | * Generated from protobuf message <code>google.rpc.Status</code> |
| 19 | 19 | */ |
| 20 | -class Status extends \Dudlewebs\WPMCS\Google\Protobuf\Internal\Message | |
| 20 | +class Status extends \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\Message | |
| 21 | 21 | { |
| 22 | 22 | /** |
| 23 | 23 | * The status code, which should be an enum value of |
| 24 | 24 | * [google.rpc.Code][google.rpc.Code]. |
| @@ -55,9 +55,9 @@ | ||
| 55 | 55 | * A developer-facing error message, which should be in English. Any |
| 56 | 56 | * user-facing error message should be localized and sent in the |
| 57 | 57 | * [google.rpc.Status.details][google.rpc.Status.details] field, or localized |
| 58 | 58 | * by the client. |
| 59 | - * @type array<\Google\Protobuf\Any>|\Google\Protobuf\Internal\RepeatedField $details | |
| 59 | + * @type \Google\Protobuf\Any[] $details | |
| 60 | 60 | * A list of messages that carry the error details. There is a common set of |
| 61 | 61 | * message types for APIs to use. |
| 62 | 62 | * } |
| 63 | 63 | */ |
| @@ -62,9 +62,9 @@ | ||
| 62 | 62 | * } |
| 63 | 63 | */ |
| 64 | 64 | public function __construct($data = NULL) |
| 65 | 65 | { |
| 66 | - \Dudlewebs\WPMCS\GPBMetadata\Google\Rpc\Status::initOnce(); | |
| 66 | + \Dudlewebs\WPMCS\GCP\GPBMetadata\Google\Rpc\Status::initOnce(); | |
| 67 | 67 | parent::__construct($data); |
| 68 | 68 | } |
| 69 | 69 | /** |
| 70 | 70 | * The status code, which should be an enum value of |
| @@ -124,9 +124,9 @@ | ||
| 124 | 124 | * A list of messages that carry the error details. There is a common set of |
| 125 | 125 | * message types for APIs to use. |
| 126 | 126 | * |
| 127 | 127 | * Generated from protobuf field <code>repeated .google.protobuf.Any details = 3;</code> |
| 128 | - * @return \Google\Protobuf\Internal\RepeatedField | |
| 128 | + * @return RepeatedField<\Google\Protobuf\Any> | |
| 129 | 129 | */ |
| 130 | 130 | public function getDetails() |
| 131 | 131 | { |
| 132 | 132 | return $this->details; |
| @@ -135,14 +135,14 @@ | ||
| 135 | 135 | * A list of messages that carry the error details. There is a common set of |
| 136 | 136 | * message types for APIs to use. |
| 137 | 137 | * |
| 138 | 138 | * Generated from protobuf field <code>repeated .google.protobuf.Any details = 3;</code> |
| 139 | - * @param array<\Google\Protobuf\Any>|\Google\Protobuf\Internal\RepeatedField $var | |
| 139 | + * @param \Google\Protobuf\Any[] $var | |
| 140 | 140 | * @return $this |
| 141 | 141 | */ |
| 142 | 142 | public function setDetails($var) |
| 143 | 143 | { |
| 144 | - $arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\Google\Protobuf\Internal\GPBType::MESSAGE, \Dudlewebs\WPMCS\Google\Protobuf\Any::class); | |
| 144 | + $arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\GPBType::MESSAGE, \Dudlewebs\WPMCS\GCP\Google\Protobuf\Any::class); | |
| 145 | 145 | $this->details = $arr; |
| 146 | 146 | return $this; |
| 147 | 147 | } |
| 148 | 148 | } |