media-cloud-sync
/
includes
/
sdk
/
google
/
google
/
common-protos
/
src
/
Api
/
DocumentationRule.php
DocumentationRule.php in Media Cloud Sync 1.2.13, at includes/sdk/google/google/common-protos/src/Api/DocumentationRule.php
| 1 | <?php |
| 2 | |
| 3 | # Generated by the protocol buffer compiler. DO NOT EDIT! |
| 4 | # source: google/api/documentation.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 | * A documentation rule provides information about individual API elements. |
| 12 | * |
| 13 | * Generated from protobuf message <code>google.api.DocumentationRule</code> |
| 14 | */ |
| 15 | class DocumentationRule extends \Dudlewebs\WPMCS\Google\Protobuf\Internal\Message |
| 16 | { |
| 17 | /** |
| 18 | * The selector is a comma-separated list of patterns for any element such as |
| 19 | * a method, a field, an enum value. Each pattern is a qualified name of the |
| 20 | * element which may end in "*", indicating a wildcard. Wildcards are only |
| 21 | * allowed at the end and for a whole component of the qualified name, |
| 22 | * i.e. "foo.*" is ok, but not "foo.b*" or "foo.*.bar". A wildcard will match |
| 23 | * one or more components. To specify a default for all applicable elements, |
| 24 | * the whole pattern "*" is used. |
| 25 | * |
| 26 | * Generated from protobuf field <code>string selector = 1;</code> |
| 27 | */ |
| 28 | protected $selector = ''; |
| 29 | /** |
| 30 | * Description of the selected proto element (e.g. a message, a method, a |
| 31 | * 'service' definition, or a field). Defaults to leading & trailing comments |
| 32 | * taken from the proto source definition of the proto element. |
| 33 | * |
| 34 | * Generated from protobuf field <code>string description = 2;</code> |
| 35 | */ |
| 36 | protected $description = ''; |
| 37 | /** |
| 38 | * Deprecation description of the selected element(s). It can be provided if |
| 39 | * an element is marked as `deprecated`. |
| 40 | * |
| 41 | * Generated from protobuf field <code>string deprecation_description = 3;</code> |
| 42 | */ |
| 43 | protected $deprecation_description = ''; |
| 44 | /** |
| 45 | * Constructor. |
| 46 | * |
| 47 | * @param array $data { |
| 48 | * Optional. Data for populating the Message object. |
| 49 | * |
| 50 | * @type string $selector |
| 51 | * The selector is a comma-separated list of patterns for any element such as |
| 52 | * a method, a field, an enum value. Each pattern is a qualified name of the |
| 53 | * element which may end in "*", indicating a wildcard. Wildcards are only |
| 54 | * allowed at the end and for a whole component of the qualified name, |
| 55 | * i.e. "foo.*" is ok, but not "foo.b*" or "foo.*.bar". A wildcard will match |
| 56 | * one or more components. To specify a default for all applicable elements, |
| 57 | * the whole pattern "*" is used. |
| 58 | * @type string $description |
| 59 | * Description of the selected proto element (e.g. a message, a method, a |
| 60 | * 'service' definition, or a field). Defaults to leading & trailing comments |
| 61 | * taken from the proto source definition of the proto element. |
| 62 | * @type string $deprecation_description |
| 63 | * Deprecation description of the selected element(s). It can be provided if |
| 64 | * an element is marked as `deprecated`. |
| 65 | * } |
| 66 | */ |
| 67 | public function __construct($data = NULL) |
| 68 | { |
| 69 | \Dudlewebs\WPMCS\GPBMetadata\Google\Api\Documentation::initOnce(); |
| 70 | parent::__construct($data); |
| 71 | } |
| 72 | /** |
| 73 | * The selector is a comma-separated list of patterns for any element such as |
| 74 | * a method, a field, an enum value. Each pattern is a qualified name of the |
| 75 | * element which may end in "*", indicating a wildcard. Wildcards are only |
| 76 | * allowed at the end and for a whole component of the qualified name, |
| 77 | * i.e. "foo.*" is ok, but not "foo.b*" or "foo.*.bar". A wildcard will match |
| 78 | * one or more components. To specify a default for all applicable elements, |
| 79 | * the whole pattern "*" is used. |
| 80 | * |
| 81 | * Generated from protobuf field <code>string selector = 1;</code> |
| 82 | * @return string |
| 83 | */ |
| 84 | public function getSelector() |
| 85 | { |
| 86 | return $this->selector; |
| 87 | } |
| 88 | /** |
| 89 | * The selector is a comma-separated list of patterns for any element such as |
| 90 | * a method, a field, an enum value. Each pattern is a qualified name of the |
| 91 | * element which may end in "*", indicating a wildcard. Wildcards are only |
| 92 | * allowed at the end and for a whole component of the qualified name, |
| 93 | * i.e. "foo.*" is ok, but not "foo.b*" or "foo.*.bar". A wildcard will match |
| 94 | * one or more components. To specify a default for all applicable elements, |
| 95 | * the whole pattern "*" is used. |
| 96 | * |
| 97 | * Generated from protobuf field <code>string selector = 1;</code> |
| 98 | * @param string $var |
| 99 | * @return $this |
| 100 | */ |
| 101 | public function setSelector($var) |
| 102 | { |
| 103 | GPBUtil::checkString($var, True); |
| 104 | $this->selector = $var; |
| 105 | return $this; |
| 106 | } |
| 107 | /** |
| 108 | * Description of the selected proto element (e.g. a message, a method, a |
| 109 | * 'service' definition, or a field). Defaults to leading & trailing comments |
| 110 | * taken from the proto source definition of the proto element. |
| 111 | * |
| 112 | * Generated from protobuf field <code>string description = 2;</code> |
| 113 | * @return string |
| 114 | */ |
| 115 | public function getDescription() |
| 116 | { |
| 117 | return $this->description; |
| 118 | } |
| 119 | /** |
| 120 | * Description of the selected proto element (e.g. a message, a method, a |
| 121 | * 'service' definition, or a field). Defaults to leading & trailing comments |
| 122 | * taken from the proto source definition of the proto element. |
| 123 | * |
| 124 | * Generated from protobuf field <code>string description = 2;</code> |
| 125 | * @param string $var |
| 126 | * @return $this |
| 127 | */ |
| 128 | public function setDescription($var) |
| 129 | { |
| 130 | GPBUtil::checkString($var, True); |
| 131 | $this->description = $var; |
| 132 | return $this; |
| 133 | } |
| 134 | /** |
| 135 | * Deprecation description of the selected element(s). It can be provided if |
| 136 | * an element is marked as `deprecated`. |
| 137 | * |
| 138 | * Generated from protobuf field <code>string deprecation_description = 3;</code> |
| 139 | * @return string |
| 140 | */ |
| 141 | public function getDeprecationDescription() |
| 142 | { |
| 143 | return $this->deprecation_description; |
| 144 | } |
| 145 | /** |
| 146 | * Deprecation description of the selected element(s). It can be provided if |
| 147 | * an element is marked as `deprecated`. |
| 148 | * |
| 149 | * Generated from protobuf field <code>string deprecation_description = 3;</code> |
| 150 | * @param string $var |
| 151 | * @return $this |
| 152 | */ |
| 153 | public function setDeprecationDescription($var) |
| 154 | { |
| 155 | GPBUtil::checkString($var, True); |
| 156 | $this->deprecation_description = $var; |
| 157 | return $this; |
| 158 | } |
| 159 | } |
| 160 |