| 1 |
<?php |
| 2 |
|
| 3 |
# Generated by the protocol buffer compiler. DO NOT EDIT! |
| 4 |
# source: google/api/backend.proto |
| 5 |
namespace Dudlewebs\WPMCS\Google\Api; |
| 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; |
| 10 |
/** |
| 11 |
* `Backend` defines the backend configuration for a service. |
| 12 |
* |
| 13 |
* Generated from protobuf message <code>google.api.Backend</code> |
| 14 |
*/ |
| 15 |
class Backend extends \Dudlewebs\WPMCS\Google\Protobuf\Internal\Message |
| 16 |
{ |
| 17 |
/** |
| 18 |
* A list of API backend rules that apply to individual API methods. |
| 19 |
* **NOTE:** All service configuration rules follow "last one wins" order. |
| 20 |
* |
| 21 |
* Generated from protobuf field <code>repeated .google.api.BackendRule rules = 1;</code> |
| 22 |
*/ |
| 23 |
private $rules; |
| 24 |
/** |
| 25 |
* Constructor. |
| 26 |
* |
| 27 |
* @param array $data { |
| 28 |
* Optional. Data for populating the Message object. |
| 29 |
* |
| 30 |
* @type array<\Google\Api\BackendRule>|\Google\Protobuf\Internal\RepeatedField $rules |
| 31 |
* A list of API backend rules that apply to individual API methods. |
| 32 |
* **NOTE:** All service configuration rules follow "last one wins" order. |
| 33 |
* } |
| 34 |
*/ |
| 35 |
public function __construct($data = NULL) |
| 36 |
{ |
| 37 |
\Dudlewebs\WPMCS\GPBMetadata\Google\Api\Backend::initOnce(); |
| 38 |
parent::__construct($data); |
| 39 |
} |
| 40 |
/** |
| 41 |
* A list of API backend rules that apply to individual API methods. |
| 42 |
* **NOTE:** All service configuration rules follow "last one wins" order. |
| 43 |
* |
| 44 |
* Generated from protobuf field <code>repeated .google.api.BackendRule rules = 1;</code> |
| 45 |
* @return \Google\Protobuf\Internal\RepeatedField |
| 46 |
*/ |
| 47 |
public function getRules() |
| 48 |
{ |
| 49 |
return $this->rules; |
| 50 |
} |
| 51 |
/** |
| 52 |
* A list of API backend rules that apply to individual API methods. |
| 53 |
* **NOTE:** All service configuration rules follow "last one wins" order. |
| 54 |
* |
| 55 |
* Generated from protobuf field <code>repeated .google.api.BackendRule rules = 1;</code> |
| 56 |
* @param array<\Google\Api\BackendRule>|\Google\Protobuf\Internal\RepeatedField $var |
| 57 |
* @return $this |
| 58 |
*/ |
| 59 |
public function setRules($var) |
| 60 |
{ |
| 61 |
$arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\Google\Protobuf\Internal\GPBType::MESSAGE, \Dudlewebs\WPMCS\Google\Api\BackendRule::class); |
| 62 |
$this->rules = $arr; |
| 63 |
return $this; |
| 64 |
} |
| 65 |
} |
| 66 |
|