CODE_OF_CONDUCT.md000064400000003675151742727570007377 0ustar00# Contributor Code of Conduct As contributors and maintainers of this project, and in the interest of fostering an open and welcoming community, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities. We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, religion, or nationality. Examples of unacceptable behavior by participants include: * The use of sexualized language or imagery * Personal attacks * Trolling or insulting/derogatory comments * Public or private harassment * Publishing other's private information, such as physical or electronic addresses, without explicit permission * Other unethical or unprofessional conduct. Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. By adopting this Code of Conduct, project maintainers commit themselves to fairly and consistently applying these principles to every aspect of managing this project. Project maintainers who do not follow or enforce the Code of Conduct may be permanently removed from the project team. This code of conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers. This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.2.0, available at [http://contributor-covenant.org/version/1/2/0/](http://contributor-covenant.org/version/1/2/0/) CONTRIBUTING.md000064400000003357151742727570007026 0ustar00## Contributing We are pleased that you are interested in contributing to our work. ### Generated Protocol Buffer Classes The classes in this repository are generated by the protocol buffer compiler, as known as protoc. As such, we can not accept contributions directly to these generated classes. Instead, changes should be suggested upstream in the [API Common Protos][api-common-protos] repository. ### Documentation We want for both protocol buffers and the types that we have provided here to be understandable to everyone, including to those who may be unfamiliar with the ecosystem or concepts. That means we want our documentation to be better, and welcome anyone willing to help with this. For documentation in the generated classes, please open a pull request against the [API Common Protos][api-common-protos] repository. Any improvements to READMEs or other non-generated documentation or development scripts in this repository would be greatly appreciated - please open a pull request. ## Contributor License Agreement Before we can accept your pull requests, you will need to sign a Contributor License Agreement (CLA): - **If you are an individual writing original source code** and **you own the intellectual property**, then you need to sign an [individual CLA][]. - **If you work for a company that wants to allow you to contribute your work**, then you need to sign a [corporate CLA][]. You can sign these electronically (just scroll to the bottom). After that, we'll be able to accept your pull requests. [individual CLA]: https://developers.google.com/open-source/cla/individual [corporate CLA]: https://developers.google.com/open-source/cla/corporate [api-common-protos]: https://github.com/googleapis/api-common-protosLICENSE000064400000026135151742727570005601 0ustar00 Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. README.md000064400000003273151742727570006051 0ustar00## Common Protos PHP [![release level](https://img.shields.io/badge/release%20level-general%20availability%20%28GA%29-brightgreen.svg?style=flat)](https://cloud.google.com/terms/launch-stages) ![Build Status](https://github.com/googleapis/common-protos-php/actions/workflows/tests.yml/badge.svg) This repository is a home for the [protocol buffer][protobuf] types which are common dependencies throughout the Google API ecosystem, generated for PHP. The protobuf definitions for these generated PHP classes are provided in the [API Common Protos][api-common-protos] repository. ## Using these generated classes These classes are made available under an Apache license (see `LICENSE`) and you are free to depend on them within your applications. They are considered stable and will not change in backwards-incompaible ways. They are distributed as the [google/common-protos][packagist-common-protos] composer package, available on [Packagist][packagist]. In order to depend on these classes, add the following line to your composer.json file in the `requires` section: ``` "google/common-protos": "^1.0" ``` Or else use composer from the command line: ```bash composer require google/common-protos ``` ## License These classes are licensed using the Apache 2.0 software license, a permissive, copyfree license. You are free to use them in your applications provided the license terms are honored. [api-style]: https://cloud.google.com/apis/design/ [protobuf]: https://developers.google.com/protocol-buffers/ [api-common-protos]: https://github.com/googleapis/api-common-protos/ [packagist-common-protos]: https://packagist.org/packages/google/common-protos/ [packagist]: https://packagist.org/ SECURITY.md000064400000000511151742727570006353 0ustar00# Security Policy To report a security issue, please use [g.co/vulnz](https://g.co/vulnz). The Google Security Team will respond within 5 working days of your report on g.co/vulnz. We use g.co/vulnz for our intake, and do coordination and disclosure here using GitHub Security Advisory to privately discuss and fix the issue. composer.json000064400000000745151742727570007315 0ustar00{ "name": "google/common-protos", "type": "library", "description": "Google API Common Protos for PHP", "keywords": ["google"], "homepage": "https://github.com/googleapis/common-protos-php", "license": "Apache-2.0", "require": { "google/protobuf": "^3.6.1, !=3.20.0" }, "require-dev": { "phpunit/phpunit": "^4.8.36||^8.5", "sami/sami": "*" }, "autoload": { "psr-4": { "Google\\": "src", "GPBMetadata\\Google\\": "metadata" } } } metadata/Api/Annotations.php000064400000002070151742727570012063 0ustar00internalAddGeneratedFile(hex2bin( "0ac4010a1c676f6f676c652f6170692f616e6e6f746174696f6e732e7072" . "6f746f120a676f6f676c652e6170691a20676f6f676c652f70726f746f62" . "75662f64657363726970746f722e70726f746f426e0a0e636f6d2e676f6f" . "676c652e6170694210416e6e6f746174696f6e7350726f746f50015a4167" . "6f6f676c652e676f6c616e672e6f72672f67656e70726f746f2f676f6f67" . "6c65617069732f6170692f616e6e6f746174696f6e733b616e6e6f746174" . "696f6e73a2020447415049620670726f746f33" ), true); static::$is_initialized = true; } } metadata/Api/Auth.php000064400000004270151742727570010473 0ustar00internalAddGeneratedFile(hex2bin( "0a88050a15676f6f676c652f6170692f617574682e70726f746f120a676f" . "6f676c652e617069226c0a0e41757468656e7469636174696f6e122d0a05" . "72756c657318032003280b321e2e676f6f676c652e6170692e4175746865" . "6e7469636174696f6e52756c65122b0a0970726f76696465727318042003" . "280b32182e676f6f676c652e6170692e4175746850726f766964657222a9" . "010a1241757468656e7469636174696f6e52756c6512100a0873656c6563" . "746f72180120012809122c0a056f6175746818022001280b321d2e676f6f" . "676c652e6170692e4f41757468526571756972656d656e747312200a1861" . "6c6c6f775f776974686f75745f63726564656e7469616c18052001280812" . "310a0c726571756972656d656e747318072003280b321b2e676f6f676c65" . "2e6170692e41757468526571756972656d656e74226a0a0c417574685072" . "6f7669646572120a0a026964180120012809120e0a066973737565721802" . "2001280912100a086a776b735f75726918032001280912110a0961756469" . "656e63657318042001280912190a11617574686f72697a6174696f6e5f75" . "726c180520012809222d0a114f41757468526571756972656d656e747312" . "180a1063616e6f6e6963616c5f73636f70657318012001280922390a0f41" . "757468526571756972656d656e7412130a0b70726f76696465725f696418" . "012001280912110a0961756469656e636573180220012809426b0a0e636f" . "6d2e676f6f676c652e61706942094175746850726f746f50015a45676f6f" . "676c652e676f6c616e672e6f72672f67656e70726f746f2f676f6f676c65" . "617069732f6170692f73657276696365636f6e6669673b73657276696365" . "636f6e666967a2020447415049620670726f746f33" ), true); static::$is_initialized = true; } } metadata/Api/Backend.php000064400000003652151742727570011124 0ustar00internalAddGeneratedFile(hex2bin( "0ab4040a18676f6f676c652f6170692f6261636b656e642e70726f746f12" . "0a676f6f676c652e61706922310a074261636b656e6412260a0572756c65" . "7318012003280b32172e676f6f676c652e6170692e4261636b656e645275" . "6c6522e0020a0b4261636b656e6452756c6512100a0873656c6563746f72" . "180120012809120f0a076164647265737318022001280912100a08646561" . "646c696e6518032001280112140a0c6d696e5f646561646c696e65180420" . "012801121a0a126f7065726174696f6e5f646561646c696e651805200128" . "0112410a10706174685f7472616e736c6174696f6e18062001280e32272e" . "676f6f676c652e6170692e4261636b656e6452756c652e50617468547261" . "6e736c6174696f6e12160a0c6a77745f61756469656e6365180720012809" . "480012160a0c64697361626c655f61757468180820012808480022650a0f" . "506174685472616e736c6174696f6e12200a1c504154485f5452414e534c" . "4154494f4e5f554e535045434946494544100012140a10434f4e5354414e" . "545f414444524553531001121a0a16415050454e445f504154485f544f5f" . "41444452455353100242100a0e61757468656e7469636174696f6e426e0a" . "0e636f6d2e676f6f676c652e617069420c4261636b656e6450726f746f50" . "015a45676f6f676c652e676f6c616e672e6f72672f67656e70726f746f2f" . "676f6f676c65617069732f6170692f73657276696365636f6e6669673b73" . "657276696365636f6e666967a2020447415049620670726f746f33" ), true); static::$is_initialized = true; } } metadata/Api/Billing.php000064400000002533151742727570011152 0ustar00internalAddGeneratedFile(hex2bin( "0ab4020a18676f6f676c652f6170692f62696c6c696e672e70726f746f12" . "0a676f6f676c652e6170692293010a0742696c6c696e6712450a15636f6e" . "73756d65725f64657374696e6174696f6e7318082003280b32262e676f6f" . "676c652e6170692e42696c6c696e672e42696c6c696e6744657374696e61" . "74696f6e1a410a1242696c6c696e6744657374696e6174696f6e121a0a12" . "6d6f6e69746f7265645f7265736f75726365180120012809120f0a076d65" . "7472696373180220032809426e0a0e636f6d2e676f6f676c652e61706942" . "0c42696c6c696e6750726f746f50015a45676f6f676c652e676f6c616e67" . "2e6f72672f67656e70726f746f2f676f6f676c65617069732f6170692f73" . "657276696365636f6e6669673b73657276696365636f6e666967a2020447" . "415049620670726f746f33" ), true); static::$is_initialized = true; } } metadata/Api/Client.php000064400000001750151742727570011010 0ustar00internalAddGeneratedFile(hex2bin( "0aba010a17676f6f676c652f6170692f636c69656e742e70726f746f120a" . "676f6f676c652e6170691a20676f6f676c652f70726f746f6275662f6465" . "7363726970746f722e70726f746f42690a0e636f6d2e676f6f676c652e61" . "7069420b436c69656e7450726f746f50015a41676f6f676c652e676f6c61" . "6e672e6f72672f67656e70726f746f2f676f6f676c65617069732f617069" . "2f616e6e6f746174696f6e733b616e6e6f746174696f6e73a20204474150" . "49620670726f746f33" ), true); static::$is_initialized = true; } } metadata/Api/ConfigChange.php000064400000003153151742727570012104 0ustar00internalAddGeneratedFile(hex2bin( "0ab1030a1e676f6f676c652f6170692f636f6e6669675f6368616e67652e" . "70726f746f120a676f6f676c652e6170692297010a0c436f6e6669674368" . "616e6765120f0a07656c656d656e7418012001280912110a096f6c645f76" . "616c756518022001280912110a096e65775f76616c756518032001280912" . "2b0a0b6368616e67655f7479706518042001280e32162e676f6f676c652e" . "6170692e4368616e67655479706512230a07616476696365731805200328" . "0b32122e676f6f676c652e6170692e416476696365221d0a064164766963" . "6512130a0b6465736372697074696f6e1802200128092a4f0a0a4368616e" . "676554797065121b0a174348414e47455f545950455f554e535045434946" . "494544100012090a0541444445441001120b0a0752454d4f564544100212" . "0c0a084d4f444946494544100342710a0e636f6d2e676f6f676c652e6170" . "694211436f6e6669674368616e676550726f746f50015a43676f6f676c65" . "2e676f6c616e672e6f72672f67656e70726f746f2f676f6f676c65617069" . "732f6170692f636f6e6669676368616e67653b636f6e6669676368616e67" . "65a2020447415049620670726f746f33" ), true); static::$is_initialized = true; } } metadata/Api/Consumer.php000064400000002775151742727570011375 0ustar00internalAddGeneratedFile(hex2bin( "0a87030a19676f6f676c652f6170692f636f6e73756d65722e70726f746f" . "120a676f6f676c652e617069223d0a1150726f6a65637450726f70657274" . "69657312280a0a70726f7065727469657318012003280b32142e676f6f67" . "6c652e6170692e50726f706572747922ac010a0850726f7065727479120c" . "0a046e616d65180120012809122f0a047479706518022001280e32212e67" . "6f6f676c652e6170692e50726f70657274792e50726f7065727479547970" . "6512130a0b6465736372697074696f6e180320012809224c0a0c50726f70" . "6572747954797065120f0a0b554e535045434946494544100012090a0549" . "4e543634100112080a04424f4f4c1002120a0a06535452494e471003120a" . "0a06444f55424c45100442680a0e636f6d2e676f6f676c652e617069420d" . "436f6e73756d657250726f746f50015a45676f6f676c652e676f6c616e67" . "2e6f72672f67656e70726f746f2f676f6f676c65617069732f6170692f73" . "657276696365636f6e6669673b73657276696365636f6e66696762067072" . "6f746f33" ), true); static::$is_initialized = true; } } metadata/Api/Context.php000064400000002327151742727570011217 0ustar00internalAddGeneratedFile(hex2bin( "0a97020a18676f6f676c652f6170692f636f6e746578742e70726f746f12" . "0a676f6f676c652e61706922310a07436f6e7465787412260a0572756c65" . "7318012003280b32172e676f6f676c652e6170692e436f6e746578745275" . "6c6522440a0b436f6e7465787452756c6512100a0873656c6563746f7218" . "012001280912110a0972657175657374656418022003280912100a087072" . "6f7669646564180320032809426e0a0e636f6d2e676f6f676c652e617069" . "420c436f6e7465787450726f746f50015a45676f6f676c652e676f6c616e" . "672e6f72672f67656e70726f746f2f676f6f676c65617069732f6170692f" . "73657276696365636f6e6669673b73657276696365636f6e666967a20204" . "47415049620670726f746f33" ), true); static::$is_initialized = true; } } metadata/Api/Control.php000064400000001762151742727570011215 0ustar00internalAddGeneratedFile(hex2bin( "0abe010a18676f6f676c652f6170692f636f6e74726f6c2e70726f746f12" . "0a676f6f676c652e617069221e0a07436f6e74726f6c12130a0b656e7669" . "726f6e6d656e74180120012809426e0a0e636f6d2e676f6f676c652e6170" . "69420c436f6e74726f6c50726f746f50015a45676f6f676c652e676f6c61" . "6e672e6f72672f67656e70726f746f2f676f6f676c65617069732f617069" . "2f73657276696365636f6e6669673b73657276696365636f6e666967a202" . "0447415049620670726f746f33" ), true); static::$is_initialized = true; } } metadata/Api/Distribution.php000064400000006445151742727570012257 0ustar00internalAddGeneratedFile(hex2bin( "0aa3080a1d676f6f676c652f6170692f646973747269627574696f6e2e70" . "726f746f120a676f6f676c652e6170691a1f676f6f676c652f70726f746f" . "6275662f74696d657374616d702e70726f746f22d9060a0c446973747269" . "627574696f6e120d0a05636f756e74180120012803120c0a046d65616e18" . "022001280112200a1873756d5f6f665f737175617265645f646576696174" . "696f6e180320012801122d0a0572616e676518042001280b321e2e676f6f" . "676c652e6170692e446973747269627574696f6e2e52616e6765123e0a0e" . "6275636b65745f6f7074696f6e7318062001280b32262e676f6f676c652e" . "6170692e446973747269627574696f6e2e4275636b65744f7074696f6e73" . "12150a0d6275636b65745f636f756e747318072003280312340a09657865" . "6d706c617273180a2003280b32212e676f6f676c652e6170692e44697374" . "7269627574696f6e2e4578656d706c61721a210a0552616e6765120b0a03" . "6d696e180120012801120b0a036d61781802200128011ab5030a0d427563" . "6b65744f7074696f6e7312470a0e6c696e6561725f6275636b6574731801" . "2001280b322d2e676f6f676c652e6170692e446973747269627574696f6e" . "2e4275636b65744f7074696f6e732e4c696e656172480012510a13657870" . "6f6e656e7469616c5f6275636b65747318022001280b32322e676f6f676c" . "652e6170692e446973747269627574696f6e2e4275636b65744f7074696f" . "6e732e4578706f6e656e7469616c4800124b0a106578706c696369745f62" . "75636b65747318032001280b322f2e676f6f676c652e6170692e44697374" . "7269627574696f6e2e4275636b65744f7074696f6e732e4578706c696369" . "7448001a430a064c696e656172121a0a126e756d5f66696e6974655f6275" . "636b657473180120012805120d0a057769647468180220012801120e0a06" . "6f66667365741803200128011a4f0a0b4578706f6e656e7469616c121a0a" . "126e756d5f66696e6974655f6275636b65747318012001280512150a0d67" . "726f7774685f666163746f72180220012801120d0a057363616c65180320" . "0128011a1a0a084578706c69636974120e0a06626f756e64731801200328" . "0142090a076f7074696f6e731a730a084578656d706c6172120d0a057661" . "6c7565180120012801122d0a0974696d657374616d7018022001280b321a" . "2e676f6f676c652e70726f746f6275662e54696d657374616d7012290a0b" . "6174746163686d656e747318032003280b32142e676f6f676c652e70726f" . "746f6275662e416e7942710a0e636f6d2e676f6f676c652e617069421144" . "6973747269627574696f6e50726f746f50015a43676f6f676c652e676f6c" . "616e672e6f72672f67656e70726f746f2f676f6f676c65617069732f6170" . "692f646973747269627574696f6e3b646973747269627574696f6ea20204" . "47415049620670726f746f33" ), true); static::$is_initialized = true; } } metadata/Api/Documentation.php000064400000003430151742727570012400 0ustar00internalAddGeneratedFile(hex2bin( "0af6030a1e676f6f676c652f6170692f646f63756d656e746174696f6e2e" . "70726f746f120a676f6f676c652e61706922a1010a0d446f63756d656e74" . "6174696f6e120f0a0773756d6d617279180120012809121f0a0570616765" . "7318052003280b32102e676f6f676c652e6170692e50616765122c0a0572" . "756c657318032003280b321d2e676f6f676c652e6170692e446f63756d65" . "6e746174696f6e52756c65121e0a16646f63756d656e746174696f6e5f72" . "6f6f745f75726c18042001280912100a086f766572766965771802200128" . "09225b0a11446f63756d656e746174696f6e52756c6512100a0873656c65" . "63746f7218012001280912130a0b6465736372697074696f6e1802200128" . "09121f0a176465707265636174696f6e5f6465736372697074696f6e1803" . "2001280922490a0450616765120c0a046e616d65180120012809120f0a07" . "636f6e74656e7418022001280912220a0873756270616765731803200328" . "0b32102e676f6f676c652e6170692e5061676542740a0e636f6d2e676f6f" . "676c652e6170694212446f63756d656e746174696f6e50726f746f50015a" . "45676f6f676c652e676f6c616e672e6f72672f67656e70726f746f2f676f" . "6f676c65617069732f6170692f73657276696365636f6e6669673b736572" . "76696365636f6e666967a2020447415049620670726f746f33" ), true); static::$is_initialized = true; } } metadata/Api/Endpoint.php000064400000002325151742727570011351 0ustar00internalAddGeneratedFile(hex2bin( "0a81020a19676f6f676c652f6170692f656e64706f696e742e70726f746f" . "120a676f6f676c652e617069225f0a08456e64706f696e74120c0a046e61" . "6d65180120012809120f0a07616c696173657318022003280912100a0866" . "65617475726573180420032809120e0a0674617267657418652001280912" . "120a0a616c6c6f775f636f7273180520012808426f0a0e636f6d2e676f6f" . "676c652e617069420d456e64706f696e7450726f746f50015a45676f6f67" . "6c652e676f6c616e672e6f72672f67656e70726f746f2f676f6f676c6561" . "7069732f6170692f73657276696365636f6e6669673b7365727669636563" . "6f6e666967a2020447415049620670726f746f33" ), true); static::$is_initialized = true; } } metadata/Api/Expr/V1Alpha1/CelService.php000064400000004216151742727570014051 0ustar00internalAddGeneratedFile(hex2bin( "0acb040a2a676f6f676c652f6170692f657870722f7631616c706861312f" . "63656c5f736572766963652e70726f746f1218676f6f676c652e6170692e" . "657870722e7631616c706861311a32676f6f676c652f6170692f65787072" . "2f7631616c706861312f636f6e666f726d616e63655f736572766963652e" . "70726f746f32d2020a0a43656c5365727669636512670a05506172736512" . "262e676f6f676c652e6170692e657870722e7631616c706861312e506172" . "7365526571756573741a272e676f6f676c652e6170692e657870722e7631" . "616c706861312e5061727365526573706f6e7365220dda410a63656c5f73" . "6f7572636512680a05436865636b12262e676f6f676c652e6170692e6578" . "70722e7631616c706861312e436865636b526571756573741a272e676f6f" . "676c652e6170692e657870722e7631616c706861312e436865636b526573" . "706f6e7365220eda410b7061727365645f65787072125a0a044576616c12" . "252e676f6f676c652e6170692e657870722e7631616c706861312e457661" . "6c526571756573741a262e676f6f676c652e6170692e657870722e763161" . "6c706861312e4576616c526573706f6e73652203da41001a15ca41126365" . "6c2e676f6f676c65617069732e636f6d42720a1c636f6d2e676f6f676c65" . "2e6170692e657870722e7631616c70686131420f43656c53657276696365" . "50726f746f50015a3c676f6f676c652e676f6c616e672e6f72672f67656e" . "70726f746f2f676f6f676c65617069732f6170692f657870722f7631616c" . "706861313b65787072f80101620670726f746f33" ), true); static::$is_initialized = true; } } metadata/Api/Expr/V1Alpha1/Checked.php000064400000016532151742727570013357 0ustar00internalAddGeneratedFile(hex2bin( "0ad0140a26676f6f676c652f6170692f657870722f7631616c706861312f" . "636865636b65642e70726f746f1218676f6f676c652e6170692e65787072" . "2e7631616c706861311a1b676f6f676c652f70726f746f6275662f656d70" . "74792e70726f746f1a1c676f6f676c652f70726f746f6275662f73747275" . "63742e70726f746f22b6030a0b436865636b656445787072124e0a0d7265" . "666572656e63655f6d617018022003280b32372e676f6f676c652e617069" . "2e657870722e7631616c706861312e436865636b6564457870722e526566" . "6572656e63654d6170456e74727912440a08747970655f6d617018032003" . "280b32322e676f6f676c652e6170692e657870722e7631616c706861312e" . "436865636b6564457870722e547970654d6170456e74727912390a0b736f" . "757263655f696e666f18052001280b32242e676f6f676c652e6170692e65" . "7870722e7631616c706861312e536f75726365496e666f122c0a04657870" . "7218042001280b321e2e676f6f676c652e6170692e657870722e7631616c" . "706861312e457870721a580a115265666572656e63654d6170456e747279" . "120b0a036b657918012001280312320a0576616c756518022001280b3223" . "2e676f6f676c652e6170692e657870722e7631616c706861312e52656665" . "72656e63653a0238011a4e0a0c547970654d6170456e747279120b0a036b" . "6579180120012803122d0a0576616c756518022001280b321e2e676f6f67" . "6c652e6170692e657870722e7631616c706861312e547970653a02380122" . "820a0a045479706512250a0364796e18012001280b32162e676f6f676c65" . "2e70726f746f6275662e456d7074794800122a0a046e756c6c1802200128" . "0e321a2e676f6f676c652e70726f746f6275662e4e756c6c56616c756548" . "0012410a097072696d697469766518032001280e322c2e676f6f676c652e" . "6170692e657870722e7631616c706861312e547970652e5072696d697469" . "7665547970654800123f0a077772617070657218042001280e322c2e676f" . "6f676c652e6170692e657870722e7631616c706861312e547970652e5072" . "696d697469766554797065480012420a0a77656c6c5f6b6e6f776e180520" . "01280e322c2e676f6f676c652e6170692e657870722e7631616c70686131" . "2e547970652e57656c6c4b6e6f776e547970654800123c0a096c6973745f" . "7479706518062001280b32272e676f6f676c652e6170692e657870722e76" . "31616c706861312e547970652e4c697374547970654800123a0a086d6170" . "5f7479706518072001280b32262e676f6f676c652e6170692e657870722e" . "7631616c706861312e547970652e4d6170547970654800123f0a0866756e" . "6374696f6e18082001280b322b2e676f6f676c652e6170692e657870722e" . "7631616c706861312e547970652e46756e6374696f6e5479706548001216" . "0a0c6d6573736167655f74797065180920012809480012140a0a74797065" . "5f706172616d180a200128094800122e0a0474797065180b2001280b321e" . "2e676f6f676c652e6170692e657870722e7631616c706861312e54797065" . "480012270a056572726f72180c2001280b32162e676f6f676c652e70726f" . "746f6275662e456d707479480012440a0d61627374726163745f74797065" . "180e2001280b322b2e676f6f676c652e6170692e657870722e7631616c70" . "6861312e547970652e41627374726163745479706548001a3d0a084c6973" . "745479706512310a09656c656d5f7479706518012001280b321e2e676f6f" . "676c652e6170692e657870722e7631616c706861312e547970651a6f0a07" . "4d61705479706512300a086b65795f7479706518012001280b321e2e676f" . "6f676c652e6170692e657870722e7631616c706861312e5479706512320a" . "0a76616c75655f7479706518022001280b321e2e676f6f676c652e617069" . "2e657870722e7631616c706861312e547970651a760a0c46756e6374696f" . "6e5479706512330a0b726573756c745f7479706518012001280b321e2e67" . "6f6f676c652e6170692e657870722e7631616c706861312e547970651231" . "0a096172675f747970657318022003280b321e2e676f6f676c652e617069" . "2e657870722e7631616c706861312e547970651a550a0c41627374726163" . "7454797065120c0a046e616d6518012001280912370a0f706172616d6574" . "65725f747970657318022003280b321e2e676f6f676c652e6170692e6578" . "70722e7631616c706861312e5479706522730a0d5072696d697469766554" . "797065121e0a1a5052494d49544956455f545950455f554e535045434946" . "494544100012080a04424f4f4c100112090a05494e5436341002120a0a06" . "55494e5436341003120a0a06444f55424c451004120a0a06535452494e47" . "100512090a054259544553100622560a0d57656c6c4b6e6f776e54797065" . "121f0a1b57454c4c5f4b4e4f574e5f545950455f554e5350454349464945" . "44100012070a03414e591001120d0a0954494d455354414d501002120c0a" . "084455524154494f4e1003420b0a09747970655f6b696e6422b9040a0444" . "65636c120c0a046e616d6518012001280912390a056964656e7418022001" . "280b32282e676f6f676c652e6170692e657870722e7631616c706861312e" . "4465636c2e4964656e744465636c4800123f0a0866756e6374696f6e1803" . "2001280b322b2e676f6f676c652e6170692e657870722e7631616c706861" . "312e4465636c2e46756e6374696f6e4465636c48001a790a094964656e74" . "4465636c122c0a047479706518012001280b321e2e676f6f676c652e6170" . "692e657870722e7631616c706861312e5479706512310a0576616c756518" . "022001280b32222e676f6f676c652e6170692e657870722e7631616c7068" . "61312e436f6e7374616e74120b0a03646f631803200128091a9e020a0c46" . "756e6374696f6e4465636c12470a096f7665726c6f61647318012003280b" . "32342e676f6f676c652e6170692e657870722e7631616c706861312e4465" . "636c2e46756e6374696f6e4465636c2e4f7665726c6f61641ac4010a084f" . "7665726c6f616412130a0b6f7665726c6f61645f6964180120012809122e" . "0a06706172616d7318022003280b321e2e676f6f676c652e6170692e6578" . "70722e7631616c706861312e5479706512130a0b747970655f706172616d" . "7318032003280912330a0b726573756c745f7479706518042001280b321e" . "2e676f6f676c652e6170692e657870722e7631616c706861312e54797065" . "121c0a1469735f696e7374616e63655f66756e6374696f6e180520012808" . "120b0a03646f63180620012809420b0a096465636c5f6b696e6422610a09" . "5265666572656e6365120c0a046e616d6518012001280912130a0b6f7665" . "726c6f61645f696418032003280912310a0576616c756518042001280b32" . "222e676f6f676c652e6170692e657870722e7631616c706861312e436f6e" . "7374616e74426c0a1c636f6d2e676f6f676c652e6170692e657870722e76" . "31616c7068613142094465636c50726f746f50015a3c676f6f676c652e67" . "6f6c616e672e6f72672f67656e70726f746f2f676f6f676c65617069732f" . "6170692f657870722f7631616c706861313b65787072f80101620670726f" . "746f33" ), true); static::$is_initialized = true; } } metadata/Api/Expr/V1Alpha1/ConformanceService.php000064400000013306151742727570015600 0ustar00internalAddGeneratedFile(hex2bin( "0af50e0a32676f6f676c652f6170692f657870722f7631616c706861312f" . "636f6e666f726d616e63655f736572766963652e70726f746f1218676f6f" . "676c652e6170692e657870722e7631616c706861311a26676f6f676c652f" . "6170692f657870722f7631616c706861312f636865636b65642e70726f74" . "6f1a23676f6f676c652f6170692f657870722f7631616c706861312f6576" . "616c2e70726f746f1a25676f6f676c652f6170692f657870722f7631616c" . "706861312f73796e7461782e70726f746f1a1f676f6f676c652f6170692f" . "6669656c645f6265686176696f722e70726f746f1a17676f6f676c652f72" . "70632f7374617475732e70726f746f22700a0c5061727365526571756573" . "7412170a0a63656c5f736f757263651801200128094203e0410212160a0e" . "73796e7461785f76657273696f6e18022001280912170a0f736f75726365" . "5f6c6f636174696f6e18032001280912160a0e64697361626c655f6d6163" . "726f73180420012808226e0a0d5061727365526573706f6e736512390a0b" . "7061727365645f6578707218012001280b32242e676f6f676c652e617069" . "2e657870722e7631616c706861312e5061727365644578707212220a0669" . "737375657318022003280b32122e676f6f676c652e7270632e5374617475" . "7322a7010a0c436865636b52657175657374123e0a0b7061727365645f65" . "78707218012001280b32242e676f6f676c652e6170692e657870722e7631" . "616c706861312e506172736564457870724203e0410212300a0874797065" . "5f656e7618022003280b321e2e676f6f676c652e6170692e657870722e76" . "31616c706861312e4465636c12110a09636f6e7461696e65721803200128" . "0912120a0a6e6f5f7374645f656e7618042001280822700a0d436865636b" . "526573706f6e7365123b0a0c636865636b65645f6578707218012001280b" . "32252e676f6f676c652e6170692e657870722e7631616c706861312e4368" . "65636b65644578707212220a0669737375657318022003280b32122e676f" . "6f676c652e7270632e53746174757322c6020a0b4576616c526571756573" . "74123b0a0b7061727365645f6578707218012001280b32242e676f6f676c" . "652e6170692e657870722e7631616c706861312e50617273656445787072" . "4800123d0a0c636865636b65645f6578707218022001280b32252e676f6f" . "676c652e6170692e657870722e7631616c706861312e436865636b656445" . "787072480012450a0862696e64696e677318032003280b32332e676f6f67" . "6c652e6170692e657870722e7631616c706861312e4576616c5265717565" . "73742e42696e64696e6773456e74727912110a09636f6e7461696e657218" . "04200128091a540a0d42696e64696e6773456e747279120b0a036b657918" . "012001280912320a0576616c756518022001280b32232e676f6f676c652e" . "6170692e657870722e7631616c706861312e4578707256616c75653a0238" . "01420b0a09657870725f6b696e6422670a0c4576616c526573706f6e7365" . "12330a06726573756c7418012001280b32232e676f6f676c652e6170692e" . "657870722e7631616c706861312e4578707256616c756512220a06697373" . "75657318022003280b32122e676f6f676c652e7270632e53746174757322" . "e8010a0c497373756544657461696c7312410a0873657665726974791801" . "2001280e322f2e676f6f676c652e6170692e657870722e7631616c706861" . "312e497373756544657461696c732e5365766572697479123a0a08706f73" . "6974696f6e18022001280b32282e676f6f676c652e6170692e657870722e" . "7631616c706861312e536f75726365506f736974696f6e120a0a02696418" . "0320012803224d0a08536576657269747912180a1453455645524954595f" . "554e5350454349464945441000120f0a0b4445505245434154494f4e1001" . "120b0a075741524e494e47100212090a054552524f52100332d7020a1243" . "6f6e666f726d616e63655365727669636512670a05506172736512262e67" . "6f6f676c652e6170692e657870722e7631616c706861312e506172736552" . "6571756573741a272e676f6f676c652e6170692e657870722e7631616c70" . "6861312e5061727365526573706f6e7365220dda410a63656c5f736f7572" . "636512680a05436865636b12262e676f6f676c652e6170692e657870722e" . "7631616c706861312e436865636b526571756573741a272e676f6f676c65" . "2e6170692e657870722e7631616c706861312e436865636b526573706f6e" . "7365220eda410b7061727365645f6578707212570a044576616c12252e67" . "6f6f676c652e6170692e657870722e7631616c706861312e4576616c5265" . "71756573741a262e676f6f676c652e6170692e657870722e7631616c7068" . "61312e4576616c526573706f6e736522001a15ca411263656c2e676f6f67" . "6c65617069732e636f6d427a0a1c636f6d2e676f6f676c652e6170692e65" . "7870722e7631616c706861314217436f6e666f726d616e63655365727669" . "636550726f746f50015a3c676f6f676c652e676f6c616e672e6f72672f67" . "656e70726f746f2f676f6f676c65617069732f6170692f657870722f7631" . "616c706861313b65787072f80101620670726f746f33" ), true); static::$is_initialized = true; } } metadata/Api/Expr/V1Alpha1/Explain.php000064400000003013151742727570013417 0ustar00internalAddGeneratedFile(hex2bin( "0ae9020a26676f6f676c652f6170692f657870722f7631616c706861312f" . "6578706c61696e2e70726f746f1218676f6f676c652e6170692e65787072" . "2e7631616c7068613122ab010a074578706c61696e122f0a0676616c7565" . "7318012003280b321f2e676f6f676c652e6170692e657870722e7631616c" . "706861312e56616c7565123e0a0a657870725f737465707318022003280b" . "322a2e676f6f676c652e6170692e657870722e7631616c706861312e4578" . "706c61696e2e45787072537465701a2b0a084578707253746570120a0a02" . "696418012001280312130a0b76616c75655f696e6465781802200128053a" . "021801426f0a1c636f6d2e676f6f676c652e6170692e657870722e763161" . "6c70686131420c4578706c61696e50726f746f50015a3c676f6f676c652e" . "676f6c616e672e6f72672f67656e70726f746f2f676f6f676c6561706973" . "2f6170692f657870722f7631616c706861313b65787072f8010162067072" . "6f746f33" ), true); static::$is_initialized = true; } } metadata/Api/Expr/V1Alpha1/PBEval.php000064400000004362151742727570013140 0ustar00internalAddGeneratedFile(hex2bin( "0af8040a23676f6f676c652f6170692f657870722f7631616c706861312f" . "6576616c2e70726f746f1218676f6f676c652e6170692e657870722e7631" . "616c706861311a17676f6f676c652f7270632f7374617475732e70726f74" . "6f22a4010a094576616c537461746512330a0676616c7565731801200328" . "0b32232e676f6f676c652e6170692e657870722e7631616c706861312e45" . "78707256616c7565123b0a07726573756c747318032003280b322a2e676f" . "6f676c652e6170692e657870722e7631616c706861312e4576616c537461" . "74652e526573756c741a250a06526573756c74120c0a0465787072180120" . "012803120d0a0576616c756518022001280322b3010a094578707256616c" . "756512300a0576616c756518012001280b321f2e676f6f676c652e617069" . "2e657870722e7631616c706861312e56616c7565480012330a056572726f" . "7218022001280b32222e676f6f676c652e6170692e657870722e7631616c" . "706861312e4572726f72536574480012370a07756e6b6e6f776e18032001" . "280b32242e676f6f676c652e6170692e657870722e7631616c706861312e" . "556e6b6e6f776e536574480042060a046b696e64222e0a084572726f7253" . "657412220a066572726f727318012003280b32122e676f6f676c652e7270" . "632e537461747573221b0a0a556e6b6e6f776e536574120d0a0565787072" . "73180120032803426c0a1c636f6d2e676f6f676c652e6170692e65787072" . "2e7631616c7068613142094576616c50726f746f50015a3c676f6f676c65" . "2e676f6c616e672e6f72672f67656e70726f746f2f676f6f676c65617069" . "732f6170692f657870722f7631616c706861313b65787072f80101620670" . "726f746f33" ), true); static::$is_initialized = true; } } metadata/Api/Expr/V1Alpha1/Syntax.php000064400000015735151742727570013323 0ustar00internalAddGeneratedFile(hex2bin( "0ac0130a25676f6f676c652f6170692f657870722f7631616c706861312f" . "73796e7461782e70726f746f1218676f6f676c652e6170692e657870722e" . "7631616c706861311a1c676f6f676c652f70726f746f6275662f73747275" . "63742e70726f746f1a1f676f6f676c652f70726f746f6275662f74696d65" . "7374616d702e70726f746f22750a0a50617273656445787072122c0a0465" . "78707218022001280b321e2e676f6f676c652e6170692e657870722e7631" . "616c706861312e4578707212390a0b736f757263655f696e666f18032001" . "280b32242e676f6f676c652e6170692e657870722e7631616c706861312e" . "536f75726365496e666f22c50a0a0445787072120a0a0269641802200128" . "0312380a0a636f6e73745f6578707218032001280b32222e676f6f676c65" . "2e6170692e657870722e7631616c706861312e436f6e7374616e74480012" . "3a0a0a6964656e745f6578707218042001280b32242e676f6f676c652e61" . "70692e657870722e7631616c706861312e457870722e4964656e74480012" . "3c0a0b73656c6563745f6578707218052001280b32252e676f6f676c652e" . "6170692e657870722e7631616c706861312e457870722e53656c65637448" . "0012380a0963616c6c5f6578707218062001280b32232e676f6f676c652e" . "6170692e657870722e7631616c706861312e457870722e43616c6c480012" . "3e0a096c6973745f6578707218072001280b32292e676f6f676c652e6170" . "692e657870722e7631616c706861312e457870722e4372656174654c6973" . "74480012420a0b7374727563745f6578707218082001280b322b2e676f6f" . "676c652e6170692e657870722e7631616c706861312e457870722e437265" . "6174655374727563744800124a0a12636f6d70726568656e73696f6e5f65" . "78707218092001280b322c2e676f6f676c652e6170692e657870722e7631" . "616c706861312e457870722e436f6d70726568656e73696f6e48001a150a" . "054964656e74120c0a046e616d651801200128091a5b0a0653656c656374" . "122f0a076f706572616e6418012001280b321e2e676f6f676c652e617069" . "2e657870722e7631616c706861312e45787072120d0a056669656c641802" . "2001280912110a09746573745f6f6e6c791803200128081a760a0443616c" . "6c122e0a0674617267657418012001280b321e2e676f6f676c652e617069" . "2e657870722e7631616c706861312e4578707212100a0866756e6374696f" . "6e180220012809122c0a046172677318032003280b321e2e676f6f676c65" . "2e6170692e657870722e7631616c706861312e457870721a3e0a0a437265" . "6174654c69737412300a08656c656d656e747318012003280b321e2e676f" . "6f676c652e6170692e657870722e7631616c706861312e457870721a8102" . "0a0c43726561746553747275637412140a0c6d6573736167655f6e616d65" . "18012001280912420a07656e747269657318022003280b32312e676f6f67" . "6c652e6170692e657870722e7631616c706861312e457870722e43726561" . "74655374727563742e456e7472791a96010a05456e747279120a0a026964" . "18012001280312130a096669656c645f6b6579180220012809480012310a" . "076d61705f6b657918032001280b321e2e676f6f676c652e6170692e6578" . "70722e7631616c706861312e457870724800122d0a0576616c7565180420" . "01280b321e2e676f6f676c652e6170692e657870722e7631616c70686131" . "2e45787072420a0a086b65795f6b696e641ab5020a0d436f6d7072656865" . "6e73696f6e12100a08697465725f76617218012001280912320a0a697465" . "725f72616e676518022001280b321e2e676f6f676c652e6170692e657870" . "722e7631616c706861312e4578707212100a08616363755f766172180320" . "01280912310a09616363755f696e697418042001280b321e2e676f6f676c" . "652e6170692e657870722e7631616c706861312e4578707212360a0e6c6f" . "6f705f636f6e646974696f6e18052001280b321e2e676f6f676c652e6170" . "692e657870722e7631616c706861312e4578707212310a096c6f6f705f73" . "74657018062001280b321e2e676f6f676c652e6170692e657870722e7631" . "616c706861312e45787072122e0a06726573756c7418072001280b321e2e" . "676f6f676c652e6170692e657870722e7631616c706861312e4578707242" . "0b0a09657870725f6b696e6422cd020a08436f6e7374616e7412300a0a6e" . "756c6c5f76616c756518012001280e321a2e676f6f676c652e70726f746f" . "6275662e4e756c6c56616c7565480012140a0a626f6f6c5f76616c756518" . "0220012808480012150a0b696e7436345f76616c75651803200128034800" . "12160a0c75696e7436345f76616c7565180420012804480012160a0c646f" . "75626c655f76616c7565180520012801480012160a0c737472696e675f76" . "616c7565180620012809480012150a0b62797465735f76616c7565180720" . "01280c480012370a0e6475726174696f6e5f76616c756518082001280b32" . "192e676f6f676c652e70726f746f6275662e4475726174696f6e42021801" . "480012390a0f74696d657374616d705f76616c756518092001280b321a2e" . "676f6f676c652e70726f746f6275662e54696d657374616d704202180148" . "00420f0a0d636f6e7374616e745f6b696e6422e4020a0a536f7572636549" . "6e666f12160a0e73796e7461785f76657273696f6e18012001280912100a" . "086c6f636174696f6e18022001280912140a0c6c696e655f6f6666736574" . "7318032003280512460a09706f736974696f6e7318042003280b32332e67" . "6f6f676c652e6170692e657870722e7631616c706861312e536f75726365" . "496e666f2e506f736974696f6e73456e74727912490a0b6d6163726f5f63" . "616c6c7318052003280b32342e676f6f676c652e6170692e657870722e76" . "31616c706861312e536f75726365496e666f2e4d6163726f43616c6c7345" . "6e7472791a300a0e506f736974696f6e73456e747279120b0a036b657918" . "0120012803120d0a0576616c75651802200128053a0238011a510a0f4d61" . "63726f43616c6c73456e747279120b0a036b6579180120012803122d0a05" . "76616c756518022001280b321e2e676f6f676c652e6170692e657870722e" . "7631616c706861312e457870723a02380122500a0e536f75726365506f73" . "6974696f6e12100a086c6f636174696f6e180120012809120e0a066f6666" . "736574180220012805120c0a046c696e65180320012805120e0a06636f6c" . "756d6e180420012805426e0a1c636f6d2e676f6f676c652e6170692e6578" . "70722e7631616c70686131420b53796e74617850726f746f50015a3c676f" . "6f676c652e676f6c616e672e6f72672f67656e70726f746f2f676f6f676c" . "65617069732f6170692f657870722f7631616c706861313b65787072f801" . "01620670726f746f33" ), true); static::$is_initialized = true; } } metadata/Api/Expr/V1Alpha1/Value.php000064400000006004151742727570013076 0ustar00internalAddGeneratedFile(hex2bin( "0aaf070a24676f6f676c652f6170692f657870722f7631616c706861312f" . "76616c75652e70726f746f1218676f6f676c652e6170692e657870722e76" . "31616c706861311a1c676f6f676c652f70726f746f6275662f7374727563" . "742e70726f746f22c0030a0556616c756512300a0a6e756c6c5f76616c75" . "6518012001280e321a2e676f6f676c652e70726f746f6275662e4e756c6c" . "56616c7565480012140a0a626f6f6c5f76616c7565180220012808480012" . "150a0b696e7436345f76616c7565180320012803480012160a0c75696e74" . "36345f76616c7565180420012804480012160a0c646f75626c655f76616c" . "7565180520012801480012160a0c737472696e675f76616c756518062001" . "2809480012150a0b62797465735f76616c756518072001280c480012390a" . "0a656e756d5f76616c756518092001280b32232e676f6f676c652e617069" . "2e657870722e7631616c706861312e456e756d56616c75654800122c0a0c" . "6f626a6563745f76616c7565180a2001280b32142e676f6f676c652e7072" . "6f746f6275662e416e79480012370a096d61705f76616c7565180b200128" . "0b32222e676f6f676c652e6170692e657870722e7631616c706861312e4d" . "617056616c7565480012390a0a6c6973745f76616c7565180c2001280b32" . "232e676f6f676c652e6170692e657870722e7631616c706861312e4c6973" . "7456616c7565480012140a0a747970655f76616c7565180f200128094800" . "42060a046b696e6422280a09456e756d56616c7565120c0a047479706518" . "0120012809120d0a0576616c7565180220012805223c0a094c6973745661" . "6c7565122f0a0676616c75657318012003280b321f2e676f6f676c652e61" . "70692e657870722e7631616c706861312e56616c756522ac010a084d6170" . "56616c756512390a07656e747269657318012003280b32282e676f6f676c" . "652e6170692e657870722e7631616c706861312e4d617056616c75652e45" . "6e7472791a650a05456e747279122c0a036b657918012001280b321f2e67" . "6f6f676c652e6170692e657870722e7631616c706861312e56616c756512" . "2e0a0576616c756518022001280b321f2e676f6f676c652e6170692e6578" . "70722e7631616c706861312e56616c7565426d0a1c636f6d2e676f6f676c" . "652e6170692e657870722e7631616c70686131420a56616c756550726f74" . "6f50015a3c676f6f676c652e676f6c616e672e6f72672f67656e70726f74" . "6f2f676f6f676c65617069732f6170692f657870722f7631616c70686131" . "3b65787072f80101620670726f746f33" ), true); static::$is_initialized = true; } } metadata/Api/Expr/V1Beta1/Decl.php000064400000004534151742727570012525 0ustar00internalAddGeneratedFile(hex2bin( "0ab9050a22676f6f676c652f6170692f657870722f763162657461312f64" . "65636c2e70726f746f1217676f6f676c652e6170692e657870722e763162" . "6574613122a5010a044465636c120a0a026964180120012805120c0a046e" . "616d65180220012809120b0a03646f6318032001280912330a056964656e" . "7418042001280b32222e676f6f676c652e6170692e657870722e76316265" . "7461312e4964656e744465636c480012390a0866756e6374696f6e180520" . "01280b32252e676f6f676c652e6170692e657870722e763162657461312e" . "46756e6374696f6e4465636c480042060a046b696e64225c0a084465636c" . "54797065120a0a026964180120012805120c0a0474797065180220012809" . "12360a0b747970655f706172616d7318042003280b32212e676f6f676c65" . "2e6170692e657870722e763162657461312e4465636c54797065226a0a09" . "4964656e744465636c122f0a047479706518032001280b32212e676f6f67" . "6c652e6170692e657870722e763162657461312e4465636c54797065122c" . "0a0576616c756518042001280b321d2e676f6f676c652e6170692e657870" . "722e763162657461312e457870722293010a0c46756e6374696f6e446563" . "6c12300a046172677318012003280b32222e676f6f676c652e6170692e65" . "7870722e763162657461312e4964656e744465636c12360a0b7265747572" . "6e5f7479706518022001280b32212e676f6f676c652e6170692e65787072" . "2e763162657461312e4465636c5479706512190a1172656365697665725f" . "66756e6374696f6e180320012808426a0a1b636f6d2e676f6f676c652e61" . "70692e657870722e7631626574613142094465636c50726f746f50015a3b" . "676f6f676c652e676f6c616e672e6f72672f67656e70726f746f2f676f6f" . "676c65617069732f6170692f657870722f763162657461313b65787072f8" . "0101620670726f746f33" ), true); static::$is_initialized = true; } } metadata/Api/Expr/V1Beta1/Expr.php000064400000012631151742727570012571 0ustar00internalAddGeneratedFile(hex2bin( "0ae60e0a22676f6f676c652f6170692f657870722f763162657461312f65" . "7870722e70726f746f1217676f6f676c652e6170692e657870722e763162" . "657461311a1c676f6f676c652f70726f746f6275662f7374727563742e70" . "726f746f228b010a0a50617273656445787072122b0a0465787072180220" . "01280b321d2e676f6f676c652e6170692e657870722e763162657461312e" . "4578707212380a0b736f757263655f696e666f18032001280b32232e676f" . "6f676c652e6170692e657870722e763162657461312e536f75726365496e" . "666f12160a0e73796e7461785f76657273696f6e18042001280922ab0a0a" . "0445787072120a0a02696418022001280512380a0c6c69746572616c5f65" . "78707218032001280b32202e676f6f676c652e6170692e657870722e7631" . "62657461312e4c69746572616c480012390a0a6964656e745f6578707218" . "042001280b32232e676f6f676c652e6170692e657870722e763162657461" . "312e457870722e4964656e744800123b0a0b73656c6563745f6578707218" . "052001280b32242e676f6f676c652e6170692e657870722e763162657461" . "312e457870722e53656c656374480012370a0963616c6c5f657870721806" . "2001280b32222e676f6f676c652e6170692e657870722e76316265746131" . "2e457870722e43616c6c4800123d0a096c6973745f657870721807200128" . "0b32282e676f6f676c652e6170692e657870722e763162657461312e4578" . "70722e4372656174654c697374480012410a0b7374727563745f65787072" . "18082001280b322a2e676f6f676c652e6170692e657870722e7631626574" . "61312e457870722e437265617465537472756374480012490a12636f6d70" . "726568656e73696f6e5f6578707218092001280b322b2e676f6f676c652e" . "6170692e657870722e763162657461312e457870722e436f6d7072656865" . "6e73696f6e48001a150a054964656e74120c0a046e616d65180120012809" . "1a5a0a0653656c656374122e0a076f706572616e6418012001280b321d2e" . "676f6f676c652e6170692e657870722e763162657461312e45787072120d" . "0a056669656c6418022001280912110a09746573745f6f6e6c7918032001" . "28081a740a0443616c6c122d0a0674617267657418012001280b321d2e67" . "6f6f676c652e6170692e657870722e763162657461312e4578707212100a" . "0866756e6374696f6e180220012809122b0a046172677318032003280b32" . "1d2e676f6f676c652e6170692e657870722e763162657461312e45787072" . "1a3d0a0a4372656174654c697374122f0a08656c656d656e747318012003" . "280b321d2e676f6f676c652e6170692e657870722e763162657461312e45" . "7870721af6010a0c437265617465537472756374120c0a04747970651801" . "2001280912410a07656e747269657318022003280b32302e676f6f676c65" . "2e6170692e657870722e763162657461312e457870722e43726561746553" . "74727563742e456e7472791a94010a05456e747279120a0a026964180120" . "01280512130a096669656c645f6b6579180220012809480012300a076d61" . "705f6b657918032001280b321d2e676f6f676c652e6170692e657870722e" . "763162657461312e457870724800122c0a0576616c756518042001280b32" . "1d2e676f6f676c652e6170692e657870722e763162657461312e45787072" . "420a0a086b65795f6b696e641ab0020a0d436f6d70726568656e73696f6e" . "12100a08697465725f76617218012001280912310a0a697465725f72616e" . "676518022001280b321d2e676f6f676c652e6170692e657870722e763162" . "657461312e4578707212100a08616363755f76617218032001280912300a" . "09616363755f696e697418042001280b321d2e676f6f676c652e6170692e" . "657870722e763162657461312e4578707212350a0e6c6f6f705f636f6e64" . "6974696f6e18052001280b321d2e676f6f676c652e6170692e657870722e" . "763162657461312e4578707212300a096c6f6f705f737465701806200128" . "0b321d2e676f6f676c652e6170692e657870722e763162657461312e4578" . "7072122d0a06726573756c7418072001280b321d2e676f6f676c652e6170" . "692e657870722e763162657461312e45787072420b0a09657870725f6b69" . "6e6422d8010a074c69746572616c12300a0a6e756c6c5f76616c75651801" . "2001280e321a2e676f6f676c652e70726f746f6275662e4e756c6c56616c" . "7565480012140a0a626f6f6c5f76616c7565180220012808480012150a0b" . "696e7436345f76616c7565180320012803480012160a0c75696e7436345f" . "76616c7565180420012804480012160a0c646f75626c655f76616c756518" . "0520012801480012160a0c737472696e675f76616c756518062001280948" . "0012150a0b62797465735f76616c756518072001280c4800420f0a0d636f" . "6e7374616e745f6b696e64426a0a1b636f6d2e676f6f676c652e6170692e" . "657870722e7631626574613142094578707250726f746f50015a3b676f6f" . "676c652e676f6c616e672e6f72672f67656e70726f746f2f676f6f676c65" . "617069732f6170692f657870722f763162657461313b65787072f8010162" . "0670726f746f33" ), true); static::$is_initialized = true; } } metadata/Api/Expr/V1Beta1/PBEval.php000064400000004651151742727570012767 0ustar00internalAddGeneratedFile(hex2bin( "0ac4050a22676f6f676c652f6170692f657870722f763162657461312f65" . "76616c2e70726f746f1217676f6f676c652e6170692e657870722e763162" . "657461311a17676f6f676c652f7270632f7374617475732e70726f746f22" . "c2010a094576616c537461746512320a0676616c75657318012003280b32" . "222e676f6f676c652e6170692e657870722e763162657461312e45787072" . "56616c7565123a0a07726573756c747318032003280b32292e676f6f676c" . "652e6170692e657870722e763162657461312e4576616c53746174652e52" . "6573756c741a450a06526573756c74122c0a046578707218012001280b32" . "1e2e676f6f676c652e6170692e657870722e763162657461312e49645265" . "66120d0a0576616c756518022001280522b0010a094578707256616c7565" . "122f0a0576616c756518012001280b321e2e676f6f676c652e6170692e65" . "7870722e763162657461312e56616c7565480012320a056572726f721802" . "2001280b32212e676f6f676c652e6170692e657870722e76316265746131" . "2e4572726f72536574480012360a07756e6b6e6f776e18032001280b3223" . "2e676f6f676c652e6170692e657870722e763162657461312e556e6b6e6f" . "776e536574480042060a046b696e64222e0a084572726f7253657412220a" . "066572726f727318012003280b32122e676f6f676c652e7270632e537461" . "747573223b0a0a556e6b6e6f776e536574122d0a05657870727318012003" . "280b321e2e676f6f676c652e6170692e657870722e763162657461312e49" . "6452656622130a054964526566120a0a026964180120012805426a0a1b63" . "6f6d2e676f6f676c652e6170692e657870722e7631626574613142094576" . "616c50726f746f50015a3b676f6f676c652e676f6c616e672e6f72672f67" . "656e70726f746f2f676f6f676c65617069732f6170692f657870722f7631" . "62657461313b65787072f80101620670726f746f33" ), true); static::$is_initialized = true; } } metadata/Api/Expr/V1Beta1/Source.php000064400000003204151742727570013107 0ustar00internalAddGeneratedFile(hex2bin( "0ab7030a24676f6f676c652f6170692f657870722f763162657461312f73" . "6f757263652e70726f746f1217676f6f676c652e6170692e657870722e76" . "31626574613122ad010a0a536f75726365496e666f12100a086c6f636174" . "696f6e18022001280912140a0c6c696e655f6f6666736574731803200328" . "0512450a09706f736974696f6e7318042003280b32322e676f6f676c652e" . "6170692e657870722e763162657461312e536f75726365496e666f2e506f" . "736974696f6e73456e7472791a300a0e506f736974696f6e73456e747279" . "120b0a036b6579180120012805120d0a0576616c75651802200128053a02" . "380122500a0e536f75726365506f736974696f6e12100a086c6f63617469" . "6f6e180120012809120e0a066f6666736574180220012805120c0a046c69" . "6e65180320012805120e0a06636f6c756d6e180420012805426c0a1b636f" . "6d2e676f6f676c652e6170692e657870722e76316265746131420b536f75" . "72636550726f746f50015a3b676f6f676c652e676f6c616e672e6f72672f" . "67656e70726f746f2f676f6f676c65617069732f6170692f657870722f76" . "3162657461313b65787072f80101620670726f746f33" ), true); static::$is_initialized = true; } } metadata/Api/Expr/V1Beta1/Value.php000064400000005754151742727570012737 0ustar00internalAddGeneratedFile(hex2bin( "0aa4070a23676f6f676c652f6170692f657870722f763162657461312f76" . "616c75652e70726f746f1217676f6f676c652e6170692e657870722e7631" . "62657461311a1c676f6f676c652f70726f746f6275662f7374727563742e" . "70726f746f22bd030a0556616c756512300a0a6e756c6c5f76616c756518" . "012001280e321a2e676f6f676c652e70726f746f6275662e4e756c6c5661" . "6c7565480012140a0a626f6f6c5f76616c7565180220012808480012150a" . "0b696e7436345f76616c7565180320012803480012160a0c75696e743634" . "5f76616c7565180420012804480012160a0c646f75626c655f76616c7565" . "180520012801480012160a0c737472696e675f76616c7565180620012809" . "480012150a0b62797465735f76616c756518072001280c480012380a0a65" . "6e756d5f76616c756518092001280b32222e676f6f676c652e6170692e65" . "7870722e763162657461312e456e756d56616c75654800122c0a0c6f626a" . "6563745f76616c7565180a2001280b32142e676f6f676c652e70726f746f" . "6275662e416e79480012360a096d61705f76616c7565180b2001280b3221" . "2e676f6f676c652e6170692e657870722e763162657461312e4d61705661" . "6c7565480012380a0a6c6973745f76616c7565180c2001280b32222e676f" . "6f676c652e6170692e657870722e763162657461312e4c69737456616c75" . "65480012140a0a747970655f76616c7565180f20012809480042060a046b" . "696e6422280a09456e756d56616c7565120c0a0474797065180120012809" . "120d0a0576616c7565180220012805223b0a094c69737456616c7565122e" . "0a0676616c75657318012003280b321e2e676f6f676c652e6170692e6578" . "70722e763162657461312e56616c756522a9010a084d617056616c756512" . "380a07656e747269657318012003280b32272e676f6f676c652e6170692e" . "657870722e763162657461312e4d617056616c75652e456e7472791a630a" . "05456e747279122b0a036b657918012001280b321e2e676f6f676c652e61" . "70692e657870722e763162657461312e56616c7565122d0a0576616c7565" . "18022001280b321e2e676f6f676c652e6170692e657870722e7631626574" . "61312e56616c7565426b0a1b636f6d2e676f6f676c652e6170692e657870" . "722e76316265746131420a56616c756550726f746f50015a3b676f6f676c" . "652e676f6c616e672e6f72672f67656e70726f746f2f676f6f676c656170" . "69732f6170692f657870722f763162657461313b65787072f80101620670" . "726f746f33" ), true); static::$is_initialized = true; } } metadata/Api/FieldBehavior.php000064400000002523151742727570012274 0ustar00internalAddGeneratedFile(hex2bin( "0ac6020a1f676f6f676c652f6170692f6669656c645f6265686176696f72" . "2e70726f746f120a676f6f676c652e6170691a20676f6f676c652f70726f" . "746f6275662f64657363726970746f722e70726f746f2a7b0a0d4669656c" . "644265686176696f72121e0a1a4649454c445f4245484156494f525f554e" . "5350454349464945441000120c0a084f5054494f4e414c1001120c0a0852" . "455155495245441002120f0a0b4f55545055545f4f4e4c591003120e0a0a" . "494e5055545f4f4e4c591004120d0a09494d4d555441424c45100542700a" . "0e636f6d2e676f6f676c652e61706942124669656c644265686176696f72" . "50726f746f50015a41676f6f676c652e676f6c616e672e6f72672f67656e" . "70726f746f2f676f6f676c65617069732f6170692f616e6e6f746174696f" . "6e733b616e6e6f746174696f6e73a2020447415049620670726f746f33" ), true); static::$is_initialized = true; } } metadata/Api/Http.php000064400000003600151742727570010505 0ustar00internalAddGeneratedFile(hex2bin( "0aa2040a15676f6f676c652f6170692f687474702e70726f746f120a676f" . "6f676c652e61706922540a044874747012230a0572756c65731801200328" . "0b32142e676f6f676c652e6170692e4874747052756c6512270a1f66756c" . "6c795f6465636f64655f72657365727665645f657870616e73696f6e1802" . "200128082281020a084874747052756c6512100a0873656c6563746f7218" . "0120012809120d0a036765741802200128094800120d0a03707574180320" . "0128094800120e0a04706f7374180420012809480012100a0664656c6574" . "651805200128094800120f0a0570617463681806200128094800122f0a06" . "637573746f6d18082001280b321d2e676f6f676c652e6170692e43757374" . "6f6d487474705061747465726e4800120c0a04626f647918072001280912" . "150a0d726573706f6e73655f626f6479180c2001280912310a1361646469" . "74696f6e616c5f62696e64696e6773180b2003280b32142e676f6f676c65" . "2e6170692e4874747052756c6542090a077061747465726e222f0a114375" . "73746f6d487474705061747465726e120c0a046b696e6418012001280912" . "0c0a0470617468180220012809426a0a0e636f6d2e676f6f676c652e6170" . "6942094874747050726f746f50015a41676f6f676c652e676f6c616e672e" . "6f72672f67656e70726f746f2f676f6f676c65617069732f6170692f616e" . "6e6f746174696f6e733b616e6e6f746174696f6e73f80101a20204474150" . "49620670726f746f33" ), true); static::$is_initialized = true; } } metadata/Api/Httpbody.php000064400000002260151742727570011364 0ustar00internalAddGeneratedFile(hex2bin( "0af0010a19676f6f676c652f6170692f68747470626f64792e70726f746f" . "120a676f6f676c652e61706922580a0848747470426f647912140a0c636f" . "6e74656e745f74797065180120012809120c0a046461746118022001280c" . "12280a0a657874656e73696f6e7318032003280b32142e676f6f676c652e" . "70726f746f6275662e416e7942650a0e636f6d2e676f6f676c652e617069" . "420d48747470426f647950726f746f50015a3b676f6f676c652e676f6c61" . "6e672e6f72672f67656e70726f746f2f676f6f676c65617069732f617069" . "2f68747470626f64793b68747470626f6479a2020447415049620670726f" . "746f33" ), true); static::$is_initialized = true; } } metadata/Api/Label.php000064400000002416151742727570010611 0ustar00internalAddGeneratedFile(hex2bin( "0aac020a16676f6f676c652f6170692f6c6162656c2e70726f746f120a67" . "6f6f676c652e617069229c010a0f4c6162656c44657363726970746f7212" . "0b0a036b657918012001280912390a0a76616c75655f7479706518022001" . "280e32252e676f6f676c652e6170692e4c6162656c44657363726970746f" . "722e56616c75655479706512130a0b6465736372697074696f6e18032001" . "2809222c0a0956616c756554797065120a0a06535452494e47100012080a" . "04424f4f4c100112090a05494e5436341002425f0a0e636f6d2e676f6f67" . "6c652e617069420a4c6162656c50726f746f50015a35676f6f676c652e67" . "6f6c616e672e6f72672f67656e70726f746f2f676f6f676c65617069732f" . "6170692f6c6162656c3b6c6162656cf80101a2020447415049620670726f" . "746f33" ), true); static::$is_initialized = true; } } metadata/Api/LaunchStage.php000064400000002227151742727570011770 0ustar00internalAddGeneratedFile(hex2bin( "0afb010a1d676f6f676c652f6170692f6c61756e63685f73746167652e70" . "726f746f120a676f6f676c652e6170692a6a0a0b4c61756e636853746167" . "65121c0a184c41554e43485f53544147455f554e53504543494649454410" . "0012100a0c4541524c595f414343455353100112090a05414c5048411002" . "12080a0442455441100312060a0247411004120e0a0a4445505245434154" . "45441005425a0a0e636f6d2e676f6f676c652e61706942104c61756e6368" . "537461676550726f746f50015a2d676f6f676c652e676f6c616e672e6f72" . "672f67656e70726f746f2f676f6f676c65617069732f6170693b617069a2" . "020447415049620670726f746f33" ), true); static::$is_initialized = true; } } metadata/Api/Log.php000064400000002356151742727570010316 0ustar00internalAddGeneratedFile(hex2bin( "0a8d020a14676f6f676c652f6170692f6c6f672e70726f746f120a676f6f" . "676c652e61706922750a0d4c6f6744657363726970746f72120c0a046e61" . "6d65180120012809122b0a066c6162656c7318022003280b321b2e676f6f" . "676c652e6170692e4c6162656c44657363726970746f7212130a0b646573" . "6372697074696f6e18032001280912140a0c646973706c61795f6e616d65" . "180420012809426a0a0e636f6d2e676f6f676c652e61706942084c6f6750" . "726f746f50015a45676f6f676c652e676f6c616e672e6f72672f67656e70" . "726f746f2f676f6f676c65617069732f6170692f73657276696365636f6e" . "6669673b73657276696365636f6e666967a2020447415049620670726f74" . "6f33" ), true); static::$is_initialized = true; } } metadata/Api/Logging.php000064400000003005151742727570011153 0ustar00internalAddGeneratedFile(hex2bin( "0af8020a18676f6f676c652f6170692f6c6f6767696e672e70726f746f12" . "0a676f6f676c652e61706922d7010a074c6f6767696e6712450a1570726f" . "64756365725f64657374696e6174696f6e7318012003280b32262e676f6f" . "676c652e6170692e4c6f6767696e672e4c6f6767696e6744657374696e61" . "74696f6e12450a15636f6e73756d65725f64657374696e6174696f6e7318" . "022003280b32262e676f6f676c652e6170692e4c6f6767696e672e4c6f67" . "67696e6744657374696e6174696f6e1a3e0a124c6f6767696e6744657374" . "696e6174696f6e121a0a126d6f6e69746f7265645f7265736f7572636518" . "0320012809120c0a046c6f6773180120032809426e0a0e636f6d2e676f6f" . "676c652e617069420c4c6f6767696e6750726f746f50015a45676f6f676c" . "652e676f6c616e672e6f72672f67656e70726f746f2f676f6f676c656170" . "69732f6170692f73657276696365636f6e6669673b73657276696365636f" . "6e666967a2020447415049620670726f746f33" ), true); static::$is_initialized = true; } } metadata/Api/Metric.php000064400000006641151742727570011021 0ustar00internalAddGeneratedFile(hex2bin( "0ac4080a17676f6f676c652f6170692f6d65747269632e70726f746f120a" . "676f6f676c652e6170691a1d676f6f676c652f6170692f6c61756e63685f" . "73746167652e70726f746f1a1e676f6f676c652f70726f746f6275662f64" . "75726174696f6e2e70726f746f22fd050a104d6574726963446573637269" . "70746f72120c0a046e616d65180120012809120c0a047479706518082001" . "2809122b0a066c6162656c7318022003280b321b2e676f6f676c652e6170" . "692e4c6162656c44657363726970746f72123c0a0b6d65747269635f6b69" . "6e6418032001280e32272e676f6f676c652e6170692e4d65747269634465" . "7363726970746f722e4d65747269634b696e64123a0a0a76616c75655f74" . "79706518042001280e32262e676f6f676c652e6170692e4d657472696344" . "657363726970746f722e56616c756554797065120c0a04756e6974180520" . "01280912130a0b6465736372697074696f6e18062001280912140a0c6469" . "73706c61795f6e616d6518072001280912470a086d65746164617461180a" . "2001280b32352e676f6f676c652e6170692e4d6574726963446573637269" . "70746f722e4d657472696344657363726970746f724d6574616461746112" . "2d0a0c6c61756e63685f7374616765180c2001280e32172e676f6f676c65" . "2e6170692e4c61756e636853746167651ab0010a184d6574726963446573" . "63726970746f724d6574616461746112310a0c6c61756e63685f73746167" . "6518012001280e32172e676f6f676c652e6170692e4c61756e6368537461" . "67654202180112300a0d73616d706c655f706572696f6418022001280b32" . "192e676f6f676c652e70726f746f6275662e4475726174696f6e122f0a0c" . "696e676573745f64656c617918032001280b32192e676f6f676c652e7072" . "6f746f6275662e4475726174696f6e224f0a0a4d65747269634b696e6412" . "1b0a174d45545249435f4b494e445f554e53504543494649454410001209" . "0a054741554745100112090a0544454c54411002120e0a0a43554d554c41" . "54495645100322710a0956616c756554797065121a0a1656414c55455f54" . "5950455f554e535045434946494544100012080a04424f4f4c100112090a" . "05494e5436341002120a0a06444f55424c451003120a0a06535452494e47" . "100412100a0c444953545249425554494f4e100512090a054d4f4e455910" . "0622750a064d6574726963120c0a0474797065180320012809122e0a066c" . "6162656c7318022003280b321e2e676f6f676c652e6170692e4d65747269" . "632e4c6162656c73456e7472791a2d0a0b4c6162656c73456e747279120b" . "0a036b6579180120012809120d0a0576616c75651802200128093a023801" . "425f0a0e636f6d2e676f6f676c652e617069420b4d657472696350726f74" . "6f50015a37676f6f676c652e676f6c616e672e6f72672f67656e70726f74" . "6f2f676f6f676c65617069732f6170692f6d65747269633b6d6574726963" . "a2020447415049620670726f746f33" ), true); static::$is_initialized = true; } } metadata/Api/MonitoredResource.php000064400000004632151742727570013244 0ustar00internalAddGeneratedFile(hex2bin( "0ac1050a23676f6f676c652f6170692f6d6f6e69746f7265645f7265736f" . "757263652e70726f746f120a676f6f676c652e6170691a1c676f6f676c65" . "2f70726f746f6275662f7374727563742e70726f746f2291010a1b4d6f6e" . "69746f7265645265736f7572636544657363726970746f72120c0a046e61" . "6d65180520012809120c0a047479706518012001280912140a0c64697370" . "6c61795f6e616d6518022001280912130a0b6465736372697074696f6e18" . "0320012809122b0a066c6162656c7318042003280b321b2e676f6f676c65" . "2e6170692e4c6162656c44657363726970746f72228b010a114d6f6e6974" . "6f7265645265736f75726365120c0a047479706518012001280912390a06" . "6c6162656c7318022003280b32292e676f6f676c652e6170692e4d6f6e69" . "746f7265645265736f757263652e4c6162656c73456e7472791a2d0a0b4c" . "6162656c73456e747279120b0a036b6579180120012809120d0a0576616c" . "75651802200128093a02380122ca010a194d6f6e69746f7265645265736f" . "757263654d65746164617461122e0a0d73797374656d5f6c6162656c7318" . "012001280b32172e676f6f676c652e70726f746f6275662e537472756374" . "124a0a0b757365725f6c6162656c7318022003280b32352e676f6f676c65" . "2e6170692e4d6f6e69746f7265645265736f757263654d65746164617461" . "2e557365724c6162656c73456e7472791a310a0f557365724c6162656c73" . "456e747279120b0a036b6579180120012809120d0a0576616c7565180220" . "0128093a02380142790a0e636f6d2e676f6f676c652e61706942164d6f6e" . "69746f7265645265736f7572636550726f746f50015a43676f6f676c652e" . "676f6c616e672e6f72672f67656e70726f746f2f676f6f676c6561706973" . "2f6170692f6d6f6e69746f7265647265733b6d6f6e69746f726564726573" . "f80101a2020447415049620670726f746f33" ), true); static::$is_initialized = true; } } metadata/Api/Monitoring.php000064400000003122151742727570011712 0ustar00internalAddGeneratedFile(hex2bin( "0a93030a1b676f6f676c652f6170692f6d6f6e69746f72696e672e70726f" . "746f120a676f6f676c652e61706922ec010a0a4d6f6e69746f72696e6712" . "4b0a1570726f64756365725f64657374696e6174696f6e7318012003280b" . "322c2e676f6f676c652e6170692e4d6f6e69746f72696e672e4d6f6e6974" . "6f72696e6744657374696e6174696f6e124b0a15636f6e73756d65725f64" . "657374696e6174696f6e7318022003280b322c2e676f6f676c652e617069" . "2e4d6f6e69746f72696e672e4d6f6e69746f72696e6744657374696e6174" . "696f6e1a440a154d6f6e69746f72696e6744657374696e6174696f6e121a" . "0a126d6f6e69746f7265645f7265736f75726365180120012809120f0a07" . "6d65747269637318022003280942710a0e636f6d2e676f6f676c652e6170" . "69420f4d6f6e69746f72696e6750726f746f50015a45676f6f676c652e67" . "6f6c616e672e6f72672f67656e70726f746f2f676f6f676c65617069732f" . "6170692f73657276696365636f6e6669673b73657276696365636f6e6669" . "67a2020447415049620670726f746f33" ), true); static::$is_initialized = true; } } metadata/Api/Quota.php000064400000004405151742727570010663 0ustar00internalAddGeneratedFile(hex2bin( "0aa5050a16676f6f676c652f6170692f71756f74612e70726f746f120a67" . "6f6f676c652e617069225d0a0551756f746112260a066c696d6974731803" . "2003280b32162e676f6f676c652e6170692e51756f74614c696d6974122c" . "0a0c6d65747269635f72756c657318042003280b32162e676f6f676c652e" . "6170692e4d657472696352756c652291010a0a4d657472696352756c6512" . "100a0873656c6563746f72180120012809123d0a0c6d65747269635f636f" . "73747318022003280b32272e676f6f676c652e6170692e4d657472696352" . "756c652e4d6574726963436f737473456e7472791a320a104d6574726963" . "436f737473456e747279120b0a036b6579180120012809120d0a0576616c" . "75651802200128033a0238012295020a0a51756f74614c696d6974120c0a" . "046e616d6518062001280912130a0b6465736372697074696f6e18022001" . "280912150a0d64656661756c745f6c696d697418032001280312110a096d" . "61785f6c696d697418042001280312110a09667265655f74696572180720" . "01280312100a086475726174696f6e180520012809120e0a066d65747269" . "63180820012809120c0a04756e697418092001280912320a0676616c7565" . "73180a2003280b32222e676f6f676c652e6170692e51756f74614c696d69" . "742e56616c756573456e74727912140a0c646973706c61795f6e616d6518" . "0c200128091a2d0a0b56616c756573456e747279120b0a036b6579180120" . "012809120d0a0576616c75651802200128033a023801426c0a0e636f6d2e" . "676f6f676c652e617069420a51756f746150726f746f50015a45676f6f67" . "6c652e676f6c616e672e6f72672f67656e70726f746f2f676f6f676c6561" . "7069732f6170692f73657276696365636f6e6669673b7365727669636563" . "6f6e666967a2020447415049620670726f746f33" ), true); static::$is_initialized = true; } } metadata/Api/Resource.php000064400000003426151742727570011363 0ustar00internalAddGeneratedFile(hex2bin( "0afa030a19676f6f676c652f6170692f7265736f757263652e70726f746f" . "120a676f6f676c652e6170691a20676f6f676c652f70726f746f6275662f" . "64657363726970746f722e70726f746f22ff010a125265736f7572636544" . "657363726970746f72120c0a0474797065180120012809120f0a07706174" . "7465726e18022003280912120a0a6e616d655f6669656c64180320012809" . "12370a07686973746f727918042001280e32262e676f6f676c652e617069" . "2e5265736f7572636544657363726970746f722e486973746f7279120e0a" . "06706c7572616c18052001280912100a0873696e67756c61721806200128" . "09225b0a07486973746f727912170a13484953544f52595f554e53504543" . "49464945441000121d0a194f524947494e414c4c595f53494e474c455f50" . "41545445524e100112180a144655545552455f4d554c54495f5041545445" . "524e100222350a115265736f757263655265666572656e6365120c0a0474" . "79706518012001280912120a0a6368696c645f7479706518022001280942" . "6e0a0e636f6d2e676f6f676c652e617069420d5265736f7572636550726f" . "746f50015a41676f6f676c652e676f6c616e672e6f72672f67656e70726f" . "746f2f676f6f676c65617069732f6170692f616e6e6f746174696f6e733b" . "616e6e6f746174696f6e73f80101a2020447415049620670726f746f33" ), true); static::$is_initialized = true; } } metadata/Api/Routing.php000064400000001503151742727570011215 0ustar00internalAddGeneratedFile( ' ¿ google/api/routing.proto google.api google/protobuf/descriptor.proto"G RoutingRule8 routing_parameters ( 2.google.api.RoutingParameter"8 RoutingParameter field (  path_template ( Bj com.google.apiB RoutingProtoPZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations¢GAPIbproto3' , true); static::$is_initialized = true; } } metadata/Api/Service.php000064400000013600151742727570011167 0ustar00internalAddGeneratedFile(hex2bin( "0aa10d0a18676f6f676c652f6170692f736572766963652e70726f746f12" . "0a676f6f676c652e6170691a15676f6f676c652f6170692f617574682e70" . "726f746f1a18676f6f676c652f6170692f6261636b656e642e70726f746f" . "1a18676f6f676c652f6170692f62696c6c696e672e70726f746f1a18676f" . "6f676c652f6170692f636f6e746578742e70726f746f1a18676f6f676c65" . "2f6170692f636f6e74726f6c2e70726f746f1a1e676f6f676c652f617069" . "2f646f63756d656e746174696f6e2e70726f746f1a19676f6f676c652f61" . "70692f656e64706f696e742e70726f746f1a15676f6f676c652f6170692f" . "687474702e70726f746f1a14676f6f676c652f6170692f6c6f672e70726f" . "746f1a18676f6f676c652f6170692f6c6f6767696e672e70726f746f1a17" . "676f6f676c652f6170692f6d65747269632e70726f746f1a23676f6f676c" . "652f6170692f6d6f6e69746f7265645f7265736f757263652e70726f746f" . "1a1b676f6f676c652f6170692f6d6f6e69746f72696e672e70726f746f1a" . "16676f6f676c652f6170692f71756f74612e70726f746f1a1c676f6f676c" . "652f6170692f736f757263655f696e666f2e70726f746f1a21676f6f676c" . "652f6170692f73797374656d5f706172616d657465722e70726f746f1a16" . "676f6f676c652f6170692f75736167652e70726f746f1a19676f6f676c65" . "2f70726f746f6275662f6170692e70726f746f1a1a676f6f676c652f7072" . "6f746f6275662f747970652e70726f746f1a1e676f6f676c652f70726f74" . "6f6275662f77726170706572732e70726f746f22dc070a07536572766963" . "6512340a0e636f6e6669675f76657273696f6e18142001280b321c2e676f" . "6f676c652e70726f746f6275662e55496e74333256616c7565120c0a046e" . "616d65180120012809120a0a026964182120012809120d0a057469746c65" . "180220012809121b0a1370726f64756365725f70726f6a6563745f696418" . "162001280912220a046170697318032003280b32142e676f6f676c652e70" . "726f746f6275662e41706912240a05747970657318042003280b32152e67" . "6f6f676c652e70726f746f6275662e5479706512240a05656e756d731805" . "2003280b32152e676f6f676c652e70726f746f6275662e456e756d12300a" . "0d646f63756d656e746174696f6e18062001280b32192e676f6f676c652e" . "6170692e446f63756d656e746174696f6e12240a076261636b656e641808" . "2001280b32132e676f6f676c652e6170692e4261636b656e64121e0a0468" . "74747018092001280b32102e676f6f676c652e6170692e4874747012200a" . "0571756f7461180a2001280b32112e676f6f676c652e6170692e51756f74" . "6112320a0e61757468656e7469636174696f6e180b2001280b321a2e676f" . "6f676c652e6170692e41757468656e7469636174696f6e12240a07636f6e" . "74657874180c2001280b32132e676f6f676c652e6170692e436f6e746578" . "7412200a057573616765180f2001280b32112e676f6f676c652e6170692e" . "557361676512270a09656e64706f696e747318122003280b32142e676f6f" . "676c652e6170692e456e64706f696e7412240a07636f6e74726f6c181520" . "01280b32132e676f6f676c652e6170692e436f6e74726f6c12270a046c6f" . "677318172003280b32192e676f6f676c652e6170692e4c6f674465736372" . "6970746f72122d0a076d65747269637318182003280b321c2e676f6f676c" . "652e6170692e4d657472696344657363726970746f7212440a136d6f6e69" . "746f7265645f7265736f757263657318192003280b32272e676f6f676c65" . "2e6170692e4d6f6e69746f7265645265736f757263654465736372697074" . "6f7212240a0762696c6c696e67181a2001280b32132e676f6f676c652e61" . "70692e42696c6c696e6712240a076c6f6767696e67181b2001280b32132e" . "676f6f676c652e6170692e4c6f6767696e67122a0a0a6d6f6e69746f7269" . "6e67181c2001280b32162e676f6f676c652e6170692e4d6f6e69746f7269" . "6e6712370a1173797374656d5f706172616d6574657273181d2001280b32" . "1c2e676f6f676c652e6170692e53797374656d506172616d657465727312" . "2b0a0b736f757263655f696e666f18252001280b32162e676f6f676c652e" . "6170692e536f75726365496e666f4a0408651066426e0a0e636f6d2e676f" . "6f676c652e617069420c5365727669636550726f746f50015a45676f6f67" . "6c652e676f6c616e672e6f72672f67656e70726f746f2f676f6f676c6561" . "7069732f6170692f73657276696365636f6e6669673b7365727669636563" . "6f6e666967a2020447415049620670726f746f33" ), true); static::$is_initialized = true; } } metadata/Api/SourceInfo.php000064400000002202151742727570011637 0ustar00internalAddGeneratedFile(hex2bin( "0adf010a1c676f6f676c652f6170692f736f757263655f696e666f2e7072" . "6f746f120a676f6f676c652e61706922380a0a536f75726365496e666f12" . "2a0a0c736f757263655f66696c657318012003280b32142e676f6f676c65" . "2e70726f746f6275662e416e7942710a0e636f6d2e676f6f676c652e6170" . "69420f536f75726365496e666f50726f746f50015a45676f6f676c652e67" . "6f6c616e672e6f72672f67656e70726f746f2f676f6f676c65617069732f" . "6170692f73657276696365636f6e6669673b73657276696365636f6e6669" . "67a2020447415049620670726f746f33" ), true); static::$is_initialized = true; } } metadata/Api/SystemParameter.php000064400000003076151742727570012722 0ustar00internalAddGeneratedFile(hex2bin( "0aa0030a21676f6f676c652f6170692f73797374656d5f706172616d6574" . "65722e70726f746f120a676f6f676c652e61706922420a1053797374656d" . "506172616d6574657273122e0a0572756c657318012003280b321f2e676f" . "6f676c652e6170692e53797374656d506172616d6574657252756c652258" . "0a1353797374656d506172616d6574657252756c6512100a0873656c6563" . "746f72180120012809122f0a0a706172616d657465727318022003280b32" . "1b2e676f6f676c652e6170692e53797374656d506172616d657465722251" . "0a0f53797374656d506172616d65746572120c0a046e616d651801200128" . "0912130a0b687474705f686561646572180220012809121b0a1375726c5f" . "71756572795f706172616d6574657218032001280942760a0e636f6d2e67" . "6f6f676c652e617069421453797374656d506172616d6574657250726f74" . "6f50015a45676f6f676c652e676f6c616e672e6f72672f67656e70726f74" . "6f2f676f6f676c65617069732f6170692f73657276696365636f6e666967" . "3b73657276696365636f6e666967a2020447415049620670726f746f33" ), true); static::$is_initialized = true; } } metadata/Api/Usage.php000064400000002712151742727570010635 0ustar00internalAddGeneratedFile(hex2bin( "0ae5020a16676f6f676c652f6170692f75736167652e70726f746f120a67" . "6f6f676c652e617069226a0a05557361676512140a0c726571756972656d" . "656e747318012003280912240a0572756c657318062003280b32152e676f" . "6f676c652e6170692e557361676552756c6512250a1d70726f6475636572" . "5f6e6f74696669636174696f6e5f6368616e6e656c180720012809225d0a" . "09557361676552756c6512100a0873656c6563746f721801200128091220" . "0a18616c6c6f775f756e726567697374657265645f63616c6c7318022001" . "2808121c0a14736b69705f736572766963655f636f6e74726f6c18032001" . "2808426c0a0e636f6d2e676f6f676c652e617069420a557361676550726f" . "746f50015a45676f6f676c652e676f6c616e672e6f72672f67656e70726f" . "746f2f676f6f676c65617069732f6170692f73657276696365636f6e6669" . "673b73657276696365636f6e666967a2020447415049620670726f746f33" ), true); static::$is_initialized = true; } } metadata/Cloud/ExtendedOperations.php000064400000001536151742727570013735 0ustar00internalAddGeneratedFile( ' ¿ &google/cloud/extended_operations.proto google.cloud google/protobuf/descriptor.proto*b OperationResponseMapping UNDEFINED NAME STATUS ERROR_CODE ERROR_MESSAGEBy com.google.cloudBExtendedOperationsProtoPZCgoogle.golang.org/genproto/googleapis/cloud/extendedops;extendedops¢GAPIbproto3' , true); static::$is_initialized = true; } } metadata/Cloud/Location/Locations.php000064400000003424151742727570013632 0ustar00internalAddGeneratedFile( ' Ó %google/cloud/location/locations.protogoogle.cloud.locationgoogle/protobuf/any.protogoogle/api/client.proto"[ ListLocationsRequest name (  filter (  page_size ( page_token ( "d ListLocationsResponse2 locations ( 2.google.cloud.location.Location next_page_token ( "" GetLocationRequest name ( "× Location name (  location_id (  display_name ( ; labels ( 2+.google.cloud.location.Location.LabelsEntry& metadata ( 2.google.protobuf.Any- LabelsEntry key (  value ( :82¤ Locations« ListLocations+.google.cloud.location.ListLocationsRequest,.google.cloud.location.ListLocationsResponse"?‚Óä“9/v1/{name=locations}Z!/v1/{name=projects/*}/locationsž GetLocation).google.cloud.location.GetLocationRequest.google.cloud.location.Location"C‚Óä“=/v1/{name=locations/*}Z#!/v1/{name=projects/*/locations/*}HÊAcloud.googleapis.comÒA.https://www.googleapis.com/auth/cloud-platformBo com.google.cloud.locationBLocationsProtoPZ=google.golang.org/genproto/googleapis/cloud/location;locationøbproto3' , true); static::$is_initialized = true; } } metadata/Iam/V1/IamPolicy.php000064400000007162151742727570011746 0ustar00internalAddGeneratedFile(hex2bin( "0ad3080a1e676f6f676c652f69616d2f76312f69616d5f706f6c6963792e" . "70726f746f120d676f6f676c652e69616d2e76311a1a676f6f676c652f69" . "616d2f76312f706f6c6963792e70726f746f1a1c676f6f676c652f617069" . "2f616e6e6f746174696f6e732e70726f746f1a17676f6f676c652f617069" . "2f636c69656e742e70726f746f1a1f676f6f676c652f6170692f6669656c" . "645f6265686176696f722e70726f746f1a19676f6f676c652f6170692f72" . "65736f757263652e70726f746f225e0a1353657449616d506f6c69637952" . "657175657374121b0a087265736f757263651801200128094209e04102fa" . "41030a012a122a0a06706f6c69637918022001280b32152e676f6f676c65" . "2e69616d2e76312e506f6c6963794203e0410222640a1347657449616d50" . "6f6c69637952657175657374121b0a087265736f75726365180120012809" . "4209e04102fa41030a012a12300a076f7074696f6e7318022001280b321f" . "2e676f6f676c652e69616d2e76312e476574506f6c6963794f7074696f6e" . "7322520a195465737449616d5065726d697373696f6e7352657175657374" . "121b0a087265736f757263651801200128094209e04102fa41030a012a12" . "180a0b7065726d697373696f6e731802200328094203e0410222310a1a54" . "65737449616d5065726d697373696f6e73526573706f6e736512130a0b70" . "65726d697373696f6e7318012003280932b4030a0949414d506f6c696379" . "12740a0c53657449616d506f6c69637912222e676f6f676c652e69616d2e" . "76312e53657449616d506f6c696379526571756573741a152e676f6f676c" . "652e69616d2e76312e506f6c696379222982d3e4930223221e2f76312f7b" . "7265736f757263653d2a2a7d3a73657449616d506f6c6963793a012a1274" . "0a0c47657449616d506f6c69637912222e676f6f676c652e69616d2e7631" . "2e47657449616d506f6c696379526571756573741a152e676f6f676c652e" . "69616d2e76312e506f6c696379222982d3e4930223221e2f76312f7b7265" . "736f757263653d2a2a7d3a67657449616d506f6c6963793a012a129a010a" . "125465737449616d5065726d697373696f6e7312282e676f6f676c652e69" . "616d2e76312e5465737449616d5065726d697373696f6e73526571756573" . "741a292e676f6f676c652e69616d2e76312e5465737449616d5065726d69" . "7373696f6e73526573706f6e7365222f82d3e493022922242f76312f7b72" . "65736f757263653d2a2a7d3a7465737449616d5065726d697373696f6e73" . "3a012a1a1eca411b69616d2d6d6574612d6170692e676f6f676c65617069" . "732e636f6d4286010a11636f6d2e676f6f676c652e69616d2e7631420e49" . "616d506f6c69637950726f746f50015a30676f6f676c652e676f6c616e67" . "2e6f72672f67656e70726f746f2f676f6f676c65617069732f69616d2f76" . "313b69616df80101aa0213476f6f676c652e436c6f75642e49616d2e5631" . "ca0213476f6f676c655c436c6f75645c49616d5c5631620670726f746f33" ), true); static::$is_initialized = true; } } metadata/Iam/V1/Logging/AuditData.php000064400000002641151742727570013303 0ustar00internalAddGeneratedFile(hex2bin( "0aae020a26676f6f676c652f69616d2f76312f6c6f6767696e672f617564" . "69745f646174612e70726f746f1215676f6f676c652e69616d2e76312e6c" . "6f6767696e671a1a676f6f676c652f69616d2f76312f706f6c6963792e70" . "726f746f223d0a0941756469744461746112300a0c706f6c6963795f6465" . "6c746118022001280b321a2e676f6f676c652e69616d2e76312e506f6c69" . "637944656c74614289010a19636f6d2e676f6f676c652e69616d2e76312e" . "6c6f6767696e67420e41756469744461746150726f746f50015a3c676f6f" . "676c652e676f6c616e672e6f72672f67656e70726f746f2f676f6f676c65" . "617069732f69616d2f76312f6c6f6767696e673b6c6f6767696e67aa021b" . "476f6f676c652e436c6f75642e49616d2e56312e4c6f6767696e67620670" . "726f746f33" ), true); static::$is_initialized = true; } } metadata/Iam/V1/Options.php000064400000002271151742727570011507 0ustar00internalAddGeneratedFile(hex2bin( "0af1010a1b676f6f676c652f69616d2f76312f6f7074696f6e732e70726f" . "746f120d676f6f676c652e69616d2e763122340a10476574506f6c696379" . "4f7074696f6e7312200a187265717565737465645f706f6c6963795f7665" . "7273696f6e1801200128054284010a11636f6d2e676f6f676c652e69616d" . "2e7631420c4f7074696f6e7350726f746f50015a30676f6f676c652e676f" . "6c616e672e6f72672f67656e70726f746f2f676f6f676c65617069732f69" . "616d2f76313b69616df80101aa0213476f6f676c652e436c6f75642e4961" . "6d2e5631ca0213476f6f676c655c436c6f75645c49616d5c563162067072" . "6f746f33" ), true); static::$is_initialized = true; } } metadata/Iam/V1/Policy.php000064400000005547151742727570011324 0ustar00internalAddGeneratedFile(hex2bin( "0afd060a1a676f6f676c652f69616d2f76312f706f6c6963792e70726f74" . "6f120d676f6f676c652e69616d2e76311a1c676f6f676c652f6170692f61" . "6e6e6f746174696f6e732e70726f746f22510a06506f6c696379120f0a07" . "76657273696f6e18012001280512280a0862696e64696e67731804200328" . "0b32162e676f6f676c652e69616d2e76312e42696e64696e67120c0a0465" . "74616718032001280c224e0a0742696e64696e67120c0a04726f6c651801" . "20012809120f0a076d656d6265727318022003280912240a09636f6e6469" . "74696f6e18032001280b32112e676f6f676c652e747970652e4578707222" . "80010a0b506f6c69637944656c746112330a0e62696e64696e675f64656c" . "74617318012003280b321b2e676f6f676c652e69616d2e76312e42696e64" . "696e6744656c7461123c0a1361756469745f636f6e6669675f64656c7461" . "7318022003280b321f2e676f6f676c652e69616d2e76312e417564697443" . "6f6e66696744656c746122bd010a0c42696e64696e6744656c746112320a" . "06616374696f6e18012001280e32222e676f6f676c652e69616d2e76312e" . "42696e64696e6744656c74612e416374696f6e120c0a04726f6c65180220" . "012809120e0a066d656d62657218032001280912240a09636f6e64697469" . "6f6e18042001280b32112e676f6f676c652e747970652e4578707222350a" . "06416374696f6e12160a12414354494f4e5f554e53504543494649454410" . "0012070a034144441001120a0a0652454d4f5645100222bd010a10417564" . "6974436f6e66696744656c746112360a06616374696f6e18012001280e32" . "262e676f6f676c652e69616d2e76312e4175646974436f6e66696744656c" . "74612e416374696f6e120f0a077365727669636518022001280912170a0f" . "6578656d707465645f6d656d62657218032001280912100a086c6f675f74" . "79706518042001280922350a06416374696f6e12160a12414354494f4e5f" . "554e535045434946494544100012070a034144441001120a0a0652454d4f" . "564510024283010a11636f6d2e676f6f676c652e69616d2e7631420b506f" . "6c69637950726f746f50015a30676f6f676c652e676f6c616e672e6f7267" . "2f67656e70726f746f2f676f6f676c65617069732f69616d2f76313b6961" . "6df80101aa0213476f6f676c652e436c6f75642e49616d2e5631ca021347" . "6f6f676c655c436c6f75645c49616d5c5631620670726f746f33" ), true); static::$is_initialized = true; } } metadata/Logging/Type/HttpRequest.php000064400000004366151742727570013666 0ustar00internalAddGeneratedFile(hex2bin( "0af9040a26676f6f676c652f6c6f6767696e672f747970652f687474705f" . "726571756573742e70726f746f1213676f6f676c652e6c6f6767696e672e" . "747970651a1e676f6f676c652f70726f746f6275662f6475726174696f6e" . "2e70726f746f22ef020a0b487474705265717565737412160a0e72657175" . "6573745f6d6574686f6418012001280912130a0b726571756573745f7572" . "6c18022001280912140a0c726571756573745f73697a6518032001280312" . "0e0a0673746174757318042001280512150a0d726573706f6e73655f7369" . "7a6518052001280312120a0a757365725f6167656e741806200128091211" . "0a0972656d6f74655f697018072001280912110a097365727665725f6970" . "180d20012809120f0a0772656665726572180820012809122a0a076c6174" . "656e6379180e2001280b32192e676f6f676c652e70726f746f6275662e44" . "75726174696f6e12140a0c63616368655f6c6f6f6b7570180b2001280812" . "110a0963616368655f686974180920012808122a0a2263616368655f7661" . "6c6964617465645f776974685f6f726967696e5f736572766572180a2001" . "280812180a1063616368655f66696c6c5f6279746573180c200128031210" . "0a0870726f746f636f6c180f20012809429f010a17636f6d2e676f6f676c" . "652e6c6f6767696e672e747970654210487474705265717565737450726f" . "746f50015a38676f6f676c652e676f6c616e672e6f72672f67656e70726f" . "746f2f676f6f676c65617069732f6c6f6767696e672f747970653b6c7479" . "7065aa0219476f6f676c652e436c6f75642e4c6f6767696e672e54797065" . "ca0219476f6f676c655c436c6f75645c4c6f6767696e675c547970656206" . "70726f746f33" ), true); static::$is_initialized = true; } } metadata/Logging/Type/LogSeverity.php000064400000003010151742727570013633 0ustar00internalAddGeneratedFile(hex2bin( "0aec020a26676f6f676c652f6c6f6767696e672f747970652f6c6f675f73" . "657665726974792e70726f746f1213676f6f676c652e6c6f6767696e672e" . "747970652a82010a0b4c6f675365766572697479120b0a0744454641554c" . "54100012090a054445425547106412090a04494e464f10c801120b0a064e" . "4f5449434510ac02120c0a075741524e494e47109003120a0a054552524f" . "5210f403120d0a08435249544943414c10d804120a0a05414c45525410bc" . "05120e0a09454d455247454e435910a006429f010a17636f6d2e676f6f67" . "6c652e6c6f6767696e672e7479706542104c6f6753657665726974795072" . "6f746f50015a38676f6f676c652e676f6c616e672e6f72672f67656e7072" . "6f746f2f676f6f676c65617069732f6c6f6767696e672f747970653b6c74" . "797065aa0219476f6f676c652e436c6f75642e4c6f6767696e672e547970" . "65ca0219476f6f676c655c436c6f75645c4c6f6767696e675c5479706562" . "0670726f746f33" ), true); static::$is_initialized = true; } } metadata/Longrunning/Operations.php000064400000010414151742727570013501 0ustar00internalAddGeneratedFile(hex2bin( "0afd0a0a23676f6f676c652f6c6f6e6772756e6e696e672f6f7065726174" . "696f6e732e70726f746f1212676f6f676c652e6c6f6e6772756e6e696e67" . "1a19676f6f676c652f70726f746f6275662f616e792e70726f746f1a2067" . "6f6f676c652f70726f746f6275662f64657363726970746f722e70726f74" . "6f1a1b676f6f676c652f70726f746f6275662f656d7074792e70726f746f" . "1a17676f6f676c652f7270632f7374617475732e70726f746f22a8010a09" . "4f7065726174696f6e120c0a046e616d6518012001280912260a086d6574" . "616461746118022001280b32142e676f6f676c652e70726f746f6275662e" . "416e79120c0a04646f6e6518032001280812230a056572726f7218042001" . "280b32122e676f6f676c652e7270632e537461747573480012280a087265" . "73706f6e736518052001280b32142e676f6f676c652e70726f746f627566" . "2e416e79480042080a06726573756c7422230a134765744f706572617469" . "6f6e52657175657374120c0a046e616d65180120012809225c0a154c6973" . "744f7065726174696f6e7352657175657374120c0a046e616d6518042001" . "2809120e0a0666696c74657218012001280912110a09706167655f73697a" . "6518022001280512120a0a706167655f746f6b656e18032001280922640a" . "164c6973744f7065726174696f6e73526573706f6e736512310a0a6f7065" . "726174696f6e7318012003280b321d2e676f6f676c652e6c6f6e6772756e" . "6e696e672e4f7065726174696f6e12170a0f6e6578745f706167655f746f" . "6b656e18022001280922260a1643616e63656c4f7065726174696f6e5265" . "7175657374120c0a046e616d6518012001280922260a1644656c6574654f" . "7065726174696f6e52657175657374120c0a046e616d6518012001280922" . "3d0a0d4f7065726174696f6e496e666f12150a0d726573706f6e73655f74" . "79706518012001280912150a0d6d657461646174615f7479706518022001" . "2809328c040a0a4f7065726174696f6e731286010a0e4c6973744f706572" . "6174696f6e7312292e676f6f676c652e6c6f6e6772756e6e696e672e4c69" . "73744f7065726174696f6e73526571756573741a2a2e676f6f676c652e6c" . "6f6e6772756e6e696e672e4c6973744f7065726174696f6e73526573706f" . "6e7365221d82d3e493021712152f76312f7b6e616d653d6f706572617469" . "6f6e737d12780a0c4765744f7065726174696f6e12272e676f6f676c652e" . "6c6f6e6772756e6e696e672e4765744f7065726174696f6e526571756573" . "741a1d2e676f6f676c652e6c6f6e6772756e6e696e672e4f706572617469" . "6f6e222082d3e493021a12182f76312f7b6e616d653d6f7065726174696f" . "6e732f2a2a7d12770a0f44656c6574654f7065726174696f6e122a2e676f" . "6f676c652e6c6f6e6772756e6e696e672e44656c6574654f706572617469" . "6f6e526571756573741a162e676f6f676c652e70726f746f6275662e456d" . "707479222082d3e493021a2a182f76312f7b6e616d653d6f706572617469" . "6f6e732f2a2a7d1281010a0f43616e63656c4f7065726174696f6e122a2e" . "676f6f676c652e6c6f6e6772756e6e696e672e43616e63656c4f70657261" . "74696f6e526571756573741a162e676f6f676c652e70726f746f6275662e" . "456d707479222a82d3e4930224221f2f76312f7b6e616d653d6f70657261" . "74696f6e732f2a2a7d3a63616e63656c3a012a4294010a16636f6d2e676f" . "6f676c652e6c6f6e6772756e6e696e67420f4f7065726174696f6e735072" . "6f746f50015a3d676f6f676c652e676f6c616e672e6f72672f67656e7072" . "6f746f2f676f6f676c65617069732f6c6f6e6772756e6e696e673b6c6f6e" . "6772756e6e696e67aa0212476f6f676c652e4c6f6e6752756e6e696e67ca" . "0212476f6f676c655c4c6f6e6752756e6e696e67620670726f746f33" ), true); static::$is_initialized = true; } } metadata/Rpc/Code.php000064400000001675151742727570010465 0ustar00internalAddGeneratedFile( ' ¿ google/rpc/code.proto google.rpc*· Code OK CANCELLED UNKNOWN INVALID_ARGUMENT DEADLINE_EXCEEDED NOT_FOUND ALREADY_EXISTS PERMISSION_DENIED UNAUTHENTICATED RESOURCE_EXHAUSTED FAILED_PRECONDITION  ABORTED  OUT_OF_RANGE  UNIMPLEMENTED  INTERNAL  UNAVAILABLE DATA_LOSSBX com.google.rpcB CodeProtoPZ3google.golang.org/genproto/googleapis/rpc/code;code¢RPCbproto3' , true); static::$is_initialized = true; } } metadata/Rpc/ErrorDetails.php000064400000003264151742727570012206 0ustar00internalAddGeneratedFile( ' ê google/rpc/error_details.proto google.rpc"; RetryInfo. retry_delay ( 2.google.protobuf.Duration"2 DebugInfo stack_entries (  detail ( "y QuotaFailure6 violations ( 2".google.rpc.QuotaFailure.Violation1 Violation subject (  description ( "“ ErrorInfo reason (  domain ( 5 metadata ( 2#.google.rpc.ErrorInfo.MetadataEntry/ MetadataEntry key (  value ( :8"• PreconditionFailure= violations ( 2).google.rpc.PreconditionFailure.Violation? Violation type (  subject (  description ( "ƒ BadRequest? field_violations ( 2%.google.rpc.BadRequest.FieldViolation4 FieldViolation field (  description ( "7 RequestInfo request_id (  serving_data ( "` ResourceInfo resource_type (  resource_name (  owner (  description ( "V Help$ links ( 2.google.rpc.Help.Link( Link description (  url ( "3 LocalizedMessage locale (  message ( Bl com.google.rpcBErrorDetailsProtoPZ?google.golang.org/genproto/googleapis/rpc/errdetails;errdetails¢RPCbproto3' , true); static::$is_initialized = true; } } metadata/Rpc/Status.php000064400000001430151742727570011063 0ustar00internalAddGeneratedFile( ' à google/rpc/status.proto google.rpc"N Status code ( message ( % details ( 2.google.protobuf.AnyBa com.google.rpcB StatusProtoPZ7google.golang.org/genproto/googleapis/rpc/status;statusø¢RPCbproto3' , true); static::$is_initialized = true; } } metadata/Type/CalendarPeriod.php000064400000002461151742727570012656 0ustar00internalAddGeneratedFile(hex2bin( "0ab3020a21676f6f676c652f747970652f63616c656e6461725f70657269" . "6f642e70726f746f120b676f6f676c652e747970652a7f0a0e43616c656e" . "646172506572696f64121f0a1b43414c454e4441525f504552494f445f55" . "4e535045434946494544100012070a03444159100112080a045745454b10" . "02120d0a09464f52544e49474854100312090a054d4f4e54481004120b0a" . "0751554152544552100512080a0448414c46100612080a04594541521007" . "42780a0f636f6d2e676f6f676c652e74797065421343616c656e64617250" . "6572696f6450726f746f50015a48676f6f676c652e676f6c616e672e6f72" . "672f67656e70726f746f2f676f6f676c65617069732f747970652f63616c" . "656e646172706572696f643b63616c656e646172706572696f64a2020347" . "5450620670726f746f33" ), true); static::$is_initialized = true; } } metadata/Type/Color.php000064400000002257151742727570011063 0ustar00internalAddGeneratedFile(hex2bin( "0aef010a17676f6f676c652f747970652f636f6c6f722e70726f746f120b" . "676f6f676c652e74797065225d0a05436f6c6f72120b0a03726564180120" . "012802120d0a05677265656e180220012802120c0a04626c756518032001" . "2802122a0a05616c70686118042001280b321b2e676f6f676c652e70726f" . "746f6275662e466c6f617456616c756542600a0f636f6d2e676f6f676c65" . "2e74797065420a436f6c6f7250726f746f50015a36676f6f676c652e676f" . "6c616e672e6f72672f67656e70726f746f2f676f6f676c65617069732f74" . "7970652f636f6c6f723b636f6c6f72f80101a20203475450620670726f74" . "6f33" ), true); static::$is_initialized = true; } } metadata/Type/Date.php000064400000001756151742727570010665 0ustar00internalAddGeneratedFile(hex2bin( "0abe010a16676f6f676c652f747970652f646174652e70726f746f120b67" . "6f6f676c652e7479706522300a0444617465120c0a047965617218012001" . "2805120d0a056d6f6e7468180220012805120b0a03646179180320012805" . "425d0a0f636f6d2e676f6f676c652e7479706542094461746550726f746f" . "50015a34676f6f676c652e676f6c616e672e6f72672f67656e70726f746f" . "2f676f6f676c65617069732f747970652f646174653b64617465f80101a2" . "0203475450620670726f746f33" ), true); static::$is_initialized = true; } } metadata/Type/Datetime.php000064400000003215151742727570011534 0ustar00internalAddGeneratedFile(hex2bin( "0aa8030a1a676f6f676c652f747970652f6461746574696d652e70726f74" . "6f120b676f6f676c652e7479706522e0010a084461746554696d65120c0a" . "0479656172180120012805120d0a056d6f6e7468180220012805120b0a03" . "646179180320012805120d0a05686f757273180420012805120f0a076d69" . "6e75746573180520012805120f0a077365636f6e6473180620012805120d" . "0a056e616e6f73180720012805122f0a0a7574635f6f6666736574180820" . "01280b32192e676f6f676c652e70726f746f6275662e4475726174696f6e" . "4800122a0a0974696d655f7a6f6e6518092001280b32152e676f6f676c65" . "2e747970652e54696d655a6f6e654800420d0a0b74696d655f6f66667365" . "7422270a0854696d655a6f6e65120a0a026964180120012809120f0a0776" . "657273696f6e18022001280942690a0f636f6d2e676f6f676c652e747970" . "65420d4461746554696d6550726f746f50015a3c676f6f676c652e676f6c" . "616e672e6f72672f67656e70726f746f2f676f6f676c65617069732f7479" . "70652f6461746574696d653b6461746574696d65f80101a2020347545062" . "0670726f746f33" ), true); static::$is_initialized = true; } } metadata/Type/Dayofweek.php000064400000002367151742727570011725 0ustar00internalAddGeneratedFile(hex2bin( "0aa4020a1b676f6f676c652f747970652f6461796f667765656b2e70726f" . "746f120b676f6f676c652e747970652a84010a094461794f665765656b12" . "1b0a174441595f4f465f5745454b5f554e5350454349464945441000120a" . "0a064d4f4e4441591001120b0a07545545534441591002120d0a09574544" . "4e45534441591003120c0a0854485552534441591004120a0a0646524944" . "41591005120c0a0853415455524441591006120a0a0653554e4441591007" . "42690a0f636f6d2e676f6f676c652e74797065420e4461794f665765656b" . "50726f746f50015a3e676f6f676c652e676f6c616e672e6f72672f67656e" . "70726f746f2f676f6f676c65617069732f747970652f6461796f66776565" . "6b3b6461796f667765656ba20203475450620670726f746f33" ), true); static::$is_initialized = true; } } metadata/Type/Decimal.php000064400000001270151742727570011335 0ustar00internalAddGeneratedFile( ' ² google/type/decimal.proto google.type" Decimal value ( Bf com.google.typeB DecimalProtoPZ:google.golang.org/genproto/googleapis/type/decimal;decimalø¢GTPbproto3' , true); static::$is_initialized = true; } } metadata/Type/Expr.php000064400000002071151742727570010715 0ustar00internalAddGeneratedFile(hex2bin( "0adb010a16676f6f676c652f747970652f657870722e70726f746f120b67" . "6f6f676c652e7479706522500a044578707212120a0a6578707265737369" . "6f6e180120012809120d0a057469746c6518022001280912130a0b646573" . "6372697074696f6e18032001280912100a086c6f636174696f6e18042001" . "2809425a0a0f636f6d2e676f6f676c652e7479706542094578707250726f" . "746f50015a34676f6f676c652e676f6c616e672e6f72672f67656e70726f" . "746f2f676f6f676c65617069732f747970652f657870723b65787072a202" . "03475450620670726f746f33" ), true); static::$is_initialized = true; } } metadata/Type/Fraction.php000064400000002024151742727570011542 0ustar00internalAddGeneratedFile(hex2bin( "0acd010a1a676f6f676c652f747970652f6672616374696f6e2e70726f74" . "6f120b676f6f676c652e7479706522320a084672616374696f6e12110a09" . "6e756d657261746f7218012001280312130a0b64656e6f6d696e61746f72" . "18022001280342660a0f636f6d2e676f6f676c652e74797065420d467261" . "6374696f6e50726f746f50015a3c676f6f676c652e676f6c616e672e6f72" . "672f67656e70726f746f2f676f6f676c65617069732f747970652f667261" . "6374696f6e3b6672616374696f6ea20203475450620670726f746f33" ), true); static::$is_initialized = true; } } metadata/Type/Interval.php000064400000001512151742727570011562 0ustar00internalAddGeneratedFile( ' † google/type/interval.proto google.type"h Interval. start_time ( 2.google.protobuf.Timestamp, end_time ( 2.google.protobuf.TimestampBi com.google.typeB IntervalProtoPZinternalAddGeneratedFile(hex2bin( "0ac3010a18676f6f676c652f747970652f6c61746c6e672e70726f746f12" . "0b676f6f676c652e74797065222d0a064c61744c6e6712100a086c617469" . "7475646518012001280112110a096c6f6e67697475646518022001280142" . "630a0f636f6d2e676f6f676c652e74797065420b4c61744c6e6750726f74" . "6f50015a38676f6f676c652e676f6c616e672e6f72672f67656e70726f74" . "6f2f676f6f676c65617069732f747970652f6c61746c6e673b6c61746c6e" . "67f80101a20203475450620670726f746f33" ), true); static::$is_initialized = true; } } metadata/Type/LocalizedText.php000064400000001374151742727570012557 0ustar00internalAddGeneratedFile( ' é google/type/localized_text.proto google.type"4 LocalizedText text (  language_code ( Bz com.google.typeBLocalizedTextProtoPZHgoogle.golang.org/genproto/googleapis/type/localized_text;localized_textø¢GTPbproto3' , true); static::$is_initialized = true; } } metadata/Type/Money.php000064400000002020151742727570011060 0ustar00internalAddGeneratedFile(hex2bin( "0ace010a17676f6f676c652f747970652f6d6f6e65792e70726f746f120b" . "676f6f676c652e74797065223c0a054d6f6e657912150a0d63757272656e" . "63795f636f6465180120012809120d0a05756e697473180220012803120d" . "0a056e616e6f7318032001280542600a0f636f6d2e676f6f676c652e7479" . "7065420a4d6f6e657950726f746f50015a36676f6f676c652e676f6c616e" . "672e6f72672f67656e70726f746f2f676f6f676c65617069732f74797065" . "2f6d6f6e65793b6d6f6e6579f80101a20203475450620670726f746f33" ), true); static::$is_initialized = true; } } metadata/Type/Month.php000064400000002470151742727570011067 0ustar00internalAddGeneratedFile(hex2bin( "0ac0020a17676f6f676c652f747970652f6d6f6e74682e70726f746f120b" . "676f6f676c652e747970652ab0010a054d6f6e746812150a114d4f4e5448" . "5f554e5350454349464945441000120b0a074a414e554152591001120c0a" . "084645425255415259100212090a054d41524348100312090a0541505249" . "4c100412070a034d4159100512080a044a554e45100612080a044a554c59" . "1007120a0a064155475553541008120d0a0953455054454d424552100912" . "0b0a074f43544f424552100a120c0a084e4f56454d424552100b120c0a08" . "444543454d424552100c425d0a0f636f6d2e676f6f676c652e7479706542" . "0a4d6f6e746850726f746f50015a36676f6f676c652e676f6c616e672e6f" . "72672f67656e70726f746f2f676f6f676c65617069732f747970652f6d6f" . "6e74683b6d6f6e7468a20203475450620670726f746f33" ), true); static::$is_initialized = true; } } metadata/Type/PhoneNumber.php000064400000001550151742727570012222 0ustar00internalAddGeneratedFile( ' Ù google/type/phone_number.proto google.type"« PhoneNumber e164_number ( H8 short_code ( 2".google.type.PhoneNumber.ShortCodeH extension ( 0 ShortCode region_code (  number ( B kindBt com.google.typeBPhoneNumberProtoPZDgoogle.golang.org/genproto/googleapis/type/phone_number;phone_numberø¢GTPbproto3' , true); static::$is_initialized = true; } } metadata/Type/PostalAddress.php000064400000003157151742727570012555 0ustar00internalAddGeneratedFile(hex2bin( "0ab1030a20676f6f676c652f747970652f706f7374616c5f616464726573" . "732e70726f746f120b676f6f676c652e7479706522fd010a0d506f737461" . "6c4164647265737312100a087265766973696f6e18012001280512130a0b" . "726567696f6e5f636f646518022001280912150a0d6c616e67756167655f" . "636f646518032001280912130a0b706f7374616c5f636f64651804200128" . "0912140a0c736f7274696e675f636f6465180520012809121b0a1361646d" . "696e6973747261746976655f6172656118062001280912100a086c6f6361" . "6c69747918072001280912130a0b7375626c6f63616c6974791808200128" . "0912150a0d616464726573735f6c696e657318092003280912120a0a7265" . "63697069656e7473180a2003280912140a0c6f7267616e697a6174696f6e" . "180b2001280942780a0f636f6d2e676f6f676c652e747970654212506f73" . "74616c4164647265737350726f746f50015a46676f6f676c652e676f6c61" . "6e672e6f72672f67656e70726f746f2f676f6f676c65617069732f747970" . "652f706f7374616c616464726573733b706f7374616c61646472657373f8" . "0101a20203475450620670726f746f33" ), true); static::$is_initialized = true; } } metadata/Type/Quaternion.php000064400000002113151742727570012121 0ustar00internalAddGeneratedFile(hex2bin( "0ade010a1c676f6f676c652f747970652f7175617465726e696f6e2e7072" . "6f746f120b676f6f676c652e7479706522380a0a5175617465726e696f6e" . "12090a017818012001280112090a017918022001280112090a017a180320" . "01280112090a0177180420012801426f0a0f636f6d2e676f6f676c652e74" . "797065420f5175617465726e696f6e50726f746f50015a40676f6f676c65" . "2e676f6c616e672e6f72672f67656e70726f746f2f676f6f676c65617069" . "732f747970652f7175617465726e696f6e3b7175617465726e696f6ef801" . "01a20203475450620670726f746f33" ), true); static::$is_initialized = true; } } metadata/Type/Timeofday.php000064400000002147151742727570011724 0ustar00internalAddGeneratedFile(hex2bin( "0aed010a1b676f6f676c652f747970652f74696d656f666461792e70726f" . "746f120b676f6f676c652e74797065224b0a0954696d654f66446179120d" . "0a05686f757273180120012805120f0a076d696e75746573180220012805" . "120f0a077365636f6e6473180320012805120d0a056e616e6f7318042001" . "2805426c0a0f636f6d2e676f6f676c652e74797065420e54696d654f6644" . "617950726f746f50015a3e676f6f676c652e676f6c616e672e6f72672f67" . "656e70726f746f2f676f6f676c65617069732f747970652f74696d656f66" . "6461793b74696d656f66646179f80101a20203475450620670726f746f33" ), true); static::$is_initialized = true; } } renovate.json000064400000000106151742727570007300 0ustar00{ "extends": [ "config:base", ":preserveSemverRanges" ] } src/Api/Advice.php000064400000003744151742727570010001 0ustar00google.api.Advice */ class Advice extends \Google\Protobuf\Internal\Message { /** * Useful description for why this advice was applied and what actions should * be taken to mitigate any implied risks. * * Generated from protobuf field string description = 2; */ private $description = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $description * Useful description for why this advice was applied and what actions should * be taken to mitigate any implied risks. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\ConfigChange::initOnce(); parent::__construct($data); } /** * Useful description for why this advice was applied and what actions should * be taken to mitigate any implied risks. * * Generated from protobuf field string description = 2; * @return string */ public function getDescription() { return $this->description; } /** * Useful description for why this advice was applied and what actions should * be taken to mitigate any implied risks. * * Generated from protobuf field string description = 2; * @param string $var * @return $this */ public function setDescription($var) { GPBUtil::checkString($var, True); $this->description = $var; return $this; } } src/Api/AuthProvider.php000064400000027107151742727570011221 0ustar00google.api.AuthProvider */ class AuthProvider extends \Google\Protobuf\Internal\Message { /** * The unique identifier of the auth provider. It will be referred to by * `AuthRequirement.provider_id`. * Example: "bookstore_auth". * * Generated from protobuf field string id = 1; */ private $id = ''; /** * Identifies the principal that issued the JWT. See * https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1 * Usually a URL or an email address. * Example: https://securetoken.google.com * Example: 1234567-compute@developer.gserviceaccount.com * * Generated from protobuf field string issuer = 2; */ private $issuer = ''; /** * URL of the provider's public key set to validate signature of the JWT. See * [OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata). * Optional if the key set document: * - can be retrieved from * [OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html * of the issuer. * - can be inferred from the email domain of the issuer (e.g. a Google service account). * Example: https://www.googleapis.com/oauth2/v1/certs * * Generated from protobuf field string jwks_uri = 3; */ private $jwks_uri = ''; /** * The list of JWT * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3). * that are allowed to access. A JWT containing any of these audiences will * be accepted. When this setting is absent, only JWTs with audience * "https://[Service_name][google.api.Service.name]/[API_name][google.protobuf.Api.name]" * will be accepted. For example, if no audiences are in the setting, * LibraryService API will only accept JWTs with the following audience * "https://library-example.googleapis.com/google.example.library.v1.LibraryService". * Example: * audiences: bookstore_android.apps.googleusercontent.com, * bookstore_web.apps.googleusercontent.com * * Generated from protobuf field string audiences = 4; */ private $audiences = ''; /** * Redirect URL if JWT token is required but no present or is expired. * Implement authorizationUrl of securityDefinitions in OpenAPI spec. * * Generated from protobuf field string authorization_url = 5; */ private $authorization_url = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $id * The unique identifier of the auth provider. It will be referred to by * `AuthRequirement.provider_id`. * Example: "bookstore_auth". * @type string $issuer * Identifies the principal that issued the JWT. See * https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1 * Usually a URL or an email address. * Example: https://securetoken.google.com * Example: 1234567-compute@developer.gserviceaccount.com * @type string $jwks_uri * URL of the provider's public key set to validate signature of the JWT. See * [OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata). * Optional if the key set document: * - can be retrieved from * [OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html * of the issuer. * - can be inferred from the email domain of the issuer (e.g. a Google service account). * Example: https://www.googleapis.com/oauth2/v1/certs * @type string $audiences * The list of JWT * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3). * that are allowed to access. A JWT containing any of these audiences will * be accepted. When this setting is absent, only JWTs with audience * "https://[Service_name][google.api.Service.name]/[API_name][google.protobuf.Api.name]" * will be accepted. For example, if no audiences are in the setting, * LibraryService API will only accept JWTs with the following audience * "https://library-example.googleapis.com/google.example.library.v1.LibraryService". * Example: * audiences: bookstore_android.apps.googleusercontent.com, * bookstore_web.apps.googleusercontent.com * @type string $authorization_url * Redirect URL if JWT token is required but no present or is expired. * Implement authorizationUrl of securityDefinitions in OpenAPI spec. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Auth::initOnce(); parent::__construct($data); } /** * The unique identifier of the auth provider. It will be referred to by * `AuthRequirement.provider_id`. * Example: "bookstore_auth". * * Generated from protobuf field string id = 1; * @return string */ public function getId() { return $this->id; } /** * The unique identifier of the auth provider. It will be referred to by * `AuthRequirement.provider_id`. * Example: "bookstore_auth". * * Generated from protobuf field string id = 1; * @param string $var * @return $this */ public function setId($var) { GPBUtil::checkString($var, True); $this->id = $var; return $this; } /** * Identifies the principal that issued the JWT. See * https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1 * Usually a URL or an email address. * Example: https://securetoken.google.com * Example: 1234567-compute@developer.gserviceaccount.com * * Generated from protobuf field string issuer = 2; * @return string */ public function getIssuer() { return $this->issuer; } /** * Identifies the principal that issued the JWT. See * https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1 * Usually a URL or an email address. * Example: https://securetoken.google.com * Example: 1234567-compute@developer.gserviceaccount.com * * Generated from protobuf field string issuer = 2; * @param string $var * @return $this */ public function setIssuer($var) { GPBUtil::checkString($var, True); $this->issuer = $var; return $this; } /** * URL of the provider's public key set to validate signature of the JWT. See * [OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata). * Optional if the key set document: * - can be retrieved from * [OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html * of the issuer. * - can be inferred from the email domain of the issuer (e.g. a Google service account). * Example: https://www.googleapis.com/oauth2/v1/certs * * Generated from protobuf field string jwks_uri = 3; * @return string */ public function getJwksUri() { return $this->jwks_uri; } /** * URL of the provider's public key set to validate signature of the JWT. See * [OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata). * Optional if the key set document: * - can be retrieved from * [OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html * of the issuer. * - can be inferred from the email domain of the issuer (e.g. a Google service account). * Example: https://www.googleapis.com/oauth2/v1/certs * * Generated from protobuf field string jwks_uri = 3; * @param string $var * @return $this */ public function setJwksUri($var) { GPBUtil::checkString($var, True); $this->jwks_uri = $var; return $this; } /** * The list of JWT * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3). * that are allowed to access. A JWT containing any of these audiences will * be accepted. When this setting is absent, only JWTs with audience * "https://[Service_name][google.api.Service.name]/[API_name][google.protobuf.Api.name]" * will be accepted. For example, if no audiences are in the setting, * LibraryService API will only accept JWTs with the following audience * "https://library-example.googleapis.com/google.example.library.v1.LibraryService". * Example: * audiences: bookstore_android.apps.googleusercontent.com, * bookstore_web.apps.googleusercontent.com * * Generated from protobuf field string audiences = 4; * @return string */ public function getAudiences() { return $this->audiences; } /** * The list of JWT * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3). * that are allowed to access. A JWT containing any of these audiences will * be accepted. When this setting is absent, only JWTs with audience * "https://[Service_name][google.api.Service.name]/[API_name][google.protobuf.Api.name]" * will be accepted. For example, if no audiences are in the setting, * LibraryService API will only accept JWTs with the following audience * "https://library-example.googleapis.com/google.example.library.v1.LibraryService". * Example: * audiences: bookstore_android.apps.googleusercontent.com, * bookstore_web.apps.googleusercontent.com * * Generated from protobuf field string audiences = 4; * @param string $var * @return $this */ public function setAudiences($var) { GPBUtil::checkString($var, True); $this->audiences = $var; return $this; } /** * Redirect URL if JWT token is required but no present or is expired. * Implement authorizationUrl of securityDefinitions in OpenAPI spec. * * Generated from protobuf field string authorization_url = 5; * @return string */ public function getAuthorizationUrl() { return $this->authorization_url; } /** * Redirect URL if JWT token is required but no present or is expired. * Implement authorizationUrl of securityDefinitions in OpenAPI spec. * * Generated from protobuf field string authorization_url = 5; * @param string $var * @return $this */ public function setAuthorizationUrl($var) { GPBUtil::checkString($var, True); $this->authorization_url = $var; return $this; } } src/Api/AuthRequirement.php000064400000014363151742727570011727 0ustar00google.api.AuthRequirement */ class AuthRequirement extends \Google\Protobuf\Internal\Message { /** * [id][google.api.AuthProvider.id] from authentication provider. * Example: * provider_id: bookstore_auth * * Generated from protobuf field string provider_id = 1; */ private $provider_id = ''; /** * NOTE: This will be deprecated soon, once AuthProvider.audiences is * implemented and accepted in all the runtime components. * The list of JWT * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3). * that are allowed to access. A JWT containing any of these audiences will * be accepted. When this setting is absent, only JWTs with audience * "https://[Service_name][google.api.Service.name]/[API_name][google.protobuf.Api.name]" * will be accepted. For example, if no audiences are in the setting, * LibraryService API will only accept JWTs with the following audience * "https://library-example.googleapis.com/google.example.library.v1.LibraryService". * Example: * audiences: bookstore_android.apps.googleusercontent.com, * bookstore_web.apps.googleusercontent.com * * Generated from protobuf field string audiences = 2; */ private $audiences = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $provider_id * [id][google.api.AuthProvider.id] from authentication provider. * Example: * provider_id: bookstore_auth * @type string $audiences * NOTE: This will be deprecated soon, once AuthProvider.audiences is * implemented and accepted in all the runtime components. * The list of JWT * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3). * that are allowed to access. A JWT containing any of these audiences will * be accepted. When this setting is absent, only JWTs with audience * "https://[Service_name][google.api.Service.name]/[API_name][google.protobuf.Api.name]" * will be accepted. For example, if no audiences are in the setting, * LibraryService API will only accept JWTs with the following audience * "https://library-example.googleapis.com/google.example.library.v1.LibraryService". * Example: * audiences: bookstore_android.apps.googleusercontent.com, * bookstore_web.apps.googleusercontent.com * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Auth::initOnce(); parent::__construct($data); } /** * [id][google.api.AuthProvider.id] from authentication provider. * Example: * provider_id: bookstore_auth * * Generated from protobuf field string provider_id = 1; * @return string */ public function getProviderId() { return $this->provider_id; } /** * [id][google.api.AuthProvider.id] from authentication provider. * Example: * provider_id: bookstore_auth * * Generated from protobuf field string provider_id = 1; * @param string $var * @return $this */ public function setProviderId($var) { GPBUtil::checkString($var, True); $this->provider_id = $var; return $this; } /** * NOTE: This will be deprecated soon, once AuthProvider.audiences is * implemented and accepted in all the runtime components. * The list of JWT * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3). * that are allowed to access. A JWT containing any of these audiences will * be accepted. When this setting is absent, only JWTs with audience * "https://[Service_name][google.api.Service.name]/[API_name][google.protobuf.Api.name]" * will be accepted. For example, if no audiences are in the setting, * LibraryService API will only accept JWTs with the following audience * "https://library-example.googleapis.com/google.example.library.v1.LibraryService". * Example: * audiences: bookstore_android.apps.googleusercontent.com, * bookstore_web.apps.googleusercontent.com * * Generated from protobuf field string audiences = 2; * @return string */ public function getAudiences() { return $this->audiences; } /** * NOTE: This will be deprecated soon, once AuthProvider.audiences is * implemented and accepted in all the runtime components. * The list of JWT * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3). * that are allowed to access. A JWT containing any of these audiences will * be accepted. When this setting is absent, only JWTs with audience * "https://[Service_name][google.api.Service.name]/[API_name][google.protobuf.Api.name]" * will be accepted. For example, if no audiences are in the setting, * LibraryService API will only accept JWTs with the following audience * "https://library-example.googleapis.com/google.example.library.v1.LibraryService". * Example: * audiences: bookstore_android.apps.googleusercontent.com, * bookstore_web.apps.googleusercontent.com * * Generated from protobuf field string audiences = 2; * @param string $var * @return $this */ public function setAudiences($var) { GPBUtil::checkString($var, True); $this->audiences = $var; return $this; } } src/Api/Authentication.php000064400000007666151742727570011574 0ustar00google.api.Authentication */ class Authentication extends \Google\Protobuf\Internal\Message { /** * A list of authentication rules that apply to individual API methods. * **NOTE:** All service configuration rules follow "last one wins" order. * * Generated from protobuf field repeated .google.api.AuthenticationRule rules = 3; */ private $rules; /** * Defines a set of authentication providers that a service supports. * * Generated from protobuf field repeated .google.api.AuthProvider providers = 4; */ private $providers; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Google\Api\AuthenticationRule[]|\Google\Protobuf\Internal\RepeatedField $rules * A list of authentication rules that apply to individual API methods. * **NOTE:** All service configuration rules follow "last one wins" order. * @type \Google\Api\AuthProvider[]|\Google\Protobuf\Internal\RepeatedField $providers * Defines a set of authentication providers that a service supports. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Auth::initOnce(); parent::__construct($data); } /** * A list of authentication rules that apply to individual API methods. * **NOTE:** All service configuration rules follow "last one wins" order. * * Generated from protobuf field repeated .google.api.AuthenticationRule rules = 3; * @return \Google\Protobuf\Internal\RepeatedField */ public function getRules() { return $this->rules; } /** * A list of authentication rules that apply to individual API methods. * **NOTE:** All service configuration rules follow "last one wins" order. * * Generated from protobuf field repeated .google.api.AuthenticationRule rules = 3; * @param \Google\Api\AuthenticationRule[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setRules($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\AuthenticationRule::class); $this->rules = $arr; return $this; } /** * Defines a set of authentication providers that a service supports. * * Generated from protobuf field repeated .google.api.AuthProvider providers = 4; * @return \Google\Protobuf\Internal\RepeatedField */ public function getProviders() { return $this->providers; } /** * Defines a set of authentication providers that a service supports. * * Generated from protobuf field repeated .google.api.AuthProvider providers = 4; * @param \Google\Api\AuthProvider[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setProviders($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\AuthProvider::class); $this->providers = $arr; return $this; } } src/Api/AuthenticationRule.php000064400000012740151742727570012411 0ustar00google.api.AuthenticationRule */ class AuthenticationRule extends \Google\Protobuf\Internal\Message { /** * Selects the methods to which this rule applies. * Refer to [selector][google.api.DocumentationRule.selector] for syntax details. * * Generated from protobuf field string selector = 1; */ private $selector = ''; /** * The requirements for OAuth credentials. * * Generated from protobuf field .google.api.OAuthRequirements oauth = 2; */ private $oauth = null; /** * If true, the service accepts API keys without any other credential. * * Generated from protobuf field bool allow_without_credential = 5; */ private $allow_without_credential = false; /** * Requirements for additional authentication providers. * * Generated from protobuf field repeated .google.api.AuthRequirement requirements = 7; */ private $requirements; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $selector * Selects the methods to which this rule applies. * Refer to [selector][google.api.DocumentationRule.selector] for syntax details. * @type \Google\Api\OAuthRequirements $oauth * The requirements for OAuth credentials. * @type bool $allow_without_credential * If true, the service accepts API keys without any other credential. * @type \Google\Api\AuthRequirement[]|\Google\Protobuf\Internal\RepeatedField $requirements * Requirements for additional authentication providers. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Auth::initOnce(); parent::__construct($data); } /** * Selects the methods to which this rule applies. * Refer to [selector][google.api.DocumentationRule.selector] for syntax details. * * Generated from protobuf field string selector = 1; * @return string */ public function getSelector() { return $this->selector; } /** * Selects the methods to which this rule applies. * Refer to [selector][google.api.DocumentationRule.selector] for syntax details. * * Generated from protobuf field string selector = 1; * @param string $var * @return $this */ public function setSelector($var) { GPBUtil::checkString($var, True); $this->selector = $var; return $this; } /** * The requirements for OAuth credentials. * * Generated from protobuf field .google.api.OAuthRequirements oauth = 2; * @return \Google\Api\OAuthRequirements */ public function getOauth() { return $this->oauth; } /** * The requirements for OAuth credentials. * * Generated from protobuf field .google.api.OAuthRequirements oauth = 2; * @param \Google\Api\OAuthRequirements $var * @return $this */ public function setOauth($var) { GPBUtil::checkMessage($var, \Google\Api\OAuthRequirements::class); $this->oauth = $var; return $this; } /** * If true, the service accepts API keys without any other credential. * * Generated from protobuf field bool allow_without_credential = 5; * @return bool */ public function getAllowWithoutCredential() { return $this->allow_without_credential; } /** * If true, the service accepts API keys without any other credential. * * Generated from protobuf field bool allow_without_credential = 5; * @param bool $var * @return $this */ public function setAllowWithoutCredential($var) { GPBUtil::checkBool($var); $this->allow_without_credential = $var; return $this; } /** * Requirements for additional authentication providers. * * Generated from protobuf field repeated .google.api.AuthRequirement requirements = 7; * @return \Google\Protobuf\Internal\RepeatedField */ public function getRequirements() { return $this->requirements; } /** * Requirements for additional authentication providers. * * Generated from protobuf field repeated .google.api.AuthRequirement requirements = 7; * @param \Google\Api\AuthRequirement[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setRequirements($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\AuthRequirement::class); $this->requirements = $arr; return $this; } } src/Api/Backend.php000064400000004360151742727570010130 0ustar00google.api.Backend */ class Backend extends \Google\Protobuf\Internal\Message { /** * A list of API backend rules that apply to individual API methods. * **NOTE:** All service configuration rules follow "last one wins" order. * * Generated from protobuf field repeated .google.api.BackendRule rules = 1; */ private $rules; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Google\Api\BackendRule[]|\Google\Protobuf\Internal\RepeatedField $rules * A list of API backend rules that apply to individual API methods. * **NOTE:** All service configuration rules follow "last one wins" order. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Backend::initOnce(); parent::__construct($data); } /** * A list of API backend rules that apply to individual API methods. * **NOTE:** All service configuration rules follow "last one wins" order. * * Generated from protobuf field repeated .google.api.BackendRule rules = 1; * @return \Google\Protobuf\Internal\RepeatedField */ public function getRules() { return $this->rules; } /** * A list of API backend rules that apply to individual API methods. * **NOTE:** All service configuration rules follow "last one wins" order. * * Generated from protobuf field repeated .google.api.BackendRule rules = 1; * @param \Google\Api\BackendRule[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setRules($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\BackendRule::class); $this->rules = $arr; return $this; } } src/Api/BackendRule.php000064400000025046151742727570010764 0ustar00google.api.BackendRule */ class BackendRule extends \Google\Protobuf\Internal\Message { /** * Selects the methods to which this rule applies. * Refer to [selector][google.api.DocumentationRule.selector] for syntax details. * * Generated from protobuf field string selector = 1; */ private $selector = ''; /** * The address of the API backend. * * Generated from protobuf field string address = 2; */ private $address = ''; /** * The number of seconds to wait for a response from a request. The default * varies based on the request protocol and deployment environment. * * Generated from protobuf field double deadline = 3; */ private $deadline = 0.0; /** * Minimum deadline in seconds needed for this method. Calls having deadline * value lower than this will be rejected. * * Generated from protobuf field double min_deadline = 4; */ private $min_deadline = 0.0; /** * The number of seconds to wait for the completion of a long running * operation. The default is no deadline. * * Generated from protobuf field double operation_deadline = 5; */ private $operation_deadline = 0.0; /** * Generated from protobuf field .google.api.BackendRule.PathTranslation path_translation = 6; */ private $path_translation = 0; protected $authentication; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $selector * Selects the methods to which this rule applies. * Refer to [selector][google.api.DocumentationRule.selector] for syntax details. * @type string $address * The address of the API backend. * @type float $deadline * The number of seconds to wait for a response from a request. The default * varies based on the request protocol and deployment environment. * @type float $min_deadline * Minimum deadline in seconds needed for this method. Calls having deadline * value lower than this will be rejected. * @type float $operation_deadline * The number of seconds to wait for the completion of a long running * operation. The default is no deadline. * @type int $path_translation * @type string $jwt_audience * The JWT audience is used when generating a JWT ID token for the backend. * This ID token will be added in the HTTP "authorization" header, and sent * to the backend. * @type bool $disable_auth * When disable_auth is false, a JWT ID token will be generated with the * value from [BackendRule.address][google.api.BackendRule.address] as jwt_audience, overrode to the HTTP * "Authorization" request header and sent to the backend. * When disable_auth is true, a JWT ID token won't be generated and the * original "Authorization" HTTP header will be preserved. If the header is * used to carry the original token and is expected by the backend, this * field must be set to true to preserve the header. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Backend::initOnce(); parent::__construct($data); } /** * Selects the methods to which this rule applies. * Refer to [selector][google.api.DocumentationRule.selector] for syntax details. * * Generated from protobuf field string selector = 1; * @return string */ public function getSelector() { return $this->selector; } /** * Selects the methods to which this rule applies. * Refer to [selector][google.api.DocumentationRule.selector] for syntax details. * * Generated from protobuf field string selector = 1; * @param string $var * @return $this */ public function setSelector($var) { GPBUtil::checkString($var, True); $this->selector = $var; return $this; } /** * The address of the API backend. * * Generated from protobuf field string address = 2; * @return string */ public function getAddress() { return $this->address; } /** * The address of the API backend. * * Generated from protobuf field string address = 2; * @param string $var * @return $this */ public function setAddress($var) { GPBUtil::checkString($var, True); $this->address = $var; return $this; } /** * The number of seconds to wait for a response from a request. The default * varies based on the request protocol and deployment environment. * * Generated from protobuf field double deadline = 3; * @return float */ public function getDeadline() { return $this->deadline; } /** * The number of seconds to wait for a response from a request. The default * varies based on the request protocol and deployment environment. * * Generated from protobuf field double deadline = 3; * @param float $var * @return $this */ public function setDeadline($var) { GPBUtil::checkDouble($var); $this->deadline = $var; return $this; } /** * Minimum deadline in seconds needed for this method. Calls having deadline * value lower than this will be rejected. * * Generated from protobuf field double min_deadline = 4; * @return float */ public function getMinDeadline() { return $this->min_deadline; } /** * Minimum deadline in seconds needed for this method. Calls having deadline * value lower than this will be rejected. * * Generated from protobuf field double min_deadline = 4; * @param float $var * @return $this */ public function setMinDeadline($var) { GPBUtil::checkDouble($var); $this->min_deadline = $var; return $this; } /** * The number of seconds to wait for the completion of a long running * operation. The default is no deadline. * * Generated from protobuf field double operation_deadline = 5; * @return float */ public function getOperationDeadline() { return $this->operation_deadline; } /** * The number of seconds to wait for the completion of a long running * operation. The default is no deadline. * * Generated from protobuf field double operation_deadline = 5; * @param float $var * @return $this */ public function setOperationDeadline($var) { GPBUtil::checkDouble($var); $this->operation_deadline = $var; return $this; } /** * Generated from protobuf field .google.api.BackendRule.PathTranslation path_translation = 6; * @return int */ public function getPathTranslation() { return $this->path_translation; } /** * Generated from protobuf field .google.api.BackendRule.PathTranslation path_translation = 6; * @param int $var * @return $this */ public function setPathTranslation($var) { GPBUtil::checkEnum($var, \Google\Api\BackendRule_PathTranslation::class); $this->path_translation = $var; return $this; } /** * The JWT audience is used when generating a JWT ID token for the backend. * This ID token will be added in the HTTP "authorization" header, and sent * to the backend. * * Generated from protobuf field string jwt_audience = 7; * @return string */ public function getJwtAudience() { return $this->readOneof(7); } /** * The JWT audience is used when generating a JWT ID token for the backend. * This ID token will be added in the HTTP "authorization" header, and sent * to the backend. * * Generated from protobuf field string jwt_audience = 7; * @param string $var * @return $this */ public function setJwtAudience($var) { GPBUtil::checkString($var, True); $this->writeOneof(7, $var); return $this; } /** * When disable_auth is false, a JWT ID token will be generated with the * value from [BackendRule.address][google.api.BackendRule.address] as jwt_audience, overrode to the HTTP * "Authorization" request header and sent to the backend. * When disable_auth is true, a JWT ID token won't be generated and the * original "Authorization" HTTP header will be preserved. If the header is * used to carry the original token and is expected by the backend, this * field must be set to true to preserve the header. * * Generated from protobuf field bool disable_auth = 8; * @return bool */ public function getDisableAuth() { return $this->readOneof(8); } /** * When disable_auth is false, a JWT ID token will be generated with the * value from [BackendRule.address][google.api.BackendRule.address] as jwt_audience, overrode to the HTTP * "Authorization" request header and sent to the backend. * When disable_auth is true, a JWT ID token won't be generated and the * original "Authorization" HTTP header will be preserved. If the header is * used to carry the original token and is expected by the backend, this * field must be set to true to preserve the header. * * Generated from protobuf field bool disable_auth = 8; * @param bool $var * @return $this */ public function setDisableAuth($var) { GPBUtil::checkBool($var); $this->writeOneof(8, $var); return $this; } /** * @return string */ public function getAuthentication() { return $this->whichOneof("authentication"); } } src/Api/BackendRule/PathTranslation.php000064400000007230151742727570014072 0ustar00google.api.BackendRule.PathTranslation */ class PathTranslation { /** * Generated from protobuf enum PATH_TRANSLATION_UNSPECIFIED = 0; */ const PATH_TRANSLATION_UNSPECIFIED = 0; /** * Use the backend address as-is, with no modification to the path. If the * URL pattern contains variables, the variable names and values will be * appended to the query string. If a query string parameter and a URL * pattern variable have the same name, this may result in duplicate keys in * the query string. * # Examples * Given the following operation config: * Method path: /api/company/{cid}/user/{uid} * Backend address: https://example.cloudfunctions.net/getUser * Requests to the following request paths will call the backend at the * translated path: * Request path: /api/company/widgetworks/user/johndoe * Translated: * https://example.cloudfunctions.net/getUser?cid=widgetworks&uid=johndoe * Request path: /api/company/widgetworks/user/johndoe?timezone=EST * Translated: * https://example.cloudfunctions.net/getUser?timezone=EST&cid=widgetworks&uid=johndoe * * Generated from protobuf enum CONSTANT_ADDRESS = 1; */ const CONSTANT_ADDRESS = 1; /** * The request path will be appended to the backend address. * # Examples * Given the following operation config: * Method path: /api/company/{cid}/user/{uid} * Backend address: https://example.appspot.com * Requests to the following request paths will call the backend at the * translated path: * Request path: /api/company/widgetworks/user/johndoe * Translated: * https://example.appspot.com/api/company/widgetworks/user/johndoe * Request path: /api/company/widgetworks/user/johndoe?timezone=EST * Translated: * https://example.appspot.com/api/company/widgetworks/user/johndoe?timezone=EST * * Generated from protobuf enum APPEND_PATH_TO_ADDRESS = 2; */ const APPEND_PATH_TO_ADDRESS = 2; private static $valueToName = [ self::PATH_TRANSLATION_UNSPECIFIED => 'PATH_TRANSLATION_UNSPECIFIED', self::CONSTANT_ADDRESS => 'CONSTANT_ADDRESS', self::APPEND_PATH_TO_ADDRESS => 'APPEND_PATH_TO_ADDRESS', ]; public static function name($value) { if (!isset(self::$valueToName[$value])) { throw new UnexpectedValueException(sprintf( 'Enum %s has no name defined for value %s', __CLASS__, $value)); } return self::$valueToName[$value]; } public static function value($name) { $const = __CLASS__ . '::' . strtoupper($name); if (!defined($const)) { throw new UnexpectedValueException(sprintf( 'Enum %s has no value defined for name %s', __CLASS__, $name)); } return constant($const); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(PathTranslation::class, \Google\Api\BackendRule_PathTranslation::class); src/Api/BackendRule_PathTranslation.php000064400000001034151742727570014146 0ustar00google.api.Billing */ class Billing extends \Google\Protobuf\Internal\Message { /** * Billing configurations for sending metrics to the consumer project. * There can be multiple consumer destinations per service, each one must have * a different monitored resource type. A metric can be used in at most * one consumer destination. * * Generated from protobuf field repeated .google.api.Billing.BillingDestination consumer_destinations = 8; */ private $consumer_destinations; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Google\Api\Billing\BillingDestination[]|\Google\Protobuf\Internal\RepeatedField $consumer_destinations * Billing configurations for sending metrics to the consumer project. * There can be multiple consumer destinations per service, each one must have * a different monitored resource type. A metric can be used in at most * one consumer destination. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Billing::initOnce(); parent::__construct($data); } /** * Billing configurations for sending metrics to the consumer project. * There can be multiple consumer destinations per service, each one must have * a different monitored resource type. A metric can be used in at most * one consumer destination. * * Generated from protobuf field repeated .google.api.Billing.BillingDestination consumer_destinations = 8; * @return \Google\Protobuf\Internal\RepeatedField */ public function getConsumerDestinations() { return $this->consumer_destinations; } /** * Billing configurations for sending metrics to the consumer project. * There can be multiple consumer destinations per service, each one must have * a different monitored resource type. A metric can be used in at most * one consumer destination. * * Generated from protobuf field repeated .google.api.Billing.BillingDestination consumer_destinations = 8; * @param \Google\Api\Billing\BillingDestination[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setConsumerDestinations($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Billing\BillingDestination::class); $this->consumer_destinations = $arr; return $this; } } src/Api/Billing/BillingDestination.php000064400000007350151742727570013745 0ustar00google.api.Billing.BillingDestination */ class BillingDestination extends \Google\Protobuf\Internal\Message { /** * The monitored resource type. The type must be defined in * [Service.monitored_resources][google.api.Service.monitored_resources] section. * * Generated from protobuf field string monitored_resource = 1; */ private $monitored_resource = ''; /** * Names of the metrics to report to this billing destination. * Each name must be defined in [Service.metrics][google.api.Service.metrics] section. * * Generated from protobuf field repeated string metrics = 2; */ private $metrics; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $monitored_resource * The monitored resource type. The type must be defined in * [Service.monitored_resources][google.api.Service.monitored_resources] section. * @type string[]|\Google\Protobuf\Internal\RepeatedField $metrics * Names of the metrics to report to this billing destination. * Each name must be defined in [Service.metrics][google.api.Service.metrics] section. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Billing::initOnce(); parent::__construct($data); } /** * The monitored resource type. The type must be defined in * [Service.monitored_resources][google.api.Service.monitored_resources] section. * * Generated from protobuf field string monitored_resource = 1; * @return string */ public function getMonitoredResource() { return $this->monitored_resource; } /** * The monitored resource type. The type must be defined in * [Service.monitored_resources][google.api.Service.monitored_resources] section. * * Generated from protobuf field string monitored_resource = 1; * @param string $var * @return $this */ public function setMonitoredResource($var) { GPBUtil::checkString($var, True); $this->monitored_resource = $var; return $this; } /** * Names of the metrics to report to this billing destination. * Each name must be defined in [Service.metrics][google.api.Service.metrics] section. * * Generated from protobuf field repeated string metrics = 2; * @return \Google\Protobuf\Internal\RepeatedField */ public function getMetrics() { return $this->metrics; } /** * Names of the metrics to report to this billing destination. * Each name must be defined in [Service.metrics][google.api.Service.metrics] section. * * Generated from protobuf field repeated string metrics = 2; * @param string[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setMetrics($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); $this->metrics = $arr; return $this; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(BillingDestination::class, \Google\Api\Billing_BillingDestination::class); src/Api/Billing_BillingDestination.php000064400000001027151742727570014020 0ustar00google.api.ChangeType */ class ChangeType { /** * No value was provided. * * Generated from protobuf enum CHANGE_TYPE_UNSPECIFIED = 0; */ const CHANGE_TYPE_UNSPECIFIED = 0; /** * The changed object exists in the 'new' service configuration, but not * in the 'old' service configuration. * * Generated from protobuf enum ADDED = 1; */ const ADDED = 1; /** * The changed object exists in the 'old' service configuration, but not * in the 'new' service configuration. * * Generated from protobuf enum REMOVED = 2; */ const REMOVED = 2; /** * The changed object exists in both service configurations, but its value * is different. * * Generated from protobuf enum MODIFIED = 3; */ const MODIFIED = 3; private static $valueToName = [ self::CHANGE_TYPE_UNSPECIFIED => 'CHANGE_TYPE_UNSPECIFIED', self::ADDED => 'ADDED', self::REMOVED => 'REMOVED', self::MODIFIED => 'MODIFIED', ]; public static function name($value) { if (!isset(self::$valueToName[$value])) { throw new UnexpectedValueException(sprintf( 'Enum %s has no name defined for value %s', __CLASS__, $value)); } return self::$valueToName[$value]; } public static function value($name) { $const = __CLASS__ . '::' . strtoupper($name); if (!defined($const)) { throw new UnexpectedValueException(sprintf( 'Enum %s has no value defined for name %s', __CLASS__, $name)); } return constant($const); } } src/Api/ConfigChange.php000064400000021220151742727570011106 0ustar00google.api.ConfigChange */ class ConfigChange extends \Google\Protobuf\Internal\Message { /** * Object hierarchy path to the change, with levels separated by a '.' * character. For repeated fields, an applicable unique identifier field is * used for the index (usually selector, name, or id). For maps, the term * 'key' is used. If the field has no unique identifier, the numeric index * is used. * Examples: * - visibility.rules[selector=="google.LibraryService.CreateBook"].restriction * - quota.metric_rules[selector=="google"].metric_costs[key=="reads"].value * - logging.producer_destinations[0] * * Generated from protobuf field string element = 1; */ private $element = ''; /** * Value of the changed object in the old Service configuration, * in JSON format. This field will not be populated if ChangeType == ADDED. * * Generated from protobuf field string old_value = 2; */ private $old_value = ''; /** * Value of the changed object in the new Service configuration, * in JSON format. This field will not be populated if ChangeType == REMOVED. * * Generated from protobuf field string new_value = 3; */ private $new_value = ''; /** * The type for this change, either ADDED, REMOVED, or MODIFIED. * * Generated from protobuf field .google.api.ChangeType change_type = 4; */ private $change_type = 0; /** * Collection of advice provided for this change, useful for determining the * possible impact of this change. * * Generated from protobuf field repeated .google.api.Advice advices = 5; */ private $advices; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $element * Object hierarchy path to the change, with levels separated by a '.' * character. For repeated fields, an applicable unique identifier field is * used for the index (usually selector, name, or id). For maps, the term * 'key' is used. If the field has no unique identifier, the numeric index * is used. * Examples: * - visibility.rules[selector=="google.LibraryService.CreateBook"].restriction * - quota.metric_rules[selector=="google"].metric_costs[key=="reads"].value * - logging.producer_destinations[0] * @type string $old_value * Value of the changed object in the old Service configuration, * in JSON format. This field will not be populated if ChangeType == ADDED. * @type string $new_value * Value of the changed object in the new Service configuration, * in JSON format. This field will not be populated if ChangeType == REMOVED. * @type int $change_type * The type for this change, either ADDED, REMOVED, or MODIFIED. * @type \Google\Api\Advice[]|\Google\Protobuf\Internal\RepeatedField $advices * Collection of advice provided for this change, useful for determining the * possible impact of this change. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\ConfigChange::initOnce(); parent::__construct($data); } /** * Object hierarchy path to the change, with levels separated by a '.' * character. For repeated fields, an applicable unique identifier field is * used for the index (usually selector, name, or id). For maps, the term * 'key' is used. If the field has no unique identifier, the numeric index * is used. * Examples: * - visibility.rules[selector=="google.LibraryService.CreateBook"].restriction * - quota.metric_rules[selector=="google"].metric_costs[key=="reads"].value * - logging.producer_destinations[0] * * Generated from protobuf field string element = 1; * @return string */ public function getElement() { return $this->element; } /** * Object hierarchy path to the change, with levels separated by a '.' * character. For repeated fields, an applicable unique identifier field is * used for the index (usually selector, name, or id). For maps, the term * 'key' is used. If the field has no unique identifier, the numeric index * is used. * Examples: * - visibility.rules[selector=="google.LibraryService.CreateBook"].restriction * - quota.metric_rules[selector=="google"].metric_costs[key=="reads"].value * - logging.producer_destinations[0] * * Generated from protobuf field string element = 1; * @param string $var * @return $this */ public function setElement($var) { GPBUtil::checkString($var, True); $this->element = $var; return $this; } /** * Value of the changed object in the old Service configuration, * in JSON format. This field will not be populated if ChangeType == ADDED. * * Generated from protobuf field string old_value = 2; * @return string */ public function getOldValue() { return $this->old_value; } /** * Value of the changed object in the old Service configuration, * in JSON format. This field will not be populated if ChangeType == ADDED. * * Generated from protobuf field string old_value = 2; * @param string $var * @return $this */ public function setOldValue($var) { GPBUtil::checkString($var, True); $this->old_value = $var; return $this; } /** * Value of the changed object in the new Service configuration, * in JSON format. This field will not be populated if ChangeType == REMOVED. * * Generated from protobuf field string new_value = 3; * @return string */ public function getNewValue() { return $this->new_value; } /** * Value of the changed object in the new Service configuration, * in JSON format. This field will not be populated if ChangeType == REMOVED. * * Generated from protobuf field string new_value = 3; * @param string $var * @return $this */ public function setNewValue($var) { GPBUtil::checkString($var, True); $this->new_value = $var; return $this; } /** * The type for this change, either ADDED, REMOVED, or MODIFIED. * * Generated from protobuf field .google.api.ChangeType change_type = 4; * @return int */ public function getChangeType() { return $this->change_type; } /** * The type for this change, either ADDED, REMOVED, or MODIFIED. * * Generated from protobuf field .google.api.ChangeType change_type = 4; * @param int $var * @return $this */ public function setChangeType($var) { GPBUtil::checkEnum($var, \Google\Api\ChangeType::class); $this->change_type = $var; return $this; } /** * Collection of advice provided for this change, useful for determining the * possible impact of this change. * * Generated from protobuf field repeated .google.api.Advice advices = 5; * @return \Google\Protobuf\Internal\RepeatedField */ public function getAdvices() { return $this->advices; } /** * Collection of advice provided for this change, useful for determining the * possible impact of this change. * * Generated from protobuf field repeated .google.api.Advice advices = 5; * @param \Google\Api\Advice[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setAdvices($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Advice::class); $this->advices = $arr; return $this; } } src/Api/Context.php000064400000005167151742727570010233 0ustar00google.api.Context */ class Context extends \Google\Protobuf\Internal\Message { /** * A list of RPC context rules that apply to individual API methods. * **NOTE:** All service configuration rules follow "last one wins" order. * * Generated from protobuf field repeated .google.api.ContextRule rules = 1; */ private $rules; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Google\Api\ContextRule[]|\Google\Protobuf\Internal\RepeatedField $rules * A list of RPC context rules that apply to individual API methods. * **NOTE:** All service configuration rules follow "last one wins" order. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Context::initOnce(); parent::__construct($data); } /** * A list of RPC context rules that apply to individual API methods. * **NOTE:** All service configuration rules follow "last one wins" order. * * Generated from protobuf field repeated .google.api.ContextRule rules = 1; * @return \Google\Protobuf\Internal\RepeatedField */ public function getRules() { return $this->rules; } /** * A list of RPC context rules that apply to individual API methods. * **NOTE:** All service configuration rules follow "last one wins" order. * * Generated from protobuf field repeated .google.api.ContextRule rules = 1; * @param \Google\Api\ContextRule[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setRules($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\ContextRule::class); $this->rules = $arr; return $this; } } src/Api/ContextRule.php000064400000010045151742727570011052 0ustar00google.api.ContextRule */ class ContextRule extends \Google\Protobuf\Internal\Message { /** * Selects the methods to which this rule applies. * Refer to [selector][google.api.DocumentationRule.selector] for syntax details. * * Generated from protobuf field string selector = 1; */ private $selector = ''; /** * A list of full type names of requested contexts. * * Generated from protobuf field repeated string requested = 2; */ private $requested; /** * A list of full type names of provided contexts. * * Generated from protobuf field repeated string provided = 3; */ private $provided; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $selector * Selects the methods to which this rule applies. * Refer to [selector][google.api.DocumentationRule.selector] for syntax details. * @type string[]|\Google\Protobuf\Internal\RepeatedField $requested * A list of full type names of requested contexts. * @type string[]|\Google\Protobuf\Internal\RepeatedField $provided * A list of full type names of provided contexts. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Context::initOnce(); parent::__construct($data); } /** * Selects the methods to which this rule applies. * Refer to [selector][google.api.DocumentationRule.selector] for syntax details. * * Generated from protobuf field string selector = 1; * @return string */ public function getSelector() { return $this->selector; } /** * Selects the methods to which this rule applies. * Refer to [selector][google.api.DocumentationRule.selector] for syntax details. * * Generated from protobuf field string selector = 1; * @param string $var * @return $this */ public function setSelector($var) { GPBUtil::checkString($var, True); $this->selector = $var; return $this; } /** * A list of full type names of requested contexts. * * Generated from protobuf field repeated string requested = 2; * @return \Google\Protobuf\Internal\RepeatedField */ public function getRequested() { return $this->requested; } /** * A list of full type names of requested contexts. * * Generated from protobuf field repeated string requested = 2; * @param string[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setRequested($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); $this->requested = $arr; return $this; } /** * A list of full type names of provided contexts. * * Generated from protobuf field repeated string provided = 3; * @return \Google\Protobuf\Internal\RepeatedField */ public function getProvided() { return $this->provided; } /** * A list of full type names of provided contexts. * * Generated from protobuf field repeated string provided = 3; * @param string[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setProvided($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); $this->provided = $arr; return $this; } } src/Api/Control.php000064400000004013151742727570010214 0ustar00google.api.Control */ class Control extends \Google\Protobuf\Internal\Message { /** * The service control environment to use. If empty, no control plane * feature (like quota and billing) will be enabled. * * Generated from protobuf field string environment = 1; */ private $environment = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $environment * The service control environment to use. If empty, no control plane * feature (like quota and billing) will be enabled. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Control::initOnce(); parent::__construct($data); } /** * The service control environment to use. If empty, no control plane * feature (like quota and billing) will be enabled. * * Generated from protobuf field string environment = 1; * @return string */ public function getEnvironment() { return $this->environment; } /** * The service control environment to use. If empty, no control plane * feature (like quota and billing) will be enabled. * * Generated from protobuf field string environment = 1; * @param string $var * @return $this */ public function setEnvironment($var) { GPBUtil::checkString($var, True); $this->environment = $var; return $this; } } src/Api/CustomHttpPattern.php000064400000004426151742727570012254 0ustar00google.api.CustomHttpPattern */ class CustomHttpPattern extends \Google\Protobuf\Internal\Message { /** * The name of this custom HTTP verb. * * Generated from protobuf field string kind = 1; */ private $kind = ''; /** * The path matched by this custom verb. * * Generated from protobuf field string path = 2; */ private $path = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $kind * The name of this custom HTTP verb. * @type string $path * The path matched by this custom verb. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Http::initOnce(); parent::__construct($data); } /** * The name of this custom HTTP verb. * * Generated from protobuf field string kind = 1; * @return string */ public function getKind() { return $this->kind; } /** * The name of this custom HTTP verb. * * Generated from protobuf field string kind = 1; * @param string $var * @return $this */ public function setKind($var) { GPBUtil::checkString($var, True); $this->kind = $var; return $this; } /** * The path matched by this custom verb. * * Generated from protobuf field string path = 2; * @return string */ public function getPath() { return $this->path; } /** * The path matched by this custom verb. * * Generated from protobuf field string path = 2; * @param string $var * @return $this */ public function setPath($var) { GPBUtil::checkString($var, True); $this->path = $var; return $this; } } src/Api/Distribution.php000064400000035173151742727570011266 0ustar00google.api.Distribution */ class Distribution extends \Google\Protobuf\Internal\Message { /** * The number of values in the population. Must be non-negative. This value * must equal the sum of the values in `bucket_counts` if a histogram is * provided. * * Generated from protobuf field int64 count = 1; */ private $count = 0; /** * The arithmetic mean of the values in the population. If `count` is zero * then this field must be zero. * * Generated from protobuf field double mean = 2; */ private $mean = 0.0; /** * The sum of squared deviations from the mean of the values in the * population. For values x_i this is: * Sum[i=1..n]((x_i - mean)^2) * Knuth, "The Art of Computer Programming", Vol. 2, page 323, 3rd edition * describes Welford's method for accumulating this sum in one pass. * If `count` is zero then this field must be zero. * * Generated from protobuf field double sum_of_squared_deviation = 3; */ private $sum_of_squared_deviation = 0.0; /** * If specified, contains the range of the population values. The field * must not be present if the `count` is zero. * * Generated from protobuf field .google.api.Distribution.Range range = 4; */ private $range = null; /** * Defines the histogram bucket boundaries. If the distribution does not * contain a histogram, then omit this field. * * Generated from protobuf field .google.api.Distribution.BucketOptions bucket_options = 6; */ private $bucket_options = null; /** * The number of values in each bucket of the histogram, as described in * `bucket_options`. If the distribution does not have a histogram, then omit * this field. If there is a histogram, then the sum of the values in * `bucket_counts` must equal the value in the `count` field of the * distribution. * If present, `bucket_counts` should contain N values, where N is the number * of buckets specified in `bucket_options`. If you supply fewer than N * values, the remaining values are assumed to be 0. * The order of the values in `bucket_counts` follows the bucket numbering * schemes described for the three bucket types. The first value must be the * count for the underflow bucket (number 0). The next N-2 values are the * counts for the finite buckets (number 1 through N-2). The N'th value in * `bucket_counts` is the count for the overflow bucket (number N-1). * * Generated from protobuf field repeated int64 bucket_counts = 7; */ private $bucket_counts; /** * Must be in increasing order of `value` field. * * Generated from protobuf field repeated .google.api.Distribution.Exemplar exemplars = 10; */ private $exemplars; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int|string $count * The number of values in the population. Must be non-negative. This value * must equal the sum of the values in `bucket_counts` if a histogram is * provided. * @type float $mean * The arithmetic mean of the values in the population. If `count` is zero * then this field must be zero. * @type float $sum_of_squared_deviation * The sum of squared deviations from the mean of the values in the * population. For values x_i this is: * Sum[i=1..n]((x_i - mean)^2) * Knuth, "The Art of Computer Programming", Vol. 2, page 323, 3rd edition * describes Welford's method for accumulating this sum in one pass. * If `count` is zero then this field must be zero. * @type \Google\Api\Distribution\Range $range * If specified, contains the range of the population values. The field * must not be present if the `count` is zero. * @type \Google\Api\Distribution\BucketOptions $bucket_options * Defines the histogram bucket boundaries. If the distribution does not * contain a histogram, then omit this field. * @type int[]|string[]|\Google\Protobuf\Internal\RepeatedField $bucket_counts * The number of values in each bucket of the histogram, as described in * `bucket_options`. If the distribution does not have a histogram, then omit * this field. If there is a histogram, then the sum of the values in * `bucket_counts` must equal the value in the `count` field of the * distribution. * If present, `bucket_counts` should contain N values, where N is the number * of buckets specified in `bucket_options`. If you supply fewer than N * values, the remaining values are assumed to be 0. * The order of the values in `bucket_counts` follows the bucket numbering * schemes described for the three bucket types. The first value must be the * count for the underflow bucket (number 0). The next N-2 values are the * counts for the finite buckets (number 1 through N-2). The N'th value in * `bucket_counts` is the count for the overflow bucket (number N-1). * @type \Google\Api\Distribution\Exemplar[]|\Google\Protobuf\Internal\RepeatedField $exemplars * Must be in increasing order of `value` field. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Distribution::initOnce(); parent::__construct($data); } /** * The number of values in the population. Must be non-negative. This value * must equal the sum of the values in `bucket_counts` if a histogram is * provided. * * Generated from protobuf field int64 count = 1; * @return int|string */ public function getCount() { return $this->count; } /** * The number of values in the population. Must be non-negative. This value * must equal the sum of the values in `bucket_counts` if a histogram is * provided. * * Generated from protobuf field int64 count = 1; * @param int|string $var * @return $this */ public function setCount($var) { GPBUtil::checkInt64($var); $this->count = $var; return $this; } /** * The arithmetic mean of the values in the population. If `count` is zero * then this field must be zero. * * Generated from protobuf field double mean = 2; * @return float */ public function getMean() { return $this->mean; } /** * The arithmetic mean of the values in the population. If `count` is zero * then this field must be zero. * * Generated from protobuf field double mean = 2; * @param float $var * @return $this */ public function setMean($var) { GPBUtil::checkDouble($var); $this->mean = $var; return $this; } /** * The sum of squared deviations from the mean of the values in the * population. For values x_i this is: * Sum[i=1..n]((x_i - mean)^2) * Knuth, "The Art of Computer Programming", Vol. 2, page 323, 3rd edition * describes Welford's method for accumulating this sum in one pass. * If `count` is zero then this field must be zero. * * Generated from protobuf field double sum_of_squared_deviation = 3; * @return float */ public function getSumOfSquaredDeviation() { return $this->sum_of_squared_deviation; } /** * The sum of squared deviations from the mean of the values in the * population. For values x_i this is: * Sum[i=1..n]((x_i - mean)^2) * Knuth, "The Art of Computer Programming", Vol. 2, page 323, 3rd edition * describes Welford's method for accumulating this sum in one pass. * If `count` is zero then this field must be zero. * * Generated from protobuf field double sum_of_squared_deviation = 3; * @param float $var * @return $this */ public function setSumOfSquaredDeviation($var) { GPBUtil::checkDouble($var); $this->sum_of_squared_deviation = $var; return $this; } /** * If specified, contains the range of the population values. The field * must not be present if the `count` is zero. * * Generated from protobuf field .google.api.Distribution.Range range = 4; * @return \Google\Api\Distribution\Range */ public function getRange() { return $this->range; } /** * If specified, contains the range of the population values. The field * must not be present if the `count` is zero. * * Generated from protobuf field .google.api.Distribution.Range range = 4; * @param \Google\Api\Distribution\Range $var * @return $this */ public function setRange($var) { GPBUtil::checkMessage($var, \Google\Api\Distribution_Range::class); $this->range = $var; return $this; } /** * Defines the histogram bucket boundaries. If the distribution does not * contain a histogram, then omit this field. * * Generated from protobuf field .google.api.Distribution.BucketOptions bucket_options = 6; * @return \Google\Api\Distribution\BucketOptions */ public function getBucketOptions() { return $this->bucket_options; } /** * Defines the histogram bucket boundaries. If the distribution does not * contain a histogram, then omit this field. * * Generated from protobuf field .google.api.Distribution.BucketOptions bucket_options = 6; * @param \Google\Api\Distribution\BucketOptions $var * @return $this */ public function setBucketOptions($var) { GPBUtil::checkMessage($var, \Google\Api\Distribution_BucketOptions::class); $this->bucket_options = $var; return $this; } /** * The number of values in each bucket of the histogram, as described in * `bucket_options`. If the distribution does not have a histogram, then omit * this field. If there is a histogram, then the sum of the values in * `bucket_counts` must equal the value in the `count` field of the * distribution. * If present, `bucket_counts` should contain N values, where N is the number * of buckets specified in `bucket_options`. If you supply fewer than N * values, the remaining values are assumed to be 0. * The order of the values in `bucket_counts` follows the bucket numbering * schemes described for the three bucket types. The first value must be the * count for the underflow bucket (number 0). The next N-2 values are the * counts for the finite buckets (number 1 through N-2). The N'th value in * `bucket_counts` is the count for the overflow bucket (number N-1). * * Generated from protobuf field repeated int64 bucket_counts = 7; * @return \Google\Protobuf\Internal\RepeatedField */ public function getBucketCounts() { return $this->bucket_counts; } /** * The number of values in each bucket of the histogram, as described in * `bucket_options`. If the distribution does not have a histogram, then omit * this field. If there is a histogram, then the sum of the values in * `bucket_counts` must equal the value in the `count` field of the * distribution. * If present, `bucket_counts` should contain N values, where N is the number * of buckets specified in `bucket_options`. If you supply fewer than N * values, the remaining values are assumed to be 0. * The order of the values in `bucket_counts` follows the bucket numbering * schemes described for the three bucket types. The first value must be the * count for the underflow bucket (number 0). The next N-2 values are the * counts for the finite buckets (number 1 through N-2). The N'th value in * `bucket_counts` is the count for the overflow bucket (number N-1). * * Generated from protobuf field repeated int64 bucket_counts = 7; * @param int[]|string[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setBucketCounts($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT64); $this->bucket_counts = $arr; return $this; } /** * Must be in increasing order of `value` field. * * Generated from protobuf field repeated .google.api.Distribution.Exemplar exemplars = 10; * @return \Google\Protobuf\Internal\RepeatedField */ public function getExemplars() { return $this->exemplars; } /** * Must be in increasing order of `value` field. * * Generated from protobuf field repeated .google.api.Distribution.Exemplar exemplars = 10; * @param \Google\Api\Distribution\Exemplar[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setExemplars($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Distribution\Exemplar::class); $this->exemplars = $arr; return $this; } } src/Api/Distribution/BucketOptions.php000064400000011333151742727570014047 0ustar00 0) is the * same as the upper bound of bucket i - 1. The buckets span the whole range * of finite values: lower bound of the underflow bucket is -infinity and the * upper bound of the overflow bucket is +infinity. The finite buckets are * so-called because both bounds are finite. * * Generated from protobuf message google.api.Distribution.BucketOptions */ class BucketOptions extends \Google\Protobuf\Internal\Message { protected $options; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Google\Api\Distribution\BucketOptions\Linear $linear_buckets * The linear bucket. * @type \Google\Api\Distribution\BucketOptions\Exponential $exponential_buckets * The exponential buckets. * @type \Google\Api\Distribution\BucketOptions\Explicit $explicit_buckets * The explicit buckets. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Distribution::initOnce(); parent::__construct($data); } /** * The linear bucket. * * Generated from protobuf field .google.api.Distribution.BucketOptions.Linear linear_buckets = 1; * @return \Google\Api\Distribution\BucketOptions\Linear */ public function getLinearBuckets() { return $this->readOneof(1); } /** * The linear bucket. * * Generated from protobuf field .google.api.Distribution.BucketOptions.Linear linear_buckets = 1; * @param \Google\Api\Distribution\BucketOptions\Linear $var * @return $this */ public function setLinearBuckets($var) { GPBUtil::checkMessage($var, \Google\Api\Distribution_BucketOptions_Linear::class); $this->writeOneof(1, $var); return $this; } /** * The exponential buckets. * * Generated from protobuf field .google.api.Distribution.BucketOptions.Exponential exponential_buckets = 2; * @return \Google\Api\Distribution\BucketOptions\Exponential */ public function getExponentialBuckets() { return $this->readOneof(2); } /** * The exponential buckets. * * Generated from protobuf field .google.api.Distribution.BucketOptions.Exponential exponential_buckets = 2; * @param \Google\Api\Distribution\BucketOptions\Exponential $var * @return $this */ public function setExponentialBuckets($var) { GPBUtil::checkMessage($var, \Google\Api\Distribution_BucketOptions_Exponential::class); $this->writeOneof(2, $var); return $this; } /** * The explicit buckets. * * Generated from protobuf field .google.api.Distribution.BucketOptions.Explicit explicit_buckets = 3; * @return \Google\Api\Distribution\BucketOptions\Explicit */ public function getExplicitBuckets() { return $this->readOneof(3); } /** * The explicit buckets. * * Generated from protobuf field .google.api.Distribution.BucketOptions.Explicit explicit_buckets = 3; * @param \Google\Api\Distribution\BucketOptions\Explicit $var * @return $this */ public function setExplicitBuckets($var) { GPBUtil::checkMessage($var, \Google\Api\Distribution_BucketOptions_Explicit::class); $this->writeOneof(3, $var); return $this; } /** * @return string */ public function getOptions() { return $this->whichOneof("options"); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(BucketOptions::class, \Google\Api\Distribution_BucketOptions::class); src/Api/Distribution/BucketOptions/Explicit.php000064400000004541151742727570015633 0ustar00google.api.Distribution.BucketOptions.Explicit */ class Explicit extends \Google\Protobuf\Internal\Message { /** * The values must be monotonically increasing. * * Generated from protobuf field repeated double bounds = 1; */ private $bounds; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type float[]|\Google\Protobuf\Internal\RepeatedField $bounds * The values must be monotonically increasing. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Distribution::initOnce(); parent::__construct($data); } /** * The values must be monotonically increasing. * * Generated from protobuf field repeated double bounds = 1; * @return \Google\Protobuf\Internal\RepeatedField */ public function getBounds() { return $this->bounds; } /** * The values must be monotonically increasing. * * Generated from protobuf field repeated double bounds = 1; * @param float[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setBounds($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::DOUBLE); $this->bounds = $arr; return $this; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Explicit::class, \Google\Api\Distribution_BucketOptions_Explicit::class); src/Api/Distribution/BucketOptions/Exponential.php000064400000007265151742727570016346 0ustar00google.api.Distribution.BucketOptions.Exponential */ class Exponential extends \Google\Protobuf\Internal\Message { /** * Must be greater than 0. * * Generated from protobuf field int32 num_finite_buckets = 1; */ private $num_finite_buckets = 0; /** * Must be greater than 1. * * Generated from protobuf field double growth_factor = 2; */ private $growth_factor = 0.0; /** * Must be greater than 0. * * Generated from protobuf field double scale = 3; */ private $scale = 0.0; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int $num_finite_buckets * Must be greater than 0. * @type float $growth_factor * Must be greater than 1. * @type float $scale * Must be greater than 0. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Distribution::initOnce(); parent::__construct($data); } /** * Must be greater than 0. * * Generated from protobuf field int32 num_finite_buckets = 1; * @return int */ public function getNumFiniteBuckets() { return $this->num_finite_buckets; } /** * Must be greater than 0. * * Generated from protobuf field int32 num_finite_buckets = 1; * @param int $var * @return $this */ public function setNumFiniteBuckets($var) { GPBUtil::checkInt32($var); $this->num_finite_buckets = $var; return $this; } /** * Must be greater than 1. * * Generated from protobuf field double growth_factor = 2; * @return float */ public function getGrowthFactor() { return $this->growth_factor; } /** * Must be greater than 1. * * Generated from protobuf field double growth_factor = 2; * @param float $var * @return $this */ public function setGrowthFactor($var) { GPBUtil::checkDouble($var); $this->growth_factor = $var; return $this; } /** * Must be greater than 0. * * Generated from protobuf field double scale = 3; * @return float */ public function getScale() { return $this->scale; } /** * Must be greater than 0. * * Generated from protobuf field double scale = 3; * @param float $var * @return $this */ public function setScale($var) { GPBUtil::checkDouble($var); $this->scale = $var; return $this; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Exponential::class, \Google\Api\Distribution_BucketOptions_Exponential::class); src/Api/Distribution/BucketOptions/Linear.php000064400000007154151742727570015267 0ustar00google.api.Distribution.BucketOptions.Linear */ class Linear extends \Google\Protobuf\Internal\Message { /** * Must be greater than 0. * * Generated from protobuf field int32 num_finite_buckets = 1; */ private $num_finite_buckets = 0; /** * Must be greater than 0. * * Generated from protobuf field double width = 2; */ private $width = 0.0; /** * Lower bound of the first bucket. * * Generated from protobuf field double offset = 3; */ private $offset = 0.0; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int $num_finite_buckets * Must be greater than 0. * @type float $width * Must be greater than 0. * @type float $offset * Lower bound of the first bucket. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Distribution::initOnce(); parent::__construct($data); } /** * Must be greater than 0. * * Generated from protobuf field int32 num_finite_buckets = 1; * @return int */ public function getNumFiniteBuckets() { return $this->num_finite_buckets; } /** * Must be greater than 0. * * Generated from protobuf field int32 num_finite_buckets = 1; * @param int $var * @return $this */ public function setNumFiniteBuckets($var) { GPBUtil::checkInt32($var); $this->num_finite_buckets = $var; return $this; } /** * Must be greater than 0. * * Generated from protobuf field double width = 2; * @return float */ public function getWidth() { return $this->width; } /** * Must be greater than 0. * * Generated from protobuf field double width = 2; * @param float $var * @return $this */ public function setWidth($var) { GPBUtil::checkDouble($var); $this->width = $var; return $this; } /** * Lower bound of the first bucket. * * Generated from protobuf field double offset = 3; * @return float */ public function getOffset() { return $this->offset; } /** * Lower bound of the first bucket. * * Generated from protobuf field double offset = 3; * @param float $var * @return $this */ public function setOffset($var) { GPBUtil::checkDouble($var); $this->offset = $var; return $this; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Linear::class, \Google\Api\Distribution_BucketOptions_Linear::class); src/Api/Distribution/Exemplar.php000064400000014053151742727570013035 0ustar00google.api.Distribution.Exemplar */ class Exemplar extends \Google\Protobuf\Internal\Message { /** * Value of the exemplar point. This value determines to which bucket the * exemplar belongs. * * Generated from protobuf field double value = 1; */ private $value = 0.0; /** * The observation (sampling) time of the above value. * * Generated from protobuf field .google.protobuf.Timestamp timestamp = 2; */ private $timestamp = null; /** * Contextual information about the example value. Examples are: * Trace ID: type.googleapis.com/google.devtools.cloudtrace.v1.Trace * Literal string: type.googleapis.com/google.protobuf.StringValue * Labels dropped during aggregation: * type.googleapis.com/google.monitoring.v3.DroppedLabels * There may be only a single attachment of any given message type in a * single exemplar, and this is enforced by the system. * * Generated from protobuf field repeated .google.protobuf.Any attachments = 3; */ private $attachments; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type float $value * Value of the exemplar point. This value determines to which bucket the * exemplar belongs. * @type \Google\Protobuf\Timestamp $timestamp * The observation (sampling) time of the above value. * @type \Google\Protobuf\Any[]|\Google\Protobuf\Internal\RepeatedField $attachments * Contextual information about the example value. Examples are: * Trace ID: type.googleapis.com/google.devtools.cloudtrace.v1.Trace * Literal string: type.googleapis.com/google.protobuf.StringValue * Labels dropped during aggregation: * type.googleapis.com/google.monitoring.v3.DroppedLabels * There may be only a single attachment of any given message type in a * single exemplar, and this is enforced by the system. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Distribution::initOnce(); parent::__construct($data); } /** * Value of the exemplar point. This value determines to which bucket the * exemplar belongs. * * Generated from protobuf field double value = 1; * @return float */ public function getValue() { return $this->value; } /** * Value of the exemplar point. This value determines to which bucket the * exemplar belongs. * * Generated from protobuf field double value = 1; * @param float $var * @return $this */ public function setValue($var) { GPBUtil::checkDouble($var); $this->value = $var; return $this; } /** * The observation (sampling) time of the above value. * * Generated from protobuf field .google.protobuf.Timestamp timestamp = 2; * @return \Google\Protobuf\Timestamp */ public function getTimestamp() { return $this->timestamp; } /** * The observation (sampling) time of the above value. * * Generated from protobuf field .google.protobuf.Timestamp timestamp = 2; * @param \Google\Protobuf\Timestamp $var * @return $this */ public function setTimestamp($var) { GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); $this->timestamp = $var; return $this; } /** * Contextual information about the example value. Examples are: * Trace ID: type.googleapis.com/google.devtools.cloudtrace.v1.Trace * Literal string: type.googleapis.com/google.protobuf.StringValue * Labels dropped during aggregation: * type.googleapis.com/google.monitoring.v3.DroppedLabels * There may be only a single attachment of any given message type in a * single exemplar, and this is enforced by the system. * * Generated from protobuf field repeated .google.protobuf.Any attachments = 3; * @return \Google\Protobuf\Internal\RepeatedField */ public function getAttachments() { return $this->attachments; } /** * Contextual information about the example value. Examples are: * Trace ID: type.googleapis.com/google.devtools.cloudtrace.v1.Trace * Literal string: type.googleapis.com/google.protobuf.StringValue * Labels dropped during aggregation: * type.googleapis.com/google.monitoring.v3.DroppedLabels * There may be only a single attachment of any given message type in a * single exemplar, and this is enforced by the system. * * Generated from protobuf field repeated .google.protobuf.Any attachments = 3; * @param \Google\Protobuf\Any[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setAttachments($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Any::class); $this->attachments = $arr; return $this; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Exemplar::class, \Google\Api\Distribution_Exemplar::class); src/Api/Distribution/Range.php000064400000004623151742727570012316 0ustar00google.api.Distribution.Range */ class Range extends \Google\Protobuf\Internal\Message { /** * The minimum of the population values. * * Generated from protobuf field double min = 1; */ private $min = 0.0; /** * The maximum of the population values. * * Generated from protobuf field double max = 2; */ private $max = 0.0; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type float $min * The minimum of the population values. * @type float $max * The maximum of the population values. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Distribution::initOnce(); parent::__construct($data); } /** * The minimum of the population values. * * Generated from protobuf field double min = 1; * @return float */ public function getMin() { return $this->min; } /** * The minimum of the population values. * * Generated from protobuf field double min = 1; * @param float $var * @return $this */ public function setMin($var) { GPBUtil::checkDouble($var); $this->min = $var; return $this; } /** * The maximum of the population values. * * Generated from protobuf field double max = 2; * @return float */ public function getMax() { return $this->max; } /** * The maximum of the population values. * * Generated from protobuf field double max = 2; * @param float $var * @return $this */ public function setMax($var) { GPBUtil::checkDouble($var); $this->max = $var; return $this; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Range::class, \Google\Api\Distribution_Range::class); src/Api/Distribution_BucketOptions.php000064400000001034151742727570014124 0ustar00documentation: * summary: > * The Google Calendar API gives access * to most calendar features. * pages: * - name: Overview * content: (== include google/foo/overview.md ==) * - name: Tutorial * content: (== include google/foo/tutorial.md ==) * subpages; * - name: Java * content: (== include google/foo/tutorial_java.md ==) * rules: * - selector: google.calendar.Calendar.Get * description: > * ... * - selector: google.calendar.Calendar.Put * description: > * ... * * Documentation is provided in markdown syntax. In addition to * standard markdown features, definition lists, tables and fenced * code blocks are supported. Section headers can be provided and are * interpreted relative to the section nesting of the context where * a documentation fragment is embedded. * Documentation from the IDL is merged with documentation defined * via the config at normalization time, where documentation provided * by config rules overrides IDL provided. * A number of constructs specific to the API platform are supported * in documentation text. * In order to reference a proto element, the following * notation can be used: *
[fully.qualified.proto.name][]
* To override the display text used for the link, this can be used: *
[display text][fully.qualified.proto.name]
* Text can be excluded from doc using the following notation: *
(-- internal comment --)
* A few directives are available in documentation. Note that * directives must appear on a single line to be properly * identified. The `include` directive includes a markdown file from * an external source: *
(== include path/to/file ==)
* The `resource_for` directive marks a message to be the resource of * a collection in REST view. If it is not specified, tools attempt * to infer the resource from the operations in a collection: *
(== resource_for v1.shelves.books ==)
* The directive `suppress_warning` does not directly affect documentation * and is documented together with service config validation. * * Generated from protobuf message google.api.Documentation */ class Documentation extends \Google\Protobuf\Internal\Message { /** * A short summary of what the service does. Can only be provided by * plain text. * * Generated from protobuf field string summary = 1; */ private $summary = ''; /** * The top level pages for the documentation set. * * Generated from protobuf field repeated .google.api.Page pages = 5; */ private $pages; /** * A list of documentation rules that apply to individual API elements. * **NOTE:** All service configuration rules follow "last one wins" order. * * Generated from protobuf field repeated .google.api.DocumentationRule rules = 3; */ private $rules; /** * The URL to the root of documentation. * * Generated from protobuf field string documentation_root_url = 4; */ private $documentation_root_url = ''; /** * Declares a single overview page. For example: *
documentation:
     *   summary: ...
     *   overview: (== include overview.md ==)
     * 
* This is a shortcut for the following declaration (using pages style): *
documentation:
     *   summary: ...
     *   pages:
     *   - name: Overview
     *     content: (== include overview.md ==)
     * 
* Note: you cannot specify both `overview` field and `pages` field. * * Generated from protobuf field string overview = 2; */ private $overview = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $summary * A short summary of what the service does. Can only be provided by * plain text. * @type \Google\Api\Page[]|\Google\Protobuf\Internal\RepeatedField $pages * The top level pages for the documentation set. * @type \Google\Api\DocumentationRule[]|\Google\Protobuf\Internal\RepeatedField $rules * A list of documentation rules that apply to individual API elements. * **NOTE:** All service configuration rules follow "last one wins" order. * @type string $documentation_root_url * The URL to the root of documentation. * @type string $overview * Declares a single overview page. For example: *
documentation:
     *             summary: ...
     *             overview: (== include overview.md ==)
     *           
* This is a shortcut for the following declaration (using pages style): *
documentation:
     *             summary: ...
     *             pages:
     *             - name: Overview
     *               content: (== include overview.md ==)
     *           
* Note: you cannot specify both `overview` field and `pages` field. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Documentation::initOnce(); parent::__construct($data); } /** * A short summary of what the service does. Can only be provided by * plain text. * * Generated from protobuf field string summary = 1; * @return string */ public function getSummary() { return $this->summary; } /** * A short summary of what the service does. Can only be provided by * plain text. * * Generated from protobuf field string summary = 1; * @param string $var * @return $this */ public function setSummary($var) { GPBUtil::checkString($var, True); $this->summary = $var; return $this; } /** * The top level pages for the documentation set. * * Generated from protobuf field repeated .google.api.Page pages = 5; * @return \Google\Protobuf\Internal\RepeatedField */ public function getPages() { return $this->pages; } /** * The top level pages for the documentation set. * * Generated from protobuf field repeated .google.api.Page pages = 5; * @param \Google\Api\Page[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setPages($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Page::class); $this->pages = $arr; return $this; } /** * A list of documentation rules that apply to individual API elements. * **NOTE:** All service configuration rules follow "last one wins" order. * * Generated from protobuf field repeated .google.api.DocumentationRule rules = 3; * @return \Google\Protobuf\Internal\RepeatedField */ public function getRules() { return $this->rules; } /** * A list of documentation rules that apply to individual API elements. * **NOTE:** All service configuration rules follow "last one wins" order. * * Generated from protobuf field repeated .google.api.DocumentationRule rules = 3; * @param \Google\Api\DocumentationRule[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setRules($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\DocumentationRule::class); $this->rules = $arr; return $this; } /** * The URL to the root of documentation. * * Generated from protobuf field string documentation_root_url = 4; * @return string */ public function getDocumentationRootUrl() { return $this->documentation_root_url; } /** * The URL to the root of documentation. * * Generated from protobuf field string documentation_root_url = 4; * @param string $var * @return $this */ public function setDocumentationRootUrl($var) { GPBUtil::checkString($var, True); $this->documentation_root_url = $var; return $this; } /** * Declares a single overview page. For example: *
documentation:
     *   summary: ...
     *   overview: (== include overview.md ==)
     * 
* This is a shortcut for the following declaration (using pages style): *
documentation:
     *   summary: ...
     *   pages:
     *   - name: Overview
     *     content: (== include overview.md ==)
     * 
* Note: you cannot specify both `overview` field and `pages` field. * * Generated from protobuf field string overview = 2; * @return string */ public function getOverview() { return $this->overview; } /** * Declares a single overview page. For example: *
documentation:
     *   summary: ...
     *   overview: (== include overview.md ==)
     * 
* This is a shortcut for the following declaration (using pages style): *
documentation:
     *   summary: ...
     *   pages:
     *   - name: Overview
     *     content: (== include overview.md ==)
     * 
* Note: you cannot specify both `overview` field and `pages` field. * * Generated from protobuf field string overview = 2; * @param string $var * @return $this */ public function setOverview($var) { GPBUtil::checkString($var, True); $this->overview = $var; return $this; } } src/Api/DocumentationRule.php000064400000012217151742727570012242 0ustar00google.api.DocumentationRule */ class DocumentationRule extends \Google\Protobuf\Internal\Message { /** * The selector is a comma-separated list of patterns. Each pattern is a * qualified name of the element which may end in "*", indicating a wildcard. * Wildcards are only allowed at the end and for a whole component of the * qualified name, i.e. "foo.*" is ok, but not "foo.b*" or "foo.*.bar". To * specify a default for all applicable elements, the whole pattern "*" * is used. * * Generated from protobuf field string selector = 1; */ private $selector = ''; /** * Description of the selected API(s). * * Generated from protobuf field string description = 2; */ private $description = ''; /** * Deprecation description of the selected element(s). It can be provided if an * element is marked as `deprecated`. * * Generated from protobuf field string deprecation_description = 3; */ private $deprecation_description = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $selector * The selector is a comma-separated list of patterns. Each pattern is a * qualified name of the element which may end in "*", indicating a wildcard. * Wildcards are only allowed at the end and for a whole component of the * qualified name, i.e. "foo.*" is ok, but not "foo.b*" or "foo.*.bar". To * specify a default for all applicable elements, the whole pattern "*" * is used. * @type string $description * Description of the selected API(s). * @type string $deprecation_description * Deprecation description of the selected element(s). It can be provided if an * element is marked as `deprecated`. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Documentation::initOnce(); parent::__construct($data); } /** * The selector is a comma-separated list of patterns. Each pattern is a * qualified name of the element which may end in "*", indicating a wildcard. * Wildcards are only allowed at the end and for a whole component of the * qualified name, i.e. "foo.*" is ok, but not "foo.b*" or "foo.*.bar". To * specify a default for all applicable elements, the whole pattern "*" * is used. * * Generated from protobuf field string selector = 1; * @return string */ public function getSelector() { return $this->selector; } /** * The selector is a comma-separated list of patterns. Each pattern is a * qualified name of the element which may end in "*", indicating a wildcard. * Wildcards are only allowed at the end and for a whole component of the * qualified name, i.e. "foo.*" is ok, but not "foo.b*" or "foo.*.bar". To * specify a default for all applicable elements, the whole pattern "*" * is used. * * Generated from protobuf field string selector = 1; * @param string $var * @return $this */ public function setSelector($var) { GPBUtil::checkString($var, True); $this->selector = $var; return $this; } /** * Description of the selected API(s). * * Generated from protobuf field string description = 2; * @return string */ public function getDescription() { return $this->description; } /** * Description of the selected API(s). * * Generated from protobuf field string description = 2; * @param string $var * @return $this */ public function setDescription($var) { GPBUtil::checkString($var, True); $this->description = $var; return $this; } /** * Deprecation description of the selected element(s). It can be provided if an * element is marked as `deprecated`. * * Generated from protobuf field string deprecation_description = 3; * @return string */ public function getDeprecationDescription() { return $this->deprecation_description; } /** * Deprecation description of the selected element(s). It can be provided if an * element is marked as `deprecated`. * * Generated from protobuf field string deprecation_description = 3; * @param string $var * @return $this */ public function setDeprecationDescription($var) { GPBUtil::checkString($var, True); $this->deprecation_description = $var; return $this; } } src/Api/Endpoint.php000064400000022042151742727570010356 0ustar00google.api.Endpoint */ class Endpoint extends \Google\Protobuf\Internal\Message { /** * The canonical name of this endpoint. * * Generated from protobuf field string name = 1; */ private $name = ''; /** * DEPRECATED: This field is no longer supported. Instead of using aliases, * please specify multiple [google.api.Endpoint][google.api.Endpoint] for each of the intended * aliases. * Additional names that this endpoint will be hosted on. * * Generated from protobuf field repeated string aliases = 2; */ private $aliases; /** * The list of features enabled on this endpoint. * * Generated from protobuf field repeated string features = 4; */ private $features; /** * The specification of an Internet routable address of API frontend that will * handle requests to this [API Endpoint](https://cloud.google.com/apis/design/glossary). * It should be either a valid IPv4 address or a fully-qualified domain name. * For example, "8.8.8.8" or "myservice.appspot.com". * * Generated from protobuf field string target = 101; */ private $target = ''; /** * Allowing * [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), aka * cross-domain traffic, would allow the backends served from this endpoint to * receive and respond to HTTP OPTIONS requests. The response will be used by * the browser to determine whether the subsequent cross-origin request is * allowed to proceed. * * Generated from protobuf field bool allow_cors = 5; */ private $allow_cors = false; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $name * The canonical name of this endpoint. * @type string[]|\Google\Protobuf\Internal\RepeatedField $aliases * DEPRECATED: This field is no longer supported. Instead of using aliases, * please specify multiple [google.api.Endpoint][google.api.Endpoint] for each of the intended * aliases. * Additional names that this endpoint will be hosted on. * @type string[]|\Google\Protobuf\Internal\RepeatedField $features * The list of features enabled on this endpoint. * @type string $target * The specification of an Internet routable address of API frontend that will * handle requests to this [API Endpoint](https://cloud.google.com/apis/design/glossary). * It should be either a valid IPv4 address or a fully-qualified domain name. * For example, "8.8.8.8" or "myservice.appspot.com". * @type bool $allow_cors * Allowing * [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), aka * cross-domain traffic, would allow the backends served from this endpoint to * receive and respond to HTTP OPTIONS requests. The response will be used by * the browser to determine whether the subsequent cross-origin request is * allowed to proceed. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Endpoint::initOnce(); parent::__construct($data); } /** * The canonical name of this endpoint. * * Generated from protobuf field string name = 1; * @return string */ public function getName() { return $this->name; } /** * The canonical name of this endpoint. * * Generated from protobuf field string name = 1; * @param string $var * @return $this */ public function setName($var) { GPBUtil::checkString($var, True); $this->name = $var; return $this; } /** * DEPRECATED: This field is no longer supported. Instead of using aliases, * please specify multiple [google.api.Endpoint][google.api.Endpoint] for each of the intended * aliases. * Additional names that this endpoint will be hosted on. * * Generated from protobuf field repeated string aliases = 2; * @return \Google\Protobuf\Internal\RepeatedField */ public function getAliases() { return $this->aliases; } /** * DEPRECATED: This field is no longer supported. Instead of using aliases, * please specify multiple [google.api.Endpoint][google.api.Endpoint] for each of the intended * aliases. * Additional names that this endpoint will be hosted on. * * Generated from protobuf field repeated string aliases = 2; * @param string[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setAliases($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); $this->aliases = $arr; return $this; } /** * The list of features enabled on this endpoint. * * Generated from protobuf field repeated string features = 4; * @return \Google\Protobuf\Internal\RepeatedField */ public function getFeatures() { return $this->features; } /** * The list of features enabled on this endpoint. * * Generated from protobuf field repeated string features = 4; * @param string[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setFeatures($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); $this->features = $arr; return $this; } /** * The specification of an Internet routable address of API frontend that will * handle requests to this [API Endpoint](https://cloud.google.com/apis/design/glossary). * It should be either a valid IPv4 address or a fully-qualified domain name. * For example, "8.8.8.8" or "myservice.appspot.com". * * Generated from protobuf field string target = 101; * @return string */ public function getTarget() { return $this->target; } /** * The specification of an Internet routable address of API frontend that will * handle requests to this [API Endpoint](https://cloud.google.com/apis/design/glossary). * It should be either a valid IPv4 address or a fully-qualified domain name. * For example, "8.8.8.8" or "myservice.appspot.com". * * Generated from protobuf field string target = 101; * @param string $var * @return $this */ public function setTarget($var) { GPBUtil::checkString($var, True); $this->target = $var; return $this; } /** * Allowing * [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), aka * cross-domain traffic, would allow the backends served from this endpoint to * receive and respond to HTTP OPTIONS requests. The response will be used by * the browser to determine whether the subsequent cross-origin request is * allowed to proceed. * * Generated from protobuf field bool allow_cors = 5; * @return bool */ public function getAllowCors() { return $this->allow_cors; } /** * Allowing * [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), aka * cross-domain traffic, would allow the backends served from this endpoint to * receive and respond to HTTP OPTIONS requests. The response will be used by * the browser to determine whether the subsequent cross-origin request is * allowed to proceed. * * Generated from protobuf field bool allow_cors = 5; * @param bool $var * @return $this */ public function setAllowCors($var) { GPBUtil::checkBool($var); $this->allow_cors = $var; return $this; } } src/Api/Expr/V1alpha1/CheckRequest.php000064400000014640151742727570013464 0ustar00google.api.expr.v1alpha1.CheckRequest */ class CheckRequest extends \Google\Protobuf\Internal\Message { /** * Required. The parsed representation of the CEL program. * * Generated from protobuf field .google.api.expr.v1alpha1.ParsedExpr parsed_expr = 1 [(.google.api.field_behavior) = REQUIRED]; */ private $parsed_expr = null; /** * Declarations of types for external variables and functions. * Required if program uses external variables or functions * not in the default environment. * * Generated from protobuf field repeated .google.api.expr.v1alpha1.Decl type_env = 2; */ private $type_env; /** * The protocol buffer context. See "Name Resolution" in the * Language Definition. * * Generated from protobuf field string container = 3; */ private $container = ''; /** * If true, use only the declarations in [type_env][google.api.expr.v1alpha1.CheckRequest.type_env]. If false (default), * add declarations for the standard definitions to the type environment. See * "Standard Definitions" in the Language Definition. * * Generated from protobuf field bool no_std_env = 4; */ private $no_std_env = false; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Google\Api\Expr\V1alpha1\ParsedExpr $parsed_expr * Required. The parsed representation of the CEL program. * @type \Google\Api\Expr\V1alpha1\Decl[]|\Google\Protobuf\Internal\RepeatedField $type_env * Declarations of types for external variables and functions. * Required if program uses external variables or functions * not in the default environment. * @type string $container * The protocol buffer context. See "Name Resolution" in the * Language Definition. * @type bool $no_std_env * If true, use only the declarations in [type_env][google.api.expr.v1alpha1.CheckRequest.type_env]. If false (default), * add declarations for the standard definitions to the type environment. See * "Standard Definitions" in the Language Definition. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Expr\V1Alpha1\ConformanceService::initOnce(); parent::__construct($data); } /** * Required. The parsed representation of the CEL program. * * Generated from protobuf field .google.api.expr.v1alpha1.ParsedExpr parsed_expr = 1 [(.google.api.field_behavior) = REQUIRED]; * @return \Google\Api\Expr\V1alpha1\ParsedExpr */ public function getParsedExpr() { return $this->parsed_expr; } /** * Required. The parsed representation of the CEL program. * * Generated from protobuf field .google.api.expr.v1alpha1.ParsedExpr parsed_expr = 1 [(.google.api.field_behavior) = REQUIRED]; * @param \Google\Api\Expr\V1alpha1\ParsedExpr $var * @return $this */ public function setParsedExpr($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1alpha1\ParsedExpr::class); $this->parsed_expr = $var; return $this; } /** * Declarations of types for external variables and functions. * Required if program uses external variables or functions * not in the default environment. * * Generated from protobuf field repeated .google.api.expr.v1alpha1.Decl type_env = 2; * @return \Google\Protobuf\Internal\RepeatedField */ public function getTypeEnv() { return $this->type_env; } /** * Declarations of types for external variables and functions. * Required if program uses external variables or functions * not in the default environment. * * Generated from protobuf field repeated .google.api.expr.v1alpha1.Decl type_env = 2; * @param \Google\Api\Expr\V1alpha1\Decl[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setTypeEnv($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Expr\V1alpha1\Decl::class); $this->type_env = $arr; return $this; } /** * The protocol buffer context. See "Name Resolution" in the * Language Definition. * * Generated from protobuf field string container = 3; * @return string */ public function getContainer() { return $this->container; } /** * The protocol buffer context. See "Name Resolution" in the * Language Definition. * * Generated from protobuf field string container = 3; * @param string $var * @return $this */ public function setContainer($var) { GPBUtil::checkString($var, True); $this->container = $var; return $this; } /** * If true, use only the declarations in [type_env][google.api.expr.v1alpha1.CheckRequest.type_env]. If false (default), * add declarations for the standard definitions to the type environment. See * "Standard Definitions" in the Language Definition. * * Generated from protobuf field bool no_std_env = 4; * @return bool */ public function getNoStdEnv() { return $this->no_std_env; } /** * If true, use only the declarations in [type_env][google.api.expr.v1alpha1.CheckRequest.type_env]. If false (default), * add declarations for the standard definitions to the type environment. See * "Standard Definitions" in the Language Definition. * * Generated from protobuf field bool no_std_env = 4; * @param bool $var * @return $this */ public function setNoStdEnv($var) { GPBUtil::checkBool($var); $this->no_std_env = $var; return $this; } } src/Api/Expr/V1alpha1/CheckResponse.php000064400000006135151742727570013632 0ustar00google.api.expr.v1alpha1.CheckResponse */ class CheckResponse extends \Google\Protobuf\Internal\Message { /** * The annotated representation, or unset if checking failed. * * Generated from protobuf field .google.api.expr.v1alpha1.CheckedExpr checked_expr = 1; */ private $checked_expr = null; /** * Any number of issues with [StatusDetails][] as the details. * * Generated from protobuf field repeated .google.rpc.Status issues = 2; */ private $issues; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Google\Api\Expr\V1alpha1\CheckedExpr $checked_expr * The annotated representation, or unset if checking failed. * @type \Google\Rpc\Status[]|\Google\Protobuf\Internal\RepeatedField $issues * Any number of issues with [StatusDetails][] as the details. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Expr\V1Alpha1\ConformanceService::initOnce(); parent::__construct($data); } /** * The annotated representation, or unset if checking failed. * * Generated from protobuf field .google.api.expr.v1alpha1.CheckedExpr checked_expr = 1; * @return \Google\Api\Expr\V1alpha1\CheckedExpr */ public function getCheckedExpr() { return $this->checked_expr; } /** * The annotated representation, or unset if checking failed. * * Generated from protobuf field .google.api.expr.v1alpha1.CheckedExpr checked_expr = 1; * @param \Google\Api\Expr\V1alpha1\CheckedExpr $var * @return $this */ public function setCheckedExpr($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1alpha1\CheckedExpr::class); $this->checked_expr = $var; return $this; } /** * Any number of issues with [StatusDetails][] as the details. * * Generated from protobuf field repeated .google.rpc.Status issues = 2; * @return \Google\Protobuf\Internal\RepeatedField */ public function getIssues() { return $this->issues; } /** * Any number of issues with [StatusDetails][] as the details. * * Generated from protobuf field repeated .google.rpc.Status issues = 2; * @param \Google\Rpc\Status[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setIssues($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Rpc\Status::class); $this->issues = $arr; return $this; } } src/Api/Expr/V1alpha1/CheckedExpr.php000064400000023237151742727570013265 0ustar00google.api.expr.v1alpha1.CheckedExpr */ class CheckedExpr extends \Google\Protobuf\Internal\Message { /** * A map from expression ids to resolved references. * The following entries are in this table: * - An Ident or Select expression is represented here if it resolves to a * declaration. For instance, if `a.b.c` is represented by * `select(select(id(a), b), c)`, and `a.b` resolves to a declaration, * while `c` is a field selection, then the reference is attached to the * nested select expression (but not to the id or or the outer select). * In turn, if `a` resolves to a declaration and `b.c` are field selections, * the reference is attached to the ident expression. * - Every Call expression has an entry here, identifying the function being * called. * - Every CreateStruct expression for a message has an entry, identifying * the message. * * Generated from protobuf field map reference_map = 2; */ private $reference_map; /** * A map from expression ids to types. * Every expression node which has a type different than DYN has a mapping * here. If an expression has type DYN, it is omitted from this map to save * space. * * Generated from protobuf field map type_map = 3; */ private $type_map; /** * The source info derived from input that generated the parsed `expr` and * any optimizations made during the type-checking pass. * * Generated from protobuf field .google.api.expr.v1alpha1.SourceInfo source_info = 5; */ private $source_info = null; /** * The checked expression. Semantically equivalent to the parsed `expr`, but * may have structural differences. * * Generated from protobuf field .google.api.expr.v1alpha1.Expr expr = 4; */ private $expr = null; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type array|\Google\Protobuf\Internal\MapField $reference_map * A map from expression ids to resolved references. * The following entries are in this table: * - An Ident or Select expression is represented here if it resolves to a * declaration. For instance, if `a.b.c` is represented by * `select(select(id(a), b), c)`, and `a.b` resolves to a declaration, * while `c` is a field selection, then the reference is attached to the * nested select expression (but not to the id or or the outer select). * In turn, if `a` resolves to a declaration and `b.c` are field selections, * the reference is attached to the ident expression. * - Every Call expression has an entry here, identifying the function being * called. * - Every CreateStruct expression for a message has an entry, identifying * the message. * @type array|\Google\Protobuf\Internal\MapField $type_map * A map from expression ids to types. * Every expression node which has a type different than DYN has a mapping * here. If an expression has type DYN, it is omitted from this map to save * space. * @type \Google\Api\Expr\V1alpha1\SourceInfo $source_info * The source info derived from input that generated the parsed `expr` and * any optimizations made during the type-checking pass. * @type \Google\Api\Expr\V1alpha1\Expr $expr * The checked expression. Semantically equivalent to the parsed `expr`, but * may have structural differences. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Expr\V1Alpha1\Checked::initOnce(); parent::__construct($data); } /** * A map from expression ids to resolved references. * The following entries are in this table: * - An Ident or Select expression is represented here if it resolves to a * declaration. For instance, if `a.b.c` is represented by * `select(select(id(a), b), c)`, and `a.b` resolves to a declaration, * while `c` is a field selection, then the reference is attached to the * nested select expression (but not to the id or or the outer select). * In turn, if `a` resolves to a declaration and `b.c` are field selections, * the reference is attached to the ident expression. * - Every Call expression has an entry here, identifying the function being * called. * - Every CreateStruct expression for a message has an entry, identifying * the message. * * Generated from protobuf field map reference_map = 2; * @return \Google\Protobuf\Internal\MapField */ public function getReferenceMap() { return $this->reference_map; } /** * A map from expression ids to resolved references. * The following entries are in this table: * - An Ident or Select expression is represented here if it resolves to a * declaration. For instance, if `a.b.c` is represented by * `select(select(id(a), b), c)`, and `a.b` resolves to a declaration, * while `c` is a field selection, then the reference is attached to the * nested select expression (but not to the id or or the outer select). * In turn, if `a` resolves to a declaration and `b.c` are field selections, * the reference is attached to the ident expression. * - Every Call expression has an entry here, identifying the function being * called. * - Every CreateStruct expression for a message has an entry, identifying * the message. * * Generated from protobuf field map reference_map = 2; * @param array|\Google\Protobuf\Internal\MapField $var * @return $this */ public function setReferenceMap($var) { $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::INT64, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Expr\V1alpha1\Reference::class); $this->reference_map = $arr; return $this; } /** * A map from expression ids to types. * Every expression node which has a type different than DYN has a mapping * here. If an expression has type DYN, it is omitted from this map to save * space. * * Generated from protobuf field map type_map = 3; * @return \Google\Protobuf\Internal\MapField */ public function getTypeMap() { return $this->type_map; } /** * A map from expression ids to types. * Every expression node which has a type different than DYN has a mapping * here. If an expression has type DYN, it is omitted from this map to save * space. * * Generated from protobuf field map type_map = 3; * @param array|\Google\Protobuf\Internal\MapField $var * @return $this */ public function setTypeMap($var) { $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::INT64, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Expr\V1alpha1\Type::class); $this->type_map = $arr; return $this; } /** * The source info derived from input that generated the parsed `expr` and * any optimizations made during the type-checking pass. * * Generated from protobuf field .google.api.expr.v1alpha1.SourceInfo source_info = 5; * @return \Google\Api\Expr\V1alpha1\SourceInfo */ public function getSourceInfo() { return $this->source_info; } /** * The source info derived from input that generated the parsed `expr` and * any optimizations made during the type-checking pass. * * Generated from protobuf field .google.api.expr.v1alpha1.SourceInfo source_info = 5; * @param \Google\Api\Expr\V1alpha1\SourceInfo $var * @return $this */ public function setSourceInfo($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1alpha1\SourceInfo::class); $this->source_info = $var; return $this; } /** * The checked expression. Semantically equivalent to the parsed `expr`, but * may have structural differences. * * Generated from protobuf field .google.api.expr.v1alpha1.Expr expr = 4; * @return \Google\Api\Expr\V1alpha1\Expr */ public function getExpr() { return $this->expr; } /** * The checked expression. Semantically equivalent to the parsed `expr`, but * may have structural differences. * * Generated from protobuf field .google.api.expr.v1alpha1.Expr expr = 4; * @param \Google\Api\Expr\V1alpha1\Expr $var * @return $this */ public function setExpr($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1alpha1\Expr::class); $this->expr = $var; return $this; } } src/Api/Expr/V1alpha1/Constant.php000064400000017304151742727570012667 0ustar00google.api.expr.v1alpha1.Constant */ class Constant extends \Google\Protobuf\Internal\Message { protected $constant_kind; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int $null_value * null value. * @type bool $bool_value * boolean value. * @type int|string $int64_value * int64 value. * @type int|string $uint64_value * uint64 value. * @type float $double_value * double value. * @type string $string_value * string value. * @type string $bytes_value * bytes value. * @type \Google\Protobuf\Duration $duration_value * protobuf.Duration value. * Deprecated: duration is no longer considered a builtin cel type. * @type \Google\Protobuf\Timestamp $timestamp_value * protobuf.Timestamp value. * Deprecated: timestamp is no longer considered a builtin cel type. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Expr\V1Alpha1\Syntax::initOnce(); parent::__construct($data); } /** * null value. * * Generated from protobuf field .google.protobuf.NullValue null_value = 1; * @return int */ public function getNullValue() { return $this->readOneof(1); } /** * null value. * * Generated from protobuf field .google.protobuf.NullValue null_value = 1; * @param int $var * @return $this */ public function setNullValue($var) { GPBUtil::checkEnum($var, \Google\Protobuf\NullValue::class); $this->writeOneof(1, $var); return $this; } /** * boolean value. * * Generated from protobuf field bool bool_value = 2; * @return bool */ public function getBoolValue() { return $this->readOneof(2); } /** * boolean value. * * Generated from protobuf field bool bool_value = 2; * @param bool $var * @return $this */ public function setBoolValue($var) { GPBUtil::checkBool($var); $this->writeOneof(2, $var); return $this; } /** * int64 value. * * Generated from protobuf field int64 int64_value = 3; * @return int|string */ public function getInt64Value() { return $this->readOneof(3); } /** * int64 value. * * Generated from protobuf field int64 int64_value = 3; * @param int|string $var * @return $this */ public function setInt64Value($var) { GPBUtil::checkInt64($var); $this->writeOneof(3, $var); return $this; } /** * uint64 value. * * Generated from protobuf field uint64 uint64_value = 4; * @return int|string */ public function getUint64Value() { return $this->readOneof(4); } /** * uint64 value. * * Generated from protobuf field uint64 uint64_value = 4; * @param int|string $var * @return $this */ public function setUint64Value($var) { GPBUtil::checkUint64($var); $this->writeOneof(4, $var); return $this; } /** * double value. * * Generated from protobuf field double double_value = 5; * @return float */ public function getDoubleValue() { return $this->readOneof(5); } /** * double value. * * Generated from protobuf field double double_value = 5; * @param float $var * @return $this */ public function setDoubleValue($var) { GPBUtil::checkDouble($var); $this->writeOneof(5, $var); return $this; } /** * string value. * * Generated from protobuf field string string_value = 6; * @return string */ public function getStringValue() { return $this->readOneof(6); } /** * string value. * * Generated from protobuf field string string_value = 6; * @param string $var * @return $this */ public function setStringValue($var) { GPBUtil::checkString($var, True); $this->writeOneof(6, $var); return $this; } /** * bytes value. * * Generated from protobuf field bytes bytes_value = 7; * @return string */ public function getBytesValue() { return $this->readOneof(7); } /** * bytes value. * * Generated from protobuf field bytes bytes_value = 7; * @param string $var * @return $this */ public function setBytesValue($var) { GPBUtil::checkString($var, False); $this->writeOneof(7, $var); return $this; } /** * protobuf.Duration value. * Deprecated: duration is no longer considered a builtin cel type. * * Generated from protobuf field .google.protobuf.Duration duration_value = 8 [deprecated = true]; * @return \Google\Protobuf\Duration */ public function getDurationValue() { return $this->readOneof(8); } /** * protobuf.Duration value. * Deprecated: duration is no longer considered a builtin cel type. * * Generated from protobuf field .google.protobuf.Duration duration_value = 8 [deprecated = true]; * @param \Google\Protobuf\Duration $var * @return $this */ public function setDurationValue($var) { GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); $this->writeOneof(8, $var); return $this; } /** * protobuf.Timestamp value. * Deprecated: timestamp is no longer considered a builtin cel type. * * Generated from protobuf field .google.protobuf.Timestamp timestamp_value = 9 [deprecated = true]; * @return \Google\Protobuf\Timestamp */ public function getTimestampValue() { return $this->readOneof(9); } /** * protobuf.Timestamp value. * Deprecated: timestamp is no longer considered a builtin cel type. * * Generated from protobuf field .google.protobuf.Timestamp timestamp_value = 9 [deprecated = true]; * @param \Google\Protobuf\Timestamp $var * @return $this */ public function setTimestampValue($var) { GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); $this->writeOneof(9, $var); return $this; } /** * @return string */ public function getConstantKind() { return $this->whichOneof("constant_kind"); } } src/Api/Expr/V1alpha1/Decl.php000064400000012526151742727570011746 0ustar00google.api.expr.v1alpha1.Decl */ class Decl extends \Google\Protobuf\Internal\Message { /** * The fully qualified name of the declaration. * Declarations are organized in containers and this represents the full path * to the declaration in its container, as in `google.api.expr.Decl`. * Declarations used as [FunctionDecl.Overload][google.api.expr.v1alpha1.Decl.FunctionDecl.Overload] parameters may or may not * have a name depending on whether the overload is function declaration or a * function definition containing a result [Expr][google.api.expr.v1alpha1.Expr]. * * Generated from protobuf field string name = 1; */ private $name = ''; protected $decl_kind; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $name * The fully qualified name of the declaration. * Declarations are organized in containers and this represents the full path * to the declaration in its container, as in `google.api.expr.Decl`. * Declarations used as [FunctionDecl.Overload][google.api.expr.v1alpha1.Decl.FunctionDecl.Overload] parameters may or may not * have a name depending on whether the overload is function declaration or a * function definition containing a result [Expr][google.api.expr.v1alpha1.Expr]. * @type \Google\Api\Expr\V1alpha1\Decl\IdentDecl $ident * Identifier declaration. * @type \Google\Api\Expr\V1alpha1\Decl\FunctionDecl $function * Function declaration. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Expr\V1Alpha1\Checked::initOnce(); parent::__construct($data); } /** * The fully qualified name of the declaration. * Declarations are organized in containers and this represents the full path * to the declaration in its container, as in `google.api.expr.Decl`. * Declarations used as [FunctionDecl.Overload][google.api.expr.v1alpha1.Decl.FunctionDecl.Overload] parameters may or may not * have a name depending on whether the overload is function declaration or a * function definition containing a result [Expr][google.api.expr.v1alpha1.Expr]. * * Generated from protobuf field string name = 1; * @return string */ public function getName() { return $this->name; } /** * The fully qualified name of the declaration. * Declarations are organized in containers and this represents the full path * to the declaration in its container, as in `google.api.expr.Decl`. * Declarations used as [FunctionDecl.Overload][google.api.expr.v1alpha1.Decl.FunctionDecl.Overload] parameters may or may not * have a name depending on whether the overload is function declaration or a * function definition containing a result [Expr][google.api.expr.v1alpha1.Expr]. * * Generated from protobuf field string name = 1; * @param string $var * @return $this */ public function setName($var) { GPBUtil::checkString($var, True); $this->name = $var; return $this; } /** * Identifier declaration. * * Generated from protobuf field .google.api.expr.v1alpha1.Decl.IdentDecl ident = 2; * @return \Google\Api\Expr\V1alpha1\Decl\IdentDecl */ public function getIdent() { return $this->readOneof(2); } /** * Identifier declaration. * * Generated from protobuf field .google.api.expr.v1alpha1.Decl.IdentDecl ident = 2; * @param \Google\Api\Expr\V1alpha1\Decl\IdentDecl $var * @return $this */ public function setIdent($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1alpha1\Decl_IdentDecl::class); $this->writeOneof(2, $var); return $this; } /** * Function declaration. * * Generated from protobuf field .google.api.expr.v1alpha1.Decl.FunctionDecl function = 3; * @return \Google\Api\Expr\V1alpha1\Decl\FunctionDecl */ public function getFunction() { return $this->readOneof(3); } /** * Function declaration. * * Generated from protobuf field .google.api.expr.v1alpha1.Decl.FunctionDecl function = 3; * @param \Google\Api\Expr\V1alpha1\Decl\FunctionDecl $var * @return $this */ public function setFunction($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1alpha1\Decl_FunctionDecl::class); $this->writeOneof(3, $var); return $this; } /** * @return string */ public function getDeclKind() { return $this->whichOneof("decl_kind"); } } src/Api/Expr/V1alpha1/Decl/FunctionDecl.php000064400000005232151742727570014317 0ustar00google.api.expr.v1alpha1.Decl.FunctionDecl */ class FunctionDecl extends \Google\Protobuf\Internal\Message { /** * Required. List of function overloads, must contain at least one overload. * * Generated from protobuf field repeated .google.api.expr.v1alpha1.Decl.FunctionDecl.Overload overloads = 1; */ private $overloads; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Google\Api\Expr\V1alpha1\Decl\FunctionDecl\Overload[]|\Google\Protobuf\Internal\RepeatedField $overloads * Required. List of function overloads, must contain at least one overload. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Expr\V1Alpha1\Checked::initOnce(); parent::__construct($data); } /** * Required. List of function overloads, must contain at least one overload. * * Generated from protobuf field repeated .google.api.expr.v1alpha1.Decl.FunctionDecl.Overload overloads = 1; * @return \Google\Protobuf\Internal\RepeatedField */ public function getOverloads() { return $this->overloads; } /** * Required. List of function overloads, must contain at least one overload. * * Generated from protobuf field repeated .google.api.expr.v1alpha1.Decl.FunctionDecl.Overload overloads = 1; * @param \Google\Api\Expr\V1alpha1\Decl\FunctionDecl\Overload[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setOverloads($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Expr\V1alpha1\Decl\FunctionDecl\Overload::class); $this->overloads = $arr; return $this; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(FunctionDecl::class, \Google\Api\Expr\V1alpha1\Decl_FunctionDecl::class); src/Api/Expr/V1alpha1/Decl/FunctionDecl/Overload.php000064400000027675151742727570016111 0ustar00google.api.expr.v1alpha1.Decl.FunctionDecl.Overload */ class Overload extends \Google\Protobuf\Internal\Message { /** * Required. Globally unique overload name of the function which reflects * the function name and argument types. * This will be used by a [Reference][google.api.expr.v1alpha1.Reference] to indicate the `overload_id` that * was resolved for the function `name`. * * Generated from protobuf field string overload_id = 1; */ private $overload_id = ''; /** * List of function parameter [Type][google.api.expr.v1alpha1.Type] values. * Param types are disjoint after generic type parameters have been * replaced with the type `DYN`. Since the `DYN` type is compatible with * any other type, this means that if `A` is a type parameter, the * function types `int` and `int` are not disjoint. Likewise, * `map` is not disjoint from `map`. * When the `result_type` of a function is a generic type param, the * type param name also appears as the `type` of on at least one params. * * Generated from protobuf field repeated .google.api.expr.v1alpha1.Type params = 2; */ private $params; /** * The type param names associated with the function declaration. * For example, `function ex(K key, map map) : V` would yield * the type params of `K, V`. * * Generated from protobuf field repeated string type_params = 3; */ private $type_params; /** * Required. The result type of the function. For example, the operator * `string.isEmpty()` would have `result_type` of `kind: BOOL`. * * Generated from protobuf field .google.api.expr.v1alpha1.Type result_type = 4; */ private $result_type = null; /** * Whether the function is to be used in a method call-style `x.f(...)` * of a function call-style `f(x, ...)`. * For methods, the first parameter declaration, `params[0]` is the * expected type of the target receiver. * * Generated from protobuf field bool is_instance_function = 5; */ private $is_instance_function = false; /** * Documentation string for the overload. * * Generated from protobuf field string doc = 6; */ private $doc = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $overload_id * Required. Globally unique overload name of the function which reflects * the function name and argument types. * This will be used by a [Reference][google.api.expr.v1alpha1.Reference] to indicate the `overload_id` that * was resolved for the function `name`. * @type \Google\Api\Expr\V1alpha1\Type[]|\Google\Protobuf\Internal\RepeatedField $params * List of function parameter [Type][google.api.expr.v1alpha1.Type] values. * Param types are disjoint after generic type parameters have been * replaced with the type `DYN`. Since the `DYN` type is compatible with * any other type, this means that if `A` is a type parameter, the * function types `int` and `int` are not disjoint. Likewise, * `map` is not disjoint from `map`. * When the `result_type` of a function is a generic type param, the * type param name also appears as the `type` of on at least one params. * @type string[]|\Google\Protobuf\Internal\RepeatedField $type_params * The type param names associated with the function declaration. * For example, `function ex(K key, map map) : V` would yield * the type params of `K, V`. * @type \Google\Api\Expr\V1alpha1\Type $result_type * Required. The result type of the function. For example, the operator * `string.isEmpty()` would have `result_type` of `kind: BOOL`. * @type bool $is_instance_function * Whether the function is to be used in a method call-style `x.f(...)` * of a function call-style `f(x, ...)`. * For methods, the first parameter declaration, `params[0]` is the * expected type of the target receiver. * @type string $doc * Documentation string for the overload. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Expr\V1Alpha1\Checked::initOnce(); parent::__construct($data); } /** * Required. Globally unique overload name of the function which reflects * the function name and argument types. * This will be used by a [Reference][google.api.expr.v1alpha1.Reference] to indicate the `overload_id` that * was resolved for the function `name`. * * Generated from protobuf field string overload_id = 1; * @return string */ public function getOverloadId() { return $this->overload_id; } /** * Required. Globally unique overload name of the function which reflects * the function name and argument types. * This will be used by a [Reference][google.api.expr.v1alpha1.Reference] to indicate the `overload_id` that * was resolved for the function `name`. * * Generated from protobuf field string overload_id = 1; * @param string $var * @return $this */ public function setOverloadId($var) { GPBUtil::checkString($var, True); $this->overload_id = $var; return $this; } /** * List of function parameter [Type][google.api.expr.v1alpha1.Type] values. * Param types are disjoint after generic type parameters have been * replaced with the type `DYN`. Since the `DYN` type is compatible with * any other type, this means that if `A` is a type parameter, the * function types `int` and `int` are not disjoint. Likewise, * `map` is not disjoint from `map`. * When the `result_type` of a function is a generic type param, the * type param name also appears as the `type` of on at least one params. * * Generated from protobuf field repeated .google.api.expr.v1alpha1.Type params = 2; * @return \Google\Protobuf\Internal\RepeatedField */ public function getParams() { return $this->params; } /** * List of function parameter [Type][google.api.expr.v1alpha1.Type] values. * Param types are disjoint after generic type parameters have been * replaced with the type `DYN`. Since the `DYN` type is compatible with * any other type, this means that if `A` is a type parameter, the * function types `int` and `int` are not disjoint. Likewise, * `map` is not disjoint from `map`. * When the `result_type` of a function is a generic type param, the * type param name also appears as the `type` of on at least one params. * * Generated from protobuf field repeated .google.api.expr.v1alpha1.Type params = 2; * @param \Google\Api\Expr\V1alpha1\Type[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setParams($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Expr\V1alpha1\Type::class); $this->params = $arr; return $this; } /** * The type param names associated with the function declaration. * For example, `function ex(K key, map map) : V` would yield * the type params of `K, V`. * * Generated from protobuf field repeated string type_params = 3; * @return \Google\Protobuf\Internal\RepeatedField */ public function getTypeParams() { return $this->type_params; } /** * The type param names associated with the function declaration. * For example, `function ex(K key, map map) : V` would yield * the type params of `K, V`. * * Generated from protobuf field repeated string type_params = 3; * @param string[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setTypeParams($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); $this->type_params = $arr; return $this; } /** * Required. The result type of the function. For example, the operator * `string.isEmpty()` would have `result_type` of `kind: BOOL`. * * Generated from protobuf field .google.api.expr.v1alpha1.Type result_type = 4; * @return \Google\Api\Expr\V1alpha1\Type */ public function getResultType() { return $this->result_type; } /** * Required. The result type of the function. For example, the operator * `string.isEmpty()` would have `result_type` of `kind: BOOL`. * * Generated from protobuf field .google.api.expr.v1alpha1.Type result_type = 4; * @param \Google\Api\Expr\V1alpha1\Type $var * @return $this */ public function setResultType($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1alpha1\Type::class); $this->result_type = $var; return $this; } /** * Whether the function is to be used in a method call-style `x.f(...)` * of a function call-style `f(x, ...)`. * For methods, the first parameter declaration, `params[0]` is the * expected type of the target receiver. * * Generated from protobuf field bool is_instance_function = 5; * @return bool */ public function getIsInstanceFunction() { return $this->is_instance_function; } /** * Whether the function is to be used in a method call-style `x.f(...)` * of a function call-style `f(x, ...)`. * For methods, the first parameter declaration, `params[0]` is the * expected type of the target receiver. * * Generated from protobuf field bool is_instance_function = 5; * @param bool $var * @return $this */ public function setIsInstanceFunction($var) { GPBUtil::checkBool($var); $this->is_instance_function = $var; return $this; } /** * Documentation string for the overload. * * Generated from protobuf field string doc = 6; * @return string */ public function getDoc() { return $this->doc; } /** * Documentation string for the overload. * * Generated from protobuf field string doc = 6; * @param string $var * @return $this */ public function setDoc($var) { GPBUtil::checkString($var, True); $this->doc = $var; return $this; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Overload::class, \Google\Api\Expr\V1alpha1\Decl_FunctionDecl_Overload::class); src/Api/Expr/V1alpha1/Decl/IdentDecl.php000064400000010346151742727570013577 0ustar00google.api.expr.v1alpha1.Decl.IdentDecl */ class IdentDecl extends \Google\Protobuf\Internal\Message { /** * Required. The type of the identifier. * * Generated from protobuf field .google.api.expr.v1alpha1.Type type = 1; */ private $type = null; /** * The constant value of the identifier. If not specified, the identifier * must be supplied at evaluation time. * * Generated from protobuf field .google.api.expr.v1alpha1.Constant value = 2; */ private $value = null; /** * Documentation string for the identifier. * * Generated from protobuf field string doc = 3; */ private $doc = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Google\Api\Expr\V1alpha1\Type $type * Required. The type of the identifier. * @type \Google\Api\Expr\V1alpha1\Constant $value * The constant value of the identifier. If not specified, the identifier * must be supplied at evaluation time. * @type string $doc * Documentation string for the identifier. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Expr\V1Alpha1\Checked::initOnce(); parent::__construct($data); } /** * Required. The type of the identifier. * * Generated from protobuf field .google.api.expr.v1alpha1.Type type = 1; * @return \Google\Api\Expr\V1alpha1\Type */ public function getType() { return $this->type; } /** * Required. The type of the identifier. * * Generated from protobuf field .google.api.expr.v1alpha1.Type type = 1; * @param \Google\Api\Expr\V1alpha1\Type $var * @return $this */ public function setType($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1alpha1\Type::class); $this->type = $var; return $this; } /** * The constant value of the identifier. If not specified, the identifier * must be supplied at evaluation time. * * Generated from protobuf field .google.api.expr.v1alpha1.Constant value = 2; * @return \Google\Api\Expr\V1alpha1\Constant */ public function getValue() { return $this->value; } /** * The constant value of the identifier. If not specified, the identifier * must be supplied at evaluation time. * * Generated from protobuf field .google.api.expr.v1alpha1.Constant value = 2; * @param \Google\Api\Expr\V1alpha1\Constant $var * @return $this */ public function setValue($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1alpha1\Constant::class); $this->value = $var; return $this; } /** * Documentation string for the identifier. * * Generated from protobuf field string doc = 3; * @return string */ public function getDoc() { return $this->doc; } /** * Documentation string for the identifier. * * Generated from protobuf field string doc = 3; * @param string $var * @return $this */ public function setDoc($var) { GPBUtil::checkString($var, True); $this->doc = $var; return $this; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(IdentDecl::class, \Google\Api\Expr\V1alpha1\Decl_IdentDecl::class); src/Api/Expr/V1alpha1/Decl_FunctionDecl.php000064400000001060151742727570014372 0ustar00google.api.expr.v1alpha1.EnumValue */ class EnumValue extends \Google\Protobuf\Internal\Message { /** * The fully qualified name of the enum type. * * Generated from protobuf field string type = 1; */ private $type = ''; /** * The value of the enum. * * Generated from protobuf field int32 value = 2; */ private $value = 0; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $type * The fully qualified name of the enum type. * @type int $value * The value of the enum. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Expr\V1Alpha1\Value::initOnce(); parent::__construct($data); } /** * The fully qualified name of the enum type. * * Generated from protobuf field string type = 1; * @return string */ public function getType() { return $this->type; } /** * The fully qualified name of the enum type. * * Generated from protobuf field string type = 1; * @param string $var * @return $this */ public function setType($var) { GPBUtil::checkString($var, True); $this->type = $var; return $this; } /** * The value of the enum. * * Generated from protobuf field int32 value = 2; * @return int */ public function getValue() { return $this->value; } /** * The value of the enum. * * Generated from protobuf field int32 value = 2; * @param int $var * @return $this */ public function setValue($var) { GPBUtil::checkInt32($var); $this->value = $var; return $this; } } src/Api/Expr/V1alpha1/ErrorSet.php000064400000003472151742727570012644 0ustar00google.api.expr.v1alpha1.ErrorSet */ class ErrorSet extends \Google\Protobuf\Internal\Message { /** * The errors in the set. * * Generated from protobuf field repeated .google.rpc.Status errors = 1; */ private $errors; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Google\Rpc\Status[]|\Google\Protobuf\Internal\RepeatedField $errors * The errors in the set. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Expr\V1Alpha1\PBEval::initOnce(); parent::__construct($data); } /** * The errors in the set. * * Generated from protobuf field repeated .google.rpc.Status errors = 1; * @return \Google\Protobuf\Internal\RepeatedField */ public function getErrors() { return $this->errors; } /** * The errors in the set. * * Generated from protobuf field repeated .google.rpc.Status errors = 1; * @param \Google\Rpc\Status[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setErrors($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Rpc\Status::class); $this->errors = $arr; return $this; } } src/Api/Expr/V1alpha1/EvalRequest.php000064400000012750151742727570013336 0ustar00google.api.expr.v1alpha1.EvalRequest */ class EvalRequest extends \Google\Protobuf\Internal\Message { /** * Bindings for the external variables. The types SHOULD be compatible * with the type environment in [CheckRequest][google.api.expr.v1alpha1.CheckRequest], if checked. * * Generated from protobuf field map bindings = 3; */ private $bindings; /** * SHOULD be the same container as used in [CheckRequest][google.api.expr.v1alpha1.CheckRequest], if checked. * * Generated from protobuf field string container = 4; */ private $container = ''; protected $expr_kind; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Google\Api\Expr\V1alpha1\ParsedExpr $parsed_expr * Evaluate based on the parsed representation. * @type \Google\Api\Expr\V1alpha1\CheckedExpr $checked_expr * Evaluate based on the checked representation. * @type array|\Google\Protobuf\Internal\MapField $bindings * Bindings for the external variables. The types SHOULD be compatible * with the type environment in [CheckRequest][google.api.expr.v1alpha1.CheckRequest], if checked. * @type string $container * SHOULD be the same container as used in [CheckRequest][google.api.expr.v1alpha1.CheckRequest], if checked. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Expr\V1Alpha1\ConformanceService::initOnce(); parent::__construct($data); } /** * Evaluate based on the parsed representation. * * Generated from protobuf field .google.api.expr.v1alpha1.ParsedExpr parsed_expr = 1; * @return \Google\Api\Expr\V1alpha1\ParsedExpr */ public function getParsedExpr() { return $this->readOneof(1); } /** * Evaluate based on the parsed representation. * * Generated from protobuf field .google.api.expr.v1alpha1.ParsedExpr parsed_expr = 1; * @param \Google\Api\Expr\V1alpha1\ParsedExpr $var * @return $this */ public function setParsedExpr($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1alpha1\ParsedExpr::class); $this->writeOneof(1, $var); return $this; } /** * Evaluate based on the checked representation. * * Generated from protobuf field .google.api.expr.v1alpha1.CheckedExpr checked_expr = 2; * @return \Google\Api\Expr\V1alpha1\CheckedExpr */ public function getCheckedExpr() { return $this->readOneof(2); } /** * Evaluate based on the checked representation. * * Generated from protobuf field .google.api.expr.v1alpha1.CheckedExpr checked_expr = 2; * @param \Google\Api\Expr\V1alpha1\CheckedExpr $var * @return $this */ public function setCheckedExpr($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1alpha1\CheckedExpr::class); $this->writeOneof(2, $var); return $this; } /** * Bindings for the external variables. The types SHOULD be compatible * with the type environment in [CheckRequest][google.api.expr.v1alpha1.CheckRequest], if checked. * * Generated from protobuf field map bindings = 3; * @return \Google\Protobuf\Internal\MapField */ public function getBindings() { return $this->bindings; } /** * Bindings for the external variables. The types SHOULD be compatible * with the type environment in [CheckRequest][google.api.expr.v1alpha1.CheckRequest], if checked. * * Generated from protobuf field map bindings = 3; * @param array|\Google\Protobuf\Internal\MapField $var * @return $this */ public function setBindings($var) { $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Expr\V1alpha1\ExprValue::class); $this->bindings = $arr; return $this; } /** * SHOULD be the same container as used in [CheckRequest][google.api.expr.v1alpha1.CheckRequest], if checked. * * Generated from protobuf field string container = 4; * @return string */ public function getContainer() { return $this->container; } /** * SHOULD be the same container as used in [CheckRequest][google.api.expr.v1alpha1.CheckRequest], if checked. * * Generated from protobuf field string container = 4; * @param string $var * @return $this */ public function setContainer($var) { GPBUtil::checkString($var, True); $this->container = $var; return $this; } /** * @return string */ public function getExprKind() { return $this->whichOneof("expr_kind"); } } src/Api/Expr/V1alpha1/EvalResponse.php000064400000007652151742727570013511 0ustar00google.api.expr.v1alpha1.EvalResponse */ class EvalResponse extends \Google\Protobuf\Internal\Message { /** * The execution result, or unset if execution couldn't start. * * Generated from protobuf field .google.api.expr.v1alpha1.ExprValue result = 1; */ private $result = null; /** * Any number of issues with [StatusDetails][] as the details. * Note that CEL execution errors are reified into [ExprValue][google.api.expr.v1alpha1.ExprValue]. * Nevertheless, we'll allow out-of-band issues to be raised, * which also makes the replies more regular. * * Generated from protobuf field repeated .google.rpc.Status issues = 2; */ private $issues; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Google\Api\Expr\V1alpha1\ExprValue $result * The execution result, or unset if execution couldn't start. * @type \Google\Rpc\Status[]|\Google\Protobuf\Internal\RepeatedField $issues * Any number of issues with [StatusDetails][] as the details. * Note that CEL execution errors are reified into [ExprValue][google.api.expr.v1alpha1.ExprValue]. * Nevertheless, we'll allow out-of-band issues to be raised, * which also makes the replies more regular. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Expr\V1Alpha1\ConformanceService::initOnce(); parent::__construct($data); } /** * The execution result, or unset if execution couldn't start. * * Generated from protobuf field .google.api.expr.v1alpha1.ExprValue result = 1; * @return \Google\Api\Expr\V1alpha1\ExprValue */ public function getResult() { return $this->result; } /** * The execution result, or unset if execution couldn't start. * * Generated from protobuf field .google.api.expr.v1alpha1.ExprValue result = 1; * @param \Google\Api\Expr\V1alpha1\ExprValue $var * @return $this */ public function setResult($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1alpha1\ExprValue::class); $this->result = $var; return $this; } /** * Any number of issues with [StatusDetails][] as the details. * Note that CEL execution errors are reified into [ExprValue][google.api.expr.v1alpha1.ExprValue]. * Nevertheless, we'll allow out-of-band issues to be raised, * which also makes the replies more regular. * * Generated from protobuf field repeated .google.rpc.Status issues = 2; * @return \Google\Protobuf\Internal\RepeatedField */ public function getIssues() { return $this->issues; } /** * Any number of issues with [StatusDetails][] as the details. * Note that CEL execution errors are reified into [ExprValue][google.api.expr.v1alpha1.ExprValue]. * Nevertheless, we'll allow out-of-band issues to be raised, * which also makes the replies more regular. * * Generated from protobuf field repeated .google.rpc.Status issues = 2; * @param \Google\Rpc\Status[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setIssues($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Rpc\Status::class); $this->issues = $arr; return $this; } } src/Api/Expr/V1alpha1/EvalState.php000064400000007036151742727570012767 0ustar00google.api.expr.v1alpha1.EvalState */ class EvalState extends \Google\Protobuf\Internal\Message { /** * The unique values referenced in this message. * * Generated from protobuf field repeated .google.api.expr.v1alpha1.ExprValue values = 1; */ private $values; /** * An ordered list of results. * Tracks the flow of evaluation through the expression. * May be sparse. * * Generated from protobuf field repeated .google.api.expr.v1alpha1.EvalState.Result results = 3; */ private $results; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Google\Api\Expr\V1alpha1\ExprValue[]|\Google\Protobuf\Internal\RepeatedField $values * The unique values referenced in this message. * @type \Google\Api\Expr\V1alpha1\EvalState\Result[]|\Google\Protobuf\Internal\RepeatedField $results * An ordered list of results. * Tracks the flow of evaluation through the expression. * May be sparse. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Expr\V1Alpha1\PBEval::initOnce(); parent::__construct($data); } /** * The unique values referenced in this message. * * Generated from protobuf field repeated .google.api.expr.v1alpha1.ExprValue values = 1; * @return \Google\Protobuf\Internal\RepeatedField */ public function getValues() { return $this->values; } /** * The unique values referenced in this message. * * Generated from protobuf field repeated .google.api.expr.v1alpha1.ExprValue values = 1; * @param \Google\Api\Expr\V1alpha1\ExprValue[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setValues($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Expr\V1alpha1\ExprValue::class); $this->values = $arr; return $this; } /** * An ordered list of results. * Tracks the flow of evaluation through the expression. * May be sparse. * * Generated from protobuf field repeated .google.api.expr.v1alpha1.EvalState.Result results = 3; * @return \Google\Protobuf\Internal\RepeatedField */ public function getResults() { return $this->results; } /** * An ordered list of results. * Tracks the flow of evaluation through the expression. * May be sparse. * * Generated from protobuf field repeated .google.api.expr.v1alpha1.EvalState.Result results = 3; * @param \Google\Api\Expr\V1alpha1\EvalState\Result[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setResults($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Expr\V1alpha1\EvalState\Result::class); $this->results = $arr; return $this; } } src/Api/Expr/V1alpha1/EvalState/Result.php000064400000005046151742727570014244 0ustar00google.api.expr.v1alpha1.EvalState.Result */ class Result extends \Google\Protobuf\Internal\Message { /** * The id of the expression this result if for. * * Generated from protobuf field int64 expr = 1; */ private $expr = 0; /** * The index in `values` of the resulting value. * * Generated from protobuf field int64 value = 2; */ private $value = 0; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int|string $expr * The id of the expression this result if for. * @type int|string $value * The index in `values` of the resulting value. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Expr\V1Alpha1\PBEval::initOnce(); parent::__construct($data); } /** * The id of the expression this result if for. * * Generated from protobuf field int64 expr = 1; * @return int|string */ public function getExpr() { return $this->expr; } /** * The id of the expression this result if for. * * Generated from protobuf field int64 expr = 1; * @param int|string $var * @return $this */ public function setExpr($var) { GPBUtil::checkInt64($var); $this->expr = $var; return $this; } /** * The index in `values` of the resulting value. * * Generated from protobuf field int64 value = 2; * @return int|string */ public function getValue() { return $this->value; } /** * The index in `values` of the resulting value. * * Generated from protobuf field int64 value = 2; * @param int|string $var * @return $this */ public function setValue($var) { GPBUtil::checkInt64($var); $this->value = $var; return $this; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Result::class, \Google\Api\Expr\V1alpha1\EvalState_Result::class); src/Api/Expr/V1alpha1/EvalState_Result.php000064400000001050151742727570014313 0ustar00google.api.expr.v1alpha1.Explain */ class Explain extends \Google\Protobuf\Internal\Message { /** * All of the observed values. * The field value_index is an index in the values list. * Separating values from steps is needed to remove redundant values. * * Generated from protobuf field repeated .google.api.expr.v1alpha1.Value values = 1; */ private $values; /** * List of steps. * Repeated evaluations of the same expression generate new ExprStep * instances. The order of such ExprStep instances matches the order of * elements returned by Comprehension.iter_range. * * Generated from protobuf field repeated .google.api.expr.v1alpha1.Explain.ExprStep expr_steps = 2; */ private $expr_steps; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Google\Api\Expr\V1alpha1\Value[]|\Google\Protobuf\Internal\RepeatedField $values * All of the observed values. * The field value_index is an index in the values list. * Separating values from steps is needed to remove redundant values. * @type \Google\Api\Expr\V1alpha1\Explain\ExprStep[]|\Google\Protobuf\Internal\RepeatedField $expr_steps * List of steps. * Repeated evaluations of the same expression generate new ExprStep * instances. The order of such ExprStep instances matches the order of * elements returned by Comprehension.iter_range. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Expr\V1Alpha1\Explain::initOnce(); parent::__construct($data); } /** * All of the observed values. * The field value_index is an index in the values list. * Separating values from steps is needed to remove redundant values. * * Generated from protobuf field repeated .google.api.expr.v1alpha1.Value values = 1; * @return \Google\Protobuf\Internal\RepeatedField */ public function getValues() { return $this->values; } /** * All of the observed values. * The field value_index is an index in the values list. * Separating values from steps is needed to remove redundant values. * * Generated from protobuf field repeated .google.api.expr.v1alpha1.Value values = 1; * @param \Google\Api\Expr\V1alpha1\Value[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setValues($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Expr\V1alpha1\Value::class); $this->values = $arr; return $this; } /** * List of steps. * Repeated evaluations of the same expression generate new ExprStep * instances. The order of such ExprStep instances matches the order of * elements returned by Comprehension.iter_range. * * Generated from protobuf field repeated .google.api.expr.v1alpha1.Explain.ExprStep expr_steps = 2; * @return \Google\Protobuf\Internal\RepeatedField */ public function getExprSteps() { return $this->expr_steps; } /** * List of steps. * Repeated evaluations of the same expression generate new ExprStep * instances. The order of such ExprStep instances matches the order of * elements returned by Comprehension.iter_range. * * Generated from protobuf field repeated .google.api.expr.v1alpha1.Explain.ExprStep expr_steps = 2; * @param \Google\Api\Expr\V1alpha1\Explain\ExprStep[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setExprSteps($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Expr\V1alpha1\Explain\ExprStep::class); $this->expr_steps = $arr; return $this; } } src/Api/Expr/V1alpha1/Explain/ExprStep.php000064400000004752151742727570014253 0ustar00google.api.expr.v1alpha1.Explain.ExprStep */ class ExprStep extends \Google\Protobuf\Internal\Message { /** * ID of corresponding Expr node. * * Generated from protobuf field int64 id = 1; */ private $id = 0; /** * Index of the value in the values list. * * Generated from protobuf field int32 value_index = 2; */ private $value_index = 0; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int|string $id * ID of corresponding Expr node. * @type int $value_index * Index of the value in the values list. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Expr\V1Alpha1\Explain::initOnce(); parent::__construct($data); } /** * ID of corresponding Expr node. * * Generated from protobuf field int64 id = 1; * @return int|string */ public function getId() { return $this->id; } /** * ID of corresponding Expr node. * * Generated from protobuf field int64 id = 1; * @param int|string $var * @return $this */ public function setId($var) { GPBUtil::checkInt64($var); $this->id = $var; return $this; } /** * Index of the value in the values list. * * Generated from protobuf field int32 value_index = 2; * @return int */ public function getValueIndex() { return $this->value_index; } /** * Index of the value in the values list. * * Generated from protobuf field int32 value_index = 2; * @param int $var * @return $this */ public function setValueIndex($var) { GPBUtil::checkInt32($var); $this->value_index = $var; return $this; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(ExprStep::class, \Google\Api\Expr\V1alpha1\Explain_ExprStep::class); src/Api/Expr/V1alpha1/Explain_ExprStep.php000064400000001053151742727570014322 0ustar00google.api.expr.v1alpha1.Expr */ class Expr extends \Google\Protobuf\Internal\Message { /** * Required. An id assigned to this node by the parser which is unique in a * given expression tree. This is used to associate type information and other * attributes to a node in the parse tree. * * Generated from protobuf field int64 id = 2; */ private $id = 0; protected $expr_kind; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int|string $id * Required. An id assigned to this node by the parser which is unique in a * given expression tree. This is used to associate type information and other * attributes to a node in the parse tree. * @type \Google\Api\Expr\V1alpha1\Constant $const_expr * A literal expression. * @type \Google\Api\Expr\V1alpha1\Expr\Ident $ident_expr * An identifier expression. * @type \Google\Api\Expr\V1alpha1\Expr\Select $select_expr * A field selection expression, e.g. `request.auth`. * @type \Google\Api\Expr\V1alpha1\Expr\Call $call_expr * A call expression, including calls to predefined functions and operators. * @type \Google\Api\Expr\V1alpha1\Expr\CreateList $list_expr * A list creation expression. * @type \Google\Api\Expr\V1alpha1\Expr\CreateStruct $struct_expr * A map or message creation expression. * @type \Google\Api\Expr\V1alpha1\Expr\Comprehension $comprehension_expr * A comprehension expression. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Expr\V1Alpha1\Syntax::initOnce(); parent::__construct($data); } /** * Required. An id assigned to this node by the parser which is unique in a * given expression tree. This is used to associate type information and other * attributes to a node in the parse tree. * * Generated from protobuf field int64 id = 2; * @return int|string */ public function getId() { return $this->id; } /** * Required. An id assigned to this node by the parser which is unique in a * given expression tree. This is used to associate type information and other * attributes to a node in the parse tree. * * Generated from protobuf field int64 id = 2; * @param int|string $var * @return $this */ public function setId($var) { GPBUtil::checkInt64($var); $this->id = $var; return $this; } /** * A literal expression. * * Generated from protobuf field .google.api.expr.v1alpha1.Constant const_expr = 3; * @return \Google\Api\Expr\V1alpha1\Constant */ public function getConstExpr() { return $this->readOneof(3); } /** * A literal expression. * * Generated from protobuf field .google.api.expr.v1alpha1.Constant const_expr = 3; * @param \Google\Api\Expr\V1alpha1\Constant $var * @return $this */ public function setConstExpr($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1alpha1\Constant::class); $this->writeOneof(3, $var); return $this; } /** * An identifier expression. * * Generated from protobuf field .google.api.expr.v1alpha1.Expr.Ident ident_expr = 4; * @return \Google\Api\Expr\V1alpha1\Expr\Ident */ public function getIdentExpr() { return $this->readOneof(4); } /** * An identifier expression. * * Generated from protobuf field .google.api.expr.v1alpha1.Expr.Ident ident_expr = 4; * @param \Google\Api\Expr\V1alpha1\Expr\Ident $var * @return $this */ public function setIdentExpr($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1alpha1\Expr_Ident::class); $this->writeOneof(4, $var); return $this; } /** * A field selection expression, e.g. `request.auth`. * * Generated from protobuf field .google.api.expr.v1alpha1.Expr.Select select_expr = 5; * @return \Google\Api\Expr\V1alpha1\Expr\Select */ public function getSelectExpr() { return $this->readOneof(5); } /** * A field selection expression, e.g. `request.auth`. * * Generated from protobuf field .google.api.expr.v1alpha1.Expr.Select select_expr = 5; * @param \Google\Api\Expr\V1alpha1\Expr\Select $var * @return $this */ public function setSelectExpr($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1alpha1\Expr_Select::class); $this->writeOneof(5, $var); return $this; } /** * A call expression, including calls to predefined functions and operators. * * Generated from protobuf field .google.api.expr.v1alpha1.Expr.Call call_expr = 6; * @return \Google\Api\Expr\V1alpha1\Expr\Call */ public function getCallExpr() { return $this->readOneof(6); } /** * A call expression, including calls to predefined functions and operators. * * Generated from protobuf field .google.api.expr.v1alpha1.Expr.Call call_expr = 6; * @param \Google\Api\Expr\V1alpha1\Expr\Call $var * @return $this */ public function setCallExpr($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1alpha1\Expr_Call::class); $this->writeOneof(6, $var); return $this; } /** * A list creation expression. * * Generated from protobuf field .google.api.expr.v1alpha1.Expr.CreateList list_expr = 7; * @return \Google\Api\Expr\V1alpha1\Expr\CreateList */ public function getListExpr() { return $this->readOneof(7); } /** * A list creation expression. * * Generated from protobuf field .google.api.expr.v1alpha1.Expr.CreateList list_expr = 7; * @param \Google\Api\Expr\V1alpha1\Expr\CreateList $var * @return $this */ public function setListExpr($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1alpha1\Expr_CreateList::class); $this->writeOneof(7, $var); return $this; } /** * A map or message creation expression. * * Generated from protobuf field .google.api.expr.v1alpha1.Expr.CreateStruct struct_expr = 8; * @return \Google\Api\Expr\V1alpha1\Expr\CreateStruct */ public function getStructExpr() { return $this->readOneof(8); } /** * A map or message creation expression. * * Generated from protobuf field .google.api.expr.v1alpha1.Expr.CreateStruct struct_expr = 8; * @param \Google\Api\Expr\V1alpha1\Expr\CreateStruct $var * @return $this */ public function setStructExpr($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1alpha1\Expr_CreateStruct::class); $this->writeOneof(8, $var); return $this; } /** * A comprehension expression. * * Generated from protobuf field .google.api.expr.v1alpha1.Expr.Comprehension comprehension_expr = 9; * @return \Google\Api\Expr\V1alpha1\Expr\Comprehension */ public function getComprehensionExpr() { return $this->readOneof(9); } /** * A comprehension expression. * * Generated from protobuf field .google.api.expr.v1alpha1.Expr.Comprehension comprehension_expr = 9; * @param \Google\Api\Expr\V1alpha1\Expr\Comprehension $var * @return $this */ public function setComprehensionExpr($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1alpha1\Expr_Comprehension::class); $this->writeOneof(9, $var); return $this; } /** * @return string */ public function getExprKind() { return $this->whichOneof("expr_kind"); } } src/Api/Expr/V1alpha1/Expr/Call.php000064400000010103151742727570012655 0ustar00google.api.expr.v1alpha1.Expr.Call */ class Call extends \Google\Protobuf\Internal\Message { /** * The target of an method call-style expression. For example, `x` in * `x.f()`. * * Generated from protobuf field .google.api.expr.v1alpha1.Expr target = 1; */ private $target = null; /** * Required. The name of the function or method being called. * * Generated from protobuf field string function = 2; */ private $function = ''; /** * The arguments. * * Generated from protobuf field repeated .google.api.expr.v1alpha1.Expr args = 3; */ private $args; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Google\Api\Expr\V1alpha1\Expr $target * The target of an method call-style expression. For example, `x` in * `x.f()`. * @type string $function * Required. The name of the function or method being called. * @type \Google\Api\Expr\V1alpha1\Expr[]|\Google\Protobuf\Internal\RepeatedField $args * The arguments. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Expr\V1Alpha1\Syntax::initOnce(); parent::__construct($data); } /** * The target of an method call-style expression. For example, `x` in * `x.f()`. * * Generated from protobuf field .google.api.expr.v1alpha1.Expr target = 1; * @return \Google\Api\Expr\V1alpha1\Expr */ public function getTarget() { return $this->target; } /** * The target of an method call-style expression. For example, `x` in * `x.f()`. * * Generated from protobuf field .google.api.expr.v1alpha1.Expr target = 1; * @param \Google\Api\Expr\V1alpha1\Expr $var * @return $this */ public function setTarget($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1alpha1\Expr::class); $this->target = $var; return $this; } /** * Required. The name of the function or method being called. * * Generated from protobuf field string function = 2; * @return string */ public function getFunction() { return $this->function; } /** * Required. The name of the function or method being called. * * Generated from protobuf field string function = 2; * @param string $var * @return $this */ public function setFunction($var) { GPBUtil::checkString($var, True); $this->function = $var; return $this; } /** * The arguments. * * Generated from protobuf field repeated .google.api.expr.v1alpha1.Expr args = 3; * @return \Google\Protobuf\Internal\RepeatedField */ public function getArgs() { return $this->args; } /** * The arguments. * * Generated from protobuf field repeated .google.api.expr.v1alpha1.Expr args = 3; * @param \Google\Api\Expr\V1alpha1\Expr[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setArgs($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Expr\V1alpha1\Expr::class); $this->args = $arr; return $this; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Call::class, \Google\Api\Expr\V1alpha1\Expr_Call::class); src/Api/Expr/V1alpha1/Expr/Comprehension.php000064400000023621151742727570014624 0ustar00 1000)`. * * `map` - apply an expression to all elements in the input and return the * output aggregate type: `[1, 2, 3].map(i, i * i)`. * The `has(m.x)` macro tests whether the property `x` is present in struct * `m`. The semantics of this macro depend on the type of `m`. For proto2 * messages `has(m.x)` is defined as 'defined, but not set`. For proto3, the * macro tests whether the property is set to its default. For map and struct * types, the macro tests whether the property `x` is defined on `m`. * * Generated from protobuf message google.api.expr.v1alpha1.Expr.Comprehension */ class Comprehension extends \Google\Protobuf\Internal\Message { /** * The name of the iteration variable. * * Generated from protobuf field string iter_var = 1; */ private $iter_var = ''; /** * The range over which var iterates. * * Generated from protobuf field .google.api.expr.v1alpha1.Expr iter_range = 2; */ private $iter_range = null; /** * The name of the variable used for accumulation of the result. * * Generated from protobuf field string accu_var = 3; */ private $accu_var = ''; /** * The initial value of the accumulator. * * Generated from protobuf field .google.api.expr.v1alpha1.Expr accu_init = 4; */ private $accu_init = null; /** * An expression which can contain iter_var and accu_var. * Returns false when the result has been computed and may be used as * a hint to short-circuit the remainder of the comprehension. * * Generated from protobuf field .google.api.expr.v1alpha1.Expr loop_condition = 5; */ private $loop_condition = null; /** * An expression which can contain iter_var and accu_var. * Computes the next value of accu_var. * * Generated from protobuf field .google.api.expr.v1alpha1.Expr loop_step = 6; */ private $loop_step = null; /** * An expression which can contain accu_var. * Computes the result. * * Generated from protobuf field .google.api.expr.v1alpha1.Expr result = 7; */ private $result = null; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $iter_var * The name of the iteration variable. * @type \Google\Api\Expr\V1alpha1\Expr $iter_range * The range over which var iterates. * @type string $accu_var * The name of the variable used for accumulation of the result. * @type \Google\Api\Expr\V1alpha1\Expr $accu_init * The initial value of the accumulator. * @type \Google\Api\Expr\V1alpha1\Expr $loop_condition * An expression which can contain iter_var and accu_var. * Returns false when the result has been computed and may be used as * a hint to short-circuit the remainder of the comprehension. * @type \Google\Api\Expr\V1alpha1\Expr $loop_step * An expression which can contain iter_var and accu_var. * Computes the next value of accu_var. * @type \Google\Api\Expr\V1alpha1\Expr $result * An expression which can contain accu_var. * Computes the result. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Expr\V1Alpha1\Syntax::initOnce(); parent::__construct($data); } /** * The name of the iteration variable. * * Generated from protobuf field string iter_var = 1; * @return string */ public function getIterVar() { return $this->iter_var; } /** * The name of the iteration variable. * * Generated from protobuf field string iter_var = 1; * @param string $var * @return $this */ public function setIterVar($var) { GPBUtil::checkString($var, True); $this->iter_var = $var; return $this; } /** * The range over which var iterates. * * Generated from protobuf field .google.api.expr.v1alpha1.Expr iter_range = 2; * @return \Google\Api\Expr\V1alpha1\Expr */ public function getIterRange() { return $this->iter_range; } /** * The range over which var iterates. * * Generated from protobuf field .google.api.expr.v1alpha1.Expr iter_range = 2; * @param \Google\Api\Expr\V1alpha1\Expr $var * @return $this */ public function setIterRange($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1alpha1\Expr::class); $this->iter_range = $var; return $this; } /** * The name of the variable used for accumulation of the result. * * Generated from protobuf field string accu_var = 3; * @return string */ public function getAccuVar() { return $this->accu_var; } /** * The name of the variable used for accumulation of the result. * * Generated from protobuf field string accu_var = 3; * @param string $var * @return $this */ public function setAccuVar($var) { GPBUtil::checkString($var, True); $this->accu_var = $var; return $this; } /** * The initial value of the accumulator. * * Generated from protobuf field .google.api.expr.v1alpha1.Expr accu_init = 4; * @return \Google\Api\Expr\V1alpha1\Expr */ public function getAccuInit() { return $this->accu_init; } /** * The initial value of the accumulator. * * Generated from protobuf field .google.api.expr.v1alpha1.Expr accu_init = 4; * @param \Google\Api\Expr\V1alpha1\Expr $var * @return $this */ public function setAccuInit($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1alpha1\Expr::class); $this->accu_init = $var; return $this; } /** * An expression which can contain iter_var and accu_var. * Returns false when the result has been computed and may be used as * a hint to short-circuit the remainder of the comprehension. * * Generated from protobuf field .google.api.expr.v1alpha1.Expr loop_condition = 5; * @return \Google\Api\Expr\V1alpha1\Expr */ public function getLoopCondition() { return $this->loop_condition; } /** * An expression which can contain iter_var and accu_var. * Returns false when the result has been computed and may be used as * a hint to short-circuit the remainder of the comprehension. * * Generated from protobuf field .google.api.expr.v1alpha1.Expr loop_condition = 5; * @param \Google\Api\Expr\V1alpha1\Expr $var * @return $this */ public function setLoopCondition($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1alpha1\Expr::class); $this->loop_condition = $var; return $this; } /** * An expression which can contain iter_var and accu_var. * Computes the next value of accu_var. * * Generated from protobuf field .google.api.expr.v1alpha1.Expr loop_step = 6; * @return \Google\Api\Expr\V1alpha1\Expr */ public function getLoopStep() { return $this->loop_step; } /** * An expression which can contain iter_var and accu_var. * Computes the next value of accu_var. * * Generated from protobuf field .google.api.expr.v1alpha1.Expr loop_step = 6; * @param \Google\Api\Expr\V1alpha1\Expr $var * @return $this */ public function setLoopStep($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1alpha1\Expr::class); $this->loop_step = $var; return $this; } /** * An expression which can contain accu_var. * Computes the result. * * Generated from protobuf field .google.api.expr.v1alpha1.Expr result = 7; * @return \Google\Api\Expr\V1alpha1\Expr */ public function getResult() { return $this->result; } /** * An expression which can contain accu_var. * Computes the result. * * Generated from protobuf field .google.api.expr.v1alpha1.Expr result = 7; * @param \Google\Api\Expr\V1alpha1\Expr $var * @return $this */ public function setResult($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1alpha1\Expr::class); $this->result = $var; return $this; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Comprehension::class, \Google\Api\Expr\V1alpha1\Expr_Comprehension::class); src/Api/Expr/V1alpha1/Expr/CreateList.php000064400000004226151742727570014052 0ustar00google.api.expr.v1alpha1.Expr.CreateList */ class CreateList extends \Google\Protobuf\Internal\Message { /** * The elements part of the list. * * Generated from protobuf field repeated .google.api.expr.v1alpha1.Expr elements = 1; */ private $elements; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Google\Api\Expr\V1alpha1\Expr[]|\Google\Protobuf\Internal\RepeatedField $elements * The elements part of the list. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Expr\V1Alpha1\Syntax::initOnce(); parent::__construct($data); } /** * The elements part of the list. * * Generated from protobuf field repeated .google.api.expr.v1alpha1.Expr elements = 1; * @return \Google\Protobuf\Internal\RepeatedField */ public function getElements() { return $this->elements; } /** * The elements part of the list. * * Generated from protobuf field repeated .google.api.expr.v1alpha1.Expr elements = 1; * @param \Google\Api\Expr\V1alpha1\Expr[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setElements($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Expr\V1alpha1\Expr::class); $this->elements = $arr; return $this; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(CreateList::class, \Google\Api\Expr\V1alpha1\Expr_CreateList::class); src/Api/Expr/V1alpha1/Expr/CreateStruct.php000064400000006653151742727570014431 0ustar00google.api.expr.v1alpha1.Expr.CreateStruct */ class CreateStruct extends \Google\Protobuf\Internal\Message { /** * The type name of the message to be created, empty when creating map * literals. * * Generated from protobuf field string message_name = 1; */ private $message_name = ''; /** * The entries in the creation expression. * * Generated from protobuf field repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2; */ private $entries; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $message_name * The type name of the message to be created, empty when creating map * literals. * @type \Google\Api\Expr\V1alpha1\Expr\CreateStruct\Entry[]|\Google\Protobuf\Internal\RepeatedField $entries * The entries in the creation expression. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Expr\V1Alpha1\Syntax::initOnce(); parent::__construct($data); } /** * The type name of the message to be created, empty when creating map * literals. * * Generated from protobuf field string message_name = 1; * @return string */ public function getMessageName() { return $this->message_name; } /** * The type name of the message to be created, empty when creating map * literals. * * Generated from protobuf field string message_name = 1; * @param string $var * @return $this */ public function setMessageName($var) { GPBUtil::checkString($var, True); $this->message_name = $var; return $this; } /** * The entries in the creation expression. * * Generated from protobuf field repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2; * @return \Google\Protobuf\Internal\RepeatedField */ public function getEntries() { return $this->entries; } /** * The entries in the creation expression. * * Generated from protobuf field repeated .google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2; * @param \Google\Api\Expr\V1alpha1\Expr\CreateStruct\Entry[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setEntries($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Expr\V1alpha1\Expr\CreateStruct\Entry::class); $this->entries = $arr; return $this; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(CreateStruct::class, \Google\Api\Expr\V1alpha1\Expr_CreateStruct::class); src/Api/Expr/V1alpha1/Expr/CreateStruct/Entry.php000064400000011672151742727570015527 0ustar00google.api.expr.v1alpha1.Expr.CreateStruct.Entry */ class Entry extends \Google\Protobuf\Internal\Message { /** * Required. An id assigned to this node by the parser which is unique * in a given expression tree. This is used to associate type * information and other attributes to the node. * * Generated from protobuf field int64 id = 1; */ private $id = 0; /** * Required. The value assigned to the key. * * Generated from protobuf field .google.api.expr.v1alpha1.Expr value = 4; */ private $value = null; protected $key_kind; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int|string $id * Required. An id assigned to this node by the parser which is unique * in a given expression tree. This is used to associate type * information and other attributes to the node. * @type string $field_key * The field key for a message creator statement. * @type \Google\Api\Expr\V1alpha1\Expr $map_key * The key expression for a map creation statement. * @type \Google\Api\Expr\V1alpha1\Expr $value * Required. The value assigned to the key. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Expr\V1Alpha1\Syntax::initOnce(); parent::__construct($data); } /** * Required. An id assigned to this node by the parser which is unique * in a given expression tree. This is used to associate type * information and other attributes to the node. * * Generated from protobuf field int64 id = 1; * @return int|string */ public function getId() { return $this->id; } /** * Required. An id assigned to this node by the parser which is unique * in a given expression tree. This is used to associate type * information and other attributes to the node. * * Generated from protobuf field int64 id = 1; * @param int|string $var * @return $this */ public function setId($var) { GPBUtil::checkInt64($var); $this->id = $var; return $this; } /** * The field key for a message creator statement. * * Generated from protobuf field string field_key = 2; * @return string */ public function getFieldKey() { return $this->readOneof(2); } /** * The field key for a message creator statement. * * Generated from protobuf field string field_key = 2; * @param string $var * @return $this */ public function setFieldKey($var) { GPBUtil::checkString($var, True); $this->writeOneof(2, $var); return $this; } /** * The key expression for a map creation statement. * * Generated from protobuf field .google.api.expr.v1alpha1.Expr map_key = 3; * @return \Google\Api\Expr\V1alpha1\Expr */ public function getMapKey() { return $this->readOneof(3); } /** * The key expression for a map creation statement. * * Generated from protobuf field .google.api.expr.v1alpha1.Expr map_key = 3; * @param \Google\Api\Expr\V1alpha1\Expr $var * @return $this */ public function setMapKey($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1alpha1\Expr::class); $this->writeOneof(3, $var); return $this; } /** * Required. The value assigned to the key. * * Generated from protobuf field .google.api.expr.v1alpha1.Expr value = 4; * @return \Google\Api\Expr\V1alpha1\Expr */ public function getValue() { return $this->value; } /** * Required. The value assigned to the key. * * Generated from protobuf field .google.api.expr.v1alpha1.Expr value = 4; * @param \Google\Api\Expr\V1alpha1\Expr $var * @return $this */ public function setValue($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1alpha1\Expr::class); $this->value = $var; return $this; } /** * @return string */ public function getKeyKind() { return $this->whichOneof("key_kind"); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Entry::class, \Google\Api\Expr\V1alpha1\Expr_CreateStruct_Entry::class); src/Api/Expr/V1alpha1/Expr/Ident.php000064400000004513151742727570013055 0ustar00google.api.expr.v1alpha1.Expr.Ident */ class Ident extends \Google\Protobuf\Internal\Message { /** * Required. Holds a single, unqualified identifier, possibly preceded by a * '.'. * Qualified names are represented by the [Expr.Select][google.api.expr.v1alpha1.Expr.Select] expression. * * Generated from protobuf field string name = 1; */ private $name = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $name * Required. Holds a single, unqualified identifier, possibly preceded by a * '.'. * Qualified names are represented by the [Expr.Select][google.api.expr.v1alpha1.Expr.Select] expression. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Expr\V1Alpha1\Syntax::initOnce(); parent::__construct($data); } /** * Required. Holds a single, unqualified identifier, possibly preceded by a * '.'. * Qualified names are represented by the [Expr.Select][google.api.expr.v1alpha1.Expr.Select] expression. * * Generated from protobuf field string name = 1; * @return string */ public function getName() { return $this->name; } /** * Required. Holds a single, unqualified identifier, possibly preceded by a * '.'. * Qualified names are represented by the [Expr.Select][google.api.expr.v1alpha1.Expr.Select] expression. * * Generated from protobuf field string name = 1; * @param string $var * @return $this */ public function setName($var) { GPBUtil::checkString($var, True); $this->name = $var; return $this; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Ident::class, \Google\Api\Expr\V1alpha1\Expr_Ident::class); src/Api/Expr/V1alpha1/Expr/Select.php000064400000011660151742727570013232 0ustar00google.api.expr.v1alpha1.Expr.Select */ class Select extends \Google\Protobuf\Internal\Message { /** * Required. The target of the selection expression. * For example, in the select expression `request.auth`, the `request` * portion of the expression is the `operand`. * * Generated from protobuf field .google.api.expr.v1alpha1.Expr operand = 1; */ private $operand = null; /** * Required. The name of the field to select. * For example, in the select expression `request.auth`, the `auth` portion * of the expression would be the `field`. * * Generated from protobuf field string field = 2; */ private $field = ''; /** * Whether the select is to be interpreted as a field presence test. * This results from the macro `has(request.auth)`. * * Generated from protobuf field bool test_only = 3; */ private $test_only = false; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Google\Api\Expr\V1alpha1\Expr $operand * Required. The target of the selection expression. * For example, in the select expression `request.auth`, the `request` * portion of the expression is the `operand`. * @type string $field * Required. The name of the field to select. * For example, in the select expression `request.auth`, the `auth` portion * of the expression would be the `field`. * @type bool $test_only * Whether the select is to be interpreted as a field presence test. * This results from the macro `has(request.auth)`. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Expr\V1Alpha1\Syntax::initOnce(); parent::__construct($data); } /** * Required. The target of the selection expression. * For example, in the select expression `request.auth`, the `request` * portion of the expression is the `operand`. * * Generated from protobuf field .google.api.expr.v1alpha1.Expr operand = 1; * @return \Google\Api\Expr\V1alpha1\Expr */ public function getOperand() { return $this->operand; } /** * Required. The target of the selection expression. * For example, in the select expression `request.auth`, the `request` * portion of the expression is the `operand`. * * Generated from protobuf field .google.api.expr.v1alpha1.Expr operand = 1; * @param \Google\Api\Expr\V1alpha1\Expr $var * @return $this */ public function setOperand($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1alpha1\Expr::class); $this->operand = $var; return $this; } /** * Required. The name of the field to select. * For example, in the select expression `request.auth`, the `auth` portion * of the expression would be the `field`. * * Generated from protobuf field string field = 2; * @return string */ public function getField() { return $this->field; } /** * Required. The name of the field to select. * For example, in the select expression `request.auth`, the `auth` portion * of the expression would be the `field`. * * Generated from protobuf field string field = 2; * @param string $var * @return $this */ public function setField($var) { GPBUtil::checkString($var, True); $this->field = $var; return $this; } /** * Whether the select is to be interpreted as a field presence test. * This results from the macro `has(request.auth)`. * * Generated from protobuf field bool test_only = 3; * @return bool */ public function getTestOnly() { return $this->test_only; } /** * Whether the select is to be interpreted as a field presence test. * This results from the macro `has(request.auth)`. * * Generated from protobuf field bool test_only = 3; * @param bool $var * @return $this */ public function setTestOnly($var) { GPBUtil::checkBool($var); $this->test_only = $var; return $this; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Select::class, \Google\Api\Expr\V1alpha1\Expr_Select::class); src/Api/Expr/V1alpha1/ExprValue.php000064400000021420151742727570013003 0ustar00google.api.expr.v1alpha1.ExprValue */ class ExprValue extends \Google\Protobuf\Internal\Message { protected $kind; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Google\Api\Expr\V1alpha1\Value $value * A concrete value. * @type \Google\Api\Expr\V1alpha1\ErrorSet $error * The set of errors in the critical path of evalution. * Only errors in the critical path are included. For example, * `( || true) && ` will only result in ``, * while ` || ` will result in both `` and * ``. * Errors cause by the presence of other errors are not included in the * set. For example `.foo`, `foo()`, and ` + 1` will * only result in ``. * Multiple errors *might* be included when evaluation could result * in different errors. For example ` + ` and * `foo(, )` may result in ``, `` or both. * The exact subset of errors included for this case is unspecified and * depends on the implementation details of the evaluator. * @type \Google\Api\Expr\V1alpha1\UnknownSet $unknown * The set of unknowns in the critical path of evaluation. * Unknown behaves identically to Error with regards to propagation. * Specifically, only unknowns in the critical path are included, unknowns * caused by the presence of other unknowns are not included, and multiple * unknowns *might* be included included when evaluation could result in * different unknowns. For example: * ( || true) && -> * || -> * .foo -> * foo() -> * + -> or * Unknown takes precidence over Error in cases where a `Value` can short * circuit the result: * || -> * && -> * Errors take precidence in all other cases: * + -> * foo(, ) -> * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Expr\V1Alpha1\PBEval::initOnce(); parent::__construct($data); } /** * A concrete value. * * Generated from protobuf field .google.api.expr.v1alpha1.Value value = 1; * @return \Google\Api\Expr\V1alpha1\Value */ public function getValue() { return $this->readOneof(1); } /** * A concrete value. * * Generated from protobuf field .google.api.expr.v1alpha1.Value value = 1; * @param \Google\Api\Expr\V1alpha1\Value $var * @return $this */ public function setValue($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1alpha1\Value::class); $this->writeOneof(1, $var); return $this; } /** * The set of errors in the critical path of evalution. * Only errors in the critical path are included. For example, * `( || true) && ` will only result in ``, * while ` || ` will result in both `` and * ``. * Errors cause by the presence of other errors are not included in the * set. For example `.foo`, `foo()`, and ` + 1` will * only result in ``. * Multiple errors *might* be included when evaluation could result * in different errors. For example ` + ` and * `foo(, )` may result in ``, `` or both. * The exact subset of errors included for this case is unspecified and * depends on the implementation details of the evaluator. * * Generated from protobuf field .google.api.expr.v1alpha1.ErrorSet error = 2; * @return \Google\Api\Expr\V1alpha1\ErrorSet */ public function getError() { return $this->readOneof(2); } /** * The set of errors in the critical path of evalution. * Only errors in the critical path are included. For example, * `( || true) && ` will only result in ``, * while ` || ` will result in both `` and * ``. * Errors cause by the presence of other errors are not included in the * set. For example `.foo`, `foo()`, and ` + 1` will * only result in ``. * Multiple errors *might* be included when evaluation could result * in different errors. For example ` + ` and * `foo(, )` may result in ``, `` or both. * The exact subset of errors included for this case is unspecified and * depends on the implementation details of the evaluator. * * Generated from protobuf field .google.api.expr.v1alpha1.ErrorSet error = 2; * @param \Google\Api\Expr\V1alpha1\ErrorSet $var * @return $this */ public function setError($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1alpha1\ErrorSet::class); $this->writeOneof(2, $var); return $this; } /** * The set of unknowns in the critical path of evaluation. * Unknown behaves identically to Error with regards to propagation. * Specifically, only unknowns in the critical path are included, unknowns * caused by the presence of other unknowns are not included, and multiple * unknowns *might* be included included when evaluation could result in * different unknowns. For example: * ( || true) && -> * || -> * .foo -> * foo() -> * + -> or * Unknown takes precidence over Error in cases where a `Value` can short * circuit the result: * || -> * && -> * Errors take precidence in all other cases: * + -> * foo(, ) -> * * Generated from protobuf field .google.api.expr.v1alpha1.UnknownSet unknown = 3; * @return \Google\Api\Expr\V1alpha1\UnknownSet */ public function getUnknown() { return $this->readOneof(3); } /** * The set of unknowns in the critical path of evaluation. * Unknown behaves identically to Error with regards to propagation. * Specifically, only unknowns in the critical path are included, unknowns * caused by the presence of other unknowns are not included, and multiple * unknowns *might* be included included when evaluation could result in * different unknowns. For example: * ( || true) && -> * || -> * .foo -> * foo() -> * + -> or * Unknown takes precidence over Error in cases where a `Value` can short * circuit the result: * || -> * && -> * Errors take precidence in all other cases: * + -> * foo(, ) -> * * Generated from protobuf field .google.api.expr.v1alpha1.UnknownSet unknown = 3; * @param \Google\Api\Expr\V1alpha1\UnknownSet $var * @return $this */ public function setUnknown($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1alpha1\UnknownSet::class); $this->writeOneof(3, $var); return $this; } /** * @return string */ public function getKind() { return $this->whichOneof("kind"); } } src/Api/Expr/V1alpha1/Expr_Call.php000064400000001007151742727570012740 0ustar00google.api.expr.v1alpha1.IssueDetails */ class IssueDetails extends \Google\Protobuf\Internal\Message { /** * The severity of the issue. * * Generated from protobuf field .google.api.expr.v1alpha1.IssueDetails.Severity severity = 1; */ private $severity = 0; /** * Position in the source, if known. * * Generated from protobuf field .google.api.expr.v1alpha1.SourcePosition position = 2; */ private $position = null; /** * Expression ID from [Expr][google.api.expr.v1alpha1.Expr], 0 if unknown. * * Generated from protobuf field int64 id = 3; */ private $id = 0; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int $severity * The severity of the issue. * @type \Google\Api\Expr\V1alpha1\SourcePosition $position * Position in the source, if known. * @type int|string $id * Expression ID from [Expr][google.api.expr.v1alpha1.Expr], 0 if unknown. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Expr\V1Alpha1\ConformanceService::initOnce(); parent::__construct($data); } /** * The severity of the issue. * * Generated from protobuf field .google.api.expr.v1alpha1.IssueDetails.Severity severity = 1; * @return int */ public function getSeverity() { return $this->severity; } /** * The severity of the issue. * * Generated from protobuf field .google.api.expr.v1alpha1.IssueDetails.Severity severity = 1; * @param int $var * @return $this */ public function setSeverity($var) { GPBUtil::checkEnum($var, \Google\Api\Expr\V1alpha1\IssueDetails_Severity::class); $this->severity = $var; return $this; } /** * Position in the source, if known. * * Generated from protobuf field .google.api.expr.v1alpha1.SourcePosition position = 2; * @return \Google\Api\Expr\V1alpha1\SourcePosition */ public function getPosition() { return $this->position; } /** * Position in the source, if known. * * Generated from protobuf field .google.api.expr.v1alpha1.SourcePosition position = 2; * @param \Google\Api\Expr\V1alpha1\SourcePosition $var * @return $this */ public function setPosition($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1alpha1\SourcePosition::class); $this->position = $var; return $this; } /** * Expression ID from [Expr][google.api.expr.v1alpha1.Expr], 0 if unknown. * * Generated from protobuf field int64 id = 3; * @return int|string */ public function getId() { return $this->id; } /** * Expression ID from [Expr][google.api.expr.v1alpha1.Expr], 0 if unknown. * * Generated from protobuf field int64 id = 3; * @param int|string $var * @return $this */ public function setId($var) { GPBUtil::checkInt64($var); $this->id = $var; return $this; } } src/Api/Expr/V1alpha1/IssueDetails/Severity.php000064400000004017151742727570015303 0ustar00google.api.expr.v1alpha1.IssueDetails.Severity */ class Severity { /** * An unspecified severity. * * Generated from protobuf enum SEVERITY_UNSPECIFIED = 0; */ const SEVERITY_UNSPECIFIED = 0; /** * Deprecation issue for statements and method that may no longer be * supported or maintained. * * Generated from protobuf enum DEPRECATION = 1; */ const DEPRECATION = 1; /** * Warnings such as: unused variables. * * Generated from protobuf enum WARNING = 2; */ const WARNING = 2; /** * Errors such as: unmatched curly braces or variable redefinition. * * Generated from protobuf enum ERROR = 3; */ const ERROR = 3; private static $valueToName = [ self::SEVERITY_UNSPECIFIED => 'SEVERITY_UNSPECIFIED', self::DEPRECATION => 'DEPRECATION', self::WARNING => 'WARNING', self::ERROR => 'ERROR', ]; public static function name($value) { if (!isset(self::$valueToName[$value])) { throw new UnexpectedValueException(sprintf( 'Enum %s has no name defined for value %s', __CLASS__, $value)); } return self::$valueToName[$value]; } public static function value($name) { $const = __CLASS__ . '::' . strtoupper($name); if (!defined($const)) { throw new UnexpectedValueException(sprintf( 'Enum %s has no value defined for name %s', __CLASS__, $name)); } return constant($const); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Severity::class, \Google\Api\Expr\V1alpha1\IssueDetails_Severity::class); src/Api/Expr/V1alpha1/IssueDetails_Severity.php000064400000001120151742727570015353 0ustar00google.api.expr.v1alpha1.ListValue */ class ListValue extends \Google\Protobuf\Internal\Message { /** * The ordered values in the list. * * Generated from protobuf field repeated .google.api.expr.v1alpha1.Value values = 1; */ private $values; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Google\Api\Expr\V1alpha1\Value[]|\Google\Protobuf\Internal\RepeatedField $values * The ordered values in the list. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Expr\V1Alpha1\Value::initOnce(); parent::__construct($data); } /** * The ordered values in the list. * * Generated from protobuf field repeated .google.api.expr.v1alpha1.Value values = 1; * @return \Google\Protobuf\Internal\RepeatedField */ public function getValues() { return $this->values; } /** * The ordered values in the list. * * Generated from protobuf field repeated .google.api.expr.v1alpha1.Value values = 1; * @param \Google\Api\Expr\V1alpha1\Value[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setValues($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Expr\V1alpha1\Value::class); $this->values = $arr; return $this; } } src/Api/Expr/V1alpha1/MapValue.php000064400000004611151742727570012605 0ustar00google.api.expr.v1alpha1.MapValue */ class MapValue extends \Google\Protobuf\Internal\Message { /** * The set of map entries. * CEL has fewer restrictions on keys, so a protobuf map represenation * cannot be used. * * Generated from protobuf field repeated .google.api.expr.v1alpha1.MapValue.Entry entries = 1; */ private $entries; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Google\Api\Expr\V1alpha1\MapValue\Entry[]|\Google\Protobuf\Internal\RepeatedField $entries * The set of map entries. * CEL has fewer restrictions on keys, so a protobuf map represenation * cannot be used. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Expr\V1Alpha1\Value::initOnce(); parent::__construct($data); } /** * The set of map entries. * CEL has fewer restrictions on keys, so a protobuf map represenation * cannot be used. * * Generated from protobuf field repeated .google.api.expr.v1alpha1.MapValue.Entry entries = 1; * @return \Google\Protobuf\Internal\RepeatedField */ public function getEntries() { return $this->entries; } /** * The set of map entries. * CEL has fewer restrictions on keys, so a protobuf map represenation * cannot be used. * * Generated from protobuf field repeated .google.api.expr.v1alpha1.MapValue.Entry entries = 1; * @param \Google\Api\Expr\V1alpha1\MapValue\Entry[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setEntries($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Expr\V1alpha1\MapValue\Entry::class); $this->entries = $arr; return $this; } } src/Api/Expr/V1alpha1/MapValue/Entry.php000064400000006074151742727570013713 0ustar00google.api.expr.v1alpha1.MapValue.Entry */ class Entry extends \Google\Protobuf\Internal\Message { /** * The key. * Must be unique with in the map. * Currently only boolean, int, uint, and string values can be keys. * * Generated from protobuf field .google.api.expr.v1alpha1.Value key = 1; */ private $key = null; /** * The value. * * Generated from protobuf field .google.api.expr.v1alpha1.Value value = 2; */ private $value = null; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Google\Api\Expr\V1alpha1\Value $key * The key. * Must be unique with in the map. * Currently only boolean, int, uint, and string values can be keys. * @type \Google\Api\Expr\V1alpha1\Value $value * The value. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Expr\V1Alpha1\Value::initOnce(); parent::__construct($data); } /** * The key. * Must be unique with in the map. * Currently only boolean, int, uint, and string values can be keys. * * Generated from protobuf field .google.api.expr.v1alpha1.Value key = 1; * @return \Google\Api\Expr\V1alpha1\Value */ public function getKey() { return $this->key; } /** * The key. * Must be unique with in the map. * Currently only boolean, int, uint, and string values can be keys. * * Generated from protobuf field .google.api.expr.v1alpha1.Value key = 1; * @param \Google\Api\Expr\V1alpha1\Value $var * @return $this */ public function setKey($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1alpha1\Value::class); $this->key = $var; return $this; } /** * The value. * * Generated from protobuf field .google.api.expr.v1alpha1.Value value = 2; * @return \Google\Api\Expr\V1alpha1\Value */ public function getValue() { return $this->value; } /** * The value. * * Generated from protobuf field .google.api.expr.v1alpha1.Value value = 2; * @param \Google\Api\Expr\V1alpha1\Value $var * @return $this */ public function setValue($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1alpha1\Value::class); $this->value = $var; return $this; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Entry::class, \Google\Api\Expr\V1alpha1\MapValue_Entry::class); src/Api/Expr/V1alpha1/MapValue_Entry.php000064400000001037151742727570013765 0ustar00google.api.expr.v1alpha1.ParseRequest */ class ParseRequest extends \Google\Protobuf\Internal\Message { /** * Required. Source text in CEL syntax. * * Generated from protobuf field string cel_source = 1 [(.google.api.field_behavior) = REQUIRED]; */ private $cel_source = ''; /** * Tag for version of CEL syntax, for future use. * * Generated from protobuf field string syntax_version = 2; */ private $syntax_version = ''; /** * File or resource for source text, used in [SourceInfo][google.api.expr.v1alpha1.SourceInfo]. * * Generated from protobuf field string source_location = 3; */ private $source_location = ''; /** * Prevent macro expansion. See "Macros" in Language Defiinition. * * Generated from protobuf field bool disable_macros = 4; */ private $disable_macros = false; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $cel_source * Required. Source text in CEL syntax. * @type string $syntax_version * Tag for version of CEL syntax, for future use. * @type string $source_location * File or resource for source text, used in [SourceInfo][google.api.expr.v1alpha1.SourceInfo]. * @type bool $disable_macros * Prevent macro expansion. See "Macros" in Language Defiinition. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Expr\V1Alpha1\ConformanceService::initOnce(); parent::__construct($data); } /** * Required. Source text in CEL syntax. * * Generated from protobuf field string cel_source = 1 [(.google.api.field_behavior) = REQUIRED]; * @return string */ public function getCelSource() { return $this->cel_source; } /** * Required. Source text in CEL syntax. * * Generated from protobuf field string cel_source = 1 [(.google.api.field_behavior) = REQUIRED]; * @param string $var * @return $this */ public function setCelSource($var) { GPBUtil::checkString($var, True); $this->cel_source = $var; return $this; } /** * Tag for version of CEL syntax, for future use. * * Generated from protobuf field string syntax_version = 2; * @return string */ public function getSyntaxVersion() { return $this->syntax_version; } /** * Tag for version of CEL syntax, for future use. * * Generated from protobuf field string syntax_version = 2; * @param string $var * @return $this */ public function setSyntaxVersion($var) { GPBUtil::checkString($var, True); $this->syntax_version = $var; return $this; } /** * File or resource for source text, used in [SourceInfo][google.api.expr.v1alpha1.SourceInfo]. * * Generated from protobuf field string source_location = 3; * @return string */ public function getSourceLocation() { return $this->source_location; } /** * File or resource for source text, used in [SourceInfo][google.api.expr.v1alpha1.SourceInfo]. * * Generated from protobuf field string source_location = 3; * @param string $var * @return $this */ public function setSourceLocation($var) { GPBUtil::checkString($var, True); $this->source_location = $var; return $this; } /** * Prevent macro expansion. See "Macros" in Language Defiinition. * * Generated from protobuf field bool disable_macros = 4; * @return bool */ public function getDisableMacros() { return $this->disable_macros; } /** * Prevent macro expansion. See "Macros" in Language Defiinition. * * Generated from protobuf field bool disable_macros = 4; * @param bool $var * @return $this */ public function setDisableMacros($var) { GPBUtil::checkBool($var); $this->disable_macros = $var; return $this; } } src/Api/Expr/V1alpha1/ParseResponse.php000064400000006075151742727570013672 0ustar00google.api.expr.v1alpha1.ParseResponse */ class ParseResponse extends \Google\Protobuf\Internal\Message { /** * The parsed representation, or unset if parsing failed. * * Generated from protobuf field .google.api.expr.v1alpha1.ParsedExpr parsed_expr = 1; */ private $parsed_expr = null; /** * Any number of issues with [StatusDetails][] as the details. * * Generated from protobuf field repeated .google.rpc.Status issues = 2; */ private $issues; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Google\Api\Expr\V1alpha1\ParsedExpr $parsed_expr * The parsed representation, or unset if parsing failed. * @type \Google\Rpc\Status[]|\Google\Protobuf\Internal\RepeatedField $issues * Any number of issues with [StatusDetails][] as the details. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Expr\V1Alpha1\ConformanceService::initOnce(); parent::__construct($data); } /** * The parsed representation, or unset if parsing failed. * * Generated from protobuf field .google.api.expr.v1alpha1.ParsedExpr parsed_expr = 1; * @return \Google\Api\Expr\V1alpha1\ParsedExpr */ public function getParsedExpr() { return $this->parsed_expr; } /** * The parsed representation, or unset if parsing failed. * * Generated from protobuf field .google.api.expr.v1alpha1.ParsedExpr parsed_expr = 1; * @param \Google\Api\Expr\V1alpha1\ParsedExpr $var * @return $this */ public function setParsedExpr($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1alpha1\ParsedExpr::class); $this->parsed_expr = $var; return $this; } /** * Any number of issues with [StatusDetails][] as the details. * * Generated from protobuf field repeated .google.rpc.Status issues = 2; * @return \Google\Protobuf\Internal\RepeatedField */ public function getIssues() { return $this->issues; } /** * Any number of issues with [StatusDetails][] as the details. * * Generated from protobuf field repeated .google.rpc.Status issues = 2; * @param \Google\Rpc\Status[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setIssues($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Rpc\Status::class); $this->issues = $arr; return $this; } } src/Api/Expr/V1alpha1/ParsedExpr.php000064400000005561151742727570013155 0ustar00google.api.expr.v1alpha1.ParsedExpr */ class ParsedExpr extends \Google\Protobuf\Internal\Message { /** * The parsed expression. * * Generated from protobuf field .google.api.expr.v1alpha1.Expr expr = 2; */ private $expr = null; /** * The source info derived from input that generated the parsed `expr`. * * Generated from protobuf field .google.api.expr.v1alpha1.SourceInfo source_info = 3; */ private $source_info = null; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Google\Api\Expr\V1alpha1\Expr $expr * The parsed expression. * @type \Google\Api\Expr\V1alpha1\SourceInfo $source_info * The source info derived from input that generated the parsed `expr`. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Expr\V1Alpha1\Syntax::initOnce(); parent::__construct($data); } /** * The parsed expression. * * Generated from protobuf field .google.api.expr.v1alpha1.Expr expr = 2; * @return \Google\Api\Expr\V1alpha1\Expr */ public function getExpr() { return $this->expr; } /** * The parsed expression. * * Generated from protobuf field .google.api.expr.v1alpha1.Expr expr = 2; * @param \Google\Api\Expr\V1alpha1\Expr $var * @return $this */ public function setExpr($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1alpha1\Expr::class); $this->expr = $var; return $this; } /** * The source info derived from input that generated the parsed `expr`. * * Generated from protobuf field .google.api.expr.v1alpha1.SourceInfo source_info = 3; * @return \Google\Api\Expr\V1alpha1\SourceInfo */ public function getSourceInfo() { return $this->source_info; } /** * The source info derived from input that generated the parsed `expr`. * * Generated from protobuf field .google.api.expr.v1alpha1.SourceInfo source_info = 3; * @param \Google\Api\Expr\V1alpha1\SourceInfo $var * @return $this */ public function setSourceInfo($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1alpha1\SourceInfo::class); $this->source_info = $var; return $this; } } src/Api/Expr/V1alpha1/Reference.php000064400000013107151742727570012771 0ustar00google.api.expr.v1alpha1.Reference */ class Reference extends \Google\Protobuf\Internal\Message { /** * The fully qualified name of the declaration. * * Generated from protobuf field string name = 1; */ private $name = ''; /** * For references to functions, this is a list of `Overload.overload_id` * values which match according to typing rules. * If the list has more than one element, overload resolution among the * presented candidates must happen at runtime because of dynamic types. The * type checker attempts to narrow down this list as much as possible. * Empty if this is not a reference to a [Decl.FunctionDecl][google.api.expr.v1alpha1.Decl.FunctionDecl]. * * Generated from protobuf field repeated string overload_id = 3; */ private $overload_id; /** * For references to constants, this may contain the value of the * constant if known at compile time. * * Generated from protobuf field .google.api.expr.v1alpha1.Constant value = 4; */ private $value = null; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $name * The fully qualified name of the declaration. * @type string[]|\Google\Protobuf\Internal\RepeatedField $overload_id * For references to functions, this is a list of `Overload.overload_id` * values which match according to typing rules. * If the list has more than one element, overload resolution among the * presented candidates must happen at runtime because of dynamic types. The * type checker attempts to narrow down this list as much as possible. * Empty if this is not a reference to a [Decl.FunctionDecl][google.api.expr.v1alpha1.Decl.FunctionDecl]. * @type \Google\Api\Expr\V1alpha1\Constant $value * For references to constants, this may contain the value of the * constant if known at compile time. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Expr\V1Alpha1\Checked::initOnce(); parent::__construct($data); } /** * The fully qualified name of the declaration. * * Generated from protobuf field string name = 1; * @return string */ public function getName() { return $this->name; } /** * The fully qualified name of the declaration. * * Generated from protobuf field string name = 1; * @param string $var * @return $this */ public function setName($var) { GPBUtil::checkString($var, True); $this->name = $var; return $this; } /** * For references to functions, this is a list of `Overload.overload_id` * values which match according to typing rules. * If the list has more than one element, overload resolution among the * presented candidates must happen at runtime because of dynamic types. The * type checker attempts to narrow down this list as much as possible. * Empty if this is not a reference to a [Decl.FunctionDecl][google.api.expr.v1alpha1.Decl.FunctionDecl]. * * Generated from protobuf field repeated string overload_id = 3; * @return \Google\Protobuf\Internal\RepeatedField */ public function getOverloadId() { return $this->overload_id; } /** * For references to functions, this is a list of `Overload.overload_id` * values which match according to typing rules. * If the list has more than one element, overload resolution among the * presented candidates must happen at runtime because of dynamic types. The * type checker attempts to narrow down this list as much as possible. * Empty if this is not a reference to a [Decl.FunctionDecl][google.api.expr.v1alpha1.Decl.FunctionDecl]. * * Generated from protobuf field repeated string overload_id = 3; * @param string[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setOverloadId($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); $this->overload_id = $arr; return $this; } /** * For references to constants, this may contain the value of the * constant if known at compile time. * * Generated from protobuf field .google.api.expr.v1alpha1.Constant value = 4; * @return \Google\Api\Expr\V1alpha1\Constant */ public function getValue() { return $this->value; } /** * For references to constants, this may contain the value of the * constant if known at compile time. * * Generated from protobuf field .google.api.expr.v1alpha1.Constant value = 4; * @param \Google\Api\Expr\V1alpha1\Constant $var * @return $this */ public function setValue($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1alpha1\Constant::class); $this->value = $var; return $this; } } src/Api/Expr/V1alpha1/SourceInfo.php000064400000022762151742727570013156 0ustar00google.api.expr.v1alpha1.SourceInfo */ class SourceInfo extends \Google\Protobuf\Internal\Message { /** * The syntax version of the source, e.g. `cel1`. * * Generated from protobuf field string syntax_version = 1; */ private $syntax_version = ''; /** * The location name. All position information attached to an expression is * relative to this location. * The location could be a file, UI element, or similar. For example, * `acme/app/AnvilPolicy.cel`. * * Generated from protobuf field string location = 2; */ private $location = ''; /** * Monotonically increasing list of character offsets where newlines appear. * The line number of a given position is the index `i` where for a given * `id` the `line_offsets[i] < id_positions[id] < line_offsets[i+1]`. The * column may be derivd from `id_positions[id] - line_offsets[i]`. * * Generated from protobuf field repeated int32 line_offsets = 3; */ private $line_offsets; /** * A map from the parse node id (e.g. `Expr.id`) to the character offset * within source. * * Generated from protobuf field map positions = 4; */ private $positions; /** * A map from the parse node id where a macro replacement was made to the * call `Expr` that resulted in a macro expansion. * For example, `has(value.field)` is a function call that is replaced by a * `test_only` field selection in the AST. Likewise, the call * `list.exists(e, e > 10)` translates to a comprehension expression. The key * in the map corresponds to the expression id of the expanded macro, and the * value is the call `Expr` that was replaced. * * Generated from protobuf field map macro_calls = 5; */ private $macro_calls; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $syntax_version * The syntax version of the source, e.g. `cel1`. * @type string $location * The location name. All position information attached to an expression is * relative to this location. * The location could be a file, UI element, or similar. For example, * `acme/app/AnvilPolicy.cel`. * @type int[]|\Google\Protobuf\Internal\RepeatedField $line_offsets * Monotonically increasing list of character offsets where newlines appear. * The line number of a given position is the index `i` where for a given * `id` the `line_offsets[i] < id_positions[id] < line_offsets[i+1]`. The * column may be derivd from `id_positions[id] - line_offsets[i]`. * @type array|\Google\Protobuf\Internal\MapField $positions * A map from the parse node id (e.g. `Expr.id`) to the character offset * within source. * @type array|\Google\Protobuf\Internal\MapField $macro_calls * A map from the parse node id where a macro replacement was made to the * call `Expr` that resulted in a macro expansion. * For example, `has(value.field)` is a function call that is replaced by a * `test_only` field selection in the AST. Likewise, the call * `list.exists(e, e > 10)` translates to a comprehension expression. The key * in the map corresponds to the expression id of the expanded macro, and the * value is the call `Expr` that was replaced. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Expr\V1Alpha1\Syntax::initOnce(); parent::__construct($data); } /** * The syntax version of the source, e.g. `cel1`. * * Generated from protobuf field string syntax_version = 1; * @return string */ public function getSyntaxVersion() { return $this->syntax_version; } /** * The syntax version of the source, e.g. `cel1`. * * Generated from protobuf field string syntax_version = 1; * @param string $var * @return $this */ public function setSyntaxVersion($var) { GPBUtil::checkString($var, True); $this->syntax_version = $var; return $this; } /** * The location name. All position information attached to an expression is * relative to this location. * The location could be a file, UI element, or similar. For example, * `acme/app/AnvilPolicy.cel`. * * Generated from protobuf field string location = 2; * @return string */ public function getLocation() { return $this->location; } /** * The location name. All position information attached to an expression is * relative to this location. * The location could be a file, UI element, or similar. For example, * `acme/app/AnvilPolicy.cel`. * * Generated from protobuf field string location = 2; * @param string $var * @return $this */ public function setLocation($var) { GPBUtil::checkString($var, True); $this->location = $var; return $this; } /** * Monotonically increasing list of character offsets where newlines appear. * The line number of a given position is the index `i` where for a given * `id` the `line_offsets[i] < id_positions[id] < line_offsets[i+1]`. The * column may be derivd from `id_positions[id] - line_offsets[i]`. * * Generated from protobuf field repeated int32 line_offsets = 3; * @return \Google\Protobuf\Internal\RepeatedField */ public function getLineOffsets() { return $this->line_offsets; } /** * Monotonically increasing list of character offsets where newlines appear. * The line number of a given position is the index `i` where for a given * `id` the `line_offsets[i] < id_positions[id] < line_offsets[i+1]`. The * column may be derivd from `id_positions[id] - line_offsets[i]`. * * Generated from protobuf field repeated int32 line_offsets = 3; * @param int[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setLineOffsets($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32); $this->line_offsets = $arr; return $this; } /** * A map from the parse node id (e.g. `Expr.id`) to the character offset * within source. * * Generated from protobuf field map positions = 4; * @return \Google\Protobuf\Internal\MapField */ public function getPositions() { return $this->positions; } /** * A map from the parse node id (e.g. `Expr.id`) to the character offset * within source. * * Generated from protobuf field map positions = 4; * @param array|\Google\Protobuf\Internal\MapField $var * @return $this */ public function setPositions($var) { $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::INT64, \Google\Protobuf\Internal\GPBType::INT32); $this->positions = $arr; return $this; } /** * A map from the parse node id where a macro replacement was made to the * call `Expr` that resulted in a macro expansion. * For example, `has(value.field)` is a function call that is replaced by a * `test_only` field selection in the AST. Likewise, the call * `list.exists(e, e > 10)` translates to a comprehension expression. The key * in the map corresponds to the expression id of the expanded macro, and the * value is the call `Expr` that was replaced. * * Generated from protobuf field map macro_calls = 5; * @return \Google\Protobuf\Internal\MapField */ public function getMacroCalls() { return $this->macro_calls; } /** * A map from the parse node id where a macro replacement was made to the * call `Expr` that resulted in a macro expansion. * For example, `has(value.field)` is a function call that is replaced by a * `test_only` field selection in the AST. Likewise, the call * `list.exists(e, e > 10)` translates to a comprehension expression. The key * in the map corresponds to the expression id of the expanded macro, and the * value is the call `Expr` that was replaced. * * Generated from protobuf field map macro_calls = 5; * @param array|\Google\Protobuf\Internal\MapField $var * @return $this */ public function setMacroCalls($var) { $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::INT64, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Expr\V1alpha1\Expr::class); $this->macro_calls = $arr; return $this; } } src/Api/Expr/V1alpha1/SourcePosition.php000064400000011027151742727570014057 0ustar00google.api.expr.v1alpha1.SourcePosition */ class SourcePosition extends \Google\Protobuf\Internal\Message { /** * The soucre location name (e.g. file name). * * Generated from protobuf field string location = 1; */ private $location = ''; /** * The character offset. * * Generated from protobuf field int32 offset = 2; */ private $offset = 0; /** * The 1-based index of the starting line in the source text * where the issue occurs, or 0 if unknown. * * Generated from protobuf field int32 line = 3; */ private $line = 0; /** * The 0-based index of the starting position within the line of source text * where the issue occurs. Only meaningful if line is nonzero. * * Generated from protobuf field int32 column = 4; */ private $column = 0; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $location * The soucre location name (e.g. file name). * @type int $offset * The character offset. * @type int $line * The 1-based index of the starting line in the source text * where the issue occurs, or 0 if unknown. * @type int $column * The 0-based index of the starting position within the line of source text * where the issue occurs. Only meaningful if line is nonzero. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Expr\V1Alpha1\Syntax::initOnce(); parent::__construct($data); } /** * The soucre location name (e.g. file name). * * Generated from protobuf field string location = 1; * @return string */ public function getLocation() { return $this->location; } /** * The soucre location name (e.g. file name). * * Generated from protobuf field string location = 1; * @param string $var * @return $this */ public function setLocation($var) { GPBUtil::checkString($var, True); $this->location = $var; return $this; } /** * The character offset. * * Generated from protobuf field int32 offset = 2; * @return int */ public function getOffset() { return $this->offset; } /** * The character offset. * * Generated from protobuf field int32 offset = 2; * @param int $var * @return $this */ public function setOffset($var) { GPBUtil::checkInt32($var); $this->offset = $var; return $this; } /** * The 1-based index of the starting line in the source text * where the issue occurs, or 0 if unknown. * * Generated from protobuf field int32 line = 3; * @return int */ public function getLine() { return $this->line; } /** * The 1-based index of the starting line in the source text * where the issue occurs, or 0 if unknown. * * Generated from protobuf field int32 line = 3; * @param int $var * @return $this */ public function setLine($var) { GPBUtil::checkInt32($var); $this->line = $var; return $this; } /** * The 0-based index of the starting position within the line of source text * where the issue occurs. Only meaningful if line is nonzero. * * Generated from protobuf field int32 column = 4; * @return int */ public function getColumn() { return $this->column; } /** * The 0-based index of the starting position within the line of source text * where the issue occurs. Only meaningful if line is nonzero. * * Generated from protobuf field int32 column = 4; * @param int $var * @return $this */ public function setColumn($var) { GPBUtil::checkInt32($var); $this->column = $var; return $this; } } src/Api/Expr/V1alpha1/Type.php000064400000031426151742727570012020 0ustar00google.api.expr.v1alpha1.Type */ class Type extends \Google\Protobuf\Internal\Message { protected $type_kind; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Google\Protobuf\GPBEmpty $dyn * Dynamic type. * @type int $null * Null value. * @type int $primitive * Primitive types: `true`, `1u`, `-2.0`, `'string'`, `b'bytes'`. * @type int $wrapper * Wrapper of a primitive type, e.g. `google.protobuf.Int64Value`. * @type int $well_known * Well-known protobuf type such as `google.protobuf.Timestamp`. * @type \Google\Api\Expr\V1alpha1\Type\ListType $list_type * Parameterized list with elements of `list_type`, e.g. `list`. * @type \Google\Api\Expr\V1alpha1\Type\MapType $map_type * Parameterized map with typed keys and values. * @type \Google\Api\Expr\V1alpha1\Type\FunctionType $function * Function type. * @type string $message_type * Protocol buffer message type. * The `message_type` string specifies the qualified message type name. For * example, `google.plus.Profile`. * @type string $type_param * Type param type. * The `type_param` string specifies the type parameter name, e.g. `list` * would be a `list_type` whose element type was a `type_param` type * named `E`. * @type \Google\Api\Expr\V1alpha1\Type $type * Type type. * The `type` value specifies the target type. e.g. int is type with a * target type of `Primitive.INT`. * @type \Google\Protobuf\GPBEmpty $error * Error type. * During type-checking if an expression is an error, its type is propagated * as the `ERROR` type. This permits the type-checker to discover other * errors present in the expression. * @type \Google\Api\Expr\V1alpha1\Type\AbstractType $abstract_type * Abstract, application defined type. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Expr\V1Alpha1\Checked::initOnce(); parent::__construct($data); } /** * Dynamic type. * * Generated from protobuf field .google.protobuf.Empty dyn = 1; * @return \Google\Protobuf\GPBEmpty */ public function getDyn() { return $this->readOneof(1); } /** * Dynamic type. * * Generated from protobuf field .google.protobuf.Empty dyn = 1; * @param \Google\Protobuf\GPBEmpty $var * @return $this */ public function setDyn($var) { GPBUtil::checkMessage($var, \Google\Protobuf\GPBEmpty::class); $this->writeOneof(1, $var); return $this; } /** * Null value. * * Generated from protobuf field .google.protobuf.NullValue null = 2; * @return int */ public function getNull() { return $this->readOneof(2); } /** * Null value. * * Generated from protobuf field .google.protobuf.NullValue null = 2; * @param int $var * @return $this */ public function setNull($var) { GPBUtil::checkEnum($var, \Google\Protobuf\NullValue::class); $this->writeOneof(2, $var); return $this; } /** * Primitive types: `true`, `1u`, `-2.0`, `'string'`, `b'bytes'`. * * Generated from protobuf field .google.api.expr.v1alpha1.Type.PrimitiveType primitive = 3; * @return int */ public function getPrimitive() { return $this->readOneof(3); } /** * Primitive types: `true`, `1u`, `-2.0`, `'string'`, `b'bytes'`. * * Generated from protobuf field .google.api.expr.v1alpha1.Type.PrimitiveType primitive = 3; * @param int $var * @return $this */ public function setPrimitive($var) { GPBUtil::checkEnum($var, \Google\Api\Expr\V1alpha1\Type_PrimitiveType::class); $this->writeOneof(3, $var); return $this; } /** * Wrapper of a primitive type, e.g. `google.protobuf.Int64Value`. * * Generated from protobuf field .google.api.expr.v1alpha1.Type.PrimitiveType wrapper = 4; * @return int */ public function getWrapper() { return $this->readOneof(4); } /** * Wrapper of a primitive type, e.g. `google.protobuf.Int64Value`. * * Generated from protobuf field .google.api.expr.v1alpha1.Type.PrimitiveType wrapper = 4; * @param int $var * @return $this */ public function setWrapper($var) { GPBUtil::checkEnum($var, \Google\Api\Expr\V1alpha1\Type_PrimitiveType::class); $this->writeOneof(4, $var); return $this; } /** * Well-known protobuf type such as `google.protobuf.Timestamp`. * * Generated from protobuf field .google.api.expr.v1alpha1.Type.WellKnownType well_known = 5; * @return int */ public function getWellKnown() { return $this->readOneof(5); } /** * Well-known protobuf type such as `google.protobuf.Timestamp`. * * Generated from protobuf field .google.api.expr.v1alpha1.Type.WellKnownType well_known = 5; * @param int $var * @return $this */ public function setWellKnown($var) { GPBUtil::checkEnum($var, \Google\Api\Expr\V1alpha1\Type_WellKnownType::class); $this->writeOneof(5, $var); return $this; } /** * Parameterized list with elements of `list_type`, e.g. `list`. * * Generated from protobuf field .google.api.expr.v1alpha1.Type.ListType list_type = 6; * @return \Google\Api\Expr\V1alpha1\Type\ListType */ public function getListType() { return $this->readOneof(6); } /** * Parameterized list with elements of `list_type`, e.g. `list`. * * Generated from protobuf field .google.api.expr.v1alpha1.Type.ListType list_type = 6; * @param \Google\Api\Expr\V1alpha1\Type\ListType $var * @return $this */ public function setListType($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1alpha1\Type_ListType::class); $this->writeOneof(6, $var); return $this; } /** * Parameterized map with typed keys and values. * * Generated from protobuf field .google.api.expr.v1alpha1.Type.MapType map_type = 7; * @return \Google\Api\Expr\V1alpha1\Type\MapType */ public function getMapType() { return $this->readOneof(7); } /** * Parameterized map with typed keys and values. * * Generated from protobuf field .google.api.expr.v1alpha1.Type.MapType map_type = 7; * @param \Google\Api\Expr\V1alpha1\Type\MapType $var * @return $this */ public function setMapType($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1alpha1\Type_MapType::class); $this->writeOneof(7, $var); return $this; } /** * Function type. * * Generated from protobuf field .google.api.expr.v1alpha1.Type.FunctionType function = 8; * @return \Google\Api\Expr\V1alpha1\Type\FunctionType */ public function getFunction() { return $this->readOneof(8); } /** * Function type. * * Generated from protobuf field .google.api.expr.v1alpha1.Type.FunctionType function = 8; * @param \Google\Api\Expr\V1alpha1\Type\FunctionType $var * @return $this */ public function setFunction($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1alpha1\Type_FunctionType::class); $this->writeOneof(8, $var); return $this; } /** * Protocol buffer message type. * The `message_type` string specifies the qualified message type name. For * example, `google.plus.Profile`. * * Generated from protobuf field string message_type = 9; * @return string */ public function getMessageType() { return $this->readOneof(9); } /** * Protocol buffer message type. * The `message_type` string specifies the qualified message type name. For * example, `google.plus.Profile`. * * Generated from protobuf field string message_type = 9; * @param string $var * @return $this */ public function setMessageType($var) { GPBUtil::checkString($var, True); $this->writeOneof(9, $var); return $this; } /** * Type param type. * The `type_param` string specifies the type parameter name, e.g. `list` * would be a `list_type` whose element type was a `type_param` type * named `E`. * * Generated from protobuf field string type_param = 10; * @return string */ public function getTypeParam() { return $this->readOneof(10); } /** * Type param type. * The `type_param` string specifies the type parameter name, e.g. `list` * would be a `list_type` whose element type was a `type_param` type * named `E`. * * Generated from protobuf field string type_param = 10; * @param string $var * @return $this */ public function setTypeParam($var) { GPBUtil::checkString($var, True); $this->writeOneof(10, $var); return $this; } /** * Type type. * The `type` value specifies the target type. e.g. int is type with a * target type of `Primitive.INT`. * * Generated from protobuf field .google.api.expr.v1alpha1.Type type = 11; * @return \Google\Api\Expr\V1alpha1\Type */ public function getType() { return $this->readOneof(11); } /** * Type type. * The `type` value specifies the target type. e.g. int is type with a * target type of `Primitive.INT`. * * Generated from protobuf field .google.api.expr.v1alpha1.Type type = 11; * @param \Google\Api\Expr\V1alpha1\Type $var * @return $this */ public function setType($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1alpha1\Type::class); $this->writeOneof(11, $var); return $this; } /** * Error type. * During type-checking if an expression is an error, its type is propagated * as the `ERROR` type. This permits the type-checker to discover other * errors present in the expression. * * Generated from protobuf field .google.protobuf.Empty error = 12; * @return \Google\Protobuf\GPBEmpty */ public function getError() { return $this->readOneof(12); } /** * Error type. * During type-checking if an expression is an error, its type is propagated * as the `ERROR` type. This permits the type-checker to discover other * errors present in the expression. * * Generated from protobuf field .google.protobuf.Empty error = 12; * @param \Google\Protobuf\GPBEmpty $var * @return $this */ public function setError($var) { GPBUtil::checkMessage($var, \Google\Protobuf\GPBEmpty::class); $this->writeOneof(12, $var); return $this; } /** * Abstract, application defined type. * * Generated from protobuf field .google.api.expr.v1alpha1.Type.AbstractType abstract_type = 14; * @return \Google\Api\Expr\V1alpha1\Type\AbstractType */ public function getAbstractType() { return $this->readOneof(14); } /** * Abstract, application defined type. * * Generated from protobuf field .google.api.expr.v1alpha1.Type.AbstractType abstract_type = 14; * @param \Google\Api\Expr\V1alpha1\Type\AbstractType $var * @return $this */ public function setAbstractType($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1alpha1\Type_AbstractType::class); $this->writeOneof(14, $var); return $this; } /** * @return string */ public function getTypeKind() { return $this->whichOneof("type_kind"); } } src/Api/Expr/V1alpha1/Type/AbstractType.php000064400000005743151742727570014430 0ustar00google.api.expr.v1alpha1.Type.AbstractType */ class AbstractType extends \Google\Protobuf\Internal\Message { /** * The fully qualified name of this abstract type. * * Generated from protobuf field string name = 1; */ private $name = ''; /** * Parameter types for this abstract type. * * Generated from protobuf field repeated .google.api.expr.v1alpha1.Type parameter_types = 2; */ private $parameter_types; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $name * The fully qualified name of this abstract type. * @type \Google\Api\Expr\V1alpha1\Type[]|\Google\Protobuf\Internal\RepeatedField $parameter_types * Parameter types for this abstract type. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Expr\V1Alpha1\Checked::initOnce(); parent::__construct($data); } /** * The fully qualified name of this abstract type. * * Generated from protobuf field string name = 1; * @return string */ public function getName() { return $this->name; } /** * The fully qualified name of this abstract type. * * Generated from protobuf field string name = 1; * @param string $var * @return $this */ public function setName($var) { GPBUtil::checkString($var, True); $this->name = $var; return $this; } /** * Parameter types for this abstract type. * * Generated from protobuf field repeated .google.api.expr.v1alpha1.Type parameter_types = 2; * @return \Google\Protobuf\Internal\RepeatedField */ public function getParameterTypes() { return $this->parameter_types; } /** * Parameter types for this abstract type. * * Generated from protobuf field repeated .google.api.expr.v1alpha1.Type parameter_types = 2; * @param \Google\Api\Expr\V1alpha1\Type[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setParameterTypes($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Expr\V1alpha1\Type::class); $this->parameter_types = $arr; return $this; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(AbstractType::class, \Google\Api\Expr\V1alpha1\Type_AbstractType::class); src/Api/Expr/V1alpha1/Type/FunctionType.php000064400000006070151742727570014444 0ustar00google.api.expr.v1alpha1.Type.FunctionType */ class FunctionType extends \Google\Protobuf\Internal\Message { /** * Result type of the function. * * Generated from protobuf field .google.api.expr.v1alpha1.Type result_type = 1; */ private $result_type = null; /** * Argument types of the function. * * Generated from protobuf field repeated .google.api.expr.v1alpha1.Type arg_types = 2; */ private $arg_types; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Google\Api\Expr\V1alpha1\Type $result_type * Result type of the function. * @type \Google\Api\Expr\V1alpha1\Type[]|\Google\Protobuf\Internal\RepeatedField $arg_types * Argument types of the function. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Expr\V1Alpha1\Checked::initOnce(); parent::__construct($data); } /** * Result type of the function. * * Generated from protobuf field .google.api.expr.v1alpha1.Type result_type = 1; * @return \Google\Api\Expr\V1alpha1\Type */ public function getResultType() { return $this->result_type; } /** * Result type of the function. * * Generated from protobuf field .google.api.expr.v1alpha1.Type result_type = 1; * @param \Google\Api\Expr\V1alpha1\Type $var * @return $this */ public function setResultType($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1alpha1\Type::class); $this->result_type = $var; return $this; } /** * Argument types of the function. * * Generated from protobuf field repeated .google.api.expr.v1alpha1.Type arg_types = 2; * @return \Google\Protobuf\Internal\RepeatedField */ public function getArgTypes() { return $this->arg_types; } /** * Argument types of the function. * * Generated from protobuf field repeated .google.api.expr.v1alpha1.Type arg_types = 2; * @param \Google\Api\Expr\V1alpha1\Type[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setArgTypes($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Expr\V1alpha1\Type::class); $this->arg_types = $arr; return $this; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(FunctionType::class, \Google\Api\Expr\V1alpha1\Type_FunctionType::class); src/Api/Expr/V1alpha1/Type/ListType.php000064400000003573151742727570013577 0ustar00`. * * Generated from protobuf message google.api.expr.v1alpha1.Type.ListType */ class ListType extends \Google\Protobuf\Internal\Message { /** * The element type. * * Generated from protobuf field .google.api.expr.v1alpha1.Type elem_type = 1; */ private $elem_type = null; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Google\Api\Expr\V1alpha1\Type $elem_type * The element type. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Expr\V1Alpha1\Checked::initOnce(); parent::__construct($data); } /** * The element type. * * Generated from protobuf field .google.api.expr.v1alpha1.Type elem_type = 1; * @return \Google\Api\Expr\V1alpha1\Type */ public function getElemType() { return $this->elem_type; } /** * The element type. * * Generated from protobuf field .google.api.expr.v1alpha1.Type elem_type = 1; * @param \Google\Api\Expr\V1alpha1\Type $var * @return $this */ public function setElemType($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1alpha1\Type::class); $this->elem_type = $var; return $this; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(ListType::class, \Google\Api\Expr\V1alpha1\Type_ListType::class); src/Api/Expr/V1alpha1/Type/MapType.php000064400000005505151742727570013376 0ustar00`. * * Generated from protobuf message google.api.expr.v1alpha1.Type.MapType */ class MapType extends \Google\Protobuf\Internal\Message { /** * The type of the key. * * Generated from protobuf field .google.api.expr.v1alpha1.Type key_type = 1; */ private $key_type = null; /** * The type of the value. * * Generated from protobuf field .google.api.expr.v1alpha1.Type value_type = 2; */ private $value_type = null; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Google\Api\Expr\V1alpha1\Type $key_type * The type of the key. * @type \Google\Api\Expr\V1alpha1\Type $value_type * The type of the value. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Expr\V1Alpha1\Checked::initOnce(); parent::__construct($data); } /** * The type of the key. * * Generated from protobuf field .google.api.expr.v1alpha1.Type key_type = 1; * @return \Google\Api\Expr\V1alpha1\Type */ public function getKeyType() { return $this->key_type; } /** * The type of the key. * * Generated from protobuf field .google.api.expr.v1alpha1.Type key_type = 1; * @param \Google\Api\Expr\V1alpha1\Type $var * @return $this */ public function setKeyType($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1alpha1\Type::class); $this->key_type = $var; return $this; } /** * The type of the value. * * Generated from protobuf field .google.api.expr.v1alpha1.Type value_type = 2; * @return \Google\Api\Expr\V1alpha1\Type */ public function getValueType() { return $this->value_type; } /** * The type of the value. * * Generated from protobuf field .google.api.expr.v1alpha1.Type value_type = 2; * @param \Google\Api\Expr\V1alpha1\Type $var * @return $this */ public function setValueType($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1alpha1\Type::class); $this->value_type = $var; return $this; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(MapType::class, \Google\Api\Expr\V1alpha1\Type_MapType::class); src/Api/Expr/V1alpha1/Type/PrimitiveType.php000064400000004742151742727570014633 0ustar00google.api.expr.v1alpha1.Type.PrimitiveType */ class PrimitiveType { /** * Unspecified type. * * Generated from protobuf enum PRIMITIVE_TYPE_UNSPECIFIED = 0; */ const PRIMITIVE_TYPE_UNSPECIFIED = 0; /** * Boolean type. * * Generated from protobuf enum BOOL = 1; */ const BOOL = 1; /** * Int64 type. * Proto-based integer values are widened to int64. * * Generated from protobuf enum INT64 = 2; */ const INT64 = 2; /** * Uint64 type. * Proto-based unsigned integer values are widened to uint64. * * Generated from protobuf enum UINT64 = 3; */ const UINT64 = 3; /** * Double type. * Proto-based float values are widened to double values. * * Generated from protobuf enum DOUBLE = 4; */ const DOUBLE = 4; /** * String type. * * Generated from protobuf enum STRING = 5; */ const STRING = 5; /** * Bytes type. * * Generated from protobuf enum BYTES = 6; */ const BYTES = 6; private static $valueToName = [ self::PRIMITIVE_TYPE_UNSPECIFIED => 'PRIMITIVE_TYPE_UNSPECIFIED', self::BOOL => 'BOOL', self::INT64 => 'INT64', self::UINT64 => 'UINT64', self::DOUBLE => 'DOUBLE', self::STRING => 'STRING', self::BYTES => 'BYTES', ]; public static function name($value) { if (!isset(self::$valueToName[$value])) { throw new UnexpectedValueException(sprintf( 'Enum %s has no name defined for value %s', __CLASS__, $value)); } return self::$valueToName[$value]; } public static function value($name) { $const = __CLASS__ . '::' . strtoupper($name); if (!defined($const)) { throw new UnexpectedValueException(sprintf( 'Enum %s has no value defined for name %s', __CLASS__, $name)); } return constant($const); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(PrimitiveType::class, \Google\Api\Expr\V1alpha1\Type_PrimitiveType::class); src/Api/Expr/V1alpha1/Type/WellKnownType.php000064400000004357151742727570014605 0ustar00google.api.expr.v1alpha1.Type.WellKnownType */ class WellKnownType { /** * Unspecified type. * * Generated from protobuf enum WELL_KNOWN_TYPE_UNSPECIFIED = 0; */ const WELL_KNOWN_TYPE_UNSPECIFIED = 0; /** * Well-known protobuf.Any type. * Any types are a polymorphic message type. During type-checking they are * treated like `DYN` types, but at runtime they are resolved to a specific * message type specified at evaluation time. * * Generated from protobuf enum ANY = 1; */ const ANY = 1; /** * Well-known protobuf.Timestamp type, internally referenced as `timestamp`. * * Generated from protobuf enum TIMESTAMP = 2; */ const TIMESTAMP = 2; /** * Well-known protobuf.Duration type, internally referenced as `duration`. * * Generated from protobuf enum DURATION = 3; */ const DURATION = 3; private static $valueToName = [ self::WELL_KNOWN_TYPE_UNSPECIFIED => 'WELL_KNOWN_TYPE_UNSPECIFIED', self::ANY => 'ANY', self::TIMESTAMP => 'TIMESTAMP', self::DURATION => 'DURATION', ]; public static function name($value) { if (!isset(self::$valueToName[$value])) { throw new UnexpectedValueException(sprintf( 'Enum %s has no name defined for value %s', __CLASS__, $value)); } return self::$valueToName[$value]; } public static function value($name) { $const = __CLASS__ . '::' . strtoupper($name); if (!defined($const)) { throw new UnexpectedValueException(sprintf( 'Enum %s has no value defined for name %s', __CLASS__, $name)); } return constant($const); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(WellKnownType::class, \Google\Api\Expr\V1alpha1\Type_WellKnownType::class); src/Api/Expr/V1alpha1/Type_AbstractType.php000064400000001060151742727570014474 0ustar00google.api.expr.v1alpha1.UnknownSet */ class UnknownSet extends \Google\Protobuf\Internal\Message { /** * The ids of the expressions with unknown values. * * Generated from protobuf field repeated int64 exprs = 1; */ private $exprs; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int[]|string[]|\Google\Protobuf\Internal\RepeatedField $exprs * The ids of the expressions with unknown values. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Expr\V1Alpha1\PBEval::initOnce(); parent::__construct($data); } /** * The ids of the expressions with unknown values. * * Generated from protobuf field repeated int64 exprs = 1; * @return \Google\Protobuf\Internal\RepeatedField */ public function getExprs() { return $this->exprs; } /** * The ids of the expressions with unknown values. * * Generated from protobuf field repeated int64 exprs = 1; * @param int[]|string[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setExprs($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT64); $this->exprs = $arr; return $this; } } src/Api/Expr/V1alpha1/Value.php000064400000021751151742727570012153 0ustar00google.api.expr.v1alpha1.Value */ class Value extends \Google\Protobuf\Internal\Message { protected $kind; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int $null_value * Null value. * @type bool $bool_value * Boolean value. * @type int|string $int64_value * Signed integer value. * @type int|string $uint64_value * Unsigned integer value. * @type float $double_value * Floating point value. * @type string $string_value * UTF-8 string value. * @type string $bytes_value * Byte string value. * @type \Google\Api\Expr\V1alpha1\EnumValue $enum_value * An enum value. * @type \Google\Protobuf\Any $object_value * The proto message backing an object value. * @type \Google\Api\Expr\V1alpha1\MapValue $map_value * Map value. * @type \Google\Api\Expr\V1alpha1\ListValue $list_value * List value. * @type string $type_value * Type value. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Expr\V1Alpha1\Value::initOnce(); parent::__construct($data); } /** * Null value. * * Generated from protobuf field .google.protobuf.NullValue null_value = 1; * @return int */ public function getNullValue() { return $this->readOneof(1); } /** * Null value. * * Generated from protobuf field .google.protobuf.NullValue null_value = 1; * @param int $var * @return $this */ public function setNullValue($var) { GPBUtil::checkEnum($var, \Google\Protobuf\NullValue::class); $this->writeOneof(1, $var); return $this; } /** * Boolean value. * * Generated from protobuf field bool bool_value = 2; * @return bool */ public function getBoolValue() { return $this->readOneof(2); } /** * Boolean value. * * Generated from protobuf field bool bool_value = 2; * @param bool $var * @return $this */ public function setBoolValue($var) { GPBUtil::checkBool($var); $this->writeOneof(2, $var); return $this; } /** * Signed integer value. * * Generated from protobuf field int64 int64_value = 3; * @return int|string */ public function getInt64Value() { return $this->readOneof(3); } /** * Signed integer value. * * Generated from protobuf field int64 int64_value = 3; * @param int|string $var * @return $this */ public function setInt64Value($var) { GPBUtil::checkInt64($var); $this->writeOneof(3, $var); return $this; } /** * Unsigned integer value. * * Generated from protobuf field uint64 uint64_value = 4; * @return int|string */ public function getUint64Value() { return $this->readOneof(4); } /** * Unsigned integer value. * * Generated from protobuf field uint64 uint64_value = 4; * @param int|string $var * @return $this */ public function setUint64Value($var) { GPBUtil::checkUint64($var); $this->writeOneof(4, $var); return $this; } /** * Floating point value. * * Generated from protobuf field double double_value = 5; * @return float */ public function getDoubleValue() { return $this->readOneof(5); } /** * Floating point value. * * Generated from protobuf field double double_value = 5; * @param float $var * @return $this */ public function setDoubleValue($var) { GPBUtil::checkDouble($var); $this->writeOneof(5, $var); return $this; } /** * UTF-8 string value. * * Generated from protobuf field string string_value = 6; * @return string */ public function getStringValue() { return $this->readOneof(6); } /** * UTF-8 string value. * * Generated from protobuf field string string_value = 6; * @param string $var * @return $this */ public function setStringValue($var) { GPBUtil::checkString($var, True); $this->writeOneof(6, $var); return $this; } /** * Byte string value. * * Generated from protobuf field bytes bytes_value = 7; * @return string */ public function getBytesValue() { return $this->readOneof(7); } /** * Byte string value. * * Generated from protobuf field bytes bytes_value = 7; * @param string $var * @return $this */ public function setBytesValue($var) { GPBUtil::checkString($var, False); $this->writeOneof(7, $var); return $this; } /** * An enum value. * * Generated from protobuf field .google.api.expr.v1alpha1.EnumValue enum_value = 9; * @return \Google\Api\Expr\V1alpha1\EnumValue */ public function getEnumValue() { return $this->readOneof(9); } /** * An enum value. * * Generated from protobuf field .google.api.expr.v1alpha1.EnumValue enum_value = 9; * @param \Google\Api\Expr\V1alpha1\EnumValue $var * @return $this */ public function setEnumValue($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1alpha1\EnumValue::class); $this->writeOneof(9, $var); return $this; } /** * The proto message backing an object value. * * Generated from protobuf field .google.protobuf.Any object_value = 10; * @return \Google\Protobuf\Any */ public function getObjectValue() { return $this->readOneof(10); } /** * The proto message backing an object value. * * Generated from protobuf field .google.protobuf.Any object_value = 10; * @param \Google\Protobuf\Any $var * @return $this */ public function setObjectValue($var) { GPBUtil::checkMessage($var, \Google\Protobuf\Any::class); $this->writeOneof(10, $var); return $this; } /** * Map value. * * Generated from protobuf field .google.api.expr.v1alpha1.MapValue map_value = 11; * @return \Google\Api\Expr\V1alpha1\MapValue */ public function getMapValue() { return $this->readOneof(11); } /** * Map value. * * Generated from protobuf field .google.api.expr.v1alpha1.MapValue map_value = 11; * @param \Google\Api\Expr\V1alpha1\MapValue $var * @return $this */ public function setMapValue($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1alpha1\MapValue::class); $this->writeOneof(11, $var); return $this; } /** * List value. * * Generated from protobuf field .google.api.expr.v1alpha1.ListValue list_value = 12; * @return \Google\Api\Expr\V1alpha1\ListValue */ public function getListValue() { return $this->readOneof(12); } /** * List value. * * Generated from protobuf field .google.api.expr.v1alpha1.ListValue list_value = 12; * @param \Google\Api\Expr\V1alpha1\ListValue $var * @return $this */ public function setListValue($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1alpha1\ListValue::class); $this->writeOneof(12, $var); return $this; } /** * Type value. * * Generated from protobuf field string type_value = 15; * @return string */ public function getTypeValue() { return $this->readOneof(15); } /** * Type value. * * Generated from protobuf field string type_value = 15; * @param string $var * @return $this */ public function setTypeValue($var) { GPBUtil::checkString($var, True); $this->writeOneof(15, $var); return $this; } /** * @return string */ public function getKind() { return $this->whichOneof("kind"); } } src/Api/Expr/V1beta1/Decl.php000064400000011270151742727570011567 0ustar00google.api.expr.v1beta1.Decl */ class Decl extends \Google\Protobuf\Internal\Message { /** * The id of the declaration. * * Generated from protobuf field int32 id = 1; */ private $id = 0; /** * The name of the declaration. * * Generated from protobuf field string name = 2; */ private $name = ''; /** * The documentation string for the declaration. * * Generated from protobuf field string doc = 3; */ private $doc = ''; protected $kind; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int $id * The id of the declaration. * @type string $name * The name of the declaration. * @type string $doc * The documentation string for the declaration. * @type \Google\Api\Expr\V1beta1\IdentDecl $ident * An identifier declaration. * @type \Google\Api\Expr\V1beta1\FunctionDecl $function * A function declaration. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Expr\V1Beta1\Decl::initOnce(); parent::__construct($data); } /** * The id of the declaration. * * Generated from protobuf field int32 id = 1; * @return int */ public function getId() { return $this->id; } /** * The id of the declaration. * * Generated from protobuf field int32 id = 1; * @param int $var * @return $this */ public function setId($var) { GPBUtil::checkInt32($var); $this->id = $var; return $this; } /** * The name of the declaration. * * Generated from protobuf field string name = 2; * @return string */ public function getName() { return $this->name; } /** * The name of the declaration. * * Generated from protobuf field string name = 2; * @param string $var * @return $this */ public function setName($var) { GPBUtil::checkString($var, True); $this->name = $var; return $this; } /** * The documentation string for the declaration. * * Generated from protobuf field string doc = 3; * @return string */ public function getDoc() { return $this->doc; } /** * The documentation string for the declaration. * * Generated from protobuf field string doc = 3; * @param string $var * @return $this */ public function setDoc($var) { GPBUtil::checkString($var, True); $this->doc = $var; return $this; } /** * An identifier declaration. * * Generated from protobuf field .google.api.expr.v1beta1.IdentDecl ident = 4; * @return \Google\Api\Expr\V1beta1\IdentDecl */ public function getIdent() { return $this->readOneof(4); } /** * An identifier declaration. * * Generated from protobuf field .google.api.expr.v1beta1.IdentDecl ident = 4; * @param \Google\Api\Expr\V1beta1\IdentDecl $var * @return $this */ public function setIdent($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1beta1\IdentDecl::class); $this->writeOneof(4, $var); return $this; } /** * A function declaration. * * Generated from protobuf field .google.api.expr.v1beta1.FunctionDecl function = 5; * @return \Google\Api\Expr\V1beta1\FunctionDecl */ public function getFunction() { return $this->readOneof(5); } /** * A function declaration. * * Generated from protobuf field .google.api.expr.v1beta1.FunctionDecl function = 5; * @param \Google\Api\Expr\V1beta1\FunctionDecl $var * @return $this */ public function setFunction($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1beta1\FunctionDecl::class); $this->writeOneof(5, $var); return $this; } /** * @return string */ public function getKind() { return $this->whichOneof("kind"); } } src/Api/Expr/V1beta1/DeclType.php000064400000007761151742727570012443 0ustar00google.api.expr.v1beta1.DeclType */ class DeclType extends \Google\Protobuf\Internal\Message { /** * The expression id of the declared type, if applicable. * * Generated from protobuf field int32 id = 1; */ private $id = 0; /** * The type name, e.g. 'int', 'my.type.Type' or 'T' * * Generated from protobuf field string type = 2; */ private $type = ''; /** * An ordered list of type parameters, e.g. ``. * Only applies to a subset of types, e.g. `map`, `list`. * * Generated from protobuf field repeated .google.api.expr.v1beta1.DeclType type_params = 4; */ private $type_params; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int $id * The expression id of the declared type, if applicable. * @type string $type * The type name, e.g. 'int', 'my.type.Type' or 'T' * @type \Google\Api\Expr\V1beta1\DeclType[]|\Google\Protobuf\Internal\RepeatedField $type_params * An ordered list of type parameters, e.g. ``. * Only applies to a subset of types, e.g. `map`, `list`. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Expr\V1Beta1\Decl::initOnce(); parent::__construct($data); } /** * The expression id of the declared type, if applicable. * * Generated from protobuf field int32 id = 1; * @return int */ public function getId() { return $this->id; } /** * The expression id of the declared type, if applicable. * * Generated from protobuf field int32 id = 1; * @param int $var * @return $this */ public function setId($var) { GPBUtil::checkInt32($var); $this->id = $var; return $this; } /** * The type name, e.g. 'int', 'my.type.Type' or 'T' * * Generated from protobuf field string type = 2; * @return string */ public function getType() { return $this->type; } /** * The type name, e.g. 'int', 'my.type.Type' or 'T' * * Generated from protobuf field string type = 2; * @param string $var * @return $this */ public function setType($var) { GPBUtil::checkString($var, True); $this->type = $var; return $this; } /** * An ordered list of type parameters, e.g. ``. * Only applies to a subset of types, e.g. `map`, `list`. * * Generated from protobuf field repeated .google.api.expr.v1beta1.DeclType type_params = 4; * @return \Google\Protobuf\Internal\RepeatedField */ public function getTypeParams() { return $this->type_params; } /** * An ordered list of type parameters, e.g. ``. * Only applies to a subset of types, e.g. `map`, `list`. * * Generated from protobuf field repeated .google.api.expr.v1beta1.DeclType type_params = 4; * @param \Google\Api\Expr\V1beta1\DeclType[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setTypeParams($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Expr\V1beta1\DeclType::class); $this->type_params = $arr; return $this; } } src/Api/Expr/V1beta1/EnumValue.php000064400000004354151742727570012626 0ustar00google.api.expr.v1beta1.EnumValue */ class EnumValue extends \Google\Protobuf\Internal\Message { /** * The fully qualified name of the enum type. * * Generated from protobuf field string type = 1; */ private $type = ''; /** * The value of the enum. * * Generated from protobuf field int32 value = 2; */ private $value = 0; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $type * The fully qualified name of the enum type. * @type int $value * The value of the enum. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Expr\V1Beta1\Value::initOnce(); parent::__construct($data); } /** * The fully qualified name of the enum type. * * Generated from protobuf field string type = 1; * @return string */ public function getType() { return $this->type; } /** * The fully qualified name of the enum type. * * Generated from protobuf field string type = 1; * @param string $var * @return $this */ public function setType($var) { GPBUtil::checkString($var, True); $this->type = $var; return $this; } /** * The value of the enum. * * Generated from protobuf field int32 value = 2; * @return int */ public function getValue() { return $this->value; } /** * The value of the enum. * * Generated from protobuf field int32 value = 2; * @param int $var * @return $this */ public function setValue($var) { GPBUtil::checkInt32($var); $this->value = $var; return $this; } } src/Api/Expr/V1beta1/ErrorSet.php000064400000003466151742727570012475 0ustar00google.api.expr.v1beta1.ErrorSet */ class ErrorSet extends \Google\Protobuf\Internal\Message { /** * The errors in the set. * * Generated from protobuf field repeated .google.rpc.Status errors = 1; */ private $errors; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Google\Rpc\Status[]|\Google\Protobuf\Internal\RepeatedField $errors * The errors in the set. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Expr\V1Beta1\PBEval::initOnce(); parent::__construct($data); } /** * The errors in the set. * * Generated from protobuf field repeated .google.rpc.Status errors = 1; * @return \Google\Protobuf\Internal\RepeatedField */ public function getErrors() { return $this->errors; } /** * The errors in the set. * * Generated from protobuf field repeated .google.rpc.Status errors = 1; * @param \Google\Rpc\Status[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setErrors($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Rpc\Status::class); $this->errors = $arr; return $this; } } src/Api/Expr/V1beta1/EvalState.php000064400000007017151742727570012614 0ustar00google.api.expr.v1beta1.EvalState */ class EvalState extends \Google\Protobuf\Internal\Message { /** * The unique values referenced in this message. * * Generated from protobuf field repeated .google.api.expr.v1beta1.ExprValue values = 1; */ private $values; /** * An ordered list of results. * Tracks the flow of evaluation through the expression. * May be sparse. * * Generated from protobuf field repeated .google.api.expr.v1beta1.EvalState.Result results = 3; */ private $results; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Google\Api\Expr\V1beta1\ExprValue[]|\Google\Protobuf\Internal\RepeatedField $values * The unique values referenced in this message. * @type \Google\Api\Expr\V1beta1\EvalState\Result[]|\Google\Protobuf\Internal\RepeatedField $results * An ordered list of results. * Tracks the flow of evaluation through the expression. * May be sparse. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Expr\V1Beta1\PBEval::initOnce(); parent::__construct($data); } /** * The unique values referenced in this message. * * Generated from protobuf field repeated .google.api.expr.v1beta1.ExprValue values = 1; * @return \Google\Protobuf\Internal\RepeatedField */ public function getValues() { return $this->values; } /** * The unique values referenced in this message. * * Generated from protobuf field repeated .google.api.expr.v1beta1.ExprValue values = 1; * @param \Google\Api\Expr\V1beta1\ExprValue[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setValues($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Expr\V1beta1\ExprValue::class); $this->values = $arr; return $this; } /** * An ordered list of results. * Tracks the flow of evaluation through the expression. * May be sparse. * * Generated from protobuf field repeated .google.api.expr.v1beta1.EvalState.Result results = 3; * @return \Google\Protobuf\Internal\RepeatedField */ public function getResults() { return $this->results; } /** * An ordered list of results. * Tracks the flow of evaluation through the expression. * May be sparse. * * Generated from protobuf field repeated .google.api.expr.v1beta1.EvalState.Result results = 3; * @param \Google\Api\Expr\V1beta1\EvalState\Result[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setResults($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Expr\V1beta1\EvalState\Result::class); $this->results = $arr; return $this; } } src/Api/Expr/V1beta1/EvalState/Result.php000064400000005230151742727570014065 0ustar00google.api.expr.v1beta1.EvalState.Result */ class Result extends \Google\Protobuf\Internal\Message { /** * The expression this result is for. * * Generated from protobuf field .google.api.expr.v1beta1.IdRef expr = 1; */ private $expr = null; /** * The index in `values` of the resulting value. * * Generated from protobuf field int32 value = 2; */ private $value = 0; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Google\Api\Expr\V1beta1\IdRef $expr * The expression this result is for. * @type int $value * The index in `values` of the resulting value. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Expr\V1Beta1\PBEval::initOnce(); parent::__construct($data); } /** * The expression this result is for. * * Generated from protobuf field .google.api.expr.v1beta1.IdRef expr = 1; * @return \Google\Api\Expr\V1beta1\IdRef */ public function getExpr() { return $this->expr; } /** * The expression this result is for. * * Generated from protobuf field .google.api.expr.v1beta1.IdRef expr = 1; * @param \Google\Api\Expr\V1beta1\IdRef $var * @return $this */ public function setExpr($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1beta1\IdRef::class); $this->expr = $var; return $this; } /** * The index in `values` of the resulting value. * * Generated from protobuf field int32 value = 2; * @return int */ public function getValue() { return $this->value; } /** * The index in `values` of the resulting value. * * Generated from protobuf field int32 value = 2; * @param int $var * @return $this */ public function setValue($var) { GPBUtil::checkInt32($var); $this->value = $var; return $this; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Result::class, \Google\Api\Expr\V1beta1\EvalState_Result::class); src/Api/Expr/V1beta1/EvalState_Result.php000064400000001043151742727570014143 0ustar00google.api.expr.v1beta1.Expr */ class Expr extends \Google\Protobuf\Internal\Message { /** * Required. An id assigned to this node by the parser which is unique in a * given expression tree. This is used to associate type information and other * attributes to a node in the parse tree. * * Generated from protobuf field int32 id = 2; */ private $id = 0; protected $expr_kind; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int $id * Required. An id assigned to this node by the parser which is unique in a * given expression tree. This is used to associate type information and other * attributes to a node in the parse tree. * @type \Google\Api\Expr\V1beta1\Literal $literal_expr * A literal expression. * @type \Google\Api\Expr\V1beta1\Expr\Ident $ident_expr * An identifier expression. * @type \Google\Api\Expr\V1beta1\Expr\Select $select_expr * A field selection expression, e.g. `request.auth`. * @type \Google\Api\Expr\V1beta1\Expr\Call $call_expr * A call expression, including calls to predefined functions and operators. * @type \Google\Api\Expr\V1beta1\Expr\CreateList $list_expr * A list creation expression. * @type \Google\Api\Expr\V1beta1\Expr\CreateStruct $struct_expr * A map or object creation expression. * @type \Google\Api\Expr\V1beta1\Expr\Comprehension $comprehension_expr * A comprehension expression. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Expr\V1Beta1\Expr::initOnce(); parent::__construct($data); } /** * Required. An id assigned to this node by the parser which is unique in a * given expression tree. This is used to associate type information and other * attributes to a node in the parse tree. * * Generated from protobuf field int32 id = 2; * @return int */ public function getId() { return $this->id; } /** * Required. An id assigned to this node by the parser which is unique in a * given expression tree. This is used to associate type information and other * attributes to a node in the parse tree. * * Generated from protobuf field int32 id = 2; * @param int $var * @return $this */ public function setId($var) { GPBUtil::checkInt32($var); $this->id = $var; return $this; } /** * A literal expression. * * Generated from protobuf field .google.api.expr.v1beta1.Literal literal_expr = 3; * @return \Google\Api\Expr\V1beta1\Literal */ public function getLiteralExpr() { return $this->readOneof(3); } /** * A literal expression. * * Generated from protobuf field .google.api.expr.v1beta1.Literal literal_expr = 3; * @param \Google\Api\Expr\V1beta1\Literal $var * @return $this */ public function setLiteralExpr($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1beta1\Literal::class); $this->writeOneof(3, $var); return $this; } /** * An identifier expression. * * Generated from protobuf field .google.api.expr.v1beta1.Expr.Ident ident_expr = 4; * @return \Google\Api\Expr\V1beta1\Expr\Ident */ public function getIdentExpr() { return $this->readOneof(4); } /** * An identifier expression. * * Generated from protobuf field .google.api.expr.v1beta1.Expr.Ident ident_expr = 4; * @param \Google\Api\Expr\V1beta1\Expr\Ident $var * @return $this */ public function setIdentExpr($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1beta1\Expr_Ident::class); $this->writeOneof(4, $var); return $this; } /** * A field selection expression, e.g. `request.auth`. * * Generated from protobuf field .google.api.expr.v1beta1.Expr.Select select_expr = 5; * @return \Google\Api\Expr\V1beta1\Expr\Select */ public function getSelectExpr() { return $this->readOneof(5); } /** * A field selection expression, e.g. `request.auth`. * * Generated from protobuf field .google.api.expr.v1beta1.Expr.Select select_expr = 5; * @param \Google\Api\Expr\V1beta1\Expr\Select $var * @return $this */ public function setSelectExpr($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1beta1\Expr_Select::class); $this->writeOneof(5, $var); return $this; } /** * A call expression, including calls to predefined functions and operators. * * Generated from protobuf field .google.api.expr.v1beta1.Expr.Call call_expr = 6; * @return \Google\Api\Expr\V1beta1\Expr\Call */ public function getCallExpr() { return $this->readOneof(6); } /** * A call expression, including calls to predefined functions and operators. * * Generated from protobuf field .google.api.expr.v1beta1.Expr.Call call_expr = 6; * @param \Google\Api\Expr\V1beta1\Expr\Call $var * @return $this */ public function setCallExpr($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1beta1\Expr_Call::class); $this->writeOneof(6, $var); return $this; } /** * A list creation expression. * * Generated from protobuf field .google.api.expr.v1beta1.Expr.CreateList list_expr = 7; * @return \Google\Api\Expr\V1beta1\Expr\CreateList */ public function getListExpr() { return $this->readOneof(7); } /** * A list creation expression. * * Generated from protobuf field .google.api.expr.v1beta1.Expr.CreateList list_expr = 7; * @param \Google\Api\Expr\V1beta1\Expr\CreateList $var * @return $this */ public function setListExpr($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1beta1\Expr_CreateList::class); $this->writeOneof(7, $var); return $this; } /** * A map or object creation expression. * * Generated from protobuf field .google.api.expr.v1beta1.Expr.CreateStruct struct_expr = 8; * @return \Google\Api\Expr\V1beta1\Expr\CreateStruct */ public function getStructExpr() { return $this->readOneof(8); } /** * A map or object creation expression. * * Generated from protobuf field .google.api.expr.v1beta1.Expr.CreateStruct struct_expr = 8; * @param \Google\Api\Expr\V1beta1\Expr\CreateStruct $var * @return $this */ public function setStructExpr($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1beta1\Expr_CreateStruct::class); $this->writeOneof(8, $var); return $this; } /** * A comprehension expression. * * Generated from protobuf field .google.api.expr.v1beta1.Expr.Comprehension comprehension_expr = 9; * @return \Google\Api\Expr\V1beta1\Expr\Comprehension */ public function getComprehensionExpr() { return $this->readOneof(9); } /** * A comprehension expression. * * Generated from protobuf field .google.api.expr.v1beta1.Expr.Comprehension comprehension_expr = 9; * @param \Google\Api\Expr\V1beta1\Expr\Comprehension $var * @return $this */ public function setComprehensionExpr($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1beta1\Expr_Comprehension::class); $this->writeOneof(9, $var); return $this; } /** * @return string */ public function getExprKind() { return $this->whichOneof("expr_kind"); } } src/Api/Expr/V1beta1/Expr/Call.php000064400000010055151742727570012511 0ustar00google.api.expr.v1beta1.Expr.Call */ class Call extends \Google\Protobuf\Internal\Message { /** * The target of an method call-style expression. For example, `x` in * `x.f()`. * * Generated from protobuf field .google.api.expr.v1beta1.Expr target = 1; */ private $target = null; /** * Required. The name of the function or method being called. * * Generated from protobuf field string function = 2; */ private $function = ''; /** * The arguments. * * Generated from protobuf field repeated .google.api.expr.v1beta1.Expr args = 3; */ private $args; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Google\Api\Expr\V1beta1\Expr $target * The target of an method call-style expression. For example, `x` in * `x.f()`. * @type string $function * Required. The name of the function or method being called. * @type \Google\Api\Expr\V1beta1\Expr[]|\Google\Protobuf\Internal\RepeatedField $args * The arguments. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Expr\V1Beta1\Expr::initOnce(); parent::__construct($data); } /** * The target of an method call-style expression. For example, `x` in * `x.f()`. * * Generated from protobuf field .google.api.expr.v1beta1.Expr target = 1; * @return \Google\Api\Expr\V1beta1\Expr */ public function getTarget() { return $this->target; } /** * The target of an method call-style expression. For example, `x` in * `x.f()`. * * Generated from protobuf field .google.api.expr.v1beta1.Expr target = 1; * @param \Google\Api\Expr\V1beta1\Expr $var * @return $this */ public function setTarget($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1beta1\Expr::class); $this->target = $var; return $this; } /** * Required. The name of the function or method being called. * * Generated from protobuf field string function = 2; * @return string */ public function getFunction() { return $this->function; } /** * Required. The name of the function or method being called. * * Generated from protobuf field string function = 2; * @param string $var * @return $this */ public function setFunction($var) { GPBUtil::checkString($var, True); $this->function = $var; return $this; } /** * The arguments. * * Generated from protobuf field repeated .google.api.expr.v1beta1.Expr args = 3; * @return \Google\Protobuf\Internal\RepeatedField */ public function getArgs() { return $this->args; } /** * The arguments. * * Generated from protobuf field repeated .google.api.expr.v1beta1.Expr args = 3; * @param \Google\Api\Expr\V1beta1\Expr[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setArgs($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Expr\V1beta1\Expr::class); $this->args = $arr; return $this; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Call::class, \Google\Api\Expr\V1beta1\Expr_Call::class); src/Api/Expr/V1beta1/Expr/Comprehension.php000064400000023545151742727570014457 0ustar00 1000)`. * * `map` - apply an expression to all elements in the input and return the * output aggregate type: `[1, 2, 3].map(i, i * i)`. * The `has(m.x)` macro tests whether the property `x` is present in struct * `m`. The semantics of this macro depend on the type of `m`. For proto2 * messages `has(m.x)` is defined as 'defined, but not set`. For proto3, the * macro tests whether the property is set to its default. For map and struct * types, the macro tests whether the property `x` is defined on `m`. * * Generated from protobuf message google.api.expr.v1beta1.Expr.Comprehension */ class Comprehension extends \Google\Protobuf\Internal\Message { /** * The name of the iteration variable. * * Generated from protobuf field string iter_var = 1; */ private $iter_var = ''; /** * The range over which var iterates. * * Generated from protobuf field .google.api.expr.v1beta1.Expr iter_range = 2; */ private $iter_range = null; /** * The name of the variable used for accumulation of the result. * * Generated from protobuf field string accu_var = 3; */ private $accu_var = ''; /** * The initial value of the accumulator. * * Generated from protobuf field .google.api.expr.v1beta1.Expr accu_init = 4; */ private $accu_init = null; /** * An expression which can contain iter_var and accu_var. * Returns false when the result has been computed and may be used as * a hint to short-circuit the remainder of the comprehension. * * Generated from protobuf field .google.api.expr.v1beta1.Expr loop_condition = 5; */ private $loop_condition = null; /** * An expression which can contain iter_var and accu_var. * Computes the next value of accu_var. * * Generated from protobuf field .google.api.expr.v1beta1.Expr loop_step = 6; */ private $loop_step = null; /** * An expression which can contain accu_var. * Computes the result. * * Generated from protobuf field .google.api.expr.v1beta1.Expr result = 7; */ private $result = null; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $iter_var * The name of the iteration variable. * @type \Google\Api\Expr\V1beta1\Expr $iter_range * The range over which var iterates. * @type string $accu_var * The name of the variable used for accumulation of the result. * @type \Google\Api\Expr\V1beta1\Expr $accu_init * The initial value of the accumulator. * @type \Google\Api\Expr\V1beta1\Expr $loop_condition * An expression which can contain iter_var and accu_var. * Returns false when the result has been computed and may be used as * a hint to short-circuit the remainder of the comprehension. * @type \Google\Api\Expr\V1beta1\Expr $loop_step * An expression which can contain iter_var and accu_var. * Computes the next value of accu_var. * @type \Google\Api\Expr\V1beta1\Expr $result * An expression which can contain accu_var. * Computes the result. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Expr\V1Beta1\Expr::initOnce(); parent::__construct($data); } /** * The name of the iteration variable. * * Generated from protobuf field string iter_var = 1; * @return string */ public function getIterVar() { return $this->iter_var; } /** * The name of the iteration variable. * * Generated from protobuf field string iter_var = 1; * @param string $var * @return $this */ public function setIterVar($var) { GPBUtil::checkString($var, True); $this->iter_var = $var; return $this; } /** * The range over which var iterates. * * Generated from protobuf field .google.api.expr.v1beta1.Expr iter_range = 2; * @return \Google\Api\Expr\V1beta1\Expr */ public function getIterRange() { return $this->iter_range; } /** * The range over which var iterates. * * Generated from protobuf field .google.api.expr.v1beta1.Expr iter_range = 2; * @param \Google\Api\Expr\V1beta1\Expr $var * @return $this */ public function setIterRange($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1beta1\Expr::class); $this->iter_range = $var; return $this; } /** * The name of the variable used for accumulation of the result. * * Generated from protobuf field string accu_var = 3; * @return string */ public function getAccuVar() { return $this->accu_var; } /** * The name of the variable used for accumulation of the result. * * Generated from protobuf field string accu_var = 3; * @param string $var * @return $this */ public function setAccuVar($var) { GPBUtil::checkString($var, True); $this->accu_var = $var; return $this; } /** * The initial value of the accumulator. * * Generated from protobuf field .google.api.expr.v1beta1.Expr accu_init = 4; * @return \Google\Api\Expr\V1beta1\Expr */ public function getAccuInit() { return $this->accu_init; } /** * The initial value of the accumulator. * * Generated from protobuf field .google.api.expr.v1beta1.Expr accu_init = 4; * @param \Google\Api\Expr\V1beta1\Expr $var * @return $this */ public function setAccuInit($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1beta1\Expr::class); $this->accu_init = $var; return $this; } /** * An expression which can contain iter_var and accu_var. * Returns false when the result has been computed and may be used as * a hint to short-circuit the remainder of the comprehension. * * Generated from protobuf field .google.api.expr.v1beta1.Expr loop_condition = 5; * @return \Google\Api\Expr\V1beta1\Expr */ public function getLoopCondition() { return $this->loop_condition; } /** * An expression which can contain iter_var and accu_var. * Returns false when the result has been computed and may be used as * a hint to short-circuit the remainder of the comprehension. * * Generated from protobuf field .google.api.expr.v1beta1.Expr loop_condition = 5; * @param \Google\Api\Expr\V1beta1\Expr $var * @return $this */ public function setLoopCondition($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1beta1\Expr::class); $this->loop_condition = $var; return $this; } /** * An expression which can contain iter_var and accu_var. * Computes the next value of accu_var. * * Generated from protobuf field .google.api.expr.v1beta1.Expr loop_step = 6; * @return \Google\Api\Expr\V1beta1\Expr */ public function getLoopStep() { return $this->loop_step; } /** * An expression which can contain iter_var and accu_var. * Computes the next value of accu_var. * * Generated from protobuf field .google.api.expr.v1beta1.Expr loop_step = 6; * @param \Google\Api\Expr\V1beta1\Expr $var * @return $this */ public function setLoopStep($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1beta1\Expr::class); $this->loop_step = $var; return $this; } /** * An expression which can contain accu_var. * Computes the result. * * Generated from protobuf field .google.api.expr.v1beta1.Expr result = 7; * @return \Google\Api\Expr\V1beta1\Expr */ public function getResult() { return $this->result; } /** * An expression which can contain accu_var. * Computes the result. * * Generated from protobuf field .google.api.expr.v1beta1.Expr result = 7; * @param \Google\Api\Expr\V1beta1\Expr $var * @return $this */ public function setResult($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1beta1\Expr::class); $this->result = $var; return $this; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Comprehension::class, \Google\Api\Expr\V1beta1\Expr_Comprehension::class); src/Api/Expr/V1beta1/Expr/CreateList.php000064400000004207151742727570013677 0ustar00google.api.expr.v1beta1.Expr.CreateList */ class CreateList extends \Google\Protobuf\Internal\Message { /** * The elements part of the list. * * Generated from protobuf field repeated .google.api.expr.v1beta1.Expr elements = 1; */ private $elements; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Google\Api\Expr\V1beta1\Expr[]|\Google\Protobuf\Internal\RepeatedField $elements * The elements part of the list. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Expr\V1Beta1\Expr::initOnce(); parent::__construct($data); } /** * The elements part of the list. * * Generated from protobuf field repeated .google.api.expr.v1beta1.Expr elements = 1; * @return \Google\Protobuf\Internal\RepeatedField */ public function getElements() { return $this->elements; } /** * The elements part of the list. * * Generated from protobuf field repeated .google.api.expr.v1beta1.Expr elements = 1; * @param \Google\Api\Expr\V1beta1\Expr[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setElements($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Expr\V1beta1\Expr::class); $this->elements = $arr; return $this; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(CreateList::class, \Google\Api\Expr\V1beta1\Expr_CreateList::class); src/Api/Expr/V1beta1/Expr/CreateStruct.php000064400000006526151742727570014256 0ustar00google.api.expr.v1beta1.Expr.CreateStruct */ class CreateStruct extends \Google\Protobuf\Internal\Message { /** * The type name of the message to be created, empty when creating map * literals. * * Generated from protobuf field string type = 1; */ private $type = ''; /** * The entries in the creation expression. * * Generated from protobuf field repeated .google.api.expr.v1beta1.Expr.CreateStruct.Entry entries = 2; */ private $entries; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $type * The type name of the message to be created, empty when creating map * literals. * @type \Google\Api\Expr\V1beta1\Expr\CreateStruct\Entry[]|\Google\Protobuf\Internal\RepeatedField $entries * The entries in the creation expression. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Expr\V1Beta1\Expr::initOnce(); parent::__construct($data); } /** * The type name of the message to be created, empty when creating map * literals. * * Generated from protobuf field string type = 1; * @return string */ public function getType() { return $this->type; } /** * The type name of the message to be created, empty when creating map * literals. * * Generated from protobuf field string type = 1; * @param string $var * @return $this */ public function setType($var) { GPBUtil::checkString($var, True); $this->type = $var; return $this; } /** * The entries in the creation expression. * * Generated from protobuf field repeated .google.api.expr.v1beta1.Expr.CreateStruct.Entry entries = 2; * @return \Google\Protobuf\Internal\RepeatedField */ public function getEntries() { return $this->entries; } /** * The entries in the creation expression. * * Generated from protobuf field repeated .google.api.expr.v1beta1.Expr.CreateStruct.Entry entries = 2; * @param \Google\Api\Expr\V1beta1\Expr\CreateStruct\Entry[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setEntries($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Expr\V1beta1\Expr\CreateStruct\Entry::class); $this->entries = $arr; return $this; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(CreateStruct::class, \Google\Api\Expr\V1beta1\Expr_CreateStruct::class); src/Api/Expr/V1beta1/Expr/CreateStruct/Entry.php000064400000011617151742727570015354 0ustar00google.api.expr.v1beta1.Expr.CreateStruct.Entry */ class Entry extends \Google\Protobuf\Internal\Message { /** * Required. An id assigned to this node by the parser which is unique * in a given expression tree. This is used to associate type * information and other attributes to the node. * * Generated from protobuf field int32 id = 1; */ private $id = 0; /** * Required. The value assigned to the key. * * Generated from protobuf field .google.api.expr.v1beta1.Expr value = 4; */ private $value = null; protected $key_kind; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int $id * Required. An id assigned to this node by the parser which is unique * in a given expression tree. This is used to associate type * information and other attributes to the node. * @type string $field_key * The field key for a message creator statement. * @type \Google\Api\Expr\V1beta1\Expr $map_key * The key expression for a map creation statement. * @type \Google\Api\Expr\V1beta1\Expr $value * Required. The value assigned to the key. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Expr\V1Beta1\Expr::initOnce(); parent::__construct($data); } /** * Required. An id assigned to this node by the parser which is unique * in a given expression tree. This is used to associate type * information and other attributes to the node. * * Generated from protobuf field int32 id = 1; * @return int */ public function getId() { return $this->id; } /** * Required. An id assigned to this node by the parser which is unique * in a given expression tree. This is used to associate type * information and other attributes to the node. * * Generated from protobuf field int32 id = 1; * @param int $var * @return $this */ public function setId($var) { GPBUtil::checkInt32($var); $this->id = $var; return $this; } /** * The field key for a message creator statement. * * Generated from protobuf field string field_key = 2; * @return string */ public function getFieldKey() { return $this->readOneof(2); } /** * The field key for a message creator statement. * * Generated from protobuf field string field_key = 2; * @param string $var * @return $this */ public function setFieldKey($var) { GPBUtil::checkString($var, True); $this->writeOneof(2, $var); return $this; } /** * The key expression for a map creation statement. * * Generated from protobuf field .google.api.expr.v1beta1.Expr map_key = 3; * @return \Google\Api\Expr\V1beta1\Expr */ public function getMapKey() { return $this->readOneof(3); } /** * The key expression for a map creation statement. * * Generated from protobuf field .google.api.expr.v1beta1.Expr map_key = 3; * @param \Google\Api\Expr\V1beta1\Expr $var * @return $this */ public function setMapKey($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1beta1\Expr::class); $this->writeOneof(3, $var); return $this; } /** * Required. The value assigned to the key. * * Generated from protobuf field .google.api.expr.v1beta1.Expr value = 4; * @return \Google\Api\Expr\V1beta1\Expr */ public function getValue() { return $this->value; } /** * Required. The value assigned to the key. * * Generated from protobuf field .google.api.expr.v1beta1.Expr value = 4; * @param \Google\Api\Expr\V1beta1\Expr $var * @return $this */ public function setValue($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1beta1\Expr::class); $this->value = $var; return $this; } /** * @return string */ public function getKeyKind() { return $this->whichOneof("key_kind"); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Entry::class, \Google\Api\Expr\V1beta1\Expr_CreateStruct_Entry::class); src/Api/Expr/V1beta1/Expr/Ident.php000064400000004476151742727570012713 0ustar00google.api.expr.v1beta1.Expr.Ident */ class Ident extends \Google\Protobuf\Internal\Message { /** * Required. Holds a single, unqualified identifier, possibly preceded by a * '.'. * Qualified names are represented by the [Expr.Select][google.api.expr.v1beta1.Expr.Select] expression. * * Generated from protobuf field string name = 1; */ private $name = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $name * Required. Holds a single, unqualified identifier, possibly preceded by a * '.'. * Qualified names are represented by the [Expr.Select][google.api.expr.v1beta1.Expr.Select] expression. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Expr\V1Beta1\Expr::initOnce(); parent::__construct($data); } /** * Required. Holds a single, unqualified identifier, possibly preceded by a * '.'. * Qualified names are represented by the [Expr.Select][google.api.expr.v1beta1.Expr.Select] expression. * * Generated from protobuf field string name = 1; * @return string */ public function getName() { return $this->name; } /** * Required. Holds a single, unqualified identifier, possibly preceded by a * '.'. * Qualified names are represented by the [Expr.Select][google.api.expr.v1beta1.Expr.Select] expression. * * Generated from protobuf field string name = 1; * @param string $var * @return $this */ public function setName($var) { GPBUtil::checkString($var, True); $this->name = $var; return $this; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Ident::class, \Google\Api\Expr\V1beta1\Expr_Ident::class); src/Api/Expr/V1beta1/Expr/Select.php000064400000011640151742727570013056 0ustar00google.api.expr.v1beta1.Expr.Select */ class Select extends \Google\Protobuf\Internal\Message { /** * Required. The target of the selection expression. * For example, in the select expression `request.auth`, the `request` * portion of the expression is the `operand`. * * Generated from protobuf field .google.api.expr.v1beta1.Expr operand = 1; */ private $operand = null; /** * Required. The name of the field to select. * For example, in the select expression `request.auth`, the `auth` portion * of the expression would be the `field`. * * Generated from protobuf field string field = 2; */ private $field = ''; /** * Whether the select is to be interpreted as a field presence test. * This results from the macro `has(request.auth)`. * * Generated from protobuf field bool test_only = 3; */ private $test_only = false; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Google\Api\Expr\V1beta1\Expr $operand * Required. The target of the selection expression. * For example, in the select expression `request.auth`, the `request` * portion of the expression is the `operand`. * @type string $field * Required. The name of the field to select. * For example, in the select expression `request.auth`, the `auth` portion * of the expression would be the `field`. * @type bool $test_only * Whether the select is to be interpreted as a field presence test. * This results from the macro `has(request.auth)`. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Expr\V1Beta1\Expr::initOnce(); parent::__construct($data); } /** * Required. The target of the selection expression. * For example, in the select expression `request.auth`, the `request` * portion of the expression is the `operand`. * * Generated from protobuf field .google.api.expr.v1beta1.Expr operand = 1; * @return \Google\Api\Expr\V1beta1\Expr */ public function getOperand() { return $this->operand; } /** * Required. The target of the selection expression. * For example, in the select expression `request.auth`, the `request` * portion of the expression is the `operand`. * * Generated from protobuf field .google.api.expr.v1beta1.Expr operand = 1; * @param \Google\Api\Expr\V1beta1\Expr $var * @return $this */ public function setOperand($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1beta1\Expr::class); $this->operand = $var; return $this; } /** * Required. The name of the field to select. * For example, in the select expression `request.auth`, the `auth` portion * of the expression would be the `field`. * * Generated from protobuf field string field = 2; * @return string */ public function getField() { return $this->field; } /** * Required. The name of the field to select. * For example, in the select expression `request.auth`, the `auth` portion * of the expression would be the `field`. * * Generated from protobuf field string field = 2; * @param string $var * @return $this */ public function setField($var) { GPBUtil::checkString($var, True); $this->field = $var; return $this; } /** * Whether the select is to be interpreted as a field presence test. * This results from the macro `has(request.auth)`. * * Generated from protobuf field bool test_only = 3; * @return bool */ public function getTestOnly() { return $this->test_only; } /** * Whether the select is to be interpreted as a field presence test. * This results from the macro `has(request.auth)`. * * Generated from protobuf field bool test_only = 3; * @param bool $var * @return $this */ public function setTestOnly($var) { GPBUtil::checkBool($var); $this->test_only = $var; return $this; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Select::class, \Google\Api\Expr\V1beta1\Expr_Select::class); src/Api/Expr/V1beta1/ExprValue.php000064400000021372151742727570012637 0ustar00google.api.expr.v1beta1.ExprValue */ class ExprValue extends \Google\Protobuf\Internal\Message { protected $kind; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Google\Api\Expr\V1beta1\Value $value * A concrete value. * @type \Google\Api\Expr\V1beta1\ErrorSet $error * The set of errors in the critical path of evalution. * Only errors in the critical path are included. For example, * `( || true) && ` will only result in ``, * while ` || ` will result in both `` and * ``. * Errors cause by the presence of other errors are not included in the * set. For example `.foo`, `foo()`, and ` + 1` will * only result in ``. * Multiple errors *might* be included when evaluation could result * in different errors. For example ` + ` and * `foo(, )` may result in ``, `` or both. * The exact subset of errors included for this case is unspecified and * depends on the implementation details of the evaluator. * @type \Google\Api\Expr\V1beta1\UnknownSet $unknown * The set of unknowns in the critical path of evaluation. * Unknown behaves identically to Error with regards to propagation. * Specifically, only unknowns in the critical path are included, unknowns * caused by the presence of other unknowns are not included, and multiple * unknowns *might* be included included when evaluation could result in * different unknowns. For example: * ( || true) && -> * || -> * .foo -> * foo() -> * + -> or * Unknown takes precidence over Error in cases where a `Value` can short * circuit the result: * || -> * && -> * Errors take precidence in all other cases: * + -> * foo(, ) -> * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Expr\V1Beta1\PBEval::initOnce(); parent::__construct($data); } /** * A concrete value. * * Generated from protobuf field .google.api.expr.v1beta1.Value value = 1; * @return \Google\Api\Expr\V1beta1\Value */ public function getValue() { return $this->readOneof(1); } /** * A concrete value. * * Generated from protobuf field .google.api.expr.v1beta1.Value value = 1; * @param \Google\Api\Expr\V1beta1\Value $var * @return $this */ public function setValue($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1beta1\Value::class); $this->writeOneof(1, $var); return $this; } /** * The set of errors in the critical path of evalution. * Only errors in the critical path are included. For example, * `( || true) && ` will only result in ``, * while ` || ` will result in both `` and * ``. * Errors cause by the presence of other errors are not included in the * set. For example `.foo`, `foo()`, and ` + 1` will * only result in ``. * Multiple errors *might* be included when evaluation could result * in different errors. For example ` + ` and * `foo(, )` may result in ``, `` or both. * The exact subset of errors included for this case is unspecified and * depends on the implementation details of the evaluator. * * Generated from protobuf field .google.api.expr.v1beta1.ErrorSet error = 2; * @return \Google\Api\Expr\V1beta1\ErrorSet */ public function getError() { return $this->readOneof(2); } /** * The set of errors in the critical path of evalution. * Only errors in the critical path are included. For example, * `( || true) && ` will only result in ``, * while ` || ` will result in both `` and * ``. * Errors cause by the presence of other errors are not included in the * set. For example `.foo`, `foo()`, and ` + 1` will * only result in ``. * Multiple errors *might* be included when evaluation could result * in different errors. For example ` + ` and * `foo(, )` may result in ``, `` or both. * The exact subset of errors included for this case is unspecified and * depends on the implementation details of the evaluator. * * Generated from protobuf field .google.api.expr.v1beta1.ErrorSet error = 2; * @param \Google\Api\Expr\V1beta1\ErrorSet $var * @return $this */ public function setError($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1beta1\ErrorSet::class); $this->writeOneof(2, $var); return $this; } /** * The set of unknowns in the critical path of evaluation. * Unknown behaves identically to Error with regards to propagation. * Specifically, only unknowns in the critical path are included, unknowns * caused by the presence of other unknowns are not included, and multiple * unknowns *might* be included included when evaluation could result in * different unknowns. For example: * ( || true) && -> * || -> * .foo -> * foo() -> * + -> or * Unknown takes precidence over Error in cases where a `Value` can short * circuit the result: * || -> * && -> * Errors take precidence in all other cases: * + -> * foo(, ) -> * * Generated from protobuf field .google.api.expr.v1beta1.UnknownSet unknown = 3; * @return \Google\Api\Expr\V1beta1\UnknownSet */ public function getUnknown() { return $this->readOneof(3); } /** * The set of unknowns in the critical path of evaluation. * Unknown behaves identically to Error with regards to propagation. * Specifically, only unknowns in the critical path are included, unknowns * caused by the presence of other unknowns are not included, and multiple * unknowns *might* be included included when evaluation could result in * different unknowns. For example: * ( || true) && -> * || -> * .foo -> * foo() -> * + -> or * Unknown takes precidence over Error in cases where a `Value` can short * circuit the result: * || -> * && -> * Errors take precidence in all other cases: * + -> * foo(, ) -> * * Generated from protobuf field .google.api.expr.v1beta1.UnknownSet unknown = 3; * @param \Google\Api\Expr\V1beta1\UnknownSet $var * @return $this */ public function setUnknown($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1beta1\UnknownSet::class); $this->writeOneof(3, $var); return $this; } /** * @return string */ public function getKind() { return $this->whichOneof("kind"); } } src/Api/Expr/V1beta1/Expr_Call.php000064400000001000151742727570012557 0ustar00google.api.expr.v1beta1.FunctionDecl */ class FunctionDecl extends \Google\Protobuf\Internal\Message { /** * The function arguments. * * Generated from protobuf field repeated .google.api.expr.v1beta1.IdentDecl args = 1; */ private $args; /** * Optional declared return type. * * Generated from protobuf field .google.api.expr.v1beta1.DeclType return_type = 2; */ private $return_type = null; /** * If the first argument of the function is the receiver. * * Generated from protobuf field bool receiver_function = 3; */ private $receiver_function = false; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Google\Api\Expr\V1beta1\IdentDecl[]|\Google\Protobuf\Internal\RepeatedField $args * The function arguments. * @type \Google\Api\Expr\V1beta1\DeclType $return_type * Optional declared return type. * @type bool $receiver_function * If the first argument of the function is the receiver. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Expr\V1Beta1\Decl::initOnce(); parent::__construct($data); } /** * The function arguments. * * Generated from protobuf field repeated .google.api.expr.v1beta1.IdentDecl args = 1; * @return \Google\Protobuf\Internal\RepeatedField */ public function getArgs() { return $this->args; } /** * The function arguments. * * Generated from protobuf field repeated .google.api.expr.v1beta1.IdentDecl args = 1; * @param \Google\Api\Expr\V1beta1\IdentDecl[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setArgs($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Expr\V1beta1\IdentDecl::class); $this->args = $arr; return $this; } /** * Optional declared return type. * * Generated from protobuf field .google.api.expr.v1beta1.DeclType return_type = 2; * @return \Google\Api\Expr\V1beta1\DeclType */ public function getReturnType() { return $this->return_type; } /** * Optional declared return type. * * Generated from protobuf field .google.api.expr.v1beta1.DeclType return_type = 2; * @param \Google\Api\Expr\V1beta1\DeclType $var * @return $this */ public function setReturnType($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1beta1\DeclType::class); $this->return_type = $var; return $this; } /** * If the first argument of the function is the receiver. * * Generated from protobuf field bool receiver_function = 3; * @return bool */ public function getReceiverFunction() { return $this->receiver_function; } /** * If the first argument of the function is the receiver. * * Generated from protobuf field bool receiver_function = 3; * @param bool $var * @return $this */ public function setReceiverFunction($var) { GPBUtil::checkBool($var); $this->receiver_function = $var; return $this; } } src/Api/Expr/V1beta1/IdRef.php000064400000002635151742727570011716 0ustar00google.api.expr.v1beta1.IdRef */ class IdRef extends \Google\Protobuf\Internal\Message { /** * The expression id. * * Generated from protobuf field int32 id = 1; */ private $id = 0; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int $id * The expression id. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Expr\V1Beta1\PBEval::initOnce(); parent::__construct($data); } /** * The expression id. * * Generated from protobuf field int32 id = 1; * @return int */ public function getId() { return $this->id; } /** * The expression id. * * Generated from protobuf field int32 id = 1; * @param int $var * @return $this */ public function setId($var) { GPBUtil::checkInt32($var); $this->id = $var; return $this; } } src/Api/Expr/V1beta1/IdentDecl.php000064400000005204151742727570012553 0ustar00google.api.expr.v1beta1.IdentDecl */ class IdentDecl extends \Google\Protobuf\Internal\Message { /** * Optional type of the identifier. * * Generated from protobuf field .google.api.expr.v1beta1.DeclType type = 3; */ private $type = null; /** * Optional value of the identifier. * * Generated from protobuf field .google.api.expr.v1beta1.Expr value = 4; */ private $value = null; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Google\Api\Expr\V1beta1\DeclType $type * Optional type of the identifier. * @type \Google\Api\Expr\V1beta1\Expr $value * Optional value of the identifier. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Expr\V1Beta1\Decl::initOnce(); parent::__construct($data); } /** * Optional type of the identifier. * * Generated from protobuf field .google.api.expr.v1beta1.DeclType type = 3; * @return \Google\Api\Expr\V1beta1\DeclType */ public function getType() { return $this->type; } /** * Optional type of the identifier. * * Generated from protobuf field .google.api.expr.v1beta1.DeclType type = 3; * @param \Google\Api\Expr\V1beta1\DeclType $var * @return $this */ public function setType($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1beta1\DeclType::class); $this->type = $var; return $this; } /** * Optional value of the identifier. * * Generated from protobuf field .google.api.expr.v1beta1.Expr value = 4; * @return \Google\Api\Expr\V1beta1\Expr */ public function getValue() { return $this->value; } /** * Optional value of the identifier. * * Generated from protobuf field .google.api.expr.v1beta1.Expr value = 4; * @param \Google\Api\Expr\V1beta1\Expr $var * @return $this */ public function setValue($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1beta1\Expr::class); $this->value = $var; return $this; } } src/Api/Expr/V1beta1/ListValue.php000064400000003707151742727570012636 0ustar00google.api.expr.v1beta1.ListValue */ class ListValue extends \Google\Protobuf\Internal\Message { /** * The ordered values in the list. * * Generated from protobuf field repeated .google.api.expr.v1beta1.Value values = 1; */ private $values; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Google\Api\Expr\V1beta1\Value[]|\Google\Protobuf\Internal\RepeatedField $values * The ordered values in the list. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Expr\V1Beta1\Value::initOnce(); parent::__construct($data); } /** * The ordered values in the list. * * Generated from protobuf field repeated .google.api.expr.v1beta1.Value values = 1; * @return \Google\Protobuf\Internal\RepeatedField */ public function getValues() { return $this->values; } /** * The ordered values in the list. * * Generated from protobuf field repeated .google.api.expr.v1beta1.Value values = 1; * @param \Google\Api\Expr\V1beta1\Value[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setValues($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Expr\V1beta1\Value::class); $this->values = $arr; return $this; } } src/Api/Expr/V1beta1/Literal.php000064400000013076151742727570012322 0ustar00google.api.expr.v1beta1.Literal */ class Literal extends \Google\Protobuf\Internal\Message { protected $constant_kind; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int $null_value * null value. * @type bool $bool_value * boolean value. * @type int|string $int64_value * int64 value. * @type int|string $uint64_value * uint64 value. * @type float $double_value * double value. * @type string $string_value * string value. * @type string $bytes_value * bytes value. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Expr\V1Beta1\Expr::initOnce(); parent::__construct($data); } /** * null value. * * Generated from protobuf field .google.protobuf.NullValue null_value = 1; * @return int */ public function getNullValue() { return $this->readOneof(1); } /** * null value. * * Generated from protobuf field .google.protobuf.NullValue null_value = 1; * @param int $var * @return $this */ public function setNullValue($var) { GPBUtil::checkEnum($var, \Google\Protobuf\NullValue::class); $this->writeOneof(1, $var); return $this; } /** * boolean value. * * Generated from protobuf field bool bool_value = 2; * @return bool */ public function getBoolValue() { return $this->readOneof(2); } /** * boolean value. * * Generated from protobuf field bool bool_value = 2; * @param bool $var * @return $this */ public function setBoolValue($var) { GPBUtil::checkBool($var); $this->writeOneof(2, $var); return $this; } /** * int64 value. * * Generated from protobuf field int64 int64_value = 3; * @return int|string */ public function getInt64Value() { return $this->readOneof(3); } /** * int64 value. * * Generated from protobuf field int64 int64_value = 3; * @param int|string $var * @return $this */ public function setInt64Value($var) { GPBUtil::checkInt64($var); $this->writeOneof(3, $var); return $this; } /** * uint64 value. * * Generated from protobuf field uint64 uint64_value = 4; * @return int|string */ public function getUint64Value() { return $this->readOneof(4); } /** * uint64 value. * * Generated from protobuf field uint64 uint64_value = 4; * @param int|string $var * @return $this */ public function setUint64Value($var) { GPBUtil::checkUint64($var); $this->writeOneof(4, $var); return $this; } /** * double value. * * Generated from protobuf field double double_value = 5; * @return float */ public function getDoubleValue() { return $this->readOneof(5); } /** * double value. * * Generated from protobuf field double double_value = 5; * @param float $var * @return $this */ public function setDoubleValue($var) { GPBUtil::checkDouble($var); $this->writeOneof(5, $var); return $this; } /** * string value. * * Generated from protobuf field string string_value = 6; * @return string */ public function getStringValue() { return $this->readOneof(6); } /** * string value. * * Generated from protobuf field string string_value = 6; * @param string $var * @return $this */ public function setStringValue($var) { GPBUtil::checkString($var, True); $this->writeOneof(6, $var); return $this; } /** * bytes value. * * Generated from protobuf field bytes bytes_value = 7; * @return string */ public function getBytesValue() { return $this->readOneof(7); } /** * bytes value. * * Generated from protobuf field bytes bytes_value = 7; * @param string $var * @return $this */ public function setBytesValue($var) { GPBUtil::checkString($var, False); $this->writeOneof(7, $var); return $this; } /** * @return string */ public function getConstantKind() { return $this->whichOneof("constant_kind"); } } src/Api/Expr/V1beta1/MapValue.php000064400000004577151742727570012446 0ustar00google.api.expr.v1beta1.MapValue */ class MapValue extends \Google\Protobuf\Internal\Message { /** * The set of map entries. * CEL has fewer restrictions on keys, so a protobuf map represenation * cannot be used. * * Generated from protobuf field repeated .google.api.expr.v1beta1.MapValue.Entry entries = 1; */ private $entries; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Google\Api\Expr\V1beta1\MapValue\Entry[]|\Google\Protobuf\Internal\RepeatedField $entries * The set of map entries. * CEL has fewer restrictions on keys, so a protobuf map represenation * cannot be used. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Expr\V1Beta1\Value::initOnce(); parent::__construct($data); } /** * The set of map entries. * CEL has fewer restrictions on keys, so a protobuf map represenation * cannot be used. * * Generated from protobuf field repeated .google.api.expr.v1beta1.MapValue.Entry entries = 1; * @return \Google\Protobuf\Internal\RepeatedField */ public function getEntries() { return $this->entries; } /** * The set of map entries. * CEL has fewer restrictions on keys, so a protobuf map represenation * cannot be used. * * Generated from protobuf field repeated .google.api.expr.v1beta1.MapValue.Entry entries = 1; * @param \Google\Api\Expr\V1beta1\MapValue\Entry[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setEntries($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Expr\V1beta1\MapValue\Entry::class); $this->entries = $arr; return $this; } } src/Api/Expr/V1beta1/MapValue/Entry.php000064400000006051151742727570013534 0ustar00google.api.expr.v1beta1.MapValue.Entry */ class Entry extends \Google\Protobuf\Internal\Message { /** * The key. * Must be unique with in the map. * Currently only boolean, int, uint, and string values can be keys. * * Generated from protobuf field .google.api.expr.v1beta1.Value key = 1; */ private $key = null; /** * The value. * * Generated from protobuf field .google.api.expr.v1beta1.Value value = 2; */ private $value = null; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Google\Api\Expr\V1beta1\Value $key * The key. * Must be unique with in the map. * Currently only boolean, int, uint, and string values can be keys. * @type \Google\Api\Expr\V1beta1\Value $value * The value. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Expr\V1Beta1\Value::initOnce(); parent::__construct($data); } /** * The key. * Must be unique with in the map. * Currently only boolean, int, uint, and string values can be keys. * * Generated from protobuf field .google.api.expr.v1beta1.Value key = 1; * @return \Google\Api\Expr\V1beta1\Value */ public function getKey() { return $this->key; } /** * The key. * Must be unique with in the map. * Currently only boolean, int, uint, and string values can be keys. * * Generated from protobuf field .google.api.expr.v1beta1.Value key = 1; * @param \Google\Api\Expr\V1beta1\Value $var * @return $this */ public function setKey($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1beta1\Value::class); $this->key = $var; return $this; } /** * The value. * * Generated from protobuf field .google.api.expr.v1beta1.Value value = 2; * @return \Google\Api\Expr\V1beta1\Value */ public function getValue() { return $this->value; } /** * The value. * * Generated from protobuf field .google.api.expr.v1beta1.Value value = 2; * @param \Google\Api\Expr\V1beta1\Value $var * @return $this */ public function setValue($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1beta1\Value::class); $this->value = $var; return $this; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Entry::class, \Google\Api\Expr\V1beta1\MapValue_Entry::class); src/Api/Expr/V1beta1/MapValue_Entry.php000064400000001032151742727570013606 0ustar00google.api.expr.v1beta1.ParsedExpr */ class ParsedExpr extends \Google\Protobuf\Internal\Message { /** * The parsed expression. * * Generated from protobuf field .google.api.expr.v1beta1.Expr expr = 2; */ private $expr = null; /** * The source info derived from input that generated the parsed `expr`. * * Generated from protobuf field .google.api.expr.v1beta1.SourceInfo source_info = 3; */ private $source_info = null; /** * The syntax version of the source, e.g. `cel1`. * * Generated from protobuf field string syntax_version = 4; */ private $syntax_version = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Google\Api\Expr\V1beta1\Expr $expr * The parsed expression. * @type \Google\Api\Expr\V1beta1\SourceInfo $source_info * The source info derived from input that generated the parsed `expr`. * @type string $syntax_version * The syntax version of the source, e.g. `cel1`. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Expr\V1Beta1\Expr::initOnce(); parent::__construct($data); } /** * The parsed expression. * * Generated from protobuf field .google.api.expr.v1beta1.Expr expr = 2; * @return \Google\Api\Expr\V1beta1\Expr */ public function getExpr() { return $this->expr; } /** * The parsed expression. * * Generated from protobuf field .google.api.expr.v1beta1.Expr expr = 2; * @param \Google\Api\Expr\V1beta1\Expr $var * @return $this */ public function setExpr($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1beta1\Expr::class); $this->expr = $var; return $this; } /** * The source info derived from input that generated the parsed `expr`. * * Generated from protobuf field .google.api.expr.v1beta1.SourceInfo source_info = 3; * @return \Google\Api\Expr\V1beta1\SourceInfo */ public function getSourceInfo() { return $this->source_info; } /** * The source info derived from input that generated the parsed `expr`. * * Generated from protobuf field .google.api.expr.v1beta1.SourceInfo source_info = 3; * @param \Google\Api\Expr\V1beta1\SourceInfo $var * @return $this */ public function setSourceInfo($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1beta1\SourceInfo::class); $this->source_info = $var; return $this; } /** * The syntax version of the source, e.g. `cel1`. * * Generated from protobuf field string syntax_version = 4; * @return string */ public function getSyntaxVersion() { return $this->syntax_version; } /** * The syntax version of the source, e.g. `cel1`. * * Generated from protobuf field string syntax_version = 4; * @param string $var * @return $this */ public function setSyntaxVersion($var) { GPBUtil::checkString($var, True); $this->syntax_version = $var; return $this; } } src/Api/Expr/V1beta1/SourceInfo.php000064400000013172151742727570012777 0ustar00google.api.expr.v1beta1.SourceInfo */ class SourceInfo extends \Google\Protobuf\Internal\Message { /** * The location name. All position information attached to an expression is * relative to this location. * The location could be a file, UI element, or similar. For example, * `acme/app/AnvilPolicy.cel`. * * Generated from protobuf field string location = 2; */ private $location = ''; /** * Monotonically increasing list of character offsets where newlines appear. * The line number of a given position is the index `i` where for a given * `id` the `line_offsets[i] < id_positions[id] < line_offsets[i+1]`. The * column may be derivd from `id_positions[id] - line_offsets[i]`. * * Generated from protobuf field repeated int32 line_offsets = 3; */ private $line_offsets; /** * A map from the parse node id (e.g. `Expr.id`) to the character offset * within source. * * Generated from protobuf field map positions = 4; */ private $positions; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $location * The location name. All position information attached to an expression is * relative to this location. * The location could be a file, UI element, or similar. For example, * `acme/app/AnvilPolicy.cel`. * @type int[]|\Google\Protobuf\Internal\RepeatedField $line_offsets * Monotonically increasing list of character offsets where newlines appear. * The line number of a given position is the index `i` where for a given * `id` the `line_offsets[i] < id_positions[id] < line_offsets[i+1]`. The * column may be derivd from `id_positions[id] - line_offsets[i]`. * @type array|\Google\Protobuf\Internal\MapField $positions * A map from the parse node id (e.g. `Expr.id`) to the character offset * within source. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Expr\V1Beta1\Source::initOnce(); parent::__construct($data); } /** * The location name. All position information attached to an expression is * relative to this location. * The location could be a file, UI element, or similar. For example, * `acme/app/AnvilPolicy.cel`. * * Generated from protobuf field string location = 2; * @return string */ public function getLocation() { return $this->location; } /** * The location name. All position information attached to an expression is * relative to this location. * The location could be a file, UI element, or similar. For example, * `acme/app/AnvilPolicy.cel`. * * Generated from protobuf field string location = 2; * @param string $var * @return $this */ public function setLocation($var) { GPBUtil::checkString($var, True); $this->location = $var; return $this; } /** * Monotonically increasing list of character offsets where newlines appear. * The line number of a given position is the index `i` where for a given * `id` the `line_offsets[i] < id_positions[id] < line_offsets[i+1]`. The * column may be derivd from `id_positions[id] - line_offsets[i]`. * * Generated from protobuf field repeated int32 line_offsets = 3; * @return \Google\Protobuf\Internal\RepeatedField */ public function getLineOffsets() { return $this->line_offsets; } /** * Monotonically increasing list of character offsets where newlines appear. * The line number of a given position is the index `i` where for a given * `id` the `line_offsets[i] < id_positions[id] < line_offsets[i+1]`. The * column may be derivd from `id_positions[id] - line_offsets[i]`. * * Generated from protobuf field repeated int32 line_offsets = 3; * @param int[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setLineOffsets($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32); $this->line_offsets = $arr; return $this; } /** * A map from the parse node id (e.g. `Expr.id`) to the character offset * within source. * * Generated from protobuf field map positions = 4; * @return \Google\Protobuf\Internal\MapField */ public function getPositions() { return $this->positions; } /** * A map from the parse node id (e.g. `Expr.id`) to the character offset * within source. * * Generated from protobuf field map positions = 4; * @param array|\Google\Protobuf\Internal\MapField $var * @return $this */ public function setPositions($var) { $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::INT32, \Google\Protobuf\Internal\GPBType::INT32); $this->positions = $arr; return $this; } } src/Api/Expr/V1beta1/SourcePosition.php000064400000011023151742727570013701 0ustar00google.api.expr.v1beta1.SourcePosition */ class SourcePosition extends \Google\Protobuf\Internal\Message { /** * The soucre location name (e.g. file name). * * Generated from protobuf field string location = 1; */ private $location = ''; /** * The character offset. * * Generated from protobuf field int32 offset = 2; */ private $offset = 0; /** * The 1-based index of the starting line in the source text * where the issue occurs, or 0 if unknown. * * Generated from protobuf field int32 line = 3; */ private $line = 0; /** * The 0-based index of the starting position within the line of source text * where the issue occurs. Only meaningful if line is nonzer.. * * Generated from protobuf field int32 column = 4; */ private $column = 0; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $location * The soucre location name (e.g. file name). * @type int $offset * The character offset. * @type int $line * The 1-based index of the starting line in the source text * where the issue occurs, or 0 if unknown. * @type int $column * The 0-based index of the starting position within the line of source text * where the issue occurs. Only meaningful if line is nonzer.. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Expr\V1Beta1\Source::initOnce(); parent::__construct($data); } /** * The soucre location name (e.g. file name). * * Generated from protobuf field string location = 1; * @return string */ public function getLocation() { return $this->location; } /** * The soucre location name (e.g. file name). * * Generated from protobuf field string location = 1; * @param string $var * @return $this */ public function setLocation($var) { GPBUtil::checkString($var, True); $this->location = $var; return $this; } /** * The character offset. * * Generated from protobuf field int32 offset = 2; * @return int */ public function getOffset() { return $this->offset; } /** * The character offset. * * Generated from protobuf field int32 offset = 2; * @param int $var * @return $this */ public function setOffset($var) { GPBUtil::checkInt32($var); $this->offset = $var; return $this; } /** * The 1-based index of the starting line in the source text * where the issue occurs, or 0 if unknown. * * Generated from protobuf field int32 line = 3; * @return int */ public function getLine() { return $this->line; } /** * The 1-based index of the starting line in the source text * where the issue occurs, or 0 if unknown. * * Generated from protobuf field int32 line = 3; * @param int $var * @return $this */ public function setLine($var) { GPBUtil::checkInt32($var); $this->line = $var; return $this; } /** * The 0-based index of the starting position within the line of source text * where the issue occurs. Only meaningful if line is nonzer.. * * Generated from protobuf field int32 column = 4; * @return int */ public function getColumn() { return $this->column; } /** * The 0-based index of the starting position within the line of source text * where the issue occurs. Only meaningful if line is nonzer.. * * Generated from protobuf field int32 column = 4; * @param int $var * @return $this */ public function setColumn($var) { GPBUtil::checkInt32($var); $this->column = $var; return $this; } } src/Api/Expr/V1beta1/UnknownSet.php000064400000004005151742727570013031 0ustar00google.api.expr.v1beta1.UnknownSet */ class UnknownSet extends \Google\Protobuf\Internal\Message { /** * The ids of the expressions with unknown values. * * Generated from protobuf field repeated .google.api.expr.v1beta1.IdRef exprs = 1; */ private $exprs; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Google\Api\Expr\V1beta1\IdRef[]|\Google\Protobuf\Internal\RepeatedField $exprs * The ids of the expressions with unknown values. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Expr\V1Beta1\PBEval::initOnce(); parent::__construct($data); } /** * The ids of the expressions with unknown values. * * Generated from protobuf field repeated .google.api.expr.v1beta1.IdRef exprs = 1; * @return \Google\Protobuf\Internal\RepeatedField */ public function getExprs() { return $this->exprs; } /** * The ids of the expressions with unknown values. * * Generated from protobuf field repeated .google.api.expr.v1beta1.IdRef exprs = 1; * @param \Google\Api\Expr\V1beta1\IdRef[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setExprs($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Expr\V1beta1\IdRef::class); $this->exprs = $arr; return $this; } } src/Api/Expr/V1beta1/Value.php000064400000022165151742727570012001 0ustar00google.api.expr.v1beta1.Value */ class Value extends \Google\Protobuf\Internal\Message { protected $kind; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int $null_value * Null value. * @type bool $bool_value * Boolean value. * @type int|string $int64_value * Signed integer value. * @type int|string $uint64_value * Unsigned integer value. * @type float $double_value * Floating point value. * @type string $string_value * UTF-8 string value. * @type string $bytes_value * Byte string value. * @type \Google\Api\Expr\V1beta1\EnumValue $enum_value * An enum value. * @type \Google\Protobuf\Any $object_value * The proto message backing an object value. * @type \Google\Api\Expr\V1beta1\MapValue $map_value * Map value. * @type \Google\Api\Expr\V1beta1\ListValue $list_value * List value. * @type string $type_value * A Type value represented by the fully qualified name of the type. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Expr\V1Beta1\Value::initOnce(); parent::__construct($data); } /** * Null value. * * Generated from protobuf field .google.protobuf.NullValue null_value = 1; * @return int */ public function getNullValue() { return $this->readOneof(1); } /** * Null value. * * Generated from protobuf field .google.protobuf.NullValue null_value = 1; * @param int $var * @return $this */ public function setNullValue($var) { GPBUtil::checkEnum($var, \Google\Protobuf\NullValue::class); $this->writeOneof(1, $var); return $this; } /** * Boolean value. * * Generated from protobuf field bool bool_value = 2; * @return bool */ public function getBoolValue() { return $this->readOneof(2); } /** * Boolean value. * * Generated from protobuf field bool bool_value = 2; * @param bool $var * @return $this */ public function setBoolValue($var) { GPBUtil::checkBool($var); $this->writeOneof(2, $var); return $this; } /** * Signed integer value. * * Generated from protobuf field int64 int64_value = 3; * @return int|string */ public function getInt64Value() { return $this->readOneof(3); } /** * Signed integer value. * * Generated from protobuf field int64 int64_value = 3; * @param int|string $var * @return $this */ public function setInt64Value($var) { GPBUtil::checkInt64($var); $this->writeOneof(3, $var); return $this; } /** * Unsigned integer value. * * Generated from protobuf field uint64 uint64_value = 4; * @return int|string */ public function getUint64Value() { return $this->readOneof(4); } /** * Unsigned integer value. * * Generated from protobuf field uint64 uint64_value = 4; * @param int|string $var * @return $this */ public function setUint64Value($var) { GPBUtil::checkUint64($var); $this->writeOneof(4, $var); return $this; } /** * Floating point value. * * Generated from protobuf field double double_value = 5; * @return float */ public function getDoubleValue() { return $this->readOneof(5); } /** * Floating point value. * * Generated from protobuf field double double_value = 5; * @param float $var * @return $this */ public function setDoubleValue($var) { GPBUtil::checkDouble($var); $this->writeOneof(5, $var); return $this; } /** * UTF-8 string value. * * Generated from protobuf field string string_value = 6; * @return string */ public function getStringValue() { return $this->readOneof(6); } /** * UTF-8 string value. * * Generated from protobuf field string string_value = 6; * @param string $var * @return $this */ public function setStringValue($var) { GPBUtil::checkString($var, True); $this->writeOneof(6, $var); return $this; } /** * Byte string value. * * Generated from protobuf field bytes bytes_value = 7; * @return string */ public function getBytesValue() { return $this->readOneof(7); } /** * Byte string value. * * Generated from protobuf field bytes bytes_value = 7; * @param string $var * @return $this */ public function setBytesValue($var) { GPBUtil::checkString($var, False); $this->writeOneof(7, $var); return $this; } /** * An enum value. * * Generated from protobuf field .google.api.expr.v1beta1.EnumValue enum_value = 9; * @return \Google\Api\Expr\V1beta1\EnumValue */ public function getEnumValue() { return $this->readOneof(9); } /** * An enum value. * * Generated from protobuf field .google.api.expr.v1beta1.EnumValue enum_value = 9; * @param \Google\Api\Expr\V1beta1\EnumValue $var * @return $this */ public function setEnumValue($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1beta1\EnumValue::class); $this->writeOneof(9, $var); return $this; } /** * The proto message backing an object value. * * Generated from protobuf field .google.protobuf.Any object_value = 10; * @return \Google\Protobuf\Any */ public function getObjectValue() { return $this->readOneof(10); } /** * The proto message backing an object value. * * Generated from protobuf field .google.protobuf.Any object_value = 10; * @param \Google\Protobuf\Any $var * @return $this */ public function setObjectValue($var) { GPBUtil::checkMessage($var, \Google\Protobuf\Any::class); $this->writeOneof(10, $var); return $this; } /** * Map value. * * Generated from protobuf field .google.api.expr.v1beta1.MapValue map_value = 11; * @return \Google\Api\Expr\V1beta1\MapValue */ public function getMapValue() { return $this->readOneof(11); } /** * Map value. * * Generated from protobuf field .google.api.expr.v1beta1.MapValue map_value = 11; * @param \Google\Api\Expr\V1beta1\MapValue $var * @return $this */ public function setMapValue($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1beta1\MapValue::class); $this->writeOneof(11, $var); return $this; } /** * List value. * * Generated from protobuf field .google.api.expr.v1beta1.ListValue list_value = 12; * @return \Google\Api\Expr\V1beta1\ListValue */ public function getListValue() { return $this->readOneof(12); } /** * List value. * * Generated from protobuf field .google.api.expr.v1beta1.ListValue list_value = 12; * @param \Google\Api\Expr\V1beta1\ListValue $var * @return $this */ public function setListValue($var) { GPBUtil::checkMessage($var, \Google\Api\Expr\V1beta1\ListValue::class); $this->writeOneof(12, $var); return $this; } /** * A Type value represented by the fully qualified name of the type. * * Generated from protobuf field string type_value = 15; * @return string */ public function getTypeValue() { return $this->readOneof(15); } /** * A Type value represented by the fully qualified name of the type. * * Generated from protobuf field string type_value = 15; * @param string $var * @return $this */ public function setTypeValue($var) { GPBUtil::checkString($var, True); $this->writeOneof(15, $var); return $this; } /** * @return string */ public function getKind() { return $this->whichOneof("kind"); } } src/Api/FieldBehavior.php000064400000006305151742727570011305 0ustar00google.api.FieldBehavior */ class FieldBehavior { /** * Conventional default for enums. Do not use this. * * Generated from protobuf enum FIELD_BEHAVIOR_UNSPECIFIED = 0; */ const FIELD_BEHAVIOR_UNSPECIFIED = 0; /** * Specifically denotes a field as optional. * While all fields in protocol buffers are optional, this may be specified * for emphasis if appropriate. * * Generated from protobuf enum OPTIONAL = 1; */ const OPTIONAL = 1; /** * Denotes a field as required. * This indicates that the field **must** be provided as part of the request, * and failure to do so will cause an error (usually `INVALID_ARGUMENT`). * * Generated from protobuf enum REQUIRED = 2; */ const REQUIRED = 2; /** * Denotes a field as output only. * This indicates that the field is provided in responses, but including the * field in a request does nothing (the server *must* ignore it and * *must not* throw an error as a result of the field's presence). * * Generated from protobuf enum OUTPUT_ONLY = 3; */ const OUTPUT_ONLY = 3; /** * Denotes a field as input only. * This indicates that the field is provided in requests, and the * corresponding field is not included in output. * * Generated from protobuf enum INPUT_ONLY = 4; */ const INPUT_ONLY = 4; /** * Denotes a field as immutable. * This indicates that the field may be set once in a request to create a * resource, but may not be changed thereafter. * * Generated from protobuf enum IMMUTABLE = 5; */ const IMMUTABLE = 5; private static $valueToName = [ self::FIELD_BEHAVIOR_UNSPECIFIED => 'FIELD_BEHAVIOR_UNSPECIFIED', self::OPTIONAL => 'OPTIONAL', self::REQUIRED => 'REQUIRED', self::OUTPUT_ONLY => 'OUTPUT_ONLY', self::INPUT_ONLY => 'INPUT_ONLY', self::IMMUTABLE => 'IMMUTABLE', ]; public static function name($value) { if (!isset(self::$valueToName[$value])) { throw new UnexpectedValueException(sprintf( 'Enum %s has no name defined for value %s', __CLASS__, $value)); } return self::$valueToName[$value]; } public static function value($name) { $const = __CLASS__ . '::' . strtoupper($name); if (!defined($const)) { throw new UnexpectedValueException(sprintf( 'Enum %s has no value defined for name %s', __CLASS__, $name)); } return constant($const); } } src/Api/Http.php000064400000010550151742727570007516 0ustar00google.api.Http */ class Http extends \Google\Protobuf\Internal\Message { /** * A list of HTTP configuration rules that apply to individual API methods. * **NOTE:** All service configuration rules follow "last one wins" order. * * Generated from protobuf field repeated .google.api.HttpRule rules = 1; */ private $rules; /** * When set to true, URL path parmeters will be fully URI-decoded except in * cases of single segment matches in reserved expansion, where "%2F" will be * left encoded. * The default behavior is to not decode RFC 6570 reserved characters in multi * segment matches. * * Generated from protobuf field bool fully_decode_reserved_expansion = 2; */ private $fully_decode_reserved_expansion = false; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Google\Api\HttpRule[]|\Google\Protobuf\Internal\RepeatedField $rules * A list of HTTP configuration rules that apply to individual API methods. * **NOTE:** All service configuration rules follow "last one wins" order. * @type bool $fully_decode_reserved_expansion * When set to true, URL path parmeters will be fully URI-decoded except in * cases of single segment matches in reserved expansion, where "%2F" will be * left encoded. * The default behavior is to not decode RFC 6570 reserved characters in multi * segment matches. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Http::initOnce(); parent::__construct($data); } /** * A list of HTTP configuration rules that apply to individual API methods. * **NOTE:** All service configuration rules follow "last one wins" order. * * Generated from protobuf field repeated .google.api.HttpRule rules = 1; * @return \Google\Protobuf\Internal\RepeatedField */ public function getRules() { return $this->rules; } /** * A list of HTTP configuration rules that apply to individual API methods. * **NOTE:** All service configuration rules follow "last one wins" order. * * Generated from protobuf field repeated .google.api.HttpRule rules = 1; * @param \Google\Api\HttpRule[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setRules($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\HttpRule::class); $this->rules = $arr; return $this; } /** * When set to true, URL path parmeters will be fully URI-decoded except in * cases of single segment matches in reserved expansion, where "%2F" will be * left encoded. * The default behavior is to not decode RFC 6570 reserved characters in multi * segment matches. * * Generated from protobuf field bool fully_decode_reserved_expansion = 2; * @return bool */ public function getFullyDecodeReservedExpansion() { return $this->fully_decode_reserved_expansion; } /** * When set to true, URL path parmeters will be fully URI-decoded except in * cases of single segment matches in reserved expansion, where "%2F" will be * left encoded. * The default behavior is to not decode RFC 6570 reserved characters in multi * segment matches. * * Generated from protobuf field bool fully_decode_reserved_expansion = 2; * @param bool $var * @return $this */ public function setFullyDecodeReservedExpansion($var) { GPBUtil::checkBool($var); $this->fully_decode_reserved_expansion = $var; return $this; } } src/Api/HttpBody.php000064400000012043151742727570010333 0ustar00google.api.HttpBody */ class HttpBody extends \Google\Protobuf\Internal\Message { /** * The HTTP Content-Type string representing the content type of the body. * * Generated from protobuf field string content_type = 1; */ private $content_type = ''; /** * HTTP body binary data. * * Generated from protobuf field bytes data = 2; */ private $data = ''; /** * Application specific response metadata. Must be set in the first response * for streaming APIs. * * Generated from protobuf field repeated .google.protobuf.Any extensions = 3; */ private $extensions; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $content_type * The HTTP Content-Type string representing the content type of the body. * @type string $data * HTTP body binary data. * @type \Google\Protobuf\Any[]|\Google\Protobuf\Internal\RepeatedField $extensions * Application specific response metadata. Must be set in the first response * for streaming APIs. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Httpbody::initOnce(); parent::__construct($data); } /** * The HTTP Content-Type string representing the content type of the body. * * Generated from protobuf field string content_type = 1; * @return string */ public function getContentType() { return $this->content_type; } /** * The HTTP Content-Type string representing the content type of the body. * * Generated from protobuf field string content_type = 1; * @param string $var * @return $this */ public function setContentType($var) { GPBUtil::checkString($var, True); $this->content_type = $var; return $this; } /** * HTTP body binary data. * * Generated from protobuf field bytes data = 2; * @return string */ public function getData() { return $this->data; } /** * HTTP body binary data. * * Generated from protobuf field bytes data = 2; * @param string $var * @return $this */ public function setData($var) { GPBUtil::checkString($var, False); $this->data = $var; return $this; } /** * Application specific response metadata. Must be set in the first response * for streaming APIs. * * Generated from protobuf field repeated .google.protobuf.Any extensions = 3; * @return \Google\Protobuf\Internal\RepeatedField */ public function getExtensions() { return $this->extensions; } /** * Application specific response metadata. Must be set in the first response * for streaming APIs. * * Generated from protobuf field repeated .google.protobuf.Any extensions = 3; * @param \Google\Protobuf\Any[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setExtensions($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Any::class); $this->extensions = $arr; return $this; } } src/Api/HttpRule.php000064400000047611151742727570010356 0ustar00.Messaging.GetMessage * get: /v1/messages/{message_id}/{sub.subfield} * This definition enables an automatic, bidrectional mapping of HTTP * JSON to RPC. Example: * HTTP | RPC * -----|----- * `GET /v1/messages/123456/foo` | `GetMessage(message_id: "123456" sub: SubMessage(subfield: "foo"))` * In general, not only fields but also field paths can be referenced * from a path pattern. Fields mapped to the path pattern cannot be * repeated and must have a primitive (non-message) type. * Any fields in the request message which are not bound by the path * pattern automatically become (optional) HTTP query * parameters. Assume the following definition of the request message: * service Messaging { * rpc GetMessage(GetMessageRequest) returns (Message) { * option (google.api.http).get = "/v1/messages/{message_id}"; * } * } * message GetMessageRequest { * message SubMessage { * string subfield = 1; * } * string message_id = 1; // mapped to the URL * int64 revision = 2; // becomes a parameter * SubMessage sub = 3; // `sub.subfield` becomes a parameter * } * This enables a HTTP JSON to RPC mapping as below: * HTTP | RPC * -----|----- * `GET /v1/messages/123456?revision=2&sub.subfield=foo` | `GetMessage(message_id: "123456" revision: 2 sub: SubMessage(subfield: "foo"))` * Note that fields which are mapped to HTTP parameters must have a * primitive type or a repeated primitive type. Message types are not * allowed. In the case of a repeated type, the parameter can be * repeated in the URL, as in `...?param=A¶m=B`. * For HTTP method kinds which allow a request body, the `body` field * specifies the mapping. Consider a REST update method on the * message resource collection: * service Messaging { * rpc UpdateMessage(UpdateMessageRequest) returns (Message) { * option (google.api.http) = { * put: "/v1/messages/{message_id}" * body: "message" * }; * } * } * message UpdateMessageRequest { * string message_id = 1; // mapped to the URL * Message message = 2; // mapped to the body * } * The following HTTP JSON to RPC mapping is enabled, where the * representation of the JSON in the request body is determined by * protos JSON encoding: * HTTP | RPC * -----|----- * `PUT /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: "123456" message { text: "Hi!" })` * The special name `*` can be used in the body mapping to define that * every field not bound by the path template should be mapped to the * request body. This enables the following alternative definition of * the update method: * service Messaging { * rpc UpdateMessage(Message) returns (Message) { * option (google.api.http) = { * put: "/v1/messages/{message_id}" * body: "*" * }; * } * } * message Message { * string message_id = 1; * string text = 2; * } * The following HTTP JSON to RPC mapping is enabled: * HTTP | RPC * -----|----- * `PUT /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id: "123456" text: "Hi!")` * Note that when using `*` in the body mapping, it is not possible to * have HTTP parameters, as all fields not bound by the path end in * the body. This makes this option more rarely used in practice of * defining REST APIs. The common usage of `*` is in custom methods * which don't use the URL at all for transferring data. * It is possible to define multiple HTTP methods for one RPC by using * the `additional_bindings` option. Example: * service Messaging { * rpc GetMessage(GetMessageRequest) returns (Message) { * option (google.api.http) = { * get: "/v1/messages/{message_id}" * additional_bindings { * get: "/v1/users/{user_id}/messages/{message_id}" * } * }; * } * } * message GetMessageRequest { * string message_id = 1; * string user_id = 2; * } * This enables the following two alternative HTTP JSON to RPC * mappings: * HTTP | RPC * -----|----- * `GET /v1/messages/123456` | `GetMessage(message_id: "123456")` * `GET /v1/users/me/messages/123456` | `GetMessage(user_id: "me" message_id: "123456")` * # Rules for HTTP mapping * The rules for mapping HTTP path, query parameters, and body fields * to the request message are as follows: * 1. The `body` field specifies either `*` or a field path, or is * omitted. If omitted, it indicates there is no HTTP request body. * 2. Leaf fields (recursive expansion of nested messages in the * request) can be classified into three types: * (a) Matched in the URL template. * (b) Covered by body (if body is `*`, everything except (a) fields; * else everything under the body field) * (c) All other fields. * 3. URL query parameters found in the HTTP request are mapped to (c) fields. * 4. Any body sent with an HTTP request can contain only (b) fields. * The syntax of the path template is as follows: * Template = "/" Segments [ Verb ] ; * Segments = Segment { "/" Segment } ; * Segment = "*" | "**" | LITERAL | Variable ; * Variable = "{" FieldPath [ "=" Segments ] "}" ; * FieldPath = IDENT { "." IDENT } ; * Verb = ":" LITERAL ; * The syntax `*` matches a single path segment. The syntax `**` matches zero * or more path segments, which must be the last part of the path except the * `Verb`. The syntax `LITERAL` matches literal text in the path. * The syntax `Variable` matches part of the URL path as specified by its * template. A variable template must not contain other variables. If a variable * matches a single path segment, its template may be omitted, e.g. `{var}` * is equivalent to `{var=*}`. * If a variable contains exactly one path segment, such as `"{var}"` or * `"{var=*}"`, when such a variable is expanded into a URL path, all characters * except `[-_.~0-9a-zA-Z]` are percent-encoded. Such variables show up in the * Discovery Document as `{var}`. * If a variable contains one or more path segments, such as `"{var=foo/*}"` * or `"{var=**}"`, when such a variable is expanded into a URL path, all * characters except `[-_.~/0-9a-zA-Z]` are percent-encoded. Such variables * show up in the Discovery Document as `{+var}`. * NOTE: While the single segment variable matches the semantics of * [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 * Simple String Expansion, the multi segment variable **does not** match * RFC 6570 Reserved Expansion. The reason is that the Reserved Expansion * does not expand special characters like `?` and `#`, which would lead * to invalid URLs. * NOTE: the field paths in variables and in the `body` must not refer to * repeated fields or map fields. * * Generated from protobuf message google.api.HttpRule */ class HttpRule extends \Google\Protobuf\Internal\Message { /** * Selects methods to which this rule applies. * Refer to [selector][google.api.DocumentationRule.selector] for syntax details. * * Generated from protobuf field string selector = 1; */ private $selector = ''; /** * The name of the request field whose value is mapped to the HTTP body, or * `*` for mapping all fields not captured by the path pattern to the HTTP * body. NOTE: the referred field must not be a repeated field and must be * present at the top-level of request message type. * * Generated from protobuf field string body = 7; */ private $body = ''; /** * Optional. The name of the response field whose value is mapped to the HTTP * body of response. Other response fields are ignored. When * not set, the response message will be used as HTTP body of response. * * Generated from protobuf field string response_body = 12; */ private $response_body = ''; /** * Additional HTTP bindings for the selector. Nested bindings must * not contain an `additional_bindings` field themselves (that is, * the nesting may only be one level deep). * * Generated from protobuf field repeated .google.api.HttpRule additional_bindings = 11; */ private $additional_bindings; protected $pattern; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $selector * Selects methods to which this rule applies. * Refer to [selector][google.api.DocumentationRule.selector] for syntax details. * @type string $get * Used for listing and getting information about resources. * @type string $put * Used for updating a resource. * @type string $post * Used for creating a resource. * @type string $delete * Used for deleting a resource. * @type string $patch * Used for updating a resource. * @type \Google\Api\CustomHttpPattern $custom * The custom pattern is used for specifying an HTTP method that is not * included in the `pattern` field, such as HEAD, or "*" to leave the * HTTP method unspecified for this rule. The wild-card rule is useful * for services that provide content to Web (HTML) clients. * @type string $body * The name of the request field whose value is mapped to the HTTP body, or * `*` for mapping all fields not captured by the path pattern to the HTTP * body. NOTE: the referred field must not be a repeated field and must be * present at the top-level of request message type. * @type string $response_body * Optional. The name of the response field whose value is mapped to the HTTP * body of response. Other response fields are ignored. When * not set, the response message will be used as HTTP body of response. * @type \Google\Api\HttpRule[]|\Google\Protobuf\Internal\RepeatedField $additional_bindings * Additional HTTP bindings for the selector. Nested bindings must * not contain an `additional_bindings` field themselves (that is, * the nesting may only be one level deep). * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Http::initOnce(); parent::__construct($data); } /** * Selects methods to which this rule applies. * Refer to [selector][google.api.DocumentationRule.selector] for syntax details. * * Generated from protobuf field string selector = 1; * @return string */ public function getSelector() { return $this->selector; } /** * Selects methods to which this rule applies. * Refer to [selector][google.api.DocumentationRule.selector] for syntax details. * * Generated from protobuf field string selector = 1; * @param string $var * @return $this */ public function setSelector($var) { GPBUtil::checkString($var, True); $this->selector = $var; return $this; } /** * Used for listing and getting information about resources. * * Generated from protobuf field string get = 2; * @return string */ public function getGet() { return $this->readOneof(2); } /** * Used for listing and getting information about resources. * * Generated from protobuf field string get = 2; * @param string $var * @return $this */ public function setGet($var) { GPBUtil::checkString($var, True); $this->writeOneof(2, $var); return $this; } /** * Used for updating a resource. * * Generated from protobuf field string put = 3; * @return string */ public function getPut() { return $this->readOneof(3); } /** * Used for updating a resource. * * Generated from protobuf field string put = 3; * @param string $var * @return $this */ public function setPut($var) { GPBUtil::checkString($var, True); $this->writeOneof(3, $var); return $this; } /** * Used for creating a resource. * * Generated from protobuf field string post = 4; * @return string */ public function getPost() { return $this->readOneof(4); } /** * Used for creating a resource. * * Generated from protobuf field string post = 4; * @param string $var * @return $this */ public function setPost($var) { GPBUtil::checkString($var, True); $this->writeOneof(4, $var); return $this; } /** * Used for deleting a resource. * * Generated from protobuf field string delete = 5; * @return string */ public function getDelete() { return $this->readOneof(5); } /** * Used for deleting a resource. * * Generated from protobuf field string delete = 5; * @param string $var * @return $this */ public function setDelete($var) { GPBUtil::checkString($var, True); $this->writeOneof(5, $var); return $this; } /** * Used for updating a resource. * * Generated from protobuf field string patch = 6; * @return string */ public function getPatch() { return $this->readOneof(6); } /** * Used for updating a resource. * * Generated from protobuf field string patch = 6; * @param string $var * @return $this */ public function setPatch($var) { GPBUtil::checkString($var, True); $this->writeOneof(6, $var); return $this; } /** * The custom pattern is used for specifying an HTTP method that is not * included in the `pattern` field, such as HEAD, or "*" to leave the * HTTP method unspecified for this rule. The wild-card rule is useful * for services that provide content to Web (HTML) clients. * * Generated from protobuf field .google.api.CustomHttpPattern custom = 8; * @return \Google\Api\CustomHttpPattern */ public function getCustom() { return $this->readOneof(8); } /** * The custom pattern is used for specifying an HTTP method that is not * included in the `pattern` field, such as HEAD, or "*" to leave the * HTTP method unspecified for this rule. The wild-card rule is useful * for services that provide content to Web (HTML) clients. * * Generated from protobuf field .google.api.CustomHttpPattern custom = 8; * @param \Google\Api\CustomHttpPattern $var * @return $this */ public function setCustom($var) { GPBUtil::checkMessage($var, \Google\Api\CustomHttpPattern::class); $this->writeOneof(8, $var); return $this; } /** * The name of the request field whose value is mapped to the HTTP body, or * `*` for mapping all fields not captured by the path pattern to the HTTP * body. NOTE: the referred field must not be a repeated field and must be * present at the top-level of request message type. * * Generated from protobuf field string body = 7; * @return string */ public function getBody() { return $this->body; } /** * The name of the request field whose value is mapped to the HTTP body, or * `*` for mapping all fields not captured by the path pattern to the HTTP * body. NOTE: the referred field must not be a repeated field and must be * present at the top-level of request message type. * * Generated from protobuf field string body = 7; * @param string $var * @return $this */ public function setBody($var) { GPBUtil::checkString($var, True); $this->body = $var; return $this; } /** * Optional. The name of the response field whose value is mapped to the HTTP * body of response. Other response fields are ignored. When * not set, the response message will be used as HTTP body of response. * * Generated from protobuf field string response_body = 12; * @return string */ public function getResponseBody() { return $this->response_body; } /** * Optional. The name of the response field whose value is mapped to the HTTP * body of response. Other response fields are ignored. When * not set, the response message will be used as HTTP body of response. * * Generated from protobuf field string response_body = 12; * @param string $var * @return $this */ public function setResponseBody($var) { GPBUtil::checkString($var, True); $this->response_body = $var; return $this; } /** * Additional HTTP bindings for the selector. Nested bindings must * not contain an `additional_bindings` field themselves (that is, * the nesting may only be one level deep). * * Generated from protobuf field repeated .google.api.HttpRule additional_bindings = 11; * @return \Google\Protobuf\Internal\RepeatedField */ public function getAdditionalBindings() { return $this->additional_bindings; } /** * Additional HTTP bindings for the selector. Nested bindings must * not contain an `additional_bindings` field themselves (that is, * the nesting may only be one level deep). * * Generated from protobuf field repeated .google.api.HttpRule additional_bindings = 11; * @param \Google\Api\HttpRule[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setAdditionalBindings($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\HttpRule::class); $this->additional_bindings = $arr; return $this; } /** * @return string */ public function getPattern() { return $this->whichOneof("pattern"); } } src/Api/LabelDescriptor.php000064400000006363151742727570011664 0ustar00google.api.LabelDescriptor */ class LabelDescriptor extends \Google\Protobuf\Internal\Message { /** * The label key. * * Generated from protobuf field string key = 1; */ private $key = ''; /** * The type of data that can be assigned to the label. * * Generated from protobuf field .google.api.LabelDescriptor.ValueType value_type = 2; */ private $value_type = 0; /** * A human-readable description for the label. * * Generated from protobuf field string description = 3; */ private $description = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $key * The label key. * @type int $value_type * The type of data that can be assigned to the label. * @type string $description * A human-readable description for the label. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Label::initOnce(); parent::__construct($data); } /** * The label key. * * Generated from protobuf field string key = 1; * @return string */ public function getKey() { return $this->key; } /** * The label key. * * Generated from protobuf field string key = 1; * @param string $var * @return $this */ public function setKey($var) { GPBUtil::checkString($var, True); $this->key = $var; return $this; } /** * The type of data that can be assigned to the label. * * Generated from protobuf field .google.api.LabelDescriptor.ValueType value_type = 2; * @return int */ public function getValueType() { return $this->value_type; } /** * The type of data that can be assigned to the label. * * Generated from protobuf field .google.api.LabelDescriptor.ValueType value_type = 2; * @param int $var * @return $this */ public function setValueType($var) { GPBUtil::checkEnum($var, \Google\Api\LabelDescriptor_ValueType::class); $this->value_type = $var; return $this; } /** * A human-readable description for the label. * * Generated from protobuf field string description = 3; * @return string */ public function getDescription() { return $this->description; } /** * A human-readable description for the label. * * Generated from protobuf field string description = 3; * @param string $var * @return $this */ public function setDescription($var) { GPBUtil::checkString($var, True); $this->description = $var; return $this; } } src/Api/LabelDescriptor/ValueType.php000064400000003203151742727570013570 0ustar00google.api.LabelDescriptor.ValueType */ class ValueType { /** * A variable-length string. This is the default. * * Generated from protobuf enum STRING = 0; */ const STRING = 0; /** * Boolean; true or false. * * Generated from protobuf enum BOOL = 1; */ const BOOL = 1; /** * A 64-bit signed integer. * * Generated from protobuf enum INT64 = 2; */ const INT64 = 2; private static $valueToName = [ self::STRING => 'STRING', self::BOOL => 'BOOL', self::INT64 => 'INT64', ]; public static function name($value) { if (!isset(self::$valueToName[$value])) { throw new UnexpectedValueException(sprintf( 'Enum %s has no name defined for value %s', __CLASS__, $value)); } return self::$valueToName[$value]; } public static function value($name) { $const = __CLASS__ . '::' . strtoupper($name); if (!defined($const)) { throw new UnexpectedValueException(sprintf( 'Enum %s has no value defined for name %s', __CLASS__, $name)); } return constant($const); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(ValueType::class, \Google\Api\LabelDescriptor_ValueType::class); src/Api/LabelDescriptor_ValueType.php000064400000001020151742727570013643 0ustar00google.api.LaunchStage */ class LaunchStage { /** * Do not use this default value. * * Generated from protobuf enum LAUNCH_STAGE_UNSPECIFIED = 0; */ const LAUNCH_STAGE_UNSPECIFIED = 0; /** * Early Access features are limited to a closed group of testers. To use * these features, you must sign up in advance and sign a Trusted Tester * agreement (which includes confidentiality provisions). These features may * be unstable, changed in backward-incompatible ways, and are not * guaranteed to be released. * * Generated from protobuf enum EARLY_ACCESS = 1; */ const EARLY_ACCESS = 1; /** * Alpha is a limited availability test for releases before they are cleared * for widespread use. By Alpha, all significant design issues are resolved * and we are in the process of verifying functionality. Alpha customers * need to apply for access, agree to applicable terms, and have their * projects whitelisted. Alpha releases don’t have to be feature complete, * no SLAs are provided, and there are no technical support obligations, but * they will be far enough along that customers can actually use them in * test environments or for limited-use tests -- just like they would in * normal production cases. * * Generated from protobuf enum ALPHA = 2; */ const ALPHA = 2; /** * Beta is the point at which we are ready to open a release for any * customer to use. There are no SLA or technical support obligations in a * Beta release. Products will be complete from a feature perspective, but * may have some open outstanding issues. Beta releases are suitable for * limited production use cases. * * Generated from protobuf enum BETA = 3; */ const BETA = 3; /** * GA features are open to all developers and are considered stable and * fully qualified for production use. * * Generated from protobuf enum GA = 4; */ const GA = 4; /** * Deprecated features are scheduled to be shut down and removed. For more * information, see the “Deprecation Policyâ€� section of our [Terms of * Service](https://cloud.google.com/terms/) * and the [Google Cloud Platform Subject to the Deprecation * Policy](https://cloud.google.com/terms/deprecation) documentation. * * Generated from protobuf enum DEPRECATED = 5; */ const DEPRECATED = 5; private static $valueToName = [ self::LAUNCH_STAGE_UNSPECIFIED => 'LAUNCH_STAGE_UNSPECIFIED', self::EARLY_ACCESS => 'EARLY_ACCESS', self::ALPHA => 'ALPHA', self::BETA => 'BETA', self::GA => 'GA', self::DEPRECATED => 'DEPRECATED', ]; public static function name($value) { if (!isset(self::$valueToName[$value])) { throw new UnexpectedValueException(sprintf( 'Enum %s has no name defined for value %s', __CLASS__, $value)); } return self::$valueToName[$value]; } public static function value($name) { $const = __CLASS__ . '::' . strtoupper($name); if (!defined($const)) { throw new UnexpectedValueException(sprintf( 'Enum %s has no value defined for name %s', __CLASS__, $name)); } return constant($const); } } src/Api/LogDescriptor.php000064400000015170151742727570011362 0ustar00google.api.LogDescriptor */ class LogDescriptor extends \Google\Protobuf\Internal\Message { /** * The name of the log. It must be less than 512 characters long and can * include the following characters: upper- and lower-case alphanumeric * characters [A-Za-z0-9], and punctuation characters including * slash, underscore, hyphen, period [/_-.]. * * Generated from protobuf field string name = 1; */ private $name = ''; /** * The set of labels that are available to describe a specific log entry. * Runtime requests that contain labels not specified here are * considered invalid. * * Generated from protobuf field repeated .google.api.LabelDescriptor labels = 2; */ private $labels; /** * A human-readable description of this log. This information appears in * the documentation and can contain details. * * Generated from protobuf field string description = 3; */ private $description = ''; /** * The human-readable name for this log. This information appears on * the user interface and should be concise. * * Generated from protobuf field string display_name = 4; */ private $display_name = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $name * The name of the log. It must be less than 512 characters long and can * include the following characters: upper- and lower-case alphanumeric * characters [A-Za-z0-9], and punctuation characters including * slash, underscore, hyphen, period [/_-.]. * @type \Google\Api\LabelDescriptor[]|\Google\Protobuf\Internal\RepeatedField $labels * The set of labels that are available to describe a specific log entry. * Runtime requests that contain labels not specified here are * considered invalid. * @type string $description * A human-readable description of this log. This information appears in * the documentation and can contain details. * @type string $display_name * The human-readable name for this log. This information appears on * the user interface and should be concise. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Log::initOnce(); parent::__construct($data); } /** * The name of the log. It must be less than 512 characters long and can * include the following characters: upper- and lower-case alphanumeric * characters [A-Za-z0-9], and punctuation characters including * slash, underscore, hyphen, period [/_-.]. * * Generated from protobuf field string name = 1; * @return string */ public function getName() { return $this->name; } /** * The name of the log. It must be less than 512 characters long and can * include the following characters: upper- and lower-case alphanumeric * characters [A-Za-z0-9], and punctuation characters including * slash, underscore, hyphen, period [/_-.]. * * Generated from protobuf field string name = 1; * @param string $var * @return $this */ public function setName($var) { GPBUtil::checkString($var, True); $this->name = $var; return $this; } /** * The set of labels that are available to describe a specific log entry. * Runtime requests that contain labels not specified here are * considered invalid. * * Generated from protobuf field repeated .google.api.LabelDescriptor labels = 2; * @return \Google\Protobuf\Internal\RepeatedField */ public function getLabels() { return $this->labels; } /** * The set of labels that are available to describe a specific log entry. * Runtime requests that contain labels not specified here are * considered invalid. * * Generated from protobuf field repeated .google.api.LabelDescriptor labels = 2; * @param \Google\Api\LabelDescriptor[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setLabels($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\LabelDescriptor::class); $this->labels = $arr; return $this; } /** * A human-readable description of this log. This information appears in * the documentation and can contain details. * * Generated from protobuf field string description = 3; * @return string */ public function getDescription() { return $this->description; } /** * A human-readable description of this log. This information appears in * the documentation and can contain details. * * Generated from protobuf field string description = 3; * @param string $var * @return $this */ public function setDescription($var) { GPBUtil::checkString($var, True); $this->description = $var; return $this; } /** * The human-readable name for this log. This information appears on * the user interface and should be concise. * * Generated from protobuf field string display_name = 4; * @return string */ public function getDisplayName() { return $this->display_name; } /** * The human-readable name for this log. This information appears on * the user interface and should be concise. * * Generated from protobuf field string display_name = 4; * @param string $var * @return $this */ public function setDisplayName($var) { GPBUtil::checkString($var, True); $this->display_name = $var; return $this; } } src/Api/Logging.php000064400000013700151742727570010165 0ustar00google.api.Logging */ class Logging extends \Google\Protobuf\Internal\Message { /** * Logging configurations for sending logs to the producer project. * There can be multiple producer destinations, each one must have a * different monitored resource type. A log can be used in at most * one producer destination. * * Generated from protobuf field repeated .google.api.Logging.LoggingDestination producer_destinations = 1; */ private $producer_destinations; /** * Logging configurations for sending logs to the consumer project. * There can be multiple consumer destinations, each one must have a * different monitored resource type. A log can be used in at most * one consumer destination. * * Generated from protobuf field repeated .google.api.Logging.LoggingDestination consumer_destinations = 2; */ private $consumer_destinations; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Google\Api\Logging\LoggingDestination[]|\Google\Protobuf\Internal\RepeatedField $producer_destinations * Logging configurations for sending logs to the producer project. * There can be multiple producer destinations, each one must have a * different monitored resource type. A log can be used in at most * one producer destination. * @type \Google\Api\Logging\LoggingDestination[]|\Google\Protobuf\Internal\RepeatedField $consumer_destinations * Logging configurations for sending logs to the consumer project. * There can be multiple consumer destinations, each one must have a * different monitored resource type. A log can be used in at most * one consumer destination. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Logging::initOnce(); parent::__construct($data); } /** * Logging configurations for sending logs to the producer project. * There can be multiple producer destinations, each one must have a * different monitored resource type. A log can be used in at most * one producer destination. * * Generated from protobuf field repeated .google.api.Logging.LoggingDestination producer_destinations = 1; * @return \Google\Protobuf\Internal\RepeatedField */ public function getProducerDestinations() { return $this->producer_destinations; } /** * Logging configurations for sending logs to the producer project. * There can be multiple producer destinations, each one must have a * different monitored resource type. A log can be used in at most * one producer destination. * * Generated from protobuf field repeated .google.api.Logging.LoggingDestination producer_destinations = 1; * @param \Google\Api\Logging\LoggingDestination[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setProducerDestinations($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Logging\LoggingDestination::class); $this->producer_destinations = $arr; return $this; } /** * Logging configurations for sending logs to the consumer project. * There can be multiple consumer destinations, each one must have a * different monitored resource type. A log can be used in at most * one consumer destination. * * Generated from protobuf field repeated .google.api.Logging.LoggingDestination consumer_destinations = 2; * @return \Google\Protobuf\Internal\RepeatedField */ public function getConsumerDestinations() { return $this->consumer_destinations; } /** * Logging configurations for sending logs to the consumer project. * There can be multiple consumer destinations, each one must have a * different monitored resource type. A log can be used in at most * one consumer destination. * * Generated from protobuf field repeated .google.api.Logging.LoggingDestination consumer_destinations = 2; * @param \Google\Api\Logging\LoggingDestination[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setConsumerDestinations($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Logging\LoggingDestination::class); $this->consumer_destinations = $arr; return $this; } } src/Api/Logging/LoggingDestination.php000064400000010311151742727570013750 0ustar00google.api.Logging.LoggingDestination */ class LoggingDestination extends \Google\Protobuf\Internal\Message { /** * The monitored resource type. The type must be defined in the * [Service.monitored_resources][google.api.Service.monitored_resources] section. * * Generated from protobuf field string monitored_resource = 3; */ private $monitored_resource = ''; /** * Names of the logs to be sent to this destination. Each name must * be defined in the [Service.logs][google.api.Service.logs] section. If the log name is * not a domain scoped name, it will be automatically prefixed with * the service name followed by "/". * * Generated from protobuf field repeated string logs = 1; */ private $logs; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $monitored_resource * The monitored resource type. The type must be defined in the * [Service.monitored_resources][google.api.Service.monitored_resources] section. * @type string[]|\Google\Protobuf\Internal\RepeatedField $logs * Names of the logs to be sent to this destination. Each name must * be defined in the [Service.logs][google.api.Service.logs] section. If the log name is * not a domain scoped name, it will be automatically prefixed with * the service name followed by "/". * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Logging::initOnce(); parent::__construct($data); } /** * The monitored resource type. The type must be defined in the * [Service.monitored_resources][google.api.Service.monitored_resources] section. * * Generated from protobuf field string monitored_resource = 3; * @return string */ public function getMonitoredResource() { return $this->monitored_resource; } /** * The monitored resource type. The type must be defined in the * [Service.monitored_resources][google.api.Service.monitored_resources] section. * * Generated from protobuf field string monitored_resource = 3; * @param string $var * @return $this */ public function setMonitoredResource($var) { GPBUtil::checkString($var, True); $this->monitored_resource = $var; return $this; } /** * Names of the logs to be sent to this destination. Each name must * be defined in the [Service.logs][google.api.Service.logs] section. If the log name is * not a domain scoped name, it will be automatically prefixed with * the service name followed by "/". * * Generated from protobuf field repeated string logs = 1; * @return \Google\Protobuf\Internal\RepeatedField */ public function getLogs() { return $this->logs; } /** * Names of the logs to be sent to this destination. Each name must * be defined in the [Service.logs][google.api.Service.logs] section. If the log name is * not a domain scoped name, it will be automatically prefixed with * the service name followed by "/". * * Generated from protobuf field repeated string logs = 1; * @param string[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setLogs($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); $this->logs = $arr; return $this; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(LoggingDestination::class, \Google\Api\Logging_LoggingDestination::class); src/Api/Logging_LoggingDestination.php000064400000001027151742727570014034 0ustar00google.api.Metric */ class Metric extends \Google\Protobuf\Internal\Message { /** * An existing metric type, see [google.api.MetricDescriptor][google.api.MetricDescriptor]. * For example, `custom.googleapis.com/invoice/paid/amount`. * * Generated from protobuf field string type = 3; */ private $type = ''; /** * The set of label values that uniquely identify this metric. All * labels listed in the `MetricDescriptor` must be assigned values. * * Generated from protobuf field map labels = 2; */ private $labels; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $type * An existing metric type, see [google.api.MetricDescriptor][google.api.MetricDescriptor]. * For example, `custom.googleapis.com/invoice/paid/amount`. * @type array|\Google\Protobuf\Internal\MapField $labels * The set of label values that uniquely identify this metric. All * labels listed in the `MetricDescriptor` must be assigned values. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Metric::initOnce(); parent::__construct($data); } /** * An existing metric type, see [google.api.MetricDescriptor][google.api.MetricDescriptor]. * For example, `custom.googleapis.com/invoice/paid/amount`. * * Generated from protobuf field string type = 3; * @return string */ public function getType() { return $this->type; } /** * An existing metric type, see [google.api.MetricDescriptor][google.api.MetricDescriptor]. * For example, `custom.googleapis.com/invoice/paid/amount`. * * Generated from protobuf field string type = 3; * @param string $var * @return $this */ public function setType($var) { GPBUtil::checkString($var, True); $this->type = $var; return $this; } /** * The set of label values that uniquely identify this metric. All * labels listed in the `MetricDescriptor` must be assigned values. * * Generated from protobuf field map labels = 2; * @return \Google\Protobuf\Internal\MapField */ public function getLabels() { return $this->labels; } /** * The set of label values that uniquely identify this metric. All * labels listed in the `MetricDescriptor` must be assigned values. * * Generated from protobuf field map labels = 2; * @param array|\Google\Protobuf\Internal\MapField $var * @return $this */ public function setLabels($var) { $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); $this->labels = $arr; return $this; } } src/Api/MetricDescriptor.php000064400000101421151742727570012057 0ustar00google.api.MetricDescriptor */ class MetricDescriptor extends \Google\Protobuf\Internal\Message { /** * The resource name of the metric descriptor. * * Generated from protobuf field string name = 1; */ private $name = ''; /** * The metric type, including its DNS name prefix. The type is not * URL-encoded. All user-defined metric types have the DNS name * `custom.googleapis.com` or `external.googleapis.com`. Metric types should * use a natural hierarchical grouping. For example: * "custom.googleapis.com/invoice/paid/amount" * "external.googleapis.com/prometheus/up" * "appengine.googleapis.com/http/server/response_latencies" * * Generated from protobuf field string type = 8; */ private $type = ''; /** * The set of labels that can be used to describe a specific * instance of this metric type. For example, the * `appengine.googleapis.com/http/server/response_latencies` metric * type has a label for the HTTP response code, `response_code`, so * you can look at latencies for successful responses or just * for responses that failed. * * Generated from protobuf field repeated .google.api.LabelDescriptor labels = 2; */ private $labels; /** * Whether the metric records instantaneous values, changes to a value, etc. * Some combinations of `metric_kind` and `value_type` might not be supported. * * Generated from protobuf field .google.api.MetricDescriptor.MetricKind metric_kind = 3; */ private $metric_kind = 0; /** * Whether the measurement is an integer, a floating-point number, etc. * Some combinations of `metric_kind` and `value_type` might not be supported. * * Generated from protobuf field .google.api.MetricDescriptor.ValueType value_type = 4; */ private $value_type = 0; /** * The units in which the metric value is reported. It is only applicable * if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit` * defines the representation of the stored metric values. * Different systems may scale the values to be more easily displayed (so a * value of `0.02KBy` _might_ be displayed as `20By`, and a value of * `3523KBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is * `KBy`, then the value of the metric is always in thousands of bytes, no * matter how it may be displayed.. * If you want a custom metric to record the exact number of CPU-seconds used * by a job, you can create an `INT64 CUMULATIVE` metric whose `unit` is * `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses 12,005 * CPU-seconds, then the value is written as `12005`. * Alternatively, if you want a custome metric to record data in a more * granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is * `ks{CPU}`, and then write the value `12.005` (which is `12005/1000`), * or use `Kis{CPU}` and write `11.723` (which is `12005/1024`). * The supported units are a subset of [The Unified Code for Units of * Measure](http://unitsofmeasure.org/ucum.html) standard: * **Basic units (UNIT)** * * `bit` bit * * `By` byte * * `s` second * * `min` minute * * `h` hour * * `d` day * **Prefixes (PREFIX)** * * `k` kilo (10^3) * * `M` mega (10^6) * * `G` giga (10^9) * * `T` tera (10^12) * * `P` peta (10^15) * * `E` exa (10^18) * * `Z` zetta (10^21) * * `Y` yotta (10^24) * * `m` milli (10^-3) * * `u` micro (10^-6) * * `n` nano (10^-9) * * `p` pico (10^-12) * * `f` femto (10^-15) * * `a` atto (10^-18) * * `z` zepto (10^-21) * * `y` yocto (10^-24) * * `Ki` kibi (2^10) * * `Mi` mebi (2^20) * * `Gi` gibi (2^30) * * `Ti` tebi (2^40) * * `Pi` pebi (2^50) * **Grammar** * The grammar also includes these connectors: * * `/` division or ratio (as an infix operator). For examples, * `kBy/{email}` or `MiBy/10ms` (although you should almost never * have `/s` in a metric `unit`; rates should always be computed at * query time from the underlying cumulative or delta value). * * `.` multiplication or composition (as an infix operator). For * examples, `GBy.d` or `k{watt}.h`. * The grammar for a unit is as follows: * Expression = Component { "." Component } { "/" Component } ; * Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ] * | Annotation * | "1" * ; * Annotation = "{" NAME "}" ; * Notes: * * `Annotation` is just a comment if it follows a `UNIT`. If the annotation * is used alone, then the unit is equivalent to `1`. For examples, * `{request}/s == 1/s`, `By{transmitted}/s == By/s`. * * `NAME` is a sequence of non-blank printable ASCII characters not * containing `{` or `}`. * * `1` represents a unitary [dimensionless * unit](https://en.wikipedia.org/wiki/Dimensionless_quantity) of 1, such * as in `1/s`. It is typically used when none of the basic units are * appropriate. For example, "new users per day" can be represented as * `1/d` or `{new-users}/d` (and a metric value `5` would mean "5 new * users). Alternatively, "thousands of page views per day" would be * represented as `1000/d` or `k1/d` or `k{page_views}/d` (and a metric * value of `5.3` would mean "5300 page views per day"). * * `%` represents dimensionless value of 1/100, and annotates values giving * a percentage (so the metric values are typically in the range of 0..100, * and a metric value `3` means "3 percent"). * * `10^2.%` indicates a metric contains a ratio, typically in the range * 0..1, that will be multiplied by 100 and displayed as a percentage * (so a metric value `0.03` means "3 percent"). * * Generated from protobuf field string unit = 5; */ private $unit = ''; /** * A detailed description of the metric, which can be used in documentation. * * Generated from protobuf field string description = 6; */ private $description = ''; /** * A concise name for the metric, which can be displayed in user interfaces. * Use sentence case without an ending period, for example "Request count". * This field is optional but it is recommended to be set for any metrics * associated with user-visible concepts, such as Quota. * * Generated from protobuf field string display_name = 7; */ private $display_name = ''; /** * Optional. Metadata which can be used to guide usage of the metric. * * Generated from protobuf field .google.api.MetricDescriptor.MetricDescriptorMetadata metadata = 10; */ private $metadata = null; /** * Optional. The launch stage of the metric definition. * * Generated from protobuf field .google.api.LaunchStage launch_stage = 12; */ private $launch_stage = 0; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $name * The resource name of the metric descriptor. * @type string $type * The metric type, including its DNS name prefix. The type is not * URL-encoded. All user-defined metric types have the DNS name * `custom.googleapis.com` or `external.googleapis.com`. Metric types should * use a natural hierarchical grouping. For example: * "custom.googleapis.com/invoice/paid/amount" * "external.googleapis.com/prometheus/up" * "appengine.googleapis.com/http/server/response_latencies" * @type \Google\Api\LabelDescriptor[]|\Google\Protobuf\Internal\RepeatedField $labels * The set of labels that can be used to describe a specific * instance of this metric type. For example, the * `appengine.googleapis.com/http/server/response_latencies` metric * type has a label for the HTTP response code, `response_code`, so * you can look at latencies for successful responses or just * for responses that failed. * @type int $metric_kind * Whether the metric records instantaneous values, changes to a value, etc. * Some combinations of `metric_kind` and `value_type` might not be supported. * @type int $value_type * Whether the measurement is an integer, a floating-point number, etc. * Some combinations of `metric_kind` and `value_type` might not be supported. * @type string $unit * The units in which the metric value is reported. It is only applicable * if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit` * defines the representation of the stored metric values. * Different systems may scale the values to be more easily displayed (so a * value of `0.02KBy` _might_ be displayed as `20By`, and a value of * `3523KBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is * `KBy`, then the value of the metric is always in thousands of bytes, no * matter how it may be displayed.. * If you want a custom metric to record the exact number of CPU-seconds used * by a job, you can create an `INT64 CUMULATIVE` metric whose `unit` is * `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses 12,005 * CPU-seconds, then the value is written as `12005`. * Alternatively, if you want a custome metric to record data in a more * granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is * `ks{CPU}`, and then write the value `12.005` (which is `12005/1000`), * or use `Kis{CPU}` and write `11.723` (which is `12005/1024`). * The supported units are a subset of [The Unified Code for Units of * Measure](http://unitsofmeasure.org/ucum.html) standard: * **Basic units (UNIT)** * * `bit` bit * * `By` byte * * `s` second * * `min` minute * * `h` hour * * `d` day * **Prefixes (PREFIX)** * * `k` kilo (10^3) * * `M` mega (10^6) * * `G` giga (10^9) * * `T` tera (10^12) * * `P` peta (10^15) * * `E` exa (10^18) * * `Z` zetta (10^21) * * `Y` yotta (10^24) * * `m` milli (10^-3) * * `u` micro (10^-6) * * `n` nano (10^-9) * * `p` pico (10^-12) * * `f` femto (10^-15) * * `a` atto (10^-18) * * `z` zepto (10^-21) * * `y` yocto (10^-24) * * `Ki` kibi (2^10) * * `Mi` mebi (2^20) * * `Gi` gibi (2^30) * * `Ti` tebi (2^40) * * `Pi` pebi (2^50) * **Grammar** * The grammar also includes these connectors: * * `/` division or ratio (as an infix operator). For examples, * `kBy/{email}` or `MiBy/10ms` (although you should almost never * have `/s` in a metric `unit`; rates should always be computed at * query time from the underlying cumulative or delta value). * * `.` multiplication or composition (as an infix operator). For * examples, `GBy.d` or `k{watt}.h`. * The grammar for a unit is as follows: * Expression = Component { "." Component } { "/" Component } ; * Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ] * | Annotation * | "1" * ; * Annotation = "{" NAME "}" ; * Notes: * * `Annotation` is just a comment if it follows a `UNIT`. If the annotation * is used alone, then the unit is equivalent to `1`. For examples, * `{request}/s == 1/s`, `By{transmitted}/s == By/s`. * * `NAME` is a sequence of non-blank printable ASCII characters not * containing `{` or `}`. * * `1` represents a unitary [dimensionless * unit](https://en.wikipedia.org/wiki/Dimensionless_quantity) of 1, such * as in `1/s`. It is typically used when none of the basic units are * appropriate. For example, "new users per day" can be represented as * `1/d` or `{new-users}/d` (and a metric value `5` would mean "5 new * users). Alternatively, "thousands of page views per day" would be * represented as `1000/d` or `k1/d` or `k{page_views}/d` (and a metric * value of `5.3` would mean "5300 page views per day"). * * `%` represents dimensionless value of 1/100, and annotates values giving * a percentage (so the metric values are typically in the range of 0..100, * and a metric value `3` means "3 percent"). * * `10^2.%` indicates a metric contains a ratio, typically in the range * 0..1, that will be multiplied by 100 and displayed as a percentage * (so a metric value `0.03` means "3 percent"). * @type string $description * A detailed description of the metric, which can be used in documentation. * @type string $display_name * A concise name for the metric, which can be displayed in user interfaces. * Use sentence case without an ending period, for example "Request count". * This field is optional but it is recommended to be set for any metrics * associated with user-visible concepts, such as Quota. * @type \Google\Api\MetricDescriptor\MetricDescriptorMetadata $metadata * Optional. Metadata which can be used to guide usage of the metric. * @type int $launch_stage * Optional. The launch stage of the metric definition. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Metric::initOnce(); parent::__construct($data); } /** * The resource name of the metric descriptor. * * Generated from protobuf field string name = 1; * @return string */ public function getName() { return $this->name; } /** * The resource name of the metric descriptor. * * Generated from protobuf field string name = 1; * @param string $var * @return $this */ public function setName($var) { GPBUtil::checkString($var, True); $this->name = $var; return $this; } /** * The metric type, including its DNS name prefix. The type is not * URL-encoded. All user-defined metric types have the DNS name * `custom.googleapis.com` or `external.googleapis.com`. Metric types should * use a natural hierarchical grouping. For example: * "custom.googleapis.com/invoice/paid/amount" * "external.googleapis.com/prometheus/up" * "appengine.googleapis.com/http/server/response_latencies" * * Generated from protobuf field string type = 8; * @return string */ public function getType() { return $this->type; } /** * The metric type, including its DNS name prefix. The type is not * URL-encoded. All user-defined metric types have the DNS name * `custom.googleapis.com` or `external.googleapis.com`. Metric types should * use a natural hierarchical grouping. For example: * "custom.googleapis.com/invoice/paid/amount" * "external.googleapis.com/prometheus/up" * "appengine.googleapis.com/http/server/response_latencies" * * Generated from protobuf field string type = 8; * @param string $var * @return $this */ public function setType($var) { GPBUtil::checkString($var, True); $this->type = $var; return $this; } /** * The set of labels that can be used to describe a specific * instance of this metric type. For example, the * `appengine.googleapis.com/http/server/response_latencies` metric * type has a label for the HTTP response code, `response_code`, so * you can look at latencies for successful responses or just * for responses that failed. * * Generated from protobuf field repeated .google.api.LabelDescriptor labels = 2; * @return \Google\Protobuf\Internal\RepeatedField */ public function getLabels() { return $this->labels; } /** * The set of labels that can be used to describe a specific * instance of this metric type. For example, the * `appengine.googleapis.com/http/server/response_latencies` metric * type has a label for the HTTP response code, `response_code`, so * you can look at latencies for successful responses or just * for responses that failed. * * Generated from protobuf field repeated .google.api.LabelDescriptor labels = 2; * @param \Google\Api\LabelDescriptor[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setLabels($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\LabelDescriptor::class); $this->labels = $arr; return $this; } /** * Whether the metric records instantaneous values, changes to a value, etc. * Some combinations of `metric_kind` and `value_type` might not be supported. * * Generated from protobuf field .google.api.MetricDescriptor.MetricKind metric_kind = 3; * @return int */ public function getMetricKind() { return $this->metric_kind; } /** * Whether the metric records instantaneous values, changes to a value, etc. * Some combinations of `metric_kind` and `value_type` might not be supported. * * Generated from protobuf field .google.api.MetricDescriptor.MetricKind metric_kind = 3; * @param int $var * @return $this */ public function setMetricKind($var) { GPBUtil::checkEnum($var, \Google\Api\MetricDescriptor_MetricKind::class); $this->metric_kind = $var; return $this; } /** * Whether the measurement is an integer, a floating-point number, etc. * Some combinations of `metric_kind` and `value_type` might not be supported. * * Generated from protobuf field .google.api.MetricDescriptor.ValueType value_type = 4; * @return int */ public function getValueType() { return $this->value_type; } /** * Whether the measurement is an integer, a floating-point number, etc. * Some combinations of `metric_kind` and `value_type` might not be supported. * * Generated from protobuf field .google.api.MetricDescriptor.ValueType value_type = 4; * @param int $var * @return $this */ public function setValueType($var) { GPBUtil::checkEnum($var, \Google\Api\MetricDescriptor_ValueType::class); $this->value_type = $var; return $this; } /** * The units in which the metric value is reported. It is only applicable * if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit` * defines the representation of the stored metric values. * Different systems may scale the values to be more easily displayed (so a * value of `0.02KBy` _might_ be displayed as `20By`, and a value of * `3523KBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is * `KBy`, then the value of the metric is always in thousands of bytes, no * matter how it may be displayed.. * If you want a custom metric to record the exact number of CPU-seconds used * by a job, you can create an `INT64 CUMULATIVE` metric whose `unit` is * `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses 12,005 * CPU-seconds, then the value is written as `12005`. * Alternatively, if you want a custome metric to record data in a more * granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is * `ks{CPU}`, and then write the value `12.005` (which is `12005/1000`), * or use `Kis{CPU}` and write `11.723` (which is `12005/1024`). * The supported units are a subset of [The Unified Code for Units of * Measure](http://unitsofmeasure.org/ucum.html) standard: * **Basic units (UNIT)** * * `bit` bit * * `By` byte * * `s` second * * `min` minute * * `h` hour * * `d` day * **Prefixes (PREFIX)** * * `k` kilo (10^3) * * `M` mega (10^6) * * `G` giga (10^9) * * `T` tera (10^12) * * `P` peta (10^15) * * `E` exa (10^18) * * `Z` zetta (10^21) * * `Y` yotta (10^24) * * `m` milli (10^-3) * * `u` micro (10^-6) * * `n` nano (10^-9) * * `p` pico (10^-12) * * `f` femto (10^-15) * * `a` atto (10^-18) * * `z` zepto (10^-21) * * `y` yocto (10^-24) * * `Ki` kibi (2^10) * * `Mi` mebi (2^20) * * `Gi` gibi (2^30) * * `Ti` tebi (2^40) * * `Pi` pebi (2^50) * **Grammar** * The grammar also includes these connectors: * * `/` division or ratio (as an infix operator). For examples, * `kBy/{email}` or `MiBy/10ms` (although you should almost never * have `/s` in a metric `unit`; rates should always be computed at * query time from the underlying cumulative or delta value). * * `.` multiplication or composition (as an infix operator). For * examples, `GBy.d` or `k{watt}.h`. * The grammar for a unit is as follows: * Expression = Component { "." Component } { "/" Component } ; * Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ] * | Annotation * | "1" * ; * Annotation = "{" NAME "}" ; * Notes: * * `Annotation` is just a comment if it follows a `UNIT`. If the annotation * is used alone, then the unit is equivalent to `1`. For examples, * `{request}/s == 1/s`, `By{transmitted}/s == By/s`. * * `NAME` is a sequence of non-blank printable ASCII characters not * containing `{` or `}`. * * `1` represents a unitary [dimensionless * unit](https://en.wikipedia.org/wiki/Dimensionless_quantity) of 1, such * as in `1/s`. It is typically used when none of the basic units are * appropriate. For example, "new users per day" can be represented as * `1/d` or `{new-users}/d` (and a metric value `5` would mean "5 new * users). Alternatively, "thousands of page views per day" would be * represented as `1000/d` or `k1/d` or `k{page_views}/d` (and a metric * value of `5.3` would mean "5300 page views per day"). * * `%` represents dimensionless value of 1/100, and annotates values giving * a percentage (so the metric values are typically in the range of 0..100, * and a metric value `3` means "3 percent"). * * `10^2.%` indicates a metric contains a ratio, typically in the range * 0..1, that will be multiplied by 100 and displayed as a percentage * (so a metric value `0.03` means "3 percent"). * * Generated from protobuf field string unit = 5; * @return string */ public function getUnit() { return $this->unit; } /** * The units in which the metric value is reported. It is only applicable * if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit` * defines the representation of the stored metric values. * Different systems may scale the values to be more easily displayed (so a * value of `0.02KBy` _might_ be displayed as `20By`, and a value of * `3523KBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is * `KBy`, then the value of the metric is always in thousands of bytes, no * matter how it may be displayed.. * If you want a custom metric to record the exact number of CPU-seconds used * by a job, you can create an `INT64 CUMULATIVE` metric whose `unit` is * `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses 12,005 * CPU-seconds, then the value is written as `12005`. * Alternatively, if you want a custome metric to record data in a more * granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is * `ks{CPU}`, and then write the value `12.005` (which is `12005/1000`), * or use `Kis{CPU}` and write `11.723` (which is `12005/1024`). * The supported units are a subset of [The Unified Code for Units of * Measure](http://unitsofmeasure.org/ucum.html) standard: * **Basic units (UNIT)** * * `bit` bit * * `By` byte * * `s` second * * `min` minute * * `h` hour * * `d` day * **Prefixes (PREFIX)** * * `k` kilo (10^3) * * `M` mega (10^6) * * `G` giga (10^9) * * `T` tera (10^12) * * `P` peta (10^15) * * `E` exa (10^18) * * `Z` zetta (10^21) * * `Y` yotta (10^24) * * `m` milli (10^-3) * * `u` micro (10^-6) * * `n` nano (10^-9) * * `p` pico (10^-12) * * `f` femto (10^-15) * * `a` atto (10^-18) * * `z` zepto (10^-21) * * `y` yocto (10^-24) * * `Ki` kibi (2^10) * * `Mi` mebi (2^20) * * `Gi` gibi (2^30) * * `Ti` tebi (2^40) * * `Pi` pebi (2^50) * **Grammar** * The grammar also includes these connectors: * * `/` division or ratio (as an infix operator). For examples, * `kBy/{email}` or `MiBy/10ms` (although you should almost never * have `/s` in a metric `unit`; rates should always be computed at * query time from the underlying cumulative or delta value). * * `.` multiplication or composition (as an infix operator). For * examples, `GBy.d` or `k{watt}.h`. * The grammar for a unit is as follows: * Expression = Component { "." Component } { "/" Component } ; * Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ] * | Annotation * | "1" * ; * Annotation = "{" NAME "}" ; * Notes: * * `Annotation` is just a comment if it follows a `UNIT`. If the annotation * is used alone, then the unit is equivalent to `1`. For examples, * `{request}/s == 1/s`, `By{transmitted}/s == By/s`. * * `NAME` is a sequence of non-blank printable ASCII characters not * containing `{` or `}`. * * `1` represents a unitary [dimensionless * unit](https://en.wikipedia.org/wiki/Dimensionless_quantity) of 1, such * as in `1/s`. It is typically used when none of the basic units are * appropriate. For example, "new users per day" can be represented as * `1/d` or `{new-users}/d` (and a metric value `5` would mean "5 new * users). Alternatively, "thousands of page views per day" would be * represented as `1000/d` or `k1/d` or `k{page_views}/d` (and a metric * value of `5.3` would mean "5300 page views per day"). * * `%` represents dimensionless value of 1/100, and annotates values giving * a percentage (so the metric values are typically in the range of 0..100, * and a metric value `3` means "3 percent"). * * `10^2.%` indicates a metric contains a ratio, typically in the range * 0..1, that will be multiplied by 100 and displayed as a percentage * (so a metric value `0.03` means "3 percent"). * * Generated from protobuf field string unit = 5; * @param string $var * @return $this */ public function setUnit($var) { GPBUtil::checkString($var, True); $this->unit = $var; return $this; } /** * A detailed description of the metric, which can be used in documentation. * * Generated from protobuf field string description = 6; * @return string */ public function getDescription() { return $this->description; } /** * A detailed description of the metric, which can be used in documentation. * * Generated from protobuf field string description = 6; * @param string $var * @return $this */ public function setDescription($var) { GPBUtil::checkString($var, True); $this->description = $var; return $this; } /** * A concise name for the metric, which can be displayed in user interfaces. * Use sentence case without an ending period, for example "Request count". * This field is optional but it is recommended to be set for any metrics * associated with user-visible concepts, such as Quota. * * Generated from protobuf field string display_name = 7; * @return string */ public function getDisplayName() { return $this->display_name; } /** * A concise name for the metric, which can be displayed in user interfaces. * Use sentence case without an ending period, for example "Request count". * This field is optional but it is recommended to be set for any metrics * associated with user-visible concepts, such as Quota. * * Generated from protobuf field string display_name = 7; * @param string $var * @return $this */ public function setDisplayName($var) { GPBUtil::checkString($var, True); $this->display_name = $var; return $this; } /** * Optional. Metadata which can be used to guide usage of the metric. * * Generated from protobuf field .google.api.MetricDescriptor.MetricDescriptorMetadata metadata = 10; * @return \Google\Api\MetricDescriptor\MetricDescriptorMetadata */ public function getMetadata() { return $this->metadata; } /** * Optional. Metadata which can be used to guide usage of the metric. * * Generated from protobuf field .google.api.MetricDescriptor.MetricDescriptorMetadata metadata = 10; * @param \Google\Api\MetricDescriptor\MetricDescriptorMetadata $var * @return $this */ public function setMetadata($var) { GPBUtil::checkMessage($var, \Google\Api\MetricDescriptor_MetricDescriptorMetadata::class); $this->metadata = $var; return $this; } /** * Optional. The launch stage of the metric definition. * * Generated from protobuf field .google.api.LaunchStage launch_stage = 12; * @return int */ public function getLaunchStage() { return $this->launch_stage; } /** * Optional. The launch stage of the metric definition. * * Generated from protobuf field .google.api.LaunchStage launch_stage = 12; * @param int $var * @return $this */ public function setLaunchStage($var) { GPBUtil::checkEnum($var, \Google\Api\LaunchStage::class); $this->launch_stage = $var; return $this; } } src/Api/MetricDescriptor/MetricDescriptorMetadata.php000064400000013405151742727570017006 0ustar00google.api.MetricDescriptor.MetricDescriptorMetadata */ class MetricDescriptorMetadata extends \Google\Protobuf\Internal\Message { /** * Deprecated. Please use the MetricDescriptor.launch_stage instead. * The launch stage of the metric definition. * * Generated from protobuf field .google.api.LaunchStage launch_stage = 1 [deprecated = true]; */ private $launch_stage = 0; /** * The sampling period of metric data points. For metrics which are written * periodically, consecutive data points are stored at this time interval, * excluding data loss due to errors. Metrics with a higher granularity have * a smaller sampling period. * * Generated from protobuf field .google.protobuf.Duration sample_period = 2; */ private $sample_period = null; /** * The delay of data points caused by ingestion. Data points older than this * age are guaranteed to be ingested and available to be read, excluding * data loss due to errors. * * Generated from protobuf field .google.protobuf.Duration ingest_delay = 3; */ private $ingest_delay = null; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int $launch_stage * Deprecated. Please use the MetricDescriptor.launch_stage instead. * The launch stage of the metric definition. * @type \Google\Protobuf\Duration $sample_period * The sampling period of metric data points. For metrics which are written * periodically, consecutive data points are stored at this time interval, * excluding data loss due to errors. Metrics with a higher granularity have * a smaller sampling period. * @type \Google\Protobuf\Duration $ingest_delay * The delay of data points caused by ingestion. Data points older than this * age are guaranteed to be ingested and available to be read, excluding * data loss due to errors. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Metric::initOnce(); parent::__construct($data); } /** * Deprecated. Please use the MetricDescriptor.launch_stage instead. * The launch stage of the metric definition. * * Generated from protobuf field .google.api.LaunchStage launch_stage = 1 [deprecated = true]; * @return int */ public function getLaunchStage() { return $this->launch_stage; } /** * Deprecated. Please use the MetricDescriptor.launch_stage instead. * The launch stage of the metric definition. * * Generated from protobuf field .google.api.LaunchStage launch_stage = 1 [deprecated = true]; * @param int $var * @return $this */ public function setLaunchStage($var) { GPBUtil::checkEnum($var, \Google\Api\LaunchStage::class); $this->launch_stage = $var; return $this; } /** * The sampling period of metric data points. For metrics which are written * periodically, consecutive data points are stored at this time interval, * excluding data loss due to errors. Metrics with a higher granularity have * a smaller sampling period. * * Generated from protobuf field .google.protobuf.Duration sample_period = 2; * @return \Google\Protobuf\Duration */ public function getSamplePeriod() { return $this->sample_period; } /** * The sampling period of metric data points. For metrics which are written * periodically, consecutive data points are stored at this time interval, * excluding data loss due to errors. Metrics with a higher granularity have * a smaller sampling period. * * Generated from protobuf field .google.protobuf.Duration sample_period = 2; * @param \Google\Protobuf\Duration $var * @return $this */ public function setSamplePeriod($var) { GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); $this->sample_period = $var; return $this; } /** * The delay of data points caused by ingestion. Data points older than this * age are guaranteed to be ingested and available to be read, excluding * data loss due to errors. * * Generated from protobuf field .google.protobuf.Duration ingest_delay = 3; * @return \Google\Protobuf\Duration */ public function getIngestDelay() { return $this->ingest_delay; } /** * The delay of data points caused by ingestion. Data points older than this * age are guaranteed to be ingested and available to be read, excluding * data loss due to errors. * * Generated from protobuf field .google.protobuf.Duration ingest_delay = 3; * @param \Google\Protobuf\Duration $var * @return $this */ public function setIngestDelay($var) { GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); $this->ingest_delay = $var; return $this; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(MetricDescriptorMetadata::class, \Google\Api\MetricDescriptor_MetricDescriptorMetadata::class); src/Api/MetricDescriptor/MetricKind.php000064400000004257151742727570014121 0ustar00google.api.MetricDescriptor.MetricKind */ class MetricKind { /** * Do not use this default value. * * Generated from protobuf enum METRIC_KIND_UNSPECIFIED = 0; */ const METRIC_KIND_UNSPECIFIED = 0; /** * An instantaneous measurement of a value. * * Generated from protobuf enum GAUGE = 1; */ const GAUGE = 1; /** * The change in a value during a time interval. * * Generated from protobuf enum DELTA = 2; */ const DELTA = 2; /** * A value accumulated over a time interval. Cumulative * measurements in a time series should have the same start time * and increasing end times, until an event resets the cumulative * value to zero and sets a new start time for the following * points. * * Generated from protobuf enum CUMULATIVE = 3; */ const CUMULATIVE = 3; private static $valueToName = [ self::METRIC_KIND_UNSPECIFIED => 'METRIC_KIND_UNSPECIFIED', self::GAUGE => 'GAUGE', self::DELTA => 'DELTA', self::CUMULATIVE => 'CUMULATIVE', ]; public static function name($value) { if (!isset(self::$valueToName[$value])) { throw new UnexpectedValueException(sprintf( 'Enum %s has no name defined for value %s', __CLASS__, $value)); } return self::$valueToName[$value]; } public static function value($name) { $const = __CLASS__ . '::' . strtoupper($name); if (!defined($const)) { throw new UnexpectedValueException(sprintf( 'Enum %s has no value defined for name %s', __CLASS__, $name)); } return constant($const); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(MetricKind::class, \Google\Api\MetricDescriptor_MetricKind::class); src/Api/MetricDescriptor/ValueType.php000064400000005101151742727570013773 0ustar00google.api.MetricDescriptor.ValueType */ class ValueType { /** * Do not use this default value. * * Generated from protobuf enum VALUE_TYPE_UNSPECIFIED = 0; */ const VALUE_TYPE_UNSPECIFIED = 0; /** * The value is a boolean. * This value type can be used only if the metric kind is `GAUGE`. * * Generated from protobuf enum BOOL = 1; */ const BOOL = 1; /** * The value is a signed 64-bit integer. * * Generated from protobuf enum INT64 = 2; */ const INT64 = 2; /** * The value is a double precision floating point number. * * Generated from protobuf enum DOUBLE = 3; */ const DOUBLE = 3; /** * The value is a text string. * This value type can be used only if the metric kind is `GAUGE`. * * Generated from protobuf enum STRING = 4; */ const STRING = 4; /** * The value is a [`Distribution`][google.api.Distribution]. * * Generated from protobuf enum DISTRIBUTION = 5; */ const DISTRIBUTION = 5; /** * The value is money. * * Generated from protobuf enum MONEY = 6; */ const MONEY = 6; private static $valueToName = [ self::VALUE_TYPE_UNSPECIFIED => 'VALUE_TYPE_UNSPECIFIED', self::BOOL => 'BOOL', self::INT64 => 'INT64', self::DOUBLE => 'DOUBLE', self::STRING => 'STRING', self::DISTRIBUTION => 'DISTRIBUTION', self::MONEY => 'MONEY', ]; public static function name($value) { if (!isset(self::$valueToName[$value])) { throw new UnexpectedValueException(sprintf( 'Enum %s has no name defined for value %s', __CLASS__, $value)); } return self::$valueToName[$value]; } public static function value($name) { $const = __CLASS__ . '::' . strtoupper($name); if (!defined($const)) { throw new UnexpectedValueException(sprintf( 'Enum %s has no value defined for name %s', __CLASS__, $name)); } return constant($const); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(ValueType::class, \Google\Api\MetricDescriptor_ValueType::class); src/Api/MetricDescriptor_MetricDescriptorMetadata.php000064400000001141151742727570017060 0ustar00google.api.MetricRule */ class MetricRule extends \Google\Protobuf\Internal\Message { /** * Selects the methods to which this rule applies. * Refer to [selector][google.api.DocumentationRule.selector] for syntax details. * * Generated from protobuf field string selector = 1; */ private $selector = ''; /** * Metrics to update when the selected methods are called, and the associated * cost applied to each metric. * The key of the map is the metric name, and the values are the amount * increased for the metric against which the quota limits are defined. * The value must not be negative. * * Generated from protobuf field map metric_costs = 2; */ private $metric_costs; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $selector * Selects the methods to which this rule applies. * Refer to [selector][google.api.DocumentationRule.selector] for syntax details. * @type array|\Google\Protobuf\Internal\MapField $metric_costs * Metrics to update when the selected methods are called, and the associated * cost applied to each metric. * The key of the map is the metric name, and the values are the amount * increased for the metric against which the quota limits are defined. * The value must not be negative. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Quota::initOnce(); parent::__construct($data); } /** * Selects the methods to which this rule applies. * Refer to [selector][google.api.DocumentationRule.selector] for syntax details. * * Generated from protobuf field string selector = 1; * @return string */ public function getSelector() { return $this->selector; } /** * Selects the methods to which this rule applies. * Refer to [selector][google.api.DocumentationRule.selector] for syntax details. * * Generated from protobuf field string selector = 1; * @param string $var * @return $this */ public function setSelector($var) { GPBUtil::checkString($var, True); $this->selector = $var; return $this; } /** * Metrics to update when the selected methods are called, and the associated * cost applied to each metric. * The key of the map is the metric name, and the values are the amount * increased for the metric against which the quota limits are defined. * The value must not be negative. * * Generated from protobuf field map metric_costs = 2; * @return \Google\Protobuf\Internal\MapField */ public function getMetricCosts() { return $this->metric_costs; } /** * Metrics to update when the selected methods are called, and the associated * cost applied to each metric. * The key of the map is the metric name, and the values are the amount * increased for the metric against which the quota limits are defined. * The value must not be negative. * * Generated from protobuf field map metric_costs = 2; * @param array|\Google\Protobuf\Internal\MapField $var * @return $this */ public function setMetricCosts($var) { $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::INT64); $this->metric_costs = $arr; return $this; } } src/Api/MonitoredResource.php000064400000011554151742727570012254 0ustar00google.api.MonitoredResource */ class MonitoredResource extends \Google\Protobuf\Internal\Message { /** * Required. The monitored resource type. This field must match * the `type` field of a [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor] object. For * example, the type of a Compute Engine VM instance is `gce_instance`. * * Generated from protobuf field string type = 1; */ private $type = ''; /** * Required. Values for all of the labels listed in the associated monitored * resource descriptor. For example, Compute Engine VM instances use the * labels `"project_id"`, `"instance_id"`, and `"zone"`. * * Generated from protobuf field map labels = 2; */ private $labels; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $type * Required. The monitored resource type. This field must match * the `type` field of a [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor] object. For * example, the type of a Compute Engine VM instance is `gce_instance`. * @type array|\Google\Protobuf\Internal\MapField $labels * Required. Values for all of the labels listed in the associated monitored * resource descriptor. For example, Compute Engine VM instances use the * labels `"project_id"`, `"instance_id"`, and `"zone"`. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\MonitoredResource::initOnce(); parent::__construct($data); } /** * Required. The monitored resource type. This field must match * the `type` field of a [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor] object. For * example, the type of a Compute Engine VM instance is `gce_instance`. * * Generated from protobuf field string type = 1; * @return string */ public function getType() { return $this->type; } /** * Required. The monitored resource type. This field must match * the `type` field of a [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor] object. For * example, the type of a Compute Engine VM instance is `gce_instance`. * * Generated from protobuf field string type = 1; * @param string $var * @return $this */ public function setType($var) { GPBUtil::checkString($var, True); $this->type = $var; return $this; } /** * Required. Values for all of the labels listed in the associated monitored * resource descriptor. For example, Compute Engine VM instances use the * labels `"project_id"`, `"instance_id"`, and `"zone"`. * * Generated from protobuf field map labels = 2; * @return \Google\Protobuf\Internal\MapField */ public function getLabels() { return $this->labels; } /** * Required. Values for all of the labels listed in the associated monitored * resource descriptor. For example, Compute Engine VM instances use the * labels `"project_id"`, `"instance_id"`, and `"zone"`. * * Generated from protobuf field map labels = 2; * @param array|\Google\Protobuf\Internal\MapField $var * @return $this */ public function setLabels($var) { $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); $this->labels = $arr; return $this; } } src/Api/MonitoredResourceDescriptor.php000064400000023271151742727570014312 0ustar00google.api.MonitoredResourceDescriptor */ class MonitoredResourceDescriptor extends \Google\Protobuf\Internal\Message { /** * Optional. The resource name of the monitored resource descriptor: * `"projects/{project_id}/monitoredResourceDescriptors/{type}"` where * {type} is the value of the `type` field in this object and * {project_id} is a project ID that provides API-specific context for * accessing the type. APIs that do not use project information can use the * resource name format `"monitoredResourceDescriptors/{type}"`. * * Generated from protobuf field string name = 5; */ private $name = ''; /** * Required. The monitored resource type. For example, the type * `"cloudsql_database"` represents databases in Google Cloud SQL. * The maximum length of this value is 256 characters. * * Generated from protobuf field string type = 1; */ private $type = ''; /** * Optional. A concise name for the monitored resource type that might be * displayed in user interfaces. It should be a Title Cased Noun Phrase, * without any article or other determiners. For example, * `"Google Cloud SQL Database"`. * * Generated from protobuf field string display_name = 2; */ private $display_name = ''; /** * Optional. A detailed description of the monitored resource type that might * be used in documentation. * * Generated from protobuf field string description = 3; */ private $description = ''; /** * Required. A set of labels used to describe instances of this monitored * resource type. For example, an individual Google Cloud SQL database is * identified by values for the labels `"database_id"` and `"zone"`. * * Generated from protobuf field repeated .google.api.LabelDescriptor labels = 4; */ private $labels; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $name * Optional. The resource name of the monitored resource descriptor: * `"projects/{project_id}/monitoredResourceDescriptors/{type}"` where * {type} is the value of the `type` field in this object and * {project_id} is a project ID that provides API-specific context for * accessing the type. APIs that do not use project information can use the * resource name format `"monitoredResourceDescriptors/{type}"`. * @type string $type * Required. The monitored resource type. For example, the type * `"cloudsql_database"` represents databases in Google Cloud SQL. * The maximum length of this value is 256 characters. * @type string $display_name * Optional. A concise name for the monitored resource type that might be * displayed in user interfaces. It should be a Title Cased Noun Phrase, * without any article or other determiners. For example, * `"Google Cloud SQL Database"`. * @type string $description * Optional. A detailed description of the monitored resource type that might * be used in documentation. * @type \Google\Api\LabelDescriptor[]|\Google\Protobuf\Internal\RepeatedField $labels * Required. A set of labels used to describe instances of this monitored * resource type. For example, an individual Google Cloud SQL database is * identified by values for the labels `"database_id"` and `"zone"`. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\MonitoredResource::initOnce(); parent::__construct($data); } /** * Optional. The resource name of the monitored resource descriptor: * `"projects/{project_id}/monitoredResourceDescriptors/{type}"` where * {type} is the value of the `type` field in this object and * {project_id} is a project ID that provides API-specific context for * accessing the type. APIs that do not use project information can use the * resource name format `"monitoredResourceDescriptors/{type}"`. * * Generated from protobuf field string name = 5; * @return string */ public function getName() { return $this->name; } /** * Optional. The resource name of the monitored resource descriptor: * `"projects/{project_id}/monitoredResourceDescriptors/{type}"` where * {type} is the value of the `type` field in this object and * {project_id} is a project ID that provides API-specific context for * accessing the type. APIs that do not use project information can use the * resource name format `"monitoredResourceDescriptors/{type}"`. * * Generated from protobuf field string name = 5; * @param string $var * @return $this */ public function setName($var) { GPBUtil::checkString($var, True); $this->name = $var; return $this; } /** * Required. The monitored resource type. For example, the type * `"cloudsql_database"` represents databases in Google Cloud SQL. * The maximum length of this value is 256 characters. * * Generated from protobuf field string type = 1; * @return string */ public function getType() { return $this->type; } /** * Required. The monitored resource type. For example, the type * `"cloudsql_database"` represents databases in Google Cloud SQL. * The maximum length of this value is 256 characters. * * Generated from protobuf field string type = 1; * @param string $var * @return $this */ public function setType($var) { GPBUtil::checkString($var, True); $this->type = $var; return $this; } /** * Optional. A concise name for the monitored resource type that might be * displayed in user interfaces. It should be a Title Cased Noun Phrase, * without any article or other determiners. For example, * `"Google Cloud SQL Database"`. * * Generated from protobuf field string display_name = 2; * @return string */ public function getDisplayName() { return $this->display_name; } /** * Optional. A concise name for the monitored resource type that might be * displayed in user interfaces. It should be a Title Cased Noun Phrase, * without any article or other determiners. For example, * `"Google Cloud SQL Database"`. * * Generated from protobuf field string display_name = 2; * @param string $var * @return $this */ public function setDisplayName($var) { GPBUtil::checkString($var, True); $this->display_name = $var; return $this; } /** * Optional. A detailed description of the monitored resource type that might * be used in documentation. * * Generated from protobuf field string description = 3; * @return string */ public function getDescription() { return $this->description; } /** * Optional. A detailed description of the monitored resource type that might * be used in documentation. * * Generated from protobuf field string description = 3; * @param string $var * @return $this */ public function setDescription($var) { GPBUtil::checkString($var, True); $this->description = $var; return $this; } /** * Required. A set of labels used to describe instances of this monitored * resource type. For example, an individual Google Cloud SQL database is * identified by values for the labels `"database_id"` and `"zone"`. * * Generated from protobuf field repeated .google.api.LabelDescriptor labels = 4; * @return \Google\Protobuf\Internal\RepeatedField */ public function getLabels() { return $this->labels; } /** * Required. A set of labels used to describe instances of this monitored * resource type. For example, an individual Google Cloud SQL database is * identified by values for the labels `"database_id"` and `"zone"`. * * Generated from protobuf field repeated .google.api.LabelDescriptor labels = 4; * @param \Google\Api\LabelDescriptor[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setLabels($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\LabelDescriptor::class); $this->labels = $arr; return $this; } } src/Api/MonitoredResourceMetadata.php000064400000012572151742727570013716 0ustar00google.api.MonitoredResourceMetadata */ class MonitoredResourceMetadata extends \Google\Protobuf\Internal\Message { /** * Output only. Values for predefined system metadata labels. * System labels are a kind of metadata extracted by Google Stackdriver. * Stackdriver determines what system labels are useful and how to obtain * their values. Some examples: "machine_image", "vpc", "subnet_id", * "security_group", "name", etc. * System label values can be only strings, Boolean values, or a list of * strings. For example: * { "name": "my-test-instance", * "security_group": ["a", "b", "c"], * "spot_instance": false } * * Generated from protobuf field .google.protobuf.Struct system_labels = 1; */ private $system_labels = null; /** * Output only. A map of user-defined metadata labels. * * Generated from protobuf field map user_labels = 2; */ private $user_labels; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Google\Protobuf\Struct $system_labels * Output only. Values for predefined system metadata labels. * System labels are a kind of metadata extracted by Google Stackdriver. * Stackdriver determines what system labels are useful and how to obtain * their values. Some examples: "machine_image", "vpc", "subnet_id", * "security_group", "name", etc. * System label values can be only strings, Boolean values, or a list of * strings. For example: * { "name": "my-test-instance", * "security_group": ["a", "b", "c"], * "spot_instance": false } * @type array|\Google\Protobuf\Internal\MapField $user_labels * Output only. A map of user-defined metadata labels. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\MonitoredResource::initOnce(); parent::__construct($data); } /** * Output only. Values for predefined system metadata labels. * System labels are a kind of metadata extracted by Google Stackdriver. * Stackdriver determines what system labels are useful and how to obtain * their values. Some examples: "machine_image", "vpc", "subnet_id", * "security_group", "name", etc. * System label values can be only strings, Boolean values, or a list of * strings. For example: * { "name": "my-test-instance", * "security_group": ["a", "b", "c"], * "spot_instance": false } * * Generated from protobuf field .google.protobuf.Struct system_labels = 1; * @return \Google\Protobuf\Struct */ public function getSystemLabels() { return $this->system_labels; } /** * Output only. Values for predefined system metadata labels. * System labels are a kind of metadata extracted by Google Stackdriver. * Stackdriver determines what system labels are useful and how to obtain * their values. Some examples: "machine_image", "vpc", "subnet_id", * "security_group", "name", etc. * System label values can be only strings, Boolean values, or a list of * strings. For example: * { "name": "my-test-instance", * "security_group": ["a", "b", "c"], * "spot_instance": false } * * Generated from protobuf field .google.protobuf.Struct system_labels = 1; * @param \Google\Protobuf\Struct $var * @return $this */ public function setSystemLabels($var) { GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class); $this->system_labels = $var; return $this; } /** * Output only. A map of user-defined metadata labels. * * Generated from protobuf field map user_labels = 2; * @return \Google\Protobuf\Internal\MapField */ public function getUserLabels() { return $this->user_labels; } /** * Output only. A map of user-defined metadata labels. * * Generated from protobuf field map user_labels = 2; * @param array|\Google\Protobuf\Internal\MapField $var * @return $this */ public function setUserLabels($var) { $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); $this->user_labels = $arr; return $this; } } src/Api/Monitoring.php000064400000014751151742727570010733 0ustar00google.api.Monitoring */ class Monitoring extends \Google\Protobuf\Internal\Message { /** * Monitoring configurations for sending metrics to the producer project. * There can be multiple producer destinations, each one must have a * different monitored resource type. A metric can be used in at most * one producer destination. * * Generated from protobuf field repeated .google.api.Monitoring.MonitoringDestination producer_destinations = 1; */ private $producer_destinations; /** * Monitoring configurations for sending metrics to the consumer project. * There can be multiple consumer destinations, each one must have a * different monitored resource type. A metric can be used in at most * one consumer destination. * * Generated from protobuf field repeated .google.api.Monitoring.MonitoringDestination consumer_destinations = 2; */ private $consumer_destinations; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Google\Api\Monitoring\MonitoringDestination[]|\Google\Protobuf\Internal\RepeatedField $producer_destinations * Monitoring configurations for sending metrics to the producer project. * There can be multiple producer destinations, each one must have a * different monitored resource type. A metric can be used in at most * one producer destination. * @type \Google\Api\Monitoring\MonitoringDestination[]|\Google\Protobuf\Internal\RepeatedField $consumer_destinations * Monitoring configurations for sending metrics to the consumer project. * There can be multiple consumer destinations, each one must have a * different monitored resource type. A metric can be used in at most * one consumer destination. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Monitoring::initOnce(); parent::__construct($data); } /** * Monitoring configurations for sending metrics to the producer project. * There can be multiple producer destinations, each one must have a * different monitored resource type. A metric can be used in at most * one producer destination. * * Generated from protobuf field repeated .google.api.Monitoring.MonitoringDestination producer_destinations = 1; * @return \Google\Protobuf\Internal\RepeatedField */ public function getProducerDestinations() { return $this->producer_destinations; } /** * Monitoring configurations for sending metrics to the producer project. * There can be multiple producer destinations, each one must have a * different monitored resource type. A metric can be used in at most * one producer destination. * * Generated from protobuf field repeated .google.api.Monitoring.MonitoringDestination producer_destinations = 1; * @param \Google\Api\Monitoring\MonitoringDestination[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setProducerDestinations($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Monitoring\MonitoringDestination::class); $this->producer_destinations = $arr; return $this; } /** * Monitoring configurations for sending metrics to the consumer project. * There can be multiple consumer destinations, each one must have a * different monitored resource type. A metric can be used in at most * one consumer destination. * * Generated from protobuf field repeated .google.api.Monitoring.MonitoringDestination consumer_destinations = 2; * @return \Google\Protobuf\Internal\RepeatedField */ public function getConsumerDestinations() { return $this->consumer_destinations; } /** * Monitoring configurations for sending metrics to the consumer project. * There can be multiple consumer destinations, each one must have a * different monitored resource type. A metric can be used in at most * one consumer destination. * * Generated from protobuf field repeated .google.api.Monitoring.MonitoringDestination consumer_destinations = 2; * @param \Google\Api\Monitoring\MonitoringDestination[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setConsumerDestinations($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Monitoring\MonitoringDestination::class); $this->consumer_destinations = $arr; return $this; } } src/Api/Monitoring/MonitoringDestination.php000064400000007412151742727570015256 0ustar00google.api.Monitoring.MonitoringDestination */ class MonitoringDestination extends \Google\Protobuf\Internal\Message { /** * The monitored resource type. The type must be defined in * [Service.monitored_resources][google.api.Service.monitored_resources] section. * * Generated from protobuf field string monitored_resource = 1; */ private $monitored_resource = ''; /** * Names of the metrics to report to this monitoring destination. * Each name must be defined in [Service.metrics][google.api.Service.metrics] section. * * Generated from protobuf field repeated string metrics = 2; */ private $metrics; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $monitored_resource * The monitored resource type. The type must be defined in * [Service.monitored_resources][google.api.Service.monitored_resources] section. * @type string[]|\Google\Protobuf\Internal\RepeatedField $metrics * Names of the metrics to report to this monitoring destination. * Each name must be defined in [Service.metrics][google.api.Service.metrics] section. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Monitoring::initOnce(); parent::__construct($data); } /** * The monitored resource type. The type must be defined in * [Service.monitored_resources][google.api.Service.monitored_resources] section. * * Generated from protobuf field string monitored_resource = 1; * @return string */ public function getMonitoredResource() { return $this->monitored_resource; } /** * The monitored resource type. The type must be defined in * [Service.monitored_resources][google.api.Service.monitored_resources] section. * * Generated from protobuf field string monitored_resource = 1; * @param string $var * @return $this */ public function setMonitoredResource($var) { GPBUtil::checkString($var, True); $this->monitored_resource = $var; return $this; } /** * Names of the metrics to report to this monitoring destination. * Each name must be defined in [Service.metrics][google.api.Service.metrics] section. * * Generated from protobuf field repeated string metrics = 2; * @return \Google\Protobuf\Internal\RepeatedField */ public function getMetrics() { return $this->metrics; } /** * Names of the metrics to report to this monitoring destination. * Each name must be defined in [Service.metrics][google.api.Service.metrics] section. * * Generated from protobuf field repeated string metrics = 2; * @param string[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setMetrics($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); $this->metrics = $arr; return $this; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(MonitoringDestination::class, \Google\Api\Monitoring_MonitoringDestination::class); src/Api/Monitoring_MonitoringDestination.php000064400000001070151742727570015330 0ustar00google.api.OAuthRequirements */ class OAuthRequirements extends \Google\Protobuf\Internal\Message { /** * The list of publicly documented OAuth scopes that are allowed access. An * OAuth token containing any of these scopes will be accepted. * Example: * canonical_scopes: https://www.googleapis.com/auth/calendar, * https://www.googleapis.com/auth/calendar.read * * Generated from protobuf field string canonical_scopes = 1; */ private $canonical_scopes = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $canonical_scopes * The list of publicly documented OAuth scopes that are allowed access. An * OAuth token containing any of these scopes will be accepted. * Example: * canonical_scopes: https://www.googleapis.com/auth/calendar, * https://www.googleapis.com/auth/calendar.read * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Auth::initOnce(); parent::__construct($data); } /** * The list of publicly documented OAuth scopes that are allowed access. An * OAuth token containing any of these scopes will be accepted. * Example: * canonical_scopes: https://www.googleapis.com/auth/calendar, * https://www.googleapis.com/auth/calendar.read * * Generated from protobuf field string canonical_scopes = 1; * @return string */ public function getCanonicalScopes() { return $this->canonical_scopes; } /** * The list of publicly documented OAuth scopes that are allowed access. An * OAuth token containing any of these scopes will be accepted. * Example: * canonical_scopes: https://www.googleapis.com/auth/calendar, * https://www.googleapis.com/auth/calendar.read * * Generated from protobuf field string canonical_scopes = 1; * @param string $var * @return $this */ public function setCanonicalScopes($var) { GPBUtil::checkString($var, True); $this->canonical_scopes = $var; return $this; } } src/Api/Page.php000064400000015274151742727570007463 0ustar00google.api.Page */ class Page extends \Google\Protobuf\Internal\Message { /** * The name of the page. It will be used as an identity of the page to * generate URI of the page, text of the link to this page in navigation, * etc. The full page name (start from the root page name to this page * concatenated with `.`) can be used as reference to the page in your * documentation. For example: *
pages:
     * - name: Tutorial
     *   content: (== include tutorial.md ==)
     *   subpages:
     *   - name: Java
     *     content: (== include tutorial_java.md ==)
     * 
* You can reference `Java` page using Markdown reference link syntax: * `[Java][Tutorial.Java]`. * * Generated from protobuf field string name = 1; */ private $name = ''; /** * The Markdown content of the page. You can use (== include {path} ==) * to include content from a Markdown file. * * Generated from protobuf field string content = 2; */ private $content = ''; /** * Subpages of this page. The order of subpages specified here will be * honored in the generated docset. * * Generated from protobuf field repeated .google.api.Page subpages = 3; */ private $subpages; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $name * The name of the page. It will be used as an identity of the page to * generate URI of the page, text of the link to this page in navigation, * etc. The full page name (start from the root page name to this page * concatenated with `.`) can be used as reference to the page in your * documentation. For example: *
pages:
     *           - name: Tutorial
     *             content: (== include tutorial.md ==)
     *             subpages:
     *             - name: Java
     *               content: (== include tutorial_java.md ==)
     *           
* You can reference `Java` page using Markdown reference link syntax: * `[Java][Tutorial.Java]`. * @type string $content * The Markdown content of the page. You can use (== include {path} ==) * to include content from a Markdown file. * @type \Google\Api\Page[]|\Google\Protobuf\Internal\RepeatedField $subpages * Subpages of this page. The order of subpages specified here will be * honored in the generated docset. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Documentation::initOnce(); parent::__construct($data); } /** * The name of the page. It will be used as an identity of the page to * generate URI of the page, text of the link to this page in navigation, * etc. The full page name (start from the root page name to this page * concatenated with `.`) can be used as reference to the page in your * documentation. For example: *
pages:
     * - name: Tutorial
     *   content: (== include tutorial.md ==)
     *   subpages:
     *   - name: Java
     *     content: (== include tutorial_java.md ==)
     * 
* You can reference `Java` page using Markdown reference link syntax: * `[Java][Tutorial.Java]`. * * Generated from protobuf field string name = 1; * @return string */ public function getName() { return $this->name; } /** * The name of the page. It will be used as an identity of the page to * generate URI of the page, text of the link to this page in navigation, * etc. The full page name (start from the root page name to this page * concatenated with `.`) can be used as reference to the page in your * documentation. For example: *
pages:
     * - name: Tutorial
     *   content: (== include tutorial.md ==)
     *   subpages:
     *   - name: Java
     *     content: (== include tutorial_java.md ==)
     * 
* You can reference `Java` page using Markdown reference link syntax: * `[Java][Tutorial.Java]`. * * Generated from protobuf field string name = 1; * @param string $var * @return $this */ public function setName($var) { GPBUtil::checkString($var, True); $this->name = $var; return $this; } /** * The Markdown content of the page. You can use (== include {path} ==) * to include content from a Markdown file. * * Generated from protobuf field string content = 2; * @return string */ public function getContent() { return $this->content; } /** * The Markdown content of the page. You can use (== include {path} ==) * to include content from a Markdown file. * * Generated from protobuf field string content = 2; * @param string $var * @return $this */ public function setContent($var) { GPBUtil::checkString($var, True); $this->content = $var; return $this; } /** * Subpages of this page. The order of subpages specified here will be * honored in the generated docset. * * Generated from protobuf field repeated .google.api.Page subpages = 3; * @return \Google\Protobuf\Internal\RepeatedField */ public function getSubpages() { return $this->subpages; } /** * Subpages of this page. The order of subpages specified here will be * honored in the generated docset. * * Generated from protobuf field repeated .google.api.Page subpages = 3; * @param \Google\Api\Page[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setSubpages($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Page::class); $this->subpages = $arr; return $this; } } src/Api/ProjectProperties.php000064400000005051151742727570012262 0ustar00google.api.ProjectProperties */ class ProjectProperties extends \Google\Protobuf\Internal\Message { /** * List of per consumer project-specific properties. * * Generated from protobuf field repeated .google.api.Property properties = 1; */ private $properties; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Google\Api\Property[]|\Google\Protobuf\Internal\RepeatedField $properties * List of per consumer project-specific properties. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Consumer::initOnce(); parent::__construct($data); } /** * List of per consumer project-specific properties. * * Generated from protobuf field repeated .google.api.Property properties = 1; * @return \Google\Protobuf\Internal\RepeatedField */ public function getProperties() { return $this->properties; } /** * List of per consumer project-specific properties. * * Generated from protobuf field repeated .google.api.Property properties = 1; * @param \Google\Api\Property[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setProperties($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Property::class); $this->properties = $arr; return $this; } } src/Api/Property.php000064400000007075151742727570010433 0ustar00google.api.Property */ class Property extends \Google\Protobuf\Internal\Message { /** * The name of the property (a.k.a key). * * Generated from protobuf field string name = 1; */ private $name = ''; /** * The type of this property. * * Generated from protobuf field .google.api.Property.PropertyType type = 2; */ private $type = 0; /** * The description of the property * * Generated from protobuf field string description = 3; */ private $description = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $name * The name of the property (a.k.a key). * @type int $type * The type of this property. * @type string $description * The description of the property * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Consumer::initOnce(); parent::__construct($data); } /** * The name of the property (a.k.a key). * * Generated from protobuf field string name = 1; * @return string */ public function getName() { return $this->name; } /** * The name of the property (a.k.a key). * * Generated from protobuf field string name = 1; * @param string $var * @return $this */ public function setName($var) { GPBUtil::checkString($var, True); $this->name = $var; return $this; } /** * The type of this property. * * Generated from protobuf field .google.api.Property.PropertyType type = 2; * @return int */ public function getType() { return $this->type; } /** * The type of this property. * * Generated from protobuf field .google.api.Property.PropertyType type = 2; * @param int $var * @return $this */ public function setType($var) { GPBUtil::checkEnum($var, \Google\Api\Property_PropertyType::class); $this->type = $var; return $this; } /** * The description of the property * * Generated from protobuf field string description = 3; * @return string */ public function getDescription() { return $this->description; } /** * The description of the property * * Generated from protobuf field string description = 3; * @param string $var * @return $this */ public function setDescription($var) { GPBUtil::checkString($var, True); $this->description = $var; return $this; } } src/Api/Property/PropertyType.php000064400000003737151742727570013122 0ustar00google.api.Property.PropertyType */ class PropertyType { /** * The type is unspecified, and will result in an error. * * Generated from protobuf enum UNSPECIFIED = 0; */ const UNSPECIFIED = 0; /** * The type is `int64`. * * Generated from protobuf enum INT64 = 1; */ const INT64 = 1; /** * The type is `bool`. * * Generated from protobuf enum BOOL = 2; */ const BOOL = 2; /** * The type is `string`. * * Generated from protobuf enum STRING = 3; */ const STRING = 3; /** * The type is 'double'. * * Generated from protobuf enum DOUBLE = 4; */ const DOUBLE = 4; private static $valueToName = [ self::UNSPECIFIED => 'UNSPECIFIED', self::INT64 => 'INT64', self::BOOL => 'BOOL', self::STRING => 'STRING', self::DOUBLE => 'DOUBLE', ]; public static function name($value) { if (!isset(self::$valueToName[$value])) { throw new UnexpectedValueException(sprintf( 'Enum %s has no name defined for value %s', __CLASS__, $value)); } return self::$valueToName[$value]; } public static function value($name) { $const = __CLASS__ . '::' . strtoupper($name); if (!defined($const)) { throw new UnexpectedValueException(sprintf( 'Enum %s has no value defined for name %s', __CLASS__, $name)); } return constant($const); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(PropertyType::class, \Google\Api\Property_PropertyType::class); src/Api/Property_PropertyType.php000064400000000777151742727570013203 0ustar00google.api.Quota */ class Quota extends \Google\Protobuf\Internal\Message { /** * List of `QuotaLimit` definitions for the service. * Used by metric-based quotas only. * * Generated from protobuf field repeated .google.api.QuotaLimit limits = 3; */ private $limits; /** * List of `MetricRule` definitions, each one mapping a selected method to one * or more metrics. * Used by metric-based quotas only. * * Generated from protobuf field repeated .google.api.MetricRule metric_rules = 4; */ private $metric_rules; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Google\Api\QuotaLimit[]|\Google\Protobuf\Internal\RepeatedField $limits * List of `QuotaLimit` definitions for the service. * Used by metric-based quotas only. * @type \Google\Api\MetricRule[]|\Google\Protobuf\Internal\RepeatedField $metric_rules * List of `MetricRule` definitions, each one mapping a selected method to one * or more metrics. * Used by metric-based quotas only. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Quota::initOnce(); parent::__construct($data); } /** * List of `QuotaLimit` definitions for the service. * Used by metric-based quotas only. * * Generated from protobuf field repeated .google.api.QuotaLimit limits = 3; * @return \Google\Protobuf\Internal\RepeatedField */ public function getLimits() { return $this->limits; } /** * List of `QuotaLimit` definitions for the service. * Used by metric-based quotas only. * * Generated from protobuf field repeated .google.api.QuotaLimit limits = 3; * @param \Google\Api\QuotaLimit[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setLimits($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\QuotaLimit::class); $this->limits = $arr; return $this; } /** * List of `MetricRule` definitions, each one mapping a selected method to one * or more metrics. * Used by metric-based quotas only. * * Generated from protobuf field repeated .google.api.MetricRule metric_rules = 4; * @return \Google\Protobuf\Internal\RepeatedField */ public function getMetricRules() { return $this->metric_rules; } /** * List of `MetricRule` definitions, each one mapping a selected method to one * or more metrics. * Used by metric-based quotas only. * * Generated from protobuf field repeated .google.api.MetricRule metric_rules = 4; * @param \Google\Api\MetricRule[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setMetricRules($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\MetricRule::class); $this->metric_rules = $arr; return $this; } } src/Api/QuotaLimit.php000064400000105215151742727570010672 0ustar00google.api.QuotaLimit */ class QuotaLimit extends \Google\Protobuf\Internal\Message { /** * Name of the quota limit. The name is used to refer to the limit when * overriding the default limit on per-consumer basis. * For group-based quota limits, the name must be unique within the quota * group. If a name is not provided, it will be generated from the limit_by * and duration fields. * For metric-based quota limits, the name must be provided, and it must be * unique within the service. The name can only include alphanumeric * characters as well as '-'. * The maximum length of the limit name is 64 characters. * The name of a limit is used as a unique identifier for this limit. * Therefore, once a limit has been put into use, its name should be * immutable. You can use the display_name field to provide a user-friendly * name for the limit. The display name can be evolved over time without * affecting the identity of the limit. * * Generated from protobuf field string name = 6; */ private $name = ''; /** * Optional. User-visible, extended description for this quota limit. * Should be used only when more context is needed to understand this limit * than provided by the limit's display name (see: `display_name`). * * Generated from protobuf field string description = 2; */ private $description = ''; /** * Default number of tokens that can be consumed during the specified * duration. This is the number of tokens assigned when a client * application developer activates the service for his/her project. * Specifying a value of 0 will block all requests. This can be used if you * are provisioning quota to selected consumers and blocking others. * Similarly, a value of -1 will indicate an unlimited quota. No other * negative values are allowed. * Used by group-based quotas only. * * Generated from protobuf field int64 default_limit = 3; */ private $default_limit = 0; /** * Maximum number of tokens that can be consumed during the specified * duration. Client application developers can override the default limit up * to this maximum. If specified, this value cannot be set to a value less * than the default limit. If not specified, it is set to the default limit. * To allow clients to apply overrides with no upper bound, set this to -1, * indicating unlimited maximum quota. * Used by group-based quotas only. * * Generated from protobuf field int64 max_limit = 4; */ private $max_limit = 0; /** * Free tier value displayed in the Developers Console for this limit. * The free tier is the number of tokens that will be subtracted from the * billed amount when billing is enabled. * This field can only be set on a limit with duration "1d", in a billable * group; it is invalid on any other limit. If this field is not set, it * defaults to 0, indicating that there is no free tier for this service. * Used by group-based quotas only. * * Generated from protobuf field int64 free_tier = 7; */ private $free_tier = 0; /** * Duration of this limit in textual notation. Example: "100s", "24h", "1d". * For duration longer than a day, only multiple of days is supported. We * support only "100s" and "1d" for now. Additional support will be added in * the future. "0" indicates indefinite duration. * Used by group-based quotas only. * * Generated from protobuf field string duration = 5; */ private $duration = ''; /** * The name of the metric this quota limit applies to. The quota limits with * the same metric will be checked together during runtime. The metric must be * defined within the service config. * Used by metric-based quotas only. * * Generated from protobuf field string metric = 8; */ private $metric = ''; /** * Specify the unit of the quota limit. It uses the same syntax as * [Metric.unit][]. The supported unit kinds are determined by the quota * backend system. * The [Google Service Control](https://cloud.google.com/service-control) * supports the following unit components: * * One of the time intevals: * * "/min" for quota every minute. * * "/d" for quota every 24 hours, starting 00:00 US Pacific Time. * * Otherwise the quota won't be reset by time, such as storage limit. * * One and only one of the granted containers: * * "/{organization}" quota for an organization. * * "/{project}" quota for a project. * * "/{folder}" quota for a folder. * * "/{resource}" quota for a universal resource. * * Zero or more quota segmentation dimension. Not all combos are valid. * * "/{region}" quota for every region. Not to be used with time intervals. * * Otherwise the resources granted on the target is not segmented. * * "/{zone}" quota for every zone. Not to be used with time intervals. * * Otherwise the resources granted on the target is not segmented. * * "/{resource}" quota for a resource associated with a project or org. * Here are some examples: * * "1/min/{project}" for quota per minute per project. * * "1/min/{user}" for quota per minute per user. * * "1/min/{organization}" for quota per minute per organization. * Note: the order of unit components is insignificant. * The "1" at the beginning is required to follow the metric unit syntax. * Used by metric-based quotas only. * * Generated from protobuf field string unit = 9; */ private $unit = ''; /** * Tiered limit values. Also allows for regional or zone overrides for these * values if "/{region}" or "/{zone}" is specified in the unit field. * Currently supported tiers from low to high: * VERY_LOW, LOW, STANDARD, HIGH, VERY_HIGH * To apply different limit values for users according to their tiers, specify * the values for the tiers you want to differentiate. For example: * {LOW:100, STANDARD:500, HIGH:1000, VERY_HIGH:5000} * The limit value for each tier is optional except for the tier STANDARD. * The limit value for an unspecified tier falls to the value of its next * tier towards tier STANDARD. For the above example, the limit value for tier * STANDARD is 500. * To apply the same limit value for all users, just specify limit value for * tier STANDARD. For example: {STANDARD:500}. * To apply a regional overide for a tier, add a map entry with key * "/", where is a region name. Similarly, for a zone * override, add a map entry with key "/{zone}". * Further, a wildcard can be used at the end of a zone name in order to * specify zone level overrides. For example: * LOW: 10, STANDARD: 50, HIGH: 100, * LOW/us-central1: 20, STANDARD/us-central1: 60, HIGH/us-central1: 200, * LOW/us-central1-*: 10, STANDARD/us-central1-*: 20, HIGH/us-central1-*: 80 * The regional overrides tier set for each region must be the same as * the tier set for default limit values. Same rule applies for zone overrides * tier as well. * Used by metric-based quotas only. * * Generated from protobuf field map values = 10; */ private $values; /** * User-visible display name for this limit. * Optional. If not set, the UI will provide a default display name based on * the quota configuration. This field can be used to override the default * display name generated from the configuration. * * Generated from protobuf field string display_name = 12; */ private $display_name = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $name * Name of the quota limit. The name is used to refer to the limit when * overriding the default limit on per-consumer basis. * For group-based quota limits, the name must be unique within the quota * group. If a name is not provided, it will be generated from the limit_by * and duration fields. * For metric-based quota limits, the name must be provided, and it must be * unique within the service. The name can only include alphanumeric * characters as well as '-'. * The maximum length of the limit name is 64 characters. * The name of a limit is used as a unique identifier for this limit. * Therefore, once a limit has been put into use, its name should be * immutable. You can use the display_name field to provide a user-friendly * name for the limit. The display name can be evolved over time without * affecting the identity of the limit. * @type string $description * Optional. User-visible, extended description for this quota limit. * Should be used only when more context is needed to understand this limit * than provided by the limit's display name (see: `display_name`). * @type int|string $default_limit * Default number of tokens that can be consumed during the specified * duration. This is the number of tokens assigned when a client * application developer activates the service for his/her project. * Specifying a value of 0 will block all requests. This can be used if you * are provisioning quota to selected consumers and blocking others. * Similarly, a value of -1 will indicate an unlimited quota. No other * negative values are allowed. * Used by group-based quotas only. * @type int|string $max_limit * Maximum number of tokens that can be consumed during the specified * duration. Client application developers can override the default limit up * to this maximum. If specified, this value cannot be set to a value less * than the default limit. If not specified, it is set to the default limit. * To allow clients to apply overrides with no upper bound, set this to -1, * indicating unlimited maximum quota. * Used by group-based quotas only. * @type int|string $free_tier * Free tier value displayed in the Developers Console for this limit. * The free tier is the number of tokens that will be subtracted from the * billed amount when billing is enabled. * This field can only be set on a limit with duration "1d", in a billable * group; it is invalid on any other limit. If this field is not set, it * defaults to 0, indicating that there is no free tier for this service. * Used by group-based quotas only. * @type string $duration * Duration of this limit in textual notation. Example: "100s", "24h", "1d". * For duration longer than a day, only multiple of days is supported. We * support only "100s" and "1d" for now. Additional support will be added in * the future. "0" indicates indefinite duration. * Used by group-based quotas only. * @type string $metric * The name of the metric this quota limit applies to. The quota limits with * the same metric will be checked together during runtime. The metric must be * defined within the service config. * Used by metric-based quotas only. * @type string $unit * Specify the unit of the quota limit. It uses the same syntax as * [Metric.unit][]. The supported unit kinds are determined by the quota * backend system. * The [Google Service Control](https://cloud.google.com/service-control) * supports the following unit components: * * One of the time intevals: * * "/min" for quota every minute. * * "/d" for quota every 24 hours, starting 00:00 US Pacific Time. * * Otherwise the quota won't be reset by time, such as storage limit. * * One and only one of the granted containers: * * "/{organization}" quota for an organization. * * "/{project}" quota for a project. * * "/{folder}" quota for a folder. * * "/{resource}" quota for a universal resource. * * Zero or more quota segmentation dimension. Not all combos are valid. * * "/{region}" quota for every region. Not to be used with time intervals. * * Otherwise the resources granted on the target is not segmented. * * "/{zone}" quota for every zone. Not to be used with time intervals. * * Otherwise the resources granted on the target is not segmented. * * "/{resource}" quota for a resource associated with a project or org. * Here are some examples: * * "1/min/{project}" for quota per minute per project. * * "1/min/{user}" for quota per minute per user. * * "1/min/{organization}" for quota per minute per organization. * Note: the order of unit components is insignificant. * The "1" at the beginning is required to follow the metric unit syntax. * Used by metric-based quotas only. * @type array|\Google\Protobuf\Internal\MapField $values * Tiered limit values. Also allows for regional or zone overrides for these * values if "/{region}" or "/{zone}" is specified in the unit field. * Currently supported tiers from low to high: * VERY_LOW, LOW, STANDARD, HIGH, VERY_HIGH * To apply different limit values for users according to their tiers, specify * the values for the tiers you want to differentiate. For example: * {LOW:100, STANDARD:500, HIGH:1000, VERY_HIGH:5000} * The limit value for each tier is optional except for the tier STANDARD. * The limit value for an unspecified tier falls to the value of its next * tier towards tier STANDARD. For the above example, the limit value for tier * STANDARD is 500. * To apply the same limit value for all users, just specify limit value for * tier STANDARD. For example: {STANDARD:500}. * To apply a regional overide for a tier, add a map entry with key * "/", where is a region name. Similarly, for a zone * override, add a map entry with key "/{zone}". * Further, a wildcard can be used at the end of a zone name in order to * specify zone level overrides. For example: * LOW: 10, STANDARD: 50, HIGH: 100, * LOW/us-central1: 20, STANDARD/us-central1: 60, HIGH/us-central1: 200, * LOW/us-central1-*: 10, STANDARD/us-central1-*: 20, HIGH/us-central1-*: 80 * The regional overrides tier set for each region must be the same as * the tier set for default limit values. Same rule applies for zone overrides * tier as well. * Used by metric-based quotas only. * @type string $display_name * User-visible display name for this limit. * Optional. If not set, the UI will provide a default display name based on * the quota configuration. This field can be used to override the default * display name generated from the configuration. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Quota::initOnce(); parent::__construct($data); } /** * Name of the quota limit. The name is used to refer to the limit when * overriding the default limit on per-consumer basis. * For group-based quota limits, the name must be unique within the quota * group. If a name is not provided, it will be generated from the limit_by * and duration fields. * For metric-based quota limits, the name must be provided, and it must be * unique within the service. The name can only include alphanumeric * characters as well as '-'. * The maximum length of the limit name is 64 characters. * The name of a limit is used as a unique identifier for this limit. * Therefore, once a limit has been put into use, its name should be * immutable. You can use the display_name field to provide a user-friendly * name for the limit. The display name can be evolved over time without * affecting the identity of the limit. * * Generated from protobuf field string name = 6; * @return string */ public function getName() { return $this->name; } /** * Name of the quota limit. The name is used to refer to the limit when * overriding the default limit on per-consumer basis. * For group-based quota limits, the name must be unique within the quota * group. If a name is not provided, it will be generated from the limit_by * and duration fields. * For metric-based quota limits, the name must be provided, and it must be * unique within the service. The name can only include alphanumeric * characters as well as '-'. * The maximum length of the limit name is 64 characters. * The name of a limit is used as a unique identifier for this limit. * Therefore, once a limit has been put into use, its name should be * immutable. You can use the display_name field to provide a user-friendly * name for the limit. The display name can be evolved over time without * affecting the identity of the limit. * * Generated from protobuf field string name = 6; * @param string $var * @return $this */ public function setName($var) { GPBUtil::checkString($var, True); $this->name = $var; return $this; } /** * Optional. User-visible, extended description for this quota limit. * Should be used only when more context is needed to understand this limit * than provided by the limit's display name (see: `display_name`). * * Generated from protobuf field string description = 2; * @return string */ public function getDescription() { return $this->description; } /** * Optional. User-visible, extended description for this quota limit. * Should be used only when more context is needed to understand this limit * than provided by the limit's display name (see: `display_name`). * * Generated from protobuf field string description = 2; * @param string $var * @return $this */ public function setDescription($var) { GPBUtil::checkString($var, True); $this->description = $var; return $this; } /** * Default number of tokens that can be consumed during the specified * duration. This is the number of tokens assigned when a client * application developer activates the service for his/her project. * Specifying a value of 0 will block all requests. This can be used if you * are provisioning quota to selected consumers and blocking others. * Similarly, a value of -1 will indicate an unlimited quota. No other * negative values are allowed. * Used by group-based quotas only. * * Generated from protobuf field int64 default_limit = 3; * @return int|string */ public function getDefaultLimit() { return $this->default_limit; } /** * Default number of tokens that can be consumed during the specified * duration. This is the number of tokens assigned when a client * application developer activates the service for his/her project. * Specifying a value of 0 will block all requests. This can be used if you * are provisioning quota to selected consumers and blocking others. * Similarly, a value of -1 will indicate an unlimited quota. No other * negative values are allowed. * Used by group-based quotas only. * * Generated from protobuf field int64 default_limit = 3; * @param int|string $var * @return $this */ public function setDefaultLimit($var) { GPBUtil::checkInt64($var); $this->default_limit = $var; return $this; } /** * Maximum number of tokens that can be consumed during the specified * duration. Client application developers can override the default limit up * to this maximum. If specified, this value cannot be set to a value less * than the default limit. If not specified, it is set to the default limit. * To allow clients to apply overrides with no upper bound, set this to -1, * indicating unlimited maximum quota. * Used by group-based quotas only. * * Generated from protobuf field int64 max_limit = 4; * @return int|string */ public function getMaxLimit() { return $this->max_limit; } /** * Maximum number of tokens that can be consumed during the specified * duration. Client application developers can override the default limit up * to this maximum. If specified, this value cannot be set to a value less * than the default limit. If not specified, it is set to the default limit. * To allow clients to apply overrides with no upper bound, set this to -1, * indicating unlimited maximum quota. * Used by group-based quotas only. * * Generated from protobuf field int64 max_limit = 4; * @param int|string $var * @return $this */ public function setMaxLimit($var) { GPBUtil::checkInt64($var); $this->max_limit = $var; return $this; } /** * Free tier value displayed in the Developers Console for this limit. * The free tier is the number of tokens that will be subtracted from the * billed amount when billing is enabled. * This field can only be set on a limit with duration "1d", in a billable * group; it is invalid on any other limit. If this field is not set, it * defaults to 0, indicating that there is no free tier for this service. * Used by group-based quotas only. * * Generated from protobuf field int64 free_tier = 7; * @return int|string */ public function getFreeTier() { return $this->free_tier; } /** * Free tier value displayed in the Developers Console for this limit. * The free tier is the number of tokens that will be subtracted from the * billed amount when billing is enabled. * This field can only be set on a limit with duration "1d", in a billable * group; it is invalid on any other limit. If this field is not set, it * defaults to 0, indicating that there is no free tier for this service. * Used by group-based quotas only. * * Generated from protobuf field int64 free_tier = 7; * @param int|string $var * @return $this */ public function setFreeTier($var) { GPBUtil::checkInt64($var); $this->free_tier = $var; return $this; } /** * Duration of this limit in textual notation. Example: "100s", "24h", "1d". * For duration longer than a day, only multiple of days is supported. We * support only "100s" and "1d" for now. Additional support will be added in * the future. "0" indicates indefinite duration. * Used by group-based quotas only. * * Generated from protobuf field string duration = 5; * @return string */ public function getDuration() { return $this->duration; } /** * Duration of this limit in textual notation. Example: "100s", "24h", "1d". * For duration longer than a day, only multiple of days is supported. We * support only "100s" and "1d" for now. Additional support will be added in * the future. "0" indicates indefinite duration. * Used by group-based quotas only. * * Generated from protobuf field string duration = 5; * @param string $var * @return $this */ public function setDuration($var) { GPBUtil::checkString($var, True); $this->duration = $var; return $this; } /** * The name of the metric this quota limit applies to. The quota limits with * the same metric will be checked together during runtime. The metric must be * defined within the service config. * Used by metric-based quotas only. * * Generated from protobuf field string metric = 8; * @return string */ public function getMetric() { return $this->metric; } /** * The name of the metric this quota limit applies to. The quota limits with * the same metric will be checked together during runtime. The metric must be * defined within the service config. * Used by metric-based quotas only. * * Generated from protobuf field string metric = 8; * @param string $var * @return $this */ public function setMetric($var) { GPBUtil::checkString($var, True); $this->metric = $var; return $this; } /** * Specify the unit of the quota limit. It uses the same syntax as * [Metric.unit][]. The supported unit kinds are determined by the quota * backend system. * The [Google Service Control](https://cloud.google.com/service-control) * supports the following unit components: * * One of the time intevals: * * "/min" for quota every minute. * * "/d" for quota every 24 hours, starting 00:00 US Pacific Time. * * Otherwise the quota won't be reset by time, such as storage limit. * * One and only one of the granted containers: * * "/{organization}" quota for an organization. * * "/{project}" quota for a project. * * "/{folder}" quota for a folder. * * "/{resource}" quota for a universal resource. * * Zero or more quota segmentation dimension. Not all combos are valid. * * "/{region}" quota for every region. Not to be used with time intervals. * * Otherwise the resources granted on the target is not segmented. * * "/{zone}" quota for every zone. Not to be used with time intervals. * * Otherwise the resources granted on the target is not segmented. * * "/{resource}" quota for a resource associated with a project or org. * Here are some examples: * * "1/min/{project}" for quota per minute per project. * * "1/min/{user}" for quota per minute per user. * * "1/min/{organization}" for quota per minute per organization. * Note: the order of unit components is insignificant. * The "1" at the beginning is required to follow the metric unit syntax. * Used by metric-based quotas only. * * Generated from protobuf field string unit = 9; * @return string */ public function getUnit() { return $this->unit; } /** * Specify the unit of the quota limit. It uses the same syntax as * [Metric.unit][]. The supported unit kinds are determined by the quota * backend system. * The [Google Service Control](https://cloud.google.com/service-control) * supports the following unit components: * * One of the time intevals: * * "/min" for quota every minute. * * "/d" for quota every 24 hours, starting 00:00 US Pacific Time. * * Otherwise the quota won't be reset by time, such as storage limit. * * One and only one of the granted containers: * * "/{organization}" quota for an organization. * * "/{project}" quota for a project. * * "/{folder}" quota for a folder. * * "/{resource}" quota for a universal resource. * * Zero or more quota segmentation dimension. Not all combos are valid. * * "/{region}" quota for every region. Not to be used with time intervals. * * Otherwise the resources granted on the target is not segmented. * * "/{zone}" quota for every zone. Not to be used with time intervals. * * Otherwise the resources granted on the target is not segmented. * * "/{resource}" quota for a resource associated with a project or org. * Here are some examples: * * "1/min/{project}" for quota per minute per project. * * "1/min/{user}" for quota per minute per user. * * "1/min/{organization}" for quota per minute per organization. * Note: the order of unit components is insignificant. * The "1" at the beginning is required to follow the metric unit syntax. * Used by metric-based quotas only. * * Generated from protobuf field string unit = 9; * @param string $var * @return $this */ public function setUnit($var) { GPBUtil::checkString($var, True); $this->unit = $var; return $this; } /** * Tiered limit values. Also allows for regional or zone overrides for these * values if "/{region}" or "/{zone}" is specified in the unit field. * Currently supported tiers from low to high: * VERY_LOW, LOW, STANDARD, HIGH, VERY_HIGH * To apply different limit values for users according to their tiers, specify * the values for the tiers you want to differentiate. For example: * {LOW:100, STANDARD:500, HIGH:1000, VERY_HIGH:5000} * The limit value for each tier is optional except for the tier STANDARD. * The limit value for an unspecified tier falls to the value of its next * tier towards tier STANDARD. For the above example, the limit value for tier * STANDARD is 500. * To apply the same limit value for all users, just specify limit value for * tier STANDARD. For example: {STANDARD:500}. * To apply a regional overide for a tier, add a map entry with key * "/", where is a region name. Similarly, for a zone * override, add a map entry with key "/{zone}". * Further, a wildcard can be used at the end of a zone name in order to * specify zone level overrides. For example: * LOW: 10, STANDARD: 50, HIGH: 100, * LOW/us-central1: 20, STANDARD/us-central1: 60, HIGH/us-central1: 200, * LOW/us-central1-*: 10, STANDARD/us-central1-*: 20, HIGH/us-central1-*: 80 * The regional overrides tier set for each region must be the same as * the tier set for default limit values. Same rule applies for zone overrides * tier as well. * Used by metric-based quotas only. * * Generated from protobuf field map values = 10; * @return \Google\Protobuf\Internal\MapField */ public function getValues() { return $this->values; } /** * Tiered limit values. Also allows for regional or zone overrides for these * values if "/{region}" or "/{zone}" is specified in the unit field. * Currently supported tiers from low to high: * VERY_LOW, LOW, STANDARD, HIGH, VERY_HIGH * To apply different limit values for users according to their tiers, specify * the values for the tiers you want to differentiate. For example: * {LOW:100, STANDARD:500, HIGH:1000, VERY_HIGH:5000} * The limit value for each tier is optional except for the tier STANDARD. * The limit value for an unspecified tier falls to the value of its next * tier towards tier STANDARD. For the above example, the limit value for tier * STANDARD is 500. * To apply the same limit value for all users, just specify limit value for * tier STANDARD. For example: {STANDARD:500}. * To apply a regional overide for a tier, add a map entry with key * "/", where is a region name. Similarly, for a zone * override, add a map entry with key "/{zone}". * Further, a wildcard can be used at the end of a zone name in order to * specify zone level overrides. For example: * LOW: 10, STANDARD: 50, HIGH: 100, * LOW/us-central1: 20, STANDARD/us-central1: 60, HIGH/us-central1: 200, * LOW/us-central1-*: 10, STANDARD/us-central1-*: 20, HIGH/us-central1-*: 80 * The regional overrides tier set for each region must be the same as * the tier set for default limit values. Same rule applies for zone overrides * tier as well. * Used by metric-based quotas only. * * Generated from protobuf field map values = 10; * @param array|\Google\Protobuf\Internal\MapField $var * @return $this */ public function setValues($var) { $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::INT64); $this->values = $arr; return $this; } /** * User-visible display name for this limit. * Optional. If not set, the UI will provide a default display name based on * the quota configuration. This field can be used to override the default * display name generated from the configuration. * * Generated from protobuf field string display_name = 12; * @return string */ public function getDisplayName() { return $this->display_name; } /** * User-visible display name for this limit. * Optional. If not set, the UI will provide a default display name based on * the quota configuration. This field can be used to override the default * display name generated from the configuration. * * Generated from protobuf field string display_name = 12; * @param string $var * @return $this */ public function setDisplayName($var) { GPBUtil::checkString($var, True); $this->display_name = $var; return $this; } } src/Api/ResourceDescriptor.php000064400000047020151742727570012427 0ustar00google.api.ResourceDescriptor */ class ResourceDescriptor extends \Google\Protobuf\Internal\Message { /** * The resource type. It must be in the format of * {service_name}/{resource_type_kind}. The `resource_type_kind` must be * singular and must not include version numbers. * Example: `storage.googleapis.com/Bucket` * The value of the resource_type_kind must follow the regular expression * /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and * should use PascalCase (UpperCamelCase). The maximum number of * characters allowed for the `resource_type_kind` is 100. * * Generated from protobuf field string type = 1; */ private $type = ''; /** * Optional. The relative resource name pattern associated with this resource * type. The DNS prefix of the full resource name shouldn't be specified here. * The path pattern must follow the syntax, which aligns with HTTP binding * syntax: * Template = Segment { "/" Segment } ; * Segment = LITERAL | Variable ; * Variable = "{" LITERAL "}" ; * Examples: * - "projects/{project}/topics/{topic}" * - "projects/{project}/knowledgeBases/{knowledge_base}" * The components in braces correspond to the IDs for each resource in the * hierarchy. It is expected that, if multiple patterns are provided, * the same component name (e.g. "project") refers to IDs of the same * type of resource. * * Generated from protobuf field repeated string pattern = 2; */ private $pattern; /** * Optional. The field on the resource that designates the resource name * field. If omitted, this is assumed to be "name". * * Generated from protobuf field string name_field = 3; */ private $name_field = ''; /** * Optional. The historical or future-looking state of the resource pattern. * Example: * // The InspectTemplate message originally only supported resource * // names with organization, and project was added later. * message InspectTemplate { * option (google.api.resource) = { * type: "dlp.googleapis.com/InspectTemplate" * pattern: * "organizations/{organization}/inspectTemplates/{inspect_template}" * pattern: "projects/{project}/inspectTemplates/{inspect_template}" * history: ORIGINALLY_SINGLE_PATTERN * }; * } * * Generated from protobuf field .google.api.ResourceDescriptor.History history = 4; */ private $history = 0; /** * The plural name used in the resource name, such as 'projects' for * the name of 'projects/{project}'. It is the same concept of the `plural` * field in k8s CRD spec * https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ * * Generated from protobuf field string plural = 5; */ private $plural = ''; /** * The same concept of the `singular` field in k8s CRD spec * https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ * Such as "project" for the `resourcemanager.googleapis.com/Project` type. * * Generated from protobuf field string singular = 6; */ private $singular = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $type * The resource type. It must be in the format of * {service_name}/{resource_type_kind}. The `resource_type_kind` must be * singular and must not include version numbers. * Example: `storage.googleapis.com/Bucket` * The value of the resource_type_kind must follow the regular expression * /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and * should use PascalCase (UpperCamelCase). The maximum number of * characters allowed for the `resource_type_kind` is 100. * @type string[]|\Google\Protobuf\Internal\RepeatedField $pattern * Optional. The relative resource name pattern associated with this resource * type. The DNS prefix of the full resource name shouldn't be specified here. * The path pattern must follow the syntax, which aligns with HTTP binding * syntax: * Template = Segment { "/" Segment } ; * Segment = LITERAL | Variable ; * Variable = "{" LITERAL "}" ; * Examples: * - "projects/{project}/topics/{topic}" * - "projects/{project}/knowledgeBases/{knowledge_base}" * The components in braces correspond to the IDs for each resource in the * hierarchy. It is expected that, if multiple patterns are provided, * the same component name (e.g. "project") refers to IDs of the same * type of resource. * @type string $name_field * Optional. The field on the resource that designates the resource name * field. If omitted, this is assumed to be "name". * @type int $history * Optional. The historical or future-looking state of the resource pattern. * Example: * // The InspectTemplate message originally only supported resource * // names with organization, and project was added later. * message InspectTemplate { * option (google.api.resource) = { * type: "dlp.googleapis.com/InspectTemplate" * pattern: * "organizations/{organization}/inspectTemplates/{inspect_template}" * pattern: "projects/{project}/inspectTemplates/{inspect_template}" * history: ORIGINALLY_SINGLE_PATTERN * }; * } * @type string $plural * The plural name used in the resource name, such as 'projects' for * the name of 'projects/{project}'. It is the same concept of the `plural` * field in k8s CRD spec * https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ * @type string $singular * The same concept of the `singular` field in k8s CRD spec * https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ * Such as "project" for the `resourcemanager.googleapis.com/Project` type. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Resource::initOnce(); parent::__construct($data); } /** * The resource type. It must be in the format of * {service_name}/{resource_type_kind}. The `resource_type_kind` must be * singular and must not include version numbers. * Example: `storage.googleapis.com/Bucket` * The value of the resource_type_kind must follow the regular expression * /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and * should use PascalCase (UpperCamelCase). The maximum number of * characters allowed for the `resource_type_kind` is 100. * * Generated from protobuf field string type = 1; * @return string */ public function getType() { return $this->type; } /** * The resource type. It must be in the format of * {service_name}/{resource_type_kind}. The `resource_type_kind` must be * singular and must not include version numbers. * Example: `storage.googleapis.com/Bucket` * The value of the resource_type_kind must follow the regular expression * /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and * should use PascalCase (UpperCamelCase). The maximum number of * characters allowed for the `resource_type_kind` is 100. * * Generated from protobuf field string type = 1; * @param string $var * @return $this */ public function setType($var) { GPBUtil::checkString($var, True); $this->type = $var; return $this; } /** * Optional. The relative resource name pattern associated with this resource * type. The DNS prefix of the full resource name shouldn't be specified here. * The path pattern must follow the syntax, which aligns with HTTP binding * syntax: * Template = Segment { "/" Segment } ; * Segment = LITERAL | Variable ; * Variable = "{" LITERAL "}" ; * Examples: * - "projects/{project}/topics/{topic}" * - "projects/{project}/knowledgeBases/{knowledge_base}" * The components in braces correspond to the IDs for each resource in the * hierarchy. It is expected that, if multiple patterns are provided, * the same component name (e.g. "project") refers to IDs of the same * type of resource. * * Generated from protobuf field repeated string pattern = 2; * @return \Google\Protobuf\Internal\RepeatedField */ public function getPattern() { return $this->pattern; } /** * Optional. The relative resource name pattern associated with this resource * type. The DNS prefix of the full resource name shouldn't be specified here. * The path pattern must follow the syntax, which aligns with HTTP binding * syntax: * Template = Segment { "/" Segment } ; * Segment = LITERAL | Variable ; * Variable = "{" LITERAL "}" ; * Examples: * - "projects/{project}/topics/{topic}" * - "projects/{project}/knowledgeBases/{knowledge_base}" * The components in braces correspond to the IDs for each resource in the * hierarchy. It is expected that, if multiple patterns are provided, * the same component name (e.g. "project") refers to IDs of the same * type of resource. * * Generated from protobuf field repeated string pattern = 2; * @param string[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setPattern($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); $this->pattern = $arr; return $this; } /** * Optional. The field on the resource that designates the resource name * field. If omitted, this is assumed to be "name". * * Generated from protobuf field string name_field = 3; * @return string */ public function getNameField() { return $this->name_field; } /** * Optional. The field on the resource that designates the resource name * field. If omitted, this is assumed to be "name". * * Generated from protobuf field string name_field = 3; * @param string $var * @return $this */ public function setNameField($var) { GPBUtil::checkString($var, True); $this->name_field = $var; return $this; } /** * Optional. The historical or future-looking state of the resource pattern. * Example: * // The InspectTemplate message originally only supported resource * // names with organization, and project was added later. * message InspectTemplate { * option (google.api.resource) = { * type: "dlp.googleapis.com/InspectTemplate" * pattern: * "organizations/{organization}/inspectTemplates/{inspect_template}" * pattern: "projects/{project}/inspectTemplates/{inspect_template}" * history: ORIGINALLY_SINGLE_PATTERN * }; * } * * Generated from protobuf field .google.api.ResourceDescriptor.History history = 4; * @return int */ public function getHistory() { return $this->history; } /** * Optional. The historical or future-looking state of the resource pattern. * Example: * // The InspectTemplate message originally only supported resource * // names with organization, and project was added later. * message InspectTemplate { * option (google.api.resource) = { * type: "dlp.googleapis.com/InspectTemplate" * pattern: * "organizations/{organization}/inspectTemplates/{inspect_template}" * pattern: "projects/{project}/inspectTemplates/{inspect_template}" * history: ORIGINALLY_SINGLE_PATTERN * }; * } * * Generated from protobuf field .google.api.ResourceDescriptor.History history = 4; * @param int $var * @return $this */ public function setHistory($var) { GPBUtil::checkEnum($var, \Google\Api\ResourceDescriptor_History::class); $this->history = $var; return $this; } /** * The plural name used in the resource name, such as 'projects' for * the name of 'projects/{project}'. It is the same concept of the `plural` * field in k8s CRD spec * https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ * * Generated from protobuf field string plural = 5; * @return string */ public function getPlural() { return $this->plural; } /** * The plural name used in the resource name, such as 'projects' for * the name of 'projects/{project}'. It is the same concept of the `plural` * field in k8s CRD spec * https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ * * Generated from protobuf field string plural = 5; * @param string $var * @return $this */ public function setPlural($var) { GPBUtil::checkString($var, True); $this->plural = $var; return $this; } /** * The same concept of the `singular` field in k8s CRD spec * https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ * Such as "project" for the `resourcemanager.googleapis.com/Project` type. * * Generated from protobuf field string singular = 6; * @return string */ public function getSingular() { return $this->singular; } /** * The same concept of the `singular` field in k8s CRD spec * https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ * Such as "project" for the `resourcemanager.googleapis.com/Project` type. * * Generated from protobuf field string singular = 6; * @param string $var * @return $this */ public function setSingular($var) { GPBUtil::checkString($var, True); $this->singular = $var; return $this; } } src/Api/ResourceDescriptor/History.php000064400000004151151742727570014066 0ustar00google.api.ResourceDescriptor.History */ class History { /** * The "unset" value. * * Generated from protobuf enum HISTORY_UNSPECIFIED = 0; */ const HISTORY_UNSPECIFIED = 0; /** * The resource originally had one pattern and launched as such, and * additional patterns were added later. * * Generated from protobuf enum ORIGINALLY_SINGLE_PATTERN = 1; */ const ORIGINALLY_SINGLE_PATTERN = 1; /** * The resource has one pattern, but the API owner expects to add more * later. (This is the inverse of ORIGINALLY_SINGLE_PATTERN, and prevents * that from being necessary once there are multiple patterns.) * * Generated from protobuf enum FUTURE_MULTI_PATTERN = 2; */ const FUTURE_MULTI_PATTERN = 2; private static $valueToName = [ self::HISTORY_UNSPECIFIED => 'HISTORY_UNSPECIFIED', self::ORIGINALLY_SINGLE_PATTERN => 'ORIGINALLY_SINGLE_PATTERN', self::FUTURE_MULTI_PATTERN => 'FUTURE_MULTI_PATTERN', ]; public static function name($value) { if (!isset(self::$valueToName[$value])) { throw new UnexpectedValueException(sprintf( 'Enum %s has no name defined for value %s', __CLASS__, $value)); } return self::$valueToName[$value]; } public static function value($name) { $const = __CLASS__ . '::' . strtoupper($name); if (!defined($const)) { throw new UnexpectedValueException(sprintf( 'Enum %s has no value defined for name %s', __CLASS__, $name)); } return constant($const); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(History::class, \Google\Api\ResourceDescriptor_History::class); src/Api/ResourceDescriptor_History.php000064400000001030151742727570014137 0ustar00google.api.ResourceReference */ class ResourceReference extends \Google\Protobuf\Internal\Message { /** * The resource type that the annotated field references. * Example: * message Subscription { * string topic = 2 [(google.api.resource_reference) = { * type: "pubsub.googleapis.com/Topic" * }]; * } * * Generated from protobuf field string type = 1; */ private $type = ''; /** * The resource type of a child collection that the annotated field * references. This is useful for annotating the `parent` field that * doesn't have a fixed resource type. * Example: * message ListLogEntriesRequest { * string parent = 1 [(google.api.resource_reference) = { * child_type: "logging.googleapis.com/LogEntry" * }; * } * * Generated from protobuf field string child_type = 2; */ private $child_type = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $type * The resource type that the annotated field references. * Example: * message Subscription { * string topic = 2 [(google.api.resource_reference) = { * type: "pubsub.googleapis.com/Topic" * }]; * } * @type string $child_type * The resource type of a child collection that the annotated field * references. This is useful for annotating the `parent` field that * doesn't have a fixed resource type. * Example: * message ListLogEntriesRequest { * string parent = 1 [(google.api.resource_reference) = { * child_type: "logging.googleapis.com/LogEntry" * }; * } * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Resource::initOnce(); parent::__construct($data); } /** * The resource type that the annotated field references. * Example: * message Subscription { * string topic = 2 [(google.api.resource_reference) = { * type: "pubsub.googleapis.com/Topic" * }]; * } * * Generated from protobuf field string type = 1; * @return string */ public function getType() { return $this->type; } /** * The resource type that the annotated field references. * Example: * message Subscription { * string topic = 2 [(google.api.resource_reference) = { * type: "pubsub.googleapis.com/Topic" * }]; * } * * Generated from protobuf field string type = 1; * @param string $var * @return $this */ public function setType($var) { GPBUtil::checkString($var, True); $this->type = $var; return $this; } /** * The resource type of a child collection that the annotated field * references. This is useful for annotating the `parent` field that * doesn't have a fixed resource type. * Example: * message ListLogEntriesRequest { * string parent = 1 [(google.api.resource_reference) = { * child_type: "logging.googleapis.com/LogEntry" * }; * } * * Generated from protobuf field string child_type = 2; * @return string */ public function getChildType() { return $this->child_type; } /** * The resource type of a child collection that the annotated field * references. This is useful for annotating the `parent` field that * doesn't have a fixed resource type. * Example: * message ListLogEntriesRequest { * string parent = 1 [(google.api.resource_reference) = { * child_type: "logging.googleapis.com/LogEntry" * }; * } * * Generated from protobuf field string child_type = 2; * @param string $var * @return $this */ public function setChildType($var) { GPBUtil::checkString($var, True); $this->child_type = $var; return $this; } } src/Api/RoutingParameter.php000064400000031703151742727570012072 0ustar00google.api.RoutingParameter */ class RoutingParameter extends \Google\Protobuf\Internal\Message { /** * A request field to extract the header key-value pair from. * * Generated from protobuf field string field = 1; */ protected $field = ''; /** * A pattern matching the key-value field. Optional. * If not specified, the whole field specified in the `field` field will be * taken as value, and its name used as key. If specified, it MUST contain * exactly one named segment (along with any number of unnamed segments) The * pattern will be matched over the field specified in the `field` field, then * if the match is successful: * - the name of the single named segment will be used as a header name, * - the match value of the segment will be used as a header value; * if the match is NOT successful, nothing will be sent. * Example: * -- This is a field in the request message * | that the header value will be extracted from. * | * | -- This is the key name in the * | | routing header. * V | * field: "table_name" v * path_template: "projects/*/{table_location=instances/*}/tables/*" * ^ ^ * | | * In the {} brackets is the pattern that -- | * specifies what to extract from the | * field as a value to be sent. | * | * The string in the field must match the whole pattern -- * before brackets, inside brackets, after brackets. * When looking at this specific example, we can see that: * - A key-value pair with the key `table_location` * and the value matching `instances/*` should be added * to the x-goog-request-params routing header. * - The value is extracted from the request message's `table_name` field * if it matches the full pattern specified: * `projects/*/instances/*/tables/*`. * **NB:** If the `path_template` field is not provided, the key name is * equal to the field name, and the whole field should be sent as a value. * This makes the pattern for the field and the value functionally equivalent * to `**`, and the configuration * { * field: "table_name" * } * is a functionally equivalent shorthand to: * { * field: "table_name" * path_template: "{table_name=**}" * } * See Example 1 for more details. * * Generated from protobuf field string path_template = 2; */ protected $path_template = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $field * A request field to extract the header key-value pair from. * @type string $path_template * A pattern matching the key-value field. Optional. * If not specified, the whole field specified in the `field` field will be * taken as value, and its name used as key. If specified, it MUST contain * exactly one named segment (along with any number of unnamed segments) The * pattern will be matched over the field specified in the `field` field, then * if the match is successful: * - the name of the single named segment will be used as a header name, * - the match value of the segment will be used as a header value; * if the match is NOT successful, nothing will be sent. * Example: * -- This is a field in the request message * | that the header value will be extracted from. * | * | -- This is the key name in the * | | routing header. * V | * field: "table_name" v * path_template: "projects/*/{table_location=instances/*}/tables/*" * ^ ^ * | | * In the {} brackets is the pattern that -- | * specifies what to extract from the | * field as a value to be sent. | * | * The string in the field must match the whole pattern -- * before brackets, inside brackets, after brackets. * When looking at this specific example, we can see that: * - A key-value pair with the key `table_location` * and the value matching `instances/*` should be added * to the x-goog-request-params routing header. * - The value is extracted from the request message's `table_name` field * if it matches the full pattern specified: * `projects/*/instances/*/tables/*`. * **NB:** If the `path_template` field is not provided, the key name is * equal to the field name, and the whole field should be sent as a value. * This makes the pattern for the field and the value functionally equivalent * to `**`, and the configuration * { * field: "table_name" * } * is a functionally equivalent shorthand to: * { * field: "table_name" * path_template: "{table_name=**}" * } * See Example 1 for more details. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Routing::initOnce(); parent::__construct($data); } /** * A request field to extract the header key-value pair from. * * Generated from protobuf field string field = 1; * @return string */ public function getField() { return $this->field; } /** * A request field to extract the header key-value pair from. * * Generated from protobuf field string field = 1; * @param string $var * @return $this */ public function setField($var) { GPBUtil::checkString($var, True); $this->field = $var; return $this; } /** * A pattern matching the key-value field. Optional. * If not specified, the whole field specified in the `field` field will be * taken as value, and its name used as key. If specified, it MUST contain * exactly one named segment (along with any number of unnamed segments) The * pattern will be matched over the field specified in the `field` field, then * if the match is successful: * - the name of the single named segment will be used as a header name, * - the match value of the segment will be used as a header value; * if the match is NOT successful, nothing will be sent. * Example: * -- This is a field in the request message * | that the header value will be extracted from. * | * | -- This is the key name in the * | | routing header. * V | * field: "table_name" v * path_template: "projects/*/{table_location=instances/*}/tables/*" * ^ ^ * | | * In the {} brackets is the pattern that -- | * specifies what to extract from the | * field as a value to be sent. | * | * The string in the field must match the whole pattern -- * before brackets, inside brackets, after brackets. * When looking at this specific example, we can see that: * - A key-value pair with the key `table_location` * and the value matching `instances/*` should be added * to the x-goog-request-params routing header. * - The value is extracted from the request message's `table_name` field * if it matches the full pattern specified: * `projects/*/instances/*/tables/*`. * **NB:** If the `path_template` field is not provided, the key name is * equal to the field name, and the whole field should be sent as a value. * This makes the pattern for the field and the value functionally equivalent * to `**`, and the configuration * { * field: "table_name" * } * is a functionally equivalent shorthand to: * { * field: "table_name" * path_template: "{table_name=**}" * } * See Example 1 for more details. * * Generated from protobuf field string path_template = 2; * @return string */ public function getPathTemplate() { return $this->path_template; } /** * A pattern matching the key-value field. Optional. * If not specified, the whole field specified in the `field` field will be * taken as value, and its name used as key. If specified, it MUST contain * exactly one named segment (along with any number of unnamed segments) The * pattern will be matched over the field specified in the `field` field, then * if the match is successful: * - the name of the single named segment will be used as a header name, * - the match value of the segment will be used as a header value; * if the match is NOT successful, nothing will be sent. * Example: * -- This is a field in the request message * | that the header value will be extracted from. * | * | -- This is the key name in the * | | routing header. * V | * field: "table_name" v * path_template: "projects/*/{table_location=instances/*}/tables/*" * ^ ^ * | | * In the {} brackets is the pattern that -- | * specifies what to extract from the | * field as a value to be sent. | * | * The string in the field must match the whole pattern -- * before brackets, inside brackets, after brackets. * When looking at this specific example, we can see that: * - A key-value pair with the key `table_location` * and the value matching `instances/*` should be added * to the x-goog-request-params routing header. * - The value is extracted from the request message's `table_name` field * if it matches the full pattern specified: * `projects/*/instances/*/tables/*`. * **NB:** If the `path_template` field is not provided, the key name is * equal to the field name, and the whole field should be sent as a value. * This makes the pattern for the field and the value functionally equivalent * to `**`, and the configuration * { * field: "table_name" * } * is a functionally equivalent shorthand to: * { * field: "table_name" * path_template: "{table_name=**}" * } * See Example 1 for more details. * * Generated from protobuf field string path_template = 2; * @param string $var * @return $this */ public function setPathTemplate($var) { GPBUtil::checkString($var, True); $this->path_template = $var; return $this; } } src/Api/RoutingRule.php000064400000033121151742727570011055 0ustar00/tables/` * // - `projects//instances//tables/
` * // - `region//zones//tables/
` * string table_name = 1; * // This value specifies routing for replication. * // It can be in the following formats: * // - `profiles/` * // - a legacy `profile_id` that can be any string * string app_profile_id = 2; * } * Example message: * { * table_name: projects/proj_foo/instances/instance_bar/table/table_baz, * app_profile_id: profiles/prof_qux * } * The routing header consists of one or multiple key-value pairs. Every key * and value must be percent-encoded, and joined together in the format of * `key1=value1&key2=value2`. * In the examples below I am skipping the percent-encoding for readablity. * Example 1 * Extracting a field from the request to put into the routing header * unchanged, with the key equal to the field name. * annotation: * option (google.api.routing) = { * // Take the `app_profile_id`. * routing_parameters { * field: "app_profile_id" * } * }; * result: * x-goog-request-params: app_profile_id=profiles/prof_qux * Example 2 * Extracting a field from the request to put into the routing header * unchanged, with the key different from the field name. * annotation: * option (google.api.routing) = { * // Take the `app_profile_id`, but name it `routing_id` in the header. * routing_parameters { * field: "app_profile_id" * path_template: "{routing_id=**}" * } * }; * result: * x-goog-request-params: routing_id=profiles/prof_qux * Example 3 * Extracting a field from the request to put into the routing * header, while matching a path template syntax on the field's value. * NB: it is more useful to send nothing than to send garbage for the purpose * of dynamic routing, since garbage pollutes cache. Thus the matching. * Sub-example 3a * The field matches the template. * annotation: * option (google.api.routing) = { * // Take the `table_name`, if it's well-formed (with project-based * // syntax). * routing_parameters { * field: "table_name" * path_template: "{table_name=projects/*/instances/*/**}" * } * }; * result: * x-goog-request-params: * table_name=projects/proj_foo/instances/instance_bar/table/table_baz * Sub-example 3b * The field does not match the template. * annotation: * option (google.api.routing) = { * // Take the `table_name`, if it's well-formed (with region-based * // syntax). * routing_parameters { * field: "table_name" * path_template: "{table_name=regions/*/zones/*/**}" * } * }; * result: * * Sub-example 3c * Multiple alternative conflictingly named path templates are * specified. The one that matches is used to construct the header. * annotation: * option (google.api.routing) = { * // Take the `table_name`, if it's well-formed, whether * // using the region- or projects-based syntax. * routing_parameters { * field: "table_name" * path_template: "{table_name=regions/*/zones/*/**}" * } * routing_parameters { * field: "table_name" * path_template: "{table_name=projects/*/instances/*/**}" * } * }; * result: * x-goog-request-params: * table_name=projects/proj_foo/instances/instance_bar/table/table_baz * Example 4 * Extracting a single routing header key-value pair by matching a * template syntax on (a part of) a single request field. * annotation: * option (google.api.routing) = { * // Take just the project id from the `table_name` field. * routing_parameters { * field: "table_name" * path_template: "{routing_id=projects/*}/**" * } * }; * result: * x-goog-request-params: routing_id=projects/proj_foo * Example 5 * Extracting a single routing header key-value pair by matching * several conflictingly named path templates on (parts of) a single request * field. The last template to match "wins" the conflict. * annotation: * option (google.api.routing) = { * // If the `table_name` does not have instances information, * // take just the project id for routing. * // Otherwise take project + instance. * routing_parameters { * field: "table_name" * path_template: "{routing_id=projects/*}/**" * } * routing_parameters { * field: "table_name" * path_template: "{routing_id=projects/*/instances/*}/**" * } * }; * result: * x-goog-request-params: * routing_id=projects/proj_foo/instances/instance_bar * Example 6 * Extracting multiple routing header key-value pairs by matching * several non-conflicting path templates on (parts of) a single request field. * Sub-example 6a * Make the templates strict, so that if the `table_name` does not * have an instance information, nothing is sent. * annotation: * option (google.api.routing) = { * // The routing code needs two keys instead of one composite * // but works only for the tables with the "project-instance" name * // syntax. * routing_parameters { * field: "table_name" * path_template: "{project_id=projects/*}/instances/*/**" * } * routing_parameters { * field: "table_name" * path_template: "projects/*/{instance_id=instances/*}/**" * } * }; * result: * x-goog-request-params: * project_id=projects/proj_foo&instance_id=instances/instance_bar * Sub-example 6b * Make the templates loose, so that if the `table_name` does not * have an instance information, just the project id part is sent. * annotation: * option (google.api.routing) = { * // The routing code wants two keys instead of one composite * // but will work with just the `project_id` for tables without * // an instance in the `table_name`. * routing_parameters { * field: "table_name" * path_template: "{project_id=projects/*}/**" * } * routing_parameters { * field: "table_name" * path_template: "projects/*/{instance_id=instances/*}/**" * } * }; * result (is the same as 6a for our example message because it has the instance * information): * x-goog-request-params: * project_id=projects/proj_foo&instance_id=instances/instance_bar * Example 7 * Extracting multiple routing header key-value pairs by matching * several path templates on multiple request fields. * NB: note that here there is no way to specify sending nothing if one of the * fields does not match its template. E.g. if the `table_name` is in the wrong * format, the `project_id` will not be sent, but the `routing_id` will be. * The backend routing code has to be aware of that and be prepared to not * receive a full complement of keys if it expects multiple. * annotation: * option (google.api.routing) = { * // The routing needs both `project_id` and `routing_id` * // (from the `app_profile_id` field) for routing. * routing_parameters { * field: "table_name" * path_template: "{project_id=projects/*}/**" * } * routing_parameters { * field: "app_profile_id" * path_template: "{routing_id=**}" * } * }; * result: * x-goog-request-params: * project_id=projects/proj_foo&routing_id=profiles/prof_qux * Example 8 * Extracting a single routing header key-value pair by matching * several conflictingly named path templates on several request fields. The * last template to match "wins" the conflict. * annotation: * option (google.api.routing) = { * // The `routing_id` can be a project id or a region id depending on * // the table name format, but only if the `app_profile_id` is not set. * // If `app_profile_id` is set it should be used instead. * routing_parameters { * field: "table_name" * path_template: "{routing_id=projects/*}/**" * } * routing_parameters { * field: "table_name" * path_template: "{routing_id=regions/*}/**" * } * routing_parameters { * field: "app_profile_id" * path_template: "{routing_id=**}" * } * }; * result: * x-goog-request-params: routing_id=profiles/prof_qux * Example 9 * Bringing it all together. * annotation: * option (google.api.routing) = { * // For routing both `table_location` and a `routing_id` are needed. * // * // table_location can be either an instance id or a region+zone id. * // * // For `routing_id`, take the value of `app_profile_id` * // - If it's in the format `profiles/`, send * // just the `` part. * // - If it's any other literal, send it as is. * // If the `app_profile_id` is empty, and the `table_name` starts with * // the project_id, send that instead. * routing_parameters { * field: "table_name" * path_template: "projects/*/{table_location=instances/*}/tables/*" * } * routing_parameters { * field: "table_name" * path_template: "{table_location=regions/*/zones/*}/tables/*" * } * routing_parameters { * field: "table_name" * path_template: "{routing_id=projects/*}/**" * } * routing_parameters { * field: "app_profile_id" * path_template: "{routing_id=**}" * } * routing_parameters { * field: "app_profile_id" * path_template: "profiles/{routing_id=*}" * } * }; * result: * x-goog-request-params: * table_location=instances/instance_bar&routing_id=prof_qux * * Generated from protobuf message google.api.RoutingRule */ class RoutingRule extends \Google\Protobuf\Internal\Message { /** * A collection of Routing Parameter specifications. * **NOTE:** If multiple Routing Parameters describe the same key * (via the `path_template` field or via the `field` field when * `path_template` is not provided), "last one wins" rule * determines which Parameter gets used. * See the examples for more details. * * Generated from protobuf field repeated .google.api.RoutingParameter routing_parameters = 2; */ private $routing_parameters; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Google\Api\RoutingParameter[]|\Google\Protobuf\Internal\RepeatedField $routing_parameters * A collection of Routing Parameter specifications. * **NOTE:** If multiple Routing Parameters describe the same key * (via the `path_template` field or via the `field` field when * `path_template` is not provided), "last one wins" rule * determines which Parameter gets used. * See the examples for more details. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Routing::initOnce(); parent::__construct($data); } /** * A collection of Routing Parameter specifications. * **NOTE:** If multiple Routing Parameters describe the same key * (via the `path_template` field or via the `field` field when * `path_template` is not provided), "last one wins" rule * determines which Parameter gets used. * See the examples for more details. * * Generated from protobuf field repeated .google.api.RoutingParameter routing_parameters = 2; * @return \Google\Protobuf\Internal\RepeatedField */ public function getRoutingParameters() { return $this->routing_parameters; } /** * A collection of Routing Parameter specifications. * **NOTE:** If multiple Routing Parameters describe the same key * (via the `path_template` field or via the `field` field when * `path_template` is not provided), "last one wins" rule * determines which Parameter gets used. * See the examples for more details. * * Generated from protobuf field repeated .google.api.RoutingParameter routing_parameters = 2; * @param \Google\Api\RoutingParameter[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setRoutingParameters($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\RoutingParameter::class); $this->routing_parameters = $arr; return $this; } } src/Api/Service.php000064400000103321151742727570010176 0ustar00google.api.Service */ class Service extends \Google\Protobuf\Internal\Message { /** * The semantic version of the service configuration. The config version * affects the interpretation of the service configuration. For example, * certain features are enabled by default for certain config versions. * The latest config version is `3`. * * Generated from protobuf field .google.protobuf.UInt32Value config_version = 20; */ private $config_version = null; /** * The DNS address at which this service is available, * e.g. `calendar.googleapis.com`. * * Generated from protobuf field string name = 1; */ private $name = ''; /** * A unique ID for a specific instance of this message, typically assigned * by the client for tracking purpose. If empty, the server may choose to * generate one instead. * * Generated from protobuf field string id = 33; */ private $id = ''; /** * The product title for this service. * * Generated from protobuf field string title = 2; */ private $title = ''; /** * The Google project that owns this service. * * Generated from protobuf field string producer_project_id = 22; */ private $producer_project_id = ''; /** * A list of API interfaces exported by this service. Only the `name` field * of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by the configuration * author, as the remaining fields will be derived from the IDL during the * normalization process. It is an error to specify an API interface here * which cannot be resolved against the associated IDL files. * * Generated from protobuf field repeated .google.protobuf.Api apis = 3; */ private $apis; /** * A list of all proto message types included in this API service. * Types referenced directly or indirectly by the `apis` are * automatically included. Messages which are not referenced but * shall be included, such as types used by the `google.protobuf.Any` type, * should be listed here by name. Example: * types: * - name: google.protobuf.Int32 * * Generated from protobuf field repeated .google.protobuf.Type types = 4; */ private $types; /** * A list of all enum types included in this API service. Enums * referenced directly or indirectly by the `apis` are automatically * included. Enums which are not referenced but shall be included * should be listed here by name. Example: * enums: * - name: google.someapi.v1.SomeEnum * * Generated from protobuf field repeated .google.protobuf.Enum enums = 5; */ private $enums; /** * Additional API documentation. * * Generated from protobuf field .google.api.Documentation documentation = 6; */ private $documentation = null; /** * API backend configuration. * * Generated from protobuf field .google.api.Backend backend = 8; */ private $backend = null; /** * HTTP configuration. * * Generated from protobuf field .google.api.Http http = 9; */ private $http = null; /** * Quota configuration. * * Generated from protobuf field .google.api.Quota quota = 10; */ private $quota = null; /** * Auth configuration. * * Generated from protobuf field .google.api.Authentication authentication = 11; */ private $authentication = null; /** * Context configuration. * * Generated from protobuf field .google.api.Context context = 12; */ private $context = null; /** * Configuration controlling usage of this service. * * Generated from protobuf field .google.api.Usage usage = 15; */ private $usage = null; /** * Configuration for network endpoints. If this is empty, then an endpoint * with the same name as the service is automatically generated to service all * defined APIs. * * Generated from protobuf field repeated .google.api.Endpoint endpoints = 18; */ private $endpoints; /** * Configuration for the service control plane. * * Generated from protobuf field .google.api.Control control = 21; */ private $control = null; /** * Defines the logs used by this service. * * Generated from protobuf field repeated .google.api.LogDescriptor logs = 23; */ private $logs; /** * Defines the metrics used by this service. * * Generated from protobuf field repeated .google.api.MetricDescriptor metrics = 24; */ private $metrics; /** * Defines the monitored resources used by this service. This is required * by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations. * * Generated from protobuf field repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25; */ private $monitored_resources; /** * Billing configuration. * * Generated from protobuf field .google.api.Billing billing = 26; */ private $billing = null; /** * Logging configuration. * * Generated from protobuf field .google.api.Logging logging = 27; */ private $logging = null; /** * Monitoring configuration. * * Generated from protobuf field .google.api.Monitoring monitoring = 28; */ private $monitoring = null; /** * System parameter configuration. * * Generated from protobuf field .google.api.SystemParameters system_parameters = 29; */ private $system_parameters = null; /** * Output only. The source information for this configuration if available. * * Generated from protobuf field .google.api.SourceInfo source_info = 37; */ private $source_info = null; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Google\Protobuf\UInt32Value $config_version * The semantic version of the service configuration. The config version * affects the interpretation of the service configuration. For example, * certain features are enabled by default for certain config versions. * The latest config version is `3`. * @type string $name * The DNS address at which this service is available, * e.g. `calendar.googleapis.com`. * @type string $id * A unique ID for a specific instance of this message, typically assigned * by the client for tracking purpose. If empty, the server may choose to * generate one instead. * @type string $title * The product title for this service. * @type string $producer_project_id * The Google project that owns this service. * @type \Google\Protobuf\Api[]|\Google\Protobuf\Internal\RepeatedField $apis * A list of API interfaces exported by this service. Only the `name` field * of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by the configuration * author, as the remaining fields will be derived from the IDL during the * normalization process. It is an error to specify an API interface here * which cannot be resolved against the associated IDL files. * @type \Google\Protobuf\Type[]|\Google\Protobuf\Internal\RepeatedField $types * A list of all proto message types included in this API service. * Types referenced directly or indirectly by the `apis` are * automatically included. Messages which are not referenced but * shall be included, such as types used by the `google.protobuf.Any` type, * should be listed here by name. Example: * types: * - name: google.protobuf.Int32 * @type \Google\Protobuf\Enum[]|\Google\Protobuf\Internal\RepeatedField $enums * A list of all enum types included in this API service. Enums * referenced directly or indirectly by the `apis` are automatically * included. Enums which are not referenced but shall be included * should be listed here by name. Example: * enums: * - name: google.someapi.v1.SomeEnum * @type \Google\Api\Documentation $documentation * Additional API documentation. * @type \Google\Api\Backend $backend * API backend configuration. * @type \Google\Api\Http $http * HTTP configuration. * @type \Google\Api\Quota $quota * Quota configuration. * @type \Google\Api\Authentication $authentication * Auth configuration. * @type \Google\Api\Context $context * Context configuration. * @type \Google\Api\Usage $usage * Configuration controlling usage of this service. * @type \Google\Api\Endpoint[]|\Google\Protobuf\Internal\RepeatedField $endpoints * Configuration for network endpoints. If this is empty, then an endpoint * with the same name as the service is automatically generated to service all * defined APIs. * @type \Google\Api\Control $control * Configuration for the service control plane. * @type \Google\Api\LogDescriptor[]|\Google\Protobuf\Internal\RepeatedField $logs * Defines the logs used by this service. * @type \Google\Api\MetricDescriptor[]|\Google\Protobuf\Internal\RepeatedField $metrics * Defines the metrics used by this service. * @type \Google\Api\MonitoredResourceDescriptor[]|\Google\Protobuf\Internal\RepeatedField $monitored_resources * Defines the monitored resources used by this service. This is required * by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations. * @type \Google\Api\Billing $billing * Billing configuration. * @type \Google\Api\Logging $logging * Logging configuration. * @type \Google\Api\Monitoring $monitoring * Monitoring configuration. * @type \Google\Api\SystemParameters $system_parameters * System parameter configuration. * @type \Google\Api\SourceInfo $source_info * Output only. The source information for this configuration if available. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Service::initOnce(); parent::__construct($data); } /** * The semantic version of the service configuration. The config version * affects the interpretation of the service configuration. For example, * certain features are enabled by default for certain config versions. * The latest config version is `3`. * * Generated from protobuf field .google.protobuf.UInt32Value config_version = 20; * @return \Google\Protobuf\UInt32Value */ public function getConfigVersion() { return $this->config_version; } /** * Returns the unboxed value from getConfigVersion() * The semantic version of the service configuration. The config version * affects the interpretation of the service configuration. For example, * certain features are enabled by default for certain config versions. * The latest config version is `3`. * * Generated from protobuf field .google.protobuf.UInt32Value config_version = 20; * @return int|null */ public function getConfigVersionUnwrapped() { $wrapper = $this->getConfigVersion(); return is_null($wrapper) ? null : $wrapper->getValue(); } /** * The semantic version of the service configuration. The config version * affects the interpretation of the service configuration. For example, * certain features are enabled by default for certain config versions. * The latest config version is `3`. * * Generated from protobuf field .google.protobuf.UInt32Value config_version = 20; * @param \Google\Protobuf\UInt32Value $var * @return $this */ public function setConfigVersion($var) { GPBUtil::checkMessage($var, \Google\Protobuf\UInt32Value::class); $this->config_version = $var; return $this; } /** * Sets the field by wrapping a primitive type in a Google\Protobuf\UInt32Value object. * The semantic version of the service configuration. The config version * affects the interpretation of the service configuration. For example, * certain features are enabled by default for certain config versions. * The latest config version is `3`. * * Generated from protobuf field .google.protobuf.UInt32Value config_version = 20; * @param int|null $var * @return $this */ public function setConfigVersionUnwrapped($var) { $wrappedVar = is_null($var) ? null : new \Google\Protobuf\UInt32Value(['value' => $var]); return $this->setConfigVersion($wrappedVar); } /** * The DNS address at which this service is available, * e.g. `calendar.googleapis.com`. * * Generated from protobuf field string name = 1; * @return string */ public function getName() { return $this->name; } /** * The DNS address at which this service is available, * e.g. `calendar.googleapis.com`. * * Generated from protobuf field string name = 1; * @param string $var * @return $this */ public function setName($var) { GPBUtil::checkString($var, True); $this->name = $var; return $this; } /** * A unique ID for a specific instance of this message, typically assigned * by the client for tracking purpose. If empty, the server may choose to * generate one instead. * * Generated from protobuf field string id = 33; * @return string */ public function getId() { return $this->id; } /** * A unique ID for a specific instance of this message, typically assigned * by the client for tracking purpose. If empty, the server may choose to * generate one instead. * * Generated from protobuf field string id = 33; * @param string $var * @return $this */ public function setId($var) { GPBUtil::checkString($var, True); $this->id = $var; return $this; } /** * The product title for this service. * * Generated from protobuf field string title = 2; * @return string */ public function getTitle() { return $this->title; } /** * The product title for this service. * * Generated from protobuf field string title = 2; * @param string $var * @return $this */ public function setTitle($var) { GPBUtil::checkString($var, True); $this->title = $var; return $this; } /** * The Google project that owns this service. * * Generated from protobuf field string producer_project_id = 22; * @return string */ public function getProducerProjectId() { return $this->producer_project_id; } /** * The Google project that owns this service. * * Generated from protobuf field string producer_project_id = 22; * @param string $var * @return $this */ public function setProducerProjectId($var) { GPBUtil::checkString($var, True); $this->producer_project_id = $var; return $this; } /** * A list of API interfaces exported by this service. Only the `name` field * of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by the configuration * author, as the remaining fields will be derived from the IDL during the * normalization process. It is an error to specify an API interface here * which cannot be resolved against the associated IDL files. * * Generated from protobuf field repeated .google.protobuf.Api apis = 3; * @return \Google\Protobuf\Internal\RepeatedField */ public function getApis() { return $this->apis; } /** * A list of API interfaces exported by this service. Only the `name` field * of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by the configuration * author, as the remaining fields will be derived from the IDL during the * normalization process. It is an error to specify an API interface here * which cannot be resolved against the associated IDL files. * * Generated from protobuf field repeated .google.protobuf.Api apis = 3; * @param \Google\Protobuf\Api[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setApis($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Api::class); $this->apis = $arr; return $this; } /** * A list of all proto message types included in this API service. * Types referenced directly or indirectly by the `apis` are * automatically included. Messages which are not referenced but * shall be included, such as types used by the `google.protobuf.Any` type, * should be listed here by name. Example: * types: * - name: google.protobuf.Int32 * * Generated from protobuf field repeated .google.protobuf.Type types = 4; * @return \Google\Protobuf\Internal\RepeatedField */ public function getTypes() { return $this->types; } /** * A list of all proto message types included in this API service. * Types referenced directly or indirectly by the `apis` are * automatically included. Messages which are not referenced but * shall be included, such as types used by the `google.protobuf.Any` type, * should be listed here by name. Example: * types: * - name: google.protobuf.Int32 * * Generated from protobuf field repeated .google.protobuf.Type types = 4; * @param \Google\Protobuf\Type[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setTypes($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Type::class); $this->types = $arr; return $this; } /** * A list of all enum types included in this API service. Enums * referenced directly or indirectly by the `apis` are automatically * included. Enums which are not referenced but shall be included * should be listed here by name. Example: * enums: * - name: google.someapi.v1.SomeEnum * * Generated from protobuf field repeated .google.protobuf.Enum enums = 5; * @return \Google\Protobuf\Internal\RepeatedField */ public function getEnums() { return $this->enums; } /** * A list of all enum types included in this API service. Enums * referenced directly or indirectly by the `apis` are automatically * included. Enums which are not referenced but shall be included * should be listed here by name. Example: * enums: * - name: google.someapi.v1.SomeEnum * * Generated from protobuf field repeated .google.protobuf.Enum enums = 5; * @param \Google\Protobuf\Enum[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setEnums($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Enum::class); $this->enums = $arr; return $this; } /** * Additional API documentation. * * Generated from protobuf field .google.api.Documentation documentation = 6; * @return \Google\Api\Documentation */ public function getDocumentation() { return $this->documentation; } /** * Additional API documentation. * * Generated from protobuf field .google.api.Documentation documentation = 6; * @param \Google\Api\Documentation $var * @return $this */ public function setDocumentation($var) { GPBUtil::checkMessage($var, \Google\Api\Documentation::class); $this->documentation = $var; return $this; } /** * API backend configuration. * * Generated from protobuf field .google.api.Backend backend = 8; * @return \Google\Api\Backend */ public function getBackend() { return $this->backend; } /** * API backend configuration. * * Generated from protobuf field .google.api.Backend backend = 8; * @param \Google\Api\Backend $var * @return $this */ public function setBackend($var) { GPBUtil::checkMessage($var, \Google\Api\Backend::class); $this->backend = $var; return $this; } /** * HTTP configuration. * * Generated from protobuf field .google.api.Http http = 9; * @return \Google\Api\Http */ public function getHttp() { return $this->http; } /** * HTTP configuration. * * Generated from protobuf field .google.api.Http http = 9; * @param \Google\Api\Http $var * @return $this */ public function setHttp($var) { GPBUtil::checkMessage($var, \Google\Api\Http::class); $this->http = $var; return $this; } /** * Quota configuration. * * Generated from protobuf field .google.api.Quota quota = 10; * @return \Google\Api\Quota */ public function getQuota() { return $this->quota; } /** * Quota configuration. * * Generated from protobuf field .google.api.Quota quota = 10; * @param \Google\Api\Quota $var * @return $this */ public function setQuota($var) { GPBUtil::checkMessage($var, \Google\Api\Quota::class); $this->quota = $var; return $this; } /** * Auth configuration. * * Generated from protobuf field .google.api.Authentication authentication = 11; * @return \Google\Api\Authentication */ public function getAuthentication() { return $this->authentication; } /** * Auth configuration. * * Generated from protobuf field .google.api.Authentication authentication = 11; * @param \Google\Api\Authentication $var * @return $this */ public function setAuthentication($var) { GPBUtil::checkMessage($var, \Google\Api\Authentication::class); $this->authentication = $var; return $this; } /** * Context configuration. * * Generated from protobuf field .google.api.Context context = 12; * @return \Google\Api\Context */ public function getContext() { return $this->context; } /** * Context configuration. * * Generated from protobuf field .google.api.Context context = 12; * @param \Google\Api\Context $var * @return $this */ public function setContext($var) { GPBUtil::checkMessage($var, \Google\Api\Context::class); $this->context = $var; return $this; } /** * Configuration controlling usage of this service. * * Generated from protobuf field .google.api.Usage usage = 15; * @return \Google\Api\Usage */ public function getUsage() { return $this->usage; } /** * Configuration controlling usage of this service. * * Generated from protobuf field .google.api.Usage usage = 15; * @param \Google\Api\Usage $var * @return $this */ public function setUsage($var) { GPBUtil::checkMessage($var, \Google\Api\Usage::class); $this->usage = $var; return $this; } /** * Configuration for network endpoints. If this is empty, then an endpoint * with the same name as the service is automatically generated to service all * defined APIs. * * Generated from protobuf field repeated .google.api.Endpoint endpoints = 18; * @return \Google\Protobuf\Internal\RepeatedField */ public function getEndpoints() { return $this->endpoints; } /** * Configuration for network endpoints. If this is empty, then an endpoint * with the same name as the service is automatically generated to service all * defined APIs. * * Generated from protobuf field repeated .google.api.Endpoint endpoints = 18; * @param \Google\Api\Endpoint[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setEndpoints($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Endpoint::class); $this->endpoints = $arr; return $this; } /** * Configuration for the service control plane. * * Generated from protobuf field .google.api.Control control = 21; * @return \Google\Api\Control */ public function getControl() { return $this->control; } /** * Configuration for the service control plane. * * Generated from protobuf field .google.api.Control control = 21; * @param \Google\Api\Control $var * @return $this */ public function setControl($var) { GPBUtil::checkMessage($var, \Google\Api\Control::class); $this->control = $var; return $this; } /** * Defines the logs used by this service. * * Generated from protobuf field repeated .google.api.LogDescriptor logs = 23; * @return \Google\Protobuf\Internal\RepeatedField */ public function getLogs() { return $this->logs; } /** * Defines the logs used by this service. * * Generated from protobuf field repeated .google.api.LogDescriptor logs = 23; * @param \Google\Api\LogDescriptor[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setLogs($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\LogDescriptor::class); $this->logs = $arr; return $this; } /** * Defines the metrics used by this service. * * Generated from protobuf field repeated .google.api.MetricDescriptor metrics = 24; * @return \Google\Protobuf\Internal\RepeatedField */ public function getMetrics() { return $this->metrics; } /** * Defines the metrics used by this service. * * Generated from protobuf field repeated .google.api.MetricDescriptor metrics = 24; * @param \Google\Api\MetricDescriptor[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setMetrics($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\MetricDescriptor::class); $this->metrics = $arr; return $this; } /** * Defines the monitored resources used by this service. This is required * by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations. * * Generated from protobuf field repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25; * @return \Google\Protobuf\Internal\RepeatedField */ public function getMonitoredResources() { return $this->monitored_resources; } /** * Defines the monitored resources used by this service. This is required * by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations. * * Generated from protobuf field repeated .google.api.MonitoredResourceDescriptor monitored_resources = 25; * @param \Google\Api\MonitoredResourceDescriptor[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setMonitoredResources($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\MonitoredResourceDescriptor::class); $this->monitored_resources = $arr; return $this; } /** * Billing configuration. * * Generated from protobuf field .google.api.Billing billing = 26; * @return \Google\Api\Billing */ public function getBilling() { return $this->billing; } /** * Billing configuration. * * Generated from protobuf field .google.api.Billing billing = 26; * @param \Google\Api\Billing $var * @return $this */ public function setBilling($var) { GPBUtil::checkMessage($var, \Google\Api\Billing::class); $this->billing = $var; return $this; } /** * Logging configuration. * * Generated from protobuf field .google.api.Logging logging = 27; * @return \Google\Api\Logging */ public function getLogging() { return $this->logging; } /** * Logging configuration. * * Generated from protobuf field .google.api.Logging logging = 27; * @param \Google\Api\Logging $var * @return $this */ public function setLogging($var) { GPBUtil::checkMessage($var, \Google\Api\Logging::class); $this->logging = $var; return $this; } /** * Monitoring configuration. * * Generated from protobuf field .google.api.Monitoring monitoring = 28; * @return \Google\Api\Monitoring */ public function getMonitoring() { return $this->monitoring; } /** * Monitoring configuration. * * Generated from protobuf field .google.api.Monitoring monitoring = 28; * @param \Google\Api\Monitoring $var * @return $this */ public function setMonitoring($var) { GPBUtil::checkMessage($var, \Google\Api\Monitoring::class); $this->monitoring = $var; return $this; } /** * System parameter configuration. * * Generated from protobuf field .google.api.SystemParameters system_parameters = 29; * @return \Google\Api\SystemParameters */ public function getSystemParameters() { return $this->system_parameters; } /** * System parameter configuration. * * Generated from protobuf field .google.api.SystemParameters system_parameters = 29; * @param \Google\Api\SystemParameters $var * @return $this */ public function setSystemParameters($var) { GPBUtil::checkMessage($var, \Google\Api\SystemParameters::class); $this->system_parameters = $var; return $this; } /** * Output only. The source information for this configuration if available. * * Generated from protobuf field .google.api.SourceInfo source_info = 37; * @return \Google\Api\SourceInfo */ public function getSourceInfo() { return $this->source_info; } /** * Output only. The source information for this configuration if available. * * Generated from protobuf field .google.api.SourceInfo source_info = 37; * @param \Google\Api\SourceInfo $var * @return $this */ public function setSourceInfo($var) { GPBUtil::checkMessage($var, \Google\Api\SourceInfo::class); $this->source_info = $var; return $this; } } src/Api/SourceInfo.php000064400000003566151742727570010664 0ustar00google.api.SourceInfo */ class SourceInfo extends \Google\Protobuf\Internal\Message { /** * All files used during config generation. * * Generated from protobuf field repeated .google.protobuf.Any source_files = 1; */ private $source_files; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Google\Protobuf\Any[]|\Google\Protobuf\Internal\RepeatedField $source_files * All files used during config generation. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\SourceInfo::initOnce(); parent::__construct($data); } /** * All files used during config generation. * * Generated from protobuf field repeated .google.protobuf.Any source_files = 1; * @return \Google\Protobuf\Internal\RepeatedField */ public function getSourceFiles() { return $this->source_files; } /** * All files used during config generation. * * Generated from protobuf field repeated .google.protobuf.Any source_files = 1; * @param \Google\Protobuf\Any[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setSourceFiles($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Any::class); $this->source_files = $arr; return $this; } } src/Api/SystemParameter.php000064400000007721151742727570011732 0ustar00google.api.SystemParameter */ class SystemParameter extends \Google\Protobuf\Internal\Message { /** * Define the name of the parameter, such as "api_key" . It is case sensitive. * * Generated from protobuf field string name = 1; */ private $name = ''; /** * Define the HTTP header name to use for the parameter. It is case * insensitive. * * Generated from protobuf field string http_header = 2; */ private $http_header = ''; /** * Define the URL query parameter name to use for the parameter. It is case * sensitive. * * Generated from protobuf field string url_query_parameter = 3; */ private $url_query_parameter = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $name * Define the name of the parameter, such as "api_key" . It is case sensitive. * @type string $http_header * Define the HTTP header name to use for the parameter. It is case * insensitive. * @type string $url_query_parameter * Define the URL query parameter name to use for the parameter. It is case * sensitive. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\SystemParameter::initOnce(); parent::__construct($data); } /** * Define the name of the parameter, such as "api_key" . It is case sensitive. * * Generated from protobuf field string name = 1; * @return string */ public function getName() { return $this->name; } /** * Define the name of the parameter, such as "api_key" . It is case sensitive. * * Generated from protobuf field string name = 1; * @param string $var * @return $this */ public function setName($var) { GPBUtil::checkString($var, True); $this->name = $var; return $this; } /** * Define the HTTP header name to use for the parameter. It is case * insensitive. * * Generated from protobuf field string http_header = 2; * @return string */ public function getHttpHeader() { return $this->http_header; } /** * Define the HTTP header name to use for the parameter. It is case * insensitive. * * Generated from protobuf field string http_header = 2; * @param string $var * @return $this */ public function setHttpHeader($var) { GPBUtil::checkString($var, True); $this->http_header = $var; return $this; } /** * Define the URL query parameter name to use for the parameter. It is case * sensitive. * * Generated from protobuf field string url_query_parameter = 3; * @return string */ public function getUrlQueryParameter() { return $this->url_query_parameter; } /** * Define the URL query parameter name to use for the parameter. It is case * sensitive. * * Generated from protobuf field string url_query_parameter = 3; * @param string $var * @return $this */ public function setUrlQueryParameter($var) { GPBUtil::checkString($var, True); $this->url_query_parameter = $var; return $this; } } src/Api/SystemParameterRule.php000064400000010646151742727570012562 0ustar00google.api.SystemParameterRule */ class SystemParameterRule extends \Google\Protobuf\Internal\Message { /** * Selects the methods to which this rule applies. Use '*' to indicate all * methods in all APIs. * Refer to [selector][google.api.DocumentationRule.selector] for syntax details. * * Generated from protobuf field string selector = 1; */ private $selector = ''; /** * Define parameters. Multiple names may be defined for a parameter. * For a given method call, only one of them should be used. If multiple * names are used the behavior is implementation-dependent. * If none of the specified names are present the behavior is * parameter-dependent. * * Generated from protobuf field repeated .google.api.SystemParameter parameters = 2; */ private $parameters; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $selector * Selects the methods to which this rule applies. Use '*' to indicate all * methods in all APIs. * Refer to [selector][google.api.DocumentationRule.selector] for syntax details. * @type \Google\Api\SystemParameter[]|\Google\Protobuf\Internal\RepeatedField $parameters * Define parameters. Multiple names may be defined for a parameter. * For a given method call, only one of them should be used. If multiple * names are used the behavior is implementation-dependent. * If none of the specified names are present the behavior is * parameter-dependent. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\SystemParameter::initOnce(); parent::__construct($data); } /** * Selects the methods to which this rule applies. Use '*' to indicate all * methods in all APIs. * Refer to [selector][google.api.DocumentationRule.selector] for syntax details. * * Generated from protobuf field string selector = 1; * @return string */ public function getSelector() { return $this->selector; } /** * Selects the methods to which this rule applies. Use '*' to indicate all * methods in all APIs. * Refer to [selector][google.api.DocumentationRule.selector] for syntax details. * * Generated from protobuf field string selector = 1; * @param string $var * @return $this */ public function setSelector($var) { GPBUtil::checkString($var, True); $this->selector = $var; return $this; } /** * Define parameters. Multiple names may be defined for a parameter. * For a given method call, only one of them should be used. If multiple * names are used the behavior is implementation-dependent. * If none of the specified names are present the behavior is * parameter-dependent. * * Generated from protobuf field repeated .google.api.SystemParameter parameters = 2; * @return \Google\Protobuf\Internal\RepeatedField */ public function getParameters() { return $this->parameters; } /** * Define parameters. Multiple names may be defined for a parameter. * For a given method call, only one of them should be used. If multiple * names are used the behavior is implementation-dependent. * If none of the specified names are present the behavior is * parameter-dependent. * * Generated from protobuf field repeated .google.api.SystemParameter parameters = 2; * @param \Google\Api\SystemParameter[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setParameters($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\SystemParameter::class); $this->parameters = $arr; return $this; } } src/Api/SystemParameters.php000064400000013673151742727570012120 0ustar00google.api.SystemParameters */ class SystemParameters extends \Google\Protobuf\Internal\Message { /** * Define system parameters. * The parameters defined here will override the default parameters * implemented by the system. If this field is missing from the service * config, default system parameters will be used. Default system parameters * and names is implementation-dependent. * Example: define api key for all methods * system_parameters * rules: * - selector: "*" * parameters: * - name: api_key * url_query_parameter: api_key * Example: define 2 api key names for a specific method. * system_parameters * rules: * - selector: "/ListShelves" * parameters: * - name: api_key * http_header: Api-Key1 * - name: api_key * http_header: Api-Key2 * **NOTE:** All service configuration rules follow "last one wins" order. * * Generated from protobuf field repeated .google.api.SystemParameterRule rules = 1; */ private $rules; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Google\Api\SystemParameterRule[]|\Google\Protobuf\Internal\RepeatedField $rules * Define system parameters. * The parameters defined here will override the default parameters * implemented by the system. If this field is missing from the service * config, default system parameters will be used. Default system parameters * and names is implementation-dependent. * Example: define api key for all methods * system_parameters * rules: * - selector: "*" * parameters: * - name: api_key * url_query_parameter: api_key * Example: define 2 api key names for a specific method. * system_parameters * rules: * - selector: "/ListShelves" * parameters: * - name: api_key * http_header: Api-Key1 * - name: api_key * http_header: Api-Key2 * **NOTE:** All service configuration rules follow "last one wins" order. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\SystemParameter::initOnce(); parent::__construct($data); } /** * Define system parameters. * The parameters defined here will override the default parameters * implemented by the system. If this field is missing from the service * config, default system parameters will be used. Default system parameters * and names is implementation-dependent. * Example: define api key for all methods * system_parameters * rules: * - selector: "*" * parameters: * - name: api_key * url_query_parameter: api_key * Example: define 2 api key names for a specific method. * system_parameters * rules: * - selector: "/ListShelves" * parameters: * - name: api_key * http_header: Api-Key1 * - name: api_key * http_header: Api-Key2 * **NOTE:** All service configuration rules follow "last one wins" order. * * Generated from protobuf field repeated .google.api.SystemParameterRule rules = 1; * @return \Google\Protobuf\Internal\RepeatedField */ public function getRules() { return $this->rules; } /** * Define system parameters. * The parameters defined here will override the default parameters * implemented by the system. If this field is missing from the service * config, default system parameters will be used. Default system parameters * and names is implementation-dependent. * Example: define api key for all methods * system_parameters * rules: * - selector: "*" * parameters: * - name: api_key * url_query_parameter: api_key * Example: define 2 api key names for a specific method. * system_parameters * rules: * - selector: "/ListShelves" * parameters: * - name: api_key * http_header: Api-Key1 * - name: api_key * http_header: Api-Key2 * **NOTE:** All service configuration rules follow "last one wins" order. * * Generated from protobuf field repeated .google.api.SystemParameterRule rules = 1; * @param \Google\Api\SystemParameterRule[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setRules($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\SystemParameterRule::class); $this->rules = $arr; return $this; } } src/Api/Usage.php000064400000015246151742727570007652 0ustar00google.api.Usage */ class Usage extends \Google\Protobuf\Internal\Message { /** * Requirements that must be satisfied before a consumer project can use the * service. Each requirement is of the form /; * for example 'serviceusage.googleapis.com/billing-enabled'. * * Generated from protobuf field repeated string requirements = 1; */ private $requirements; /** * A list of usage rules that apply to individual API methods. * **NOTE:** All service configuration rules follow "last one wins" order. * * Generated from protobuf field repeated .google.api.UsageRule rules = 6; */ private $rules; /** * The full resource name of a channel used for sending notifications to the * service producer. * Google Service Management currently only supports * [Google Cloud Pub/Sub](https://cloud.google.com/pubsub) as a notification * channel. To use Google Cloud Pub/Sub as the channel, this must be the name * of a Cloud Pub/Sub topic that uses the Cloud Pub/Sub topic name format * documented in https://cloud.google.com/pubsub/docs/overview. * * Generated from protobuf field string producer_notification_channel = 7; */ private $producer_notification_channel = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string[]|\Google\Protobuf\Internal\RepeatedField $requirements * Requirements that must be satisfied before a consumer project can use the * service. Each requirement is of the form /; * for example 'serviceusage.googleapis.com/billing-enabled'. * @type \Google\Api\UsageRule[]|\Google\Protobuf\Internal\RepeatedField $rules * A list of usage rules that apply to individual API methods. * **NOTE:** All service configuration rules follow "last one wins" order. * @type string $producer_notification_channel * The full resource name of a channel used for sending notifications to the * service producer. * Google Service Management currently only supports * [Google Cloud Pub/Sub](https://cloud.google.com/pubsub) as a notification * channel. To use Google Cloud Pub/Sub as the channel, this must be the name * of a Cloud Pub/Sub topic that uses the Cloud Pub/Sub topic name format * documented in https://cloud.google.com/pubsub/docs/overview. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Usage::initOnce(); parent::__construct($data); } /** * Requirements that must be satisfied before a consumer project can use the * service. Each requirement is of the form /; * for example 'serviceusage.googleapis.com/billing-enabled'. * * Generated from protobuf field repeated string requirements = 1; * @return \Google\Protobuf\Internal\RepeatedField */ public function getRequirements() { return $this->requirements; } /** * Requirements that must be satisfied before a consumer project can use the * service. Each requirement is of the form /; * for example 'serviceusage.googleapis.com/billing-enabled'. * * Generated from protobuf field repeated string requirements = 1; * @param string[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setRequirements($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); $this->requirements = $arr; return $this; } /** * A list of usage rules that apply to individual API methods. * **NOTE:** All service configuration rules follow "last one wins" order. * * Generated from protobuf field repeated .google.api.UsageRule rules = 6; * @return \Google\Protobuf\Internal\RepeatedField */ public function getRules() { return $this->rules; } /** * A list of usage rules that apply to individual API methods. * **NOTE:** All service configuration rules follow "last one wins" order. * * Generated from protobuf field repeated .google.api.UsageRule rules = 6; * @param \Google\Api\UsageRule[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setRules($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\UsageRule::class); $this->rules = $arr; return $this; } /** * The full resource name of a channel used for sending notifications to the * service producer. * Google Service Management currently only supports * [Google Cloud Pub/Sub](https://cloud.google.com/pubsub) as a notification * channel. To use Google Cloud Pub/Sub as the channel, this must be the name * of a Cloud Pub/Sub topic that uses the Cloud Pub/Sub topic name format * documented in https://cloud.google.com/pubsub/docs/overview. * * Generated from protobuf field string producer_notification_channel = 7; * @return string */ public function getProducerNotificationChannel() { return $this->producer_notification_channel; } /** * The full resource name of a channel used for sending notifications to the * service producer. * Google Service Management currently only supports * [Google Cloud Pub/Sub](https://cloud.google.com/pubsub) as a notification * channel. To use Google Cloud Pub/Sub as the channel, this must be the name * of a Cloud Pub/Sub topic that uses the Cloud Pub/Sub topic name format * documented in https://cloud.google.com/pubsub/docs/overview. * * Generated from protobuf field string producer_notification_channel = 7; * @param string $var * @return $this */ public function setProducerNotificationChannel($var) { GPBUtil::checkString($var, True); $this->producer_notification_channel = $var; return $this; } } src/Api/UsageRule.php000064400000014035151742727570010475 0ustar00google.api.UsageRule */ class UsageRule extends \Google\Protobuf\Internal\Message { /** * Selects the methods to which this rule applies. Use '*' to indicate all * methods in all APIs. * Refer to [selector][google.api.DocumentationRule.selector] for syntax details. * * Generated from protobuf field string selector = 1; */ private $selector = ''; /** * If true, the selected method allows unregistered calls, e.g. calls * that don't identify any user or application. * * Generated from protobuf field bool allow_unregistered_calls = 2; */ private $allow_unregistered_calls = false; /** * If true, the selected method should skip service control and the control * plane features, such as quota and billing, will not be available. * This flag is used by Google Cloud Endpoints to bypass checks for internal * methods, such as service health check methods. * * Generated from protobuf field bool skip_service_control = 3; */ private $skip_service_control = false; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $selector * Selects the methods to which this rule applies. Use '*' to indicate all * methods in all APIs. * Refer to [selector][google.api.DocumentationRule.selector] for syntax details. * @type bool $allow_unregistered_calls * If true, the selected method allows unregistered calls, e.g. calls * that don't identify any user or application. * @type bool $skip_service_control * If true, the selected method should skip service control and the control * plane features, such as quota and billing, will not be available. * This flag is used by Google Cloud Endpoints to bypass checks for internal * methods, such as service health check methods. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Usage::initOnce(); parent::__construct($data); } /** * Selects the methods to which this rule applies. Use '*' to indicate all * methods in all APIs. * Refer to [selector][google.api.DocumentationRule.selector] for syntax details. * * Generated from protobuf field string selector = 1; * @return string */ public function getSelector() { return $this->selector; } /** * Selects the methods to which this rule applies. Use '*' to indicate all * methods in all APIs. * Refer to [selector][google.api.DocumentationRule.selector] for syntax details. * * Generated from protobuf field string selector = 1; * @param string $var * @return $this */ public function setSelector($var) { GPBUtil::checkString($var, True); $this->selector = $var; return $this; } /** * If true, the selected method allows unregistered calls, e.g. calls * that don't identify any user or application. * * Generated from protobuf field bool allow_unregistered_calls = 2; * @return bool */ public function getAllowUnregisteredCalls() { return $this->allow_unregistered_calls; } /** * If true, the selected method allows unregistered calls, e.g. calls * that don't identify any user or application. * * Generated from protobuf field bool allow_unregistered_calls = 2; * @param bool $var * @return $this */ public function setAllowUnregisteredCalls($var) { GPBUtil::checkBool($var); $this->allow_unregistered_calls = $var; return $this; } /** * If true, the selected method should skip service control and the control * plane features, such as quota and billing, will not be available. * This flag is used by Google Cloud Endpoints to bypass checks for internal * methods, such as service health check methods. * * Generated from protobuf field bool skip_service_control = 3; * @return bool */ public function getSkipServiceControl() { return $this->skip_service_control; } /** * If true, the selected method should skip service control and the control * plane features, such as quota and billing, will not be available. * This flag is used by Google Cloud Endpoints to bypass checks for internal * methods, such as service health check methods. * * Generated from protobuf field bool skip_service_control = 3; * @param bool $var * @return $this */ public function setSkipServiceControl($var) { GPBUtil::checkBool($var); $this->skip_service_control = $var; return $this; } } src/Cloud/Iam/V1/AuditConfigDelta.php000064400000014050151742727570013275 0ustar00google.iam.v1.AuditConfigDelta */ class AuditConfigDelta extends \Google\Protobuf\Internal\Message { /** * The action that was performed on an audit configuration in a policy. * Required * * Generated from protobuf field .google.iam.v1.AuditConfigDelta.Action action = 1; */ private $action = 0; /** * Specifies a service that was configured for Cloud Audit Logging. * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. * `allServices` is a special value that covers all services. * Required * * Generated from protobuf field string service = 2; */ private $service = ''; /** * A single identity that is exempted from "data access" audit * logging for the `service` specified above. * Follows the same format of Binding.members. * * Generated from protobuf field string exempted_member = 3; */ private $exempted_member = ''; /** * Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always * enabled, and cannot be configured. * Required * * Generated from protobuf field string log_type = 4; */ private $log_type = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int $action * The action that was performed on an audit configuration in a policy. * Required * @type string $service * Specifies a service that was configured for Cloud Audit Logging. * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. * `allServices` is a special value that covers all services. * Required * @type string $exempted_member * A single identity that is exempted from "data access" audit * logging for the `service` specified above. * Follows the same format of Binding.members. * @type string $log_type * Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always * enabled, and cannot be configured. * Required * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Iam\V1\Policy::initOnce(); parent::__construct($data); } /** * The action that was performed on an audit configuration in a policy. * Required * * Generated from protobuf field .google.iam.v1.AuditConfigDelta.Action action = 1; * @return int */ public function getAction() { return $this->action; } /** * The action that was performed on an audit configuration in a policy. * Required * * Generated from protobuf field .google.iam.v1.AuditConfigDelta.Action action = 1; * @param int $var * @return $this */ public function setAction($var) { GPBUtil::checkEnum($var, \Google\Cloud\Iam\V1\AuditConfigDelta_Action::class); $this->action = $var; return $this; } /** * Specifies a service that was configured for Cloud Audit Logging. * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. * `allServices` is a special value that covers all services. * Required * * Generated from protobuf field string service = 2; * @return string */ public function getService() { return $this->service; } /** * Specifies a service that was configured for Cloud Audit Logging. * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. * `allServices` is a special value that covers all services. * Required * * Generated from protobuf field string service = 2; * @param string $var * @return $this */ public function setService($var) { GPBUtil::checkString($var, True); $this->service = $var; return $this; } /** * A single identity that is exempted from "data access" audit * logging for the `service` specified above. * Follows the same format of Binding.members. * * Generated from protobuf field string exempted_member = 3; * @return string */ public function getExemptedMember() { return $this->exempted_member; } /** * A single identity that is exempted from "data access" audit * logging for the `service` specified above. * Follows the same format of Binding.members. * * Generated from protobuf field string exempted_member = 3; * @param string $var * @return $this */ public function setExemptedMember($var) { GPBUtil::checkString($var, True); $this->exempted_member = $var; return $this; } /** * Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always * enabled, and cannot be configured. * Required * * Generated from protobuf field string log_type = 4; * @return string */ public function getLogType() { return $this->log_type; } /** * Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always * enabled, and cannot be configured. * Required * * Generated from protobuf field string log_type = 4; * @param string $var * @return $this */ public function setLogType($var) { GPBUtil::checkString($var, True); $this->log_type = $var; return $this; } } src/Cloud/Iam/V1/AuditConfigDelta/Action.php000064400000003315151742727570014514 0ustar00google.iam.v1.AuditConfigDelta.Action */ class Action { /** * Unspecified. * * Generated from protobuf enum ACTION_UNSPECIFIED = 0; */ const ACTION_UNSPECIFIED = 0; /** * Addition of an audit configuration. * * Generated from protobuf enum ADD = 1; */ const ADD = 1; /** * Removal of an audit configuration. * * Generated from protobuf enum REMOVE = 2; */ const REMOVE = 2; private static $valueToName = [ self::ACTION_UNSPECIFIED => 'ACTION_UNSPECIFIED', self::ADD => 'ADD', self::REMOVE => 'REMOVE', ]; public static function name($value) { if (!isset(self::$valueToName[$value])) { throw new UnexpectedValueException(sprintf( 'Enum %s has no name defined for value %s', __CLASS__, $value)); } return self::$valueToName[$value]; } public static function value($name) { $const = __CLASS__ . '::' . strtoupper($name); if (!defined($const)) { throw new UnexpectedValueException(sprintf( 'Enum %s has no value defined for name %s', __CLASS__, $name)); } return constant($const); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Action::class, \Google\Cloud\Iam\V1\AuditConfigDelta_Action::class); src/Cloud/Iam/V1/AuditConfigDelta_Action.php000064400000001056151742727570014574 0ustar00google.iam.v1.Binding */ class Binding extends \Google\Protobuf\Internal\Message { /** * Role that is assigned to `members`. * For example, `roles/viewer`, `roles/editor`, or `roles/owner`. * * Generated from protobuf field string role = 1; */ private $role = ''; /** * Specifies the identities requesting access for a Cloud Platform resource. * `members` can have the following values: * * `allUsers`: A special identifier that represents anyone who is * on the internet; with or without a Google account. * * `allAuthenticatedUsers`: A special identifier that represents anyone * who is authenticated with a Google account or a service account. * * `user:{emailid}`: An email address that represents a specific Google * account. For example, `alice@example.com` . * * `serviceAccount:{emailid}`: An email address that represents a service * account. For example, `my-other-app@appspot.gserviceaccount.com`. * * `group:{emailid}`: An email address that represents a Google group. * For example, `admins@example.com`. * * `domain:{domain}`: The G Suite domain (primary) that represents all the * users of that domain. For example, `google.com` or `example.com`. * * Generated from protobuf field repeated string members = 2; */ private $members; /** * The condition that is associated with this binding. * NOTE: An unsatisfied condition will not allow user access via current * binding. Different bindings, including their conditions, are examined * independently. * * Generated from protobuf field .google.type.Expr condition = 3; */ private $condition = null; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $role * Role that is assigned to `members`. * For example, `roles/viewer`, `roles/editor`, or `roles/owner`. * @type string[]|\Google\Protobuf\Internal\RepeatedField $members * Specifies the identities requesting access for a Cloud Platform resource. * `members` can have the following values: * * `allUsers`: A special identifier that represents anyone who is * on the internet; with or without a Google account. * * `allAuthenticatedUsers`: A special identifier that represents anyone * who is authenticated with a Google account or a service account. * * `user:{emailid}`: An email address that represents a specific Google * account. For example, `alice@example.com` . * * `serviceAccount:{emailid}`: An email address that represents a service * account. For example, `my-other-app@appspot.gserviceaccount.com`. * * `group:{emailid}`: An email address that represents a Google group. * For example, `admins@example.com`. * * `domain:{domain}`: The G Suite domain (primary) that represents all the * users of that domain. For example, `google.com` or `example.com`. * @type \Google\Type\Expr $condition * The condition that is associated with this binding. * NOTE: An unsatisfied condition will not allow user access via current * binding. Different bindings, including their conditions, are examined * independently. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Iam\V1\Policy::initOnce(); parent::__construct($data); } /** * Role that is assigned to `members`. * For example, `roles/viewer`, `roles/editor`, or `roles/owner`. * * Generated from protobuf field string role = 1; * @return string */ public function getRole() { return $this->role; } /** * Role that is assigned to `members`. * For example, `roles/viewer`, `roles/editor`, or `roles/owner`. * * Generated from protobuf field string role = 1; * @param string $var * @return $this */ public function setRole($var) { GPBUtil::checkString($var, True); $this->role = $var; return $this; } /** * Specifies the identities requesting access for a Cloud Platform resource. * `members` can have the following values: * * `allUsers`: A special identifier that represents anyone who is * on the internet; with or without a Google account. * * `allAuthenticatedUsers`: A special identifier that represents anyone * who is authenticated with a Google account or a service account. * * `user:{emailid}`: An email address that represents a specific Google * account. For example, `alice@example.com` . * * `serviceAccount:{emailid}`: An email address that represents a service * account. For example, `my-other-app@appspot.gserviceaccount.com`. * * `group:{emailid}`: An email address that represents a Google group. * For example, `admins@example.com`. * * `domain:{domain}`: The G Suite domain (primary) that represents all the * users of that domain. For example, `google.com` or `example.com`. * * Generated from protobuf field repeated string members = 2; * @return \Google\Protobuf\Internal\RepeatedField */ public function getMembers() { return $this->members; } /** * Specifies the identities requesting access for a Cloud Platform resource. * `members` can have the following values: * * `allUsers`: A special identifier that represents anyone who is * on the internet; with or without a Google account. * * `allAuthenticatedUsers`: A special identifier that represents anyone * who is authenticated with a Google account or a service account. * * `user:{emailid}`: An email address that represents a specific Google * account. For example, `alice@example.com` . * * `serviceAccount:{emailid}`: An email address that represents a service * account. For example, `my-other-app@appspot.gserviceaccount.com`. * * `group:{emailid}`: An email address that represents a Google group. * For example, `admins@example.com`. * * `domain:{domain}`: The G Suite domain (primary) that represents all the * users of that domain. For example, `google.com` or `example.com`. * * Generated from protobuf field repeated string members = 2; * @param string[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setMembers($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); $this->members = $arr; return $this; } /** * The condition that is associated with this binding. * NOTE: An unsatisfied condition will not allow user access via current * binding. Different bindings, including their conditions, are examined * independently. * * Generated from protobuf field .google.type.Expr condition = 3; * @return \Google\Type\Expr */ public function getCondition() { return $this->condition; } /** * The condition that is associated with this binding. * NOTE: An unsatisfied condition will not allow user access via current * binding. Different bindings, including their conditions, are examined * independently. * * Generated from protobuf field .google.type.Expr condition = 3; * @param \Google\Type\Expr $var * @return $this */ public function setCondition($var) { GPBUtil::checkMessage($var, \Google\Type\Expr::class); $this->condition = $var; return $this; } } src/Cloud/Iam/V1/BindingDelta.php000064400000012127151742727570012456 0ustar00google.iam.v1.BindingDelta */ class BindingDelta extends \Google\Protobuf\Internal\Message { /** * The action that was performed on a Binding. * Required * * Generated from protobuf field .google.iam.v1.BindingDelta.Action action = 1; */ private $action = 0; /** * Role that is assigned to `members`. * For example, `roles/viewer`, `roles/editor`, or `roles/owner`. * Required * * Generated from protobuf field string role = 2; */ private $role = ''; /** * A single identity requesting access for a Cloud Platform resource. * Follows the same format of Binding.members. * Required * * Generated from protobuf field string member = 3; */ private $member = ''; /** * The condition that is associated with this binding. * * Generated from protobuf field .google.type.Expr condition = 4; */ private $condition = null; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int $action * The action that was performed on a Binding. * Required * @type string $role * Role that is assigned to `members`. * For example, `roles/viewer`, `roles/editor`, or `roles/owner`. * Required * @type string $member * A single identity requesting access for a Cloud Platform resource. * Follows the same format of Binding.members. * Required * @type \Google\Type\Expr $condition * The condition that is associated with this binding. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Iam\V1\Policy::initOnce(); parent::__construct($data); } /** * The action that was performed on a Binding. * Required * * Generated from protobuf field .google.iam.v1.BindingDelta.Action action = 1; * @return int */ public function getAction() { return $this->action; } /** * The action that was performed on a Binding. * Required * * Generated from protobuf field .google.iam.v1.BindingDelta.Action action = 1; * @param int $var * @return $this */ public function setAction($var) { GPBUtil::checkEnum($var, \Google\Cloud\Iam\V1\BindingDelta_Action::class); $this->action = $var; return $this; } /** * Role that is assigned to `members`. * For example, `roles/viewer`, `roles/editor`, or `roles/owner`. * Required * * Generated from protobuf field string role = 2; * @return string */ public function getRole() { return $this->role; } /** * Role that is assigned to `members`. * For example, `roles/viewer`, `roles/editor`, or `roles/owner`. * Required * * Generated from protobuf field string role = 2; * @param string $var * @return $this */ public function setRole($var) { GPBUtil::checkString($var, True); $this->role = $var; return $this; } /** * A single identity requesting access for a Cloud Platform resource. * Follows the same format of Binding.members. * Required * * Generated from protobuf field string member = 3; * @return string */ public function getMember() { return $this->member; } /** * A single identity requesting access for a Cloud Platform resource. * Follows the same format of Binding.members. * Required * * Generated from protobuf field string member = 3; * @param string $var * @return $this */ public function setMember($var) { GPBUtil::checkString($var, True); $this->member = $var; return $this; } /** * The condition that is associated with this binding. * * Generated from protobuf field .google.type.Expr condition = 4; * @return \Google\Type\Expr */ public function getCondition() { return $this->condition; } /** * The condition that is associated with this binding. * * Generated from protobuf field .google.type.Expr condition = 4; * @param \Google\Type\Expr $var * @return $this */ public function setCondition($var) { GPBUtil::checkMessage($var, \Google\Type\Expr::class); $this->condition = $var; return $this; } } src/Cloud/Iam/V1/BindingDelta/Action.php000064400000003232151742727570013670 0ustar00google.iam.v1.BindingDelta.Action */ class Action { /** * Unspecified. * * Generated from protobuf enum ACTION_UNSPECIFIED = 0; */ const ACTION_UNSPECIFIED = 0; /** * Addition of a Binding. * * Generated from protobuf enum ADD = 1; */ const ADD = 1; /** * Removal of a Binding. * * Generated from protobuf enum REMOVE = 2; */ const REMOVE = 2; private static $valueToName = [ self::ACTION_UNSPECIFIED => 'ACTION_UNSPECIFIED', self::ADD => 'ADD', self::REMOVE => 'REMOVE', ]; public static function name($value) { if (!isset(self::$valueToName[$value])) { throw new UnexpectedValueException(sprintf( 'Enum %s has no name defined for value %s', __CLASS__, $value)); } return self::$valueToName[$value]; } public static function value($name) { $const = __CLASS__ . '::' . strtoupper($name); if (!defined($const)) { throw new UnexpectedValueException(sprintf( 'Enum %s has no value defined for name %s', __CLASS__, $name)); } return constant($const); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Action::class, \Google\Cloud\Iam\V1\BindingDelta_Action::class); src/Cloud/Iam/V1/BindingDelta_Action.php000064400000001032151742727570013744 0ustar00google.iam.v1.GetIamPolicyRequest */ class GetIamPolicyRequest extends \Google\Protobuf\Internal\Message { /** * REQUIRED: The resource for which the policy is being requested. * See the operation documentation for the appropriate value for this field. * * Generated from protobuf field string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { */ private $resource = ''; /** * OPTIONAL: A `GetPolicyOptions` object for specifying options to * `GetIamPolicy`. This field is only used by Cloud IAM. * * Generated from protobuf field .google.iam.v1.GetPolicyOptions options = 2; */ private $options = null; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $resource * REQUIRED: The resource for which the policy is being requested. * See the operation documentation for the appropriate value for this field. * @type \Google\Cloud\Iam\V1\GetPolicyOptions $options * OPTIONAL: A `GetPolicyOptions` object for specifying options to * `GetIamPolicy`. This field is only used by Cloud IAM. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Iam\V1\IamPolicy::initOnce(); parent::__construct($data); } /** * REQUIRED: The resource for which the policy is being requested. * See the operation documentation for the appropriate value for this field. * * Generated from protobuf field string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @return string */ public function getResource() { return $this->resource; } /** * REQUIRED: The resource for which the policy is being requested. * See the operation documentation for the appropriate value for this field. * * Generated from protobuf field string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @param string $var * @return $this */ public function setResource($var) { GPBUtil::checkString($var, True); $this->resource = $var; return $this; } /** * OPTIONAL: A `GetPolicyOptions` object for specifying options to * `GetIamPolicy`. This field is only used by Cloud IAM. * * Generated from protobuf field .google.iam.v1.GetPolicyOptions options = 2; * @return \Google\Cloud\Iam\V1\GetPolicyOptions */ public function getOptions() { return $this->options; } /** * OPTIONAL: A `GetPolicyOptions` object for specifying options to * `GetIamPolicy`. This field is only used by Cloud IAM. * * Generated from protobuf field .google.iam.v1.GetPolicyOptions options = 2; * @param \Google\Cloud\Iam\V1\GetPolicyOptions $var * @return $this */ public function setOptions($var) { GPBUtil::checkMessage($var, \Google\Cloud\Iam\V1\GetPolicyOptions::class); $this->options = $var; return $this; } } src/Cloud/Iam/V1/GetPolicyOptions.php000064400000005654151742727570013414 0ustar00google.iam.v1.GetPolicyOptions */ class GetPolicyOptions extends \Google\Protobuf\Internal\Message { /** * Optional. The policy format version to be returned. * Valid values are 0, 1, and 3. Requests specifying an invalid value will be * rejected. * Requests for policies with any conditional bindings must specify version 3. * Policies without any conditional bindings may specify any valid value or * leave the field unset. * * Generated from protobuf field int32 requested_policy_version = 1; */ private $requested_policy_version = 0; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int $requested_policy_version * Optional. The policy format version to be returned. * Valid values are 0, 1, and 3. Requests specifying an invalid value will be * rejected. * Requests for policies with any conditional bindings must specify version 3. * Policies without any conditional bindings may specify any valid value or * leave the field unset. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Iam\V1\Options::initOnce(); parent::__construct($data); } /** * Optional. The policy format version to be returned. * Valid values are 0, 1, and 3. Requests specifying an invalid value will be * rejected. * Requests for policies with any conditional bindings must specify version 3. * Policies without any conditional bindings may specify any valid value or * leave the field unset. * * Generated from protobuf field int32 requested_policy_version = 1; * @return int */ public function getRequestedPolicyVersion() { return $this->requested_policy_version; } /** * Optional. The policy format version to be returned. * Valid values are 0, 1, and 3. Requests specifying an invalid value will be * rejected. * Requests for policies with any conditional bindings must specify version 3. * Policies without any conditional bindings may specify any valid value or * leave the field unset. * * Generated from protobuf field int32 requested_policy_version = 1; * @param int $var * @return $this */ public function setRequestedPolicyVersion($var) { GPBUtil::checkInt32($var); $this->requested_policy_version = $var; return $this; } } src/Cloud/Iam/V1/Policy.php000064400000027411151742727570011373 0ustar00google.iam.v1.Policy */ class Policy extends \Google\Protobuf\Internal\Message { /** * Specifies the format of the policy. * Valid values are 0, 1, and 3. Requests specifying an invalid value will be * rejected. * Operations affecting conditional bindings must specify version 3. This can * be either setting a conditional policy, modifying a conditional binding, * or removing a binding (conditional or unconditional) from the stored * conditional policy. * Operations on non-conditional policies may specify any valid value or * leave the field unset. * If no etag is provided in the call to `setIamPolicy`, version compliance * checks against the stored policy is skipped. * * Generated from protobuf field int32 version = 1; */ private $version = 0; /** * Associates a list of `members` to a `role`. Optionally may specify a * `condition` that determines when binding is in effect. * `bindings` with no members will result in an error. * * Generated from protobuf field repeated .google.iam.v1.Binding bindings = 4; */ private $bindings; /** * `etag` is used for optimistic concurrency control as a way to help * prevent simultaneous updates of a policy from overwriting each other. * It is strongly suggested that systems make use of the `etag` in the * read-modify-write cycle to perform policy updates in order to avoid race * conditions: An `etag` is returned in the response to `getIamPolicy`, and * systems are expected to put that etag in the request to `setIamPolicy` to * ensure that their change will be applied to the same version of the policy. * If no `etag` is provided in the call to `setIamPolicy`, then the existing * policy is overwritten. Due to blind-set semantics of an etag-less policy, * 'setIamPolicy' will not fail even if the incoming policy version does not * meet the requirements for modifying the stored policy. * * Generated from protobuf field bytes etag = 3; */ private $etag = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int $version * Specifies the format of the policy. * Valid values are 0, 1, and 3. Requests specifying an invalid value will be * rejected. * Operations affecting conditional bindings must specify version 3. This can * be either setting a conditional policy, modifying a conditional binding, * or removing a binding (conditional or unconditional) from the stored * conditional policy. * Operations on non-conditional policies may specify any valid value or * leave the field unset. * If no etag is provided in the call to `setIamPolicy`, version compliance * checks against the stored policy is skipped. * @type \Google\Cloud\Iam\V1\Binding[]|\Google\Protobuf\Internal\RepeatedField $bindings * Associates a list of `members` to a `role`. Optionally may specify a * `condition` that determines when binding is in effect. * `bindings` with no members will result in an error. * @type string $etag * `etag` is used for optimistic concurrency control as a way to help * prevent simultaneous updates of a policy from overwriting each other. * It is strongly suggested that systems make use of the `etag` in the * read-modify-write cycle to perform policy updates in order to avoid race * conditions: An `etag` is returned in the response to `getIamPolicy`, and * systems are expected to put that etag in the request to `setIamPolicy` to * ensure that their change will be applied to the same version of the policy. * If no `etag` is provided in the call to `setIamPolicy`, then the existing * policy is overwritten. Due to blind-set semantics of an etag-less policy, * 'setIamPolicy' will not fail even if the incoming policy version does not * meet the requirements for modifying the stored policy. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Iam\V1\Policy::initOnce(); parent::__construct($data); } /** * Specifies the format of the policy. * Valid values are 0, 1, and 3. Requests specifying an invalid value will be * rejected. * Operations affecting conditional bindings must specify version 3. This can * be either setting a conditional policy, modifying a conditional binding, * or removing a binding (conditional or unconditional) from the stored * conditional policy. * Operations on non-conditional policies may specify any valid value or * leave the field unset. * If no etag is provided in the call to `setIamPolicy`, version compliance * checks against the stored policy is skipped. * * Generated from protobuf field int32 version = 1; * @return int */ public function getVersion() { return $this->version; } /** * Specifies the format of the policy. * Valid values are 0, 1, and 3. Requests specifying an invalid value will be * rejected. * Operations affecting conditional bindings must specify version 3. This can * be either setting a conditional policy, modifying a conditional binding, * or removing a binding (conditional or unconditional) from the stored * conditional policy. * Operations on non-conditional policies may specify any valid value or * leave the field unset. * If no etag is provided in the call to `setIamPolicy`, version compliance * checks against the stored policy is skipped. * * Generated from protobuf field int32 version = 1; * @param int $var * @return $this */ public function setVersion($var) { GPBUtil::checkInt32($var); $this->version = $var; return $this; } /** * Associates a list of `members` to a `role`. Optionally may specify a * `condition` that determines when binding is in effect. * `bindings` with no members will result in an error. * * Generated from protobuf field repeated .google.iam.v1.Binding bindings = 4; * @return \Google\Protobuf\Internal\RepeatedField */ public function getBindings() { return $this->bindings; } /** * Associates a list of `members` to a `role`. Optionally may specify a * `condition` that determines when binding is in effect. * `bindings` with no members will result in an error. * * Generated from protobuf field repeated .google.iam.v1.Binding bindings = 4; * @param \Google\Cloud\Iam\V1\Binding[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setBindings($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Iam\V1\Binding::class); $this->bindings = $arr; return $this; } /** * `etag` is used for optimistic concurrency control as a way to help * prevent simultaneous updates of a policy from overwriting each other. * It is strongly suggested that systems make use of the `etag` in the * read-modify-write cycle to perform policy updates in order to avoid race * conditions: An `etag` is returned in the response to `getIamPolicy`, and * systems are expected to put that etag in the request to `setIamPolicy` to * ensure that their change will be applied to the same version of the policy. * If no `etag` is provided in the call to `setIamPolicy`, then the existing * policy is overwritten. Due to blind-set semantics of an etag-less policy, * 'setIamPolicy' will not fail even if the incoming policy version does not * meet the requirements for modifying the stored policy. * * Generated from protobuf field bytes etag = 3; * @return string */ public function getEtag() { return $this->etag; } /** * `etag` is used for optimistic concurrency control as a way to help * prevent simultaneous updates of a policy from overwriting each other. * It is strongly suggested that systems make use of the `etag` in the * read-modify-write cycle to perform policy updates in order to avoid race * conditions: An `etag` is returned in the response to `getIamPolicy`, and * systems are expected to put that etag in the request to `setIamPolicy` to * ensure that their change will be applied to the same version of the policy. * If no `etag` is provided in the call to `setIamPolicy`, then the existing * policy is overwritten. Due to blind-set semantics of an etag-less policy, * 'setIamPolicy' will not fail even if the incoming policy version does not * meet the requirements for modifying the stored policy. * * Generated from protobuf field bytes etag = 3; * @param string $var * @return $this */ public function setEtag($var) { GPBUtil::checkString($var, False); $this->etag = $var; return $this; } } src/Cloud/Iam/V1/PolicyDelta.php000064400000006426151742727570012350 0ustar00google.iam.v1.PolicyDelta */ class PolicyDelta extends \Google\Protobuf\Internal\Message { /** * The delta for Bindings between two policies. * * Generated from protobuf field repeated .google.iam.v1.BindingDelta binding_deltas = 1; */ private $binding_deltas; /** * The delta for AuditConfigs between two policies. * * Generated from protobuf field repeated .google.iam.v1.AuditConfigDelta audit_config_deltas = 2; */ private $audit_config_deltas; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Google\Cloud\Iam\V1\BindingDelta[]|\Google\Protobuf\Internal\RepeatedField $binding_deltas * The delta for Bindings between two policies. * @type \Google\Cloud\Iam\V1\AuditConfigDelta[]|\Google\Protobuf\Internal\RepeatedField $audit_config_deltas * The delta for AuditConfigs between two policies. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Iam\V1\Policy::initOnce(); parent::__construct($data); } /** * The delta for Bindings between two policies. * * Generated from protobuf field repeated .google.iam.v1.BindingDelta binding_deltas = 1; * @return \Google\Protobuf\Internal\RepeatedField */ public function getBindingDeltas() { return $this->binding_deltas; } /** * The delta for Bindings between two policies. * * Generated from protobuf field repeated .google.iam.v1.BindingDelta binding_deltas = 1; * @param \Google\Cloud\Iam\V1\BindingDelta[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setBindingDeltas($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Iam\V1\BindingDelta::class); $this->binding_deltas = $arr; return $this; } /** * The delta for AuditConfigs between two policies. * * Generated from protobuf field repeated .google.iam.v1.AuditConfigDelta audit_config_deltas = 2; * @return \Google\Protobuf\Internal\RepeatedField */ public function getAuditConfigDeltas() { return $this->audit_config_deltas; } /** * The delta for AuditConfigs between two policies. * * Generated from protobuf field repeated .google.iam.v1.AuditConfigDelta audit_config_deltas = 2; * @param \Google\Cloud\Iam\V1\AuditConfigDelta[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setAuditConfigDeltas($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Iam\V1\AuditConfigDelta::class); $this->audit_config_deltas = $arr; return $this; } } src/Cloud/Iam/V1/SetIamPolicyRequest.php000064400000010165151742727570014045 0ustar00google.iam.v1.SetIamPolicyRequest */ class SetIamPolicyRequest extends \Google\Protobuf\Internal\Message { /** * REQUIRED: The resource for which the policy is being specified. * See the operation documentation for the appropriate value for this field. * * Generated from protobuf field string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { */ private $resource = ''; /** * REQUIRED: The complete policy to be applied to the `resource`. The size of * the policy is limited to a few 10s of KB. An empty policy is a * valid policy but certain Cloud Platform services (such as Projects) * might reject them. * * Generated from protobuf field .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; */ private $policy = null; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $resource * REQUIRED: The resource for which the policy is being specified. * See the operation documentation for the appropriate value for this field. * @type \Google\Cloud\Iam\V1\Policy $policy * REQUIRED: The complete policy to be applied to the `resource`. The size of * the policy is limited to a few 10s of KB. An empty policy is a * valid policy but certain Cloud Platform services (such as Projects) * might reject them. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Iam\V1\IamPolicy::initOnce(); parent::__construct($data); } /** * REQUIRED: The resource for which the policy is being specified. * See the operation documentation for the appropriate value for this field. * * Generated from protobuf field string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @return string */ public function getResource() { return $this->resource; } /** * REQUIRED: The resource for which the policy is being specified. * See the operation documentation for the appropriate value for this field. * * Generated from protobuf field string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @param string $var * @return $this */ public function setResource($var) { GPBUtil::checkString($var, True); $this->resource = $var; return $this; } /** * REQUIRED: The complete policy to be applied to the `resource`. The size of * the policy is limited to a few 10s of KB. An empty policy is a * valid policy but certain Cloud Platform services (such as Projects) * might reject them. * * Generated from protobuf field .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; * @return \Google\Cloud\Iam\V1\Policy */ public function getPolicy() { return $this->policy; } /** * REQUIRED: The complete policy to be applied to the `resource`. The size of * the policy is limited to a few 10s of KB. An empty policy is a * valid policy but certain Cloud Platform services (such as Projects) * might reject them. * * Generated from protobuf field .google.iam.v1.Policy policy = 2 [(.google.api.field_behavior) = REQUIRED]; * @param \Google\Cloud\Iam\V1\Policy $var * @return $this */ public function setPolicy($var) { GPBUtil::checkMessage($var, \Google\Cloud\Iam\V1\Policy::class); $this->policy = $var; return $this; } } src/Cloud/Iam/V1/TestIamPermissionsRequest.php000064400000010365151742727570015307 0ustar00google.iam.v1.TestIamPermissionsRequest */ class TestIamPermissionsRequest extends \Google\Protobuf\Internal\Message { /** * REQUIRED: The resource for which the policy detail is being requested. * See the operation documentation for the appropriate value for this field. * * Generated from protobuf field string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { */ private $resource = ''; /** * The set of permissions to check for the `resource`. Permissions with * wildcards (such as '*' or 'storage.*') are not allowed. For more * information see * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). * * Generated from protobuf field repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; */ private $permissions; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $resource * REQUIRED: The resource for which the policy detail is being requested. * See the operation documentation for the appropriate value for this field. * @type string[]|\Google\Protobuf\Internal\RepeatedField $permissions * The set of permissions to check for the `resource`. Permissions with * wildcards (such as '*' or 'storage.*') are not allowed. For more * information see * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Iam\V1\IamPolicy::initOnce(); parent::__construct($data); } /** * REQUIRED: The resource for which the policy detail is being requested. * See the operation documentation for the appropriate value for this field. * * Generated from protobuf field string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @return string */ public function getResource() { return $this->resource; } /** * REQUIRED: The resource for which the policy detail is being requested. * See the operation documentation for the appropriate value for this field. * * Generated from protobuf field string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { * @param string $var * @return $this */ public function setResource($var) { GPBUtil::checkString($var, True); $this->resource = $var; return $this; } /** * The set of permissions to check for the `resource`. Permissions with * wildcards (such as '*' or 'storage.*') are not allowed. For more * information see * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). * * Generated from protobuf field repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; * @return \Google\Protobuf\Internal\RepeatedField */ public function getPermissions() { return $this->permissions; } /** * The set of permissions to check for the `resource`. Permissions with * wildcards (such as '*' or 'storage.*') are not allowed. For more * information see * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). * * Generated from protobuf field repeated string permissions = 2 [(.google.api.field_behavior) = REQUIRED]; * @param string[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setPermissions($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); $this->permissions = $arr; return $this; } } src/Cloud/Iam/V1/TestIamPermissionsResponse.php000064400000003760151742727570015456 0ustar00google.iam.v1.TestIamPermissionsResponse */ class TestIamPermissionsResponse extends \Google\Protobuf\Internal\Message { /** * A subset of `TestPermissionsRequest.permissions` that the caller is * allowed. * * Generated from protobuf field repeated string permissions = 1; */ private $permissions; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string[]|\Google\Protobuf\Internal\RepeatedField $permissions * A subset of `TestPermissionsRequest.permissions` that the caller is * allowed. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Iam\V1\IamPolicy::initOnce(); parent::__construct($data); } /** * A subset of `TestPermissionsRequest.permissions` that the caller is * allowed. * * Generated from protobuf field repeated string permissions = 1; * @return \Google\Protobuf\Internal\RepeatedField */ public function getPermissions() { return $this->permissions; } /** * A subset of `TestPermissionsRequest.permissions` that the caller is * allowed. * * Generated from protobuf field repeated string permissions = 1; * @param string[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setPermissions($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); $this->permissions = $arr; return $this; } } src/Cloud/Location/GetLocationRequest.php000064400000003120151742727570014460 0ustar00google.cloud.location.GetLocationRequest */ class GetLocationRequest extends \Google\Protobuf\Internal\Message { /** * Resource name for the location. * * Generated from protobuf field string name = 1; */ protected $name = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $name * Resource name for the location. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Cloud\Location\Locations::initOnce(); parent::__construct($data); } /** * Resource name for the location. * * Generated from protobuf field string name = 1; * @return string */ public function getName() { return $this->name; } /** * Resource name for the location. * * Generated from protobuf field string name = 1; * @param string $var * @return $this */ public function setName($var) { GPBUtil::checkString($var, True); $this->name = $var; return $this; } } src/Cloud/Location/ListLocationsRequest.php000064400000010025151742727570015041 0ustar00google.cloud.location.ListLocationsRequest */ class ListLocationsRequest extends \Google\Protobuf\Internal\Message { /** * The resource that owns the locations collection, if applicable. * * Generated from protobuf field string name = 1; */ protected $name = ''; /** * The standard list filter. * * Generated from protobuf field string filter = 2; */ protected $filter = ''; /** * The standard list page size. * * Generated from protobuf field int32 page_size = 3; */ protected $page_size = 0; /** * The standard list page token. * * Generated from protobuf field string page_token = 4; */ protected $page_token = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $name * The resource that owns the locations collection, if applicable. * @type string $filter * The standard list filter. * @type int $page_size * The standard list page size. * @type string $page_token * The standard list page token. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Cloud\Location\Locations::initOnce(); parent::__construct($data); } /** * The resource that owns the locations collection, if applicable. * * Generated from protobuf field string name = 1; * @return string */ public function getName() { return $this->name; } /** * The resource that owns the locations collection, if applicable. * * Generated from protobuf field string name = 1; * @param string $var * @return $this */ public function setName($var) { GPBUtil::checkString($var, True); $this->name = $var; return $this; } /** * The standard list filter. * * Generated from protobuf field string filter = 2; * @return string */ public function getFilter() { return $this->filter; } /** * The standard list filter. * * Generated from protobuf field string filter = 2; * @param string $var * @return $this */ public function setFilter($var) { GPBUtil::checkString($var, True); $this->filter = $var; return $this; } /** * The standard list page size. * * Generated from protobuf field int32 page_size = 3; * @return int */ public function getPageSize() { return $this->page_size; } /** * The standard list page size. * * Generated from protobuf field int32 page_size = 3; * @param int $var * @return $this */ public function setPageSize($var) { GPBUtil::checkInt32($var); $this->page_size = $var; return $this; } /** * The standard list page token. * * Generated from protobuf field string page_token = 4; * @return string */ public function getPageToken() { return $this->page_token; } /** * The standard list page token. * * Generated from protobuf field string page_token = 4; * @param string $var * @return $this */ public function setPageToken($var) { GPBUtil::checkString($var, True); $this->page_token = $var; return $this; } } src/Cloud/Location/ListLocationsResponse.php000064400000005761151742727570015222 0ustar00google.cloud.location.ListLocationsResponse */ class ListLocationsResponse extends \Google\Protobuf\Internal\Message { /** * A list of locations that matches the specified filter in the request. * * Generated from protobuf field repeated .google.cloud.location.Location locations = 1; */ private $locations; /** * The standard List next-page token. * * Generated from protobuf field string next_page_token = 2; */ protected $next_page_token = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Google\Cloud\Location\Location[]|\Google\Protobuf\Internal\RepeatedField $locations * A list of locations that matches the specified filter in the request. * @type string $next_page_token * The standard List next-page token. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Cloud\Location\Locations::initOnce(); parent::__construct($data); } /** * A list of locations that matches the specified filter in the request. * * Generated from protobuf field repeated .google.cloud.location.Location locations = 1; * @return \Google\Protobuf\Internal\RepeatedField */ public function getLocations() { return $this->locations; } /** * A list of locations that matches the specified filter in the request. * * Generated from protobuf field repeated .google.cloud.location.Location locations = 1; * @param \Google\Cloud\Location\Location[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setLocations($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Location\Location::class); $this->locations = $arr; return $this; } /** * The standard List next-page token. * * Generated from protobuf field string next_page_token = 2; * @return string */ public function getNextPageToken() { return $this->next_page_token; } /** * The standard List next-page token. * * Generated from protobuf field string next_page_token = 2; * @param string $var * @return $this */ public function setNextPageToken($var) { GPBUtil::checkString($var, True); $this->next_page_token = $var; return $this; } } src/Cloud/Location/Location.php000064400000015121151742727570012453 0ustar00google.cloud.location.Location */ class Location extends \Google\Protobuf\Internal\Message { /** * Resource name for the location, which may vary between implementations. * For example: `"projects/example-project/locations/us-east1"` * * Generated from protobuf field string name = 1; */ protected $name = ''; /** * The canonical id for this location. For example: `"us-east1"`. * * Generated from protobuf field string location_id = 4; */ protected $location_id = ''; /** * The friendly name for this location, typically a nearby city name. * For example, "Tokyo". * * Generated from protobuf field string display_name = 5; */ protected $display_name = ''; /** * Cross-service attributes for the location. For example * {"cloud.googleapis.com/region": "us-east1"} * * Generated from protobuf field map labels = 2; */ private $labels; /** * Service-specific metadata. For example the available capacity at the given * location. * * Generated from protobuf field .google.protobuf.Any metadata = 3; */ protected $metadata = null; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $name * Resource name for the location, which may vary between implementations. * For example: `"projects/example-project/locations/us-east1"` * @type string $location_id * The canonical id for this location. For example: `"us-east1"`. * @type string $display_name * The friendly name for this location, typically a nearby city name. * For example, "Tokyo". * @type array|\Google\Protobuf\Internal\MapField $labels * Cross-service attributes for the location. For example * {"cloud.googleapis.com/region": "us-east1"} * @type \Google\Protobuf\Any $metadata * Service-specific metadata. For example the available capacity at the given * location. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Cloud\Location\Locations::initOnce(); parent::__construct($data); } /** * Resource name for the location, which may vary between implementations. * For example: `"projects/example-project/locations/us-east1"` * * Generated from protobuf field string name = 1; * @return string */ public function getName() { return $this->name; } /** * Resource name for the location, which may vary between implementations. * For example: `"projects/example-project/locations/us-east1"` * * Generated from protobuf field string name = 1; * @param string $var * @return $this */ public function setName($var) { GPBUtil::checkString($var, True); $this->name = $var; return $this; } /** * The canonical id for this location. For example: `"us-east1"`. * * Generated from protobuf field string location_id = 4; * @return string */ public function getLocationId() { return $this->location_id; } /** * The canonical id for this location. For example: `"us-east1"`. * * Generated from protobuf field string location_id = 4; * @param string $var * @return $this */ public function setLocationId($var) { GPBUtil::checkString($var, True); $this->location_id = $var; return $this; } /** * The friendly name for this location, typically a nearby city name. * For example, "Tokyo". * * Generated from protobuf field string display_name = 5; * @return string */ public function getDisplayName() { return $this->display_name; } /** * The friendly name for this location, typically a nearby city name. * For example, "Tokyo". * * Generated from protobuf field string display_name = 5; * @param string $var * @return $this */ public function setDisplayName($var) { GPBUtil::checkString($var, True); $this->display_name = $var; return $this; } /** * Cross-service attributes for the location. For example * {"cloud.googleapis.com/region": "us-east1"} * * Generated from protobuf field map labels = 2; * @return \Google\Protobuf\Internal\MapField */ public function getLabels() { return $this->labels; } /** * Cross-service attributes for the location. For example * {"cloud.googleapis.com/region": "us-east1"} * * Generated from protobuf field map labels = 2; * @param array|\Google\Protobuf\Internal\MapField $var * @return $this */ public function setLabels($var) { $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); $this->labels = $arr; return $this; } /** * Service-specific metadata. For example the available capacity at the given * location. * * Generated from protobuf field .google.protobuf.Any metadata = 3; * @return \Google\Protobuf\Any|null */ public function getMetadata() { return $this->metadata; } public function hasMetadata() { return isset($this->metadata); } public function clearMetadata() { unset($this->metadata); } /** * Service-specific metadata. For example the available capacity at the given * location. * * Generated from protobuf field .google.protobuf.Any metadata = 3; * @param \Google\Protobuf\Any $var * @return $this */ public function setMetadata($var) { GPBUtil::checkMessage($var, \Google\Protobuf\Any::class); $this->metadata = $var; return $this; } } src/Cloud/Logging/Type/HttpRequest.php000064400000044002151742727570013732 0ustar00google.logging.type.HttpRequest */ class HttpRequest extends \Google\Protobuf\Internal\Message { /** * The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`. * * Generated from protobuf field string request_method = 1; */ private $request_method = ''; /** * The scheme (http, https), the host name, the path and the query * portion of the URL that was requested. * Example: `"http://example.com/some/info?color=red"`. * * Generated from protobuf field string request_url = 2; */ private $request_url = ''; /** * The size of the HTTP request message in bytes, including the request * headers and the request body. * * Generated from protobuf field int64 request_size = 3; */ private $request_size = 0; /** * The response code indicating the status of response. * Examples: 200, 404. * * Generated from protobuf field int32 status = 4; */ private $status = 0; /** * The size of the HTTP response message sent back to the client, in bytes, * including the response headers and the response body. * * Generated from protobuf field int64 response_size = 5; */ private $response_size = 0; /** * The user agent sent by the client. Example: * `"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET CLR 1.0.3705)"`. * * Generated from protobuf field string user_agent = 6; */ private $user_agent = ''; /** * The IP address (IPv4 or IPv6) of the client that issued the HTTP * request. Examples: `"192.168.1.1"`, `"FE80::0202:B3FF:FE1E:8329"`. * * Generated from protobuf field string remote_ip = 7; */ private $remote_ip = ''; /** * The IP address (IPv4 or IPv6) of the origin server that the request was * sent to. * * Generated from protobuf field string server_ip = 13; */ private $server_ip = ''; /** * The referer URL of the request, as defined in * [HTTP/1.1 Header Field Definitions](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html). * * Generated from protobuf field string referer = 8; */ private $referer = ''; /** * The request processing latency on the server, from the time the request was * received until the response was sent. * * Generated from protobuf field .google.protobuf.Duration latency = 14; */ private $latency = null; /** * Whether or not a cache lookup was attempted. * * Generated from protobuf field bool cache_lookup = 11; */ private $cache_lookup = false; /** * Whether or not an entity was served from cache * (with or without validation). * * Generated from protobuf field bool cache_hit = 9; */ private $cache_hit = false; /** * Whether or not the response was validated with the origin server before * being served from cache. This field is only meaningful if `cache_hit` is * True. * * Generated from protobuf field bool cache_validated_with_origin_server = 10; */ private $cache_validated_with_origin_server = false; /** * The number of HTTP response bytes inserted into cache. Set only when a * cache fill was attempted. * * Generated from protobuf field int64 cache_fill_bytes = 12; */ private $cache_fill_bytes = 0; /** * Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket" * * Generated from protobuf field string protocol = 15; */ private $protocol = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $request_method * The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`. * @type string $request_url * The scheme (http, https), the host name, the path and the query * portion of the URL that was requested. * Example: `"http://example.com/some/info?color=red"`. * @type int|string $request_size * The size of the HTTP request message in bytes, including the request * headers and the request body. * @type int $status * The response code indicating the status of response. * Examples: 200, 404. * @type int|string $response_size * The size of the HTTP response message sent back to the client, in bytes, * including the response headers and the response body. * @type string $user_agent * The user agent sent by the client. Example: * `"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET CLR 1.0.3705)"`. * @type string $remote_ip * The IP address (IPv4 or IPv6) of the client that issued the HTTP * request. Examples: `"192.168.1.1"`, `"FE80::0202:B3FF:FE1E:8329"`. * @type string $server_ip * The IP address (IPv4 or IPv6) of the origin server that the request was * sent to. * @type string $referer * The referer URL of the request, as defined in * [HTTP/1.1 Header Field Definitions](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html). * @type \Google\Protobuf\Duration $latency * The request processing latency on the server, from the time the request was * received until the response was sent. * @type bool $cache_lookup * Whether or not a cache lookup was attempted. * @type bool $cache_hit * Whether or not an entity was served from cache * (with or without validation). * @type bool $cache_validated_with_origin_server * Whether or not the response was validated with the origin server before * being served from cache. This field is only meaningful if `cache_hit` is * True. * @type int|string $cache_fill_bytes * The number of HTTP response bytes inserted into cache. Set only when a * cache fill was attempted. * @type string $protocol * Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket" * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Logging\Type\HttpRequest::initOnce(); parent::__construct($data); } /** * The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`. * * Generated from protobuf field string request_method = 1; * @return string */ public function getRequestMethod() { return $this->request_method; } /** * The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`. * * Generated from protobuf field string request_method = 1; * @param string $var * @return $this */ public function setRequestMethod($var) { GPBUtil::checkString($var, True); $this->request_method = $var; return $this; } /** * The scheme (http, https), the host name, the path and the query * portion of the URL that was requested. * Example: `"http://example.com/some/info?color=red"`. * * Generated from protobuf field string request_url = 2; * @return string */ public function getRequestUrl() { return $this->request_url; } /** * The scheme (http, https), the host name, the path and the query * portion of the URL that was requested. * Example: `"http://example.com/some/info?color=red"`. * * Generated from protobuf field string request_url = 2; * @param string $var * @return $this */ public function setRequestUrl($var) { GPBUtil::checkString($var, True); $this->request_url = $var; return $this; } /** * The size of the HTTP request message in bytes, including the request * headers and the request body. * * Generated from protobuf field int64 request_size = 3; * @return int|string */ public function getRequestSize() { return $this->request_size; } /** * The size of the HTTP request message in bytes, including the request * headers and the request body. * * Generated from protobuf field int64 request_size = 3; * @param int|string $var * @return $this */ public function setRequestSize($var) { GPBUtil::checkInt64($var); $this->request_size = $var; return $this; } /** * The response code indicating the status of response. * Examples: 200, 404. * * Generated from protobuf field int32 status = 4; * @return int */ public function getStatus() { return $this->status; } /** * The response code indicating the status of response. * Examples: 200, 404. * * Generated from protobuf field int32 status = 4; * @param int $var * @return $this */ public function setStatus($var) { GPBUtil::checkInt32($var); $this->status = $var; return $this; } /** * The size of the HTTP response message sent back to the client, in bytes, * including the response headers and the response body. * * Generated from protobuf field int64 response_size = 5; * @return int|string */ public function getResponseSize() { return $this->response_size; } /** * The size of the HTTP response message sent back to the client, in bytes, * including the response headers and the response body. * * Generated from protobuf field int64 response_size = 5; * @param int|string $var * @return $this */ public function setResponseSize($var) { GPBUtil::checkInt64($var); $this->response_size = $var; return $this; } /** * The user agent sent by the client. Example: * `"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET CLR 1.0.3705)"`. * * Generated from protobuf field string user_agent = 6; * @return string */ public function getUserAgent() { return $this->user_agent; } /** * The user agent sent by the client. Example: * `"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET CLR 1.0.3705)"`. * * Generated from protobuf field string user_agent = 6; * @param string $var * @return $this */ public function setUserAgent($var) { GPBUtil::checkString($var, True); $this->user_agent = $var; return $this; } /** * The IP address (IPv4 or IPv6) of the client that issued the HTTP * request. Examples: `"192.168.1.1"`, `"FE80::0202:B3FF:FE1E:8329"`. * * Generated from protobuf field string remote_ip = 7; * @return string */ public function getRemoteIp() { return $this->remote_ip; } /** * The IP address (IPv4 or IPv6) of the client that issued the HTTP * request. Examples: `"192.168.1.1"`, `"FE80::0202:B3FF:FE1E:8329"`. * * Generated from protobuf field string remote_ip = 7; * @param string $var * @return $this */ public function setRemoteIp($var) { GPBUtil::checkString($var, True); $this->remote_ip = $var; return $this; } /** * The IP address (IPv4 or IPv6) of the origin server that the request was * sent to. * * Generated from protobuf field string server_ip = 13; * @return string */ public function getServerIp() { return $this->server_ip; } /** * The IP address (IPv4 or IPv6) of the origin server that the request was * sent to. * * Generated from protobuf field string server_ip = 13; * @param string $var * @return $this */ public function setServerIp($var) { GPBUtil::checkString($var, True); $this->server_ip = $var; return $this; } /** * The referer URL of the request, as defined in * [HTTP/1.1 Header Field Definitions](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html). * * Generated from protobuf field string referer = 8; * @return string */ public function getReferer() { return $this->referer; } /** * The referer URL of the request, as defined in * [HTTP/1.1 Header Field Definitions](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html). * * Generated from protobuf field string referer = 8; * @param string $var * @return $this */ public function setReferer($var) { GPBUtil::checkString($var, True); $this->referer = $var; return $this; } /** * The request processing latency on the server, from the time the request was * received until the response was sent. * * Generated from protobuf field .google.protobuf.Duration latency = 14; * @return \Google\Protobuf\Duration */ public function getLatency() { return $this->latency; } /** * The request processing latency on the server, from the time the request was * received until the response was sent. * * Generated from protobuf field .google.protobuf.Duration latency = 14; * @param \Google\Protobuf\Duration $var * @return $this */ public function setLatency($var) { GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); $this->latency = $var; return $this; } /** * Whether or not a cache lookup was attempted. * * Generated from protobuf field bool cache_lookup = 11; * @return bool */ public function getCacheLookup() { return $this->cache_lookup; } /** * Whether or not a cache lookup was attempted. * * Generated from protobuf field bool cache_lookup = 11; * @param bool $var * @return $this */ public function setCacheLookup($var) { GPBUtil::checkBool($var); $this->cache_lookup = $var; return $this; } /** * Whether or not an entity was served from cache * (with or without validation). * * Generated from protobuf field bool cache_hit = 9; * @return bool */ public function getCacheHit() { return $this->cache_hit; } /** * Whether or not an entity was served from cache * (with or without validation). * * Generated from protobuf field bool cache_hit = 9; * @param bool $var * @return $this */ public function setCacheHit($var) { GPBUtil::checkBool($var); $this->cache_hit = $var; return $this; } /** * Whether or not the response was validated with the origin server before * being served from cache. This field is only meaningful if `cache_hit` is * True. * * Generated from protobuf field bool cache_validated_with_origin_server = 10; * @return bool */ public function getCacheValidatedWithOriginServer() { return $this->cache_validated_with_origin_server; } /** * Whether or not the response was validated with the origin server before * being served from cache. This field is only meaningful if `cache_hit` is * True. * * Generated from protobuf field bool cache_validated_with_origin_server = 10; * @param bool $var * @return $this */ public function setCacheValidatedWithOriginServer($var) { GPBUtil::checkBool($var); $this->cache_validated_with_origin_server = $var; return $this; } /** * The number of HTTP response bytes inserted into cache. Set only when a * cache fill was attempted. * * Generated from protobuf field int64 cache_fill_bytes = 12; * @return int|string */ public function getCacheFillBytes() { return $this->cache_fill_bytes; } /** * The number of HTTP response bytes inserted into cache. Set only when a * cache fill was attempted. * * Generated from protobuf field int64 cache_fill_bytes = 12; * @param int|string $var * @return $this */ public function setCacheFillBytes($var) { GPBUtil::checkInt64($var); $this->cache_fill_bytes = $var; return $this; } /** * Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket" * * Generated from protobuf field string protocol = 15; * @return string */ public function getProtocol() { return $this->protocol; } /** * Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket" * * Generated from protobuf field string protocol = 15; * @param string $var * @return $this */ public function setProtocol($var) { GPBUtil::checkString($var, True); $this->protocol = $var; return $this; } } src/Cloud/Logging/Type/LogSeverity.php000064400000007010151742727570013714 0ustar00 DEBUG AND severity <= WARNING * If you are writing log entries, you should map other severity encodings to * one of these standard levels. For example, you might map all of Java's FINE, * FINER, and FINEST levels to `LogSeverity.DEBUG`. You can preserve the * original severity level in the log entry payload if you wish. * * Protobuf type google.logging.type.LogSeverity */ class LogSeverity { /** * (0) The log entry has no assigned severity level. * * Generated from protobuf enum DEFAULT = 0; */ const PBDEFAULT = 0; /** * (100) Debug or trace information. * * Generated from protobuf enum DEBUG = 100; */ const DEBUG = 100; /** * (200) Routine information, such as ongoing status or performance. * * Generated from protobuf enum INFO = 200; */ const INFO = 200; /** * (300) Normal but significant events, such as start up, shut down, or * a configuration change. * * Generated from protobuf enum NOTICE = 300; */ const NOTICE = 300; /** * (400) Warning events might cause problems. * * Generated from protobuf enum WARNING = 400; */ const WARNING = 400; /** * (500) Error events are likely to cause problems. * * Generated from protobuf enum ERROR = 500; */ const ERROR = 500; /** * (600) Critical events cause more severe problems or outages. * * Generated from protobuf enum CRITICAL = 600; */ const CRITICAL = 600; /** * (700) A person must take an action immediately. * * Generated from protobuf enum ALERT = 700; */ const ALERT = 700; /** * (800) One or more systems are unusable. * * Generated from protobuf enum EMERGENCY = 800; */ const EMERGENCY = 800; private static $valueToName = [ self::PBDEFAULT => 'PBDEFAULT', self::DEBUG => 'DEBUG', self::INFO => 'INFO', self::NOTICE => 'NOTICE', self::WARNING => 'WARNING', self::ERROR => 'ERROR', self::CRITICAL => 'CRITICAL', self::ALERT => 'ALERT', self::EMERGENCY => 'EMERGENCY', ]; public static function name($value) { if (!isset(self::$valueToName[$value])) { throw new UnexpectedValueException(sprintf( 'Enum %s has no name defined for value %s', __CLASS__, $value)); } return self::$valueToName[$value]; } public static function value($name) { $const = __CLASS__ . '::' . strtoupper($name); if (!defined($const)) { throw new UnexpectedValueException(sprintf( 'Enum %s has no value defined for name %s', __CLASS__, $name)); } return constant($const); } } src/Cloud/OperationResponseMapping.php000064400000005473151742727570014137 0ustar00google.cloud.OperationResponseMapping */ class OperationResponseMapping { /** * Do not use. * * Generated from protobuf enum UNDEFINED = 0; */ const UNDEFINED = 0; /** * A field in an API-specific (custom) Operation object which carries the same * meaning as google.longrunning.Operation.name. * * Generated from protobuf enum NAME = 1; */ const NAME = 1; /** * A field in an API-specific (custom) Operation object which carries the same * meaning as google.longrunning.Operation.done. If the annotated field is of * an enum type, `annotated_field_name == EnumType.DONE` semantics should be * equivalent to `Operation.done == true`. If the annotated field is of type * boolean, then it should follow the same semantics as Operation.done. * Otherwise, a non-empty value should be treated as `Operation.done == true`. * * Generated from protobuf enum STATUS = 2; */ const STATUS = 2; /** * A field in an API-specific (custom) Operation object which carries the same * meaning as google.longrunning.Operation.error.code. * * Generated from protobuf enum ERROR_CODE = 3; */ const ERROR_CODE = 3; /** * A field in an API-specific (custom) Operation object which carries the same * meaning as google.longrunning.Operation.error.message. * * Generated from protobuf enum ERROR_MESSAGE = 4; */ const ERROR_MESSAGE = 4; private static $valueToName = [ self::UNDEFINED => 'UNDEFINED', self::NAME => 'NAME', self::STATUS => 'STATUS', self::ERROR_CODE => 'ERROR_CODE', self::ERROR_MESSAGE => 'ERROR_MESSAGE', ]; public static function name($value) { if (!isset(self::$valueToName[$value])) { throw new UnexpectedValueException(sprintf( 'Enum %s has no name defined for value %s', __CLASS__, $value)); } return self::$valueToName[$value]; } public static function value($name) { $const = __CLASS__ . '::' . strtoupper($name); if (!defined($const)) { throw new UnexpectedValueException(sprintf( 'Enum %s has no value defined for name %s', __CLASS__, $name)); } return constant($const); } } src/Iam/V1/Logging/AuditData.php000064400000003767151742727570012324 0ustar00google.iam.v1.logging.AuditData */ class AuditData extends \Google\Protobuf\Internal\Message { /** * Policy delta between the original policy and the newly set policy. * * Generated from protobuf field .google.iam.v1.PolicyDelta policy_delta = 2; */ private $policy_delta = null; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Google\Cloud\Iam\V1\PolicyDelta $policy_delta * Policy delta between the original policy and the newly set policy. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Iam\V1\Logging\AuditData::initOnce(); parent::__construct($data); } /** * Policy delta between the original policy and the newly set policy. * * Generated from protobuf field .google.iam.v1.PolicyDelta policy_delta = 2; * @return \Google\Cloud\Iam\V1\PolicyDelta */ public function getPolicyDelta() { return $this->policy_delta; } /** * Policy delta between the original policy and the newly set policy. * * Generated from protobuf field .google.iam.v1.PolicyDelta policy_delta = 2; * @param \Google\Cloud\Iam\V1\PolicyDelta $var * @return $this */ public function setPolicyDelta($var) { GPBUtil::checkMessage($var, \Google\Cloud\Iam\V1\PolicyDelta::class); $this->policy_delta = $var; return $this; } } src/LongRunning/CancelOperationRequest.php000064400000003243151742727570014746 0ustar00google.longrunning.CancelOperationRequest */ class CancelOperationRequest extends \Google\Protobuf\Internal\Message { /** * The name of the operation resource to be cancelled. * * Generated from protobuf field string name = 1; */ private $name = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $name * The name of the operation resource to be cancelled. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Longrunning\Operations::initOnce(); parent::__construct($data); } /** * The name of the operation resource to be cancelled. * * Generated from protobuf field string name = 1; * @return string */ public function getName() { return $this->name; } /** * The name of the operation resource to be cancelled. * * Generated from protobuf field string name = 1; * @param string $var * @return $this */ public function setName($var) { GPBUtil::checkString($var, True); $this->name = $var; return $this; } } src/LongRunning/DeleteOperationRequest.php000064400000003233151742727570014762 0ustar00google.longrunning.DeleteOperationRequest */ class DeleteOperationRequest extends \Google\Protobuf\Internal\Message { /** * The name of the operation resource to be deleted. * * Generated from protobuf field string name = 1; */ private $name = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $name * The name of the operation resource to be deleted. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Longrunning\Operations::initOnce(); parent::__construct($data); } /** * The name of the operation resource to be deleted. * * Generated from protobuf field string name = 1; * @return string */ public function getName() { return $this->name; } /** * The name of the operation resource to be deleted. * * Generated from protobuf field string name = 1; * @param string $var * @return $this */ public function setName($var) { GPBUtil::checkString($var, True); $this->name = $var; return $this; } } src/LongRunning/GetOperationRequest.php000064400000003127151742727570014301 0ustar00google.longrunning.GetOperationRequest */ class GetOperationRequest extends \Google\Protobuf\Internal\Message { /** * The name of the operation resource. * * Generated from protobuf field string name = 1; */ private $name = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $name * The name of the operation resource. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Longrunning\Operations::initOnce(); parent::__construct($data); } /** * The name of the operation resource. * * Generated from protobuf field string name = 1; * @return string */ public function getName() { return $this->name; } /** * The name of the operation resource. * * Generated from protobuf field string name = 1; * @param string $var * @return $this */ public function setName($var) { GPBUtil::checkString($var, True); $this->name = $var; return $this; } } src/LongRunning/ListOperationsRequest.php000064400000007636151742727570014671 0ustar00google.longrunning.ListOperationsRequest */ class ListOperationsRequest extends \Google\Protobuf\Internal\Message { /** * The name of the operation collection. * * Generated from protobuf field string name = 4; */ private $name = ''; /** * The standard list filter. * * Generated from protobuf field string filter = 1; */ private $filter = ''; /** * The standard list page size. * * Generated from protobuf field int32 page_size = 2; */ private $page_size = 0; /** * The standard list page token. * * Generated from protobuf field string page_token = 3; */ private $page_token = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $name * The name of the operation collection. * @type string $filter * The standard list filter. * @type int $page_size * The standard list page size. * @type string $page_token * The standard list page token. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Longrunning\Operations::initOnce(); parent::__construct($data); } /** * The name of the operation collection. * * Generated from protobuf field string name = 4; * @return string */ public function getName() { return $this->name; } /** * The name of the operation collection. * * Generated from protobuf field string name = 4; * @param string $var * @return $this */ public function setName($var) { GPBUtil::checkString($var, True); $this->name = $var; return $this; } /** * The standard list filter. * * Generated from protobuf field string filter = 1; * @return string */ public function getFilter() { return $this->filter; } /** * The standard list filter. * * Generated from protobuf field string filter = 1; * @param string $var * @return $this */ public function setFilter($var) { GPBUtil::checkString($var, True); $this->filter = $var; return $this; } /** * The standard list page size. * * Generated from protobuf field int32 page_size = 2; * @return int */ public function getPageSize() { return $this->page_size; } /** * The standard list page size. * * Generated from protobuf field int32 page_size = 2; * @param int $var * @return $this */ public function setPageSize($var) { GPBUtil::checkInt32($var); $this->page_size = $var; return $this; } /** * The standard list page token. * * Generated from protobuf field string page_token = 3; * @return string */ public function getPageToken() { return $this->page_token; } /** * The standard list page token. * * Generated from protobuf field string page_token = 3; * @param string $var * @return $this */ public function setPageToken($var) { GPBUtil::checkString($var, True); $this->page_token = $var; return $this; } } src/LongRunning/ListOperationsResponse.php000064400000005751151742727570015033 0ustar00google.longrunning.ListOperationsResponse */ class ListOperationsResponse extends \Google\Protobuf\Internal\Message { /** * A list of operations that matches the specified filter in the request. * * Generated from protobuf field repeated .google.longrunning.Operation operations = 1; */ private $operations; /** * The standard List next-page token. * * Generated from protobuf field string next_page_token = 2; */ private $next_page_token = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Google\LongRunning\Operation[]|\Google\Protobuf\Internal\RepeatedField $operations * A list of operations that matches the specified filter in the request. * @type string $next_page_token * The standard List next-page token. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Longrunning\Operations::initOnce(); parent::__construct($data); } /** * A list of operations that matches the specified filter in the request. * * Generated from protobuf field repeated .google.longrunning.Operation operations = 1; * @return \Google\Protobuf\Internal\RepeatedField */ public function getOperations() { return $this->operations; } /** * A list of operations that matches the specified filter in the request. * * Generated from protobuf field repeated .google.longrunning.Operation operations = 1; * @param \Google\LongRunning\Operation[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setOperations($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\LongRunning\Operation::class); $this->operations = $arr; return $this; } /** * The standard List next-page token. * * Generated from protobuf field string next_page_token = 2; * @return string */ public function getNextPageToken() { return $this->next_page_token; } /** * The standard List next-page token. * * Generated from protobuf field string next_page_token = 2; * @param string $var * @return $this */ public function setNextPageToken($var) { GPBUtil::checkString($var, True); $this->next_page_token = $var; return $this; } } src/LongRunning/Operation.php000064400000021505151742727570012270 0ustar00google.longrunning.Operation */ class Operation extends \Google\Protobuf\Internal\Message { /** * The server-assigned name, which is only unique within the same service that * originally returns it. If you use the default HTTP mapping, the * `name` should have the format of `operations/some/unique/name`. * * Generated from protobuf field string name = 1; */ private $name = ''; /** * Service-specific metadata associated with the operation. It typically * contains progress information and common metadata such as create time. * Some services might not provide such metadata. Any method that returns a * long-running operation should document the metadata type, if any. * * Generated from protobuf field .google.protobuf.Any metadata = 2; */ private $metadata = null; /** * If the value is `false`, it means the operation is still in progress. * If true, the operation is completed, and either `error` or `response` is * available. * * Generated from protobuf field bool done = 3; */ private $done = false; protected $result; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $name * The server-assigned name, which is only unique within the same service that * originally returns it. If you use the default HTTP mapping, the * `name` should have the format of `operations/some/unique/name`. * @type \Google\Protobuf\Any $metadata * Service-specific metadata associated with the operation. It typically * contains progress information and common metadata such as create time. * Some services might not provide such metadata. Any method that returns a * long-running operation should document the metadata type, if any. * @type bool $done * If the value is `false`, it means the operation is still in progress. * If true, the operation is completed, and either `error` or `response` is * available. * @type \Google\Rpc\Status $error * The error result of the operation in case of failure or cancellation. * @type \Google\Protobuf\Any $response * The normal response of the operation in case of success. If the original * method returns no data on success, such as `Delete`, the response is * `google.protobuf.Empty`. If the original method is standard * `Get`/`Create`/`Update`, the response should be the resource. For other * methods, the response should have the type `XxxResponse`, where `Xxx` * is the original method name. For example, if the original method name * is `TakeSnapshot()`, the inferred response type is * `TakeSnapshotResponse`. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Longrunning\Operations::initOnce(); parent::__construct($data); } /** * The server-assigned name, which is only unique within the same service that * originally returns it. If you use the default HTTP mapping, the * `name` should have the format of `operations/some/unique/name`. * * Generated from protobuf field string name = 1; * @return string */ public function getName() { return $this->name; } /** * The server-assigned name, which is only unique within the same service that * originally returns it. If you use the default HTTP mapping, the * `name` should have the format of `operations/some/unique/name`. * * Generated from protobuf field string name = 1; * @param string $var * @return $this */ public function setName($var) { GPBUtil::checkString($var, True); $this->name = $var; return $this; } /** * Service-specific metadata associated with the operation. It typically * contains progress information and common metadata such as create time. * Some services might not provide such metadata. Any method that returns a * long-running operation should document the metadata type, if any. * * Generated from protobuf field .google.protobuf.Any metadata = 2; * @return \Google\Protobuf\Any */ public function getMetadata() { return $this->metadata; } /** * Service-specific metadata associated with the operation. It typically * contains progress information and common metadata such as create time. * Some services might not provide such metadata. Any method that returns a * long-running operation should document the metadata type, if any. * * Generated from protobuf field .google.protobuf.Any metadata = 2; * @param \Google\Protobuf\Any $var * @return $this */ public function setMetadata($var) { GPBUtil::checkMessage($var, \Google\Protobuf\Any::class); $this->metadata = $var; return $this; } /** * If the value is `false`, it means the operation is still in progress. * If true, the operation is completed, and either `error` or `response` is * available. * * Generated from protobuf field bool done = 3; * @return bool */ public function getDone() { return $this->done; } /** * If the value is `false`, it means the operation is still in progress. * If true, the operation is completed, and either `error` or `response` is * available. * * Generated from protobuf field bool done = 3; * @param bool $var * @return $this */ public function setDone($var) { GPBUtil::checkBool($var); $this->done = $var; return $this; } /** * The error result of the operation in case of failure or cancellation. * * Generated from protobuf field .google.rpc.Status error = 4; * @return \Google\Rpc\Status */ public function getError() { return $this->readOneof(4); } /** * The error result of the operation in case of failure or cancellation. * * Generated from protobuf field .google.rpc.Status error = 4; * @param \Google\Rpc\Status $var * @return $this */ public function setError($var) { GPBUtil::checkMessage($var, \Google\Rpc\Status::class); $this->writeOneof(4, $var); return $this; } /** * The normal response of the operation in case of success. If the original * method returns no data on success, such as `Delete`, the response is * `google.protobuf.Empty`. If the original method is standard * `Get`/`Create`/`Update`, the response should be the resource. For other * methods, the response should have the type `XxxResponse`, where `Xxx` * is the original method name. For example, if the original method name * is `TakeSnapshot()`, the inferred response type is * `TakeSnapshotResponse`. * * Generated from protobuf field .google.protobuf.Any response = 5; * @return \Google\Protobuf\Any */ public function getResponse() { return $this->readOneof(5); } /** * The normal response of the operation in case of success. If the original * method returns no data on success, such as `Delete`, the response is * `google.protobuf.Empty`. If the original method is standard * `Get`/`Create`/`Update`, the response should be the resource. For other * methods, the response should have the type `XxxResponse`, where `Xxx` * is the original method name. For example, if the original method name * is `TakeSnapshot()`, the inferred response type is * `TakeSnapshotResponse`. * * Generated from protobuf field .google.protobuf.Any response = 5; * @param \Google\Protobuf\Any $var * @return $this */ public function setResponse($var) { GPBUtil::checkMessage($var, \Google\Protobuf\Any::class); $this->writeOneof(5, $var); return $this; } /** * @return string */ public function getResult() { return $this->whichOneof("result"); } } src/LongRunning/OperationInfo.php000064400000012303151742727570013100 0ustar00google.longrunning.OperationInfo */ class OperationInfo extends \Google\Protobuf\Internal\Message { /** * Required. The message name of the primary return type for this * long-running operation. * This type will be used to deserialize the LRO's response. * If the response is in a different package from the rpc, a fully-qualified * message name must be used (e.g. `google.protobuf.Struct`). * Note: Altering this value constitutes a breaking change. * * Generated from protobuf field string response_type = 1; */ private $response_type = ''; /** * Required. The message name of the metadata type for this long-running * operation. * If the response is in a different package from the rpc, a fully-qualified * message name must be used (e.g. `google.protobuf.Struct`). * Note: Altering this value constitutes a breaking change. * * Generated from protobuf field string metadata_type = 2; */ private $metadata_type = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $response_type * Required. The message name of the primary return type for this * long-running operation. * This type will be used to deserialize the LRO's response. * If the response is in a different package from the rpc, a fully-qualified * message name must be used (e.g. `google.protobuf.Struct`). * Note: Altering this value constitutes a breaking change. * @type string $metadata_type * Required. The message name of the metadata type for this long-running * operation. * If the response is in a different package from the rpc, a fully-qualified * message name must be used (e.g. `google.protobuf.Struct`). * Note: Altering this value constitutes a breaking change. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Longrunning\Operations::initOnce(); parent::__construct($data); } /** * Required. The message name of the primary return type for this * long-running operation. * This type will be used to deserialize the LRO's response. * If the response is in a different package from the rpc, a fully-qualified * message name must be used (e.g. `google.protobuf.Struct`). * Note: Altering this value constitutes a breaking change. * * Generated from protobuf field string response_type = 1; * @return string */ public function getResponseType() { return $this->response_type; } /** * Required. The message name of the primary return type for this * long-running operation. * This type will be used to deserialize the LRO's response. * If the response is in a different package from the rpc, a fully-qualified * message name must be used (e.g. `google.protobuf.Struct`). * Note: Altering this value constitutes a breaking change. * * Generated from protobuf field string response_type = 1; * @param string $var * @return $this */ public function setResponseType($var) { GPBUtil::checkString($var, True); $this->response_type = $var; return $this; } /** * Required. The message name of the metadata type for this long-running * operation. * If the response is in a different package from the rpc, a fully-qualified * message name must be used (e.g. `google.protobuf.Struct`). * Note: Altering this value constitutes a breaking change. * * Generated from protobuf field string metadata_type = 2; * @return string */ public function getMetadataType() { return $this->metadata_type; } /** * Required. The message name of the metadata type for this long-running * operation. * If the response is in a different package from the rpc, a fully-qualified * message name must be used (e.g. `google.protobuf.Struct`). * Note: Altering this value constitutes a breaking change. * * Generated from protobuf field string metadata_type = 2; * @param string $var * @return $this */ public function setMetadataType($var) { GPBUtil::checkString($var, True); $this->metadata_type = $var; return $this; } } src/Rpc/BadRequest.php000064400000004123151742727570010650 0ustar00google.rpc.BadRequest */ class BadRequest extends \Google\Protobuf\Internal\Message { /** * Describes all violations in a client request. * * Generated from protobuf field repeated .google.rpc.BadRequest.FieldViolation field_violations = 1; */ private $field_violations; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Google\Rpc\BadRequest\FieldViolation[]|\Google\Protobuf\Internal\RepeatedField $field_violations * Describes all violations in a client request. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Rpc\ErrorDetails::initOnce(); parent::__construct($data); } /** * Describes all violations in a client request. * * Generated from protobuf field repeated .google.rpc.BadRequest.FieldViolation field_violations = 1; * @return \Google\Protobuf\Internal\RepeatedField */ public function getFieldViolations() { return $this->field_violations; } /** * Describes all violations in a client request. * * Generated from protobuf field repeated .google.rpc.BadRequest.FieldViolation field_violations = 1; * @param \Google\Rpc\BadRequest\FieldViolation[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setFieldViolations($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Rpc\BadRequest\FieldViolation::class); $this->field_violations = $arr; return $this; } } src/Rpc/BadRequest/FieldViolation.php000064400000006500151742727570013561 0ustar00google.rpc.BadRequest.FieldViolation */ class FieldViolation extends \Google\Protobuf\Internal\Message { /** * A path leading to a field in the request body. The value will be a * sequence of dot-separated identifiers that identify a protocol buffer * field. E.g., "field_violations.field" would identify this field. * * Generated from protobuf field string field = 1; */ protected $field = ''; /** * A description of why the request element is bad. * * Generated from protobuf field string description = 2; */ protected $description = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $field * A path leading to a field in the request body. The value will be a * sequence of dot-separated identifiers that identify a protocol buffer * field. E.g., "field_violations.field" would identify this field. * @type string $description * A description of why the request element is bad. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Rpc\ErrorDetails::initOnce(); parent::__construct($data); } /** * A path leading to a field in the request body. The value will be a * sequence of dot-separated identifiers that identify a protocol buffer * field. E.g., "field_violations.field" would identify this field. * * Generated from protobuf field string field = 1; * @return string */ public function getField() { return $this->field; } /** * A path leading to a field in the request body. The value will be a * sequence of dot-separated identifiers that identify a protocol buffer * field. E.g., "field_violations.field" would identify this field. * * Generated from protobuf field string field = 1; * @param string $var * @return $this */ public function setField($var) { GPBUtil::checkString($var, True); $this->field = $var; return $this; } /** * A description of why the request element is bad. * * Generated from protobuf field string description = 2; * @return string */ public function getDescription() { return $this->description; } /** * A description of why the request element is bad. * * Generated from protobuf field string description = 2; * @param string $var * @return $this */ public function setDescription($var) { GPBUtil::checkString($var, True); $this->description = $var; return $this; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(FieldViolation::class, \Google\Rpc\BadRequest_FieldViolation::class); src/Rpc/BadRequest_FieldViolation.php000064400000001030151742727570013632 0ustar00google.rpc.Code */ class Code { /** * Not an error; returned on success * HTTP Mapping: 200 OK * * Generated from protobuf enum OK = 0; */ const OK = 0; /** * The operation was cancelled, typically by the caller. * HTTP Mapping: 499 Client Closed Request * * Generated from protobuf enum CANCELLED = 1; */ const CANCELLED = 1; /** * Unknown error. For example, this error may be returned when * a `Status` value received from another address space belongs to * an error space that is not known in this address space. Also * errors raised by APIs that do not return enough error information * may be converted to this error. * HTTP Mapping: 500 Internal Server Error * * Generated from protobuf enum UNKNOWN = 2; */ const UNKNOWN = 2; /** * The client specified an invalid argument. Note that this differs * from `FAILED_PRECONDITION`. `INVALID_ARGUMENT` indicates arguments * that are problematic regardless of the state of the system * (e.g., a malformed file name). * HTTP Mapping: 400 Bad Request * * Generated from protobuf enum INVALID_ARGUMENT = 3; */ const INVALID_ARGUMENT = 3; /** * The deadline expired before the operation could complete. For operations * that change the state of the system, this error may be returned * even if the operation has completed successfully. For example, a * successful response from a server could have been delayed long * enough for the deadline to expire. * HTTP Mapping: 504 Gateway Timeout * * Generated from protobuf enum DEADLINE_EXCEEDED = 4; */ const DEADLINE_EXCEEDED = 4; /** * Some requested entity (e.g., file or directory) was not found. * Note to server developers: if a request is denied for an entire class * of users, such as gradual feature rollout or undocumented whitelist, * `NOT_FOUND` may be used. If a request is denied for some users within * a class of users, such as user-based access control, `PERMISSION_DENIED` * must be used. * HTTP Mapping: 404 Not Found * * Generated from protobuf enum NOT_FOUND = 5; */ const NOT_FOUND = 5; /** * The entity that a client attempted to create (e.g., file or directory) * already exists. * HTTP Mapping: 409 Conflict * * Generated from protobuf enum ALREADY_EXISTS = 6; */ const ALREADY_EXISTS = 6; /** * The caller does not have permission to execute the specified * operation. `PERMISSION_DENIED` must not be used for rejections * caused by exhausting some resource (use `RESOURCE_EXHAUSTED` * instead for those errors). `PERMISSION_DENIED` must not be * used if the caller can not be identified (use `UNAUTHENTICATED` * instead for those errors). This error code does not imply the * request is valid or the requested entity exists or satisfies * other pre-conditions. * HTTP Mapping: 403 Forbidden * * Generated from protobuf enum PERMISSION_DENIED = 7; */ const PERMISSION_DENIED = 7; /** * The request does not have valid authentication credentials for the * operation. * HTTP Mapping: 401 Unauthorized * * Generated from protobuf enum UNAUTHENTICATED = 16; */ const UNAUTHENTICATED = 16; /** * Some resource has been exhausted, perhaps a per-user quota, or * perhaps the entire file system is out of space. * HTTP Mapping: 429 Too Many Requests * * Generated from protobuf enum RESOURCE_EXHAUSTED = 8; */ const RESOURCE_EXHAUSTED = 8; /** * The operation was rejected because the system is not in a state * required for the operation's execution. For example, the directory * to be deleted is non-empty, an rmdir operation is applied to * a non-directory, etc. * Service implementors can use the following guidelines to decide * between `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`: * (a) Use `UNAVAILABLE` if the client can retry just the failing call. * (b) Use `ABORTED` if the client should retry at a higher level * (e.g., when a client-specified test-and-set fails, indicating the * client should restart a read-modify-write sequence). * (c) Use `FAILED_PRECONDITION` if the client should not retry until * the system state has been explicitly fixed. E.g., if an "rmdir" * fails because the directory is non-empty, `FAILED_PRECONDITION` * should be returned since the client should not retry unless * the files are deleted from the directory. * HTTP Mapping: 400 Bad Request * * Generated from protobuf enum FAILED_PRECONDITION = 9; */ const FAILED_PRECONDITION = 9; /** * The operation was aborted, typically due to a concurrency issue such as * a sequencer check failure or transaction abort. * See the guidelines above for deciding between `FAILED_PRECONDITION`, * `ABORTED`, and `UNAVAILABLE`. * HTTP Mapping: 409 Conflict * * Generated from protobuf enum ABORTED = 10; */ const ABORTED = 10; /** * The operation was attempted past the valid range. E.g., seeking or * reading past end-of-file. * Unlike `INVALID_ARGUMENT`, this error indicates a problem that may * be fixed if the system state changes. For example, a 32-bit file * system will generate `INVALID_ARGUMENT` if asked to read at an * offset that is not in the range [0,2^32-1], but it will generate * `OUT_OF_RANGE` if asked to read from an offset past the current * file size. * There is a fair bit of overlap between `FAILED_PRECONDITION` and * `OUT_OF_RANGE`. We recommend using `OUT_OF_RANGE` (the more specific * error) when it applies so that callers who are iterating through * a space can easily look for an `OUT_OF_RANGE` error to detect when * they are done. * HTTP Mapping: 400 Bad Request * * Generated from protobuf enum OUT_OF_RANGE = 11; */ const OUT_OF_RANGE = 11; /** * The operation is not implemented or is not supported/enabled in this * service. * HTTP Mapping: 501 Not Implemented * * Generated from protobuf enum UNIMPLEMENTED = 12; */ const UNIMPLEMENTED = 12; /** * Internal errors. This means that some invariants expected by the * underlying system have been broken. This error code is reserved * for serious errors. * HTTP Mapping: 500 Internal Server Error * * Generated from protobuf enum INTERNAL = 13; */ const INTERNAL = 13; /** * The service is currently unavailable. This is most likely a * transient condition, which can be corrected by retrying with * a backoff. Note that it is not always safe to retry * non-idempotent operations. * See the guidelines above for deciding between `FAILED_PRECONDITION`, * `ABORTED`, and `UNAVAILABLE`. * HTTP Mapping: 503 Service Unavailable * * Generated from protobuf enum UNAVAILABLE = 14; */ const UNAVAILABLE = 14; /** * Unrecoverable data loss or corruption. * HTTP Mapping: 500 Internal Server Error * * Generated from protobuf enum DATA_LOSS = 15; */ const DATA_LOSS = 15; private static $valueToName = [ self::OK => 'OK', self::CANCELLED => 'CANCELLED', self::UNKNOWN => 'UNKNOWN', self::INVALID_ARGUMENT => 'INVALID_ARGUMENT', self::DEADLINE_EXCEEDED => 'DEADLINE_EXCEEDED', self::NOT_FOUND => 'NOT_FOUND', self::ALREADY_EXISTS => 'ALREADY_EXISTS', self::PERMISSION_DENIED => 'PERMISSION_DENIED', self::UNAUTHENTICATED => 'UNAUTHENTICATED', self::RESOURCE_EXHAUSTED => 'RESOURCE_EXHAUSTED', self::FAILED_PRECONDITION => 'FAILED_PRECONDITION', self::ABORTED => 'ABORTED', self::OUT_OF_RANGE => 'OUT_OF_RANGE', self::UNIMPLEMENTED => 'UNIMPLEMENTED', self::INTERNAL => 'INTERNAL', self::UNAVAILABLE => 'UNAVAILABLE', self::DATA_LOSS => 'DATA_LOSS', ]; public static function name($value) { if (!isset(self::$valueToName[$value])) { throw new UnexpectedValueException(sprintf( 'Enum %s has no name defined for value %s', __CLASS__, $value)); } return self::$valueToName[$value]; } public static function value($name) { $const = __CLASS__ . '::' . strtoupper($name); if (!defined($const)) { throw new UnexpectedValueException(sprintf( 'Enum %s has no value defined for name %s', __CLASS__, $name)); } return constant($const); } } src/Rpc/DebugInfo.php000064400000005331151742727570010455 0ustar00google.rpc.DebugInfo */ class DebugInfo extends \Google\Protobuf\Internal\Message { /** * The stack trace entries indicating where the error occurred. * * Generated from protobuf field repeated string stack_entries = 1; */ private $stack_entries; /** * Additional debugging information provided by the server. * * Generated from protobuf field string detail = 2; */ protected $detail = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string[]|\Google\Protobuf\Internal\RepeatedField $stack_entries * The stack trace entries indicating where the error occurred. * @type string $detail * Additional debugging information provided by the server. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Rpc\ErrorDetails::initOnce(); parent::__construct($data); } /** * The stack trace entries indicating where the error occurred. * * Generated from protobuf field repeated string stack_entries = 1; * @return \Google\Protobuf\Internal\RepeatedField */ public function getStackEntries() { return $this->stack_entries; } /** * The stack trace entries indicating where the error occurred. * * Generated from protobuf field repeated string stack_entries = 1; * @param string[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setStackEntries($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); $this->stack_entries = $arr; return $this; } /** * Additional debugging information provided by the server. * * Generated from protobuf field string detail = 2; * @return string */ public function getDetail() { return $this->detail; } /** * Additional debugging information provided by the server. * * Generated from protobuf field string detail = 2; * @param string $var * @return $this */ public function setDetail($var) { GPBUtil::checkString($var, True); $this->detail = $var; return $this; } } src/Rpc/ErrorInfo.php000064400000020462151742727570010522 0ustar00google.rpc.ErrorInfo */ class ErrorInfo extends \Google\Protobuf\Internal\Message { /** * The reason of the error. This is a constant value that identifies the * proximate cause of the error. Error reasons are unique within a particular * domain of errors. This should be at most 63 characters and match * /[A-Z0-9_]+/. * * Generated from protobuf field string reason = 1; */ protected $reason = ''; /** * The logical grouping to which the "reason" belongs. The error domain * is typically the registered service name of the tool or product that * generates the error. Example: "pubsub.googleapis.com". If the error is * generated by some common infrastructure, the error domain must be a * globally unique value that identifies the infrastructure. For Google API * infrastructure, the error domain is "googleapis.com". * * Generated from protobuf field string domain = 2; */ protected $domain = ''; /** * Additional structured details about this error. * Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in * length. When identifying the current value of an exceeded limit, the units * should be contained in the key, not the value. For example, rather than * {"instanceLimit": "100/request"}, should be returned as, * {"instanceLimitPerRequest": "100"}, if the client exceeds the number of * instances that can be created in a single (batch) request. * * Generated from protobuf field map metadata = 3; */ private $metadata; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $reason * The reason of the error. This is a constant value that identifies the * proximate cause of the error. Error reasons are unique within a particular * domain of errors. This should be at most 63 characters and match * /[A-Z0-9_]+/. * @type string $domain * The logical grouping to which the "reason" belongs. The error domain * is typically the registered service name of the tool or product that * generates the error. Example: "pubsub.googleapis.com". If the error is * generated by some common infrastructure, the error domain must be a * globally unique value that identifies the infrastructure. For Google API * infrastructure, the error domain is "googleapis.com". * @type array|\Google\Protobuf\Internal\MapField $metadata * Additional structured details about this error. * Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in * length. When identifying the current value of an exceeded limit, the units * should be contained in the key, not the value. For example, rather than * {"instanceLimit": "100/request"}, should be returned as, * {"instanceLimitPerRequest": "100"}, if the client exceeds the number of * instances that can be created in a single (batch) request. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Rpc\ErrorDetails::initOnce(); parent::__construct($data); } /** * The reason of the error. This is a constant value that identifies the * proximate cause of the error. Error reasons are unique within a particular * domain of errors. This should be at most 63 characters and match * /[A-Z0-9_]+/. * * Generated from protobuf field string reason = 1; * @return string */ public function getReason() { return $this->reason; } /** * The reason of the error. This is a constant value that identifies the * proximate cause of the error. Error reasons are unique within a particular * domain of errors. This should be at most 63 characters and match * /[A-Z0-9_]+/. * * Generated from protobuf field string reason = 1; * @param string $var * @return $this */ public function setReason($var) { GPBUtil::checkString($var, True); $this->reason = $var; return $this; } /** * The logical grouping to which the "reason" belongs. The error domain * is typically the registered service name of the tool or product that * generates the error. Example: "pubsub.googleapis.com". If the error is * generated by some common infrastructure, the error domain must be a * globally unique value that identifies the infrastructure. For Google API * infrastructure, the error domain is "googleapis.com". * * Generated from protobuf field string domain = 2; * @return string */ public function getDomain() { return $this->domain; } /** * The logical grouping to which the "reason" belongs. The error domain * is typically the registered service name of the tool or product that * generates the error. Example: "pubsub.googleapis.com". If the error is * generated by some common infrastructure, the error domain must be a * globally unique value that identifies the infrastructure. For Google API * infrastructure, the error domain is "googleapis.com". * * Generated from protobuf field string domain = 2; * @param string $var * @return $this */ public function setDomain($var) { GPBUtil::checkString($var, True); $this->domain = $var; return $this; } /** * Additional structured details about this error. * Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in * length. When identifying the current value of an exceeded limit, the units * should be contained in the key, not the value. For example, rather than * {"instanceLimit": "100/request"}, should be returned as, * {"instanceLimitPerRequest": "100"}, if the client exceeds the number of * instances that can be created in a single (batch) request. * * Generated from protobuf field map metadata = 3; * @return \Google\Protobuf\Internal\MapField */ public function getMetadata() { return $this->metadata; } /** * Additional structured details about this error. * Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in * length. When identifying the current value of an exceeded limit, the units * should be contained in the key, not the value. For example, rather than * {"instanceLimit": "100/request"}, should be returned as, * {"instanceLimitPerRequest": "100"}, if the client exceeds the number of * instances that can be created in a single (batch) request. * * Generated from protobuf field map metadata = 3; * @param array|\Google\Protobuf\Internal\MapField $var * @return $this */ public function setMetadata($var) { $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); $this->metadata = $arr; return $this; } } src/Rpc/Help.php000064400000004263151742727570007506 0ustar00google.rpc.Help */ class Help extends \Google\Protobuf\Internal\Message { /** * URL(s) pointing to additional information on handling the current error. * * Generated from protobuf field repeated .google.rpc.Help.Link links = 1; */ private $links; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Google\Rpc\Help\Link[]|\Google\Protobuf\Internal\RepeatedField $links * URL(s) pointing to additional information on handling the current error. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Rpc\ErrorDetails::initOnce(); parent::__construct($data); } /** * URL(s) pointing to additional information on handling the current error. * * Generated from protobuf field repeated .google.rpc.Help.Link links = 1; * @return \Google\Protobuf\Internal\RepeatedField */ public function getLinks() { return $this->links; } /** * URL(s) pointing to additional information on handling the current error. * * Generated from protobuf field repeated .google.rpc.Help.Link links = 1; * @param \Google\Rpc\Help\Link[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setLinks($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Rpc\Help\Link::class); $this->links = $arr; return $this; } } src/Rpc/Help/Link.php000064400000004552151742727570010404 0ustar00google.rpc.Help.Link */ class Link extends \Google\Protobuf\Internal\Message { /** * Describes what the link offers. * * Generated from protobuf field string description = 1; */ protected $description = ''; /** * The URL of the link. * * Generated from protobuf field string url = 2; */ protected $url = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $description * Describes what the link offers. * @type string $url * The URL of the link. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Rpc\ErrorDetails::initOnce(); parent::__construct($data); } /** * Describes what the link offers. * * Generated from protobuf field string description = 1; * @return string */ public function getDescription() { return $this->description; } /** * Describes what the link offers. * * Generated from protobuf field string description = 1; * @param string $var * @return $this */ public function setDescription($var) { GPBUtil::checkString($var, True); $this->description = $var; return $this; } /** * The URL of the link. * * Generated from protobuf field string url = 2; * @return string */ public function getUrl() { return $this->url; } /** * The URL of the link. * * Generated from protobuf field string url = 2; * @param string $var * @return $this */ public function setUrl($var) { GPBUtil::checkString($var, True); $this->url = $var; return $this; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Link::class, \Google\Rpc\Help_Link::class); src/Rpc/Help_Link.php000064400000000710151742727570010454 0ustar00google.rpc.LocalizedMessage */ class LocalizedMessage extends \Google\Protobuf\Internal\Message { /** * The locale used following the specification defined at * http://www.rfc-editor.org/rfc/bcp/bcp47.txt. * Examples are: "en-US", "fr-CH", "es-MX" * * Generated from protobuf field string locale = 1; */ protected $locale = ''; /** * The localized error message in the above locale. * * Generated from protobuf field string message = 2; */ protected $message = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $locale * The locale used following the specification defined at * http://www.rfc-editor.org/rfc/bcp/bcp47.txt. * Examples are: "en-US", "fr-CH", "es-MX" * @type string $message * The localized error message in the above locale. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Rpc\ErrorDetails::initOnce(); parent::__construct($data); } /** * The locale used following the specification defined at * http://www.rfc-editor.org/rfc/bcp/bcp47.txt. * Examples are: "en-US", "fr-CH", "es-MX" * * Generated from protobuf field string locale = 1; * @return string */ public function getLocale() { return $this->locale; } /** * The locale used following the specification defined at * http://www.rfc-editor.org/rfc/bcp/bcp47.txt. * Examples are: "en-US", "fr-CH", "es-MX" * * Generated from protobuf field string locale = 1; * @param string $var * @return $this */ public function setLocale($var) { GPBUtil::checkString($var, True); $this->locale = $var; return $this; } /** * The localized error message in the above locale. * * Generated from protobuf field string message = 2; * @return string */ public function getMessage() { return $this->message; } /** * The localized error message in the above locale. * * Generated from protobuf field string message = 2; * @param string $var * @return $this */ public function setMessage($var) { GPBUtil::checkString($var, True); $this->message = $var; return $this; } } src/Rpc/PreconditionFailure.php000064400000004236151742727570012563 0ustar00google.rpc.PreconditionFailure */ class PreconditionFailure extends \Google\Protobuf\Internal\Message { /** * Describes all precondition violations. * * Generated from protobuf field repeated .google.rpc.PreconditionFailure.Violation violations = 1; */ private $violations; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Google\Rpc\PreconditionFailure\Violation[]|\Google\Protobuf\Internal\RepeatedField $violations * Describes all precondition violations. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Rpc\ErrorDetails::initOnce(); parent::__construct($data); } /** * Describes all precondition violations. * * Generated from protobuf field repeated .google.rpc.PreconditionFailure.Violation violations = 1; * @return \Google\Protobuf\Internal\RepeatedField */ public function getViolations() { return $this->violations; } /** * Describes all precondition violations. * * Generated from protobuf field repeated .google.rpc.PreconditionFailure.Violation violations = 1; * @param \Google\Rpc\PreconditionFailure\Violation[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setViolations($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Rpc\PreconditionFailure\Violation::class); $this->violations = $arr; return $this; } } src/Rpc/PreconditionFailure/Violation.php000064400000012270151742727570014524 0ustar00google.rpc.PreconditionFailure.Violation */ class Violation extends \Google\Protobuf\Internal\Message { /** * The type of PreconditionFailure. We recommend using a service-specific * enum type to define the supported precondition violation subjects. For * example, "TOS" for "Terms of Service violation". * * Generated from protobuf field string type = 1; */ protected $type = ''; /** * The subject, relative to the type, that failed. * For example, "google.com/cloud" relative to the "TOS" type would indicate * which terms of service is being referenced. * * Generated from protobuf field string subject = 2; */ protected $subject = ''; /** * A description of how the precondition failed. Developers can use this * description to understand how to fix the failure. * For example: "Terms of service not accepted". * * Generated from protobuf field string description = 3; */ protected $description = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $type * The type of PreconditionFailure. We recommend using a service-specific * enum type to define the supported precondition violation subjects. For * example, "TOS" for "Terms of Service violation". * @type string $subject * The subject, relative to the type, that failed. * For example, "google.com/cloud" relative to the "TOS" type would indicate * which terms of service is being referenced. * @type string $description * A description of how the precondition failed. Developers can use this * description to understand how to fix the failure. * For example: "Terms of service not accepted". * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Rpc\ErrorDetails::initOnce(); parent::__construct($data); } /** * The type of PreconditionFailure. We recommend using a service-specific * enum type to define the supported precondition violation subjects. For * example, "TOS" for "Terms of Service violation". * * Generated from protobuf field string type = 1; * @return string */ public function getType() { return $this->type; } /** * The type of PreconditionFailure. We recommend using a service-specific * enum type to define the supported precondition violation subjects. For * example, "TOS" for "Terms of Service violation". * * Generated from protobuf field string type = 1; * @param string $var * @return $this */ public function setType($var) { GPBUtil::checkString($var, True); $this->type = $var; return $this; } /** * The subject, relative to the type, that failed. * For example, "google.com/cloud" relative to the "TOS" type would indicate * which terms of service is being referenced. * * Generated from protobuf field string subject = 2; * @return string */ public function getSubject() { return $this->subject; } /** * The subject, relative to the type, that failed. * For example, "google.com/cloud" relative to the "TOS" type would indicate * which terms of service is being referenced. * * Generated from protobuf field string subject = 2; * @param string $var * @return $this */ public function setSubject($var) { GPBUtil::checkString($var, True); $this->subject = $var; return $this; } /** * A description of how the precondition failed. Developers can use this * description to understand how to fix the failure. * For example: "Terms of service not accepted". * * Generated from protobuf field string description = 3; * @return string */ public function getDescription() { return $this->description; } /** * A description of how the precondition failed. Developers can use this * description to understand how to fix the failure. * For example: "Terms of service not accepted". * * Generated from protobuf field string description = 3; * @param string $var * @return $this */ public function setDescription($var) { GPBUtil::checkString($var, True); $this->description = $var; return $this; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Violation::class, \Google\Rpc\PreconditionFailure_Violation::class); src/Rpc/PreconditionFailure_Violation.php000064400000001054151742727570014602 0ustar00google.rpc.QuotaFailure */ class QuotaFailure extends \Google\Protobuf\Internal\Message { /** * Describes all quota violations. * * Generated from protobuf field repeated .google.rpc.QuotaFailure.Violation violations = 1; */ private $violations; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Google\Rpc\QuotaFailure\Violation[]|\Google\Protobuf\Internal\RepeatedField $violations * Describes all quota violations. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Rpc\ErrorDetails::initOnce(); parent::__construct($data); } /** * Describes all quota violations. * * Generated from protobuf field repeated .google.rpc.QuotaFailure.Violation violations = 1; * @return \Google\Protobuf\Internal\RepeatedField */ public function getViolations() { return $this->violations; } /** * Describes all quota violations. * * Generated from protobuf field repeated .google.rpc.QuotaFailure.Violation violations = 1; * @param \Google\Rpc\QuotaFailure\Violation[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setViolations($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Rpc\QuotaFailure\Violation::class); $this->violations = $arr; return $this; } } src/Rpc/QuotaFailure/Violation.php000064400000010514151742727570013157 0ustar00google.rpc.QuotaFailure.Violation */ class Violation extends \Google\Protobuf\Internal\Message { /** * The subject on which the quota check failed. * For example, "clientip:" or "project:". * * Generated from protobuf field string subject = 1; */ protected $subject = ''; /** * A description of how the quota check failed. Clients can use this * description to find more about the quota configuration in the service's * public documentation, or find the relevant quota limit to adjust through * developer console. * For example: "Service disabled" or "Daily Limit for read operations * exceeded". * * Generated from protobuf field string description = 2; */ protected $description = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $subject * The subject on which the quota check failed. * For example, "clientip:" or "project:". * @type string $description * A description of how the quota check failed. Clients can use this * description to find more about the quota configuration in the service's * public documentation, or find the relevant quota limit to adjust through * developer console. * For example: "Service disabled" or "Daily Limit for read operations * exceeded". * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Rpc\ErrorDetails::initOnce(); parent::__construct($data); } /** * The subject on which the quota check failed. * For example, "clientip:" or "project:". * * Generated from protobuf field string subject = 1; * @return string */ public function getSubject() { return $this->subject; } /** * The subject on which the quota check failed. * For example, "clientip:" or "project:". * * Generated from protobuf field string subject = 1; * @param string $var * @return $this */ public function setSubject($var) { GPBUtil::checkString($var, True); $this->subject = $var; return $this; } /** * A description of how the quota check failed. Clients can use this * description to find more about the quota configuration in the service's * public documentation, or find the relevant quota limit to adjust through * developer console. * For example: "Service disabled" or "Daily Limit for read operations * exceeded". * * Generated from protobuf field string description = 2; * @return string */ public function getDescription() { return $this->description; } /** * A description of how the quota check failed. Clients can use this * description to find more about the quota configuration in the service's * public documentation, or find the relevant quota limit to adjust through * developer console. * For example: "Service disabled" or "Daily Limit for read operations * exceeded". * * Generated from protobuf field string description = 2; * @param string $var * @return $this */ public function setDescription($var) { GPBUtil::checkString($var, True); $this->description = $var; return $this; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Violation::class, \Google\Rpc\QuotaFailure_Violation::class); src/Rpc/QuotaFailure_Violation.php000064400000001011151742727570013227 0ustar00google.rpc.RequestInfo */ class RequestInfo extends \Google\Protobuf\Internal\Message { /** * An opaque string that should only be interpreted by the service generating * it. For example, it can be used to identify requests in the service's logs. * * Generated from protobuf field string request_id = 1; */ protected $request_id = ''; /** * Any data that was used to serve this request. For example, an encrypted * stack trace that can be sent back to the service provider for debugging. * * Generated from protobuf field string serving_data = 2; */ protected $serving_data = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $request_id * An opaque string that should only be interpreted by the service generating * it. For example, it can be used to identify requests in the service's logs. * @type string $serving_data * Any data that was used to serve this request. For example, an encrypted * stack trace that can be sent back to the service provider for debugging. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Rpc\ErrorDetails::initOnce(); parent::__construct($data); } /** * An opaque string that should only be interpreted by the service generating * it. For example, it can be used to identify requests in the service's logs. * * Generated from protobuf field string request_id = 1; * @return string */ public function getRequestId() { return $this->request_id; } /** * An opaque string that should only be interpreted by the service generating * it. For example, it can be used to identify requests in the service's logs. * * Generated from protobuf field string request_id = 1; * @param string $var * @return $this */ public function setRequestId($var) { GPBUtil::checkString($var, True); $this->request_id = $var; return $this; } /** * Any data that was used to serve this request. For example, an encrypted * stack trace that can be sent back to the service provider for debugging. * * Generated from protobuf field string serving_data = 2; * @return string */ public function getServingData() { return $this->serving_data; } /** * Any data that was used to serve this request. For example, an encrypted * stack trace that can be sent back to the service provider for debugging. * * Generated from protobuf field string serving_data = 2; * @param string $var * @return $this */ public function setServingData($var) { GPBUtil::checkString($var, True); $this->serving_data = $var; return $this; } } src/Rpc/ResourceInfo.php000064400000015136151742727570011222 0ustar00google.rpc.ResourceInfo */ class ResourceInfo extends \Google\Protobuf\Internal\Message { /** * A name for the type of resource being accessed, e.g. "sql table", * "cloud storage bucket", "file", "Google calendar"; or the type URL * of the resource: e.g. "type.googleapis.com/google.pubsub.v1.Topic". * * Generated from protobuf field string resource_type = 1; */ protected $resource_type = ''; /** * The name of the resource being accessed. For example, a shared calendar * name: "example.com_4fghdhgsrgh@group.calendar.google.com", if the current * error is [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED]. * * Generated from protobuf field string resource_name = 2; */ protected $resource_name = ''; /** * The owner of the resource (optional). * For example, "user:" or "project:". * * Generated from protobuf field string owner = 3; */ protected $owner = ''; /** * Describes what error is encountered when accessing this resource. * For example, updating a cloud project may require the `writer` permission * on the developer console project. * * Generated from protobuf field string description = 4; */ protected $description = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $resource_type * A name for the type of resource being accessed, e.g. "sql table", * "cloud storage bucket", "file", "Google calendar"; or the type URL * of the resource: e.g. "type.googleapis.com/google.pubsub.v1.Topic". * @type string $resource_name * The name of the resource being accessed. For example, a shared calendar * name: "example.com_4fghdhgsrgh@group.calendar.google.com", if the current * error is [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED]. * @type string $owner * The owner of the resource (optional). * For example, "user:" or "project:". * @type string $description * Describes what error is encountered when accessing this resource. * For example, updating a cloud project may require the `writer` permission * on the developer console project. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Rpc\ErrorDetails::initOnce(); parent::__construct($data); } /** * A name for the type of resource being accessed, e.g. "sql table", * "cloud storage bucket", "file", "Google calendar"; or the type URL * of the resource: e.g. "type.googleapis.com/google.pubsub.v1.Topic". * * Generated from protobuf field string resource_type = 1; * @return string */ public function getResourceType() { return $this->resource_type; } /** * A name for the type of resource being accessed, e.g. "sql table", * "cloud storage bucket", "file", "Google calendar"; or the type URL * of the resource: e.g. "type.googleapis.com/google.pubsub.v1.Topic". * * Generated from protobuf field string resource_type = 1; * @param string $var * @return $this */ public function setResourceType($var) { GPBUtil::checkString($var, True); $this->resource_type = $var; return $this; } /** * The name of the resource being accessed. For example, a shared calendar * name: "example.com_4fghdhgsrgh@group.calendar.google.com", if the current * error is [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED]. * * Generated from protobuf field string resource_name = 2; * @return string */ public function getResourceName() { return $this->resource_name; } /** * The name of the resource being accessed. For example, a shared calendar * name: "example.com_4fghdhgsrgh@group.calendar.google.com", if the current * error is [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED]. * * Generated from protobuf field string resource_name = 2; * @param string $var * @return $this */ public function setResourceName($var) { GPBUtil::checkString($var, True); $this->resource_name = $var; return $this; } /** * The owner of the resource (optional). * For example, "user:" or "project:". * * Generated from protobuf field string owner = 3; * @return string */ public function getOwner() { return $this->owner; } /** * The owner of the resource (optional). * For example, "user:" or "project:". * * Generated from protobuf field string owner = 3; * @param string $var * @return $this */ public function setOwner($var) { GPBUtil::checkString($var, True); $this->owner = $var; return $this; } /** * Describes what error is encountered when accessing this resource. * For example, updating a cloud project may require the `writer` permission * on the developer console project. * * Generated from protobuf field string description = 4; * @return string */ public function getDescription() { return $this->description; } /** * Describes what error is encountered when accessing this resource. * For example, updating a cloud project may require the `writer` permission * on the developer console project. * * Generated from protobuf field string description = 4; * @param string $var * @return $this */ public function setDescription($var) { GPBUtil::checkString($var, True); $this->description = $var; return $this; } } src/Rpc/RetryInfo.php000064400000005166151742727570010542 0ustar00google.rpc.RetryInfo */ class RetryInfo extends \Google\Protobuf\Internal\Message { /** * Clients should wait at least this long between retrying the same request. * * Generated from protobuf field .google.protobuf.Duration retry_delay = 1; */ protected $retry_delay = null; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Google\Protobuf\Duration $retry_delay * Clients should wait at least this long between retrying the same request. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Rpc\ErrorDetails::initOnce(); parent::__construct($data); } /** * Clients should wait at least this long between retrying the same request. * * Generated from protobuf field .google.protobuf.Duration retry_delay = 1; * @return \Google\Protobuf\Duration|null */ public function getRetryDelay() { return $this->retry_delay; } public function hasRetryDelay() { return isset($this->retry_delay); } public function clearRetryDelay() { unset($this->retry_delay); } /** * Clients should wait at least this long between retrying the same request. * * Generated from protobuf field .google.protobuf.Duration retry_delay = 1; * @param \Google\Protobuf\Duration $var * @return $this */ public function setRetryDelay($var) { GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); $this->retry_delay = $var; return $this; } } src/Rpc/Status.php000064400000012005151742727570010072 0ustar00google.rpc.Status */ class Status extends \Google\Protobuf\Internal\Message { /** * The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code]. * * Generated from protobuf field int32 code = 1; */ protected $code = 0; /** * A developer-facing error message, which should be in English. Any * user-facing error message should be localized and sent in the * [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client. * * Generated from protobuf field string message = 2; */ protected $message = ''; /** * A list of messages that carry the error details. There is a common set of * message types for APIs to use. * * Generated from protobuf field repeated .google.protobuf.Any details = 3; */ private $details; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int $code * The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code]. * @type string $message * A developer-facing error message, which should be in English. Any * user-facing error message should be localized and sent in the * [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client. * @type \Google\Protobuf\Any[]|\Google\Protobuf\Internal\RepeatedField $details * A list of messages that carry the error details. There is a common set of * message types for APIs to use. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Rpc\Status::initOnce(); parent::__construct($data); } /** * The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code]. * * Generated from protobuf field int32 code = 1; * @return int */ public function getCode() { return $this->code; } /** * The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code]. * * Generated from protobuf field int32 code = 1; * @param int $var * @return $this */ public function setCode($var) { GPBUtil::checkInt32($var); $this->code = $var; return $this; } /** * A developer-facing error message, which should be in English. Any * user-facing error message should be localized and sent in the * [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client. * * Generated from protobuf field string message = 2; * @return string */ public function getMessage() { return $this->message; } /** * A developer-facing error message, which should be in English. Any * user-facing error message should be localized and sent in the * [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client. * * Generated from protobuf field string message = 2; * @param string $var * @return $this */ public function setMessage($var) { GPBUtil::checkString($var, True); $this->message = $var; return $this; } /** * A list of messages that carry the error details. There is a common set of * message types for APIs to use. * * Generated from protobuf field repeated .google.protobuf.Any details = 3; * @return \Google\Protobuf\Internal\RepeatedField */ public function getDetails() { return $this->details; } /** * A list of messages that carry the error details. There is a common set of * message types for APIs to use. * * Generated from protobuf field repeated .google.protobuf.Any details = 3; * @param \Google\Protobuf\Any[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setDetails($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Any::class); $this->details = $arr; return $this; } } src/Type/CalendarPeriod.php000064400000005432151742727570011666 0ustar00google.type.CalendarPeriod */ class CalendarPeriod { /** * Undefined period, raises an error. * * Generated from protobuf enum CALENDAR_PERIOD_UNSPECIFIED = 0; */ const CALENDAR_PERIOD_UNSPECIFIED = 0; /** * A day. * * Generated from protobuf enum DAY = 1; */ const DAY = 1; /** * A week. Weeks begin on Monday, following * [ISO 8601](https://en.wikipedia.org/wiki/ISO_week_date). * * Generated from protobuf enum WEEK = 2; */ const WEEK = 2; /** * A fortnight. The first calendar fortnight of the year begins at the start * of week 1 according to * [ISO 8601](https://en.wikipedia.org/wiki/ISO_week_date). * * Generated from protobuf enum FORTNIGHT = 3; */ const FORTNIGHT = 3; /** * A month. * * Generated from protobuf enum MONTH = 4; */ const MONTH = 4; /** * A quarter. Quarters start on dates 1-Jan, 1-Apr, 1-Jul, and 1-Oct of each * year. * * Generated from protobuf enum QUARTER = 5; */ const QUARTER = 5; /** * A half-year. Half-years start on dates 1-Jan and 1-Jul. * * Generated from protobuf enum HALF = 6; */ const HALF = 6; /** * A year. * * Generated from protobuf enum YEAR = 7; */ const YEAR = 7; private static $valueToName = [ self::CALENDAR_PERIOD_UNSPECIFIED => 'CALENDAR_PERIOD_UNSPECIFIED', self::DAY => 'DAY', self::WEEK => 'WEEK', self::FORTNIGHT => 'FORTNIGHT', self::MONTH => 'MONTH', self::QUARTER => 'QUARTER', self::HALF => 'HALF', self::YEAR => 'YEAR', ]; public static function name($value) { if (!isset(self::$valueToName[$value])) { throw new UnexpectedValueException(sprintf( 'Enum %s has no name defined for value %s', __CLASS__, $value)); } return self::$valueToName[$value]; } public static function value($name) { $const = __CLASS__ . '::' . strtoupper($name); if (!defined($const)) { throw new UnexpectedValueException(sprintf( 'Enum %s has no value defined for name %s', __CLASS__, $name)); } return constant($const); } } src/Type/Color.php000064400000031776151742727570010102 0ustar00google.type.Color */ class Color extends \Google\Protobuf\Internal\Message { /** * The amount of red in the color as a value in the interval [0, 1]. * * Generated from protobuf field float red = 1; */ private $red = 0.0; /** * The amount of green in the color as a value in the interval [0, 1]. * * Generated from protobuf field float green = 2; */ private $green = 0.0; /** * The amount of blue in the color as a value in the interval [0, 1]. * * Generated from protobuf field float blue = 3; */ private $blue = 0.0; /** * The fraction of this color that should be applied to the pixel. That is, * the final pixel color is defined by the equation: * pixel color = alpha * (this color) + (1.0 - alpha) * (background color) * This means that a value of 1.0 corresponds to a solid color, whereas * a value of 0.0 corresponds to a completely transparent color. This * uses a wrapper message rather than a simple float scalar so that it is * possible to distinguish between a default value and the value being unset. * If omitted, this color object is to be rendered as a solid color * (as if the alpha value had been explicitly given with a value of 1.0). * * Generated from protobuf field .google.protobuf.FloatValue alpha = 4; */ private $alpha = null; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type float $red * The amount of red in the color as a value in the interval [0, 1]. * @type float $green * The amount of green in the color as a value in the interval [0, 1]. * @type float $blue * The amount of blue in the color as a value in the interval [0, 1]. * @type \Google\Protobuf\FloatValue $alpha * The fraction of this color that should be applied to the pixel. That is, * the final pixel color is defined by the equation: * pixel color = alpha * (this color) + (1.0 - alpha) * (background color) * This means that a value of 1.0 corresponds to a solid color, whereas * a value of 0.0 corresponds to a completely transparent color. This * uses a wrapper message rather than a simple float scalar so that it is * possible to distinguish between a default value and the value being unset. * If omitted, this color object is to be rendered as a solid color * (as if the alpha value had been explicitly given with a value of 1.0). * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Type\Color::initOnce(); parent::__construct($data); } /** * The amount of red in the color as a value in the interval [0, 1]. * * Generated from protobuf field float red = 1; * @return float */ public function getRed() { return $this->red; } /** * The amount of red in the color as a value in the interval [0, 1]. * * Generated from protobuf field float red = 1; * @param float $var * @return $this */ public function setRed($var) { GPBUtil::checkFloat($var); $this->red = $var; return $this; } /** * The amount of green in the color as a value in the interval [0, 1]. * * Generated from protobuf field float green = 2; * @return float */ public function getGreen() { return $this->green; } /** * The amount of green in the color as a value in the interval [0, 1]. * * Generated from protobuf field float green = 2; * @param float $var * @return $this */ public function setGreen($var) { GPBUtil::checkFloat($var); $this->green = $var; return $this; } /** * The amount of blue in the color as a value in the interval [0, 1]. * * Generated from protobuf field float blue = 3; * @return float */ public function getBlue() { return $this->blue; } /** * The amount of blue in the color as a value in the interval [0, 1]. * * Generated from protobuf field float blue = 3; * @param float $var * @return $this */ public function setBlue($var) { GPBUtil::checkFloat($var); $this->blue = $var; return $this; } /** * The fraction of this color that should be applied to the pixel. That is, * the final pixel color is defined by the equation: * pixel color = alpha * (this color) + (1.0 - alpha) * (background color) * This means that a value of 1.0 corresponds to a solid color, whereas * a value of 0.0 corresponds to a completely transparent color. This * uses a wrapper message rather than a simple float scalar so that it is * possible to distinguish between a default value and the value being unset. * If omitted, this color object is to be rendered as a solid color * (as if the alpha value had been explicitly given with a value of 1.0). * * Generated from protobuf field .google.protobuf.FloatValue alpha = 4; * @return \Google\Protobuf\FloatValue */ public function getAlpha() { return $this->alpha; } /** * Returns the unboxed value from getAlpha() * The fraction of this color that should be applied to the pixel. That is, * the final pixel color is defined by the equation: * pixel color = alpha * (this color) + (1.0 - alpha) * (background color) * This means that a value of 1.0 corresponds to a solid color, whereas * a value of 0.0 corresponds to a completely transparent color. This * uses a wrapper message rather than a simple float scalar so that it is * possible to distinguish between a default value and the value being unset. * If omitted, this color object is to be rendered as a solid color * (as if the alpha value had been explicitly given with a value of 1.0). * * Generated from protobuf field .google.protobuf.FloatValue alpha = 4; * @return float|null */ public function getAlphaUnwrapped() { $wrapper = $this->getAlpha(); return is_null($wrapper) ? null : $wrapper->getValue(); } /** * The fraction of this color that should be applied to the pixel. That is, * the final pixel color is defined by the equation: * pixel color = alpha * (this color) + (1.0 - alpha) * (background color) * This means that a value of 1.0 corresponds to a solid color, whereas * a value of 0.0 corresponds to a completely transparent color. This * uses a wrapper message rather than a simple float scalar so that it is * possible to distinguish between a default value and the value being unset. * If omitted, this color object is to be rendered as a solid color * (as if the alpha value had been explicitly given with a value of 1.0). * * Generated from protobuf field .google.protobuf.FloatValue alpha = 4; * @param \Google\Protobuf\FloatValue $var * @return $this */ public function setAlpha($var) { GPBUtil::checkMessage($var, \Google\Protobuf\FloatValue::class); $this->alpha = $var; return $this; } /** * Sets the field by wrapping a primitive type in a Google\Protobuf\FloatValue object. * The fraction of this color that should be applied to the pixel. That is, * the final pixel color is defined by the equation: * pixel color = alpha * (this color) + (1.0 - alpha) * (background color) * This means that a value of 1.0 corresponds to a solid color, whereas * a value of 0.0 corresponds to a completely transparent color. This * uses a wrapper message rather than a simple float scalar so that it is * possible to distinguish between a default value and the value being unset. * If omitted, this color object is to be rendered as a solid color * (as if the alpha value had been explicitly given with a value of 1.0). * * Generated from protobuf field .google.protobuf.FloatValue alpha = 4; * @param float|null $var * @return $this */ public function setAlphaUnwrapped($var) { $wrappedVar = is_null($var) ? null : new \Google\Protobuf\FloatValue(['value' => $var]); return $this->setAlpha($wrappedVar); } } src/Type/Date.php000064400000010757151742727570007675 0ustar00google.type.Date */ class Date extends \Google\Protobuf\Internal\Message { /** * Year of date. Must be from 1 to 9999, or 0 if specifying a date without * a year. * * Generated from protobuf field int32 year = 1; */ private $year = 0; /** * Month of year. Must be from 1 to 12, or 0 if specifying a year without a * month and day. * * Generated from protobuf field int32 month = 2; */ private $month = 0; /** * Day of month. Must be from 1 to 31 and valid for the year and month, or 0 * if specifying a year by itself or a year and month where the day is not * significant. * * Generated from protobuf field int32 day = 3; */ private $day = 0; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int $year * Year of date. Must be from 1 to 9999, or 0 if specifying a date without * a year. * @type int $month * Month of year. Must be from 1 to 12, or 0 if specifying a year without a * month and day. * @type int $day * Day of month. Must be from 1 to 31 and valid for the year and month, or 0 * if specifying a year by itself or a year and month where the day is not * significant. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Type\Date::initOnce(); parent::__construct($data); } /** * Year of date. Must be from 1 to 9999, or 0 if specifying a date without * a year. * * Generated from protobuf field int32 year = 1; * @return int */ public function getYear() { return $this->year; } /** * Year of date. Must be from 1 to 9999, or 0 if specifying a date without * a year. * * Generated from protobuf field int32 year = 1; * @param int $var * @return $this */ public function setYear($var) { GPBUtil::checkInt32($var); $this->year = $var; return $this; } /** * Month of year. Must be from 1 to 12, or 0 if specifying a year without a * month and day. * * Generated from protobuf field int32 month = 2; * @return int */ public function getMonth() { return $this->month; } /** * Month of year. Must be from 1 to 12, or 0 if specifying a year without a * month and day. * * Generated from protobuf field int32 month = 2; * @param int $var * @return $this */ public function setMonth($var) { GPBUtil::checkInt32($var); $this->month = $var; return $this; } /** * Day of month. Must be from 1 to 31 and valid for the year and month, or 0 * if specifying a year by itself or a year and month where the day is not * significant. * * Generated from protobuf field int32 day = 3; * @return int */ public function getDay() { return $this->day; } /** * Day of month. Must be from 1 to 31 and valid for the year and month, or 0 * if specifying a year by itself or a year and month where the day is not * significant. * * Generated from protobuf field int32 day = 3; * @param int $var * @return $this */ public function setDay($var) { GPBUtil::checkInt32($var); $this->day = $var; return $this; } } src/Type/DateTime.php000064400000024657151742727570010520 0ustar00google.type.DateTime */ class DateTime extends \Google\Protobuf\Internal\Message { /** * Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a * datetime without a year. * * Generated from protobuf field int32 year = 1; */ private $year = 0; /** * Required. Month of year. Must be from 1 to 12. * * Generated from protobuf field int32 month = 2; */ private $month = 0; /** * Required. Day of month. Must be from 1 to 31 and valid for the year and * month. * * Generated from protobuf field int32 day = 3; */ private $day = 0; /** * Required. Hours of day in 24 hour format. Should be from 0 to 23. An API * may choose to allow the value "24:00:00" for scenarios like business * closing time. * * Generated from protobuf field int32 hours = 4; */ private $hours = 0; /** * Required. Minutes of hour of day. Must be from 0 to 59. * * Generated from protobuf field int32 minutes = 5; */ private $minutes = 0; /** * Required. Seconds of minutes of the time. Must normally be from 0 to 59. An * API may allow the value 60 if it allows leap-seconds. * * Generated from protobuf field int32 seconds = 6; */ private $seconds = 0; /** * Required. Fractions of seconds in nanoseconds. Must be from 0 to * 999,999,999. * * Generated from protobuf field int32 nanos = 7; */ private $nanos = 0; protected $time_offset; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int $year * Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a * datetime without a year. * @type int $month * Required. Month of year. Must be from 1 to 12. * @type int $day * Required. Day of month. Must be from 1 to 31 and valid for the year and * month. * @type int $hours * Required. Hours of day in 24 hour format. Should be from 0 to 23. An API * may choose to allow the value "24:00:00" for scenarios like business * closing time. * @type int $minutes * Required. Minutes of hour of day. Must be from 0 to 59. * @type int $seconds * Required. Seconds of minutes of the time. Must normally be from 0 to 59. An * API may allow the value 60 if it allows leap-seconds. * @type int $nanos * Required. Fractions of seconds in nanoseconds. Must be from 0 to * 999,999,999. * @type \Google\Protobuf\Duration $utc_offset * UTC offset. Must be whole seconds, between -18 hours and +18 hours. * For example, a UTC offset of -4:00 would be represented as * { seconds: -14400 }. * @type \Google\Type\TimeZone $time_zone * Time zone. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Type\Datetime::initOnce(); parent::__construct($data); } /** * Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a * datetime without a year. * * Generated from protobuf field int32 year = 1; * @return int */ public function getYear() { return $this->year; } /** * Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a * datetime without a year. * * Generated from protobuf field int32 year = 1; * @param int $var * @return $this */ public function setYear($var) { GPBUtil::checkInt32($var); $this->year = $var; return $this; } /** * Required. Month of year. Must be from 1 to 12. * * Generated from protobuf field int32 month = 2; * @return int */ public function getMonth() { return $this->month; } /** * Required. Month of year. Must be from 1 to 12. * * Generated from protobuf field int32 month = 2; * @param int $var * @return $this */ public function setMonth($var) { GPBUtil::checkInt32($var); $this->month = $var; return $this; } /** * Required. Day of month. Must be from 1 to 31 and valid for the year and * month. * * Generated from protobuf field int32 day = 3; * @return int */ public function getDay() { return $this->day; } /** * Required. Day of month. Must be from 1 to 31 and valid for the year and * month. * * Generated from protobuf field int32 day = 3; * @param int $var * @return $this */ public function setDay($var) { GPBUtil::checkInt32($var); $this->day = $var; return $this; } /** * Required. Hours of day in 24 hour format. Should be from 0 to 23. An API * may choose to allow the value "24:00:00" for scenarios like business * closing time. * * Generated from protobuf field int32 hours = 4; * @return int */ public function getHours() { return $this->hours; } /** * Required. Hours of day in 24 hour format. Should be from 0 to 23. An API * may choose to allow the value "24:00:00" for scenarios like business * closing time. * * Generated from protobuf field int32 hours = 4; * @param int $var * @return $this */ public function setHours($var) { GPBUtil::checkInt32($var); $this->hours = $var; return $this; } /** * Required. Minutes of hour of day. Must be from 0 to 59. * * Generated from protobuf field int32 minutes = 5; * @return int */ public function getMinutes() { return $this->minutes; } /** * Required. Minutes of hour of day. Must be from 0 to 59. * * Generated from protobuf field int32 minutes = 5; * @param int $var * @return $this */ public function setMinutes($var) { GPBUtil::checkInt32($var); $this->minutes = $var; return $this; } /** * Required. Seconds of minutes of the time. Must normally be from 0 to 59. An * API may allow the value 60 if it allows leap-seconds. * * Generated from protobuf field int32 seconds = 6; * @return int */ public function getSeconds() { return $this->seconds; } /** * Required. Seconds of minutes of the time. Must normally be from 0 to 59. An * API may allow the value 60 if it allows leap-seconds. * * Generated from protobuf field int32 seconds = 6; * @param int $var * @return $this */ public function setSeconds($var) { GPBUtil::checkInt32($var); $this->seconds = $var; return $this; } /** * Required. Fractions of seconds in nanoseconds. Must be from 0 to * 999,999,999. * * Generated from protobuf field int32 nanos = 7; * @return int */ public function getNanos() { return $this->nanos; } /** * Required. Fractions of seconds in nanoseconds. Must be from 0 to * 999,999,999. * * Generated from protobuf field int32 nanos = 7; * @param int $var * @return $this */ public function setNanos($var) { GPBUtil::checkInt32($var); $this->nanos = $var; return $this; } /** * UTC offset. Must be whole seconds, between -18 hours and +18 hours. * For example, a UTC offset of -4:00 would be represented as * { seconds: -14400 }. * * Generated from protobuf field .google.protobuf.Duration utc_offset = 8; * @return \Google\Protobuf\Duration */ public function getUtcOffset() { return $this->readOneof(8); } /** * UTC offset. Must be whole seconds, between -18 hours and +18 hours. * For example, a UTC offset of -4:00 would be represented as * { seconds: -14400 }. * * Generated from protobuf field .google.protobuf.Duration utc_offset = 8; * @param \Google\Protobuf\Duration $var * @return $this */ public function setUtcOffset($var) { GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); $this->writeOneof(8, $var); return $this; } /** * Time zone. * * Generated from protobuf field .google.type.TimeZone time_zone = 9; * @return \Google\Type\TimeZone */ public function getTimeZone() { return $this->readOneof(9); } /** * Time zone. * * Generated from protobuf field .google.type.TimeZone time_zone = 9; * @param \Google\Type\TimeZone $var * @return $this */ public function setTimeZone($var) { GPBUtil::checkMessage($var, \Google\Type\TimeZone::class); $this->writeOneof(9, $var); return $this; } /** * @return string */ public function getTimeOffset() { return $this->whichOneof("time_offset"); } } src/Type/DayOfWeek.php000064400000004607151742727570010633 0ustar00google.type.DayOfWeek */ class DayOfWeek { /** * The unspecified day-of-week. * * Generated from protobuf enum DAY_OF_WEEK_UNSPECIFIED = 0; */ const DAY_OF_WEEK_UNSPECIFIED = 0; /** * The day-of-week of Monday. * * Generated from protobuf enum MONDAY = 1; */ const MONDAY = 1; /** * The day-of-week of Tuesday. * * Generated from protobuf enum TUESDAY = 2; */ const TUESDAY = 2; /** * The day-of-week of Wednesday. * * Generated from protobuf enum WEDNESDAY = 3; */ const WEDNESDAY = 3; /** * The day-of-week of Thursday. * * Generated from protobuf enum THURSDAY = 4; */ const THURSDAY = 4; /** * The day-of-week of Friday. * * Generated from protobuf enum FRIDAY = 5; */ const FRIDAY = 5; /** * The day-of-week of Saturday. * * Generated from protobuf enum SATURDAY = 6; */ const SATURDAY = 6; /** * The day-of-week of Sunday. * * Generated from protobuf enum SUNDAY = 7; */ const SUNDAY = 7; private static $valueToName = [ self::DAY_OF_WEEK_UNSPECIFIED => 'DAY_OF_WEEK_UNSPECIFIED', self::MONDAY => 'MONDAY', self::TUESDAY => 'TUESDAY', self::WEDNESDAY => 'WEDNESDAY', self::THURSDAY => 'THURSDAY', self::FRIDAY => 'FRIDAY', self::SATURDAY => 'SATURDAY', self::SUNDAY => 'SUNDAY', ]; public static function name($value) { if (!isset(self::$valueToName[$value])) { throw new UnexpectedValueException(sprintf( 'Enum %s has no name defined for value %s', __CLASS__, $value)); } return self::$valueToName[$value]; } public static function value($name) { $const = __CLASS__ . '::' . strtoupper($name); if (!defined($const)) { throw new UnexpectedValueException(sprintf( 'Enum %s has no value defined for name %s', __CLASS__, $name)); } return constant($const); } } src/Type/Decimal.php000064400000032673151742727570010357 0ustar00google.type.Decimal */ class Decimal extends \Google\Protobuf\Internal\Message { /** * The decimal value, as a string. * The string representation consists of an optional sign, `+` (`U+002B`) * or `-` (`U+002D`), followed by a sequence of zero or more decimal digits * ("the integer"), optionally followed by a fraction, optionally followed * by an exponent. * The fraction consists of a decimal point followed by zero or more decimal * digits. The string must contain at least one digit in either the integer * or the fraction. The number formed by the sign, the integer and the * fraction is referred to as the significand. * The exponent consists of the character `e` (`U+0065`) or `E` (`U+0045`) * followed by one or more decimal digits. * Services **should** normalize decimal values before storing them by: * - Removing an explicitly-provided `+` sign (`+2.5` -> `2.5`). * - Replacing a zero-length integer value with `0` (`.5` -> `0.5`). * - Coercing the exponent character to lower-case (`2.5E8` -> `2.5e8`). * - Removing an explicitly-provided zero exponent (`2.5e0` -> `2.5`). * Services **may** perform additional normalization based on its own needs * and the internal decimal implementation selected, such as shifting the * decimal point and exponent value together (example: `2.5e-1` <-> `0.25`). * Additionally, services **may** preserve trailing zeroes in the fraction * to indicate increased precision, but are not required to do so. * Note that only the `.` character is supported to divide the integer * and the fraction; `,` **should not** be supported regardless of locale. * Additionally, thousand separators **should not** be supported. If a * service does support them, values **must** be normalized. * The ENBF grammar is: * DecimalString = * [Sign] Significand [Exponent]; * Sign = '+' | '-'; * Significand = * Digits ['.'] [Digits] | [Digits] '.' Digits; * Exponent = ('e' | 'E') [Sign] Digits; * Digits = { '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' }; * Services **should** clearly document the range of supported values, the * maximum supported precision (total number of digits), and, if applicable, * the scale (number of digits after the decimal point), as well as how it * behaves when receiving out-of-bounds values. * Services **may** choose to accept values passed as input even when the * value has a higher precision or scale than the service supports, and * **should** round the value to fit the supported scale. Alternatively, the * service **may** error with `400 Bad Request` (`INVALID_ARGUMENT` in gRPC) * if precision would be lost. * Services **should** error with `400 Bad Request` (`INVALID_ARGUMENT` in * gRPC) if the service receives a value outside of the supported range. * * Generated from protobuf field string value = 1; */ protected $value = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $value * The decimal value, as a string. * The string representation consists of an optional sign, `+` (`U+002B`) * or `-` (`U+002D`), followed by a sequence of zero or more decimal digits * ("the integer"), optionally followed by a fraction, optionally followed * by an exponent. * The fraction consists of a decimal point followed by zero or more decimal * digits. The string must contain at least one digit in either the integer * or the fraction. The number formed by the sign, the integer and the * fraction is referred to as the significand. * The exponent consists of the character `e` (`U+0065`) or `E` (`U+0045`) * followed by one or more decimal digits. * Services **should** normalize decimal values before storing them by: * - Removing an explicitly-provided `+` sign (`+2.5` -> `2.5`). * - Replacing a zero-length integer value with `0` (`.5` -> `0.5`). * - Coercing the exponent character to lower-case (`2.5E8` -> `2.5e8`). * - Removing an explicitly-provided zero exponent (`2.5e0` -> `2.5`). * Services **may** perform additional normalization based on its own needs * and the internal decimal implementation selected, such as shifting the * decimal point and exponent value together (example: `2.5e-1` <-> `0.25`). * Additionally, services **may** preserve trailing zeroes in the fraction * to indicate increased precision, but are not required to do so. * Note that only the `.` character is supported to divide the integer * and the fraction; `,` **should not** be supported regardless of locale. * Additionally, thousand separators **should not** be supported. If a * service does support them, values **must** be normalized. * The ENBF grammar is: * DecimalString = * [Sign] Significand [Exponent]; * Sign = '+' | '-'; * Significand = * Digits ['.'] [Digits] | [Digits] '.' Digits; * Exponent = ('e' | 'E') [Sign] Digits; * Digits = { '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' }; * Services **should** clearly document the range of supported values, the * maximum supported precision (total number of digits), and, if applicable, * the scale (number of digits after the decimal point), as well as how it * behaves when receiving out-of-bounds values. * Services **may** choose to accept values passed as input even when the * value has a higher precision or scale than the service supports, and * **should** round the value to fit the supported scale. Alternatively, the * service **may** error with `400 Bad Request` (`INVALID_ARGUMENT` in gRPC) * if precision would be lost. * Services **should** error with `400 Bad Request` (`INVALID_ARGUMENT` in * gRPC) if the service receives a value outside of the supported range. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Type\Decimal::initOnce(); parent::__construct($data); } /** * The decimal value, as a string. * The string representation consists of an optional sign, `+` (`U+002B`) * or `-` (`U+002D`), followed by a sequence of zero or more decimal digits * ("the integer"), optionally followed by a fraction, optionally followed * by an exponent. * The fraction consists of a decimal point followed by zero or more decimal * digits. The string must contain at least one digit in either the integer * or the fraction. The number formed by the sign, the integer and the * fraction is referred to as the significand. * The exponent consists of the character `e` (`U+0065`) or `E` (`U+0045`) * followed by one or more decimal digits. * Services **should** normalize decimal values before storing them by: * - Removing an explicitly-provided `+` sign (`+2.5` -> `2.5`). * - Replacing a zero-length integer value with `0` (`.5` -> `0.5`). * - Coercing the exponent character to lower-case (`2.5E8` -> `2.5e8`). * - Removing an explicitly-provided zero exponent (`2.5e0` -> `2.5`). * Services **may** perform additional normalization based on its own needs * and the internal decimal implementation selected, such as shifting the * decimal point and exponent value together (example: `2.5e-1` <-> `0.25`). * Additionally, services **may** preserve trailing zeroes in the fraction * to indicate increased precision, but are not required to do so. * Note that only the `.` character is supported to divide the integer * and the fraction; `,` **should not** be supported regardless of locale. * Additionally, thousand separators **should not** be supported. If a * service does support them, values **must** be normalized. * The ENBF grammar is: * DecimalString = * [Sign] Significand [Exponent]; * Sign = '+' | '-'; * Significand = * Digits ['.'] [Digits] | [Digits] '.' Digits; * Exponent = ('e' | 'E') [Sign] Digits; * Digits = { '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' }; * Services **should** clearly document the range of supported values, the * maximum supported precision (total number of digits), and, if applicable, * the scale (number of digits after the decimal point), as well as how it * behaves when receiving out-of-bounds values. * Services **may** choose to accept values passed as input even when the * value has a higher precision or scale than the service supports, and * **should** round the value to fit the supported scale. Alternatively, the * service **may** error with `400 Bad Request` (`INVALID_ARGUMENT` in gRPC) * if precision would be lost. * Services **should** error with `400 Bad Request` (`INVALID_ARGUMENT` in * gRPC) if the service receives a value outside of the supported range. * * Generated from protobuf field string value = 1; * @return string */ public function getValue() { return $this->value; } /** * The decimal value, as a string. * The string representation consists of an optional sign, `+` (`U+002B`) * or `-` (`U+002D`), followed by a sequence of zero or more decimal digits * ("the integer"), optionally followed by a fraction, optionally followed * by an exponent. * The fraction consists of a decimal point followed by zero or more decimal * digits. The string must contain at least one digit in either the integer * or the fraction. The number formed by the sign, the integer and the * fraction is referred to as the significand. * The exponent consists of the character `e` (`U+0065`) or `E` (`U+0045`) * followed by one or more decimal digits. * Services **should** normalize decimal values before storing them by: * - Removing an explicitly-provided `+` sign (`+2.5` -> `2.5`). * - Replacing a zero-length integer value with `0` (`.5` -> `0.5`). * - Coercing the exponent character to lower-case (`2.5E8` -> `2.5e8`). * - Removing an explicitly-provided zero exponent (`2.5e0` -> `2.5`). * Services **may** perform additional normalization based on its own needs * and the internal decimal implementation selected, such as shifting the * decimal point and exponent value together (example: `2.5e-1` <-> `0.25`). * Additionally, services **may** preserve trailing zeroes in the fraction * to indicate increased precision, but are not required to do so. * Note that only the `.` character is supported to divide the integer * and the fraction; `,` **should not** be supported regardless of locale. * Additionally, thousand separators **should not** be supported. If a * service does support them, values **must** be normalized. * The ENBF grammar is: * DecimalString = * [Sign] Significand [Exponent]; * Sign = '+' | '-'; * Significand = * Digits ['.'] [Digits] | [Digits] '.' Digits; * Exponent = ('e' | 'E') [Sign] Digits; * Digits = { '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' }; * Services **should** clearly document the range of supported values, the * maximum supported precision (total number of digits), and, if applicable, * the scale (number of digits after the decimal point), as well as how it * behaves when receiving out-of-bounds values. * Services **may** choose to accept values passed as input even when the * value has a higher precision or scale than the service supports, and * **should** round the value to fit the supported scale. Alternatively, the * service **may** error with `400 Bad Request` (`INVALID_ARGUMENT` in gRPC) * if precision would be lost. * Services **should** error with `400 Bad Request` (`INVALID_ARGUMENT` in * gRPC) if the service receives a value outside of the supported range. * * Generated from protobuf field string value = 1; * @param string $var * @return $this */ public function setValue($var) { GPBUtil::checkString($var, True); $this->value = $var; return $this; } } src/Type/Expr.php000064400000014146151742727570007732 0ustar00 0" * * Generated from protobuf message google.type.Expr */ class Expr extends \Google\Protobuf\Internal\Message { /** * Textual representation of an expression in * Common Expression Language syntax. * The application context of the containing message determines which * well-known feature set of CEL is supported. * * Generated from protobuf field string expression = 1; */ private $expression = ''; /** * An optional title for the expression, i.e. a short string describing * its purpose. This can be used e.g. in UIs which allow to enter the * expression. * * Generated from protobuf field string title = 2; */ private $title = ''; /** * An optional description of the expression. This is a longer text which * describes the expression, e.g. when hovered over it in a UI. * * Generated from protobuf field string description = 3; */ private $description = ''; /** * An optional string indicating the location of the expression for error * reporting, e.g. a file name and a position in the file. * * Generated from protobuf field string location = 4; */ private $location = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $expression * Textual representation of an expression in * Common Expression Language syntax. * The application context of the containing message determines which * well-known feature set of CEL is supported. * @type string $title * An optional title for the expression, i.e. a short string describing * its purpose. This can be used e.g. in UIs which allow to enter the * expression. * @type string $description * An optional description of the expression. This is a longer text which * describes the expression, e.g. when hovered over it in a UI. * @type string $location * An optional string indicating the location of the expression for error * reporting, e.g. a file name and a position in the file. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Type\Expr::initOnce(); parent::__construct($data); } /** * Textual representation of an expression in * Common Expression Language syntax. * The application context of the containing message determines which * well-known feature set of CEL is supported. * * Generated from protobuf field string expression = 1; * @return string */ public function getExpression() { return $this->expression; } /** * Textual representation of an expression in * Common Expression Language syntax. * The application context of the containing message determines which * well-known feature set of CEL is supported. * * Generated from protobuf field string expression = 1; * @param string $var * @return $this */ public function setExpression($var) { GPBUtil::checkString($var, True); $this->expression = $var; return $this; } /** * An optional title for the expression, i.e. a short string describing * its purpose. This can be used e.g. in UIs which allow to enter the * expression. * * Generated from protobuf field string title = 2; * @return string */ public function getTitle() { return $this->title; } /** * An optional title for the expression, i.e. a short string describing * its purpose. This can be used e.g. in UIs which allow to enter the * expression. * * Generated from protobuf field string title = 2; * @param string $var * @return $this */ public function setTitle($var) { GPBUtil::checkString($var, True); $this->title = $var; return $this; } /** * An optional description of the expression. This is a longer text which * describes the expression, e.g. when hovered over it in a UI. * * Generated from protobuf field string description = 3; * @return string */ public function getDescription() { return $this->description; } /** * An optional description of the expression. This is a longer text which * describes the expression, e.g. when hovered over it in a UI. * * Generated from protobuf field string description = 3; * @param string $var * @return $this */ public function setDescription($var) { GPBUtil::checkString($var, True); $this->description = $var; return $this; } /** * An optional string indicating the location of the expression for error * reporting, e.g. a file name and a position in the file. * * Generated from protobuf field string location = 4; * @return string */ public function getLocation() { return $this->location; } /** * An optional string indicating the location of the expression for error * reporting, e.g. a file name and a position in the file. * * Generated from protobuf field string location = 4; * @param string $var * @return $this */ public function setLocation($var) { GPBUtil::checkString($var, True); $this->location = $var; return $this; } } src/Type/Fraction.php000064400000005300151742727570010551 0ustar00google.type.Fraction */ class Fraction extends \Google\Protobuf\Internal\Message { /** * The portion of the denominator in the faction, e.g. 2 in 2/3. * * Generated from protobuf field int64 numerator = 1; */ private $numerator = 0; /** * The value by which the numerator is divided, e.g. 3 in 2/3. Must be * positive. * * Generated from protobuf field int64 denominator = 2; */ private $denominator = 0; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int|string $numerator * The portion of the denominator in the faction, e.g. 2 in 2/3. * @type int|string $denominator * The value by which the numerator is divided, e.g. 3 in 2/3. Must be * positive. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Type\Fraction::initOnce(); parent::__construct($data); } /** * The portion of the denominator in the faction, e.g. 2 in 2/3. * * Generated from protobuf field int64 numerator = 1; * @return int|string */ public function getNumerator() { return $this->numerator; } /** * The portion of the denominator in the faction, e.g. 2 in 2/3. * * Generated from protobuf field int64 numerator = 1; * @param int|string $var * @return $this */ public function setNumerator($var) { GPBUtil::checkInt64($var); $this->numerator = $var; return $this; } /** * The value by which the numerator is divided, e.g. 3 in 2/3. Must be * positive. * * Generated from protobuf field int64 denominator = 2; * @return int|string */ public function getDenominator() { return $this->denominator; } /** * The value by which the numerator is divided, e.g. 3 in 2/3. Must be * positive. * * Generated from protobuf field int64 denominator = 2; * @param int|string $var * @return $this */ public function setDenominator($var) { GPBUtil::checkInt64($var); $this->denominator = $var; return $this; } } src/Type/Interval.php000064400000010263151742727570010574 0ustar00google.type.Interval */ class Interval extends \Google\Protobuf\Internal\Message { /** * Optional. Inclusive start of the interval. * If specified, a Timestamp matching this interval will have to be the same * or after the start. * * Generated from protobuf field .google.protobuf.Timestamp start_time = 1; */ protected $start_time = null; /** * Optional. Exclusive end of the interval. * If specified, a Timestamp matching this interval will have to be before the * end. * * Generated from protobuf field .google.protobuf.Timestamp end_time = 2; */ protected $end_time = null; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Google\Protobuf\Timestamp $start_time * Optional. Inclusive start of the interval. * If specified, a Timestamp matching this interval will have to be the same * or after the start. * @type \Google\Protobuf\Timestamp $end_time * Optional. Exclusive end of the interval. * If specified, a Timestamp matching this interval will have to be before the * end. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Type\Interval::initOnce(); parent::__construct($data); } /** * Optional. Inclusive start of the interval. * If specified, a Timestamp matching this interval will have to be the same * or after the start. * * Generated from protobuf field .google.protobuf.Timestamp start_time = 1; * @return \Google\Protobuf\Timestamp|null */ public function getStartTime() { return isset($this->start_time) ? $this->start_time : null; } public function hasStartTime() { return isset($this->start_time); } public function clearStartTime() { unset($this->start_time); } /** * Optional. Inclusive start of the interval. * If specified, a Timestamp matching this interval will have to be the same * or after the start. * * Generated from protobuf field .google.protobuf.Timestamp start_time = 1; * @param \Google\Protobuf\Timestamp $var * @return $this */ public function setStartTime($var) { GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); $this->start_time = $var; return $this; } /** * Optional. Exclusive end of the interval. * If specified, a Timestamp matching this interval will have to be before the * end. * * Generated from protobuf field .google.protobuf.Timestamp end_time = 2; * @return \Google\Protobuf\Timestamp|null */ public function getEndTime() { return isset($this->end_time) ? $this->end_time : null; } public function hasEndTime() { return isset($this->end_time); } public function clearEndTime() { unset($this->end_time); } /** * Optional. Exclusive end of the interval. * If specified, a Timestamp matching this interval will have to be before the * end. * * Generated from protobuf field .google.protobuf.Timestamp end_time = 2; * @param \Google\Protobuf\Timestamp $var * @return $this */ public function setEndTime($var) { GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); $this->end_time = $var; return $this; } } src/Type/LatLng.php000064400000005516151742727570010176 0ustar00WGS84 * standard. Values must be within normalized ranges. * * Generated from protobuf message google.type.LatLng */ class LatLng extends \Google\Protobuf\Internal\Message { /** * The latitude in degrees. It must be in the range [-90.0, +90.0]. * * Generated from protobuf field double latitude = 1; */ private $latitude = 0.0; /** * The longitude in degrees. It must be in the range [-180.0, +180.0]. * * Generated from protobuf field double longitude = 2; */ private $longitude = 0.0; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type float $latitude * The latitude in degrees. It must be in the range [-90.0, +90.0]. * @type float $longitude * The longitude in degrees. It must be in the range [-180.0, +180.0]. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Type\Latlng::initOnce(); parent::__construct($data); } /** * The latitude in degrees. It must be in the range [-90.0, +90.0]. * * Generated from protobuf field double latitude = 1; * @return float */ public function getLatitude() { return $this->latitude; } /** * The latitude in degrees. It must be in the range [-90.0, +90.0]. * * Generated from protobuf field double latitude = 1; * @param float $var * @return $this */ public function setLatitude($var) { GPBUtil::checkDouble($var); $this->latitude = $var; return $this; } /** * The longitude in degrees. It must be in the range [-180.0, +180.0]. * * Generated from protobuf field double longitude = 2; * @return float */ public function getLongitude() { return $this->longitude; } /** * The longitude in degrees. It must be in the range [-180.0, +180.0]. * * Generated from protobuf field double longitude = 2; * @param float $var * @return $this */ public function setLongitude($var) { GPBUtil::checkDouble($var); $this->longitude = $var; return $this; } } src/Type/LocalizedText.php000064400000006046151742727570011567 0ustar00google.type.LocalizedText */ class LocalizedText extends \Google\Protobuf\Internal\Message { /** * Localized string in the language corresponding to `language_code' below. * * Generated from protobuf field string text = 1; */ protected $text = ''; /** * The text's BCP-47 language code, such as "en-US" or "sr-Latn". * For more information, see * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. * * Generated from protobuf field string language_code = 2; */ protected $language_code = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $text * Localized string in the language corresponding to `language_code' below. * @type string $language_code * The text's BCP-47 language code, such as "en-US" or "sr-Latn". * For more information, see * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Type\LocalizedText::initOnce(); parent::__construct($data); } /** * Localized string in the language corresponding to `language_code' below. * * Generated from protobuf field string text = 1; * @return string */ public function getText() { return $this->text; } /** * Localized string in the language corresponding to `language_code' below. * * Generated from protobuf field string text = 1; * @param string $var * @return $this */ public function setText($var) { GPBUtil::checkString($var, True); $this->text = $var; return $this; } /** * The text's BCP-47 language code, such as "en-US" or "sr-Latn". * For more information, see * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. * * Generated from protobuf field string language_code = 2; * @return string */ public function getLanguageCode() { return $this->language_code; } /** * The text's BCP-47 language code, such as "en-US" or "sr-Latn". * For more information, see * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. * * Generated from protobuf field string language_code = 2; * @param string $var * @return $this */ public function setLanguageCode($var) { GPBUtil::checkString($var, True); $this->language_code = $var; return $this; } } src/Type/Money.php000064400000011642151742727570010101 0ustar00google.type.Money */ class Money extends \Google\Protobuf\Internal\Message { /** * The 3-letter currency code defined in ISO 4217. * * Generated from protobuf field string currency_code = 1; */ private $currency_code = ''; /** * The whole units of the amount. * For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar. * * Generated from protobuf field int64 units = 2; */ private $units = 0; /** * Number of nano (10^-9) units of the amount. * The value must be between -999,999,999 and +999,999,999 inclusive. * If `units` is positive, `nanos` must be positive or zero. * If `units` is zero, `nanos` can be positive, zero, or negative. * If `units` is negative, `nanos` must be negative or zero. * For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. * * Generated from protobuf field int32 nanos = 3; */ private $nanos = 0; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $currency_code * The 3-letter currency code defined in ISO 4217. * @type int|string $units * The whole units of the amount. * For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar. * @type int $nanos * Number of nano (10^-9) units of the amount. * The value must be between -999,999,999 and +999,999,999 inclusive. * If `units` is positive, `nanos` must be positive or zero. * If `units` is zero, `nanos` can be positive, zero, or negative. * If `units` is negative, `nanos` must be negative or zero. * For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Type\Money::initOnce(); parent::__construct($data); } /** * The 3-letter currency code defined in ISO 4217. * * Generated from protobuf field string currency_code = 1; * @return string */ public function getCurrencyCode() { return $this->currency_code; } /** * The 3-letter currency code defined in ISO 4217. * * Generated from protobuf field string currency_code = 1; * @param string $var * @return $this */ public function setCurrencyCode($var) { GPBUtil::checkString($var, True); $this->currency_code = $var; return $this; } /** * The whole units of the amount. * For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar. * * Generated from protobuf field int64 units = 2; * @return int|string */ public function getUnits() { return $this->units; } /** * The whole units of the amount. * For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar. * * Generated from protobuf field int64 units = 2; * @param int|string $var * @return $this */ public function setUnits($var) { GPBUtil::checkInt64($var); $this->units = $var; return $this; } /** * Number of nano (10^-9) units of the amount. * The value must be between -999,999,999 and +999,999,999 inclusive. * If `units` is positive, `nanos` must be positive or zero. * If `units` is zero, `nanos` can be positive, zero, or negative. * If `units` is negative, `nanos` must be negative or zero. * For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. * * Generated from protobuf field int32 nanos = 3; * @return int */ public function getNanos() { return $this->nanos; } /** * Number of nano (10^-9) units of the amount. * The value must be between -999,999,999 and +999,999,999 inclusive. * If `units` is positive, `nanos` must be positive or zero. * If `units` is zero, `nanos` can be positive, zero, or negative. * If `units` is negative, `nanos` must be negative or zero. * For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. * * Generated from protobuf field int32 nanos = 3; * @param int $var * @return $this */ public function setNanos($var) { GPBUtil::checkInt32($var); $this->nanos = $var; return $this; } } src/Type/Month.php000064400000006166151742727570010104 0ustar00google.type.Month */ class Month { /** * The unspecifed month. * * Generated from protobuf enum MONTH_UNSPECIFIED = 0; */ const MONTH_UNSPECIFIED = 0; /** * The month of January. * * Generated from protobuf enum JANUARY = 1; */ const JANUARY = 1; /** * The month of February. * * Generated from protobuf enum FEBRUARY = 2; */ const FEBRUARY = 2; /** * The month of March. * * Generated from protobuf enum MARCH = 3; */ const MARCH = 3; /** * The month of April. * * Generated from protobuf enum APRIL = 4; */ const APRIL = 4; /** * The month of May. * * Generated from protobuf enum MAY = 5; */ const MAY = 5; /** * The month of June. * * Generated from protobuf enum JUNE = 6; */ const JUNE = 6; /** * The month of July. * * Generated from protobuf enum JULY = 7; */ const JULY = 7; /** * The month of August. * * Generated from protobuf enum AUGUST = 8; */ const AUGUST = 8; /** * The month of September. * * Generated from protobuf enum SEPTEMBER = 9; */ const SEPTEMBER = 9; /** * The month of October. * * Generated from protobuf enum OCTOBER = 10; */ const OCTOBER = 10; /** * The month of November. * * Generated from protobuf enum NOVEMBER = 11; */ const NOVEMBER = 11; /** * The month of December. * * Generated from protobuf enum DECEMBER = 12; */ const DECEMBER = 12; private static $valueToName = [ self::MONTH_UNSPECIFIED => 'MONTH_UNSPECIFIED', self::JANUARY => 'JANUARY', self::FEBRUARY => 'FEBRUARY', self::MARCH => 'MARCH', self::APRIL => 'APRIL', self::MAY => 'MAY', self::JUNE => 'JUNE', self::JULY => 'JULY', self::AUGUST => 'AUGUST', self::SEPTEMBER => 'SEPTEMBER', self::OCTOBER => 'OCTOBER', self::NOVEMBER => 'NOVEMBER', self::DECEMBER => 'DECEMBER', ]; public static function name($value) { if (!isset(self::$valueToName[$value])) { throw new UnexpectedValueException(sprintf( 'Enum %s has no name defined for value %s', __CLASS__, $value)); } return self::$valueToName[$value]; } public static function value($name) { $const = __CLASS__ . '::' . strtoupper($name); if (!defined($const)) { throw new UnexpectedValueException(sprintf( 'Enum %s has no value defined for name %s', __CLASS__, $name)); } return constant($const); } } src/Type/PhoneNumber.php000064400000021427151742727570011236 0ustar00google.type.PhoneNumber */ class PhoneNumber extends \Google\Protobuf\Internal\Message { /** * The phone number's extension. The extension is not standardized in ITU * recommendations, except for being defined as a series of numbers with a * maximum length of 40 digits. Other than digits, some other dialing * characters such as ',' (indicating a wait) or '#' may be stored here. * Note that no regions currently use extensions with short codes, so this * field is normally only set in conjunction with an E.164 number. It is held * separately from the E.164 number to allow for short code extensions in the * future. * * Generated from protobuf field string extension = 3; */ protected $extension = ''; protected $kind; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $e164_number * The phone number, represented as a leading plus sign ('+'), followed by a * phone number that uses a relaxed ITU E.164 format consisting of the * country calling code (1 to 3 digits) and the subscriber number, with no * additional spaces or formatting, e.g.: * - correct: "+15552220123" * - incorrect: "+1 (555) 222-01234 x123". * The ITU E.164 format limits the latter to 12 digits, but in practice not * all countries respect that, so we relax that restriction here. * National-only numbers are not allowed. * References: * - https://www.itu.int/rec/T-REC-E.164-201011-I * - https://en.wikipedia.org/wiki/E.164. * - https://en.wikipedia.org/wiki/List_of_country_calling_codes * @type \Google\Type\PhoneNumber\ShortCode $short_code * A short code. * Reference(s): * - https://en.wikipedia.org/wiki/Short_code * @type string $extension * The phone number's extension. The extension is not standardized in ITU * recommendations, except for being defined as a series of numbers with a * maximum length of 40 digits. Other than digits, some other dialing * characters such as ',' (indicating a wait) or '#' may be stored here. * Note that no regions currently use extensions with short codes, so this * field is normally only set in conjunction with an E.164 number. It is held * separately from the E.164 number to allow for short code extensions in the * future. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Type\PhoneNumber::initOnce(); parent::__construct($data); } /** * The phone number, represented as a leading plus sign ('+'), followed by a * phone number that uses a relaxed ITU E.164 format consisting of the * country calling code (1 to 3 digits) and the subscriber number, with no * additional spaces or formatting, e.g.: * - correct: "+15552220123" * - incorrect: "+1 (555) 222-01234 x123". * The ITU E.164 format limits the latter to 12 digits, but in practice not * all countries respect that, so we relax that restriction here. * National-only numbers are not allowed. * References: * - https://www.itu.int/rec/T-REC-E.164-201011-I * - https://en.wikipedia.org/wiki/E.164. * - https://en.wikipedia.org/wiki/List_of_country_calling_codes * * Generated from protobuf field string e164_number = 1; * @return string */ public function getE164Number() { return $this->readOneof(1); } public function hasE164Number() { return $this->hasOneof(1); } /** * The phone number, represented as a leading plus sign ('+'), followed by a * phone number that uses a relaxed ITU E.164 format consisting of the * country calling code (1 to 3 digits) and the subscriber number, with no * additional spaces or formatting, e.g.: * - correct: "+15552220123" * - incorrect: "+1 (555) 222-01234 x123". * The ITU E.164 format limits the latter to 12 digits, but in practice not * all countries respect that, so we relax that restriction here. * National-only numbers are not allowed. * References: * - https://www.itu.int/rec/T-REC-E.164-201011-I * - https://en.wikipedia.org/wiki/E.164. * - https://en.wikipedia.org/wiki/List_of_country_calling_codes * * Generated from protobuf field string e164_number = 1; * @param string $var * @return $this */ public function setE164Number($var) { GPBUtil::checkString($var, True); $this->writeOneof(1, $var); return $this; } /** * A short code. * Reference(s): * - https://en.wikipedia.org/wiki/Short_code * * Generated from protobuf field .google.type.PhoneNumber.ShortCode short_code = 2; * @return \Google\Type\PhoneNumber\ShortCode|null */ public function getShortCode() { return $this->readOneof(2); } public function hasShortCode() { return $this->hasOneof(2); } /** * A short code. * Reference(s): * - https://en.wikipedia.org/wiki/Short_code * * Generated from protobuf field .google.type.PhoneNumber.ShortCode short_code = 2; * @param \Google\Type\PhoneNumber\ShortCode $var * @return $this */ public function setShortCode($var) { GPBUtil::checkMessage($var, \Google\Type\PhoneNumber\ShortCode::class); $this->writeOneof(2, $var); return $this; } /** * The phone number's extension. The extension is not standardized in ITU * recommendations, except for being defined as a series of numbers with a * maximum length of 40 digits. Other than digits, some other dialing * characters such as ',' (indicating a wait) or '#' may be stored here. * Note that no regions currently use extensions with short codes, so this * field is normally only set in conjunction with an E.164 number. It is held * separately from the E.164 number to allow for short code extensions in the * future. * * Generated from protobuf field string extension = 3; * @return string */ public function getExtension() { return $this->extension; } /** * The phone number's extension. The extension is not standardized in ITU * recommendations, except for being defined as a series of numbers with a * maximum length of 40 digits. Other than digits, some other dialing * characters such as ',' (indicating a wait) or '#' may be stored here. * Note that no regions currently use extensions with short codes, so this * field is normally only set in conjunction with an E.164 number. It is held * separately from the E.164 number to allow for short code extensions in the * future. * * Generated from protobuf field string extension = 3; * @param string $var * @return $this */ public function setExtension($var) { GPBUtil::checkString($var, True); $this->extension = $var; return $this; } /** * @return string */ public function getKind() { return $this->whichOneof("kind"); } } src/Type/PhoneNumber/ShortCode.php000064400000007576151742727570013141 0ustar00google.type.PhoneNumber.ShortCode */ class ShortCode extends \Google\Protobuf\Internal\Message { /** * Required. The BCP-47 region code of the location where calls to this * short code can be made, such as "US" and "BB". * Reference(s): * - http://www.unicode.org/reports/tr35/#unicode_region_subtag * * Generated from protobuf field string region_code = 1; */ protected $region_code = ''; /** * Required. The short code digits, without a leading plus ('+') or country * calling code, e.g. "611". * * Generated from protobuf field string number = 2; */ protected $number = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $region_code * Required. The BCP-47 region code of the location where calls to this * short code can be made, such as "US" and "BB". * Reference(s): * - http://www.unicode.org/reports/tr35/#unicode_region_subtag * @type string $number * Required. The short code digits, without a leading plus ('+') or country * calling code, e.g. "611". * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Type\PhoneNumber::initOnce(); parent::__construct($data); } /** * Required. The BCP-47 region code of the location where calls to this * short code can be made, such as "US" and "BB". * Reference(s): * - http://www.unicode.org/reports/tr35/#unicode_region_subtag * * Generated from protobuf field string region_code = 1; * @return string */ public function getRegionCode() { return $this->region_code; } /** * Required. The BCP-47 region code of the location where calls to this * short code can be made, such as "US" and "BB". * Reference(s): * - http://www.unicode.org/reports/tr35/#unicode_region_subtag * * Generated from protobuf field string region_code = 1; * @param string $var * @return $this */ public function setRegionCode($var) { GPBUtil::checkString($var, True); $this->region_code = $var; return $this; } /** * Required. The short code digits, without a leading plus ('+') or country * calling code, e.g. "611". * * Generated from protobuf field string number = 2; * @return string */ public function getNumber() { return $this->number; } /** * Required. The short code digits, without a leading plus ('+') or country * calling code, e.g. "611". * * Generated from protobuf field string number = 2; * @param string $var * @return $this */ public function setNumber($var) { GPBUtil::checkString($var, True); $this->number = $var; return $this; } } src/Type/PostalAddress.php000064400000064543151742727570011572 0ustar00google.type.PostalAddress */ class PostalAddress extends \Google\Protobuf\Internal\Message { /** * The schema revision of the `PostalAddress`. This must be set to 0, which is * the latest revision. * All new revisions **must** be backward compatible with old revisions. * * Generated from protobuf field int32 revision = 1; */ private $revision = 0; /** * Required. CLDR region code of the country/region of the address. This * is never inferred and it is up to the user to ensure the value is * correct. See http://cldr.unicode.org/ and * http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html * for details. Example: "CH" for Switzerland. * * Generated from protobuf field string region_code = 2; */ private $region_code = ''; /** * Optional. BCP-47 language code of the contents of this address (if * known). This is often the UI language of the input form or is expected * to match one of the languages used in the address' country/region, or their * transliterated equivalents. * This can affect formatting in certain countries, but is not critical * to the correctness of the data and will never affect any validation or * other non-formatting related operations. * If this value is not known, it should be omitted (rather than specifying a * possibly incorrect default). * Examples: "zh-Hant", "ja", "ja-Latn", "en". * * Generated from protobuf field string language_code = 3; */ private $language_code = ''; /** * Optional. Postal code of the address. Not all countries use or require * postal codes to be present, but where they are used, they may trigger * additional validation with other parts of the address (e.g. state/zip * validation in the U.S.A.). * * Generated from protobuf field string postal_code = 4; */ private $postal_code = ''; /** * Optional. Additional, country-specific, sorting code. This is not used * in most regions. Where it is used, the value is either a string like * "CEDEX", optionally followed by a number (e.g. "CEDEX 7"), or just a number * alone, representing the "sector code" (Jamaica), "delivery area indicator" * (Malawi) or "post office indicator" (e.g. Côte d'Ivoire). * * Generated from protobuf field string sorting_code = 5; */ private $sorting_code = ''; /** * Optional. Highest administrative subdivision which is used for postal * addresses of a country or region. * For example, this can be a state, a province, an oblast, or a prefecture. * Specifically, for Spain this is the province and not the autonomous * community (e.g. "Barcelona" and not "Catalonia"). * Many countries don't use an administrative area in postal addresses. E.g. * in Switzerland this should be left unpopulated. * * Generated from protobuf field string administrative_area = 6; */ private $administrative_area = ''; /** * Optional. Generally refers to the city/town portion of the address. * Examples: US city, IT comune, UK post town. * In regions of the world where localities are not well defined or do not fit * into this structure well, leave locality empty and use address_lines. * * Generated from protobuf field string locality = 7; */ private $locality = ''; /** * Optional. Sublocality of the address. * For example, this can be neighborhoods, boroughs, districts. * * Generated from protobuf field string sublocality = 8; */ private $sublocality = ''; /** * Unstructured address lines describing the lower levels of an address. * Because values in address_lines do not have type information and may * sometimes contain multiple values in a single field (e.g. * "Austin, TX"), it is important that the line order is clear. The order of * address lines should be "envelope order" for the country/region of the * address. In places where this can vary (e.g. Japan), address_language is * used to make it explicit (e.g. "ja" for large-to-small ordering and * "ja-Latn" or "en" for small-to-large). This way, the most specific line of * an address can be selected based on the language. * The minimum permitted structural representation of an address consists * of a region_code with all remaining information placed in the * address_lines. It would be possible to format such an address very * approximately without geocoding, but no semantic reasoning could be * made about any of the address components until it was at least * partially resolved. * Creating an address only containing a region_code and address_lines, and * then geocoding is the recommended way to handle completely unstructured * addresses (as opposed to guessing which parts of the address should be * localities or administrative areas). * * Generated from protobuf field repeated string address_lines = 9; */ private $address_lines; /** * Optional. The recipient at the address. * This field may, under certain circumstances, contain multiline information. * For example, it might contain "care of" information. * * Generated from protobuf field repeated string recipients = 10; */ private $recipients; /** * Optional. The name of the organization at the address. * * Generated from protobuf field string organization = 11; */ private $organization = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int $revision * The schema revision of the `PostalAddress`. This must be set to 0, which is * the latest revision. * All new revisions **must** be backward compatible with old revisions. * @type string $region_code * Required. CLDR region code of the country/region of the address. This * is never inferred and it is up to the user to ensure the value is * correct. See http://cldr.unicode.org/ and * http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html * for details. Example: "CH" for Switzerland. * @type string $language_code * Optional. BCP-47 language code of the contents of this address (if * known). This is often the UI language of the input form or is expected * to match one of the languages used in the address' country/region, or their * transliterated equivalents. * This can affect formatting in certain countries, but is not critical * to the correctness of the data and will never affect any validation or * other non-formatting related operations. * If this value is not known, it should be omitted (rather than specifying a * possibly incorrect default). * Examples: "zh-Hant", "ja", "ja-Latn", "en". * @type string $postal_code * Optional. Postal code of the address. Not all countries use or require * postal codes to be present, but where they are used, they may trigger * additional validation with other parts of the address (e.g. state/zip * validation in the U.S.A.). * @type string $sorting_code * Optional. Additional, country-specific, sorting code. This is not used * in most regions. Where it is used, the value is either a string like * "CEDEX", optionally followed by a number (e.g. "CEDEX 7"), or just a number * alone, representing the "sector code" (Jamaica), "delivery area indicator" * (Malawi) or "post office indicator" (e.g. Côte d'Ivoire). * @type string $administrative_area * Optional. Highest administrative subdivision which is used for postal * addresses of a country or region. * For example, this can be a state, a province, an oblast, or a prefecture. * Specifically, for Spain this is the province and not the autonomous * community (e.g. "Barcelona" and not "Catalonia"). * Many countries don't use an administrative area in postal addresses. E.g. * in Switzerland this should be left unpopulated. * @type string $locality * Optional. Generally refers to the city/town portion of the address. * Examples: US city, IT comune, UK post town. * In regions of the world where localities are not well defined or do not fit * into this structure well, leave locality empty and use address_lines. * @type string $sublocality * Optional. Sublocality of the address. * For example, this can be neighborhoods, boroughs, districts. * @type string[]|\Google\Protobuf\Internal\RepeatedField $address_lines * Unstructured address lines describing the lower levels of an address. * Because values in address_lines do not have type information and may * sometimes contain multiple values in a single field (e.g. * "Austin, TX"), it is important that the line order is clear. The order of * address lines should be "envelope order" for the country/region of the * address. In places where this can vary (e.g. Japan), address_language is * used to make it explicit (e.g. "ja" for large-to-small ordering and * "ja-Latn" or "en" for small-to-large). This way, the most specific line of * an address can be selected based on the language. * The minimum permitted structural representation of an address consists * of a region_code with all remaining information placed in the * address_lines. It would be possible to format such an address very * approximately without geocoding, but no semantic reasoning could be * made about any of the address components until it was at least * partially resolved. * Creating an address only containing a region_code and address_lines, and * then geocoding is the recommended way to handle completely unstructured * addresses (as opposed to guessing which parts of the address should be * localities or administrative areas). * @type string[]|\Google\Protobuf\Internal\RepeatedField $recipients * Optional. The recipient at the address. * This field may, under certain circumstances, contain multiline information. * For example, it might contain "care of" information. * @type string $organization * Optional. The name of the organization at the address. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Type\PostalAddress::initOnce(); parent::__construct($data); } /** * The schema revision of the `PostalAddress`. This must be set to 0, which is * the latest revision. * All new revisions **must** be backward compatible with old revisions. * * Generated from protobuf field int32 revision = 1; * @return int */ public function getRevision() { return $this->revision; } /** * The schema revision of the `PostalAddress`. This must be set to 0, which is * the latest revision. * All new revisions **must** be backward compatible with old revisions. * * Generated from protobuf field int32 revision = 1; * @param int $var * @return $this */ public function setRevision($var) { GPBUtil::checkInt32($var); $this->revision = $var; return $this; } /** * Required. CLDR region code of the country/region of the address. This * is never inferred and it is up to the user to ensure the value is * correct. See http://cldr.unicode.org/ and * http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html * for details. Example: "CH" for Switzerland. * * Generated from protobuf field string region_code = 2; * @return string */ public function getRegionCode() { return $this->region_code; } /** * Required. CLDR region code of the country/region of the address. This * is never inferred and it is up to the user to ensure the value is * correct. See http://cldr.unicode.org/ and * http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html * for details. Example: "CH" for Switzerland. * * Generated from protobuf field string region_code = 2; * @param string $var * @return $this */ public function setRegionCode($var) { GPBUtil::checkString($var, True); $this->region_code = $var; return $this; } /** * Optional. BCP-47 language code of the contents of this address (if * known). This is often the UI language of the input form or is expected * to match one of the languages used in the address' country/region, or their * transliterated equivalents. * This can affect formatting in certain countries, but is not critical * to the correctness of the data and will never affect any validation or * other non-formatting related operations. * If this value is not known, it should be omitted (rather than specifying a * possibly incorrect default). * Examples: "zh-Hant", "ja", "ja-Latn", "en". * * Generated from protobuf field string language_code = 3; * @return string */ public function getLanguageCode() { return $this->language_code; } /** * Optional. BCP-47 language code of the contents of this address (if * known). This is often the UI language of the input form or is expected * to match one of the languages used in the address' country/region, or their * transliterated equivalents. * This can affect formatting in certain countries, but is not critical * to the correctness of the data and will never affect any validation or * other non-formatting related operations. * If this value is not known, it should be omitted (rather than specifying a * possibly incorrect default). * Examples: "zh-Hant", "ja", "ja-Latn", "en". * * Generated from protobuf field string language_code = 3; * @param string $var * @return $this */ public function setLanguageCode($var) { GPBUtil::checkString($var, True); $this->language_code = $var; return $this; } /** * Optional. Postal code of the address. Not all countries use or require * postal codes to be present, but where they are used, they may trigger * additional validation with other parts of the address (e.g. state/zip * validation in the U.S.A.). * * Generated from protobuf field string postal_code = 4; * @return string */ public function getPostalCode() { return $this->postal_code; } /** * Optional. Postal code of the address. Not all countries use or require * postal codes to be present, but where they are used, they may trigger * additional validation with other parts of the address (e.g. state/zip * validation in the U.S.A.). * * Generated from protobuf field string postal_code = 4; * @param string $var * @return $this */ public function setPostalCode($var) { GPBUtil::checkString($var, True); $this->postal_code = $var; return $this; } /** * Optional. Additional, country-specific, sorting code. This is not used * in most regions. Where it is used, the value is either a string like * "CEDEX", optionally followed by a number (e.g. "CEDEX 7"), or just a number * alone, representing the "sector code" (Jamaica), "delivery area indicator" * (Malawi) or "post office indicator" (e.g. Côte d'Ivoire). * * Generated from protobuf field string sorting_code = 5; * @return string */ public function getSortingCode() { return $this->sorting_code; } /** * Optional. Additional, country-specific, sorting code. This is not used * in most regions. Where it is used, the value is either a string like * "CEDEX", optionally followed by a number (e.g. "CEDEX 7"), or just a number * alone, representing the "sector code" (Jamaica), "delivery area indicator" * (Malawi) or "post office indicator" (e.g. Côte d'Ivoire). * * Generated from protobuf field string sorting_code = 5; * @param string $var * @return $this */ public function setSortingCode($var) { GPBUtil::checkString($var, True); $this->sorting_code = $var; return $this; } /** * Optional. Highest administrative subdivision which is used for postal * addresses of a country or region. * For example, this can be a state, a province, an oblast, or a prefecture. * Specifically, for Spain this is the province and not the autonomous * community (e.g. "Barcelona" and not "Catalonia"). * Many countries don't use an administrative area in postal addresses. E.g. * in Switzerland this should be left unpopulated. * * Generated from protobuf field string administrative_area = 6; * @return string */ public function getAdministrativeArea() { return $this->administrative_area; } /** * Optional. Highest administrative subdivision which is used for postal * addresses of a country or region. * For example, this can be a state, a province, an oblast, or a prefecture. * Specifically, for Spain this is the province and not the autonomous * community (e.g. "Barcelona" and not "Catalonia"). * Many countries don't use an administrative area in postal addresses. E.g. * in Switzerland this should be left unpopulated. * * Generated from protobuf field string administrative_area = 6; * @param string $var * @return $this */ public function setAdministrativeArea($var) { GPBUtil::checkString($var, True); $this->administrative_area = $var; return $this; } /** * Optional. Generally refers to the city/town portion of the address. * Examples: US city, IT comune, UK post town. * In regions of the world where localities are not well defined or do not fit * into this structure well, leave locality empty and use address_lines. * * Generated from protobuf field string locality = 7; * @return string */ public function getLocality() { return $this->locality; } /** * Optional. Generally refers to the city/town portion of the address. * Examples: US city, IT comune, UK post town. * In regions of the world where localities are not well defined or do not fit * into this structure well, leave locality empty and use address_lines. * * Generated from protobuf field string locality = 7; * @param string $var * @return $this */ public function setLocality($var) { GPBUtil::checkString($var, True); $this->locality = $var; return $this; } /** * Optional. Sublocality of the address. * For example, this can be neighborhoods, boroughs, districts. * * Generated from protobuf field string sublocality = 8; * @return string */ public function getSublocality() { return $this->sublocality; } /** * Optional. Sublocality of the address. * For example, this can be neighborhoods, boroughs, districts. * * Generated from protobuf field string sublocality = 8; * @param string $var * @return $this */ public function setSublocality($var) { GPBUtil::checkString($var, True); $this->sublocality = $var; return $this; } /** * Unstructured address lines describing the lower levels of an address. * Because values in address_lines do not have type information and may * sometimes contain multiple values in a single field (e.g. * "Austin, TX"), it is important that the line order is clear. The order of * address lines should be "envelope order" for the country/region of the * address. In places where this can vary (e.g. Japan), address_language is * used to make it explicit (e.g. "ja" for large-to-small ordering and * "ja-Latn" or "en" for small-to-large). This way, the most specific line of * an address can be selected based on the language. * The minimum permitted structural representation of an address consists * of a region_code with all remaining information placed in the * address_lines. It would be possible to format such an address very * approximately without geocoding, but no semantic reasoning could be * made about any of the address components until it was at least * partially resolved. * Creating an address only containing a region_code and address_lines, and * then geocoding is the recommended way to handle completely unstructured * addresses (as opposed to guessing which parts of the address should be * localities or administrative areas). * * Generated from protobuf field repeated string address_lines = 9; * @return \Google\Protobuf\Internal\RepeatedField */ public function getAddressLines() { return $this->address_lines; } /** * Unstructured address lines describing the lower levels of an address. * Because values in address_lines do not have type information and may * sometimes contain multiple values in a single field (e.g. * "Austin, TX"), it is important that the line order is clear. The order of * address lines should be "envelope order" for the country/region of the * address. In places where this can vary (e.g. Japan), address_language is * used to make it explicit (e.g. "ja" for large-to-small ordering and * "ja-Latn" or "en" for small-to-large). This way, the most specific line of * an address can be selected based on the language. * The minimum permitted structural representation of an address consists * of a region_code with all remaining information placed in the * address_lines. It would be possible to format such an address very * approximately without geocoding, but no semantic reasoning could be * made about any of the address components until it was at least * partially resolved. * Creating an address only containing a region_code and address_lines, and * then geocoding is the recommended way to handle completely unstructured * addresses (as opposed to guessing which parts of the address should be * localities or administrative areas). * * Generated from protobuf field repeated string address_lines = 9; * @param string[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setAddressLines($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); $this->address_lines = $arr; return $this; } /** * Optional. The recipient at the address. * This field may, under certain circumstances, contain multiline information. * For example, it might contain "care of" information. * * Generated from protobuf field repeated string recipients = 10; * @return \Google\Protobuf\Internal\RepeatedField */ public function getRecipients() { return $this->recipients; } /** * Optional. The recipient at the address. * This field may, under certain circumstances, contain multiline information. * For example, it might contain "care of" information. * * Generated from protobuf field repeated string recipients = 10; * @param string[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setRecipients($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); $this->recipients = $arr; return $this; } /** * Optional. The name of the organization at the address. * * Generated from protobuf field string organization = 11; * @return string */ public function getOrganization() { return $this->organization; } /** * Optional. The name of the organization at the address. * * Generated from protobuf field string organization = 11; * @param string $var * @return $this */ public function setOrganization($var) { GPBUtil::checkString($var, True); $this->organization = $var; return $this; } } src/Type/Quaternion.php000064400000013670151742727570011142 0ustar00google.type.Quaternion */ class Quaternion extends \Google\Protobuf\Internal\Message { /** * The x component. * * Generated from protobuf field double x = 1; */ private $x = 0.0; /** * The y component. * * Generated from protobuf field double y = 2; */ private $y = 0.0; /** * The z component. * * Generated from protobuf field double z = 3; */ private $z = 0.0; /** * The scalar component. * * Generated from protobuf field double w = 4; */ private $w = 0.0; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type float $x * The x component. * @type float $y * The y component. * @type float $z * The z component. * @type float $w * The scalar component. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Type\Quaternion::initOnce(); parent::__construct($data); } /** * The x component. * * Generated from protobuf field double x = 1; * @return float */ public function getX() { return $this->x; } /** * The x component. * * Generated from protobuf field double x = 1; * @param float $var * @return $this */ public function setX($var) { GPBUtil::checkDouble($var); $this->x = $var; return $this; } /** * The y component. * * Generated from protobuf field double y = 2; * @return float */ public function getY() { return $this->y; } /** * The y component. * * Generated from protobuf field double y = 2; * @param float $var * @return $this */ public function setY($var) { GPBUtil::checkDouble($var); $this->y = $var; return $this; } /** * The z component. * * Generated from protobuf field double z = 3; * @return float */ public function getZ() { return $this->z; } /** * The z component. * * Generated from protobuf field double z = 3; * @param float $var * @return $this */ public function setZ($var) { GPBUtil::checkDouble($var); $this->z = $var; return $this; } /** * The scalar component. * * Generated from protobuf field double w = 4; * @return float */ public function getW() { return $this->w; } /** * The scalar component. * * Generated from protobuf field double w = 4; * @param float $var * @return $this */ public function setW($var) { GPBUtil::checkDouble($var); $this->w = $var; return $this; } } src/Type/TimeOfDay.php000064400000011737151742727570010640 0ustar00google.type.TimeOfDay */ class TimeOfDay extends \Google\Protobuf\Internal\Message { /** * Hours of day in 24 hour format. Should be from 0 to 23. An API may choose * to allow the value "24:00:00" for scenarios like business closing time. * * Generated from protobuf field int32 hours = 1; */ private $hours = 0; /** * Minutes of hour of day. Must be from 0 to 59. * * Generated from protobuf field int32 minutes = 2; */ private $minutes = 0; /** * Seconds of minutes of the time. Must normally be from 0 to 59. An API may * allow the value 60 if it allows leap-seconds. * * Generated from protobuf field int32 seconds = 3; */ private $seconds = 0; /** * Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. * * Generated from protobuf field int32 nanos = 4; */ private $nanos = 0; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int $hours * Hours of day in 24 hour format. Should be from 0 to 23. An API may choose * to allow the value "24:00:00" for scenarios like business closing time. * @type int $minutes * Minutes of hour of day. Must be from 0 to 59. * @type int $seconds * Seconds of minutes of the time. Must normally be from 0 to 59. An API may * allow the value 60 if it allows leap-seconds. * @type int $nanos * Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Type\Timeofday::initOnce(); parent::__construct($data); } /** * Hours of day in 24 hour format. Should be from 0 to 23. An API may choose * to allow the value "24:00:00" for scenarios like business closing time. * * Generated from protobuf field int32 hours = 1; * @return int */ public function getHours() { return $this->hours; } /** * Hours of day in 24 hour format. Should be from 0 to 23. An API may choose * to allow the value "24:00:00" for scenarios like business closing time. * * Generated from protobuf field int32 hours = 1; * @param int $var * @return $this */ public function setHours($var) { GPBUtil::checkInt32($var); $this->hours = $var; return $this; } /** * Minutes of hour of day. Must be from 0 to 59. * * Generated from protobuf field int32 minutes = 2; * @return int */ public function getMinutes() { return $this->minutes; } /** * Minutes of hour of day. Must be from 0 to 59. * * Generated from protobuf field int32 minutes = 2; * @param int $var * @return $this */ public function setMinutes($var) { GPBUtil::checkInt32($var); $this->minutes = $var; return $this; } /** * Seconds of minutes of the time. Must normally be from 0 to 59. An API may * allow the value 60 if it allows leap-seconds. * * Generated from protobuf field int32 seconds = 3; * @return int */ public function getSeconds() { return $this->seconds; } /** * Seconds of minutes of the time. Must normally be from 0 to 59. An API may * allow the value 60 if it allows leap-seconds. * * Generated from protobuf field int32 seconds = 3; * @param int $var * @return $this */ public function setSeconds($var) { GPBUtil::checkInt32($var); $this->seconds = $var; return $this; } /** * Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. * * Generated from protobuf field int32 nanos = 4; * @return int */ public function getNanos() { return $this->nanos; } /** * Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. * * Generated from protobuf field int32 nanos = 4; * @param int $var * @return $this */ public function setNanos($var) { GPBUtil::checkInt32($var); $this->nanos = $var; return $this; } } src/Type/TimeZone.php000064400000005014151742727570010540 0ustar00google.type.TimeZone */ class TimeZone extends \Google\Protobuf\Internal\Message { /** * IANA Time Zone Database time zone, e.g. "America/New_York". * * Generated from protobuf field string id = 1; */ private $id = ''; /** * Optional. IANA Time Zone Database version number, e.g. "2019a". * * Generated from protobuf field string version = 2; */ private $version = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $id * IANA Time Zone Database time zone, e.g. "America/New_York". * @type string $version * Optional. IANA Time Zone Database version number, e.g. "2019a". * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Type\Datetime::initOnce(); parent::__construct($data); } /** * IANA Time Zone Database time zone, e.g. "America/New_York". * * Generated from protobuf field string id = 1; * @return string */ public function getId() { return $this->id; } /** * IANA Time Zone Database time zone, e.g. "America/New_York". * * Generated from protobuf field string id = 1; * @param string $var * @return $this */ public function setId($var) { GPBUtil::checkString($var, True); $this->id = $var; return $this; } /** * Optional. IANA Time Zone Database version number, e.g. "2019a". * * Generated from protobuf field string version = 2; * @return string */ public function getVersion() { return $this->version; } /** * Optional. IANA Time Zone Database version number, e.g. "2019a". * * Generated from protobuf field string version = 2; * @param string $var * @return $this */ public function setVersion($var) { GPBUtil::checkString($var, True); $this->version = $var; return $this; } }