media-cloud-sync
/
includes
/
sdk
/
google
/
google
/
common-protos
/
src
/
Api
/
SystemParameterRule.php
SystemParameterRule.php in Media Cloud Sync 1.2.11, at includes/sdk/google/google/common-protos/src/Api/SystemParameterRule.php
| 1 | <?php |
| 2 | |
| 3 | # Generated by the protocol buffer compiler. DO NOT EDIT! |
| 4 | # source: google/api/system_parameter.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 | * Define a system parameter rule mapping system parameter definitions to |
| 12 | * methods. |
| 13 | * |
| 14 | * Generated from protobuf message <code>google.api.SystemParameterRule</code> |
| 15 | */ |
| 16 | class SystemParameterRule extends \Dudlewebs\WPMCS\Google\Protobuf\Internal\Message |
| 17 | { |
| 18 | /** |
| 19 | * Selects the methods to which this rule applies. Use '*' to indicate all |
| 20 | * methods in all APIs. |
| 21 | * Refer to [selector][google.api.DocumentationRule.selector] for syntax |
| 22 | * details. |
| 23 | * |
| 24 | * Generated from protobuf field <code>string selector = 1;</code> |
| 25 | */ |
| 26 | protected $selector = ''; |
| 27 | /** |
| 28 | * Define parameters. Multiple names may be defined for a parameter. |
| 29 | * For a given method call, only one of them should be used. If multiple |
| 30 | * names are used the behavior is implementation-dependent. |
| 31 | * If none of the specified names are present the behavior is |
| 32 | * parameter-dependent. |
| 33 | * |
| 34 | * Generated from protobuf field <code>repeated .google.api.SystemParameter parameters = 2;</code> |
| 35 | */ |
| 36 | private $parameters; |
| 37 | /** |
| 38 | * Constructor. |
| 39 | * |
| 40 | * @param array $data { |
| 41 | * Optional. Data for populating the Message object. |
| 42 | * |
| 43 | * @type string $selector |
| 44 | * Selects the methods to which this rule applies. Use '*' to indicate all |
| 45 | * methods in all APIs. |
| 46 | * Refer to [selector][google.api.DocumentationRule.selector] for syntax |
| 47 | * details. |
| 48 | * @type array<\Google\Api\SystemParameter>|\Google\Protobuf\Internal\RepeatedField $parameters |
| 49 | * Define parameters. Multiple names may be defined for a parameter. |
| 50 | * For a given method call, only one of them should be used. If multiple |
| 51 | * names are used the behavior is implementation-dependent. |
| 52 | * If none of the specified names are present the behavior is |
| 53 | * parameter-dependent. |
| 54 | * } |
| 55 | */ |
| 56 | public function __construct($data = NULL) |
| 57 | { |
| 58 | \Dudlewebs\WPMCS\GPBMetadata\Google\Api\SystemParameter::initOnce(); |
| 59 | parent::__construct($data); |
| 60 | } |
| 61 | /** |
| 62 | * Selects the methods to which this rule applies. Use '*' to indicate all |
| 63 | * methods in all APIs. |
| 64 | * Refer to [selector][google.api.DocumentationRule.selector] for syntax |
| 65 | * details. |
| 66 | * |
| 67 | * Generated from protobuf field <code>string selector = 1;</code> |
| 68 | * @return string |
| 69 | */ |
| 70 | public function getSelector() |
| 71 | { |
| 72 | return $this->selector; |
| 73 | } |
| 74 | /** |
| 75 | * Selects the methods to which this rule applies. Use '*' to indicate all |
| 76 | * methods in all APIs. |
| 77 | * Refer to [selector][google.api.DocumentationRule.selector] for syntax |
| 78 | * details. |
| 79 | * |
| 80 | * Generated from protobuf field <code>string selector = 1;</code> |
| 81 | * @param string $var |
| 82 | * @return $this |
| 83 | */ |
| 84 | public function setSelector($var) |
| 85 | { |
| 86 | GPBUtil::checkString($var, True); |
| 87 | $this->selector = $var; |
| 88 | return $this; |
| 89 | } |
| 90 | /** |
| 91 | * Define parameters. Multiple names may be defined for a parameter. |
| 92 | * For a given method call, only one of them should be used. If multiple |
| 93 | * names are used the behavior is implementation-dependent. |
| 94 | * If none of the specified names are present the behavior is |
| 95 | * parameter-dependent. |
| 96 | * |
| 97 | * Generated from protobuf field <code>repeated .google.api.SystemParameter parameters = 2;</code> |
| 98 | * @return \Google\Protobuf\Internal\RepeatedField |
| 99 | */ |
| 100 | public function getParameters() |
| 101 | { |
| 102 | return $this->parameters; |
| 103 | } |
| 104 | /** |
| 105 | * Define parameters. Multiple names may be defined for a parameter. |
| 106 | * For a given method call, only one of them should be used. If multiple |
| 107 | * names are used the behavior is implementation-dependent. |
| 108 | * If none of the specified names are present the behavior is |
| 109 | * parameter-dependent. |
| 110 | * |
| 111 | * Generated from protobuf field <code>repeated .google.api.SystemParameter parameters = 2;</code> |
| 112 | * @param array<\Google\Api\SystemParameter>|\Google\Protobuf\Internal\RepeatedField $var |
| 113 | * @return $this |
| 114 | */ |
| 115 | public function setParameters($var) |
| 116 | { |
| 117 | $arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\Google\Protobuf\Internal\GPBType::MESSAGE, \Dudlewebs\WPMCS\Google\Api\SystemParameter::class); |
| 118 | $this->parameters = $arr; |
| 119 | return $this; |
| 120 | } |
| 121 | } |
| 122 |