| 1 |
<?php |
| 2 |
|
| 3 |
# Generated by the protocol buffer compiler. DO NOT EDIT! |
| 4 |
# NO CHECKED-IN PROTOBUF GENCODE |
| 5 |
# source: google/protobuf/api.proto |
| 6 |
namespace Dudlewebs\WPMCS\GCP\Google\Protobuf; |
| 7 |
|
| 8 |
use Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\GPBType; |
| 9 |
use Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\GPBUtil; |
| 10 |
use Dudlewebs\WPMCS\GCP\Google\Protobuf\RepeatedField; |
| 11 |
/** |
| 12 |
* Api is a light-weight descriptor for an API Interface. |
| 13 |
* Interfaces are also described as "protocol buffer services" in some contexts, |
| 14 |
* such as by the "service" keyword in a .proto file, but they are different |
| 15 |
* from API Services, which represent a concrete implementation of an interface |
| 16 |
* as opposed to simply a description of methods and bindings. They are also |
| 17 |
* sometimes simply referred to as "APIs" in other contexts, such as the name of |
| 18 |
* this message itself. See https://cloud.google.com/apis/design/glossary for |
| 19 |
* detailed terminology. |
| 20 |
* New usages of this message as an alternative to ServiceDescriptorProto are |
| 21 |
* strongly discouraged. This message does not reliability preserve all |
| 22 |
* information necessary to model the schema and preserve semantics. Instead |
| 23 |
* make use of FileDescriptorSet which preserves the necessary information. |
| 24 |
* |
| 25 |
* Generated from protobuf message <code>google.protobuf.Api</code> |
| 26 |
*/ |
| 27 |
class Api extends \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\Message |
| 28 |
{ |
| 29 |
/** |
| 30 |
* The fully qualified name of this interface, including package name |
| 31 |
* followed by the interface's simple name. |
| 32 |
* |
| 33 |
* Generated from protobuf field <code>string name = 1;</code> |
| 34 |
*/ |
| 35 |
protected $name = ''; |
| 36 |
/** |
| 37 |
* The methods of this interface, in unspecified order. |
| 38 |
* |
| 39 |
* Generated from protobuf field <code>repeated .google.protobuf.Method methods = 2;</code> |
| 40 |
*/ |
| 41 |
private $methods; |
| 42 |
/** |
| 43 |
* Any metadata attached to the interface. |
| 44 |
* |
| 45 |
* Generated from protobuf field <code>repeated .google.protobuf.Option options = 3;</code> |
| 46 |
*/ |
| 47 |
private $options; |
| 48 |
/** |
| 49 |
* A version string for this interface. If specified, must have the form |
| 50 |
* `major-version.minor-version`, as in `1.10`. If the minor version is |
| 51 |
* omitted, it defaults to zero. If the entire version field is empty, the |
| 52 |
* major version is derived from the package name, as outlined below. If the |
| 53 |
* field is not empty, the version in the package name will be verified to be |
| 54 |
* consistent with what is provided here. |
| 55 |
* The versioning schema uses [semantic |
| 56 |
* versioning](http://semver.org) where the major version number |
| 57 |
* indicates a breaking change and the minor version an additive, |
| 58 |
* non-breaking change. Both version numbers are signals to users |
| 59 |
* what to expect from different versions, and should be carefully |
| 60 |
* chosen based on the product plan. |
| 61 |
* The major version is also reflected in the package name of the |
| 62 |
* interface, which must end in `v<major-version>`, as in |
| 63 |
* `google.feature.v1`. For major versions 0 and 1, the suffix can |
| 64 |
* be omitted. Zero major versions must only be used for |
| 65 |
* experimental, non-GA interfaces. |
| 66 |
* |
| 67 |
* Generated from protobuf field <code>string version = 4;</code> |
| 68 |
*/ |
| 69 |
protected $version = ''; |
| 70 |
/** |
| 71 |
* Source context for the protocol buffer service represented by this |
| 72 |
* message. |
| 73 |
* |
| 74 |
* Generated from protobuf field <code>.google.protobuf.SourceContext source_context = 5;</code> |
| 75 |
*/ |
| 76 |
protected $source_context = null; |
| 77 |
/** |
| 78 |
* Included interfaces. See [Mixin][]. |
| 79 |
* |
| 80 |
* Generated from protobuf field <code>repeated .google.protobuf.Mixin mixins = 6;</code> |
| 81 |
*/ |
| 82 |
private $mixins; |
| 83 |
/** |
| 84 |
* The source syntax of the service. |
| 85 |
* |
| 86 |
* Generated from protobuf field <code>.google.protobuf.Syntax syntax = 7;</code> |
| 87 |
*/ |
| 88 |
protected $syntax = 0; |
| 89 |
/** |
| 90 |
* The source edition string, only valid when syntax is SYNTAX_EDITIONS. |
| 91 |
* |
| 92 |
* Generated from protobuf field <code>string edition = 8;</code> |
| 93 |
*/ |
| 94 |
protected $edition = ''; |
| 95 |
/** |
| 96 |
* Constructor. |
| 97 |
* |
| 98 |
* @param array $data { |
| 99 |
* Optional. Data for populating the Message object. |
| 100 |
* |
| 101 |
* @type string $name |
| 102 |
* The fully qualified name of this interface, including package name |
| 103 |
* followed by the interface's simple name. |
| 104 |
* @type \Google\Protobuf\Method[] $methods |
| 105 |
* The methods of this interface, in unspecified order. |
| 106 |
* @type \Google\Protobuf\Option[] $options |
| 107 |
* Any metadata attached to the interface. |
| 108 |
* @type string $version |
| 109 |
* A version string for this interface. If specified, must have the form |
| 110 |
* `major-version.minor-version`, as in `1.10`. If the minor version is |
| 111 |
* omitted, it defaults to zero. If the entire version field is empty, the |
| 112 |
* major version is derived from the package name, as outlined below. If the |
| 113 |
* field is not empty, the version in the package name will be verified to be |
| 114 |
* consistent with what is provided here. |
| 115 |
* The versioning schema uses [semantic |
| 116 |
* versioning](http://semver.org) where the major version number |
| 117 |
* indicates a breaking change and the minor version an additive, |
| 118 |
* non-breaking change. Both version numbers are signals to users |
| 119 |
* what to expect from different versions, and should be carefully |
| 120 |
* chosen based on the product plan. |
| 121 |
* The major version is also reflected in the package name of the |
| 122 |
* interface, which must end in `v<major-version>`, as in |
| 123 |
* `google.feature.v1`. For major versions 0 and 1, the suffix can |
| 124 |
* be omitted. Zero major versions must only be used for |
| 125 |
* experimental, non-GA interfaces. |
| 126 |
* @type \Google\Protobuf\SourceContext $source_context |
| 127 |
* Source context for the protocol buffer service represented by this |
| 128 |
* message. |
| 129 |
* @type \Google\Protobuf\Mixin[] $mixins |
| 130 |
* Included interfaces. See [Mixin][]. |
| 131 |
* @type int $syntax |
| 132 |
* The source syntax of the service. |
| 133 |
* @type string $edition |
| 134 |
* The source edition string, only valid when syntax is SYNTAX_EDITIONS. |
| 135 |
* } |
| 136 |
*/ |
| 137 |
public function __construct($data = NULL) |
| 138 |
{ |
| 139 |
\Dudlewebs\WPMCS\GCP\GPBMetadata\Google\Protobuf\Api::initOnce(); |
| 140 |
parent::__construct($data); |
| 141 |
} |
| 142 |
/** |
| 143 |
* The fully qualified name of this interface, including package name |
| 144 |
* followed by the interface's simple name. |
| 145 |
* |
| 146 |
* Generated from protobuf field <code>string name = 1;</code> |
| 147 |
* @return string |
| 148 |
*/ |
| 149 |
public function getName() |
| 150 |
{ |
| 151 |
return $this->name; |
| 152 |
} |
| 153 |
/** |
| 154 |
* The fully qualified name of this interface, including package name |
| 155 |
* followed by the interface's simple name. |
| 156 |
* |
| 157 |
* Generated from protobuf field <code>string name = 1;</code> |
| 158 |
* @param string $var |
| 159 |
* @return $this |
| 160 |
*/ |
| 161 |
public function setName($var) |
| 162 |
{ |
| 163 |
GPBUtil::checkString($var, True); |
| 164 |
$this->name = $var; |
| 165 |
return $this; |
| 166 |
} |
| 167 |
/** |
| 168 |
* The methods of this interface, in unspecified order. |
| 169 |
* |
| 170 |
* Generated from protobuf field <code>repeated .google.protobuf.Method methods = 2;</code> |
| 171 |
* @return RepeatedField<\Google\Protobuf\Method> |
| 172 |
*/ |
| 173 |
public function getMethods() |
| 174 |
{ |
| 175 |
return $this->methods; |
| 176 |
} |
| 177 |
/** |
| 178 |
* The methods of this interface, in unspecified order. |
| 179 |
* |
| 180 |
* Generated from protobuf field <code>repeated .google.protobuf.Method methods = 2;</code> |
| 181 |
* @param \Google\Protobuf\Method[] $var |
| 182 |
* @return $this |
| 183 |
*/ |
| 184 |
public function setMethods($var) |
| 185 |
{ |
| 186 |
$arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\GPBType::MESSAGE, \Dudlewebs\WPMCS\GCP\Google\Protobuf\Method::class); |
| 187 |
$this->methods = $arr; |
| 188 |
return $this; |
| 189 |
} |
| 190 |
/** |
| 191 |
* Any metadata attached to the interface. |
| 192 |
* |
| 193 |
* Generated from protobuf field <code>repeated .google.protobuf.Option options = 3;</code> |
| 194 |
* @return RepeatedField<\Google\Protobuf\Option> |
| 195 |
*/ |
| 196 |
public function getOptions() |
| 197 |
{ |
| 198 |
return $this->options; |
| 199 |
} |
| 200 |
/** |
| 201 |
* Any metadata attached to the interface. |
| 202 |
* |
| 203 |
* Generated from protobuf field <code>repeated .google.protobuf.Option options = 3;</code> |
| 204 |
* @param \Google\Protobuf\Option[] $var |
| 205 |
* @return $this |
| 206 |
*/ |
| 207 |
public function setOptions($var) |
| 208 |
{ |
| 209 |
$arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\GPBType::MESSAGE, \Dudlewebs\WPMCS\GCP\Google\Protobuf\Option::class); |
| 210 |
$this->options = $arr; |
| 211 |
return $this; |
| 212 |
} |
| 213 |
/** |
| 214 |
* A version string for this interface. If specified, must have the form |
| 215 |
* `major-version.minor-version`, as in `1.10`. If the minor version is |
| 216 |
* omitted, it defaults to zero. If the entire version field is empty, the |
| 217 |
* major version is derived from the package name, as outlined below. If the |
| 218 |
* field is not empty, the version in the package name will be verified to be |
| 219 |
* consistent with what is provided here. |
| 220 |
* The versioning schema uses [semantic |
| 221 |
* versioning](http://semver.org) where the major version number |
| 222 |
* indicates a breaking change and the minor version an additive, |
| 223 |
* non-breaking change. Both version numbers are signals to users |
| 224 |
* what to expect from different versions, and should be carefully |
| 225 |
* chosen based on the product plan. |
| 226 |
* The major version is also reflected in the package name of the |
| 227 |
* interface, which must end in `v<major-version>`, as in |
| 228 |
* `google.feature.v1`. For major versions 0 and 1, the suffix can |
| 229 |
* be omitted. Zero major versions must only be used for |
| 230 |
* experimental, non-GA interfaces. |
| 231 |
* |
| 232 |
* Generated from protobuf field <code>string version = 4;</code> |
| 233 |
* @return string |
| 234 |
*/ |
| 235 |
public function getVersion() |
| 236 |
{ |
| 237 |
return $this->version; |
| 238 |
} |
| 239 |
/** |
| 240 |
* A version string for this interface. If specified, must have the form |
| 241 |
* `major-version.minor-version`, as in `1.10`. If the minor version is |
| 242 |
* omitted, it defaults to zero. If the entire version field is empty, the |
| 243 |
* major version is derived from the package name, as outlined below. If the |
| 244 |
* field is not empty, the version in the package name will be verified to be |
| 245 |
* consistent with what is provided here. |
| 246 |
* The versioning schema uses [semantic |
| 247 |
* versioning](http://semver.org) where the major version number |
| 248 |
* indicates a breaking change and the minor version an additive, |
| 249 |
* non-breaking change. Both version numbers are signals to users |
| 250 |
* what to expect from different versions, and should be carefully |
| 251 |
* chosen based on the product plan. |
| 252 |
* The major version is also reflected in the package name of the |
| 253 |
* interface, which must end in `v<major-version>`, as in |
| 254 |
* `google.feature.v1`. For major versions 0 and 1, the suffix can |
| 255 |
* be omitted. Zero major versions must only be used for |
| 256 |
* experimental, non-GA interfaces. |
| 257 |
* |
| 258 |
* Generated from protobuf field <code>string version = 4;</code> |
| 259 |
* @param string $var |
| 260 |
* @return $this |
| 261 |
*/ |
| 262 |
public function setVersion($var) |
| 263 |
{ |
| 264 |
GPBUtil::checkString($var, True); |
| 265 |
$this->version = $var; |
| 266 |
return $this; |
| 267 |
} |
| 268 |
/** |
| 269 |
* Source context for the protocol buffer service represented by this |
| 270 |
* message. |
| 271 |
* |
| 272 |
* Generated from protobuf field <code>.google.protobuf.SourceContext source_context = 5;</code> |
| 273 |
* @return \Google\Protobuf\SourceContext|null |
| 274 |
*/ |
| 275 |
public function getSourceContext() |
| 276 |
{ |
| 277 |
return $this->source_context; |
| 278 |
} |
| 279 |
public function hasSourceContext() |
| 280 |
{ |
| 281 |
return isset($this->source_context); |
| 282 |
} |
| 283 |
public function clearSourceContext() |
| 284 |
{ |
| 285 |
unset($this->source_context); |
| 286 |
} |
| 287 |
/** |
| 288 |
* Source context for the protocol buffer service represented by this |
| 289 |
* message. |
| 290 |
* |
| 291 |
* Generated from protobuf field <code>.google.protobuf.SourceContext source_context = 5;</code> |
| 292 |
* @param \Google\Protobuf\SourceContext $var |
| 293 |
* @return $this |
| 294 |
*/ |
| 295 |
public function setSourceContext($var) |
| 296 |
{ |
| 297 |
GPBUtil::checkMessage($var, \Dudlewebs\WPMCS\GCP\Google\Protobuf\SourceContext::class); |
| 298 |
$this->source_context = $var; |
| 299 |
return $this; |
| 300 |
} |
| 301 |
/** |
| 302 |
* Included interfaces. See [Mixin][]. |
| 303 |
* |
| 304 |
* Generated from protobuf field <code>repeated .google.protobuf.Mixin mixins = 6;</code> |
| 305 |
* @return RepeatedField<\Google\Protobuf\Mixin> |
| 306 |
*/ |
| 307 |
public function getMixins() |
| 308 |
{ |
| 309 |
return $this->mixins; |
| 310 |
} |
| 311 |
/** |
| 312 |
* Included interfaces. See [Mixin][]. |
| 313 |
* |
| 314 |
* Generated from protobuf field <code>repeated .google.protobuf.Mixin mixins = 6;</code> |
| 315 |
* @param \Google\Protobuf\Mixin[] $var |
| 316 |
* @return $this |
| 317 |
*/ |
| 318 |
public function setMixins($var) |
| 319 |
{ |
| 320 |
$arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\GPBType::MESSAGE, \Dudlewebs\WPMCS\GCP\Google\Protobuf\Mixin::class); |
| 321 |
$this->mixins = $arr; |
| 322 |
return $this; |
| 323 |
} |
| 324 |
/** |
| 325 |
* The source syntax of the service. |
| 326 |
* |
| 327 |
* Generated from protobuf field <code>.google.protobuf.Syntax syntax = 7;</code> |
| 328 |
* @return int |
| 329 |
*/ |
| 330 |
public function getSyntax() |
| 331 |
{ |
| 332 |
return $this->syntax; |
| 333 |
} |
| 334 |
/** |
| 335 |
* The source syntax of the service. |
| 336 |
* |
| 337 |
* Generated from protobuf field <code>.google.protobuf.Syntax syntax = 7;</code> |
| 338 |
* @param int $var |
| 339 |
* @return $this |
| 340 |
*/ |
| 341 |
public function setSyntax($var) |
| 342 |
{ |
| 343 |
GPBUtil::checkEnum($var, \Dudlewebs\WPMCS\GCP\Google\Protobuf\Syntax::class); |
| 344 |
$this->syntax = $var; |
| 345 |
return $this; |
| 346 |
} |
| 347 |
/** |
| 348 |
* The source edition string, only valid when syntax is SYNTAX_EDITIONS. |
| 349 |
* |
| 350 |
* Generated from protobuf field <code>string edition = 8;</code> |
| 351 |
* @return string |
| 352 |
*/ |
| 353 |
public function getEdition() |
| 354 |
{ |
| 355 |
return $this->edition; |
| 356 |
} |
| 357 |
/** |
| 358 |
* The source edition string, only valid when syntax is SYNTAX_EDITIONS. |
| 359 |
* |
| 360 |
* Generated from protobuf field <code>string edition = 8;</code> |
| 361 |
* @param string $var |
| 362 |
* @return $this |
| 363 |
*/ |
| 364 |
public function setEdition($var) |
| 365 |
{ |
| 366 |
GPBUtil::checkString($var, True); |
| 367 |
$this->edition = $var; |
| 368 |
return $this; |
| 369 |
} |
| 370 |
} |
| 371 |
|