/wp-content/plugins/google-listings-and-ads/vendor/google/protobuf/src/Google/Protobuf/Api.php

https://gitlab.com/remyvianne/krowkaramel · PHP · 360 lines · 97 code · 29 blank · 234 comment · 0 complexity · 321cc63fa4e32cf982f9c630b1f1c782 MD5 · raw file

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