CHANGELOG.md000064400000012431151742741400006363 0ustar00# Changelog ## [4.5.0](https://github.com/googleapis/common-protos-php/compare/v4.4.0...v4.5.0) (2023-11-29) ### Features * Add auto_populated_fields to google.api.MethodSettings ([#74](https://github.com/googleapis/common-protos-php/issues/74)) ([d739417](https://github.com/googleapis/common-protos-php/commit/d7394176eb95f0e92af4e93746dba8f515ba9bc2)) ## [4.4.0](https://github.com/googleapis/common-protos-php/compare/v4.3.0...v4.4.0) (2023-10-02) ### Features * Public google.api.FieldInfo type and extension ([#71](https://github.com/googleapis/common-protos-php/issues/71)) ([4002074](https://github.com/googleapis/common-protos-php/commit/40020744c65e7561dec08e1cd2994afcc51ec771)) ## [4.3.0](https://github.com/googleapis/common-protos-php/compare/v4.2.0...v4.3.0) (2023-08-22) ### Features * Add new FieldBehavior value IDENTIFIER ([#67](https://github.com/googleapis/common-protos-php/issues/67)) ([6c6c21f](https://github.com/googleapis/common-protos-php/commit/6c6c21fc4a2f4711aeddad11082ed17acaf4733c)) ## [4.2.0](https://github.com/googleapis/common-protos-php/compare/v4.1.0...v4.2.0) (2023-07-25) ### Features * Add a proto message to describe the `resource_type` and `resource_permission` for an API method ([#64](https://github.com/googleapis/common-protos-php/issues/64)) ([8a0ff5f](https://github.com/googleapis/common-protos-php/commit/8a0ff5f9ffcf3683fc4718e85e97f45a001a1925)) ## [4.1.0](https://github.com/googleapis/common-protos-php/compare/v4.0.0...v4.1.0) (2023-05-06) ### Features * Add ConfigServiceV2.CreateBucketAsync method for creating Log Buckets asynchronously ([b18d554](https://github.com/googleapis/common-protos-php/commit/b18d55421cbe1e55d62b5d149e56be23db8c4286)) * Add ConfigServiceV2.CreateLink method for creating linked datasets for Log Analytics Buckets ([b18d554](https://github.com/googleapis/common-protos-php/commit/b18d55421cbe1e55d62b5d149e56be23db8c4286)) * Add ConfigServiceV2.DeleteLink method for deleting linked datasets ([b18d554](https://github.com/googleapis/common-protos-php/commit/b18d55421cbe1e55d62b5d149e56be23db8c4286)) * Add ConfigServiceV2.GetLink methods for describing linked datasets ([b18d554](https://github.com/googleapis/common-protos-php/commit/b18d55421cbe1e55d62b5d149e56be23db8c4286)) * Add ConfigServiceV2.ListLinks method for listing linked datasets ([b18d554](https://github.com/googleapis/common-protos-php/commit/b18d55421cbe1e55d62b5d149e56be23db8c4286)) * Add ConfigServiceV2.UpdateBucketAsync method for creating Log Buckets asynchronously ([b18d554](https://github.com/googleapis/common-protos-php/commit/b18d55421cbe1e55d62b5d149e56be23db8c4286)) * Add LogBucket.analytics_enabled field that specifies whether Log Bucket's Analytics features are enabled ([b18d554](https://github.com/googleapis/common-protos-php/commit/b18d55421cbe1e55d62b5d149e56be23db8c4286)) * Add LogBucket.index_configs field that contains a list of Log Bucket's indexed fields and related configuration data ([b18d554](https://github.com/googleapis/common-protos-php/commit/b18d55421cbe1e55d62b5d149e56be23db8c4286)) * Log Analytics features of the Cloud Logging API ([#60](https://github.com/googleapis/common-protos-php/issues/60)) ([b18d554](https://github.com/googleapis/common-protos-php/commit/b18d55421cbe1e55d62b5d149e56be23db8c4286)) ## [4.0.0](https://github.com/googleapis/common-protos-php/compare/v3.2.0...v4.0.0) (2023-05-01) ### âš  BREAKING CHANGES * remove files unknown to owlbot ([#59](https://github.com/googleapis/common-protos-php/issues/59)) * add owlbot automated updates ([#54](https://github.com/googleapis/common-protos-php/issues/54)) ### Features * Add owlbot automated updates ([#54](https://github.com/googleapis/common-protos-php/issues/54)) ([6d9134d](https://github.com/googleapis/common-protos-php/commit/6d9134d2f927e9c4aa3165e823477e25ef8ff38f)) * Regenerate all common protos from new owlbot config ([#58](https://github.com/googleapis/common-protos-php/issues/58)) ([5dac653](https://github.com/googleapis/common-protos-php/commit/5dac653bdd60c4dbaec45e73e0ec487e5aeac9b1)) ### Miscellaneous Chores * Remove files unknown to owlbot ([#59](https://github.com/googleapis/common-protos-php/issues/59)) ([f541342](https://github.com/googleapis/common-protos-php/commit/f54134263a142e278c56f5e03e5a3d8c6f72aac3)) ## [3.2.0](https://github.com/googleapis/common-protos-php/compare/v3.1.0...v3.2.0) (2023-01-12) ### Features * Refresh types ([#49](https://github.com/googleapis/common-protos-php/issues/49)) ([bd71fc0](https://github.com/googleapis/common-protos-php/commit/bd71fc05cbca1ccd94b71a42c227f0d69c688f07)) ## [3.1.0](https://github.com/googleapis/common-protos-php/compare/v3.0.0...v3.1.0) (2022-10-05) ### Features * Make autoloader more efficient ([#45](https://github.com/googleapis/common-protos-php/issues/45)) ([cdff58a](https://github.com/googleapis/common-protos-php/commit/cdff58a3ff6c42e461f18f14c0bbd8e171456924)) ## [3.0.0](https://github.com/googleapis/common-protos-php/compare/2.1.0...v3.0.0) (2022-07-29) ### âš  BREAKING CHANGES * remove longrunning classes from common protos (#41) ### Miscellaneous Chores * remove longrunning classes from common protos ([#41](https://github.com/googleapis/common-protos-php/issues/41)) ([e88dd1d](https://github.com/googleapis/common-protos-php/commit/e88dd1d5dfef93358dc0bd7f3d62d09bbfd750b6)) CODE_OF_CONDUCT.md000064400000003675151742741400007363 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.md000064400000003357151742741400007012 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-protosLICENSE000064400000026135151742741400005565 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.md000064400000003536151742741400006037 0ustar00## Common Protos PHP [![Latest Stable Version](https://poser.pugx.org/google/common-protos/v/stable)](https://packagist.org/packages/google/common-protos) [![Packagist](https://img.shields.io/packagist/dm/google/common-protos.svg)](https://packagist.org/packages/google/common-protos) * [API documentation](https://cloud.google.com/php/docs/reference/common-protos/latest) 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 by the [Common Components AIP][common-components-aip] repository. **NOTE:** This repository is part of [Google Cloud PHP](https://github.com/googleapis/google-cloud-php). Any support requests, bug reports, or development contributions should be directed to that project. ## 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, use composer from the command line in order to add this package to your `composer.json` file in the `requires` section: ```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. [protobuf]: https://developers.google.com/protocol-buffers/ [common-components-aip]: https://google.aip.dev/213 [packagist-common-protos]: https://packagist.org/packages/google/common-protos/ [packagist]: https://packagist.org/ SECURITY.md000064400000000511151742741400006337 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. VERSION000064400000000006151742741400005615 0ustar004.8.2 composer.json000064400000002124151742741400007272 0ustar00{ "name": "google/common-protos", "type": "library", "description": "Google API Common Protos for PHP", "version": "4.8.2", "keywords": [ "google" ], "homepage": "https://github.com/googleapis/common-protos-php", "license": "Apache-2.0", "require": { "php": "^8.0", "google/protobuf": "^3.6.1" }, "require-dev": { "phpunit/phpunit": "^9.6" }, "autoload": { "psr-4": { "Google\\Api\\": "src/Api", "Google\\Cloud\\": "src/Cloud", "Google\\Iam\\": "src/Iam", "Google\\Rpc\\": "src/Rpc", "Google\\Type\\": "src/Type", "GPBMetadata\\Google\\Api\\": "metadata/Api", "GPBMetadata\\Google\\Cloud\\": "metadata/Cloud", "GPBMetadata\\Google\\Iam\\": "metadata/Iam", "GPBMetadata\\Google\\Logging\\": "metadata/Logging", "GPBMetadata\\Google\\Rpc\\": "metadata/Rpc", "GPBMetadata\\Google\\Type\\": "metadata/Type" } }, "extra": { "component": { "id": "common-protos", "target": "googleapis/common-protos-php.git", "path": "CommonProtos", "entry": "README.md" } } } metadata/Api/Annotations.php000064400000001402151742741400012045 0ustar00internalAddGeneratedFile( ' Ä google/api/annotations.proto google.api google/protobuf/descriptor.protoBn com.google.apiBAnnotationsProtoPZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations¢GAPIbproto3' , true); static::$is_initialized = true; } } metadata/Api/Auth.php000064400000002427151742741400010461 0ustar00internalAddGeneratedFile( ' ™ google/api/auth.proto google.api"l Authentication- rules ( 2.google.api.AuthenticationRule+ providers ( 2.google.api.AuthProvider"© AuthenticationRule selector ( , oauth ( 2.google.api.OAuthRequirements allow_without_credential (1 requirements ( 2.google.api.AuthRequirement"^ JwtLocation header ( H query ( H cookie ( H value_prefix ( B in"š AuthProvider id (  issuer (  jwks_uri (  audiences (  authorization_url ( . jwt_locations ( 2.google.api.JwtLocation"- OAuthRequirements canonical_scopes ( "9 AuthRequirement provider_id (  audiences ( Bk com.google.apiB AuthProtoPZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig¢GAPIbproto3' , true); static::$is_initialized = true; } } metadata/Api/Backend.php000064400000002413151742741400011102 0ustar00internalAddGeneratedFile( ' † google/api/backend.proto google.api"1 Backend& rules ( 2.google.api.BackendRule"² BackendRule selector (  address (  deadline ( min_deadline (B operation_deadline (A path_translation (2\'.google.api.BackendRule.PathTranslation jwt_audience ( H disable_auth (H protocol ( ^ overrides_by_request_protocol ( 27.google.api.BackendRule.OverridesByRequestProtocolEntryZ OverridesByRequestProtocolEntry key ( & value ( 2.google.api.BackendRule:8"e PathTranslation PATH_TRANSLATION_UNSPECIFIED CONSTANT_ADDRESS APPEND_PATH_TO_ADDRESSB authenticationBn com.google.apiB BackendProtoPZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig¢GAPIbproto3' , true); static::$is_initialized = true; } } metadata/Api/Billing.php000064400000001470151742741400011135 0ustar00internalAddGeneratedFile( ' ´ google/api/billing.proto google.api"“ BillingE consumer_destinations ( 2&.google.api.Billing.BillingDestinationA BillingDestination monitored_resource (  metrics ( Bn com.google.apiB BillingProtoPZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig¢GAPIbproto3' , true); static::$is_initialized = true; } } metadata/Api/Client.php000064400000006772151742741400011005 0ustar00internalAddGeneratedFile( ' ƒ google/api/client.proto google.api google/protobuf/descriptor.protogoogle/protobuf/duration.proto"t CommonLanguageSettings reference_docs_uri ( B: destinations (2$.google.api.ClientLibraryDestination"û ClientLibrarySettings version ( - launch_stage (2.google.api.LaunchStage rest_numeric_enums (/ java_settings ( 2.google.api.JavaSettings- cpp_settings ( 2.google.api.CppSettings- php_settings ( 2.google.api.PhpSettings3 python_settings ( 2.google.api.PythonSettings/ node_settings ( 2.google.api.NodeSettings3 dotnet_settings ( 2.google.api.DotnetSettings/ ruby_settings ( 2.google.api.RubySettings+ go_settings ( 2.google.api.GoSettings"¨ Publishing3 method_settings ( 2.google.api.MethodSettings new_issue_urie (  documentation_urif (  api_short_nameg (  github_labelh (  codeowner_github_teamsi (  doc_tag_prefixj ( ; organizationk (2%.google.api.ClientLibraryOrganization; library_settingsm ( 2!.google.api.ClientLibrarySettings) !proto_reference_documentation_urin ( ( rest_reference_documentation_urio ( "ã JavaSettings library_package ( L service_class_names ( 2/.google.api.JavaSettings.ServiceClassNamesEntry2 common ( 2".google.api.CommonLanguageSettings8 ServiceClassNamesEntry key (  value ( :8"A CppSettings2 common ( 2".google.api.CommonLanguageSettings"A PhpSettings2 common ( 2".google.api.CommonLanguageSettings"D PythonSettings2 common ( 2".google.api.CommonLanguageSettings"B NodeSettings2 common ( 2".google.api.CommonLanguageSettings"ª DotnetSettings2 common ( 2".google.api.CommonLanguageSettingsI renamed_services ( 2/.google.api.DotnetSettings.RenamedServicesEntryK renamed_resources ( 20.google.api.DotnetSettings.RenamedResourcesEntry ignored_resources (  forced_namespace_aliases (  handwritten_signatures ( 6 RenamedServicesEntry key (  value ( :87 RenamedResourcesEntry key (  value ( :8"B RubySettings2 common ( 2".google.api.CommonLanguageSettings"@ GoSettings2 common ( 2".google.api.CommonLanguageSettings"Ï MethodSettings selector ( < long_running ( 2&.google.api.MethodSettings.LongRunning auto_populated_fields ( Í LongRunning5 initial_poll_delay ( 2.google.protobuf.Duration poll_delay_multiplier (1 max_poll_delay ( 2.google.protobuf.Duration5 total_poll_timeout ( 2.google.protobuf.Duration*£ ClientLibraryOrganization+ \'CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED CLOUD ADS PHOTOS STREET_VIEW SHOPPING GEO GENERATIVE_AI*g ClientLibraryDestination* &CLIENT_LIBRARY_DESTINATION_UNSPECIFIED GITHUB  PACKAGE_MANAGERBi com.google.apiB ClientProtoPZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations¢GAPIbproto3' , true); static::$is_initialized = true; } } metadata/Api/ConfigChange.php000064400000001700151742741400012064 0ustar00internalAddGeneratedFile( ' ± google/api/config_change.proto google.api"— ConfigChange element (  old_value (  new_value ( + change_type (2.google.api.ChangeType# advices ( 2.google.api.Advice" Advice description ( *O ChangeType CHANGE_TYPE_UNSPECIFIED ADDED REMOVED MODIFIEDBq com.google.apiBConfigChangeProtoPZCgoogle.golang.org/genproto/googleapis/api/configchange;configchange¢GAPIbproto3' , true); static::$is_initialized = true; } } metadata/Api/Consumer.php000064400000001615151742741400011351 0ustar00internalAddGeneratedFile( ' ‡ google/api/consumer.proto google.api"= ProjectProperties( properties ( 2.google.api.Property"¬ Property name ( / type (2!.google.api.Property.PropertyType description ( "L PropertyType UNSPECIFIED INT64 BOOL STRING DOUBLEBh com.google.apiB ConsumerProtoPZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfigbproto3' , true); static::$is_initialized = true; } } metadata/Api/Context.php000064400000001545151742741400011204 0ustar00internalAddGeneratedFile( ' á google/api/context.proto google.api"1 Context& rules ( 2.google.api.ContextRule"� ContextRule selector (  requested (  provided ( " allowed_request_extensions ( # allowed_response_extensions ( Bn com.google.apiB ContextProtoPZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig¢GAPIbproto3' , true); static::$is_initialized = true; } } metadata/Api/Control.php000064400000001451151742741400011174 0ustar00internalAddGeneratedFile( ' ñ google/api/control.proto google.api"Q Control environment ( 1 method_policies ( 2.google.api.MethodPolicyBn com.google.apiB ControlProtoPZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig¢GAPIbproto3' , true); static::$is_initialized = true; } } metadata/Api/Distribution.php000064400000003243151742741400012234 0ustar00internalAddGeneratedFile( ' £ google/api/distribution.proto google.apigoogle/protobuf/timestamp.proto"Ù Distribution count ( mean ( sum_of_squared_deviation (- range ( 2.google.api.Distribution.Range> bucket_options ( 2&.google.api.Distribution.BucketOptions bucket_counts (4 exemplars ( 2!.google.api.Distribution.Exemplar! Range min ( max (µ BucketOptionsG linear_buckets ( 2-.google.api.Distribution.BucketOptions.LinearHQ exponential_buckets ( 22.google.api.Distribution.BucketOptions.ExponentialHK explicit_buckets ( 2/.google.api.Distribution.BucketOptions.ExplicitHC Linear num_finite_buckets ( width ( offset (O Exponential num_finite_buckets ( growth_factor ( scale ( Explicit bounds (B optionss Exemplar value (- timestamp ( 2.google.protobuf.Timestamp) attachments ( 2.google.protobuf.AnyBq com.google.apiBDistributionProtoPZCgoogle.golang.org/genproto/googleapis/api/distribution;distribution¢GAPIbproto3' , true); static::$is_initialized = true; } } metadata/Api/Documentation.php000064400000002040151742741400012360 0ustar00internalAddGeneratedFile( ' � google/api/documentation.proto google.api"» Documentation summary (  pages ( 2.google.api.Page, rules ( 2.google.api.DocumentationRule documentation_root_url (  service_root_url (  overview ( "[ DocumentationRule selector (  description (  deprecation_description ( "I Page name (  content ( " subpages ( 2.google.api.PageBt com.google.apiBDocumentationProtoPZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig¢GAPIbproto3' , true); static::$is_initialized = true; } } metadata/Api/Endpoint.php000064400000001365151742741400011340 0ustar00internalAddGeneratedFile( ' ï google/api/endpoint.proto google.api"M Endpoint name (  aliases (  targete (  allow_cors (Bo com.google.apiB EndpointProtoPZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig¢GAPIbproto3' , true); static::$is_initialized = true; } } metadata/Api/ErrorReason.php000064400000003100151742741400012006 0ustar00internalAddGeneratedFile( ' ² google/api/error_reason.proto google.api*Š ErrorReason ERROR_REASON_UNSPECIFIED SERVICE_DISABLED BILLING_DISABLED API_KEY_INVALID API_KEY_SERVICE_BLOCKED! API_KEY_HTTP_REFERRER_BLOCKED API_KEY_IP_ADDRESS_BLOCKED API_KEY_ANDROID_APP_BLOCKED  API_KEY_IOS_APP_BLOCKED  RATE_LIMIT_EXCEEDED RESOURCE_QUOTA_EXCEEDED LOCATION_TAX_POLICY_VIOLATED  USER_PROJECT_DENIED  CONSUMER_SUSPENDED  CONSUMER_INVALID SECURITY_POLICY_VIOLATED ACCESS_TOKEN_EXPIRED# ACCESS_TOKEN_SCOPE_INSUFFICIENT ACCOUNT_STATE_INVALID! ACCESS_TOKEN_TYPE_UNSUPPORTED CREDENTIALS_MISSING RESOURCE_PROJECT_INVALID SESSION_COOKIE_INVALID USER_BLOCKED_BY_ADMIN\' #RESOURCE_USAGE_RESTRICTION_VIOLATED SYSTEM_PARAMETER_UNSUPPORTED ORG_RESTRICTION_VIOLATION" ORG_RESTRICTION_HEADER_INVALID SERVICE_NOT_VISIBLE GCP_SUSPENDED LOCATION_POLICY_VIOLATEDBp com.google.apiBErrorReasonProtoPZCgoogle.golang.org/genproto/googleapis/api/error_reason;error_reason¢GAPIbproto3' , true); static::$is_initialized = true; } } metadata/Api/FieldBehavior.php000064400000001623151742741400012260 0ustar00internalAddGeneratedFile( ' ‚ google/api/field_behavior.proto google.api google/protobuf/descriptor.proto*¶ FieldBehavior FIELD_BEHAVIOR_UNSPECIFIED OPTIONAL REQUIRED OUTPUT_ONLY INPUT_ONLY IMMUTABLE UNORDERED_LIST NON_EMPTY_DEFAULT IDENTIFIERBp com.google.apiBFieldBehaviorProtoPZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations¢GAPIbproto3' , true); static::$is_initialized = true; } } metadata/Api/FieldInfo.php000064400000001662151742741400011417 0ustar00internalAddGeneratedFile( ' © google/api/field_info.proto google.api google/protobuf/descriptor.proto"Á FieldInfo, format (2.google.api.FieldInfo.Format3 referenced_types ( 2.google.api.TypeReference"Q Format FORMAT_UNSPECIFIED UUID4 IPV4 IPV6 IPV4_OR_IPV6"" TypeReference type_name ( Bl com.google.apiBFieldInfoProtoPZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations¢GAPIbproto3' , true); static::$is_initialized = true; } } metadata/Api/Http.php000064400000002041151742741400010467 0ustar00internalAddGeneratedFile( ' ¢ google/api/http.proto google.api"T Http# rules ( 2.google.api.HttpRule\' fully_decode_reserved_expansion ("� HttpRule selector (  get ( H put ( H post ( H delete ( H patch ( H/ custom ( 2.google.api.CustomHttpPatternH body (  response_body ( 1 additional_bindings ( 2.google.api.HttpRuleB pattern"/ CustomHttpPattern kind (  path ( Bj com.google.apiB HttpProtoPZAgoogle.golang.org/genproto/googleapis/api/annotations;annotationsø¢GAPIbproto3' , true); static::$is_initialized = true; } } metadata/Api/Httpbody.php000064400000001457151742741400011357 0ustar00internalAddGeneratedFile( ' ó google/api/httpbody.proto google.api"X HttpBody content_type (  data ( ( extensions ( 2.google.protobuf.AnyBh com.google.apiB HttpBodyProtoPZ;google.golang.org/genproto/googleapis/api/httpbody;httpbodyø¢GAPIbproto3' , true); static::$is_initialized = true; } } metadata/Api/Label.php000064400000001454151742741400010576 0ustar00internalAddGeneratedFile( ' ¬ google/api/label.proto google.api"œ LabelDescriptor key ( 9 value_type (2%.google.api.LabelDescriptor.ValueType description ( ", ValueType STRING BOOL INT64B_ com.google.apiB LabelProtoPZ5google.golang.org/genproto/googleapis/api/label;labelø¢GAPIbproto3' , true); static::$is_initialized = true; } } metadata/Api/LaunchStage.php000064400000001453151742741400011754 0ustar00internalAddGeneratedFile( ' ž google/api/launch_stage.proto google.api*Œ LaunchStage LAUNCH_STAGE_UNSPECIFIED UNIMPLEMENTED PRELAUNCH EARLY_ACCESS ALPHA BETA GA DEPRECATEDBZ com.google.apiBLaunchStageProtoPZ-google.golang.org/genproto/googleapis/api;api¢GAPIbproto3' , true); static::$is_initialized = true; } } metadata/Api/Log.php000064400000001474151742741400010302 0ustar00internalAddGeneratedFile( ' � google/api/log.proto google.api"u LogDescriptor name ( + labels ( 2.google.api.LabelDescriptor description (  display_name ( Bj com.google.apiBLogProtoPZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig¢GAPIbproto3' , true); static::$is_initialized = true; } } metadata/Api/Logging.php000064400000001574151742741400011150 0ustar00internalAddGeneratedFile( ' ø google/api/logging.proto google.api"× LoggingE producer_destinations ( 2&.google.api.Logging.LoggingDestinationE consumer_destinations ( 2&.google.api.Logging.LoggingDestination> LoggingDestination monitored_resource (  logs ( Bn com.google.apiB LoggingProtoPZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig¢GAPIbproto3' , true); static::$is_initialized = true; } } metadata/Api/Metric.php000064400000003420151742741400010775 0ustar00internalAddGeneratedFile( ' æ google/api/metric.proto google.apigoogle/api/launch_stage.protogoogle/protobuf/duration.proto"Ÿ MetricDescriptor name (  type ( + labels ( 2.google.api.LabelDescriptor< metric_kind (2\'.google.api.MetricDescriptor.MetricKind: value_type (2&.google.api.MetricDescriptor.ValueType unit (  description (  display_name ( G metadata ( 25.google.api.MetricDescriptor.MetricDescriptorMetadata- launch_stage (2.google.api.LaunchStage monitored_resource_types ( ° MetricDescriptorMetadata1 launch_stage (2.google.api.LaunchStageB0 sample_period ( 2.google.protobuf.Duration/ ingest_delay ( 2.google.protobuf.Duration"O MetricKind METRIC_KIND_UNSPECIFIED GAUGE DELTA CUMULATIVE"q ValueType VALUE_TYPE_UNSPECIFIED BOOL INT64 DOUBLE STRING DISTRIBUTION MONEY"u Metric type ( . labels ( 2.google.api.Metric.LabelsEntry- LabelsEntry key (  value ( :8B_ com.google.apiB MetricProtoPZ7google.golang.org/genproto/googleapis/api/metric;metric¢GAPIbproto3' , true); static::$is_initialized = true; } } metadata/Api/MonitoredResource.php000064400000002715151742741400013230 0ustar00internalAddGeneratedFile( ' � #google/api/monitored_resource.proto google.apigoogle/api/launch_stage.protogoogle/protobuf/struct.proto"À MonitoredResourceDescriptor name (  type (  display_name (  description ( + labels ( 2.google.api.LabelDescriptor- launch_stage (2.google.api.LaunchStage"‹ MonitoredResource type ( 9 labels ( 2).google.api.MonitoredResource.LabelsEntry- LabelsEntry key (  value ( :8"Ê MonitoredResourceMetadata. system_labels ( 2.google.protobuf.StructJ user_labels ( 25.google.api.MonitoredResourceMetadata.UserLabelsEntry1 UserLabelsEntry key (  value ( :8By com.google.apiBMonitoredResourceProtoPZCgoogle.golang.org/genproto/googleapis/api/monitoredres;monitoredresø¢GAPIbproto3' , true); static::$is_initialized = true; } } metadata/Api/Monitoring.php000064400000001635151742741400011705 0ustar00internalAddGeneratedFile( ' “ google/api/monitoring.proto google.api"ì MonitoringK producer_destinations ( 2,.google.api.Monitoring.MonitoringDestinationK consumer_destinations ( 2,.google.api.Monitoring.MonitoringDestinationD MonitoringDestination monitored_resource (  metrics ( Bq com.google.apiBMonitoringProtoPZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig¢GAPIbproto3' , true); static::$is_initialized = true; } } metadata/Api/Policy.php000064400000001555151742741400011020 0ustar00internalAddGeneratedFile( ' ë google/api/policy.proto google.api google/protobuf/descriptor.proto"S FieldPolicy selector (  resource_permission (  resource_type ( "S MethodPolicy selector ( 1 request_policies ( 2.google.api.FieldPolicyBp com.google.apiB PolicyProtoPZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfigø¢GAPIbproto3' , true); static::$is_initialized = true; } } metadata/Api/Quota.php000064400000002246151742741400010650 0ustar00internalAddGeneratedFile( ' ¥ google/api/quota.proto google.api"] Quota& limits ( 2.google.api.QuotaLimit, metric_rules ( 2.google.api.MetricRule"‘ MetricRule selector ( = metric_costs ( 2\'.google.api.MetricRule.MetricCostsEntry2 MetricCostsEntry key (  value (:8"• QuotaLimit name (  description (  default_limit ( max_limit ( free_tier ( duration (  metric (  unit ( 2 values ( 2".google.api.QuotaLimit.ValuesEntry display_name ( - ValuesEntry key (  value (:8Bl com.google.apiB QuotaProtoPZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig¢GAPIbproto3' , true); static::$is_initialized = true; } } metadata/Api/Resource.php000064400000002157151742741400011347 0ustar00internalAddGeneratedFile( ' é google/api/resource.proto google.api google/protobuf/descriptor.proto"î ResourceDescriptor type (  pattern (  name_field ( 7 history (2&.google.api.ResourceDescriptor.History plural (  singular ( 3 style (2$.google.api.ResourceDescriptor.Style"[ History HISTORY_UNSPECIFIED ORIGINALLY_SINGLE_PATTERN FUTURE_MULTI_PATTERN"8 Style STYLE_UNSPECIFIED DECLARATIVE_FRIENDLY"5 ResourceReference type (  child_type ( Bn com.google.apiB ResourceProtoPZAgoogle.golang.org/genproto/googleapis/api/annotations;annotationsø¢GAPIbproto3' , true); static::$is_initialized = true; } } metadata/Api/Routing.php000064400000001503151742741400011201 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.php000064400000006501151742741400011155 0ustar00internalAddGeneratedFile( ' É google/api/service.proto google.apigoogle/api/backend.protogoogle/api/billing.protogoogle/api/client.protogoogle/api/context.protogoogle/api/control.protogoogle/api/documentation.protogoogle/api/endpoint.protogoogle/api/http.protogoogle/api/log.protogoogle/api/logging.protogoogle/api/metric.proto#google/api/monitored_resource.protogoogle/api/monitoring.protogoogle/api/quota.protogoogle/api/source_info.proto!google/api/system_parameter.protogoogle/api/usage.protogoogle/protobuf/api.protogoogle/protobuf/type.protogoogle/protobuf/wrappers.proto"‚ Service name (  title (  producer_project_id (  id! ( " apis ( 2.google.protobuf.Api$ types ( 2.google.protobuf.Type$ enums ( 2.google.protobuf.Enum0 documentation ( 2.google.api.Documentation$ backend ( 2.google.api.Backend http ( 2.google.api.Http quota ( 2.google.api.Quota2 authentication ( 2.google.api.Authentication$ context ( 2.google.api.Context usage ( 2.google.api.Usage\' endpoints ( 2.google.api.Endpoint$ control ( 2.google.api.Control\' logs ( 2.google.api.LogDescriptor- metrics ( 2.google.api.MetricDescriptorD monitored_resources ( 2\'.google.api.MonitoredResourceDescriptor$ billing ( 2.google.api.Billing$ logging ( 2.google.api.Logging* monitoring ( 2.google.api.Monitoring7 system_parameters ( 2.google.api.SystemParameters+ source_info% ( 2.google.api.SourceInfo* publishing- ( 2.google.api.Publishing4 config_version ( 2.google.protobuf.UInt32ValueBn com.google.apiB ServiceProtoPZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig¢GAPIbproto3' , true); static::$is_initialized = true; } } metadata/Api/SourceInfo.php000064400000001440151742741400011626 0ustar00internalAddGeneratedFile( ' ß google/api/source_info.proto google.api"8 SourceInfo* source_files ( 2.google.protobuf.AnyBq com.google.apiBSourceInfoProtoPZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig¢GAPIbproto3' , true); static::$is_initialized = true; } } metadata/Api/SystemParameter.php000064400000001665151742741400012710 0ustar00internalAddGeneratedFile( '   !google/api/system_parameter.proto google.api"B SystemParameters. rules ( 2.google.api.SystemParameterRule"X SystemParameterRule selector ( / parameters ( 2.google.api.SystemParameter"Q SystemParameter name (  http_header (  url_query_parameter ( Bv com.google.apiBSystemParameterProtoPZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig¢GAPIbproto3' , true); static::$is_initialized = true; } } metadata/Api/Usage.php000064400000001545151742741400010624 0ustar00internalAddGeneratedFile( ' å google/api/usage.proto google.api"j Usage requirements ( $ rules ( 2.google.api.UsageRule% producer_notification_channel ( "] UsageRule selector (  allow_unregistered_calls ( skip_service_control (Bl com.google.apiB UsageProtoPZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig¢GAPIbproto3' , true); static::$is_initialized = true; } } metadata/Api/Visibility.php000064400000001477151742741400011713 0ustar00internalAddGeneratedFile( ' µ google/api/visibility.proto google.api google/protobuf/descriptor.proto"7 Visibility) rules ( 2.google.api.VisibilityRule"7 VisibilityRule selector (  restriction ( Bn com.google.apiBVisibilityProtoPZ?google.golang.org/genproto/googleapis/api/visibility;visibilityø¢GAPIbproto3' , true); static::$is_initialized = true; } } metadata/Cloud/ExtendedOperations.php000064400000001536151742741400013721 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.php000064400000003424151742741400013616 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.php000064400000004071151742741400011726 0ustar00internalAddGeneratedFile( ' ž google/iam/v1/iam_policy.proto google.iam.v1google/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.protogoogle/iam/v1/options.protogoogle/iam/v1/policy.proto google/protobuf/field_mask.proto"� SetIamPolicyRequest resource ( B àAúA ** policy ( 2.google.iam.v1.PolicyBàA/ update_mask ( 2.google.protobuf.FieldMask"d GetIamPolicyRequest resource ( B àAúA *0 options ( 2.google.iam.v1.GetPolicyOptions"R TestIamPermissionsRequest resource ( B àAúA * permissions ( BàA"1 TestIamPermissionsResponse permissions ( 2´ IAMPolicyt SetIamPolicy".google.iam.v1.SetIamPolicyRequest.google.iam.v1.Policy")‚Óä“#"/v1/{resource=**}:setIamPolicy:*t GetIamPolicy".google.iam.v1.GetIamPolicyRequest.google.iam.v1.Policy")‚Óä“#"/v1/{resource=**}:getIamPolicy:*š TestIamPermissions(.google.iam.v1.TestIamPermissionsRequest).google.iam.v1.TestIamPermissionsResponse"/‚Óä“)"$/v1/{resource=**}:testIamPermissions:*ÊAiam-meta-api.googleapis.comB com.google.iam.v1BIamPolicyProtoPZ)cloud.google.com/go/iam/apiv1/iampb;iampbøªGoogle.Cloud.Iam.V1ÊGoogle\\Cloud\\Iam\\V1bproto3' , true); static::$is_initialized = true; } } metadata/Iam/V1/Logging/AuditData.php000064400000001545151742741400013271 0ustar00internalAddGeneratedFile( ' � &google/iam/v1/logging/audit_data.protogoogle.iam.v1.logging"= AuditData0 policy_delta ( 2.google.iam.v1.PolicyDeltaB† com.google.iam.v1.loggingBAuditDataProtoPZ9cloud.google.com/go/iam/apiv1/logging/loggingpb;loggingpbªGoogle.Cloud.Iam.V1.Loggingbproto3' , true); static::$is_initialized = true; } } metadata/Iam/V1/Options.php000064400000001366151742741400011477 0ustar00internalAddGeneratedFile( ' é google/iam/v1/options.proto google.iam.v1"4 GetPolicyOptions requested_policy_version (B} com.google.iam.v1B OptionsProtoPZ)cloud.google.com/go/iam/apiv1/iampb;iampbøªGoogle.Cloud.Iam.V1ÊGoogle\\Cloud\\Iam\\V1bproto3' , true); static::$is_initialized = true; } } metadata/Iam/V1/Policy.php000064400000003335151742741400011301 0ustar00internalAddGeneratedFile( ' Ÿ google/iam/v1/policy.proto google.iam.v1"„ Policy version (( bindings ( 2.google.iam.v1.Binding1 audit_configs ( 2.google.iam.v1.AuditConfig etag ( "N Binding role (  members ( $ condition ( 2.google.type.Expr"X AuditConfig service ( 8 audit_log_configs ( 2.google.iam.v1.AuditLogConfig"· AuditLogConfig7 log_type (2%.google.iam.v1.AuditLogConfig.LogType exempted_members ( "R LogType LOG_TYPE_UNSPECIFIED ADMIN_READ DATA_WRITE DATA_READ"€ PolicyDelta3 binding_deltas ( 2.google.iam.v1.BindingDelta< audit_config_deltas ( 2.google.iam.v1.AuditConfigDelta"½ BindingDelta2 action (2".google.iam.v1.BindingDelta.Action role (  member ( $ condition ( 2.google.type.Expr"5 Action ACTION_UNSPECIFIED ADD REMOVE"½ AuditConfigDelta6 action (2&.google.iam.v1.AuditConfigDelta.Action service (  exempted_member (  log_type ( "5 Action ACTION_UNSPECIFIED ADD REMOVEB| com.google.iam.v1B PolicyProtoPZ)cloud.google.com/go/iam/apiv1/iampb;iampbøªGoogle.Cloud.Iam.V1ÊGoogle\\Cloud\\Iam\\V1bproto3' , true); static::$is_initialized = true; } } metadata/Logging/Type/HttpRequest.php000064400000002325151742741400013643 0ustar00internalAddGeneratedFile( ' ø &google/logging/type/http_request.protogoogle.logging.type"ï HttpRequest request_method (  request_url (  request_size ( status ( response_size ( user_agent (  remote_ip (  server_ip (  referer ( * latency ( 2.google.protobuf.Duration cache_lookup ( cache_hit (* "cache_validated_with_origin_server ( cache_fill_bytes ( protocol ( B¾ com.google.logging.typeBHttpRequestProtoPZ8google.golang.org/genproto/googleapis/logging/type;ltypeªGoogle.Cloud.Logging.TypeÊGoogle\\Cloud\\Logging\\TypeêGoogle::Cloud::Logging::Typebproto3' , true); static::$is_initialized = true; } } metadata/Logging/Type/LogSeverity.php000064400000001664151742741400013634 0ustar00internalAddGeneratedFile( ' ’ &google/logging/type/log_severity.protogoogle.logging.type*‚ LogSeverity DEFAULT DEBUGd INFOÈ NOTICE¬ WARNING� ERRORô CRITICALØ ALERT¼ EMERGENCY BÅ com.google.logging.typeBLogSeverityProtoPZ8google.golang.org/genproto/googleapis/logging/type;ltype¢GLOGªGoogle.Cloud.Logging.TypeÊGoogle\\Cloud\\Logging\\TypeêGoogle::Cloud::Logging::Typebproto3' , true); static::$is_initialized = true; } } metadata/Rpc/Code.php000064400000001675151742741400010451 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/Context/AttributeContext.php000064400000006111151742741400014521 0ustar00internalAddGeneratedFile( ' » *google/rpc/context/attribute_context.protogoogle.rpc.contextgoogle/protobuf/duration.protogoogle/protobuf/struct.protogoogle/protobuf/timestamp.proto"ƒ AttributeContext9 origin ( 2).google.rpc.context.AttributeContext.Peer9 source ( 2).google.rpc.context.AttributeContext.Peer> destination ( 2).google.rpc.context.AttributeContext.Peer= request ( 2,.google.rpc.context.AttributeContext.Request? response ( 2-.google.rpc.context.AttributeContext.Response? resource ( 2-.google.rpc.context.AttributeContext.Resource5 api ( 2(.google.rpc.context.AttributeContext.Api( extensions ( 2.google.protobuf.Any¾ Peer ip (  port (E labels ( 25.google.rpc.context.AttributeContext.Peer.LabelsEntry principal (  region_code ( - LabelsEntry key (  value ( :8L Api service (  operation (  protocol (  version (  Auth principal (  audiences (  presenter ( \' claims ( 2.google.protobuf.Struct access_levels ( ï Request id (  method ( J headers ( 29.google.rpc.context.AttributeContext.Request.HeadersEntry path (  host (  scheme (  query ( ( time ( 2.google.protobuf.Timestamp size ( protocol (  reason ( 7 auth ( 2).google.rpc.context.AttributeContext.Auth. HeadersEntry key (  value ( :8� Response code ( size (K headers ( 2:.google.rpc.context.AttributeContext.Response.HeadersEntry( time ( 2.google.protobuf.Timestamp2 backend_latency ( 2.google.protobuf.Duration. HeadersEntry key (  value ( :8� Resource service (  name (  type ( I labels ( 29.google.rpc.context.AttributeContext.Resource.LabelsEntry uid ( S annotations ( 2>.google.rpc.context.AttributeContext.Resource.AnnotationsEntry display_name ( / create_time ( 2.google.protobuf.Timestamp/ update_time ( 2.google.protobuf.Timestamp/ delete_time ( 2.google.protobuf.Timestamp etag (  location ( - LabelsEntry key (  value ( :82 AnnotationsEntry key (  value ( :8B‹ com.google.rpc.contextBAttributeContextProtoPZUgoogle.golang.org/genproto/googleapis/rpc/context/attribute_context;attribute_contextøbproto3' , true); static::$is_initialized = true; } } metadata/Rpc/Context/AuditContext.php000064400000001723151742741400013630 0ustar00internalAddGeneratedFile( ' û &google/rpc/context/audit_context.protogoogle.rpc.context"Ç AuditContext audit_log ( 1 scrubbed_request ( 2.google.protobuf.Struct2 scrubbed_response ( 2.google.protobuf.Struct$ scrubbed_response_item_count ( target_resource ( Bk com.google.rpc.contextBAuditContextProtoPZ9google.golang.org/genproto/googleapis/rpc/context;contextøbproto3' , true); static::$is_initialized = true; } } metadata/Rpc/ErrorDetails.php000064400000003264151742741400012172 0ustar00internalAddGeneratedFile( ' ê google/rpc/error_details.proto google.rpc"“ ErrorInfo reason (  domain ( 5 metadata ( 2#.google.rpc.ErrorInfo.MetadataEntry/ MetadataEntry key (  value ( :8"; RetryInfo. retry_delay ( 2.google.protobuf.Duration"2 DebugInfo stack_entries (  detail ( "y QuotaFailure6 violations ( 2".google.rpc.QuotaFailure.Violation1 Violation subject (  description ( "• 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.php000064400000001430151742741400011047 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.php000064400000001510151742741400012634 0ustar00internalAddGeneratedFile( ' ³ !google/type/calendar_period.proto google.type* CalendarPeriod CALENDAR_PERIOD_UNSPECIFIED DAY WEEK FORTNIGHT MONTH QUARTER HALF YEARBx com.google.typeBCalendarPeriodProtoPZHgoogle.golang.org/genproto/googleapis/type/calendarperiod;calendarperiod¢GTPbproto3' , true); static::$is_initialized = true; } } metadata/Type/Color.php000064400000001454151742741400011045 0ustar00internalAddGeneratedFile( ' ï google/type/color.proto google.type"] Color red ( green ( blue (* alpha ( 2.google.protobuf.FloatValueB` com.google.typeB ColorProtoPZ6google.golang.org/genproto/googleapis/type/color;colorø¢GTPbproto3' , true); static::$is_initialized = true; } } metadata/Type/Date.php000064400000001276151742741400010646 0ustar00internalAddGeneratedFile( ' ¾ google/type/date.proto google.type"0 Date year ( month ( day (B] com.google.typeB DateProtoPZ4google.golang.org/genproto/googleapis/type/date;dateø¢GTPbproto3' , true); static::$is_initialized = true; } } metadata/Type/Datetime.php000064400000001754151742741400011526 0ustar00internalAddGeneratedFile( ' ¨ google/type/datetime.proto google.type"à DateTime year ( month ( day ( hours ( minutes ( seconds ( nanos (/ utc_offset ( 2.google.protobuf.DurationH* time_zone ( 2.google.type.TimeZoneHB time_offset"\' TimeZone id (  version ( Bi com.google.typeB DateTimeProtoPZinternalAddGeneratedFile( ' ¤ google/type/dayofweek.proto google.type*„ DayOfWeek DAY_OF_WEEK_UNSPECIFIED MONDAY TUESDAY WEDNESDAY THURSDAY FRIDAY SATURDAY SUNDAYBi com.google.typeBDayOfWeekProtoPZ>google.golang.org/genproto/googleapis/type/dayofweek;dayofweek¢GTPbproto3' , true); static::$is_initialized = true; } } metadata/Type/Decimal.php000064400000001270151742741400011321 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.php000064400000001333151742741400010701 0ustar00internalAddGeneratedFile( ' Û google/type/expr.proto google.type"P Expr expression (  title (  description (  location ( BZ com.google.typeB ExprProtoPZ4google.golang.org/genproto/googleapis/type/expr;expr¢GTPbproto3' , true); static::$is_initialized = true; } } metadata/Type/Fraction.php000064400000001325151742741400011531 0ustar00internalAddGeneratedFile( ' Í google/type/fraction.proto google.type"2 Fraction numerator ( denominator (Bf com.google.typeB FractionProtoPZinternalAddGeneratedFile( ' † google/type/interval.proto google.type"h Interval. start_time ( 2.google.protobuf.Timestamp, end_time ( 2.google.protobuf.TimestampBi com.google.typeB IntervalProtoPZinternalAddGeneratedFile( ' à google/type/latlng.proto google.type"- LatLng latitude ( longitude (Bc com.google.typeB LatLngProtoPZ8google.golang.org/genproto/googleapis/type/latlng;latlngø¢GTPbproto3' , true); static::$is_initialized = true; } } metadata/Type/LocalizedText.php000064400000001374151742741400012543 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.php000064400000001320151742741400011046 0ustar00internalAddGeneratedFile( ' Î google/type/money.proto google.type"< Money currency_code (  units ( nanos (B` com.google.typeB MoneyProtoPZ6google.golang.org/genproto/googleapis/type/money;moneyø¢GTPbproto3' , true); static::$is_initialized = true; } } metadata/Type/Month.php000064400000001502151742741400011046 0ustar00internalAddGeneratedFile( ' À google/type/month.proto google.type*° Month MONTH_UNSPECIFIED JANUARY FEBRUARY MARCH APRIL MAY JUNE JULY AUGUST SEPTEMBER  OCTOBER  NOVEMBER  DECEMBER B] com.google.typeB MonthProtoPZ6google.golang.org/genproto/googleapis/type/month;month¢GTPbproto3' , true); static::$is_initialized = true; } } metadata/Type/PhoneNumber.php000064400000001550151742741400012206 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.php000064400000001704151742741400012535 0ustar00internalAddGeneratedFile( ' ± google/type/postal_address.proto google.type"ý PostalAddress revision ( region_code (  language_code (  postal_code (  sorting_code (  administrative_area (  locality (  sublocality (  address_lines (  recipients (  organization ( Bx com.google.typeBPostalAddressProtoPZFgoogle.golang.org/genproto/googleapis/type/postaladdress;postaladdressø¢GTPbproto3' , true); static::$is_initialized = true; } } metadata/Type/Quaternion.php000064400000001352151742741400012111 0ustar00internalAddGeneratedFile( ' Þ google/type/quaternion.proto google.type"8 Quaternion x ( y ( z ( w (Bo com.google.typeBQuaternionProtoPZ@google.golang.org/genproto/googleapis/type/quaternion;quaternionø¢GTPbproto3' , true); static::$is_initialized = true; } } metadata/Type/Timeofday.php000064400000001367151742741400011713 0ustar00internalAddGeneratedFile( ' í google/type/timeofday.proto google.type"K TimeOfDay hours ( minutes ( seconds ( nanos (Bl com.google.typeBTimeOfDayProtoPZ>google.golang.org/genproto/googleapis/type/timeofday;timeofdayø¢GTPbproto3' , true); static::$is_initialized = true; } } owlbot.py000064400000004437151742741400006441 0ustar00# Copyright 2022 Google LLC # # 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. """This script is used to synthesize generated parts of this library.""" import logging from pathlib import Path import shutil import subprocess import os import synthtool as s from synthtool.languages import php from synthtool import _tracked_paths logging.basicConfig(level=logging.DEBUG) # (dirname, version) protos = [ ("api", "api"), ("extendedoperations", "cloud"), ("location", "cloud"), ("logging", "google"), # for the metadata ("logging", "cloud"), ("iam", "google"), # for the metadata ("iam", "cloud"), ("iamlogging", "iam"), ("rpc", "rpc"), ("type", "type"), ] dest = Path().resolve() for proto in protos: src = Path(f"{php.STAGING_DIR}/{proto[0]}").resolve() # Added so that we can pass copy_excludes in the owlbot_main() call _tracked_paths.add(src) # use owlbot_copy_version instead of owlbot_main and set "version_string" # manually because common protos do not have a version php.owlbot_copy_version( src=src, dest=dest, version_string=proto[1], copy_excludes=[ src / "**/[A-Z]*_*.php" ], ) # move metadata to more specific directories (owlbot isnt smart enough to do this) s.move("metadata/Google/Iam/V1", "metadata/Iam/V1") s.move("metadata/Google/Logging/Type", "metadata/Logging/Type") # remove owl-bot-staging dir if os.path.exists(php.STAGING_DIR): shutil.rmtree(Path(php.STAGING_DIR)) # remove the metadata/Google files that we copied if os.path.exists("metadata/Google"): shutil.rmtree(Path("metadata/Google")) s.replace( "src/**/*.php", r"^// Adding a class alias for backwards compatibility with the previous class name.$" + "\n" + r"^class_alias\(.*\);$" + "\n", '') renovate.json000064400000000151151742741400007264 0ustar00{ "extends": [ "config:base", ":preserveSemverRanges", ":disableDependencyDashboard" ] } src/Api/Advice.php000064400000003746151742741400007767 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; */ protected $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.php000064400000040401151742741400011175 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; */ protected $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; */ protected $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; */ protected $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, JWTs with audiences: * - "https://[service.name]/[google.protobuf.Api.name]" * - "https://[service.name]/" * will be accepted. * For example, if no audiences are in the setting, LibraryService API will * accept JWTs with the following audiences: * - * https://library-example.googleapis.com/google.example.library.v1.LibraryService * - https://library-example.googleapis.com/ * Example: * audiences: bookstore_android.apps.googleusercontent.com, * bookstore_web.apps.googleusercontent.com * * Generated from protobuf field string audiences = 4; */ protected $audiences = ''; /** * Redirect URL if JWT token is required but not present or is expired. * Implement authorizationUrl of securityDefinitions in OpenAPI spec. * * Generated from protobuf field string authorization_url = 5; */ protected $authorization_url = ''; /** * Defines the locations to extract the JWT. For now it is only used by the * Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] * (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations) * JWT locations can be one of HTTP headers, URL query parameters or * cookies. The rule is that the first match wins. * If not specified, default to use following 3 locations: * 1) Authorization: Bearer * 2) x-goog-iap-jwt-assertion * 3) access_token query parameter * Default locations can be specified as followings: * jwt_locations: * - header: Authorization * value_prefix: "Bearer " * - header: x-goog-iap-jwt-assertion * - query: access_token * * Generated from protobuf field repeated .google.api.JwtLocation jwt_locations = 6; */ private $jwt_locations; /** * 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, JWTs with audiences: * - "https://[service.name]/[google.protobuf.Api.name]" * - "https://[service.name]/" * will be accepted. * For example, if no audiences are in the setting, LibraryService API will * accept JWTs with the following audiences: * - * https://library-example.googleapis.com/google.example.library.v1.LibraryService * - https://library-example.googleapis.com/ * Example: * audiences: bookstore_android.apps.googleusercontent.com, * bookstore_web.apps.googleusercontent.com * @type string $authorization_url * Redirect URL if JWT token is required but not present or is expired. * Implement authorizationUrl of securityDefinitions in OpenAPI spec. * @type array<\Google\Api\JwtLocation>|\Google\Protobuf\Internal\RepeatedField $jwt_locations * Defines the locations to extract the JWT. For now it is only used by the * Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] * (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations) * JWT locations can be one of HTTP headers, URL query parameters or * cookies. The rule is that the first match wins. * If not specified, default to use following 3 locations: * 1) Authorization: Bearer * 2) x-goog-iap-jwt-assertion * 3) access_token query parameter * Default locations can be specified as followings: * jwt_locations: * - header: Authorization * value_prefix: "Bearer " * - header: x-goog-iap-jwt-assertion * - query: access_token * } */ 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, JWTs with audiences: * - "https://[service.name]/[google.protobuf.Api.name]" * - "https://[service.name]/" * will be accepted. * For example, if no audiences are in the setting, LibraryService API will * accept JWTs with the following audiences: * - * https://library-example.googleapis.com/google.example.library.v1.LibraryService * - https://library-example.googleapis.com/ * 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, JWTs with audiences: * - "https://[service.name]/[google.protobuf.Api.name]" * - "https://[service.name]/" * will be accepted. * For example, if no audiences are in the setting, LibraryService API will * accept JWTs with the following audiences: * - * https://library-example.googleapis.com/google.example.library.v1.LibraryService * - https://library-example.googleapis.com/ * 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 not 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 not 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; } /** * Defines the locations to extract the JWT. For now it is only used by the * Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] * (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations) * JWT locations can be one of HTTP headers, URL query parameters or * cookies. The rule is that the first match wins. * If not specified, default to use following 3 locations: * 1) Authorization: Bearer * 2) x-goog-iap-jwt-assertion * 3) access_token query parameter * Default locations can be specified as followings: * jwt_locations: * - header: Authorization * value_prefix: "Bearer " * - header: x-goog-iap-jwt-assertion * - query: access_token * * Generated from protobuf field repeated .google.api.JwtLocation jwt_locations = 6; * @return \Google\Protobuf\Internal\RepeatedField */ public function getJwtLocations() { return $this->jwt_locations; } /** * Defines the locations to extract the JWT. For now it is only used by the * Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] * (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations) * JWT locations can be one of HTTP headers, URL query parameters or * cookies. The rule is that the first match wins. * If not specified, default to use following 3 locations: * 1) Authorization: Bearer * 2) x-goog-iap-jwt-assertion * 3) access_token query parameter * Default locations can be specified as followings: * jwt_locations: * - header: Authorization * value_prefix: "Bearer " * - header: x-goog-iap-jwt-assertion * - query: access_token * * Generated from protobuf field repeated .google.api.JwtLocation jwt_locations = 6; * @param array<\Google\Api\JwtLocation>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setJwtLocations($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\JwtLocation::class); $this->jwt_locations = $arr; return $this; } } src/Api/AuthRequirement.php000064400000014372151742741400011713 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; */ protected $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; */ protected $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.php000064400000010125151742741400011540 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 array<\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 array<\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 array<\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 array<\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.php000064400000013644151742741400012401 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; */ protected $selector = ''; /** * The requirements for OAuth credentials. * * Generated from protobuf field .google.api.OAuthRequirements oauth = 2; */ protected $oauth = null; /** * If true, the service accepts API keys without any other credential. * This flag only applies to HTTP and gRPC requests. * * Generated from protobuf field bool allow_without_credential = 5; */ protected $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. * This flag only applies to HTTP and gRPC requests. * @type array<\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|null */ public function getOauth() { return $this->oauth; } public function hasOauth() { return isset($this->oauth); } public function clearOauth() { unset($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. * This flag only applies to HTTP and gRPC requests. * * 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. * This flag only applies to HTTP and gRPC requests. * * 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 array<\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.php000064400000004372151742741400010117 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 array<\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 array<\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.php000064400000044173151742741400010752 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; */ protected $selector = ''; /** * The address of the API backend. * The scheme is used to determine the backend protocol and security. * The following schemes are accepted: * SCHEME PROTOCOL SECURITY * http:// HTTP None * https:// HTTP TLS * grpc:// gRPC None * grpcs:// gRPC TLS * It is recommended to explicitly include a scheme. Leaving out the scheme * may cause constrasting behaviors across platforms. * If the port is unspecified, the default is: * - 80 for schemes without TLS * - 443 for schemes with TLS * For HTTP backends, use [protocol][google.api.BackendRule.protocol] * to specify the protocol version. * * Generated from protobuf field string address = 2; */ protected $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; */ protected $deadline = 0.0; /** * Deprecated, do not use. * * Generated from protobuf field double min_deadline = 4 [deprecated = true]; * @deprecated */ protected $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; */ protected $operation_deadline = 0.0; /** * Generated from protobuf field .google.api.BackendRule.PathTranslation path_translation = 6; */ protected $path_translation = 0; /** * The protocol used for sending a request to the backend. * The supported values are "http/1.1" and "h2". * The default value is inferred from the scheme in the * [address][google.api.BackendRule.address] field: * SCHEME PROTOCOL * http:// http/1.1 * https:// http/1.1 * grpc:// h2 * grpcs:// h2 * For secure HTTP backends (https://) that support HTTP/2, set this field * to "h2" for improved performance. * Configuring this field to non-default values is only supported for secure * HTTP backends. This field will be ignored for all other backends. * See * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids * for more details on the supported values. * * Generated from protobuf field string protocol = 9; */ protected $protocol = ''; /** * The map between request protocol and the backend address. * * Generated from protobuf field map overrides_by_request_protocol = 10; */ private $overrides_by_request_protocol; 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. * The scheme is used to determine the backend protocol and security. * The following schemes are accepted: * SCHEME PROTOCOL SECURITY * http:// HTTP None * https:// HTTP TLS * grpc:// gRPC None * grpcs:// gRPC TLS * It is recommended to explicitly include a scheme. Leaving out the scheme * may cause constrasting behaviors across platforms. * If the port is unspecified, the default is: * - 80 for schemes without TLS * - 443 for schemes with TLS * For HTTP backends, use [protocol][google.api.BackendRule.protocol] * to specify the protocol version. * @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 * Deprecated, do not use. * @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 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. * @type string $protocol * The protocol used for sending a request to the backend. * The supported values are "http/1.1" and "h2". * The default value is inferred from the scheme in the * [address][google.api.BackendRule.address] field: * SCHEME PROTOCOL * http:// http/1.1 * https:// http/1.1 * grpc:// h2 * grpcs:// h2 * For secure HTTP backends (https://) that support HTTP/2, set this field * to "h2" for improved performance. * Configuring this field to non-default values is only supported for secure * HTTP backends. This field will be ignored for all other backends. * See * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids * for more details on the supported values. * @type array|\Google\Protobuf\Internal\MapField $overrides_by_request_protocol * The map between request protocol and the backend address. * } */ 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. * The scheme is used to determine the backend protocol and security. * The following schemes are accepted: * SCHEME PROTOCOL SECURITY * http:// HTTP None * https:// HTTP TLS * grpc:// gRPC None * grpcs:// gRPC TLS * It is recommended to explicitly include a scheme. Leaving out the scheme * may cause constrasting behaviors across platforms. * If the port is unspecified, the default is: * - 80 for schemes without TLS * - 443 for schemes with TLS * For HTTP backends, use [protocol][google.api.BackendRule.protocol] * to specify the protocol version. * * Generated from protobuf field string address = 2; * @return string */ public function getAddress() { return $this->address; } /** * The address of the API backend. * The scheme is used to determine the backend protocol and security. * The following schemes are accepted: * SCHEME PROTOCOL SECURITY * http:// HTTP None * https:// HTTP TLS * grpc:// gRPC None * grpcs:// gRPC TLS * It is recommended to explicitly include a scheme. Leaving out the scheme * may cause constrasting behaviors across platforms. * If the port is unspecified, the default is: * - 80 for schemes without TLS * - 443 for schemes with TLS * For HTTP backends, use [protocol][google.api.BackendRule.protocol] * to specify the protocol version. * * 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; } /** * Deprecated, do not use. * * Generated from protobuf field double min_deadline = 4 [deprecated = true]; * @return float * @deprecated */ public function getMinDeadline() { @trigger_error('min_deadline is deprecated.', E_USER_DEPRECATED); return $this->min_deadline; } /** * Deprecated, do not use. * * Generated from protobuf field double min_deadline = 4 [deprecated = true]; * @param float $var * @return $this * @deprecated */ public function setMinDeadline($var) { @trigger_error('min_deadline is deprecated.', E_USER_DEPRECATED); 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); } public function hasJwtAudience() { return $this->hasOneof(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 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); } public function hasDisableAuth() { return $this->hasOneof(8); } /** * 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; } /** * The protocol used for sending a request to the backend. * The supported values are "http/1.1" and "h2". * The default value is inferred from the scheme in the * [address][google.api.BackendRule.address] field: * SCHEME PROTOCOL * http:// http/1.1 * https:// http/1.1 * grpc:// h2 * grpcs:// h2 * For secure HTTP backends (https://) that support HTTP/2, set this field * to "h2" for improved performance. * Configuring this field to non-default values is only supported for secure * HTTP backends. This field will be ignored for all other backends. * See * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids * for more details on the supported values. * * Generated from protobuf field string protocol = 9; * @return string */ public function getProtocol() { return $this->protocol; } /** * The protocol used for sending a request to the backend. * The supported values are "http/1.1" and "h2". * The default value is inferred from the scheme in the * [address][google.api.BackendRule.address] field: * SCHEME PROTOCOL * http:// http/1.1 * https:// http/1.1 * grpc:// h2 * grpcs:// h2 * For secure HTTP backends (https://) that support HTTP/2, set this field * to "h2" for improved performance. * Configuring this field to non-default values is only supported for secure * HTTP backends. This field will be ignored for all other backends. * See * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids * for more details on the supported values. * * Generated from protobuf field string protocol = 9; * @param string $var * @return $this */ public function setProtocol($var) { GPBUtil::checkString($var, True); $this->protocol = $var; return $this; } /** * The map between request protocol and the backend address. * * Generated from protobuf field map overrides_by_request_protocol = 10; * @return \Google\Protobuf\Internal\MapField */ public function getOverridesByRequestProtocol() { return $this->overrides_by_request_protocol; } /** * The map between request protocol and the backend address. * * Generated from protobuf field map overrides_by_request_protocol = 10; * @param array|\Google\Protobuf\Internal\MapField $var * @return $this */ public function setOverridesByRequestProtocol($var) { $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\BackendRule::class); $this->overrides_by_request_protocol = $arr; return $this; } /** * @return string */ public function getAuthentication() { return $this->whichOneof("authentication"); } } src/Api/BackendRule/PathTranslation.php000064400000006761151742741400014066 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); } } src/Api/Billing.php000064400000010225151742741400010142 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 array<\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 array<\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.php000064400000007227151742741400013734 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; */ protected $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 array|\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 array|\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; } } src/Api/ChangeType.php000064400000003727151742741400010622 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/ClientLibraryDestination.php000064400000003506151742741400013533 0ustar00google.api.ClientLibraryDestination */ class ClientLibraryDestination { /** * Client libraries will neither be generated nor published to package * managers. * * Generated from protobuf enum CLIENT_LIBRARY_DESTINATION_UNSPECIFIED = 0; */ const CLIENT_LIBRARY_DESTINATION_UNSPECIFIED = 0; /** * Generate the client library in a repo under github.com/googleapis, * but don't publish it to package managers. * * Generated from protobuf enum GITHUB = 10; */ const GITHUB = 10; /** * Publish the library to package managers like nuget.org and npmjs.com. * * Generated from protobuf enum PACKAGE_MANAGER = 20; */ const PACKAGE_MANAGER = 20; private static $valueToName = [ self::CLIENT_LIBRARY_DESTINATION_UNSPECIFIED => 'CLIENT_LIBRARY_DESTINATION_UNSPECIFIED', self::GITHUB => 'GITHUB', self::PACKAGE_MANAGER => 'PACKAGE_MANAGER', ]; 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/ClientLibraryOrganization.php000064400000005013151742741400013711 0ustar00google.api.ClientLibraryOrganization */ class ClientLibraryOrganization { /** * Not useful. * * Generated from protobuf enum CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 0; */ const CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 0; /** * Google Cloud Platform Org. * * Generated from protobuf enum CLOUD = 1; */ const CLOUD = 1; /** * Ads (Advertising) Org. * * Generated from protobuf enum ADS = 2; */ const ADS = 2; /** * Photos Org. * * Generated from protobuf enum PHOTOS = 3; */ const PHOTOS = 3; /** * Street View Org. * * Generated from protobuf enum STREET_VIEW = 4; */ const STREET_VIEW = 4; /** * Shopping Org. * * Generated from protobuf enum SHOPPING = 5; */ const SHOPPING = 5; /** * Geo Org. * * Generated from protobuf enum GEO = 6; */ const GEO = 6; /** * Generative AI - https://developers.generativeai.google * * Generated from protobuf enum GENERATIVE_AI = 7; */ const GENERATIVE_AI = 7; private static $valueToName = [ self::CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED => 'CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED', self::CLOUD => 'CLOUD', self::ADS => 'ADS', self::PHOTOS => 'PHOTOS', self::STREET_VIEW => 'STREET_VIEW', self::SHOPPING => 'SHOPPING', self::GEO => 'GEO', self::GENERATIVE_AI => 'GENERATIVE_AI', ]; 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/ClientLibrarySettings.php000064400000033450151742741400013053 0ustar00google.api.ClientLibrarySettings */ class ClientLibrarySettings extends \Google\Protobuf\Internal\Message { /** * Version of the API to apply these settings to. This is the full protobuf * package for the API, ending in the version element. * Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1". * * Generated from protobuf field string version = 1; */ protected $version = ''; /** * Launch stage of this version of the API. * * Generated from protobuf field .google.api.LaunchStage launch_stage = 2; */ protected $launch_stage = 0; /** * When using transport=rest, the client request will encode enums as * numbers rather than strings. * * Generated from protobuf field bool rest_numeric_enums = 3; */ protected $rest_numeric_enums = false; /** * Settings for legacy Java features, supported in the Service YAML. * * Generated from protobuf field .google.api.JavaSettings java_settings = 21; */ protected $java_settings = null; /** * Settings for C++ client libraries. * * Generated from protobuf field .google.api.CppSettings cpp_settings = 22; */ protected $cpp_settings = null; /** * Settings for PHP client libraries. * * Generated from protobuf field .google.api.PhpSettings php_settings = 23; */ protected $php_settings = null; /** * Settings for Python client libraries. * * Generated from protobuf field .google.api.PythonSettings python_settings = 24; */ protected $python_settings = null; /** * Settings for Node client libraries. * * Generated from protobuf field .google.api.NodeSettings node_settings = 25; */ protected $node_settings = null; /** * Settings for .NET client libraries. * * Generated from protobuf field .google.api.DotnetSettings dotnet_settings = 26; */ protected $dotnet_settings = null; /** * Settings for Ruby client libraries. * * Generated from protobuf field .google.api.RubySettings ruby_settings = 27; */ protected $ruby_settings = null; /** * Settings for Go client libraries. * * Generated from protobuf field .google.api.GoSettings go_settings = 28; */ protected $go_settings = null; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $version * Version of the API to apply these settings to. This is the full protobuf * package for the API, ending in the version element. * Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1". * @type int $launch_stage * Launch stage of this version of the API. * @type bool $rest_numeric_enums * When using transport=rest, the client request will encode enums as * numbers rather than strings. * @type \Google\Api\JavaSettings $java_settings * Settings for legacy Java features, supported in the Service YAML. * @type \Google\Api\CppSettings $cpp_settings * Settings for C++ client libraries. * @type \Google\Api\PhpSettings $php_settings * Settings for PHP client libraries. * @type \Google\Api\PythonSettings $python_settings * Settings for Python client libraries. * @type \Google\Api\NodeSettings $node_settings * Settings for Node client libraries. * @type \Google\Api\DotnetSettings $dotnet_settings * Settings for .NET client libraries. * @type \Google\Api\RubySettings $ruby_settings * Settings for Ruby client libraries. * @type \Google\Api\GoSettings $go_settings * Settings for Go client libraries. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Client::initOnce(); parent::__construct($data); } /** * Version of the API to apply these settings to. This is the full protobuf * package for the API, ending in the version element. * Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1". * * Generated from protobuf field string version = 1; * @return string */ public function getVersion() { return $this->version; } /** * Version of the API to apply these settings to. This is the full protobuf * package for the API, ending in the version element. * Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1". * * Generated from protobuf field string version = 1; * @param string $var * @return $this */ public function setVersion($var) { GPBUtil::checkString($var, True); $this->version = $var; return $this; } /** * Launch stage of this version of the API. * * Generated from protobuf field .google.api.LaunchStage launch_stage = 2; * @return int */ public function getLaunchStage() { return $this->launch_stage; } /** * Launch stage of this version of the API. * * Generated from protobuf field .google.api.LaunchStage launch_stage = 2; * @param int $var * @return $this */ public function setLaunchStage($var) { GPBUtil::checkEnum($var, \Google\Api\LaunchStage::class); $this->launch_stage = $var; return $this; } /** * When using transport=rest, the client request will encode enums as * numbers rather than strings. * * Generated from protobuf field bool rest_numeric_enums = 3; * @return bool */ public function getRestNumericEnums() { return $this->rest_numeric_enums; } /** * When using transport=rest, the client request will encode enums as * numbers rather than strings. * * Generated from protobuf field bool rest_numeric_enums = 3; * @param bool $var * @return $this */ public function setRestNumericEnums($var) { GPBUtil::checkBool($var); $this->rest_numeric_enums = $var; return $this; } /** * Settings for legacy Java features, supported in the Service YAML. * * Generated from protobuf field .google.api.JavaSettings java_settings = 21; * @return \Google\Api\JavaSettings|null */ public function getJavaSettings() { return $this->java_settings; } public function hasJavaSettings() { return isset($this->java_settings); } public function clearJavaSettings() { unset($this->java_settings); } /** * Settings for legacy Java features, supported in the Service YAML. * * Generated from protobuf field .google.api.JavaSettings java_settings = 21; * @param \Google\Api\JavaSettings $var * @return $this */ public function setJavaSettings($var) { GPBUtil::checkMessage($var, \Google\Api\JavaSettings::class); $this->java_settings = $var; return $this; } /** * Settings for C++ client libraries. * * Generated from protobuf field .google.api.CppSettings cpp_settings = 22; * @return \Google\Api\CppSettings|null */ public function getCppSettings() { return $this->cpp_settings; } public function hasCppSettings() { return isset($this->cpp_settings); } public function clearCppSettings() { unset($this->cpp_settings); } /** * Settings for C++ client libraries. * * Generated from protobuf field .google.api.CppSettings cpp_settings = 22; * @param \Google\Api\CppSettings $var * @return $this */ public function setCppSettings($var) { GPBUtil::checkMessage($var, \Google\Api\CppSettings::class); $this->cpp_settings = $var; return $this; } /** * Settings for PHP client libraries. * * Generated from protobuf field .google.api.PhpSettings php_settings = 23; * @return \Google\Api\PhpSettings|null */ public function getPhpSettings() { return $this->php_settings; } public function hasPhpSettings() { return isset($this->php_settings); } public function clearPhpSettings() { unset($this->php_settings); } /** * Settings for PHP client libraries. * * Generated from protobuf field .google.api.PhpSettings php_settings = 23; * @param \Google\Api\PhpSettings $var * @return $this */ public function setPhpSettings($var) { GPBUtil::checkMessage($var, \Google\Api\PhpSettings::class); $this->php_settings = $var; return $this; } /** * Settings for Python client libraries. * * Generated from protobuf field .google.api.PythonSettings python_settings = 24; * @return \Google\Api\PythonSettings|null */ public function getPythonSettings() { return $this->python_settings; } public function hasPythonSettings() { return isset($this->python_settings); } public function clearPythonSettings() { unset($this->python_settings); } /** * Settings for Python client libraries. * * Generated from protobuf field .google.api.PythonSettings python_settings = 24; * @param \Google\Api\PythonSettings $var * @return $this */ public function setPythonSettings($var) { GPBUtil::checkMessage($var, \Google\Api\PythonSettings::class); $this->python_settings = $var; return $this; } /** * Settings for Node client libraries. * * Generated from protobuf field .google.api.NodeSettings node_settings = 25; * @return \Google\Api\NodeSettings|null */ public function getNodeSettings() { return $this->node_settings; } public function hasNodeSettings() { return isset($this->node_settings); } public function clearNodeSettings() { unset($this->node_settings); } /** * Settings for Node client libraries. * * Generated from protobuf field .google.api.NodeSettings node_settings = 25; * @param \Google\Api\NodeSettings $var * @return $this */ public function setNodeSettings($var) { GPBUtil::checkMessage($var, \Google\Api\NodeSettings::class); $this->node_settings = $var; return $this; } /** * Settings for .NET client libraries. * * Generated from protobuf field .google.api.DotnetSettings dotnet_settings = 26; * @return \Google\Api\DotnetSettings|null */ public function getDotnetSettings() { return $this->dotnet_settings; } public function hasDotnetSettings() { return isset($this->dotnet_settings); } public function clearDotnetSettings() { unset($this->dotnet_settings); } /** * Settings for .NET client libraries. * * Generated from protobuf field .google.api.DotnetSettings dotnet_settings = 26; * @param \Google\Api\DotnetSettings $var * @return $this */ public function setDotnetSettings($var) { GPBUtil::checkMessage($var, \Google\Api\DotnetSettings::class); $this->dotnet_settings = $var; return $this; } /** * Settings for Ruby client libraries. * * Generated from protobuf field .google.api.RubySettings ruby_settings = 27; * @return \Google\Api\RubySettings|null */ public function getRubySettings() { return $this->ruby_settings; } public function hasRubySettings() { return isset($this->ruby_settings); } public function clearRubySettings() { unset($this->ruby_settings); } /** * Settings for Ruby client libraries. * * Generated from protobuf field .google.api.RubySettings ruby_settings = 27; * @param \Google\Api\RubySettings $var * @return $this */ public function setRubySettings($var) { GPBUtil::checkMessage($var, \Google\Api\RubySettings::class); $this->ruby_settings = $var; return $this; } /** * Settings for Go client libraries. * * Generated from protobuf field .google.api.GoSettings go_settings = 28; * @return \Google\Api\GoSettings|null */ public function getGoSettings() { return $this->go_settings; } public function hasGoSettings() { return isset($this->go_settings); } public function clearGoSettings() { unset($this->go_settings); } /** * Settings for Go client libraries. * * Generated from protobuf field .google.api.GoSettings go_settings = 28; * @param \Google\Api\GoSettings $var * @return $this */ public function setGoSettings($var) { GPBUtil::checkMessage($var, \Google\Api\GoSettings::class); $this->go_settings = $var; return $this; } } src/Api/CommonLanguageSettings.php000064400000007133151742741400013203 0ustar00google.api.CommonLanguageSettings */ class CommonLanguageSettings extends \Google\Protobuf\Internal\Message { /** * Link to automatically generated reference documentation. Example: * https://cloud.google.com/nodejs/docs/reference/asset/latest * * Generated from protobuf field string reference_docs_uri = 1 [deprecated = true]; * @deprecated */ protected $reference_docs_uri = ''; /** * The destination where API teams want this client library to be published. * * Generated from protobuf field repeated .google.api.ClientLibraryDestination destinations = 2; */ private $destinations; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $reference_docs_uri * Link to automatically generated reference documentation. Example: * https://cloud.google.com/nodejs/docs/reference/asset/latest * @type array|\Google\Protobuf\Internal\RepeatedField $destinations * The destination where API teams want this client library to be published. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Client::initOnce(); parent::__construct($data); } /** * Link to automatically generated reference documentation. Example: * https://cloud.google.com/nodejs/docs/reference/asset/latest * * Generated from protobuf field string reference_docs_uri = 1 [deprecated = true]; * @return string * @deprecated */ public function getReferenceDocsUri() { @trigger_error('reference_docs_uri is deprecated.', E_USER_DEPRECATED); return $this->reference_docs_uri; } /** * Link to automatically generated reference documentation. Example: * https://cloud.google.com/nodejs/docs/reference/asset/latest * * Generated from protobuf field string reference_docs_uri = 1 [deprecated = true]; * @param string $var * @return $this * @deprecated */ public function setReferenceDocsUri($var) { @trigger_error('reference_docs_uri is deprecated.', E_USER_DEPRECATED); GPBUtil::checkString($var, True); $this->reference_docs_uri = $var; return $this; } /** * The destination where API teams want this client library to be published. * * Generated from protobuf field repeated .google.api.ClientLibraryDestination destinations = 2; * @return \Google\Protobuf\Internal\RepeatedField */ public function getDestinations() { return $this->destinations; } /** * The destination where API teams want this client library to be published. * * Generated from protobuf field repeated .google.api.ClientLibraryDestination destinations = 2; * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setDestinations($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Api\ClientLibraryDestination::class); $this->destinations = $arr; return $this; } } src/Api/ConfigChange.php000064400000021236151742741400011101 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.ListBooks"].restriction * - quota.metric_rules[selector=="google"].metric_costs[key=="reads"].value * - logging.producer_destinations[0] * * Generated from protobuf field string element = 1; */ protected $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; */ protected $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; */ protected $new_value = ''; /** * The type for this change, either ADDED, REMOVED, or MODIFIED. * * Generated from protobuf field .google.api.ChangeType change_type = 4; */ protected $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.ListBooks"].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 array<\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.ListBooks"].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.ListBooks"].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 array<\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.php000064400000006476151742741400010223 0ustar00-binâ€� and * “x-goog-ext--jspbâ€� format. For example, list any service * specific protobuf types that can appear in grpc metadata as follows in your * yaml file: * Example: * context: * rules: * - selector: "google.example.library.v1.LibraryService.CreateBook" * allowed_request_extensions: * - google.foo.v1.NewExtension * allowed_response_extensions: * - google.foo.v1.NewExtension * You can also specify extension ID instead of fully qualified extension name * here. * * Generated from protobuf message google.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 array<\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 array<\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.php000064400000017352151742741400011046 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; */ protected $selector = ''; /** * A list of full type names of requested contexts, only the requested context * will be made available to the backend. * * Generated from protobuf field repeated string requested = 2; */ private $requested; /** * A list of full type names of provided contexts. It is used to support * propagating HTTP headers and ETags from the response extension. * * Generated from protobuf field repeated string provided = 3; */ private $provided; /** * A list of full type names or extension IDs of extensions allowed in grpc * side channel from client to backend. * * Generated from protobuf field repeated string allowed_request_extensions = 4; */ private $allowed_request_extensions; /** * A list of full type names or extension IDs of extensions allowed in grpc * side channel from backend to client. * * Generated from protobuf field repeated string allowed_response_extensions = 5; */ private $allowed_response_extensions; /** * 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\RepeatedField $requested * A list of full type names of requested contexts, only the requested context * will be made available to the backend. * @type array|\Google\Protobuf\Internal\RepeatedField $provided * A list of full type names of provided contexts. It is used to support * propagating HTTP headers and ETags from the response extension. * @type array|\Google\Protobuf\Internal\RepeatedField $allowed_request_extensions * A list of full type names or extension IDs of extensions allowed in grpc * side channel from client to backend. * @type array|\Google\Protobuf\Internal\RepeatedField $allowed_response_extensions * A list of full type names or extension IDs of extensions allowed in grpc * side channel from backend to client. * } */ 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, only the requested context * will be made available to the backend. * * 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, only the requested context * will be made available to the backend. * * Generated from protobuf field repeated string requested = 2; * @param array|\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. It is used to support * propagating HTTP headers and ETags from the response extension. * * 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. It is used to support * propagating HTTP headers and ETags from the response extension. * * Generated from protobuf field repeated string provided = 3; * @param array|\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; } /** * A list of full type names or extension IDs of extensions allowed in grpc * side channel from client to backend. * * Generated from protobuf field repeated string allowed_request_extensions = 4; * @return \Google\Protobuf\Internal\RepeatedField */ public function getAllowedRequestExtensions() { return $this->allowed_request_extensions; } /** * A list of full type names or extension IDs of extensions allowed in grpc * side channel from client to backend. * * Generated from protobuf field repeated string allowed_request_extensions = 4; * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setAllowedRequestExtensions($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); $this->allowed_request_extensions = $arr; return $this; } /** * A list of full type names or extension IDs of extensions allowed in grpc * side channel from backend to client. * * Generated from protobuf field repeated string allowed_response_extensions = 5; * @return \Google\Protobuf\Internal\RepeatedField */ public function getAllowedResponseExtensions() { return $this->allowed_response_extensions; } /** * A list of full type names or extension IDs of extensions allowed in grpc * side channel from backend to client. * * Generated from protobuf field repeated string allowed_response_extensions = 5; * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setAllowedResponseExtensions($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); $this->allowed_response_extensions = $arr; return $this; } } src/Api/Control.php000064400000007151151742741400010206 0ustar00google.api.Control */ class Control extends \Google\Protobuf\Internal\Message { /** * The service controller environment to use. If empty, no control plane * feature (like quota and billing) will be enabled. The recommended value for * most services is servicecontrol.googleapis.com * * Generated from protobuf field string environment = 1; */ protected $environment = ''; /** * Defines policies applying to the API methods of the service. * * Generated from protobuf field repeated .google.api.MethodPolicy method_policies = 4; */ private $method_policies; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $environment * The service controller environment to use. If empty, no control plane * feature (like quota and billing) will be enabled. The recommended value for * most services is servicecontrol.googleapis.com * @type array<\Google\Api\MethodPolicy>|\Google\Protobuf\Internal\RepeatedField $method_policies * Defines policies applying to the API methods of the service. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Control::initOnce(); parent::__construct($data); } /** * The service controller environment to use. If empty, no control plane * feature (like quota and billing) will be enabled. The recommended value for * most services is servicecontrol.googleapis.com * * Generated from protobuf field string environment = 1; * @return string */ public function getEnvironment() { return $this->environment; } /** * The service controller environment to use. If empty, no control plane * feature (like quota and billing) will be enabled. The recommended value for * most services is servicecontrol.googleapis.com * * 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; } /** * Defines policies applying to the API methods of the service. * * Generated from protobuf field repeated .google.api.MethodPolicy method_policies = 4; * @return \Google\Protobuf\Internal\RepeatedField */ public function getMethodPolicies() { return $this->method_policies; } /** * Defines policies applying to the API methods of the service. * * Generated from protobuf field repeated .google.api.MethodPolicy method_policies = 4; * @param array<\Google\Api\MethodPolicy>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setMethodPolicies($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\MethodPolicy::class); $this->method_policies = $arr; return $this; } } src/Api/CppSettings.php000064400000003427151742741400011033 0ustar00google.api.CppSettings */ class CppSettings extends \Google\Protobuf\Internal\Message { /** * Some settings. * * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; */ protected $common = null; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Google\Api\CommonLanguageSettings $common * Some settings. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Client::initOnce(); parent::__construct($data); } /** * Some settings. * * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; * @return \Google\Api\CommonLanguageSettings|null */ public function getCommon() { return $this->common; } public function hasCommon() { return isset($this->common); } public function clearCommon() { unset($this->common); } /** * Some settings. * * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; * @param \Google\Api\CommonLanguageSettings $var * @return $this */ public function setCommon($var) { GPBUtil::checkMessage($var, \Google\Api\CommonLanguageSettings::class); $this->common = $var; return $this; } } src/Api/CustomHttpPattern.php000064400000004432151742741400012235 0ustar00google.api.CustomHttpPattern */ class CustomHttpPattern extends \Google\Protobuf\Internal\Message { /** * The name of this custom HTTP verb. * * Generated from protobuf field string kind = 1; */ protected $kind = ''; /** * The path matched by this custom verb. * * Generated from protobuf field string path = 2; */ protected $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.php000064400000036005151742741400011245 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; */ protected $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; */ protected $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 232, 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; */ protected $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; */ protected $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; */ protected $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 232, 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 array|array|\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 array<\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 232, 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 232, 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|null */ public function getRange() { return $this->range; } public function hasRange() { return isset($this->range); } public function clearRange() { unset($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|null */ public function getBucketOptions() { return $this->bucket_options; } public function hasBucketOptions() { return isset($this->bucket_options); } public function clearBucketOptions() { unset($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 array|array|\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 array<\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.php000064400000011522151742741400014033 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|null */ public function getLinearBuckets() { return $this->readOneof(1); } public function hasLinearBuckets() { return $this->hasOneof(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|null */ public function getExponentialBuckets() { return $this->readOneof(2); } public function hasExponentialBuckets() { return $this->hasOneof(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|null */ public function getExplicitBuckets() { return $this->readOneof(3); } public function hasExplicitBuckets() { return $this->hasOneof(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"); } } src/Api/Distribution/BucketOptions/Explicit.php000064400000004303151742741400015613 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 array|\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 array|\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; } } src/Api/Distribution/BucketOptions/Exponential.php000064400000007015151742741400016323 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; */ protected $num_finite_buckets = 0; /** * Must be greater than 1. * * Generated from protobuf field double growth_factor = 2; */ protected $growth_factor = 0.0; /** * Must be greater than 0. * * Generated from protobuf field double scale = 3; */ protected $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; } } src/Api/Distribution/BucketOptions/Linear.php000064400000006716151742741400015256 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; */ protected $num_finite_buckets = 0; /** * Must be greater than 0. * * Generated from protobuf field double width = 2; */ protected $width = 0.0; /** * Lower bound of the first bucket. * * Generated from protobuf field double offset = 3; */ protected $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; } } src/Api/Distribution/Exemplar.php000064400000014067151742741400013026 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; */ protected $value = 0.0; /** * The observation (sampling) time of the above value. * * Generated from protobuf field .google.protobuf.Timestamp timestamp = 2; */ protected $timestamp = null; /** * Contextual information about the example value. Examples are: * Trace: type.googleapis.com/google.monitoring.v3.SpanContext * 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 array<\Google\Protobuf\Any>|\Google\Protobuf\Internal\RepeatedField $attachments * Contextual information about the example value. Examples are: * Trace: type.googleapis.com/google.monitoring.v3.SpanContext * 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|null */ public function getTimestamp() { return $this->timestamp; } public function hasTimestamp() { return isset($this->timestamp); } public function clearTimestamp() { unset($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: type.googleapis.com/google.monitoring.v3.SpanContext * 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: type.googleapis.com/google.monitoring.v3.SpanContext * 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 array<\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; } } src/Api/Distribution/Range.php000064400000004403151742741400012276 0ustar00google.api.Distribution.Range */ class Range extends \Google\Protobuf\Internal\Message { /** * The minimum of the population values. * * Generated from protobuf field double min = 1; */ protected $min = 0.0; /** * The maximum of the population values. * * Generated from protobuf field double max = 2; */ protected $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; } } src/Api/Documentation.php000064400000031301151742741400011371 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 description of what the service does. The summary must be plain * text. It becomes the overview of the service displayed in Google Cloud * Console. * NOTE: This field is equivalent to the standard field `description`. * * Generated from protobuf field string summary = 1; */ protected $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; */ protected $documentation_root_url = ''; /** * Specifies the service root url if the default one (the service name * from the yaml file) is not suitable. This can be seen in any fully * specified service urls as well as sections that show a base that other * urls are relative to. * * Generated from protobuf field string service_root_url = 6; */ protected $service_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; */ protected $overview = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $summary * A short description of what the service does. The summary must be plain * text. It becomes the overview of the service displayed in Google Cloud * Console. * NOTE: This field is equivalent to the standard field `description`. * @type array<\Google\Api\Page>|\Google\Protobuf\Internal\RepeatedField $pages * The top level pages for the documentation set. * @type array<\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 $service_root_url * Specifies the service root url if the default one (the service name * from the yaml file) is not suitable. This can be seen in any fully * specified service urls as well as sections that show a base that other * urls are relative to. * @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 description of what the service does. The summary must be plain * text. It becomes the overview of the service displayed in Google Cloud * Console. * NOTE: This field is equivalent to the standard field `description`. * * Generated from protobuf field string summary = 1; * @return string */ public function getSummary() { return $this->summary; } /** * A short description of what the service does. The summary must be plain * text. It becomes the overview of the service displayed in Google Cloud * Console. * NOTE: This field is equivalent to the standard field `description`. * * 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 array<\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 array<\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; } /** * Specifies the service root url if the default one (the service name * from the yaml file) is not suitable. This can be seen in any fully * specified service urls as well as sections that show a base that other * urls are relative to. * * Generated from protobuf field string service_root_url = 6; * @return string */ public function getServiceRootUrl() { return $this->service_root_url; } /** * Specifies the service root url if the default one (the service name * from the yaml file) is not suitable. This can be seen in any fully * specified service urls as well as sections that show a base that other * urls are relative to. * * Generated from protobuf field string service_root_url = 6; * @param string $var * @return $this */ public function setServiceRootUrl($var) { GPBUtil::checkString($var, True); $this->service_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.php000064400000014517151742741400012233 0ustar00google.api.DocumentationRule */ class DocumentationRule extends \Google\Protobuf\Internal\Message { /** * The selector is a comma-separated list of patterns for any element such as * a method, a field, an enum value. 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". A wildcard will match * one or more components. To specify a default for all applicable elements, * the whole pattern "*" is used. * * Generated from protobuf field string selector = 1; */ protected $selector = ''; /** * Description of the selected proto element (e.g. a message, a method, a * 'service' definition, or a field). Defaults to leading & trailing comments * taken from the proto source definition of the proto element. * * Generated from protobuf field string description = 2; */ protected $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; */ protected $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 for any element such as * a method, a field, an enum value. 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". A wildcard will match * one or more components. To specify a default for all applicable elements, * the whole pattern "*" is used. * @type string $description * Description of the selected proto element (e.g. a message, a method, a * 'service' definition, or a field). Defaults to leading & trailing comments * taken from the proto source definition of the proto element. * @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 for any element such as * a method, a field, an enum value. 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". A wildcard will match * one or more components. 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 for any element such as * a method, a field, an enum value. 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". A wildcard will match * one or more components. 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 proto element (e.g. a message, a method, a * 'service' definition, or a field). Defaults to leading & trailing comments * taken from the proto source definition of the proto element. * * Generated from protobuf field string description = 2; * @return string */ public function getDescription() { return $this->description; } /** * Description of the selected proto element (e.g. a message, a method, a * 'service' definition, or a field). Defaults to leading & trailing comments * taken from the proto source definition of the proto element. * * 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/DotnetSettings.php000064400000026156151742741400011552 0ustar00google.api.DotnetSettings */ class DotnetSettings extends \Google\Protobuf\Internal\Message { /** * Some settings. * * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; */ protected $common = null; /** * Map from original service names to renamed versions. * This is used when the default generated types * would cause a naming conflict. (Neither name is * fully-qualified.) * Example: Subscriber to SubscriberServiceApi. * * Generated from protobuf field map renamed_services = 2; */ private $renamed_services; /** * Map from full resource types to the effective short name * for the resource. This is used when otherwise resource * named from different services would cause naming collisions. * Example entry: * "datalabeling.googleapis.com/Dataset": "DataLabelingDataset" * * Generated from protobuf field map renamed_resources = 3; */ private $renamed_resources; /** * List of full resource types to ignore during generation. * This is typically used for API-specific Location resources, * which should be handled by the generator as if they were actually * the common Location resources. * Example entry: "documentai.googleapis.com/Location" * * Generated from protobuf field repeated string ignored_resources = 4; */ private $ignored_resources; /** * Namespaces which must be aliased in snippets due to * a known (but non-generator-predictable) naming collision * * Generated from protobuf field repeated string forced_namespace_aliases = 5; */ private $forced_namespace_aliases; /** * Method signatures (in the form "service.method(signature)") * which are provided separately, so shouldn't be generated. * Snippets *calling* these methods are still generated, however. * * Generated from protobuf field repeated string handwritten_signatures = 6; */ private $handwritten_signatures; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Google\Api\CommonLanguageSettings $common * Some settings. * @type array|\Google\Protobuf\Internal\MapField $renamed_services * Map from original service names to renamed versions. * This is used when the default generated types * would cause a naming conflict. (Neither name is * fully-qualified.) * Example: Subscriber to SubscriberServiceApi. * @type array|\Google\Protobuf\Internal\MapField $renamed_resources * Map from full resource types to the effective short name * for the resource. This is used when otherwise resource * named from different services would cause naming collisions. * Example entry: * "datalabeling.googleapis.com/Dataset": "DataLabelingDataset" * @type array|\Google\Protobuf\Internal\RepeatedField $ignored_resources * List of full resource types to ignore during generation. * This is typically used for API-specific Location resources, * which should be handled by the generator as if they were actually * the common Location resources. * Example entry: "documentai.googleapis.com/Location" * @type array|\Google\Protobuf\Internal\RepeatedField $forced_namespace_aliases * Namespaces which must be aliased in snippets due to * a known (but non-generator-predictable) naming collision * @type array|\Google\Protobuf\Internal\RepeatedField $handwritten_signatures * Method signatures (in the form "service.method(signature)") * which are provided separately, so shouldn't be generated. * Snippets *calling* these methods are still generated, however. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Client::initOnce(); parent::__construct($data); } /** * Some settings. * * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; * @return \Google\Api\CommonLanguageSettings|null */ public function getCommon() { return $this->common; } public function hasCommon() { return isset($this->common); } public function clearCommon() { unset($this->common); } /** * Some settings. * * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; * @param \Google\Api\CommonLanguageSettings $var * @return $this */ public function setCommon($var) { GPBUtil::checkMessage($var, \Google\Api\CommonLanguageSettings::class); $this->common = $var; return $this; } /** * Map from original service names to renamed versions. * This is used when the default generated types * would cause a naming conflict. (Neither name is * fully-qualified.) * Example: Subscriber to SubscriberServiceApi. * * Generated from protobuf field map renamed_services = 2; * @return \Google\Protobuf\Internal\MapField */ public function getRenamedServices() { return $this->renamed_services; } /** * Map from original service names to renamed versions. * This is used when the default generated types * would cause a naming conflict. (Neither name is * fully-qualified.) * Example: Subscriber to SubscriberServiceApi. * * Generated from protobuf field map renamed_services = 2; * @param array|\Google\Protobuf\Internal\MapField $var * @return $this */ public function setRenamedServices($var) { $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); $this->renamed_services = $arr; return $this; } /** * Map from full resource types to the effective short name * for the resource. This is used when otherwise resource * named from different services would cause naming collisions. * Example entry: * "datalabeling.googleapis.com/Dataset": "DataLabelingDataset" * * Generated from protobuf field map renamed_resources = 3; * @return \Google\Protobuf\Internal\MapField */ public function getRenamedResources() { return $this->renamed_resources; } /** * Map from full resource types to the effective short name * for the resource. This is used when otherwise resource * named from different services would cause naming collisions. * Example entry: * "datalabeling.googleapis.com/Dataset": "DataLabelingDataset" * * Generated from protobuf field map renamed_resources = 3; * @param array|\Google\Protobuf\Internal\MapField $var * @return $this */ public function setRenamedResources($var) { $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); $this->renamed_resources = $arr; return $this; } /** * List of full resource types to ignore during generation. * This is typically used for API-specific Location resources, * which should be handled by the generator as if they were actually * the common Location resources. * Example entry: "documentai.googleapis.com/Location" * * Generated from protobuf field repeated string ignored_resources = 4; * @return \Google\Protobuf\Internal\RepeatedField */ public function getIgnoredResources() { return $this->ignored_resources; } /** * List of full resource types to ignore during generation. * This is typically used for API-specific Location resources, * which should be handled by the generator as if they were actually * the common Location resources. * Example entry: "documentai.googleapis.com/Location" * * Generated from protobuf field repeated string ignored_resources = 4; * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setIgnoredResources($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); $this->ignored_resources = $arr; return $this; } /** * Namespaces which must be aliased in snippets due to * a known (but non-generator-predictable) naming collision * * Generated from protobuf field repeated string forced_namespace_aliases = 5; * @return \Google\Protobuf\Internal\RepeatedField */ public function getForcedNamespaceAliases() { return $this->forced_namespace_aliases; } /** * Namespaces which must be aliased in snippets due to * a known (but non-generator-predictable) naming collision * * Generated from protobuf field repeated string forced_namespace_aliases = 5; * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setForcedNamespaceAliases($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); $this->forced_namespace_aliases = $arr; return $this; } /** * Method signatures (in the form "service.method(signature)") * which are provided separately, so shouldn't be generated. * Snippets *calling* these methods are still generated, however. * * Generated from protobuf field repeated string handwritten_signatures = 6; * @return \Google\Protobuf\Internal\RepeatedField */ public function getHandwrittenSignatures() { return $this->handwritten_signatures; } /** * Method signatures (in the form "service.method(signature)") * which are provided separately, so shouldn't be generated. * Snippets *calling* these methods are still generated, however. * * Generated from protobuf field repeated string handwritten_signatures = 6; * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setHandwrittenSignatures($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); $this->handwritten_signatures = $arr; return $this; } } src/Api/Endpoint.php000064400000020012151742741400010335 0ustar00google.api.Endpoint */ class Endpoint extends \Google\Protobuf\Internal\Message { /** * The canonical name of this endpoint. * * Generated from protobuf field string name = 1; */ protected $name = ''; /** * Aliases for this endpoint, these will be served by the same UrlMap as the * parent endpoint, and will be provisioned in the GCP stack for the Regional * Endpoints. * * Generated from protobuf field repeated string aliases = 2; */ private $aliases; /** * 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; */ protected $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; */ protected $allow_cors = false; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $name * The canonical name of this endpoint. * @type array|\Google\Protobuf\Internal\RepeatedField $aliases * Aliases for this endpoint, these will be served by the same UrlMap as the * parent endpoint, and will be provisioned in the GCP stack for the Regional * Endpoints. * @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; } /** * Aliases for this endpoint, these will be served by the same UrlMap as the * parent endpoint, and will be provisioned in the GCP stack for the Regional * Endpoints. * * Generated from protobuf field repeated string aliases = 2; * @return \Google\Protobuf\Internal\RepeatedField */ public function getAliases() { return $this->aliases; } /** * Aliases for this endpoint, these will be served by the same UrlMap as the * parent endpoint, and will be provisioned in the GCP stack for the Regional * Endpoints. * * Generated from protobuf field repeated string aliases = 2; * @param array|\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 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/ErrorReason.php000064400000067650151742741400011041 0ustar00google.api.ErrorReason */ class ErrorReason { /** * Do not use this default value. * * Generated from protobuf enum ERROR_REASON_UNSPECIFIED = 0; */ const ERROR_REASON_UNSPECIFIED = 0; /** * The request is calling a disabled service for a consumer. * Example of an ErrorInfo when the consumer "projects/123" contacting * "pubsub.googleapis.com" service which is disabled: * { "reason": "SERVICE_DISABLED", * "domain": "googleapis.com", * "metadata": { * "consumer": "projects/123", * "service": "pubsub.googleapis.com" * } * } * This response indicates the "pubsub.googleapis.com" has been disabled in * "projects/123". * * Generated from protobuf enum SERVICE_DISABLED = 1; */ const SERVICE_DISABLED = 1; /** * The request whose associated billing account is disabled. * Example of an ErrorInfo when the consumer "projects/123" fails to contact * "pubsub.googleapis.com" service because the associated billing account is * disabled: * { "reason": "BILLING_DISABLED", * "domain": "googleapis.com", * "metadata": { * "consumer": "projects/123", * "service": "pubsub.googleapis.com" * } * } * This response indicates the billing account associated has been disabled. * * Generated from protobuf enum BILLING_DISABLED = 2; */ const BILLING_DISABLED = 2; /** * The request is denied because the provided [API * key](https://cloud.google.com/docs/authentication/api-keys) is invalid. It * may be in a bad format, cannot be found, or has been expired). * Example of an ErrorInfo when the request is contacting * "storage.googleapis.com" service with an invalid API key: * { "reason": "API_KEY_INVALID", * "domain": "googleapis.com", * "metadata": { * "service": "storage.googleapis.com", * } * } * * Generated from protobuf enum API_KEY_INVALID = 3; */ const API_KEY_INVALID = 3; /** * The request is denied because it violates [API key API * restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_api_restrictions). * Example of an ErrorInfo when the consumer "projects/123" fails to call the * "storage.googleapis.com" service because this service is restricted in the * API key: * { "reason": "API_KEY_SERVICE_BLOCKED", * "domain": "googleapis.com", * "metadata": { * "consumer": "projects/123", * "service": "storage.googleapis.com" * } * } * * Generated from protobuf enum API_KEY_SERVICE_BLOCKED = 4; */ const API_KEY_SERVICE_BLOCKED = 4; /** * The request is denied because it violates [API key HTTP * restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_http_restrictions). * Example of an ErrorInfo when the consumer "projects/123" fails to call * "storage.googleapis.com" service because the http referrer of the request * violates API key HTTP restrictions: * { "reason": "API_KEY_HTTP_REFERRER_BLOCKED", * "domain": "googleapis.com", * "metadata": { * "consumer": "projects/123", * "service": "storage.googleapis.com", * } * } * * Generated from protobuf enum API_KEY_HTTP_REFERRER_BLOCKED = 7; */ const API_KEY_HTTP_REFERRER_BLOCKED = 7; /** * The request is denied because it violates [API key IP address * restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_application_restrictions). * Example of an ErrorInfo when the consumer "projects/123" fails to call * "storage.googleapis.com" service because the caller IP of the request * violates API key IP address restrictions: * { "reason": "API_KEY_IP_ADDRESS_BLOCKED", * "domain": "googleapis.com", * "metadata": { * "consumer": "projects/123", * "service": "storage.googleapis.com", * } * } * * Generated from protobuf enum API_KEY_IP_ADDRESS_BLOCKED = 8; */ const API_KEY_IP_ADDRESS_BLOCKED = 8; /** * The request is denied because it violates [API key Android application * restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_application_restrictions). * Example of an ErrorInfo when the consumer "projects/123" fails to call * "storage.googleapis.com" service because the request from the Android apps * violates the API key Android application restrictions: * { "reason": "API_KEY_ANDROID_APP_BLOCKED", * "domain": "googleapis.com", * "metadata": { * "consumer": "projects/123", * "service": "storage.googleapis.com" * } * } * * Generated from protobuf enum API_KEY_ANDROID_APP_BLOCKED = 9; */ const API_KEY_ANDROID_APP_BLOCKED = 9; /** * The request is denied because it violates [API key iOS application * restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_application_restrictions). * Example of an ErrorInfo when the consumer "projects/123" fails to call * "storage.googleapis.com" service because the request from the iOS apps * violates the API key iOS application restrictions: * { "reason": "API_KEY_IOS_APP_BLOCKED", * "domain": "googleapis.com", * "metadata": { * "consumer": "projects/123", * "service": "storage.googleapis.com" * } * } * * Generated from protobuf enum API_KEY_IOS_APP_BLOCKED = 13; */ const API_KEY_IOS_APP_BLOCKED = 13; /** * The request is denied because there is not enough rate quota for the * consumer. * Example of an ErrorInfo when the consumer "projects/123" fails to contact * "pubsub.googleapis.com" service because consumer's rate quota usage has * reached the maximum value set for the quota limit * "ReadsPerMinutePerProject" on the quota metric * "pubsub.googleapis.com/read_requests": * { "reason": "RATE_LIMIT_EXCEEDED", * "domain": "googleapis.com", * "metadata": { * "consumer": "projects/123", * "service": "pubsub.googleapis.com", * "quota_metric": "pubsub.googleapis.com/read_requests", * "quota_limit": "ReadsPerMinutePerProject" * } * } * Example of an ErrorInfo when the consumer "projects/123" checks quota on * the service "dataflow.googleapis.com" and hits the organization quota * limit "DefaultRequestsPerMinutePerOrganization" on the metric * "dataflow.googleapis.com/default_requests". * { "reason": "RATE_LIMIT_EXCEEDED", * "domain": "googleapis.com", * "metadata": { * "consumer": "projects/123", * "service": "dataflow.googleapis.com", * "quota_metric": "dataflow.googleapis.com/default_requests", * "quota_limit": "DefaultRequestsPerMinutePerOrganization" * } * } * * Generated from protobuf enum RATE_LIMIT_EXCEEDED = 5; */ const RATE_LIMIT_EXCEEDED = 5; /** * The request is denied because there is not enough resource quota for the * consumer. * Example of an ErrorInfo when the consumer "projects/123" fails to contact * "compute.googleapis.com" service because consumer's resource quota usage * has reached the maximum value set for the quota limit "VMsPerProject" * on the quota metric "compute.googleapis.com/vms": * { "reason": "RESOURCE_QUOTA_EXCEEDED", * "domain": "googleapis.com", * "metadata": { * "consumer": "projects/123", * "service": "compute.googleapis.com", * "quota_metric": "compute.googleapis.com/vms", * "quota_limit": "VMsPerProject" * } * } * Example of an ErrorInfo when the consumer "projects/123" checks resource * quota on the service "dataflow.googleapis.com" and hits the organization * quota limit "jobs-per-organization" on the metric * "dataflow.googleapis.com/job_count". * { "reason": "RESOURCE_QUOTA_EXCEEDED", * "domain": "googleapis.com", * "metadata": { * "consumer": "projects/123", * "service": "dataflow.googleapis.com", * "quota_metric": "dataflow.googleapis.com/job_count", * "quota_limit": "jobs-per-organization" * } * } * * Generated from protobuf enum RESOURCE_QUOTA_EXCEEDED = 6; */ const RESOURCE_QUOTA_EXCEEDED = 6; /** * The request whose associated billing account address is in a tax restricted * location, violates the local tax restrictions when creating resources in * the restricted region. * Example of an ErrorInfo when creating the Cloud Storage Bucket in the * container "projects/123" under a tax restricted region * "locations/asia-northeast3": * { "reason": "LOCATION_TAX_POLICY_VIOLATED", * "domain": "googleapis.com", * "metadata": { * "consumer": "projects/123", * "service": "storage.googleapis.com", * "location": "locations/asia-northeast3" * } * } * This response indicates creating the Cloud Storage Bucket in * "locations/asia-northeast3" violates the location tax restriction. * * Generated from protobuf enum LOCATION_TAX_POLICY_VIOLATED = 10; */ const LOCATION_TAX_POLICY_VIOLATED = 10; /** * The request is denied because the caller does not have required permission * on the user project "projects/123" or the user project is invalid. For more * information, check the [userProject System * Parameters](https://cloud.google.com/apis/docs/system-parameters). * Example of an ErrorInfo when the caller is calling Cloud Storage service * with insufficient permissions on the user project: * { "reason": "USER_PROJECT_DENIED", * "domain": "googleapis.com", * "metadata": { * "consumer": "projects/123", * "service": "storage.googleapis.com" * } * } * * Generated from protobuf enum USER_PROJECT_DENIED = 11; */ const USER_PROJECT_DENIED = 11; /** * The request is denied because the consumer "projects/123" is suspended due * to Terms of Service(Tos) violations. Check [Project suspension * guidelines](https://cloud.google.com/resource-manager/docs/project-suspension-guidelines) * for more information. * Example of an ErrorInfo when calling Cloud Storage service with the * suspended consumer "projects/123": * { "reason": "CONSUMER_SUSPENDED", * "domain": "googleapis.com", * "metadata": { * "consumer": "projects/123", * "service": "storage.googleapis.com" * } * } * * Generated from protobuf enum CONSUMER_SUSPENDED = 12; */ const CONSUMER_SUSPENDED = 12; /** * The request is denied because the associated consumer is invalid. It may be * in a bad format, cannot be found, or have been deleted. * Example of an ErrorInfo when calling Cloud Storage service with the * invalid consumer "projects/123": * { "reason": "CONSUMER_INVALID", * "domain": "googleapis.com", * "metadata": { * "consumer": "projects/123", * "service": "storage.googleapis.com" * } * } * * Generated from protobuf enum CONSUMER_INVALID = 14; */ const CONSUMER_INVALID = 14; /** * The request is denied because it violates [VPC Service * Controls](https://cloud.google.com/vpc-service-controls/docs/overview). * The 'uid' field is a random generated identifier that customer can use it * to search the audit log for a request rejected by VPC Service Controls. For * more information, please refer [VPC Service Controls * Troubleshooting](https://cloud.google.com/vpc-service-controls/docs/troubleshooting#unique-id) * Example of an ErrorInfo when the consumer "projects/123" fails to call * Cloud Storage service because the request is prohibited by the VPC Service * Controls. * { "reason": "SECURITY_POLICY_VIOLATED", * "domain": "googleapis.com", * "metadata": { * "uid": "123456789abcde", * "consumer": "projects/123", * "service": "storage.googleapis.com" * } * } * * Generated from protobuf enum SECURITY_POLICY_VIOLATED = 15; */ const SECURITY_POLICY_VIOLATED = 15; /** * The request is denied because the provided access token has expired. * Example of an ErrorInfo when the request is calling Cloud Storage service * with an expired access token: * { "reason": "ACCESS_TOKEN_EXPIRED", * "domain": "googleapis.com", * "metadata": { * "service": "storage.googleapis.com", * "method": "google.storage.v1.Storage.GetObject" * } * } * * Generated from protobuf enum ACCESS_TOKEN_EXPIRED = 16; */ const ACCESS_TOKEN_EXPIRED = 16; /** * The request is denied because the provided access token doesn't have at * least one of the acceptable scopes required for the API. Please check * [OAuth 2.0 Scopes for Google * APIs](https://developers.google.com/identity/protocols/oauth2/scopes) for * the list of the OAuth 2.0 scopes that you might need to request to access * the API. * Example of an ErrorInfo when the request is calling Cloud Storage service * with an access token that is missing required scopes: * { "reason": "ACCESS_TOKEN_SCOPE_INSUFFICIENT", * "domain": "googleapis.com", * "metadata": { * "service": "storage.googleapis.com", * "method": "google.storage.v1.Storage.GetObject" * } * } * * Generated from protobuf enum ACCESS_TOKEN_SCOPE_INSUFFICIENT = 17; */ const ACCESS_TOKEN_SCOPE_INSUFFICIENT = 17; /** * The request is denied because the account associated with the provided * access token is in an invalid state, such as disabled or deleted. * For more information, see https://cloud.google.com/docs/authentication. * Warning: For privacy reasons, the server may not be able to disclose the * email address for some accounts. The client MUST NOT depend on the * availability of the `email` attribute. * Example of an ErrorInfo when the request is to the Cloud Storage API with * an access token that is associated with a disabled or deleted [service * account](http://cloud/iam/docs/service-accounts): * { "reason": "ACCOUNT_STATE_INVALID", * "domain": "googleapis.com", * "metadata": { * "service": "storage.googleapis.com", * "method": "google.storage.v1.Storage.GetObject", * "email": "user@123.iam.gserviceaccount.com" * } * } * * Generated from protobuf enum ACCOUNT_STATE_INVALID = 18; */ const ACCOUNT_STATE_INVALID = 18; /** * The request is denied because the type of the provided access token is not * supported by the API being called. * Example of an ErrorInfo when the request is to the Cloud Storage API with * an unsupported token type. * { "reason": "ACCESS_TOKEN_TYPE_UNSUPPORTED", * "domain": "googleapis.com", * "metadata": { * "service": "storage.googleapis.com", * "method": "google.storage.v1.Storage.GetObject" * } * } * * Generated from protobuf enum ACCESS_TOKEN_TYPE_UNSUPPORTED = 19; */ const ACCESS_TOKEN_TYPE_UNSUPPORTED = 19; /** * The request is denied because the request doesn't have any authentication * credentials. For more information regarding the supported authentication * strategies for Google Cloud APIs, see * https://cloud.google.com/docs/authentication. * Example of an ErrorInfo when the request is to the Cloud Storage API * without any authentication credentials. * { "reason": "CREDENTIALS_MISSING", * "domain": "googleapis.com", * "metadata": { * "service": "storage.googleapis.com", * "method": "google.storage.v1.Storage.GetObject" * } * } * * Generated from protobuf enum CREDENTIALS_MISSING = 20; */ const CREDENTIALS_MISSING = 20; /** * The request is denied because the provided project owning the resource * which acts as the [API * consumer](https://cloud.google.com/apis/design/glossary#api_consumer) is * invalid. It may be in a bad format or empty. * Example of an ErrorInfo when the request is to the Cloud Functions API, * but the offered resource project in the request in a bad format which can't * perform the ListFunctions method. * { "reason": "RESOURCE_PROJECT_INVALID", * "domain": "googleapis.com", * "metadata": { * "service": "cloudfunctions.googleapis.com", * "method": * "google.cloud.functions.v1.CloudFunctionsService.ListFunctions" * } * } * * Generated from protobuf enum RESOURCE_PROJECT_INVALID = 21; */ const RESOURCE_PROJECT_INVALID = 21; /** * The request is denied because the provided session cookie is missing, * invalid or failed to decode. * Example of an ErrorInfo when the request is calling Cloud Storage service * with a SID cookie which can't be decoded. * { "reason": "SESSION_COOKIE_INVALID", * "domain": "googleapis.com", * "metadata": { * "service": "storage.googleapis.com", * "method": "google.storage.v1.Storage.GetObject", * "cookie": "SID" * } * } * * Generated from protobuf enum SESSION_COOKIE_INVALID = 23; */ const SESSION_COOKIE_INVALID = 23; /** * The request is denied because the user is from a Google Workspace customer * that blocks their users from accessing a particular service. * Example scenario: https://support.google.com/a/answer/9197205?hl=en * Example of an ErrorInfo when access to Google Cloud Storage service is * blocked by the Google Workspace administrator: * { "reason": "USER_BLOCKED_BY_ADMIN", * "domain": "googleapis.com", * "metadata": { * "service": "storage.googleapis.com", * "method": "google.storage.v1.Storage.GetObject", * } * } * * Generated from protobuf enum USER_BLOCKED_BY_ADMIN = 24; */ const USER_BLOCKED_BY_ADMIN = 24; /** * The request is denied because the resource service usage is restricted * by administrators according to the organization policy constraint. * For more information see * https://cloud.google.com/resource-manager/docs/organization-policy/restricting-services. * Example of an ErrorInfo when access to Google Cloud Storage service is * restricted by Resource Usage Restriction policy: * { "reason": "RESOURCE_USAGE_RESTRICTION_VIOLATED", * "domain": "googleapis.com", * "metadata": { * "consumer": "projects/project-123", * "service": "storage.googleapis.com" * } * } * * Generated from protobuf enum RESOURCE_USAGE_RESTRICTION_VIOLATED = 25; */ const RESOURCE_USAGE_RESTRICTION_VIOLATED = 25; /** * Unimplemented. Do not use. * The request is denied because it contains unsupported system parameters in * URL query parameters or HTTP headers. For more information, * see https://cloud.google.com/apis/docs/system-parameters * Example of an ErrorInfo when access "pubsub.googleapis.com" service with * a request header of "x-goog-user-ip": * { "reason": "SYSTEM_PARAMETER_UNSUPPORTED", * "domain": "googleapis.com", * "metadata": { * "service": "pubsub.googleapis.com" * "parameter": "x-goog-user-ip" * } * } * * Generated from protobuf enum SYSTEM_PARAMETER_UNSUPPORTED = 26; */ const SYSTEM_PARAMETER_UNSUPPORTED = 26; /** * The request is denied because it violates Org Restriction: the requested * resource does not belong to allowed organizations specified in * "X-Goog-Allowed-Resources" header. * Example of an ErrorInfo when accessing a GCP resource that is restricted by * Org Restriction for "pubsub.googleapis.com" service. * { * reason: "ORG_RESTRICTION_VIOLATION" * domain: "googleapis.com" * metadata { * "consumer":"projects/123456" * "service": "pubsub.googleapis.com" * } * } * * Generated from protobuf enum ORG_RESTRICTION_VIOLATION = 27; */ const ORG_RESTRICTION_VIOLATION = 27; /** * The request is denied because "X-Goog-Allowed-Resources" header is in a bad * format. * Example of an ErrorInfo when * accessing "pubsub.googleapis.com" service with an invalid * "X-Goog-Allowed-Resources" request header. * { * reason: "ORG_RESTRICTION_HEADER_INVALID" * domain: "googleapis.com" * metadata { * "consumer":"projects/123456" * "service": "pubsub.googleapis.com" * } * } * * Generated from protobuf enum ORG_RESTRICTION_HEADER_INVALID = 28; */ const ORG_RESTRICTION_HEADER_INVALID = 28; /** * Unimplemented. Do not use. * The request is calling a service that is not visible to the consumer. * Example of an ErrorInfo when the consumer "projects/123" contacting * "pubsub.googleapis.com" service which is not visible to the consumer. * { "reason": "SERVICE_NOT_VISIBLE", * "domain": "googleapis.com", * "metadata": { * "consumer": "projects/123", * "service": "pubsub.googleapis.com" * } * } * This response indicates the "pubsub.googleapis.com" is not visible to * "projects/123" (or it may not exist). * * Generated from protobuf enum SERVICE_NOT_VISIBLE = 29; */ const SERVICE_NOT_VISIBLE = 29; /** * The request is related to a project for which GCP access is suspended. * Example of an ErrorInfo when the consumer "projects/123" fails to contact * "pubsub.googleapis.com" service because GCP access is suspended: * { "reason": "GCP_SUSPENDED", * "domain": "googleapis.com", * "metadata": { * "consumer": "projects/123", * "service": "pubsub.googleapis.com" * } * } * This response indicates the associated GCP account has been suspended. * * Generated from protobuf enum GCP_SUSPENDED = 30; */ const GCP_SUSPENDED = 30; /** * The request violates the location policies when creating resources in * the restricted region. * Example of an ErrorInfo when creating the Cloud Storage Bucket by * "projects/123" for service storage.googleapis.com: * { "reason": "LOCATION_POLICY_VIOLATED", * "domain": "googleapis.com", * "metadata": { * "consumer": "projects/123", * "service": "storage.googleapis.com", * } * } * This response indicates creating the Cloud Storage Bucket in * "locations/asia-northeast3" violates at least one location policy. * The troubleshooting guidance is provided in the Help links. * * Generated from protobuf enum LOCATION_POLICY_VIOLATED = 31; */ const LOCATION_POLICY_VIOLATED = 31; private static $valueToName = [ self::ERROR_REASON_UNSPECIFIED => 'ERROR_REASON_UNSPECIFIED', self::SERVICE_DISABLED => 'SERVICE_DISABLED', self::BILLING_DISABLED => 'BILLING_DISABLED', self::API_KEY_INVALID => 'API_KEY_INVALID', self::API_KEY_SERVICE_BLOCKED => 'API_KEY_SERVICE_BLOCKED', self::API_KEY_HTTP_REFERRER_BLOCKED => 'API_KEY_HTTP_REFERRER_BLOCKED', self::API_KEY_IP_ADDRESS_BLOCKED => 'API_KEY_IP_ADDRESS_BLOCKED', self::API_KEY_ANDROID_APP_BLOCKED => 'API_KEY_ANDROID_APP_BLOCKED', self::API_KEY_IOS_APP_BLOCKED => 'API_KEY_IOS_APP_BLOCKED', self::RATE_LIMIT_EXCEEDED => 'RATE_LIMIT_EXCEEDED', self::RESOURCE_QUOTA_EXCEEDED => 'RESOURCE_QUOTA_EXCEEDED', self::LOCATION_TAX_POLICY_VIOLATED => 'LOCATION_TAX_POLICY_VIOLATED', self::USER_PROJECT_DENIED => 'USER_PROJECT_DENIED', self::CONSUMER_SUSPENDED => 'CONSUMER_SUSPENDED', self::CONSUMER_INVALID => 'CONSUMER_INVALID', self::SECURITY_POLICY_VIOLATED => 'SECURITY_POLICY_VIOLATED', self::ACCESS_TOKEN_EXPIRED => 'ACCESS_TOKEN_EXPIRED', self::ACCESS_TOKEN_SCOPE_INSUFFICIENT => 'ACCESS_TOKEN_SCOPE_INSUFFICIENT', self::ACCOUNT_STATE_INVALID => 'ACCOUNT_STATE_INVALID', self::ACCESS_TOKEN_TYPE_UNSUPPORTED => 'ACCESS_TOKEN_TYPE_UNSUPPORTED', self::CREDENTIALS_MISSING => 'CREDENTIALS_MISSING', self::RESOURCE_PROJECT_INVALID => 'RESOURCE_PROJECT_INVALID', self::SESSION_COOKIE_INVALID => 'SESSION_COOKIE_INVALID', self::USER_BLOCKED_BY_ADMIN => 'USER_BLOCKED_BY_ADMIN', self::RESOURCE_USAGE_RESTRICTION_VIOLATED => 'RESOURCE_USAGE_RESTRICTION_VIOLATED', self::SYSTEM_PARAMETER_UNSUPPORTED => 'SYSTEM_PARAMETER_UNSUPPORTED', self::ORG_RESTRICTION_VIOLATION => 'ORG_RESTRICTION_VIOLATION', self::ORG_RESTRICTION_HEADER_INVALID => 'ORG_RESTRICTION_HEADER_INVALID', self::SERVICE_NOT_VISIBLE => 'SERVICE_NOT_VISIBLE', self::GCP_SUSPENDED => 'GCP_SUSPENDED', self::LOCATION_POLICY_VIOLATED => 'LOCATION_POLICY_VIOLATED', ]; 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/FieldBehavior.php000064400000011621151742741400011266 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; /** * Denotes that a (repeated) field is an unordered list. * This indicates that the service may provide the elements of the list * in any arbitrary order, rather than the order the user originally * provided. Additionally, the list's order may or may not be stable. * * Generated from protobuf enum UNORDERED_LIST = 6; */ const UNORDERED_LIST = 6; /** * Denotes that this field returns a non-empty default value if not set. * This indicates that if the user provides the empty value in a request, * a non-empty value will be returned. The user will not be aware of what * non-empty value to expect. * * Generated from protobuf enum NON_EMPTY_DEFAULT = 7; */ const NON_EMPTY_DEFAULT = 7; /** * Denotes that the field in a resource (a message annotated with * google.api.resource) is used in the resource name to uniquely identify the * resource. For AIP-compliant APIs, this should only be applied to the * `name` field on the resource. * This behavior should not be applied to references to other resources within * the message. * The identifier field of resources often have different field behavior * depending on the request it is embedded in (e.g. for Create methods name * is optional and unused, while for Update methods it is required). Instead * of method-specific annotations, only `IDENTIFIER` is required. * * Generated from protobuf enum IDENTIFIER = 8; */ const IDENTIFIER = 8; 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', self::UNORDERED_LIST => 'UNORDERED_LIST', self::NON_EMPTY_DEFAULT => 'NON_EMPTY_DEFAULT', self::IDENTIFIER => 'IDENTIFIER', ]; 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/FieldInfo.php000064400000010065151742741400010423 0ustar00google.api.FieldInfo */ class FieldInfo extends \Google\Protobuf\Internal\Message { /** * The standard format of a field value. This does not explicitly configure * any API consumer, just documents the API's format for the field it is * applied to. * * Generated from protobuf field .google.api.FieldInfo.Format format = 1; */ protected $format = 0; /** * The type(s) that the annotated, generic field may represent. * Currently, this must only be used on fields of type `google.protobuf.Any`. * Supporting other generic types may be considered in the future. * * Generated from protobuf field repeated .google.api.TypeReference referenced_types = 2; */ private $referenced_types; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int $format * The standard format of a field value. This does not explicitly configure * any API consumer, just documents the API's format for the field it is * applied to. * @type array<\Google\Api\TypeReference>|\Google\Protobuf\Internal\RepeatedField $referenced_types * The type(s) that the annotated, generic field may represent. * Currently, this must only be used on fields of type `google.protobuf.Any`. * Supporting other generic types may be considered in the future. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\FieldInfo::initOnce(); parent::__construct($data); } /** * The standard format of a field value. This does not explicitly configure * any API consumer, just documents the API's format for the field it is * applied to. * * Generated from protobuf field .google.api.FieldInfo.Format format = 1; * @return int */ public function getFormat() { return $this->format; } /** * The standard format of a field value. This does not explicitly configure * any API consumer, just documents the API's format for the field it is * applied to. * * Generated from protobuf field .google.api.FieldInfo.Format format = 1; * @param int $var * @return $this */ public function setFormat($var) { GPBUtil::checkEnum($var, \Google\Api\FieldInfo\Format::class); $this->format = $var; return $this; } /** * The type(s) that the annotated, generic field may represent. * Currently, this must only be used on fields of type `google.protobuf.Any`. * Supporting other generic types may be considered in the future. * * Generated from protobuf field repeated .google.api.TypeReference referenced_types = 2; * @return \Google\Protobuf\Internal\RepeatedField */ public function getReferencedTypes() { return $this->referenced_types; } /** * The type(s) that the annotated, generic field may represent. * Currently, this must only be used on fields of type `google.protobuf.Any`. * Supporting other generic types may be considered in the future. * * Generated from protobuf field repeated .google.api.TypeReference referenced_types = 2; * @param array<\Google\Api\TypeReference>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setReferencedTypes($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\TypeReference::class); $this->referenced_types = $arr; return $this; } } src/Api/FieldInfo/Format.php000064400000005671151742741400011662 0ustar00google.api.FieldInfo.Format */ class Format { /** * Default, unspecified value. * * Generated from protobuf enum FORMAT_UNSPECIFIED = 0; */ const FORMAT_UNSPECIFIED = 0; /** * Universally Unique Identifier, version 4, value as defined by * https://datatracker.ietf.org/doc/html/rfc4122. The value may be * normalized to entirely lowercase letters. For example, the value * `F47AC10B-58CC-0372-8567-0E02B2C3D479` would be normalized to * `f47ac10b-58cc-0372-8567-0e02b2c3d479`. * * Generated from protobuf enum UUID4 = 1; */ const UUID4 = 1; /** * Internet Protocol v4 value as defined by [RFC * 791](https://datatracker.ietf.org/doc/html/rfc791). The value may be * condensed, with leading zeros in each octet stripped. For example, * `001.022.233.040` would be condensed to `1.22.233.40`. * * Generated from protobuf enum IPV4 = 2; */ const IPV4 = 2; /** * Internet Protocol v6 value as defined by [RFC * 2460](https://datatracker.ietf.org/doc/html/rfc2460). The value may be * normalized to entirely lowercase letters with zeros compressed, following * [RFC 5952](https://datatracker.ietf.org/doc/html/rfc5952). For example, * the value `2001:0DB8:0::0` would be normalized to `2001:db8::`. * * Generated from protobuf enum IPV6 = 3; */ const IPV6 = 3; /** * An IP address in either v4 or v6 format as described by the individual * values defined herein. See the comments on the IPV4 and IPV6 types for * allowed normalizations of each. * * Generated from protobuf enum IPV4_OR_IPV6 = 4; */ const IPV4_OR_IPV6 = 4; private static $valueToName = [ self::FORMAT_UNSPECIFIED => 'FORMAT_UNSPECIFIED', self::UUID4 => 'UUID4', self::IPV4 => 'IPV4', self::IPV6 => 'IPV6', self::IPV4_OR_IPV6 => 'IPV4_OR_IPV6', ]; 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/FieldPolicy.php000064400000014761151742741400010776 0ustar00google.api.FieldPolicy */ class FieldPolicy extends \Google\Protobuf\Internal\Message { /** * Selects one or more request or response message fields to apply this * `FieldPolicy`. * When a `FieldPolicy` is used in proto annotation, the selector must * be left as empty. The service config generator will automatically fill * the correct value. * When a `FieldPolicy` is used in service config, the selector must be a * comma-separated string with valid request or response field paths, * such as "foo.bar" or "foo.bar,foo.baz". * * Generated from protobuf field string selector = 1; */ protected $selector = ''; /** * Specifies the required permission(s) for the resource referred to by the * field. It requires the field contains a valid resource reference, and * the request must pass the permission checks to proceed. For example, * "resourcemanager.projects.get". * * Generated from protobuf field string resource_permission = 2; */ protected $resource_permission = ''; /** * Specifies the resource type for the resource referred to by the field. * * Generated from protobuf field string resource_type = 3; */ protected $resource_type = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $selector * Selects one or more request or response message fields to apply this * `FieldPolicy`. * When a `FieldPolicy` is used in proto annotation, the selector must * be left as empty. The service config generator will automatically fill * the correct value. * When a `FieldPolicy` is used in service config, the selector must be a * comma-separated string with valid request or response field paths, * such as "foo.bar" or "foo.bar,foo.baz". * @type string $resource_permission * Specifies the required permission(s) for the resource referred to by the * field. It requires the field contains a valid resource reference, and * the request must pass the permission checks to proceed. For example, * "resourcemanager.projects.get". * @type string $resource_type * Specifies the resource type for the resource referred to by the field. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Policy::initOnce(); parent::__construct($data); } /** * Selects one or more request or response message fields to apply this * `FieldPolicy`. * When a `FieldPolicy` is used in proto annotation, the selector must * be left as empty. The service config generator will automatically fill * the correct value. * When a `FieldPolicy` is used in service config, the selector must be a * comma-separated string with valid request or response field paths, * such as "foo.bar" or "foo.bar,foo.baz". * * Generated from protobuf field string selector = 1; * @return string */ public function getSelector() { return $this->selector; } /** * Selects one or more request or response message fields to apply this * `FieldPolicy`. * When a `FieldPolicy` is used in proto annotation, the selector must * be left as empty. The service config generator will automatically fill * the correct value. * When a `FieldPolicy` is used in service config, the selector must be a * comma-separated string with valid request or response field paths, * such as "foo.bar" or "foo.bar,foo.baz". * * 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; } /** * Specifies the required permission(s) for the resource referred to by the * field. It requires the field contains a valid resource reference, and * the request must pass the permission checks to proceed. For example, * "resourcemanager.projects.get". * * Generated from protobuf field string resource_permission = 2; * @return string */ public function getResourcePermission() { return $this->resource_permission; } /** * Specifies the required permission(s) for the resource referred to by the * field. It requires the field contains a valid resource reference, and * the request must pass the permission checks to proceed. For example, * "resourcemanager.projects.get". * * Generated from protobuf field string resource_permission = 2; * @param string $var * @return $this */ public function setResourcePermission($var) { GPBUtil::checkString($var, True); $this->resource_permission = $var; return $this; } /** * Specifies the resource type for the resource referred to by the field. * * Generated from protobuf field string resource_type = 3; * @return string */ public function getResourceType() { return $this->resource_type; } /** * Specifies the resource type for the resource referred to by the field. * * Generated from protobuf field string resource_type = 3; * @param string $var * @return $this */ public function setResourceType($var) { GPBUtil::checkString($var, True); $this->resource_type = $var; return $this; } } src/Api/GoSettings.php000064400000003424151742741400010653 0ustar00google.api.GoSettings */ class GoSettings extends \Google\Protobuf\Internal\Message { /** * Some settings. * * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; */ protected $common = null; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Google\Api\CommonLanguageSettings $common * Some settings. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Client::initOnce(); parent::__construct($data); } /** * Some settings. * * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; * @return \Google\Api\CommonLanguageSettings|null */ public function getCommon() { return $this->common; } public function hasCommon() { return isset($this->common); } public function clearCommon() { unset($this->common); } /** * Some settings. * * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; * @param \Google\Api\CommonLanguageSettings $var * @return $this */ public function setCommon($var) { GPBUtil::checkMessage($var, \Google\Api\CommonLanguageSettings::class); $this->common = $var; return $this; } } src/Api/Http.php000064400000010570151742741400007504 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 parameters 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; */ protected $fully_decode_reserved_expansion = false; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type array<\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 parameters 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 array<\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 parameters 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 parameters 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.php000064400000012263151742741400010323 0ustar00google.api.HttpBody */ class HttpBody extends \Google\Protobuf\Internal\Message { /** * The HTTP Content-Type header value specifying the content type of the body. * * Generated from protobuf field string content_type = 1; */ protected $content_type = ''; /** * The HTTP request/response body as raw binary. * * Generated from protobuf field bytes data = 2; */ protected $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 header value specifying the content type of the body. * @type string $data * The HTTP request/response body as raw binary. * @type array<\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 header value specifying 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 header value specifying 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; } /** * The HTTP request/response body as raw binary. * * Generated from protobuf field bytes data = 2; * @return string */ public function getData() { return $this->data; } /** * The HTTP request/response body as raw binary. * * 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 array<\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.php000064400000057673151742741400010353 0ustar00google.api.HttpRule */ class HttpRule extends \Google\Protobuf\Internal\Message { /** * Selects a method to which this rule applies. * Refer to [selector][google.api.DocumentationRule.selector] for syntax * details. * * Generated from protobuf field string selector = 1; */ protected $selector = ''; /** * The name of the request field whose value is mapped to the HTTP request * body, or `*` for mapping all request fields not captured by the path * pattern to the HTTP body, or omitted for not having any HTTP request body. * NOTE: the referred field must be present at the top-level of the request * message type. * * Generated from protobuf field string body = 7; */ protected $body = ''; /** * Optional. The name of the response field whose value is mapped to the HTTP * response body. When omitted, the entire response message will be used * as the HTTP response body. * NOTE: The referred field must be present at the top-level of the response * message type. * * Generated from protobuf field string response_body = 12; */ protected $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 a method to which this rule applies. * Refer to [selector][google.api.DocumentationRule.selector] for syntax * details. * @type string $get * Maps to HTTP GET. Used for listing and getting information about * resources. * @type string $put * Maps to HTTP PUT. Used for replacing a resource. * @type string $post * Maps to HTTP POST. Used for creating a resource or performing an action. * @type string $delete * Maps to HTTP DELETE. Used for deleting a resource. * @type string $patch * Maps to HTTP 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 request * body, or `*` for mapping all request fields not captured by the path * pattern to the HTTP body, or omitted for not having any HTTP request body. * NOTE: the referred field must be present at the top-level of the request * message type. * @type string $response_body * Optional. The name of the response field whose value is mapped to the HTTP * response body. When omitted, the entire response message will be used * as the HTTP response body. * NOTE: The referred field must be present at the top-level of the response * message type. * @type array<\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 a method 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 a method 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; } /** * Maps to HTTP GET. Used for listing and getting information about * resources. * * Generated from protobuf field string get = 2; * @return string */ public function getGet() { return $this->readOneof(2); } public function hasGet() { return $this->hasOneof(2); } /** * Maps to HTTP GET. 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; } /** * Maps to HTTP PUT. Used for replacing a resource. * * Generated from protobuf field string put = 3; * @return string */ public function getPut() { return $this->readOneof(3); } public function hasPut() { return $this->hasOneof(3); } /** * Maps to HTTP PUT. Used for replacing 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; } /** * Maps to HTTP POST. Used for creating a resource or performing an action. * * Generated from protobuf field string post = 4; * @return string */ public function getPost() { return $this->readOneof(4); } public function hasPost() { return $this->hasOneof(4); } /** * Maps to HTTP POST. Used for creating a resource or performing an action. * * 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; } /** * Maps to HTTP DELETE. Used for deleting a resource. * * Generated from protobuf field string delete = 5; * @return string */ public function getDelete() { return $this->readOneof(5); } public function hasDelete() { return $this->hasOneof(5); } /** * Maps to HTTP DELETE. 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; } /** * Maps to HTTP PATCH. Used for updating a resource. * * Generated from protobuf field string patch = 6; * @return string */ public function getPatch() { return $this->readOneof(6); } public function hasPatch() { return $this->hasOneof(6); } /** * Maps to HTTP PATCH. 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|null */ public function getCustom() { return $this->readOneof(8); } public function hasCustom() { return $this->hasOneof(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 request * body, or `*` for mapping all request fields not captured by the path * pattern to the HTTP body, or omitted for not having any HTTP request body. * NOTE: the referred field must be present at the top-level of the 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 request * body, or `*` for mapping all request fields not captured by the path * pattern to the HTTP body, or omitted for not having any HTTP request body. * NOTE: the referred field must be present at the top-level of the 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 * response body. When omitted, the entire response message will be used * as the HTTP response body. * NOTE: The referred field must be present at the top-level of the response * message type. * * 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 * response body. When omitted, the entire response message will be used * as the HTTP response body. * NOTE: The referred field must be present at the top-level of the response * message type. * * 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 array<\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/JavaSettings.php000064400000017461151742741400011175 0ustar00google.api.JavaSettings */ class JavaSettings extends \Google\Protobuf\Internal\Message { /** * The package name to use in Java. Clobbers the java_package option * set in the protobuf. This should be used **only** by APIs * who have already set the language_settings.java.package_name" field * in gapic.yaml. API teams should use the protobuf java_package option * where possible. * Example of a YAML configuration:: * publishing: * java_settings: * library_package: com.google.cloud.pubsub.v1 * * Generated from protobuf field string library_package = 1; */ protected $library_package = ''; /** * Configure the Java class name to use instead of the service's for its * corresponding generated GAPIC client. Keys are fully-qualified * service names as they appear in the protobuf (including the full * the language_settings.java.interface_names" field in gapic.yaml. API * teams should otherwise use the service name as it appears in the * protobuf. * Example of a YAML configuration:: * publishing: * java_settings: * service_class_names: * - google.pubsub.v1.Publisher: TopicAdmin * - google.pubsub.v1.Subscriber: SubscriptionAdmin * * Generated from protobuf field map service_class_names = 2; */ private $service_class_names; /** * Some settings. * * Generated from protobuf field .google.api.CommonLanguageSettings common = 3; */ protected $common = null; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $library_package * The package name to use in Java. Clobbers the java_package option * set in the protobuf. This should be used **only** by APIs * who have already set the language_settings.java.package_name" field * in gapic.yaml. API teams should use the protobuf java_package option * where possible. * Example of a YAML configuration:: * publishing: * java_settings: * library_package: com.google.cloud.pubsub.v1 * @type array|\Google\Protobuf\Internal\MapField $service_class_names * Configure the Java class name to use instead of the service's for its * corresponding generated GAPIC client. Keys are fully-qualified * service names as they appear in the protobuf (including the full * the language_settings.java.interface_names" field in gapic.yaml. API * teams should otherwise use the service name as it appears in the * protobuf. * Example of a YAML configuration:: * publishing: * java_settings: * service_class_names: * - google.pubsub.v1.Publisher: TopicAdmin * - google.pubsub.v1.Subscriber: SubscriptionAdmin * @type \Google\Api\CommonLanguageSettings $common * Some settings. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Client::initOnce(); parent::__construct($data); } /** * The package name to use in Java. Clobbers the java_package option * set in the protobuf. This should be used **only** by APIs * who have already set the language_settings.java.package_name" field * in gapic.yaml. API teams should use the protobuf java_package option * where possible. * Example of a YAML configuration:: * publishing: * java_settings: * library_package: com.google.cloud.pubsub.v1 * * Generated from protobuf field string library_package = 1; * @return string */ public function getLibraryPackage() { return $this->library_package; } /** * The package name to use in Java. Clobbers the java_package option * set in the protobuf. This should be used **only** by APIs * who have already set the language_settings.java.package_name" field * in gapic.yaml. API teams should use the protobuf java_package option * where possible. * Example of a YAML configuration:: * publishing: * java_settings: * library_package: com.google.cloud.pubsub.v1 * * Generated from protobuf field string library_package = 1; * @param string $var * @return $this */ public function setLibraryPackage($var) { GPBUtil::checkString($var, True); $this->library_package = $var; return $this; } /** * Configure the Java class name to use instead of the service's for its * corresponding generated GAPIC client. Keys are fully-qualified * service names as they appear in the protobuf (including the full * the language_settings.java.interface_names" field in gapic.yaml. API * teams should otherwise use the service name as it appears in the * protobuf. * Example of a YAML configuration:: * publishing: * java_settings: * service_class_names: * - google.pubsub.v1.Publisher: TopicAdmin * - google.pubsub.v1.Subscriber: SubscriptionAdmin * * Generated from protobuf field map service_class_names = 2; * @return \Google\Protobuf\Internal\MapField */ public function getServiceClassNames() { return $this->service_class_names; } /** * Configure the Java class name to use instead of the service's for its * corresponding generated GAPIC client. Keys are fully-qualified * service names as they appear in the protobuf (including the full * the language_settings.java.interface_names" field in gapic.yaml. API * teams should otherwise use the service name as it appears in the * protobuf. * Example of a YAML configuration:: * publishing: * java_settings: * service_class_names: * - google.pubsub.v1.Publisher: TopicAdmin * - google.pubsub.v1.Subscriber: SubscriptionAdmin * * Generated from protobuf field map service_class_names = 2; * @param array|\Google\Protobuf\Internal\MapField $var * @return $this */ public function setServiceClassNames($var) { $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); $this->service_class_names = $arr; return $this; } /** * Some settings. * * Generated from protobuf field .google.api.CommonLanguageSettings common = 3; * @return \Google\Api\CommonLanguageSettings|null */ public function getCommon() { return $this->common; } public function hasCommon() { return isset($this->common); } public function clearCommon() { unset($this->common); } /** * Some settings. * * Generated from protobuf field .google.api.CommonLanguageSettings common = 3; * @param \Google\Api\CommonLanguageSettings $var * @return $this */ public function setCommon($var) { GPBUtil::checkMessage($var, \Google\Api\CommonLanguageSettings::class); $this->common = $var; return $this; } } src/Api/JwtLocation.php000064400000013204151742741400011017 0ustar00google.api.JwtLocation */ class JwtLocation extends \Google\Protobuf\Internal\Message { /** * The value prefix. The value format is "value_prefix{token}" * Only applies to "in" header type. Must be empty for "in" query type. * If not empty, the header value has to match (case sensitive) this prefix. * If not matched, JWT will not be extracted. If matched, JWT will be * extracted after the prefix is removed. * For example, for "Authorization: Bearer {JWT}", * value_prefix="Bearer " with a space at the end. * * Generated from protobuf field string value_prefix = 3; */ protected $value_prefix = ''; protected $in; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $header * Specifies HTTP header name to extract JWT token. * @type string $query * Specifies URL query parameter name to extract JWT token. * @type string $cookie * Specifies cookie name to extract JWT token. * @type string $value_prefix * The value prefix. The value format is "value_prefix{token}" * Only applies to "in" header type. Must be empty for "in" query type. * If not empty, the header value has to match (case sensitive) this prefix. * If not matched, JWT will not be extracted. If matched, JWT will be * extracted after the prefix is removed. * For example, for "Authorization: Bearer {JWT}", * value_prefix="Bearer " with a space at the end. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Auth::initOnce(); parent::__construct($data); } /** * Specifies HTTP header name to extract JWT token. * * Generated from protobuf field string header = 1; * @return string */ public function getHeader() { return $this->readOneof(1); } public function hasHeader() { return $this->hasOneof(1); } /** * Specifies HTTP header name to extract JWT token. * * Generated from protobuf field string header = 1; * @param string $var * @return $this */ public function setHeader($var) { GPBUtil::checkString($var, True); $this->writeOneof(1, $var); return $this; } /** * Specifies URL query parameter name to extract JWT token. * * Generated from protobuf field string query = 2; * @return string */ public function getQuery() { return $this->readOneof(2); } public function hasQuery() { return $this->hasOneof(2); } /** * Specifies URL query parameter name to extract JWT token. * * Generated from protobuf field string query = 2; * @param string $var * @return $this */ public function setQuery($var) { GPBUtil::checkString($var, True); $this->writeOneof(2, $var); return $this; } /** * Specifies cookie name to extract JWT token. * * Generated from protobuf field string cookie = 4; * @return string */ public function getCookie() { return $this->readOneof(4); } public function hasCookie() { return $this->hasOneof(4); } /** * Specifies cookie name to extract JWT token. * * Generated from protobuf field string cookie = 4; * @param string $var * @return $this */ public function setCookie($var) { GPBUtil::checkString($var, True); $this->writeOneof(4, $var); return $this; } /** * The value prefix. The value format is "value_prefix{token}" * Only applies to "in" header type. Must be empty for "in" query type. * If not empty, the header value has to match (case sensitive) this prefix. * If not matched, JWT will not be extracted. If matched, JWT will be * extracted after the prefix is removed. * For example, for "Authorization: Bearer {JWT}", * value_prefix="Bearer " with a space at the end. * * Generated from protobuf field string value_prefix = 3; * @return string */ public function getValuePrefix() { return $this->value_prefix; } /** * The value prefix. The value format is "value_prefix{token}" * Only applies to "in" header type. Must be empty for "in" query type. * If not empty, the header value has to match (case sensitive) this prefix. * If not matched, JWT will not be extracted. If matched, JWT will be * extracted after the prefix is removed. * For example, for "Authorization: Bearer {JWT}", * value_prefix="Bearer " with a space at the end. * * Generated from protobuf field string value_prefix = 3; * @param string $var * @return $this */ public function setValuePrefix($var) { GPBUtil::checkString($var, True); $this->value_prefix = $var; return $this; } /** * @return string */ public function getIn() { return $this->whichOneof("in"); } } src/Api/LabelDescriptor.php000064400000006371151742741400011647 0ustar00google.api.LabelDescriptor */ class LabelDescriptor extends \Google\Protobuf\Internal\Message { /** * The label key. * * Generated from protobuf field string key = 1; */ protected $key = ''; /** * The type of data that can be assigned to the label. * * Generated from protobuf field .google.api.LabelDescriptor.ValueType value_type = 2; */ protected $value_type = 0; /** * A human-readable description for the label. * * Generated from protobuf field string description = 3; */ protected $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.php000064400000002744151742741400013565 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); } } src/Api/LaunchStage.php000064400000010253151742741400010761 0ustar00google.api.LaunchStage */ class LaunchStage { /** * Do not use this default value. * * Generated from protobuf enum LAUNCH_STAGE_UNSPECIFIED = 0; */ const LAUNCH_STAGE_UNSPECIFIED = 0; /** * The feature is not yet implemented. Users can not use it. * * Generated from protobuf enum UNIMPLEMENTED = 6; */ const UNIMPLEMENTED = 6; /** * Prelaunch features are hidden from users and are only visible internally. * * Generated from protobuf enum PRELAUNCH = 7; */ const PRELAUNCH = 7; /** * 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 allowlisted. 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::UNIMPLEMENTED => 'UNIMPLEMENTED', self::PRELAUNCH => 'PRELAUNCH', 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.php000064400000015210151742741400011341 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; */ protected $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; */ protected $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; */ protected $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 array<\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 array<\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.php000064400000013724151742741400010157 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 array<\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 array<\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 array<\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 array<\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.php000064400000010122151742741400013734 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; */ protected $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 array|\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 array|\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; } } src/Api/MethodPolicy.php000064400000010130151742741400011155 0ustar00google.api.MethodPolicy */ class MethodPolicy extends \Google\Protobuf\Internal\Message { /** * Selects a method to which these policies should be enforced, for example, * "google.pubsub.v1.Subscriber.CreateSubscription". * Refer to [selector][google.api.DocumentationRule.selector] for syntax * details. * NOTE: This field must not be set in the proto annotation. It will be * automatically filled by the service config compiler . * * Generated from protobuf field string selector = 9; */ protected $selector = ''; /** * Policies that are applicable to the request message. * * Generated from protobuf field repeated .google.api.FieldPolicy request_policies = 2; */ private $request_policies; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $selector * Selects a method to which these policies should be enforced, for example, * "google.pubsub.v1.Subscriber.CreateSubscription". * Refer to [selector][google.api.DocumentationRule.selector] for syntax * details. * NOTE: This field must not be set in the proto annotation. It will be * automatically filled by the service config compiler . * @type array<\Google\Api\FieldPolicy>|\Google\Protobuf\Internal\RepeatedField $request_policies * Policies that are applicable to the request message. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Policy::initOnce(); parent::__construct($data); } /** * Selects a method to which these policies should be enforced, for example, * "google.pubsub.v1.Subscriber.CreateSubscription". * Refer to [selector][google.api.DocumentationRule.selector] for syntax * details. * NOTE: This field must not be set in the proto annotation. It will be * automatically filled by the service config compiler . * * Generated from protobuf field string selector = 9; * @return string */ public function getSelector() { return $this->selector; } /** * Selects a method to which these policies should be enforced, for example, * "google.pubsub.v1.Subscriber.CreateSubscription". * Refer to [selector][google.api.DocumentationRule.selector] for syntax * details. * NOTE: This field must not be set in the proto annotation. It will be * automatically filled by the service config compiler . * * Generated from protobuf field string selector = 9; * @param string $var * @return $this */ public function setSelector($var) { GPBUtil::checkString($var, True); $this->selector = $var; return $this; } /** * Policies that are applicable to the request message. * * Generated from protobuf field repeated .google.api.FieldPolicy request_policies = 2; * @return \Google\Protobuf\Internal\RepeatedField */ public function getRequestPolicies() { return $this->request_policies; } /** * Policies that are applicable to the request message. * * Generated from protobuf field repeated .google.api.FieldPolicy request_policies = 2; * @param array<\Google\Api\FieldPolicy>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setRequestPolicies($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\FieldPolicy::class); $this->request_policies = $arr; return $this; } } src/Api/MethodSettings.php000064400000021725151742741400011532 0ustar00google.api.MethodSettings */ class MethodSettings extends \Google\Protobuf\Internal\Message { /** * The fully qualified name of the method, for which the options below apply. * This is used to find the method to apply the options. * Example: * publishing: * method_settings: * - selector: google.storage.control.v2.StorageControl.CreateFolder * # method settings for CreateFolder... * * Generated from protobuf field string selector = 1; */ protected $selector = ''; /** * Describes settings to use for long-running operations when generating * API methods for RPCs. Complements RPCs that use the annotations in * google/longrunning/operations.proto. * Example of a YAML configuration:: * publishing: * method_settings: * - selector: google.cloud.speech.v2.Speech.BatchRecognize * long_running: * initial_poll_delay: 60s # 1 minute * poll_delay_multiplier: 1.5 * max_poll_delay: 360s # 6 minutes * total_poll_timeout: 54000s # 90 minutes * * Generated from protobuf field .google.api.MethodSettings.LongRunning long_running = 2; */ protected $long_running = null; /** * List of top-level fields of the request message, that should be * automatically populated by the client libraries based on their * (google.api.field_info).format. Currently supported format: UUID4. * Example of a YAML configuration: * publishing: * method_settings: * - selector: google.example.v1.ExampleService.CreateExample * auto_populated_fields: * - request_id * * Generated from protobuf field repeated string auto_populated_fields = 3; */ private $auto_populated_fields; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $selector * The fully qualified name of the method, for which the options below apply. * This is used to find the method to apply the options. * Example: * publishing: * method_settings: * - selector: google.storage.control.v2.StorageControl.CreateFolder * # method settings for CreateFolder... * @type \Google\Api\MethodSettings\LongRunning $long_running * Describes settings to use for long-running operations when generating * API methods for RPCs. Complements RPCs that use the annotations in * google/longrunning/operations.proto. * Example of a YAML configuration:: * publishing: * method_settings: * - selector: google.cloud.speech.v2.Speech.BatchRecognize * long_running: * initial_poll_delay: 60s # 1 minute * poll_delay_multiplier: 1.5 * max_poll_delay: 360s # 6 minutes * total_poll_timeout: 54000s # 90 minutes * @type array|\Google\Protobuf\Internal\RepeatedField $auto_populated_fields * List of top-level fields of the request message, that should be * automatically populated by the client libraries based on their * (google.api.field_info).format. Currently supported format: UUID4. * Example of a YAML configuration: * publishing: * method_settings: * - selector: google.example.v1.ExampleService.CreateExample * auto_populated_fields: * - request_id * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Client::initOnce(); parent::__construct($data); } /** * The fully qualified name of the method, for which the options below apply. * This is used to find the method to apply the options. * Example: * publishing: * method_settings: * - selector: google.storage.control.v2.StorageControl.CreateFolder * # method settings for CreateFolder... * * Generated from protobuf field string selector = 1; * @return string */ public function getSelector() { return $this->selector; } /** * The fully qualified name of the method, for which the options below apply. * This is used to find the method to apply the options. * Example: * publishing: * method_settings: * - selector: google.storage.control.v2.StorageControl.CreateFolder * # method settings for CreateFolder... * * 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; } /** * Describes settings to use for long-running operations when generating * API methods for RPCs. Complements RPCs that use the annotations in * google/longrunning/operations.proto. * Example of a YAML configuration:: * publishing: * method_settings: * - selector: google.cloud.speech.v2.Speech.BatchRecognize * long_running: * initial_poll_delay: 60s # 1 minute * poll_delay_multiplier: 1.5 * max_poll_delay: 360s # 6 minutes * total_poll_timeout: 54000s # 90 minutes * * Generated from protobuf field .google.api.MethodSettings.LongRunning long_running = 2; * @return \Google\Api\MethodSettings\LongRunning|null */ public function getLongRunning() { return $this->long_running; } public function hasLongRunning() { return isset($this->long_running); } public function clearLongRunning() { unset($this->long_running); } /** * Describes settings to use for long-running operations when generating * API methods for RPCs. Complements RPCs that use the annotations in * google/longrunning/operations.proto. * Example of a YAML configuration:: * publishing: * method_settings: * - selector: google.cloud.speech.v2.Speech.BatchRecognize * long_running: * initial_poll_delay: 60s # 1 minute * poll_delay_multiplier: 1.5 * max_poll_delay: 360s # 6 minutes * total_poll_timeout: 54000s # 90 minutes * * Generated from protobuf field .google.api.MethodSettings.LongRunning long_running = 2; * @param \Google\Api\MethodSettings\LongRunning $var * @return $this */ public function setLongRunning($var) { GPBUtil::checkMessage($var, \Google\Api\MethodSettings\LongRunning::class); $this->long_running = $var; return $this; } /** * List of top-level fields of the request message, that should be * automatically populated by the client libraries based on their * (google.api.field_info).format. Currently supported format: UUID4. * Example of a YAML configuration: * publishing: * method_settings: * - selector: google.example.v1.ExampleService.CreateExample * auto_populated_fields: * - request_id * * Generated from protobuf field repeated string auto_populated_fields = 3; * @return \Google\Protobuf\Internal\RepeatedField */ public function getAutoPopulatedFields() { return $this->auto_populated_fields; } /** * List of top-level fields of the request message, that should be * automatically populated by the client libraries based on their * (google.api.field_info).format. Currently supported format: UUID4. * Example of a YAML configuration: * publishing: * method_settings: * - selector: google.example.v1.ExampleService.CreateExample * auto_populated_fields: * - request_id * * Generated from protobuf field repeated string auto_populated_fields = 3; * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setAutoPopulatedFields($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); $this->auto_populated_fields = $arr; return $this; } } src/Api/MethodSettings/LongRunning.php000064400000015073151742741400013771 0ustar00google.api.MethodSettings.LongRunning */ class LongRunning extends \Google\Protobuf\Internal\Message { /** * Initial delay after which the first poll request will be made. * Default value: 5 seconds. * * Generated from protobuf field .google.protobuf.Duration initial_poll_delay = 1; */ protected $initial_poll_delay = null; /** * Multiplier to gradually increase delay between subsequent polls until it * reaches max_poll_delay. * Default value: 1.5. * * Generated from protobuf field float poll_delay_multiplier = 2; */ protected $poll_delay_multiplier = 0.0; /** * Maximum time between two subsequent poll requests. * Default value: 45 seconds. * * Generated from protobuf field .google.protobuf.Duration max_poll_delay = 3; */ protected $max_poll_delay = null; /** * Total polling timeout. * Default value: 5 minutes. * * Generated from protobuf field .google.protobuf.Duration total_poll_timeout = 4; */ protected $total_poll_timeout = null; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Google\Protobuf\Duration $initial_poll_delay * Initial delay after which the first poll request will be made. * Default value: 5 seconds. * @type float $poll_delay_multiplier * Multiplier to gradually increase delay between subsequent polls until it * reaches max_poll_delay. * Default value: 1.5. * @type \Google\Protobuf\Duration $max_poll_delay * Maximum time between two subsequent poll requests. * Default value: 45 seconds. * @type \Google\Protobuf\Duration $total_poll_timeout * Total polling timeout. * Default value: 5 minutes. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Client::initOnce(); parent::__construct($data); } /** * Initial delay after which the first poll request will be made. * Default value: 5 seconds. * * Generated from protobuf field .google.protobuf.Duration initial_poll_delay = 1; * @return \Google\Protobuf\Duration|null */ public function getInitialPollDelay() { return $this->initial_poll_delay; } public function hasInitialPollDelay() { return isset($this->initial_poll_delay); } public function clearInitialPollDelay() { unset($this->initial_poll_delay); } /** * Initial delay after which the first poll request will be made. * Default value: 5 seconds. * * Generated from protobuf field .google.protobuf.Duration initial_poll_delay = 1; * @param \Google\Protobuf\Duration $var * @return $this */ public function setInitialPollDelay($var) { GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); $this->initial_poll_delay = $var; return $this; } /** * Multiplier to gradually increase delay between subsequent polls until it * reaches max_poll_delay. * Default value: 1.5. * * Generated from protobuf field float poll_delay_multiplier = 2; * @return float */ public function getPollDelayMultiplier() { return $this->poll_delay_multiplier; } /** * Multiplier to gradually increase delay between subsequent polls until it * reaches max_poll_delay. * Default value: 1.5. * * Generated from protobuf field float poll_delay_multiplier = 2; * @param float $var * @return $this */ public function setPollDelayMultiplier($var) { GPBUtil::checkFloat($var); $this->poll_delay_multiplier = $var; return $this; } /** * Maximum time between two subsequent poll requests. * Default value: 45 seconds. * * Generated from protobuf field .google.protobuf.Duration max_poll_delay = 3; * @return \Google\Protobuf\Duration|null */ public function getMaxPollDelay() { return $this->max_poll_delay; } public function hasMaxPollDelay() { return isset($this->max_poll_delay); } public function clearMaxPollDelay() { unset($this->max_poll_delay); } /** * Maximum time between two subsequent poll requests. * Default value: 45 seconds. * * Generated from protobuf field .google.protobuf.Duration max_poll_delay = 3; * @param \Google\Protobuf\Duration $var * @return $this */ public function setMaxPollDelay($var) { GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); $this->max_poll_delay = $var; return $this; } /** * Total polling timeout. * Default value: 5 minutes. * * Generated from protobuf field .google.protobuf.Duration total_poll_timeout = 4; * @return \Google\Protobuf\Duration|null */ public function getTotalPollTimeout() { return $this->total_poll_timeout; } public function hasTotalPollTimeout() { return isset($this->total_poll_timeout); } public function clearTotalPollTimeout() { unset($this->total_poll_timeout); } /** * Total polling timeout. * Default value: 5 minutes. * * Generated from protobuf field .google.protobuf.Duration total_poll_timeout = 4; * @param \Google\Protobuf\Duration $var * @return $this */ public function setTotalPollTimeout($var) { GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); $this->total_poll_timeout = $var; return $this; } } src/Api/Metric.php000064400000006735151742741400010020 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; */ protected $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.php000064400000107036151742741400012053 0ustar00google.api.MetricDescriptor */ class MetricDescriptor extends \Google\Protobuf\Internal\Message { /** * The resource name of the metric descriptor. * * Generated from protobuf field string name = 1; */ protected $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; */ protected $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; */ protected $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; */ protected $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 might 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 might 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 custom 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](https://unitsofmeasure.org/ucum.html) standard: * **Basic units (UNIT)** * * `bit` bit * * `By` byte * * `s` second * * `min` minute * * `h` hour * * `d` day * * `1` dimensionless * **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; */ protected $unit = ''; /** * A detailed description of the metric, which can be used in documentation. * * Generated from protobuf field string description = 6; */ protected $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; */ protected $display_name = ''; /** * Optional. Metadata which can be used to guide usage of the metric. * * Generated from protobuf field .google.api.MetricDescriptor.MetricDescriptorMetadata metadata = 10; */ protected $metadata = null; /** * Optional. The launch stage of the metric definition. * * Generated from protobuf field .google.api.LaunchStage launch_stage = 12; */ protected $launch_stage = 0; /** * Read-only. If present, then a [time * series][google.monitoring.v3.TimeSeries], which is identified partially by * a metric type and a * [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor], that * is associated with this metric type can only be associated with one of the * monitored resource types listed here. * * Generated from protobuf field repeated string monitored_resource_types = 13; */ private $monitored_resource_types; /** * 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 array<\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 might 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 might 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 custom 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](https://unitsofmeasure.org/ucum.html) standard: * **Basic units (UNIT)** * * `bit` bit * * `By` byte * * `s` second * * `min` minute * * `h` hour * * `d` day * * `1` dimensionless * **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. * @type array|\Google\Protobuf\Internal\RepeatedField $monitored_resource_types * Read-only. If present, then a [time * series][google.monitoring.v3.TimeSeries], which is identified partially by * a metric type and a * [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor], that * is associated with this metric type can only be associated with one of the * monitored resource types listed here. * } */ 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 array<\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 might 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 might 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 custom 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](https://unitsofmeasure.org/ucum.html) standard: * **Basic units (UNIT)** * * `bit` bit * * `By` byte * * `s` second * * `min` minute * * `h` hour * * `d` day * * `1` dimensionless * **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 might 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 might 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 custom 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](https://unitsofmeasure.org/ucum.html) standard: * **Basic units (UNIT)** * * `bit` bit * * `By` byte * * `s` second * * `min` minute * * `h` hour * * `d` day * * `1` dimensionless * **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|null */ public function getMetadata() { return $this->metadata; } public function hasMetadata() { return isset($this->metadata); } public function clearMetadata() { unset($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; } /** * Read-only. If present, then a [time * series][google.monitoring.v3.TimeSeries], which is identified partially by * a metric type and a * [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor], that * is associated with this metric type can only be associated with one of the * monitored resource types listed here. * * Generated from protobuf field repeated string monitored_resource_types = 13; * @return \Google\Protobuf\Internal\RepeatedField */ public function getMonitoredResourceTypes() { return $this->monitored_resource_types; } /** * Read-only. If present, then a [time * series][google.monitoring.v3.TimeSeries], which is identified partially by * a metric type and a * [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor], that * is associated with this metric type can only be associated with one of the * monitored resource types listed here. * * Generated from protobuf field repeated string monitored_resource_types = 13; * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setMonitoredResourceTypes($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); $this->monitored_resource_types = $arr; return $this; } } src/Api/MetricDescriptor/MetricDescriptorMetadata.php000064400000014264151742741400016776 0ustar00google.api.MetricDescriptor.MetricDescriptorMetadata */ class MetricDescriptorMetadata extends \Google\Protobuf\Internal\Message { /** * Deprecated. Must use the * [MetricDescriptor.launch_stage][google.api.MetricDescriptor.launch_stage] * instead. * * Generated from protobuf field .google.api.LaunchStage launch_stage = 1 [deprecated = true]; * @deprecated */ protected $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; */ protected $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; */ protected $ingest_delay = null; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int $launch_stage * Deprecated. Must use the * [MetricDescriptor.launch_stage][google.api.MetricDescriptor.launch_stage] * instead. * @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. Must use the * [MetricDescriptor.launch_stage][google.api.MetricDescriptor.launch_stage] * instead. * * Generated from protobuf field .google.api.LaunchStage launch_stage = 1 [deprecated = true]; * @return int * @deprecated */ public function getLaunchStage() { @trigger_error('launch_stage is deprecated.', E_USER_DEPRECATED); return $this->launch_stage; } /** * Deprecated. Must use the * [MetricDescriptor.launch_stage][google.api.MetricDescriptor.launch_stage] * instead. * * Generated from protobuf field .google.api.LaunchStage launch_stage = 1 [deprecated = true]; * @param int $var * @return $this * @deprecated */ public function setLaunchStage($var) { @trigger_error('launch_stage is deprecated.', E_USER_DEPRECATED); 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|null */ public function getSamplePeriod() { return $this->sample_period; } public function hasSamplePeriod() { return isset($this->sample_period); } public function clearSamplePeriod() { unset($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|null */ public function getIngestDelay() { return $this->ingest_delay; } public function hasIngestDelay() { return isset($this->ingest_delay); } public function clearIngestDelay() { unset($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; } } src/Api/MetricDescriptor/MetricKind.php000064400000004232151742741400014076 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); } } src/Api/MetricDescriptor/ValueType.php000064400000004641151742741400013767 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); } } src/Api/MetricRule.php000064400000010243151742741400010635 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; */ protected $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.php000064400000013171151742741400012235 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`. Some descriptors include the service name in the type; for * example, the type of a Datastream stream is * `datastream.googleapis.com/Stream`. * * Generated from protobuf field string type = 1; */ protected $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`. Some descriptors include the service name in the type; for * example, the type of a Datastream stream is * `datastream.googleapis.com/Stream`. * @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`. Some descriptors include the service name in the type; for * example, the type of a Datastream stream is * `datastream.googleapis.com/Stream`. * * 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`. Some descriptors include the service name in the type; for * example, the type of a Datastream stream is * `datastream.googleapis.com/Stream`. * * 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.php000064400000026613151742741400014301 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; */ protected $name = ''; /** * Required. The monitored resource type. For example, the type * `"cloudsql_database"` represents databases in Google Cloud SQL. * For a list of types, see [Monitored resource * types](https://cloud.google.com/monitoring/api/resources) * and [Logging resource * types](https://cloud.google.com/logging/docs/api/v2/resource-list). * * Generated from protobuf field string type = 1; */ protected $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; */ protected $display_name = ''; /** * Optional. A detailed description of the monitored resource type that might * be used in documentation. * * Generated from protobuf field string description = 3; */ protected $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; /** * Optional. The launch stage of the monitored resource definition. * * Generated from protobuf field .google.api.LaunchStage launch_stage = 7; */ protected $launch_stage = 0; /** * 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. * For a list of types, see [Monitored resource * types](https://cloud.google.com/monitoring/api/resources) * and [Logging resource * types](https://cloud.google.com/logging/docs/api/v2/resource-list). * @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 array<\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"`. * @type int $launch_stage * Optional. The launch stage of the monitored resource definition. * } */ 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. * For a list of types, see [Monitored resource * types](https://cloud.google.com/monitoring/api/resources) * and [Logging resource * types](https://cloud.google.com/logging/docs/api/v2/resource-list). * * 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. * For a list of types, see [Monitored resource * types](https://cloud.google.com/monitoring/api/resources) * and [Logging resource * types](https://cloud.google.com/logging/docs/api/v2/resource-list). * * 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 array<\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; } /** * Optional. The launch stage of the monitored resource definition. * * Generated from protobuf field .google.api.LaunchStage launch_stage = 7; * @return int */ public function getLaunchStage() { return $this->launch_stage; } /** * Optional. The launch stage of the monitored resource definition. * * Generated from protobuf field .google.api.LaunchStage launch_stage = 7; * @param int $var * @return $this */ public function setLaunchStage($var) { GPBUtil::checkEnum($var, \Google\Api\LaunchStage::class); $this->launch_stage = $var; return $this; } } src/Api/MonitoredResourceMetadata.php000064400000012150151742741400013672 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, including * "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; */ protected $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, including * "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, including * "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|null */ public function getSystemLabels() { return $this->system_labels; } public function hasSystemLabels() { return isset($this->system_labels); } public function clearSystemLabels() { unset($this->system_labels); } /** * Output only. Values for predefined system metadata labels. * System labels are a kind of metadata extracted by Google, including * "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.php000064400000021032151742741400010705 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. A monitored resource type may * appear in multiple monitoring destinations if different aggregations are * needed for different sets of metrics associated with that monitored * resource type. A monitored resource and metric pair may only be used once * in the Monitoring configuration. * * 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. A monitored resource type may * appear in multiple monitoring destinations if different aggregations are * needed for different sets of metrics associated with that monitored * resource type. A monitored resource and metric pair may only be used once * in the Monitoring configuration. * * 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 array<\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. A monitored resource type may * appear in multiple monitoring destinations if different aggregations are * needed for different sets of metrics associated with that monitored * resource type. A monitored resource and metric pair may only be used once * in the Monitoring configuration. * @type array<\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. A monitored resource type may * appear in multiple monitoring destinations if different aggregations are * needed for different sets of metrics associated with that monitored * resource type. A monitored resource and metric pair may only be used once * in the Monitoring configuration. * } */ 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. A monitored resource type may * appear in multiple monitoring destinations if different aggregations are * needed for different sets of metrics associated with that monitored * resource type. A monitored resource and metric pair may only be used once * in the Monitoring configuration. * * 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. A monitored resource type may * appear in multiple monitoring destinations if different aggregations are * needed for different sets of metrics associated with that monitored * resource type. A monitored resource and metric pair may only be used once * in the Monitoring configuration. * * Generated from protobuf field repeated .google.api.Monitoring.MonitoringDestination producer_destinations = 1; * @param array<\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. A monitored resource type may * appear in multiple monitoring destinations if different aggregations are * needed for different sets of metrics associated with that monitored * resource type. A monitored resource and metric pair may only be used once * in the Monitoring configuration. * * 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. A monitored resource type may * appear in multiple monitoring destinations if different aggregations are * needed for different sets of metrics associated with that monitored * resource type. A monitored resource and metric pair may only be used once * in the Monitoring configuration. * * Generated from protobuf field repeated .google.api.Monitoring.MonitoringDestination consumer_destinations = 2; * @param array<\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.php000064400000007260151742741400015243 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; */ protected $monitored_resource = ''; /** * Types of the metrics to report to this monitoring destination. * Each type 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 array|\Google\Protobuf\Internal\RepeatedField $metrics * Types of the metrics to report to this monitoring destination. * Each type 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; } /** * Types of the metrics to report to this monitoring destination. * Each type 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; } /** * Types of the metrics to report to this monitoring destination. * Each type must be defined in * [Service.metrics][google.api.Service.metrics] section. * * Generated from protobuf field repeated string metrics = 2; * @param array|\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; } } src/Api/NodeSettings.php000064400000003432151742741400011172 0ustar00google.api.NodeSettings */ class NodeSettings extends \Google\Protobuf\Internal\Message { /** * Some settings. * * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; */ protected $common = null; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Google\Api\CommonLanguageSettings $common * Some settings. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Client::initOnce(); parent::__construct($data); } /** * Some settings. * * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; * @return \Google\Api\CommonLanguageSettings|null */ public function getCommon() { return $this->common; } public function hasCommon() { return isset($this->common); } public function clearCommon() { unset($this->common); } /** * Some settings. * * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; * @param \Google\Api\CommonLanguageSettings $var * @return $this */ public function setCommon($var) { GPBUtil::checkMessage($var, \Google\Api\CommonLanguageSettings::class); $this->common = $var; return $this; } } src/Api/OAuthRequirements.php000064400000007175151742741400012220 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; */ protected $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.php000064400000016100151742741400007434 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; */ protected $name = ''; /** * The Markdown content of the page. You can use (== include {path} * ==) to include content from a Markdown file. The content can be * used to produce the documentation page such as HTML format page. * * Generated from protobuf field string content = 2; */ protected $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. The content can be * used to produce the documentation page such as HTML format page. * @type array<\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. The content can be * used to produce the documentation page such as HTML format page. * * 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. The content can be * used to produce the documentation page such as HTML format page. * * 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 array<\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/PhpSettings.php000064400000003427151742741400011040 0ustar00google.api.PhpSettings */ class PhpSettings extends \Google\Protobuf\Internal\Message { /** * Some settings. * * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; */ protected $common = null; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Google\Api\CommonLanguageSettings $common * Some settings. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Client::initOnce(); parent::__construct($data); } /** * Some settings. * * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; * @return \Google\Api\CommonLanguageSettings|null */ public function getCommon() { return $this->common; } public function hasCommon() { return isset($this->common); } public function clearCommon() { unset($this->common); } /** * Some settings. * * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; * @param \Google\Api\CommonLanguageSettings $var * @return $this */ public function setCommon($var) { GPBUtil::checkMessage($var, \Google\Api\CommonLanguageSettings::class); $this->common = $var; return $this; } } src/Api/ProjectProperties.php000064400000005063151742741400012251 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 array<\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 array<\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.php000064400000007103151742741400010407 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; */ protected $name = ''; /** * The type of this property. * * Generated from protobuf field .google.api.Property.PropertyType type = 2; */ protected $type = 0; /** * The description of the property * * Generated from protobuf field string description = 3; */ protected $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.php000064400000003501151742741400013073 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); } } src/Api/Publishing.php000064400000036743151742741400010703 0ustar00google.api.Publishing */ class Publishing extends \Google\Protobuf\Internal\Message { /** * A list of API method settings, e.g. the behavior for methods that use the * long-running operation pattern. * * Generated from protobuf field repeated .google.api.MethodSettings method_settings = 2; */ private $method_settings; /** * Link to a *public* URI where users can report issues. Example: * https://issuetracker.google.com/issues/new?component=190865&template=1161103 * * Generated from protobuf field string new_issue_uri = 101; */ protected $new_issue_uri = ''; /** * Link to product home page. Example: * https://cloud.google.com/asset-inventory/docs/overview * * Generated from protobuf field string documentation_uri = 102; */ protected $documentation_uri = ''; /** * Used as a tracking tag when collecting data about the APIs developer * relations artifacts like docs, packages delivered to package managers, * etc. Example: "speech". * * Generated from protobuf field string api_short_name = 103; */ protected $api_short_name = ''; /** * GitHub label to apply to issues and pull requests opened for this API. * * Generated from protobuf field string github_label = 104; */ protected $github_label = ''; /** * GitHub teams to be added to CODEOWNERS in the directory in GitHub * containing source code for the client libraries for this API. * * Generated from protobuf field repeated string codeowner_github_teams = 105; */ private $codeowner_github_teams; /** * A prefix used in sample code when demarking regions to be included in * documentation. * * Generated from protobuf field string doc_tag_prefix = 106; */ protected $doc_tag_prefix = ''; /** * For whom the client library is being published. * * Generated from protobuf field .google.api.ClientLibraryOrganization organization = 107; */ protected $organization = 0; /** * Client library settings. If the same version string appears multiple * times in this list, then the last one wins. Settings from earlier * settings with the same version string are discarded. * * Generated from protobuf field repeated .google.api.ClientLibrarySettings library_settings = 109; */ private $library_settings; /** * Optional link to proto reference documentation. Example: * https://cloud.google.com/pubsub/lite/docs/reference/rpc * * Generated from protobuf field string proto_reference_documentation_uri = 110; */ protected $proto_reference_documentation_uri = ''; /** * Optional link to REST reference documentation. Example: * https://cloud.google.com/pubsub/lite/docs/reference/rest * * Generated from protobuf field string rest_reference_documentation_uri = 111; */ protected $rest_reference_documentation_uri = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type array<\Google\Api\MethodSettings>|\Google\Protobuf\Internal\RepeatedField $method_settings * A list of API method settings, e.g. the behavior for methods that use the * long-running operation pattern. * @type string $new_issue_uri * Link to a *public* URI where users can report issues. Example: * https://issuetracker.google.com/issues/new?component=190865&template=1161103 * @type string $documentation_uri * Link to product home page. Example: * https://cloud.google.com/asset-inventory/docs/overview * @type string $api_short_name * Used as a tracking tag when collecting data about the APIs developer * relations artifacts like docs, packages delivered to package managers, * etc. Example: "speech". * @type string $github_label * GitHub label to apply to issues and pull requests opened for this API. * @type array|\Google\Protobuf\Internal\RepeatedField $codeowner_github_teams * GitHub teams to be added to CODEOWNERS in the directory in GitHub * containing source code for the client libraries for this API. * @type string $doc_tag_prefix * A prefix used in sample code when demarking regions to be included in * documentation. * @type int $organization * For whom the client library is being published. * @type array<\Google\Api\ClientLibrarySettings>|\Google\Protobuf\Internal\RepeatedField $library_settings * Client library settings. If the same version string appears multiple * times in this list, then the last one wins. Settings from earlier * settings with the same version string are discarded. * @type string $proto_reference_documentation_uri * Optional link to proto reference documentation. Example: * https://cloud.google.com/pubsub/lite/docs/reference/rpc * @type string $rest_reference_documentation_uri * Optional link to REST reference documentation. Example: * https://cloud.google.com/pubsub/lite/docs/reference/rest * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Client::initOnce(); parent::__construct($data); } /** * A list of API method settings, e.g. the behavior for methods that use the * long-running operation pattern. * * Generated from protobuf field repeated .google.api.MethodSettings method_settings = 2; * @return \Google\Protobuf\Internal\RepeatedField */ public function getMethodSettings() { return $this->method_settings; } /** * A list of API method settings, e.g. the behavior for methods that use the * long-running operation pattern. * * Generated from protobuf field repeated .google.api.MethodSettings method_settings = 2; * @param array<\Google\Api\MethodSettings>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setMethodSettings($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\MethodSettings::class); $this->method_settings = $arr; return $this; } /** * Link to a *public* URI where users can report issues. Example: * https://issuetracker.google.com/issues/new?component=190865&template=1161103 * * Generated from protobuf field string new_issue_uri = 101; * @return string */ public function getNewIssueUri() { return $this->new_issue_uri; } /** * Link to a *public* URI where users can report issues. Example: * https://issuetracker.google.com/issues/new?component=190865&template=1161103 * * Generated from protobuf field string new_issue_uri = 101; * @param string $var * @return $this */ public function setNewIssueUri($var) { GPBUtil::checkString($var, True); $this->new_issue_uri = $var; return $this; } /** * Link to product home page. Example: * https://cloud.google.com/asset-inventory/docs/overview * * Generated from protobuf field string documentation_uri = 102; * @return string */ public function getDocumentationUri() { return $this->documentation_uri; } /** * Link to product home page. Example: * https://cloud.google.com/asset-inventory/docs/overview * * Generated from protobuf field string documentation_uri = 102; * @param string $var * @return $this */ public function setDocumentationUri($var) { GPBUtil::checkString($var, True); $this->documentation_uri = $var; return $this; } /** * Used as a tracking tag when collecting data about the APIs developer * relations artifacts like docs, packages delivered to package managers, * etc. Example: "speech". * * Generated from protobuf field string api_short_name = 103; * @return string */ public function getApiShortName() { return $this->api_short_name; } /** * Used as a tracking tag when collecting data about the APIs developer * relations artifacts like docs, packages delivered to package managers, * etc. Example: "speech". * * Generated from protobuf field string api_short_name = 103; * @param string $var * @return $this */ public function setApiShortName($var) { GPBUtil::checkString($var, True); $this->api_short_name = $var; return $this; } /** * GitHub label to apply to issues and pull requests opened for this API. * * Generated from protobuf field string github_label = 104; * @return string */ public function getGithubLabel() { return $this->github_label; } /** * GitHub label to apply to issues and pull requests opened for this API. * * Generated from protobuf field string github_label = 104; * @param string $var * @return $this */ public function setGithubLabel($var) { GPBUtil::checkString($var, True); $this->github_label = $var; return $this; } /** * GitHub teams to be added to CODEOWNERS in the directory in GitHub * containing source code for the client libraries for this API. * * Generated from protobuf field repeated string codeowner_github_teams = 105; * @return \Google\Protobuf\Internal\RepeatedField */ public function getCodeownerGithubTeams() { return $this->codeowner_github_teams; } /** * GitHub teams to be added to CODEOWNERS in the directory in GitHub * containing source code for the client libraries for this API. * * Generated from protobuf field repeated string codeowner_github_teams = 105; * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setCodeownerGithubTeams($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); $this->codeowner_github_teams = $arr; return $this; } /** * A prefix used in sample code when demarking regions to be included in * documentation. * * Generated from protobuf field string doc_tag_prefix = 106; * @return string */ public function getDocTagPrefix() { return $this->doc_tag_prefix; } /** * A prefix used in sample code when demarking regions to be included in * documentation. * * Generated from protobuf field string doc_tag_prefix = 106; * @param string $var * @return $this */ public function setDocTagPrefix($var) { GPBUtil::checkString($var, True); $this->doc_tag_prefix = $var; return $this; } /** * For whom the client library is being published. * * Generated from protobuf field .google.api.ClientLibraryOrganization organization = 107; * @return int */ public function getOrganization() { return $this->organization; } /** * For whom the client library is being published. * * Generated from protobuf field .google.api.ClientLibraryOrganization organization = 107; * @param int $var * @return $this */ public function setOrganization($var) { GPBUtil::checkEnum($var, \Google\Api\ClientLibraryOrganization::class); $this->organization = $var; return $this; } /** * Client library settings. If the same version string appears multiple * times in this list, then the last one wins. Settings from earlier * settings with the same version string are discarded. * * Generated from protobuf field repeated .google.api.ClientLibrarySettings library_settings = 109; * @return \Google\Protobuf\Internal\RepeatedField */ public function getLibrarySettings() { return $this->library_settings; } /** * Client library settings. If the same version string appears multiple * times in this list, then the last one wins. Settings from earlier * settings with the same version string are discarded. * * Generated from protobuf field repeated .google.api.ClientLibrarySettings library_settings = 109; * @param array<\Google\Api\ClientLibrarySettings>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setLibrarySettings($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\ClientLibrarySettings::class); $this->library_settings = $arr; return $this; } /** * Optional link to proto reference documentation. Example: * https://cloud.google.com/pubsub/lite/docs/reference/rpc * * Generated from protobuf field string proto_reference_documentation_uri = 110; * @return string */ public function getProtoReferenceDocumentationUri() { return $this->proto_reference_documentation_uri; } /** * Optional link to proto reference documentation. Example: * https://cloud.google.com/pubsub/lite/docs/reference/rpc * * Generated from protobuf field string proto_reference_documentation_uri = 110; * @param string $var * @return $this */ public function setProtoReferenceDocumentationUri($var) { GPBUtil::checkString($var, True); $this->proto_reference_documentation_uri = $var; return $this; } /** * Optional link to REST reference documentation. Example: * https://cloud.google.com/pubsub/lite/docs/reference/rest * * Generated from protobuf field string rest_reference_documentation_uri = 111; * @return string */ public function getRestReferenceDocumentationUri() { return $this->rest_reference_documentation_uri; } /** * Optional link to REST reference documentation. Example: * https://cloud.google.com/pubsub/lite/docs/reference/rest * * Generated from protobuf field string rest_reference_documentation_uri = 111; * @param string $var * @return $this */ public function setRestReferenceDocumentationUri($var) { GPBUtil::checkString($var, True); $this->rest_reference_documentation_uri = $var; return $this; } } src/Api/PythonSettings.php000064400000003440151742741400011565 0ustar00google.api.PythonSettings */ class PythonSettings extends \Google\Protobuf\Internal\Message { /** * Some settings. * * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; */ protected $common = null; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Google\Api\CommonLanguageSettings $common * Some settings. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Client::initOnce(); parent::__construct($data); } /** * Some settings. * * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; * @return \Google\Api\CommonLanguageSettings|null */ public function getCommon() { return $this->common; } public function hasCommon() { return isset($this->common); } public function clearCommon() { unset($this->common); } /** * Some settings. * * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; * @param \Google\Api\CommonLanguageSettings $var * @return $this */ public function setCommon($var) { GPBUtil::checkMessage($var, \Google\Api\CommonLanguageSettings::class); $this->common = $var; return $this; } } src/Api/Quota.php000064400000011567151742741400007665 0ustar00google.api.Quota */ class Quota extends \Google\Protobuf\Internal\Message { /** * List of QuotaLimit definitions for the service. * * 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. * * 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 array<\Google\Api\QuotaLimit>|\Google\Protobuf\Internal\RepeatedField $limits * List of QuotaLimit definitions for the service. * @type array<\Google\Api\MetricRule>|\Google\Protobuf\Internal\RepeatedField $metric_rules * List of MetricRule definitions, each one mapping a selected method to one * or more metrics. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Quota::initOnce(); parent::__construct($data); } /** * List of QuotaLimit definitions for the service. * * 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. * * Generated from protobuf field repeated .google.api.QuotaLimit limits = 3; * @param array<\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. * * 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. * * Generated from protobuf field repeated .google.api.MetricRule metric_rules = 4; * @param array<\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.php000064400000050143151742741400010655 0ustar00google.api.QuotaLimit */ class QuotaLimit extends \Google\Protobuf\Internal\Message { /** * Name of the quota limit. * 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. * * Generated from protobuf field string name = 6; */ protected $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; */ protected $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; */ protected $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; */ protected $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; */ protected $free_tier = 0; /** * Duration of this limit in textual notation. Must be "100s" or "1d". * Used by group-based quotas only. * * Generated from protobuf field string duration = 5; */ protected $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. * * Generated from protobuf field string metric = 8; */ protected $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. * Here are some examples: * * "1/min/{project}" for quota per minute per project. * Note: the order of unit components is insignificant. * The "1" at the beginning is required to follow the metric unit syntax. * * Generated from protobuf field string unit = 9; */ protected $unit = ''; /** * Tiered limit values. You must specify this as a key:value pair, with an * integer value that is the maximum number of requests allowed for the * specified unit. Currently only STANDARD is supported. * * 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; */ protected $display_name = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $name * Name of the quota limit. * 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. * @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. Must be "100s" or "1d". * 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. * @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. * Here are some examples: * * "1/min/{project}" for quota per minute per project. * Note: the order of unit components is insignificant. * The "1" at the beginning is required to follow the metric unit syntax. * @type array|\Google\Protobuf\Internal\MapField $values * Tiered limit values. You must specify this as a key:value pair, with an * integer value that is the maximum number of requests allowed for the * specified unit. Currently only STANDARD is supported. * @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 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. * * Generated from protobuf field string name = 6; * @return string */ public function getName() { return $this->name; } /** * Name of the quota limit. * 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. * * 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. Must be "100s" or "1d". * 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. Must be "100s" or "1d". * 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. * * 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. * * 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. * Here are some examples: * * "1/min/{project}" for quota per minute per project. * Note: the order of unit components is insignificant. * The "1" at the beginning is required to follow the metric unit syntax. * * 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. * Here are some examples: * * "1/min/{project}" for quota per minute per project. * Note: the order of unit components is insignificant. * The "1" at the beginning is required to follow the metric unit syntax. * * 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. You must specify this as a key:value pair, with an * integer value that is the maximum number of requests allowed for the * specified unit. Currently only STANDARD is supported. * * Generated from protobuf field map values = 10; * @return \Google\Protobuf\Internal\MapField */ public function getValues() { return $this->values; } /** * Tiered limit values. You must specify this as a key:value pair, with an * integer value that is the maximum number of requests allowed for the * specified unit. Currently only STANDARD is supported. * * 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.php000064400000051325151742741400012416 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; */ protected $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; */ protected $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; */ protected $history = 0; /** * The plural name used in the resource name and permission names, such as * 'projects' for the resource name of 'projects/{project}' and the permission * name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception * to this is for Nested Collections that have stuttering names, as defined * in [AIP-122](https://google.aip.dev/122#nested-collections), where the * collection ID in the resource name pattern does not necessarily directly * match the `plural` value. * 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/ * Note: The plural form is required even for singleton resources. See * https://aip.dev/156 * * Generated from protobuf field string plural = 5; */ protected $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; */ protected $singular = ''; /** * Style flag(s) for this resource. * These indicate that a resource is expected to conform to a given * style. See the specific style flags for additional information. * * Generated from protobuf field repeated .google.api.ResourceDescriptor.Style style = 10; */ private $style; /** * 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 array|\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 and permission names, such as * 'projects' for the resource name of 'projects/{project}' and the permission * name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception * to this is for Nested Collections that have stuttering names, as defined * in [AIP-122](https://google.aip.dev/122#nested-collections), where the * collection ID in the resource name pattern does not necessarily directly * match the `plural` value. * 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/ * Note: The plural form is required even for singleton resources. See * https://aip.dev/156 * @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. * @type array|\Google\Protobuf\Internal\RepeatedField $style * Style flag(s) for this resource. * These indicate that a resource is expected to conform to a given * style. See the specific style flags for additional information. * } */ 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 array|\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 and permission names, such as * 'projects' for the resource name of 'projects/{project}' and the permission * name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception * to this is for Nested Collections that have stuttering names, as defined * in [AIP-122](https://google.aip.dev/122#nested-collections), where the * collection ID in the resource name pattern does not necessarily directly * match the `plural` value. * 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/ * Note: The plural form is required even for singleton resources. See * https://aip.dev/156 * * Generated from protobuf field string plural = 5; * @return string */ public function getPlural() { return $this->plural; } /** * The plural name used in the resource name and permission names, such as * 'projects' for the resource name of 'projects/{project}' and the permission * name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception * to this is for Nested Collections that have stuttering names, as defined * in [AIP-122](https://google.aip.dev/122#nested-collections), where the * collection ID in the resource name pattern does not necessarily directly * match the `plural` value. * 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/ * Note: The plural form is required even for singleton resources. See * https://aip.dev/156 * * 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; } /** * Style flag(s) for this resource. * These indicate that a resource is expected to conform to a given * style. See the specific style flags for additional information. * * Generated from protobuf field repeated .google.api.ResourceDescriptor.Style style = 10; * @return \Google\Protobuf\Internal\RepeatedField */ public function getStyle() { return $this->style; } /** * Style flag(s) for this resource. * These indicate that a resource is expected to conform to a given * style. See the specific style flags for additional information. * * Generated from protobuf field repeated .google.api.ResourceDescriptor.Style style = 10; * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setStyle($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Api\ResourceDescriptor\Style::class); $this->style = $arr; return $this; } } src/Api/ResourceDescriptor/History.php000064400000003713151742741400014055 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); } } src/Api/ResourceDescriptor/Style.php000064400000003407151742741400013514 0ustar00google.api.ResourceDescriptor.Style */ class Style { /** * The unspecified value. Do not use. * * Generated from protobuf enum STYLE_UNSPECIFIED = 0; */ const STYLE_UNSPECIFIED = 0; /** * This resource is intended to be "declarative-friendly". * Declarative-friendly resources must be more strictly consistent, and * setting this to true communicates to tools that this resource should * adhere to declarative-friendly expectations. * Note: This is used by the API linter (linter.aip.dev) to enable * additional checks. * * Generated from protobuf enum DECLARATIVE_FRIENDLY = 1; */ const DECLARATIVE_FRIENDLY = 1; private static $valueToName = [ self::STYLE_UNSPECIFIED => 'STYLE_UNSPECIFIED', self::DECLARATIVE_FRIENDLY => 'DECLARATIVE_FRIENDLY', ]; 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/ResourceReference.php000064400000014172151742741400012175 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" * }]; * } * Occasionally, a field may reference an arbitrary resource. In this case, * APIs use the special value * in their resource reference. * Example: * message GetIamPolicyRequest { * string resource = 2 [(google.api.resource_reference) = { * type: "*" * }]; * } * * Generated from protobuf field string type = 1; */ protected $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; */ protected $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" * }]; * } * Occasionally, a field may reference an arbitrary resource. In this case, * APIs use the special value * in their resource reference. * Example: * message GetIamPolicyRequest { * string resource = 2 [(google.api.resource_reference) = { * type: "*" * }]; * } * @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" * }]; * } * Occasionally, a field may reference an arbitrary resource. In this case, * APIs use the special value * in their resource reference. * Example: * message GetIamPolicyRequest { * string resource = 2 [(google.api.resource_reference) = { * type: "*" * }]; * } * * 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" * }]; * } * Occasionally, a field may reference an arbitrary resource. In this case, * APIs use the special value * in their resource reference. * Example: * message GetIamPolicyRequest { * string resource = 2 [(google.api.resource_reference) = { * 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 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.php000064400000031703151742741400012056 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.php000064400000033133151742741400011044 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 array<\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 array<\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/RubySettings.php000064400000003432151742741400011226 0ustar00google.api.RubySettings */ class RubySettings extends \Google\Protobuf\Internal\Message { /** * Some settings. * * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; */ protected $common = null; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Google\Api\CommonLanguageSettings $common * Some settings. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Client::initOnce(); parent::__construct($data); } /** * Some settings. * * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; * @return \Google\Api\CommonLanguageSettings|null */ public function getCommon() { return $this->common; } public function hasCommon() { return isset($this->common); } public function clearCommon() { unset($this->common); } /** * Some settings. * * Generated from protobuf field .google.api.CommonLanguageSettings common = 1; * @param \Google\Api\CommonLanguageSettings $var * @return $this */ public function setCommon($var) { GPBUtil::checkMessage($var, \Google\Api\CommonLanguageSettings::class); $this->common = $var; return $this; } } src/Api/Service.php000064400000115436151742741400010174 0ustar00google.api.Service */ class Service extends \Google\Protobuf\Internal\Message { /** * The service name, which is a DNS-like logical identifier for the * service, such as `calendar.googleapis.com`. The service name * typically goes through DNS verification to make sure the owner * of the service also owns the DNS name. * * Generated from protobuf field string name = 1; */ protected $name = ''; /** * The product title for this service, it is the name displayed in Google * Cloud Console. * * Generated from protobuf field string title = 2; */ protected $title = ''; /** * The Google project that owns this service. * * Generated from protobuf field string producer_project_id = 22; */ protected $producer_project_id = ''; /** * A unique ID for a specific instance of this message, typically assigned * by the client for tracking purpose. Must be no longer than 63 characters * and only lower case letters, digits, '.', '_' and '-' are allowed. If * empty, the server may choose to generate one instead. * * Generated from protobuf field string id = 33; */ protected $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 by the configuration author. 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 by the configuration author. 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; */ protected $documentation = null; /** * API backend configuration. * * Generated from protobuf field .google.api.Backend backend = 8; */ protected $backend = null; /** * HTTP configuration. * * Generated from protobuf field .google.api.Http http = 9; */ protected $http = null; /** * Quota configuration. * * Generated from protobuf field .google.api.Quota quota = 10; */ protected $quota = null; /** * Auth configuration. * * Generated from protobuf field .google.api.Authentication authentication = 11; */ protected $authentication = null; /** * Context configuration. * * Generated from protobuf field .google.api.Context context = 12; */ protected $context = null; /** * Configuration controlling usage of this service. * * Generated from protobuf field .google.api.Usage usage = 15; */ protected $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; */ protected $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; */ protected $billing = null; /** * Logging configuration. * * Generated from protobuf field .google.api.Logging logging = 27; */ protected $logging = null; /** * Monitoring configuration. * * Generated from protobuf field .google.api.Monitoring monitoring = 28; */ protected $monitoring = null; /** * System parameter configuration. * * Generated from protobuf field .google.api.SystemParameters system_parameters = 29; */ protected $system_parameters = null; /** * Output only. The source information for this configuration if available. * * Generated from protobuf field .google.api.SourceInfo source_info = 37; */ protected $source_info = null; /** * Settings for [Google Cloud Client * libraries](https://cloud.google.com/apis/docs/cloud-client-libraries) * generated from APIs defined as protocol buffers. * * Generated from protobuf field .google.api.Publishing publishing = 45; */ protected $publishing = null; /** * Obsolete. Do not use. * This field has no semantic meaning. The service config compiler always * sets this field to `3`. * * Generated from protobuf field .google.protobuf.UInt32Value config_version = 20; */ protected $config_version = null; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $name * The service name, which is a DNS-like logical identifier for the * service, such as `calendar.googleapis.com`. The service name * typically goes through DNS verification to make sure the owner * of the service also owns the DNS name. * @type string $title * The product title for this service, it is the name displayed in Google * Cloud Console. * @type string $producer_project_id * The Google project that owns this service. * @type string $id * A unique ID for a specific instance of this message, typically assigned * by the client for tracking purpose. Must be no longer than 63 characters * and only lower case letters, digits, '.', '_' and '-' are allowed. If * empty, the server may choose to generate one instead. * @type array<\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 array<\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 by the configuration author. Example: * types: * - name: google.protobuf.Int32 * @type array<\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 by the configuration author. 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 array<\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 array<\Google\Api\LogDescriptor>|\Google\Protobuf\Internal\RepeatedField $logs * Defines the logs used by this service. * @type array<\Google\Api\MetricDescriptor>|\Google\Protobuf\Internal\RepeatedField $metrics * Defines the metrics used by this service. * @type array<\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. * @type \Google\Api\Publishing $publishing * Settings for [Google Cloud Client * libraries](https://cloud.google.com/apis/docs/cloud-client-libraries) * generated from APIs defined as protocol buffers. * @type \Google\Protobuf\UInt32Value $config_version * Obsolete. Do not use. * This field has no semantic meaning. The service config compiler always * sets this field to `3`. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Service::initOnce(); parent::__construct($data); } /** * The service name, which is a DNS-like logical identifier for the * service, such as `calendar.googleapis.com`. The service name * typically goes through DNS verification to make sure the owner * of the service also owns the DNS name. * * Generated from protobuf field string name = 1; * @return string */ public function getName() { return $this->name; } /** * The service name, which is a DNS-like logical identifier for the * service, such as `calendar.googleapis.com`. The service name * typically goes through DNS verification to make sure the owner * of the service also owns the DNS 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; } /** * The product title for this service, it is the name displayed in Google * Cloud Console. * * Generated from protobuf field string title = 2; * @return string */ public function getTitle() { return $this->title; } /** * The product title for this service, it is the name displayed in Google * Cloud Console. * * 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 unique ID for a specific instance of this message, typically assigned * by the client for tracking purpose. Must be no longer than 63 characters * and only lower case letters, digits, '.', '_' and '-' are allowed. 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. Must be no longer than 63 characters * and only lower case letters, digits, '.', '_' and '-' are allowed. 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; } /** * 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 array<\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 by the configuration author. 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 by the configuration author. Example: * types: * - name: google.protobuf.Int32 * * Generated from protobuf field repeated .google.protobuf.Type types = 4; * @param array<\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 by the configuration author. 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 by the configuration author. Example: * enums: * - name: google.someapi.v1.SomeEnum * * Generated from protobuf field repeated .google.protobuf.Enum enums = 5; * @param array<\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|null */ public function getDocumentation() { return $this->documentation; } public function hasDocumentation() { return isset($this->documentation); } public function clearDocumentation() { unset($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|null */ public function getBackend() { return $this->backend; } public function hasBackend() { return isset($this->backend); } public function clearBackend() { unset($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|null */ public function getHttp() { return $this->http; } public function hasHttp() { return isset($this->http); } public function clearHttp() { unset($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|null */ public function getQuota() { return $this->quota; } public function hasQuota() { return isset($this->quota); } public function clearQuota() { unset($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|null */ public function getAuthentication() { return $this->authentication; } public function hasAuthentication() { return isset($this->authentication); } public function clearAuthentication() { unset($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|null */ public function getContext() { return $this->context; } public function hasContext() { return isset($this->context); } public function clearContext() { unset($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|null */ public function getUsage() { return $this->usage; } public function hasUsage() { return isset($this->usage); } public function clearUsage() { unset($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 array<\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|null */ public function getControl() { return $this->control; } public function hasControl() { return isset($this->control); } public function clearControl() { unset($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 array<\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 array<\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 array<\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|null */ public function getBilling() { return $this->billing; } public function hasBilling() { return isset($this->billing); } public function clearBilling() { unset($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|null */ public function getLogging() { return $this->logging; } public function hasLogging() { return isset($this->logging); } public function clearLogging() { unset($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|null */ public function getMonitoring() { return $this->monitoring; } public function hasMonitoring() { return isset($this->monitoring); } public function clearMonitoring() { unset($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|null */ public function getSystemParameters() { return $this->system_parameters; } public function hasSystemParameters() { return isset($this->system_parameters); } public function clearSystemParameters() { unset($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|null */ public function getSourceInfo() { return $this->source_info; } public function hasSourceInfo() { return isset($this->source_info); } public function clearSourceInfo() { unset($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; } /** * Settings for [Google Cloud Client * libraries](https://cloud.google.com/apis/docs/cloud-client-libraries) * generated from APIs defined as protocol buffers. * * Generated from protobuf field .google.api.Publishing publishing = 45; * @return \Google\Api\Publishing|null */ public function getPublishing() { return $this->publishing; } public function hasPublishing() { return isset($this->publishing); } public function clearPublishing() { unset($this->publishing); } /** * Settings for [Google Cloud Client * libraries](https://cloud.google.com/apis/docs/cloud-client-libraries) * generated from APIs defined as protocol buffers. * * Generated from protobuf field .google.api.Publishing publishing = 45; * @param \Google\Api\Publishing $var * @return $this */ public function setPublishing($var) { GPBUtil::checkMessage($var, \Google\Api\Publishing::class); $this->publishing = $var; return $this; } /** * Obsolete. Do not use. * This field has no semantic meaning. The service config compiler always * sets this field to `3`. * * Generated from protobuf field .google.protobuf.UInt32Value config_version = 20; * @return \Google\Protobuf\UInt32Value|null */ public function getConfigVersion() { return $this->config_version; } public function hasConfigVersion() { return isset($this->config_version); } public function clearConfigVersion() { unset($this->config_version); } /** * Returns the unboxed value from getConfigVersion() * Obsolete. Do not use. * This field has no semantic meaning. The service config compiler always * sets this field to `3`. * * Generated from protobuf field .google.protobuf.UInt32Value config_version = 20; * @return int|null */ public function getConfigVersionUnwrapped() { return $this->readWrapperValue("config_version"); } /** * Obsolete. Do not use. * This field has no semantic meaning. The service config compiler always * sets this field to `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. * Obsolete. Do not use. * This field has no semantic meaning. The service config compiler always * sets this field to `3`. * * Generated from protobuf field .google.protobuf.UInt32Value config_version = 20; * @param int|null $var * @return $this */ public function setConfigVersionUnwrapped($var) { $this->writeWrapperValue("config_version", $var); return $this;} } src/Api/SourceInfo.php000064400000003600151742741400010635 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 array<\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 array<\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.php000064400000007727151742741400011724 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; */ protected $name = ''; /** * Define the HTTP header name to use for the parameter. It is case * insensitive. * * Generated from protobuf field string http_header = 2; */ protected $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; */ protected $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.php000064400000010730151742741400012540 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; */ protected $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 array<\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 array<\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.php000064400000013705151742741400012100 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 array<\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 array<\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/TypeReference.php000064400000007051151742741400011325 0ustar00google.api.TypeReference */ class TypeReference extends \Google\Protobuf\Internal\Message { /** * The name of the type that the annotated, generic field may represent. * If the type is in the same protobuf package, the value can be the simple * message name e.g., `"MyMessage"`. Otherwise, the value must be the * fully-qualified message name e.g., `"google.library.v1.Book"`. * If the type(s) are unknown to the service (e.g. the field accepts generic * user input), use the wildcard `"*"` to denote this behavior. * See [AIP-202](https://google.aip.dev/202#type-references) for more details. * * Generated from protobuf field string type_name = 1; */ protected $type_name = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $type_name * The name of the type that the annotated, generic field may represent. * If the type is in the same protobuf package, the value can be the simple * message name e.g., `"MyMessage"`. Otherwise, the value must be the * fully-qualified message name e.g., `"google.library.v1.Book"`. * If the type(s) are unknown to the service (e.g. the field accepts generic * user input), use the wildcard `"*"` to denote this behavior. * See [AIP-202](https://google.aip.dev/202#type-references) for more details. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\FieldInfo::initOnce(); parent::__construct($data); } /** * The name of the type that the annotated, generic field may represent. * If the type is in the same protobuf package, the value can be the simple * message name e.g., `"MyMessage"`. Otherwise, the value must be the * fully-qualified message name e.g., `"google.library.v1.Book"`. * If the type(s) are unknown to the service (e.g. the field accepts generic * user input), use the wildcard `"*"` to denote this behavior. * See [AIP-202](https://google.aip.dev/202#type-references) for more details. * * Generated from protobuf field string type_name = 1; * @return string */ public function getTypeName() { return $this->type_name; } /** * The name of the type that the annotated, generic field may represent. * If the type is in the same protobuf package, the value can be the simple * message name e.g., `"MyMessage"`. Otherwise, the value must be the * fully-qualified message name e.g., `"google.library.v1.Book"`. * If the type(s) are unknown to the service (e.g. the field accepts generic * user input), use the wildcard `"*"` to denote this behavior. * See [AIP-202](https://google.aip.dev/202#type-references) for more details. * * Generated from protobuf field string type_name = 1; * @param string $var * @return $this */ public function setTypeName($var) { GPBUtil::checkString($var, True); $this->type_name = $var; return $this; } } src/Api/Usage.php000064400000017736151742741400007644 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'. * For Google APIs, a Terms of Service requirement must be included here. * Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud". * Other Google APIs should include * "serviceusage.googleapis.com/tos/universal". Additional ToS can be * included based on the business needs. * * 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; */ protected $producer_notification_channel = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type array|\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'. * For Google APIs, a Terms of Service requirement must be included here. * Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud". * Other Google APIs should include * "serviceusage.googleapis.com/tos/universal". Additional ToS can be * included based on the business needs. * @type array<\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'. * For Google APIs, a Terms of Service requirement must be included here. * Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud". * Other Google APIs should include * "serviceusage.googleapis.com/tos/universal". Additional ToS can be * included based on the business needs. * * 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'. * For Google APIs, a Terms of Service requirement must be included here. * Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud". * Other Google APIs should include * "serviceusage.googleapis.com/tos/universal". Additional ToS can be * included based on the business needs. * * Generated from protobuf field repeated string requirements = 1; * @param array|\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 array<\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.php000064400000014111151742741400010454 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; */ protected $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; */ protected $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; */ protected $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/Api/Visibility.php000064400000006217151742741400010717 0ustar00google.api.Visibility */ class Visibility extends \Google\Protobuf\Internal\Message { /** * A list of visibility rules that apply to individual API elements. * **NOTE:** All service configuration rules follow "last one wins" order. * * Generated from protobuf field repeated .google.api.VisibilityRule rules = 1; */ private $rules; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type array<\Google\Api\VisibilityRule>|\Google\Protobuf\Internal\RepeatedField $rules * A list of visibility rules that apply to individual API elements. * **NOTE:** All service configuration rules follow "last one wins" order. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Visibility::initOnce(); parent::__construct($data); } /** * A list of visibility rules that apply to individual API elements. * **NOTE:** All service configuration rules follow "last one wins" order. * * Generated from protobuf field repeated .google.api.VisibilityRule rules = 1; * @return \Google\Protobuf\Internal\RepeatedField */ public function getRules() { return $this->rules; } /** * A list of visibility rules that apply to individual API elements. * **NOTE:** All service configuration rules follow "last one wins" order. * * Generated from protobuf field repeated .google.api.VisibilityRule rules = 1; * @param array<\Google\Api\VisibilityRule>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setRules($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\VisibilityRule::class); $this->rules = $arr; return $this; } } src/Api/VisibilityRule.php000064400000012155151742741400011545 0ustar00google.api.VisibilityRule */ class VisibilityRule extends \Google\Protobuf\Internal\Message { /** * Selects methods, messages, fields, enums, etc. to which this rule applies. * Refer to [selector][google.api.DocumentationRule.selector] for syntax * details. * * Generated from protobuf field string selector = 1; */ protected $selector = ''; /** * A comma-separated list of visibility labels that apply to the `selector`. * Any of the listed labels can be used to grant the visibility. * If a rule has multiple labels, removing one of the labels but not all of * them can break clients. * Example: * visibility: * rules: * - selector: google.calendar.Calendar.EnhancedSearch * restriction: INTERNAL, PREVIEW * Removing INTERNAL from this restriction will break clients that rely on * this method and only had access to it through INTERNAL. * * Generated from protobuf field string restriction = 2; */ protected $restriction = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $selector * Selects methods, messages, fields, enums, etc. to which this rule applies. * Refer to [selector][google.api.DocumentationRule.selector] for syntax * details. * @type string $restriction * A comma-separated list of visibility labels that apply to the `selector`. * Any of the listed labels can be used to grant the visibility. * If a rule has multiple labels, removing one of the labels but not all of * them can break clients. * Example: * visibility: * rules: * - selector: google.calendar.Calendar.EnhancedSearch * restriction: INTERNAL, PREVIEW * Removing INTERNAL from this restriction will break clients that rely on * this method and only had access to it through INTERNAL. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Api\Visibility::initOnce(); parent::__construct($data); } /** * Selects methods, messages, fields, enums, etc. 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, messages, fields, enums, etc. 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 comma-separated list of visibility labels that apply to the `selector`. * Any of the listed labels can be used to grant the visibility. * If a rule has multiple labels, removing one of the labels but not all of * them can break clients. * Example: * visibility: * rules: * - selector: google.calendar.Calendar.EnhancedSearch * restriction: INTERNAL, PREVIEW * Removing INTERNAL from this restriction will break clients that rely on * this method and only had access to it through INTERNAL. * * Generated from protobuf field string restriction = 2; * @return string */ public function getRestriction() { return $this->restriction; } /** * A comma-separated list of visibility labels that apply to the `selector`. * Any of the listed labels can be used to grant the visibility. * If a rule has multiple labels, removing one of the labels but not all of * them can break clients. * Example: * visibility: * rules: * - selector: google.calendar.Calendar.EnhancedSearch * restriction: INTERNAL, PREVIEW * Removing INTERNAL from this restriction will break clients that rely on * this method and only had access to it through INTERNAL. * * Generated from protobuf field string restriction = 2; * @param string $var * @return $this */ public function setRestriction($var) { GPBUtil::checkString($var, True); $this->restriction = $var; return $this; } } src/Cloud/Iam/V1/AuditConfig.php000064400000012123151742741400012306 0ustar00google.iam.v1.AuditConfig */ class AuditConfig extends \Google\Protobuf\Internal\Message { /** * Specifies a service that will be enabled for audit logging. * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. * `allServices` is a special value that covers all services. * * Generated from protobuf field string service = 1; */ protected $service = ''; /** * The configuration for logging of each type of permission. * * Generated from protobuf field repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; */ private $audit_log_configs; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $service * Specifies a service that will be enabled for audit logging. * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. * `allServices` is a special value that covers all services. * @type array<\Google\Cloud\Iam\V1\AuditLogConfig>|\Google\Protobuf\Internal\RepeatedField $audit_log_configs * The configuration for logging of each type of permission. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Iam\V1\Policy::initOnce(); parent::__construct($data); } /** * Specifies a service that will be enabled for audit logging. * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. * `allServices` is a special value that covers all services. * * Generated from protobuf field string service = 1; * @return string */ public function getService() { return $this->service; } /** * Specifies a service that will be enabled for audit logging. * For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. * `allServices` is a special value that covers all services. * * Generated from protobuf field string service = 1; * @param string $var * @return $this */ public function setService($var) { GPBUtil::checkString($var, True); $this->service = $var; return $this; } /** * The configuration for logging of each type of permission. * * Generated from protobuf field repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; * @return \Google\Protobuf\Internal\RepeatedField */ public function getAuditLogConfigs() { return $this->audit_log_configs; } /** * The configuration for logging of each type of permission. * * Generated from protobuf field repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3; * @param array<\Google\Cloud\Iam\V1\AuditLogConfig>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setAuditLogConfigs($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Iam\V1\AuditLogConfig::class); $this->audit_log_configs = $arr; return $this; } } src/Cloud/Iam/V1/AuditConfigDelta.php000064400000014060151742741400013262 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; */ protected $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; */ protected $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; */ protected $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; */ protected $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.php000064400000003052151742741400014476 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); } } src/Cloud/Iam/V1/AuditLogConfig.php000064400000007374151742741400012764 0ustar00google.iam.v1.AuditLogConfig */ class AuditLogConfig extends \Google\Protobuf\Internal\Message { /** * The log type that this config enables. * * Generated from protobuf field .google.iam.v1.AuditLogConfig.LogType log_type = 1; */ protected $log_type = 0; /** * Specifies the identities that do not cause logging for this type of * permission. * Follows the same format of * [Binding.members][google.iam.v1.Binding.members]. * * Generated from protobuf field repeated string exempted_members = 2; */ private $exempted_members; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int $log_type * The log type that this config enables. * @type array|\Google\Protobuf\Internal\RepeatedField $exempted_members * Specifies the identities that do not cause logging for this type of * permission. * Follows the same format of * [Binding.members][google.iam.v1.Binding.members]. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Iam\V1\Policy::initOnce(); parent::__construct($data); } /** * The log type that this config enables. * * Generated from protobuf field .google.iam.v1.AuditLogConfig.LogType log_type = 1; * @return int */ public function getLogType() { return $this->log_type; } /** * The log type that this config enables. * * Generated from protobuf field .google.iam.v1.AuditLogConfig.LogType log_type = 1; * @param int $var * @return $this */ public function setLogType($var) { GPBUtil::checkEnum($var, \Google\Cloud\Iam\V1\AuditLogConfig\LogType::class); $this->log_type = $var; return $this; } /** * Specifies the identities that do not cause logging for this type of * permission. * Follows the same format of * [Binding.members][google.iam.v1.Binding.members]. * * Generated from protobuf field repeated string exempted_members = 2; * @return \Google\Protobuf\Internal\RepeatedField */ public function getExemptedMembers() { return $this->exempted_members; } /** * Specifies the identities that do not cause logging for this type of * permission. * Follows the same format of * [Binding.members][google.iam.v1.Binding.members]. * * Generated from protobuf field repeated string exempted_members = 2; * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setExemptedMembers($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); $this->exempted_members = $arr; return $this; } } src/Cloud/Iam/V1/AuditLogConfig/LogType.php000064400000003615151742741400014341 0ustar00google.iam.v1.AuditLogConfig.LogType */ class LogType { /** * Default case. Should never be this. * * Generated from protobuf enum LOG_TYPE_UNSPECIFIED = 0; */ const LOG_TYPE_UNSPECIFIED = 0; /** * Admin reads. Example: CloudIAM getIamPolicy * * Generated from protobuf enum ADMIN_READ = 1; */ const ADMIN_READ = 1; /** * Data writes. Example: CloudSQL Users create * * Generated from protobuf enum DATA_WRITE = 2; */ const DATA_WRITE = 2; /** * Data reads. Example: CloudSQL Users list * * Generated from protobuf enum DATA_READ = 3; */ const DATA_READ = 3; private static $valueToName = [ self::LOG_TYPE_UNSPECIFIED => 'LOG_TYPE_UNSPECIFIED', self::ADMIN_READ => 'ADMIN_READ', self::DATA_WRITE => 'DATA_WRITE', self::DATA_READ => 'DATA_READ', ]; 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/Iam/V1/Binding.php000064400000035525151742741400011477 0ustar00google.iam.v1.Binding */ class Binding extends \Google\Protobuf\Internal\Message { /** * Role that is assigned to the list of `members`, or principals. * For example, `roles/viewer`, `roles/editor`, or `roles/owner`. * * Generated from protobuf field string role = 1; */ protected $role = ''; /** * Specifies the principals requesting access for a Google Cloud 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`. * * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique * identifier) representing a user that has been recently deleted. For * example, `alice@example.com?uid=123456789012345678901`. If the user is * recovered, this value reverts to `user:{emailid}` and the recovered user * retains the role in the binding. * * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus * unique identifier) representing a service account that has been recently * deleted. For example, * `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. * If the service account is undeleted, this value reverts to * `serviceAccount:{emailid}` and the undeleted service account retains the * role in the binding. * * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique * identifier) representing a Google group that has been recently * deleted. For example, `admins@example.com?uid=123456789012345678901`. If * the group is recovered, this value reverts to `group:{emailid}` and the * recovered group retains the role in the binding. * * `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. * If the condition evaluates to `true`, then this binding applies to the * current request. * If the condition evaluates to `false`, then this binding does not apply to * the current request. However, a different role binding might grant the same * role to one or more of the principals in this binding. * To learn which resources support conditions in their IAM policies, see the * [IAM * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). * * Generated from protobuf field .google.type.Expr condition = 3; */ protected $condition = null; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $role * Role that is assigned to the list of `members`, or principals. * For example, `roles/viewer`, `roles/editor`, or `roles/owner`. * @type array|\Google\Protobuf\Internal\RepeatedField $members * Specifies the principals requesting access for a Google Cloud 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`. * * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique * identifier) representing a user that has been recently deleted. For * example, `alice@example.com?uid=123456789012345678901`. If the user is * recovered, this value reverts to `user:{emailid}` and the recovered user * retains the role in the binding. * * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus * unique identifier) representing a service account that has been recently * deleted. For example, * `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. * If the service account is undeleted, this value reverts to * `serviceAccount:{emailid}` and the undeleted service account retains the * role in the binding. * * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique * identifier) representing a Google group that has been recently * deleted. For example, `admins@example.com?uid=123456789012345678901`. If * the group is recovered, this value reverts to `group:{emailid}` and the * recovered group retains the role in the binding. * * `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. * If the condition evaluates to `true`, then this binding applies to the * current request. * If the condition evaluates to `false`, then this binding does not apply to * the current request. However, a different role binding might grant the same * role to one or more of the principals in this binding. * To learn which resources support conditions in their IAM policies, see the * [IAM * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Iam\V1\Policy::initOnce(); parent::__construct($data); } /** * Role that is assigned to the list of `members`, or principals. * 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 the list of `members`, or principals. * 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 principals requesting access for a Google Cloud 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`. * * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique * identifier) representing a user that has been recently deleted. For * example, `alice@example.com?uid=123456789012345678901`. If the user is * recovered, this value reverts to `user:{emailid}` and the recovered user * retains the role in the binding. * * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus * unique identifier) representing a service account that has been recently * deleted. For example, * `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. * If the service account is undeleted, this value reverts to * `serviceAccount:{emailid}` and the undeleted service account retains the * role in the binding. * * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique * identifier) representing a Google group that has been recently * deleted. For example, `admins@example.com?uid=123456789012345678901`. If * the group is recovered, this value reverts to `group:{emailid}` and the * recovered group retains the role in the binding. * * `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 principals requesting access for a Google Cloud 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`. * * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique * identifier) representing a user that has been recently deleted. For * example, `alice@example.com?uid=123456789012345678901`. If the user is * recovered, this value reverts to `user:{emailid}` and the recovered user * retains the role in the binding. * * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus * unique identifier) representing a service account that has been recently * deleted. For example, * `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. * If the service account is undeleted, this value reverts to * `serviceAccount:{emailid}` and the undeleted service account retains the * role in the binding. * * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique * identifier) representing a Google group that has been recently * deleted. For example, `admins@example.com?uid=123456789012345678901`. If * the group is recovered, this value reverts to `group:{emailid}` and the * recovered group retains the role in the binding. * * `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 array|\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. * If the condition evaluates to `true`, then this binding applies to the * current request. * If the condition evaluates to `false`, then this binding does not apply to * the current request. However, a different role binding might grant the same * role to one or more of the principals in this binding. * To learn which resources support conditions in their IAM policies, see the * [IAM * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). * * Generated from protobuf field .google.type.Expr condition = 3; * @return \Google\Type\Expr|null */ public function getCondition() { return $this->condition; } public function hasCondition() { return isset($this->condition); } public function clearCondition() { unset($this->condition); } /** * The condition that is associated with this binding. * If the condition evaluates to `true`, then this binding applies to the * current request. * If the condition evaluates to `false`, then this binding does not apply to * the current request. However, a different role binding might grant the same * role to one or more of the principals in this binding. * To learn which resources support conditions in their IAM policies, see the * [IAM * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). * * 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.php000064400000012407151742741400012443 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; */ protected $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; */ protected $role = ''; /** * A single identity requesting access for a Google Cloud resource. * Follows the same format of Binding.members. * Required * * Generated from protobuf field string member = 3; */ protected $member = ''; /** * The condition that is associated with this binding. * * Generated from protobuf field .google.type.Expr condition = 4; */ protected $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 Google Cloud 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 Google Cloud 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 Google Cloud 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|null */ public function getCondition() { return $this->condition; } public function hasCondition() { return isset($this->condition); } public function clearCondition() { unset($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.php000064400000002773151742741400013665 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); } } src/Cloud/Iam/V1/GetIamPolicyRequest.php000064400000007142151742741400014016 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) = { */ protected $resource = ''; /** * OPTIONAL: A `GetPolicyOptions` object for specifying options to * `GetIamPolicy`. * * Generated from protobuf field .google.iam.v1.GetPolicyOptions options = 2; */ protected $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`. * } */ 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`. * * Generated from protobuf field .google.iam.v1.GetPolicyOptions options = 2; * @return \Google\Cloud\Iam\V1\GetPolicyOptions|null */ public function getOptions() { return $this->options; } public function hasOptions() { return isset($this->options); } public function clearOptions() { unset($this->options); } /** * OPTIONAL: A `GetPolicyOptions` object for specifying options to * `GetIamPolicy`. * * 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.php000064400000011576151742741400013400 0ustar00google.iam.v1.GetPolicyOptions */ class GetPolicyOptions extends \Google\Protobuf\Internal\Message { /** * Optional. The maximum policy version that will be used to format the * policy. * Valid values are 0, 1, and 3. Requests specifying an invalid value will be * rejected. * Requests for policies with any conditional role bindings must specify * version 3. Policies with no conditional role bindings may specify any valid * value or leave the field unset. * The policy in the response might use the policy version that you specified, * or it might use a lower policy version. For example, if you specify version * 3, but the policy has no conditional role bindings, the response uses * version 1. * To learn which resources support conditions in their IAM policies, see the * [IAM * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). * * Generated from protobuf field int32 requested_policy_version = 1; */ protected $requested_policy_version = 0; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int $requested_policy_version * Optional. The maximum policy version that will be used to format the * policy. * Valid values are 0, 1, and 3. Requests specifying an invalid value will be * rejected. * Requests for policies with any conditional role bindings must specify * version 3. Policies with no conditional role bindings may specify any valid * value or leave the field unset. * The policy in the response might use the policy version that you specified, * or it might use a lower policy version. For example, if you specify version * 3, but the policy has no conditional role bindings, the response uses * version 1. * To learn which resources support conditions in their IAM policies, see the * [IAM * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Iam\V1\Options::initOnce(); parent::__construct($data); } /** * Optional. The maximum policy version that will be used to format the * policy. * Valid values are 0, 1, and 3. Requests specifying an invalid value will be * rejected. * Requests for policies with any conditional role bindings must specify * version 3. Policies with no conditional role bindings may specify any valid * value or leave the field unset. * The policy in the response might use the policy version that you specified, * or it might use a lower policy version. For example, if you specify version * 3, but the policy has no conditional role bindings, the response uses * version 1. * To learn which resources support conditions in their IAM policies, see the * [IAM * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). * * Generated from protobuf field int32 requested_policy_version = 1; * @return int */ public function getRequestedPolicyVersion() { return $this->requested_policy_version; } /** * Optional. The maximum policy version that will be used to format the * policy. * Valid values are 0, 1, and 3. Requests specifying an invalid value will be * rejected. * Requests for policies with any conditional role bindings must specify * version 3. Policies with no conditional role bindings may specify any valid * value or leave the field unset. * The policy in the response might use the policy version that you specified, * or it might use a lower policy version. For example, if you specify version * 3, but the policy has no conditional role bindings, the response uses * version 1. * To learn which resources support conditions in their IAM policies, see the * [IAM * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). * * 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.php000064400000043235151742741400011361 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 that specify an invalid value * are rejected. * Any operation that affects conditional role bindings must specify version * `3`. This requirement applies to the following operations: * * Getting a policy that includes a conditional role binding * * Adding a conditional role binding to a policy * * Changing a conditional role binding in a policy * * Removing any role binding, with or without a condition, from a policy * that includes conditions * **Important:** If you use IAM Conditions, you must include the `etag` field * whenever you call `setIamPolicy`. If you omit this field, then IAM allows * you to overwrite a version `3` policy with a version `1` policy, and all of * the conditions in the version `3` policy are lost. * If a policy does not include any conditions, operations on that policy may * specify any valid version or leave the field unset. * To learn which resources support conditions in their IAM policies, see the * [IAM * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). * * Generated from protobuf field int32 version = 1; */ protected $version = 0; /** * Associates a list of `members`, or principals, with a `role`. Optionally, * may specify a `condition` that determines how and when the `bindings` are * applied. Each of the `bindings` must contain at least one principal. * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 * of these principals can be Google groups. Each occurrence of a principal * counts towards these limits. For example, if the `bindings` grant 50 * different roles to `user:alice@example.com`, and not to any other * principal, then you can add another 1,450 principals to the `bindings` in * the `Policy`. * * Generated from protobuf field repeated .google.iam.v1.Binding bindings = 4; */ private $bindings; /** * Specifies cloud audit logging configuration for this policy. * * Generated from protobuf field repeated .google.iam.v1.AuditConfig audit_configs = 6; */ private $audit_configs; /** * `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. * **Important:** If you use IAM Conditions, you must include the `etag` field * whenever you call `setIamPolicy`. If you omit this field, then IAM allows * you to overwrite a version `3` policy with a version `1` policy, and all of * the conditions in the version `3` policy are lost. * * Generated from protobuf field bytes etag = 3; */ protected $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 that specify an invalid value * are rejected. * Any operation that affects conditional role bindings must specify version * `3`. This requirement applies to the following operations: * * Getting a policy that includes a conditional role binding * * Adding a conditional role binding to a policy * * Changing a conditional role binding in a policy * * Removing any role binding, with or without a condition, from a policy * that includes conditions * **Important:** If you use IAM Conditions, you must include the `etag` field * whenever you call `setIamPolicy`. If you omit this field, then IAM allows * you to overwrite a version `3` policy with a version `1` policy, and all of * the conditions in the version `3` policy are lost. * If a policy does not include any conditions, operations on that policy may * specify any valid version or leave the field unset. * To learn which resources support conditions in their IAM policies, see the * [IAM * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). * @type array<\Google\Cloud\Iam\V1\Binding>|\Google\Protobuf\Internal\RepeatedField $bindings * Associates a list of `members`, or principals, with a `role`. Optionally, * may specify a `condition` that determines how and when the `bindings` are * applied. Each of the `bindings` must contain at least one principal. * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 * of these principals can be Google groups. Each occurrence of a principal * counts towards these limits. For example, if the `bindings` grant 50 * different roles to `user:alice@example.com`, and not to any other * principal, then you can add another 1,450 principals to the `bindings` in * the `Policy`. * @type array<\Google\Cloud\Iam\V1\AuditConfig>|\Google\Protobuf\Internal\RepeatedField $audit_configs * Specifies cloud audit logging configuration for this policy. * @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. * **Important:** If you use IAM Conditions, you must include the `etag` field * whenever you call `setIamPolicy`. If you omit this field, then IAM allows * you to overwrite a version `3` policy with a version `1` policy, and all of * the conditions in the version `3` policy are lost. * } */ 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 that specify an invalid value * are rejected. * Any operation that affects conditional role bindings must specify version * `3`. This requirement applies to the following operations: * * Getting a policy that includes a conditional role binding * * Adding a conditional role binding to a policy * * Changing a conditional role binding in a policy * * Removing any role binding, with or without a condition, from a policy * that includes conditions * **Important:** If you use IAM Conditions, you must include the `etag` field * whenever you call `setIamPolicy`. If you omit this field, then IAM allows * you to overwrite a version `3` policy with a version `1` policy, and all of * the conditions in the version `3` policy are lost. * If a policy does not include any conditions, operations on that policy may * specify any valid version or leave the field unset. * To learn which resources support conditions in their IAM policies, see the * [IAM * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). * * 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 that specify an invalid value * are rejected. * Any operation that affects conditional role bindings must specify version * `3`. This requirement applies to the following operations: * * Getting a policy that includes a conditional role binding * * Adding a conditional role binding to a policy * * Changing a conditional role binding in a policy * * Removing any role binding, with or without a condition, from a policy * that includes conditions * **Important:** If you use IAM Conditions, you must include the `etag` field * whenever you call `setIamPolicy`. If you omit this field, then IAM allows * you to overwrite a version `3` policy with a version `1` policy, and all of * the conditions in the version `3` policy are lost. * If a policy does not include any conditions, operations on that policy may * specify any valid version or leave the field unset. * To learn which resources support conditions in their IAM policies, see the * [IAM * documentation](https://cloud.google.com/iam/help/conditions/resource-policies). * * 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`, or principals, with a `role`. Optionally, * may specify a `condition` that determines how and when the `bindings` are * applied. Each of the `bindings` must contain at least one principal. * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 * of these principals can be Google groups. Each occurrence of a principal * counts towards these limits. For example, if the `bindings` grant 50 * different roles to `user:alice@example.com`, and not to any other * principal, then you can add another 1,450 principals to the `bindings` in * the `Policy`. * * 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`, or principals, with a `role`. Optionally, * may specify a `condition` that determines how and when the `bindings` are * applied. Each of the `bindings` must contain at least one principal. * The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 * of these principals can be Google groups. Each occurrence of a principal * counts towards these limits. For example, if the `bindings` grant 50 * different roles to `user:alice@example.com`, and not to any other * principal, then you can add another 1,450 principals to the `bindings` in * the `Policy`. * * Generated from protobuf field repeated .google.iam.v1.Binding bindings = 4; * @param array<\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; } /** * Specifies cloud audit logging configuration for this policy. * * Generated from protobuf field repeated .google.iam.v1.AuditConfig audit_configs = 6; * @return \Google\Protobuf\Internal\RepeatedField */ public function getAuditConfigs() { return $this->audit_configs; } /** * Specifies cloud audit logging configuration for this policy. * * Generated from protobuf field repeated .google.iam.v1.AuditConfig audit_configs = 6; * @param array<\Google\Cloud\Iam\V1\AuditConfig>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setAuditConfigs($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Iam\V1\AuditConfig::class); $this->audit_configs = $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. * **Important:** If you use IAM Conditions, you must include the `etag` field * whenever you call `setIamPolicy`. If you omit this field, then IAM allows * you to overwrite a version `3` policy with a version `1` policy, and all of * the conditions in the version `3` policy are lost. * * 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. * **Important:** If you use IAM Conditions, you must include the `etag` field * whenever you call `setIamPolicy`. If you omit this field, then IAM allows * you to overwrite a version `3` policy with a version `1` policy, and all of * the conditions in the version `3` policy are lost. * * 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.php000064400000006452151742741400012333 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 array<\Google\Cloud\Iam\V1\BindingDelta>|\Google\Protobuf\Internal\RepeatedField $binding_deltas * The delta for Bindings between two policies. * @type array<\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 array<\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 array<\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.php000064400000014312151742741400014027 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) = { */ protected $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]; */ protected $policy = null; /** * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only * the fields in the mask will be modified. If no mask is provided, the * following default mask is used: * `paths: "bindings, etag"` * * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; */ protected $update_mask = 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. * @type \Google\Protobuf\FieldMask $update_mask * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only * the fields in the mask will be modified. If no mask is provided, the * following default mask is used: * `paths: "bindings, etag"` * } */ 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|null */ public function getPolicy() { return $this->policy; } public function hasPolicy() { return isset($this->policy); } public function clearPolicy() { unset($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; } /** * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only * the fields in the mask will be modified. If no mask is provided, the * following default mask is used: * `paths: "bindings, etag"` * * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; * @return \Google\Protobuf\FieldMask|null */ public function getUpdateMask() { return $this->update_mask; } public function hasUpdateMask() { return isset($this->update_mask); } public function clearUpdateMask() { unset($this->update_mask); } /** * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only * the fields in the mask will be modified. If no mask is provided, the * following default mask is used: * `paths: "bindings, etag"` * * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; * @param \Google\Protobuf\FieldMask $var * @return $this */ public function setUpdateMask($var) { GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); $this->update_mask = $var; return $this; } } src/Cloud/Iam/V1/TestIamPermissionsRequest.php000064400000010401151742741400015262 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) = { */ protected $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 array|\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 array|\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.php000064400000003772151742741400015445 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 array|\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 array|\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.php000064400000003120151742741400014444 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.php000064400000010025151742741400015025 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.php000064400000005773151742741400015211 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 array<\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 array<\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.php000064400000015121151742741400012437 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.php000064400000046054151742741400013727 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; */ protected $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; */ protected $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; */ protected $request_size = 0; /** * The response code indicating the status of response. * Examples: 200, 404. * * Generated from protobuf field int32 status = 4; */ protected $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; */ protected $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; */ protected $user_agent = ''; /** * The IP address (IPv4 or IPv6) of the client that issued the HTTP * request. This field can include port information. Examples: * `"192.168.1.1"`, `"10.0.0.1:80"`, `"FE80::0202:B3FF:FE1E:8329"`. * * Generated from protobuf field string remote_ip = 7; */ protected $remote_ip = ''; /** * The IP address (IPv4 or IPv6) of the origin server that the request was * sent to. This field can include port information. Examples: * `"192.168.1.1"`, `"10.0.0.1:80"`, `"FE80::0202:B3FF:FE1E:8329"`. * * Generated from protobuf field string server_ip = 13; */ protected $server_ip = ''; /** * The referer URL of the request, as defined in * [HTTP/1.1 Header Field * Definitions](https://datatracker.ietf.org/doc/html/rfc2616#section-14.36). * * Generated from protobuf field string referer = 8; */ protected $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; */ protected $latency = null; /** * Whether or not a cache lookup was attempted. * * Generated from protobuf field bool cache_lookup = 11; */ protected $cache_lookup = false; /** * Whether or not an entity was served from cache * (with or without validation). * * Generated from protobuf field bool cache_hit = 9; */ protected $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; */ protected $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; */ protected $cache_fill_bytes = 0; /** * Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket" * * Generated from protobuf field string protocol = 15; */ protected $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. This field can include port information. Examples: * `"192.168.1.1"`, `"10.0.0.1:80"`, `"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. This field can include port information. Examples: * `"192.168.1.1"`, `"10.0.0.1:80"`, `"FE80::0202:B3FF:FE1E:8329"`. * @type string $referer * The referer URL of the request, as defined in * [HTTP/1.1 Header Field * Definitions](https://datatracker.ietf.org/doc/html/rfc2616#section-14.36). * @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. This field can include port information. Examples: * `"192.168.1.1"`, `"10.0.0.1:80"`, `"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. This field can include port information. Examples: * `"192.168.1.1"`, `"10.0.0.1:80"`, `"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. This field can include port information. Examples: * `"192.168.1.1"`, `"10.0.0.1:80"`, `"FE80::0202:B3FF:FE1E:8329"`. * * 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. This field can include port information. Examples: * `"192.168.1.1"`, `"10.0.0.1:80"`, `"FE80::0202:B3FF:FE1E:8329"`. * * 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](https://datatracker.ietf.org/doc/html/rfc2616#section-14.36). * * 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](https://datatracker.ietf.org/doc/html/rfc2616#section-14.36). * * 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|null */ public function getLatency() { return $this->latency; } public function hasLatency() { return isset($this->latency); } public function clearLatency() { unset($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.php000064400000007250151742741400013706 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 => 'DEFAULT', 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)) { $pbconst = __CLASS__. '::PB' . strtoupper($name); if (!defined($pbconst)) { throw new UnexpectedValueException(sprintf( 'Enum %s has no value defined for name %s', __CLASS__, $name)); } return constant($pbconst); } return constant($const); } } src/Cloud/OperationResponseMapping.php000064400000005473151742741400014123 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.php000064400000004263151742741400012300 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; */ protected $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|null */ public function getPolicyDelta() { return $this->policy_delta; } public function hasPolicyDelta() { return isset($this->policy_delta); } public function clearPolicyDelta() { unset($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/Rpc/BadRequest.php000064400000004135151742741400010637 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 array<\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 array<\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.php000064400000017624151742741400013556 0ustar00google.rpc.BadRequest.FieldViolation */ class FieldViolation extends \Google\Protobuf\Internal\Message { /** * A path that leads to a field in the request body. The value will be a * sequence of dot-separated identifiers that identify a protocol buffer * field. * Consider the following: * message CreateContactRequest { * message EmailAddress { * enum Type { * TYPE_UNSPECIFIED = 0; * HOME = 1; * WORK = 2; * } * optional string email = 1; * repeated EmailType type = 2; * } * string full_name = 1; * repeated EmailAddress email_addresses = 2; * } * In this example, in proto `field` could take one of the following values: * * `full_name` for a violation in the `full_name` value * * `email_addresses[1].email` for a violation in the `email` field of the * first `email_addresses` message * * `email_addresses[3].type[2]` for a violation in the second `type` * value in the third `email_addresses` message. * In JSON, the same values are represented as: * * `fullName` for a violation in the `fullName` value * * `emailAddresses[1].email` for a violation in the `email` field of the * first `emailAddresses` message * * `emailAddresses[3].type[2]` for a violation in the second `type` * value in the third `emailAddresses` message. * * 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 that leads to a field in the request body. The value will be a * sequence of dot-separated identifiers that identify a protocol buffer * field. * Consider the following: * message CreateContactRequest { * message EmailAddress { * enum Type { * TYPE_UNSPECIFIED = 0; * HOME = 1; * WORK = 2; * } * optional string email = 1; * repeated EmailType type = 2; * } * string full_name = 1; * repeated EmailAddress email_addresses = 2; * } * In this example, in proto `field` could take one of the following values: * * `full_name` for a violation in the `full_name` value * * `email_addresses[1].email` for a violation in the `email` field of the * first `email_addresses` message * * `email_addresses[3].type[2]` for a violation in the second `type` * value in the third `email_addresses` message. * In JSON, the same values are represented as: * * `fullName` for a violation in the `fullName` value * * `emailAddresses[1].email` for a violation in the `email` field of the * first `emailAddresses` message * * `emailAddresses[3].type[2]` for a violation in the second `type` * value in the third `emailAddresses` message. * @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 that leads to a field in the request body. The value will be a * sequence of dot-separated identifiers that identify a protocol buffer * field. * Consider the following: * message CreateContactRequest { * message EmailAddress { * enum Type { * TYPE_UNSPECIFIED = 0; * HOME = 1; * WORK = 2; * } * optional string email = 1; * repeated EmailType type = 2; * } * string full_name = 1; * repeated EmailAddress email_addresses = 2; * } * In this example, in proto `field` could take one of the following values: * * `full_name` for a violation in the `full_name` value * * `email_addresses[1].email` for a violation in the `email` field of the * first `email_addresses` message * * `email_addresses[3].type[2]` for a violation in the second `type` * value in the third `email_addresses` message. * In JSON, the same values are represented as: * * `fullName` for a violation in the `fullName` value * * `emailAddresses[1].email` for a violation in the `email` field of the * first `emailAddresses` message * * `emailAddresses[3].type[2]` for a violation in the second `type` * value in the third `emailAddresses` message. * * Generated from protobuf field string field = 1; * @return string */ public function getField() { return $this->field; } /** * A path that leads to a field in the request body. The value will be a * sequence of dot-separated identifiers that identify a protocol buffer * field. * Consider the following: * message CreateContactRequest { * message EmailAddress { * enum Type { * TYPE_UNSPECIFIED = 0; * HOME = 1; * WORK = 2; * } * optional string email = 1; * repeated EmailType type = 2; * } * string full_name = 1; * repeated EmailAddress email_addresses = 2; * } * In this example, in proto `field` could take one of the following values: * * `full_name` for a violation in the `full_name` value * * `email_addresses[1].email` for a violation in the `email` field of the * first `email_addresses` message * * `email_addresses[3].type[2]` for a violation in the second `type` * value in the third `email_addresses` message. * In JSON, the same values are represented as: * * `fullName` for a violation in the `fullName` value * * `emailAddresses[1].email` for a violation in the `email` field of the * first `emailAddresses` message * * `emailAddresses[3].type[2]` for a violation in the second `type` * value in the third `emailAddresses` message. * * 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; } } src/Rpc/Code.php000064400000022702151742741400007452 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 allowlist, * `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. For * example, 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. For example, 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/Context/AttributeContext.php000064400000033766151742741400013550 0ustar00google.rpc.context.AttributeContext */ class AttributeContext extends \Google\Protobuf\Internal\Message { /** * The origin of a network activity. In a multi hop network activity, * the origin represents the sender of the first hop. For the first hop, * the `source` and the `origin` must have the same content. * * Generated from protobuf field .google.rpc.context.AttributeContext.Peer origin = 7; */ protected $origin = null; /** * The source of a network activity, such as starting a TCP connection. * In a multi hop network activity, the source represents the sender of the * last hop. * * Generated from protobuf field .google.rpc.context.AttributeContext.Peer source = 1; */ protected $source = null; /** * The destination of a network activity, such as accepting a TCP connection. * In a multi hop network activity, the destination represents the receiver of * the last hop. * * Generated from protobuf field .google.rpc.context.AttributeContext.Peer destination = 2; */ protected $destination = null; /** * Represents a network request, such as an HTTP request. * * Generated from protobuf field .google.rpc.context.AttributeContext.Request request = 3; */ protected $request = null; /** * Represents a network response, such as an HTTP response. * * Generated from protobuf field .google.rpc.context.AttributeContext.Response response = 4; */ protected $response = null; /** * Represents a target resource that is involved with a network activity. * If multiple resources are involved with an activity, this must be the * primary one. * * Generated from protobuf field .google.rpc.context.AttributeContext.Resource resource = 5; */ protected $resource = null; /** * Represents an API operation that is involved to a network activity. * * Generated from protobuf field .google.rpc.context.AttributeContext.Api api = 6; */ protected $api = null; /** * Supports extensions for advanced use cases, such as logs and metrics. * * Generated from protobuf field repeated .google.protobuf.Any extensions = 8; */ private $extensions; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Google\Rpc\Context\AttributeContext\Peer $origin * The origin of a network activity. In a multi hop network activity, * the origin represents the sender of the first hop. For the first hop, * the `source` and the `origin` must have the same content. * @type \Google\Rpc\Context\AttributeContext\Peer $source * The source of a network activity, such as starting a TCP connection. * In a multi hop network activity, the source represents the sender of the * last hop. * @type \Google\Rpc\Context\AttributeContext\Peer $destination * The destination of a network activity, such as accepting a TCP connection. * In a multi hop network activity, the destination represents the receiver of * the last hop. * @type \Google\Rpc\Context\AttributeContext\Request $request * Represents a network request, such as an HTTP request. * @type \Google\Rpc\Context\AttributeContext\Response $response * Represents a network response, such as an HTTP response. * @type \Google\Rpc\Context\AttributeContext\Resource $resource * Represents a target resource that is involved with a network activity. * If multiple resources are involved with an activity, this must be the * primary one. * @type \Google\Rpc\Context\AttributeContext\Api $api * Represents an API operation that is involved to a network activity. * @type array<\Google\Protobuf\Any>|\Google\Protobuf\Internal\RepeatedField $extensions * Supports extensions for advanced use cases, such as logs and metrics. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Rpc\Context\AttributeContext::initOnce(); parent::__construct($data); } /** * The origin of a network activity. In a multi hop network activity, * the origin represents the sender of the first hop. For the first hop, * the `source` and the `origin` must have the same content. * * Generated from protobuf field .google.rpc.context.AttributeContext.Peer origin = 7; * @return \Google\Rpc\Context\AttributeContext\Peer|null */ public function getOrigin() { return $this->origin; } public function hasOrigin() { return isset($this->origin); } public function clearOrigin() { unset($this->origin); } /** * The origin of a network activity. In a multi hop network activity, * the origin represents the sender of the first hop. For the first hop, * the `source` and the `origin` must have the same content. * * Generated from protobuf field .google.rpc.context.AttributeContext.Peer origin = 7; * @param \Google\Rpc\Context\AttributeContext\Peer $var * @return $this */ public function setOrigin($var) { GPBUtil::checkMessage($var, \Google\Rpc\Context\AttributeContext\Peer::class); $this->origin = $var; return $this; } /** * The source of a network activity, such as starting a TCP connection. * In a multi hop network activity, the source represents the sender of the * last hop. * * Generated from protobuf field .google.rpc.context.AttributeContext.Peer source = 1; * @return \Google\Rpc\Context\AttributeContext\Peer|null */ public function getSource() { return $this->source; } public function hasSource() { return isset($this->source); } public function clearSource() { unset($this->source); } /** * The source of a network activity, such as starting a TCP connection. * In a multi hop network activity, the source represents the sender of the * last hop. * * Generated from protobuf field .google.rpc.context.AttributeContext.Peer source = 1; * @param \Google\Rpc\Context\AttributeContext\Peer $var * @return $this */ public function setSource($var) { GPBUtil::checkMessage($var, \Google\Rpc\Context\AttributeContext\Peer::class); $this->source = $var; return $this; } /** * The destination of a network activity, such as accepting a TCP connection. * In a multi hop network activity, the destination represents the receiver of * the last hop. * * Generated from protobuf field .google.rpc.context.AttributeContext.Peer destination = 2; * @return \Google\Rpc\Context\AttributeContext\Peer|null */ public function getDestination() { return $this->destination; } public function hasDestination() { return isset($this->destination); } public function clearDestination() { unset($this->destination); } /** * The destination of a network activity, such as accepting a TCP connection. * In a multi hop network activity, the destination represents the receiver of * the last hop. * * Generated from protobuf field .google.rpc.context.AttributeContext.Peer destination = 2; * @param \Google\Rpc\Context\AttributeContext\Peer $var * @return $this */ public function setDestination($var) { GPBUtil::checkMessage($var, \Google\Rpc\Context\AttributeContext\Peer::class); $this->destination = $var; return $this; } /** * Represents a network request, such as an HTTP request. * * Generated from protobuf field .google.rpc.context.AttributeContext.Request request = 3; * @return \Google\Rpc\Context\AttributeContext\Request|null */ public function getRequest() { return $this->request; } public function hasRequest() { return isset($this->request); } public function clearRequest() { unset($this->request); } /** * Represents a network request, such as an HTTP request. * * Generated from protobuf field .google.rpc.context.AttributeContext.Request request = 3; * @param \Google\Rpc\Context\AttributeContext\Request $var * @return $this */ public function setRequest($var) { GPBUtil::checkMessage($var, \Google\Rpc\Context\AttributeContext\Request::class); $this->request = $var; return $this; } /** * Represents a network response, such as an HTTP response. * * Generated from protobuf field .google.rpc.context.AttributeContext.Response response = 4; * @return \Google\Rpc\Context\AttributeContext\Response|null */ public function getResponse() { return $this->response; } public function hasResponse() { return isset($this->response); } public function clearResponse() { unset($this->response); } /** * Represents a network response, such as an HTTP response. * * Generated from protobuf field .google.rpc.context.AttributeContext.Response response = 4; * @param \Google\Rpc\Context\AttributeContext\Response $var * @return $this */ public function setResponse($var) { GPBUtil::checkMessage($var, \Google\Rpc\Context\AttributeContext\Response::class); $this->response = $var; return $this; } /** * Represents a target resource that is involved with a network activity. * If multiple resources are involved with an activity, this must be the * primary one. * * Generated from protobuf field .google.rpc.context.AttributeContext.Resource resource = 5; * @return \Google\Rpc\Context\AttributeContext\Resource|null */ public function getResource() { return $this->resource; } public function hasResource() { return isset($this->resource); } public function clearResource() { unset($this->resource); } /** * Represents a target resource that is involved with a network activity. * If multiple resources are involved with an activity, this must be the * primary one. * * Generated from protobuf field .google.rpc.context.AttributeContext.Resource resource = 5; * @param \Google\Rpc\Context\AttributeContext\Resource $var * @return $this */ public function setResource($var) { GPBUtil::checkMessage($var, \Google\Rpc\Context\AttributeContext\Resource::class); $this->resource = $var; return $this; } /** * Represents an API operation that is involved to a network activity. * * Generated from protobuf field .google.rpc.context.AttributeContext.Api api = 6; * @return \Google\Rpc\Context\AttributeContext\Api|null */ public function getApi() { return $this->api; } public function hasApi() { return isset($this->api); } public function clearApi() { unset($this->api); } /** * Represents an API operation that is involved to a network activity. * * Generated from protobuf field .google.rpc.context.AttributeContext.Api api = 6; * @param \Google\Rpc\Context\AttributeContext\Api $var * @return $this */ public function setApi($var) { GPBUtil::checkMessage($var, \Google\Rpc\Context\AttributeContext\Api::class); $this->api = $var; return $this; } /** * Supports extensions for advanced use cases, such as logs and metrics. * * Generated from protobuf field repeated .google.protobuf.Any extensions = 8; * @return \Google\Protobuf\Internal\RepeatedField */ public function getExtensions() { return $this->extensions; } /** * Supports extensions for advanced use cases, such as logs and metrics. * * Generated from protobuf field repeated .google.protobuf.Any extensions = 8; * @param array<\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/Rpc/Context/AttributeContext/Api.php000064400000014033151742741400014243 0ustar00google.rpc.context.AttributeContext.Api */ class Api extends \Google\Protobuf\Internal\Message { /** * The API service name. It is a logical identifier for a networked API, * such as "pubsub.googleapis.com". The naming syntax depends on the * API management system being used for handling the request. * * Generated from protobuf field string service = 1; */ protected $service = ''; /** * The API operation name. For gRPC requests, it is the fully qualified API * method name, such as "google.pubsub.v1.Publisher.Publish". For OpenAPI * requests, it is the `operationId`, such as "getPet". * * Generated from protobuf field string operation = 2; */ protected $operation = ''; /** * The API protocol used for sending the request, such as "http", "https", * "grpc", or "internal". * * Generated from protobuf field string protocol = 3; */ protected $protocol = ''; /** * The API version associated with the API operation above, such as "v1" or * "v1alpha1". * * Generated from protobuf field string version = 4; */ protected $version = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $service * The API service name. It is a logical identifier for a networked API, * such as "pubsub.googleapis.com". The naming syntax depends on the * API management system being used for handling the request. * @type string $operation * The API operation name. For gRPC requests, it is the fully qualified API * method name, such as "google.pubsub.v1.Publisher.Publish". For OpenAPI * requests, it is the `operationId`, such as "getPet". * @type string $protocol * The API protocol used for sending the request, such as "http", "https", * "grpc", or "internal". * @type string $version * The API version associated with the API operation above, such as "v1" or * "v1alpha1". * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Rpc\Context\AttributeContext::initOnce(); parent::__construct($data); } /** * The API service name. It is a logical identifier for a networked API, * such as "pubsub.googleapis.com". The naming syntax depends on the * API management system being used for handling the request. * * Generated from protobuf field string service = 1; * @return string */ public function getService() { return $this->service; } /** * The API service name. It is a logical identifier for a networked API, * such as "pubsub.googleapis.com". The naming syntax depends on the * API management system being used for handling the request. * * Generated from protobuf field string service = 1; * @param string $var * @return $this */ public function setService($var) { GPBUtil::checkString($var, True); $this->service = $var; return $this; } /** * The API operation name. For gRPC requests, it is the fully qualified API * method name, such as "google.pubsub.v1.Publisher.Publish". For OpenAPI * requests, it is the `operationId`, such as "getPet". * * Generated from protobuf field string operation = 2; * @return string */ public function getOperation() { return $this->operation; } /** * The API operation name. For gRPC requests, it is the fully qualified API * method name, such as "google.pubsub.v1.Publisher.Publish". For OpenAPI * requests, it is the `operationId`, such as "getPet". * * Generated from protobuf field string operation = 2; * @param string $var * @return $this */ public function setOperation($var) { GPBUtil::checkString($var, True); $this->operation = $var; return $this; } /** * The API protocol used for sending the request, such as "http", "https", * "grpc", or "internal". * * Generated from protobuf field string protocol = 3; * @return string */ public function getProtocol() { return $this->protocol; } /** * The API protocol used for sending the request, such as "http", "https", * "grpc", or "internal". * * Generated from protobuf field string protocol = 3; * @param string $var * @return $this */ public function setProtocol($var) { GPBUtil::checkString($var, True); $this->protocol = $var; return $this; } /** * The API version associated with the API operation above, such as "v1" or * "v1alpha1". * * Generated from protobuf field string version = 4; * @return string */ public function getVersion() { return $this->version; } /** * The API version associated with the API operation above, such as "v1" or * "v1alpha1". * * Generated from protobuf field string version = 4; * @param string $var * @return $this */ public function setVersion($var) { GPBUtil::checkString($var, True); $this->version = $var; return $this; } } src/Rpc/Context/AttributeContext/Auth.php000064400000035327151742741400014444 0ustar00google.rpc.context.AttributeContext.Auth */ class Auth extends \Google\Protobuf\Internal\Message { /** * The authenticated principal. Reflects the issuer (`iss`) and subject * (`sub`) claims within a JWT. The issuer and subject should be `/` * delimited, with `/` percent-encoded within the subject fragment. For * Google accounts, the principal format is: * "https://accounts.google.com/{id}" * * Generated from protobuf field string principal = 1; */ protected $principal = ''; /** * The intended audience(s) for this authentication information. Reflects * the audience (`aud`) claim within a JWT. The audience * value(s) depends on the `issuer`, but typically include one or more of * the following pieces of information: * * The services intended to receive the credential. For example, * ["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"]. * * A set of service-based scopes. For example, * ["https://www.googleapis.com/auth/cloud-platform"]. * * The client id of an app, such as the Firebase project id for JWTs * from Firebase Auth. * Consult the documentation for the credential issuer to determine the * information provided. * * Generated from protobuf field repeated string audiences = 2; */ private $audiences; /** * The authorized presenter of the credential. Reflects the optional * Authorized Presenter (`azp`) claim within a JWT or the * OAuth client id. For example, a Google Cloud Platform client id looks * as follows: "123456789012.apps.googleusercontent.com". * * Generated from protobuf field string presenter = 3; */ protected $presenter = ''; /** * Structured claims presented with the credential. JWTs include * `{key: value}` pairs for standard and private claims. The following * is a subset of the standard required and optional claims that would * typically be presented for a Google-based JWT: * {'iss': 'accounts.google.com', * 'sub': '113289723416554971153', * 'aud': ['123456789012', 'pubsub.googleapis.com'], * 'azp': '123456789012.apps.googleusercontent.com', * 'email': 'jsmith@example.com', * 'iat': 1353601026, * 'exp': 1353604926} * SAML assertions are similarly specified, but with an identity provider * dependent structure. * * Generated from protobuf field .google.protobuf.Struct claims = 4; */ protected $claims = null; /** * A list of access level resource names that allow resources to be * accessed by authenticated requester. It is part of Secure GCP processing * for the incoming request. An access level string has the format: * "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}" * Example: * "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL" * * Generated from protobuf field repeated string access_levels = 5; */ private $access_levels; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $principal * The authenticated principal. Reflects the issuer (`iss`) and subject * (`sub`) claims within a JWT. The issuer and subject should be `/` * delimited, with `/` percent-encoded within the subject fragment. For * Google accounts, the principal format is: * "https://accounts.google.com/{id}" * @type array|\Google\Protobuf\Internal\RepeatedField $audiences * The intended audience(s) for this authentication information. Reflects * the audience (`aud`) claim within a JWT. The audience * value(s) depends on the `issuer`, but typically include one or more of * the following pieces of information: * * The services intended to receive the credential. For example, * ["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"]. * * A set of service-based scopes. For example, * ["https://www.googleapis.com/auth/cloud-platform"]. * * The client id of an app, such as the Firebase project id for JWTs * from Firebase Auth. * Consult the documentation for the credential issuer to determine the * information provided. * @type string $presenter * The authorized presenter of the credential. Reflects the optional * Authorized Presenter (`azp`) claim within a JWT or the * OAuth client id. For example, a Google Cloud Platform client id looks * as follows: "123456789012.apps.googleusercontent.com". * @type \Google\Protobuf\Struct $claims * Structured claims presented with the credential. JWTs include * `{key: value}` pairs for standard and private claims. The following * is a subset of the standard required and optional claims that would * typically be presented for a Google-based JWT: * {'iss': 'accounts.google.com', * 'sub': '113289723416554971153', * 'aud': ['123456789012', 'pubsub.googleapis.com'], * 'azp': '123456789012.apps.googleusercontent.com', * 'email': 'jsmith@example.com', * 'iat': 1353601026, * 'exp': 1353604926} * SAML assertions are similarly specified, but with an identity provider * dependent structure. * @type array|\Google\Protobuf\Internal\RepeatedField $access_levels * A list of access level resource names that allow resources to be * accessed by authenticated requester. It is part of Secure GCP processing * for the incoming request. An access level string has the format: * "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}" * Example: * "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL" * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Rpc\Context\AttributeContext::initOnce(); parent::__construct($data); } /** * The authenticated principal. Reflects the issuer (`iss`) and subject * (`sub`) claims within a JWT. The issuer and subject should be `/` * delimited, with `/` percent-encoded within the subject fragment. For * Google accounts, the principal format is: * "https://accounts.google.com/{id}" * * Generated from protobuf field string principal = 1; * @return string */ public function getPrincipal() { return $this->principal; } /** * The authenticated principal. Reflects the issuer (`iss`) and subject * (`sub`) claims within a JWT. The issuer and subject should be `/` * delimited, with `/` percent-encoded within the subject fragment. For * Google accounts, the principal format is: * "https://accounts.google.com/{id}" * * Generated from protobuf field string principal = 1; * @param string $var * @return $this */ public function setPrincipal($var) { GPBUtil::checkString($var, True); $this->principal = $var; return $this; } /** * The intended audience(s) for this authentication information. Reflects * the audience (`aud`) claim within a JWT. The audience * value(s) depends on the `issuer`, but typically include one or more of * the following pieces of information: * * The services intended to receive the credential. For example, * ["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"]. * * A set of service-based scopes. For example, * ["https://www.googleapis.com/auth/cloud-platform"]. * * The client id of an app, such as the Firebase project id for JWTs * from Firebase Auth. * Consult the documentation for the credential issuer to determine the * information provided. * * Generated from protobuf field repeated string audiences = 2; * @return \Google\Protobuf\Internal\RepeatedField */ public function getAudiences() { return $this->audiences; } /** * The intended audience(s) for this authentication information. Reflects * the audience (`aud`) claim within a JWT. The audience * value(s) depends on the `issuer`, but typically include one or more of * the following pieces of information: * * The services intended to receive the credential. For example, * ["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"]. * * A set of service-based scopes. For example, * ["https://www.googleapis.com/auth/cloud-platform"]. * * The client id of an app, such as the Firebase project id for JWTs * from Firebase Auth. * Consult the documentation for the credential issuer to determine the * information provided. * * Generated from protobuf field repeated string audiences = 2; * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setAudiences($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); $this->audiences = $arr; return $this; } /** * The authorized presenter of the credential. Reflects the optional * Authorized Presenter (`azp`) claim within a JWT or the * OAuth client id. For example, a Google Cloud Platform client id looks * as follows: "123456789012.apps.googleusercontent.com". * * Generated from protobuf field string presenter = 3; * @return string */ public function getPresenter() { return $this->presenter; } /** * The authorized presenter of the credential. Reflects the optional * Authorized Presenter (`azp`) claim within a JWT or the * OAuth client id. For example, a Google Cloud Platform client id looks * as follows: "123456789012.apps.googleusercontent.com". * * Generated from protobuf field string presenter = 3; * @param string $var * @return $this */ public function setPresenter($var) { GPBUtil::checkString($var, True); $this->presenter = $var; return $this; } /** * Structured claims presented with the credential. JWTs include * `{key: value}` pairs for standard and private claims. The following * is a subset of the standard required and optional claims that would * typically be presented for a Google-based JWT: * {'iss': 'accounts.google.com', * 'sub': '113289723416554971153', * 'aud': ['123456789012', 'pubsub.googleapis.com'], * 'azp': '123456789012.apps.googleusercontent.com', * 'email': 'jsmith@example.com', * 'iat': 1353601026, * 'exp': 1353604926} * SAML assertions are similarly specified, but with an identity provider * dependent structure. * * Generated from protobuf field .google.protobuf.Struct claims = 4; * @return \Google\Protobuf\Struct|null */ public function getClaims() { return $this->claims; } public function hasClaims() { return isset($this->claims); } public function clearClaims() { unset($this->claims); } /** * Structured claims presented with the credential. JWTs include * `{key: value}` pairs for standard and private claims. The following * is a subset of the standard required and optional claims that would * typically be presented for a Google-based JWT: * {'iss': 'accounts.google.com', * 'sub': '113289723416554971153', * 'aud': ['123456789012', 'pubsub.googleapis.com'], * 'azp': '123456789012.apps.googleusercontent.com', * 'email': 'jsmith@example.com', * 'iat': 1353601026, * 'exp': 1353604926} * SAML assertions are similarly specified, but with an identity provider * dependent structure. * * Generated from protobuf field .google.protobuf.Struct claims = 4; * @param \Google\Protobuf\Struct $var * @return $this */ public function setClaims($var) { GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class); $this->claims = $var; return $this; } /** * A list of access level resource names that allow resources to be * accessed by authenticated requester. It is part of Secure GCP processing * for the incoming request. An access level string has the format: * "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}" * Example: * "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL" * * Generated from protobuf field repeated string access_levels = 5; * @return \Google\Protobuf\Internal\RepeatedField */ public function getAccessLevels() { return $this->access_levels; } /** * A list of access level resource names that allow resources to be * accessed by authenticated requester. It is part of Secure GCP processing * for the incoming request. An access level string has the format: * "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}" * Example: * "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL" * * Generated from protobuf field repeated string access_levels = 5; * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setAccessLevels($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); $this->access_levels = $arr; return $this; } } src/Rpc/Context/AttributeContext/Peer.php000064400000014714151742741400014433 0ustar00google.rpc.context.AttributeContext.Peer */ class Peer extends \Google\Protobuf\Internal\Message { /** * The IP address of the peer. * * Generated from protobuf field string ip = 1; */ protected $ip = ''; /** * The network port of the peer. * * Generated from protobuf field int64 port = 2; */ protected $port = 0; /** * The labels associated with the peer. * * Generated from protobuf field map labels = 6; */ private $labels; /** * The identity of this peer. Similar to `Request.auth.principal`, but * relative to the peer instead of the request. For example, the * identity associated with a load balancer that forwarded the request. * * Generated from protobuf field string principal = 7; */ protected $principal = ''; /** * The CLDR country/region code associated with the above IP address. * If the IP address is private, the `region_code` should reflect the * physical location where this peer is running. * * Generated from protobuf field string region_code = 8; */ protected $region_code = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $ip * The IP address of the peer. * @type int|string $port * The network port of the peer. * @type array|\Google\Protobuf\Internal\MapField $labels * The labels associated with the peer. * @type string $principal * The identity of this peer. Similar to `Request.auth.principal`, but * relative to the peer instead of the request. For example, the * identity associated with a load balancer that forwarded the request. * @type string $region_code * The CLDR country/region code associated with the above IP address. * If the IP address is private, the `region_code` should reflect the * physical location where this peer is running. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Rpc\Context\AttributeContext::initOnce(); parent::__construct($data); } /** * The IP address of the peer. * * Generated from protobuf field string ip = 1; * @return string */ public function getIp() { return $this->ip; } /** * The IP address of the peer. * * Generated from protobuf field string ip = 1; * @param string $var * @return $this */ public function setIp($var) { GPBUtil::checkString($var, True); $this->ip = $var; return $this; } /** * The network port of the peer. * * Generated from protobuf field int64 port = 2; * @return int|string */ public function getPort() { return $this->port; } /** * The network port of the peer. * * Generated from protobuf field int64 port = 2; * @param int|string $var * @return $this */ public function setPort($var) { GPBUtil::checkInt64($var); $this->port = $var; return $this; } /** * The labels associated with the peer. * * Generated from protobuf field map labels = 6; * @return \Google\Protobuf\Internal\MapField */ public function getLabels() { return $this->labels; } /** * The labels associated with the peer. * * Generated from protobuf field map labels = 6; * @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; } /** * The identity of this peer. Similar to `Request.auth.principal`, but * relative to the peer instead of the request. For example, the * identity associated with a load balancer that forwarded the request. * * Generated from protobuf field string principal = 7; * @return string */ public function getPrincipal() { return $this->principal; } /** * The identity of this peer. Similar to `Request.auth.principal`, but * relative to the peer instead of the request. For example, the * identity associated with a load balancer that forwarded the request. * * Generated from protobuf field string principal = 7; * @param string $var * @return $this */ public function setPrincipal($var) { GPBUtil::checkString($var, True); $this->principal = $var; return $this; } /** * The CLDR country/region code associated with the above IP address. * If the IP address is private, the `region_code` should reflect the * physical location where this peer is running. * * Generated from protobuf field string region_code = 8; * @return string */ public function getRegionCode() { return $this->region_code; } /** * The CLDR country/region code associated with the above IP address. * If the IP address is private, the `region_code` should reflect the * physical location where this peer is running. * * Generated from protobuf field string region_code = 8; * @param string $var * @return $this */ public function setRegionCode($var) { GPBUtil::checkString($var, True); $this->region_code = $var; return $this; } } src/Rpc/Context/AttributeContext/Request.php000064400000036253151742741400015172 0ustar00google.rpc.context.AttributeContext.Request */ class Request extends \Google\Protobuf\Internal\Message { /** * The unique ID for a request, which can be propagated to downstream * systems. The ID should have low probability of collision * within a single day for a specific service. * * Generated from protobuf field string id = 1; */ protected $id = ''; /** * The HTTP request method, such as `GET`, `POST`. * * Generated from protobuf field string method = 2; */ protected $method = ''; /** * The HTTP request headers. If multiple headers share the same key, they * must be merged according to the HTTP spec. All header keys must be * lowercased, because HTTP header keys are case-insensitive. * * Generated from protobuf field map headers = 3; */ private $headers; /** * The HTTP URL path, excluding the query parameters. * * Generated from protobuf field string path = 4; */ protected $path = ''; /** * The HTTP request `Host` header value. * * Generated from protobuf field string host = 5; */ protected $host = ''; /** * The HTTP URL scheme, such as `http` and `https`. * * Generated from protobuf field string scheme = 6; */ protected $scheme = ''; /** * The HTTP URL query in the format of `name1=value1&name2=value2`, as it * appears in the first line of the HTTP request. No decoding is performed. * * Generated from protobuf field string query = 7; */ protected $query = ''; /** * The timestamp when the `destination` service receives the last byte of * the request. * * Generated from protobuf field .google.protobuf.Timestamp time = 9; */ protected $time = null; /** * The HTTP request size in bytes. If unknown, it must be -1. * * Generated from protobuf field int64 size = 10; */ protected $size = 0; /** * The network protocol used with the request, such as "http/1.1", * "spdy/3", "h2", "h2c", "webrtc", "tcp", "udp", "quic". See * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids * for details. * * Generated from protobuf field string protocol = 11; */ protected $protocol = ''; /** * A special parameter for request reason. It is used by security systems * to associate auditing information with a request. * * Generated from protobuf field string reason = 12; */ protected $reason = ''; /** * The request authentication. May be absent for unauthenticated requests. * Derived from the HTTP request `Authorization` header or equivalent. * * Generated from protobuf field .google.rpc.context.AttributeContext.Auth auth = 13; */ protected $auth = null; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $id * The unique ID for a request, which can be propagated to downstream * systems. The ID should have low probability of collision * within a single day for a specific service. * @type string $method * The HTTP request method, such as `GET`, `POST`. * @type array|\Google\Protobuf\Internal\MapField $headers * The HTTP request headers. If multiple headers share the same key, they * must be merged according to the HTTP spec. All header keys must be * lowercased, because HTTP header keys are case-insensitive. * @type string $path * The HTTP URL path, excluding the query parameters. * @type string $host * The HTTP request `Host` header value. * @type string $scheme * The HTTP URL scheme, such as `http` and `https`. * @type string $query * The HTTP URL query in the format of `name1=value1&name2=value2`, as it * appears in the first line of the HTTP request. No decoding is performed. * @type \Google\Protobuf\Timestamp $time * The timestamp when the `destination` service receives the last byte of * the request. * @type int|string $size * The HTTP request size in bytes. If unknown, it must be -1. * @type string $protocol * The network protocol used with the request, such as "http/1.1", * "spdy/3", "h2", "h2c", "webrtc", "tcp", "udp", "quic". See * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids * for details. * @type string $reason * A special parameter for request reason. It is used by security systems * to associate auditing information with a request. * @type \Google\Rpc\Context\AttributeContext\Auth $auth * The request authentication. May be absent for unauthenticated requests. * Derived from the HTTP request `Authorization` header or equivalent. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Rpc\Context\AttributeContext::initOnce(); parent::__construct($data); } /** * The unique ID for a request, which can be propagated to downstream * systems. The ID should have low probability of collision * within a single day for a specific service. * * Generated from protobuf field string id = 1; * @return string */ public function getId() { return $this->id; } /** * The unique ID for a request, which can be propagated to downstream * systems. The ID should have low probability of collision * within a single day for a specific service. * * 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; } /** * The HTTP request method, such as `GET`, `POST`. * * Generated from protobuf field string method = 2; * @return string */ public function getMethod() { return $this->method; } /** * The HTTP request method, such as `GET`, `POST`. * * Generated from protobuf field string method = 2; * @param string $var * @return $this */ public function setMethod($var) { GPBUtil::checkString($var, True); $this->method = $var; return $this; } /** * The HTTP request headers. If multiple headers share the same key, they * must be merged according to the HTTP spec. All header keys must be * lowercased, because HTTP header keys are case-insensitive. * * Generated from protobuf field map headers = 3; * @return \Google\Protobuf\Internal\MapField */ public function getHeaders() { return $this->headers; } /** * The HTTP request headers. If multiple headers share the same key, they * must be merged according to the HTTP spec. All header keys must be * lowercased, because HTTP header keys are case-insensitive. * * Generated from protobuf field map headers = 3; * @param array|\Google\Protobuf\Internal\MapField $var * @return $this */ public function setHeaders($var) { $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); $this->headers = $arr; return $this; } /** * The HTTP URL path, excluding the query parameters. * * Generated from protobuf field string path = 4; * @return string */ public function getPath() { return $this->path; } /** * The HTTP URL path, excluding the query parameters. * * Generated from protobuf field string path = 4; * @param string $var * @return $this */ public function setPath($var) { GPBUtil::checkString($var, True); $this->path = $var; return $this; } /** * The HTTP request `Host` header value. * * Generated from protobuf field string host = 5; * @return string */ public function getHost() { return $this->host; } /** * The HTTP request `Host` header value. * * Generated from protobuf field string host = 5; * @param string $var * @return $this */ public function setHost($var) { GPBUtil::checkString($var, True); $this->host = $var; return $this; } /** * The HTTP URL scheme, such as `http` and `https`. * * Generated from protobuf field string scheme = 6; * @return string */ public function getScheme() { return $this->scheme; } /** * The HTTP URL scheme, such as `http` and `https`. * * Generated from protobuf field string scheme = 6; * @param string $var * @return $this */ public function setScheme($var) { GPBUtil::checkString($var, True); $this->scheme = $var; return $this; } /** * The HTTP URL query in the format of `name1=value1&name2=value2`, as it * appears in the first line of the HTTP request. No decoding is performed. * * Generated from protobuf field string query = 7; * @return string */ public function getQuery() { return $this->query; } /** * The HTTP URL query in the format of `name1=value1&name2=value2`, as it * appears in the first line of the HTTP request. No decoding is performed. * * Generated from protobuf field string query = 7; * @param string $var * @return $this */ public function setQuery($var) { GPBUtil::checkString($var, True); $this->query = $var; return $this; } /** * The timestamp when the `destination` service receives the last byte of * the request. * * Generated from protobuf field .google.protobuf.Timestamp time = 9; * @return \Google\Protobuf\Timestamp|null */ public function getTime() { return $this->time; } public function hasTime() { return isset($this->time); } public function clearTime() { unset($this->time); } /** * The timestamp when the `destination` service receives the last byte of * the request. * * Generated from protobuf field .google.protobuf.Timestamp time = 9; * @param \Google\Protobuf\Timestamp $var * @return $this */ public function setTime($var) { GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); $this->time = $var; return $this; } /** * The HTTP request size in bytes. If unknown, it must be -1. * * Generated from protobuf field int64 size = 10; * @return int|string */ public function getSize() { return $this->size; } /** * The HTTP request size in bytes. If unknown, it must be -1. * * Generated from protobuf field int64 size = 10; * @param int|string $var * @return $this */ public function setSize($var) { GPBUtil::checkInt64($var); $this->size = $var; return $this; } /** * The network protocol used with the request, such as "http/1.1", * "spdy/3", "h2", "h2c", "webrtc", "tcp", "udp", "quic". See * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids * for details. * * Generated from protobuf field string protocol = 11; * @return string */ public function getProtocol() { return $this->protocol; } /** * The network protocol used with the request, such as "http/1.1", * "spdy/3", "h2", "h2c", "webrtc", "tcp", "udp", "quic". See * https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids * for details. * * Generated from protobuf field string protocol = 11; * @param string $var * @return $this */ public function setProtocol($var) { GPBUtil::checkString($var, True); $this->protocol = $var; return $this; } /** * A special parameter for request reason. It is used by security systems * to associate auditing information with a request. * * Generated from protobuf field string reason = 12; * @return string */ public function getReason() { return $this->reason; } /** * A special parameter for request reason. It is used by security systems * to associate auditing information with a request. * * Generated from protobuf field string reason = 12; * @param string $var * @return $this */ public function setReason($var) { GPBUtil::checkString($var, True); $this->reason = $var; return $this; } /** * The request authentication. May be absent for unauthenticated requests. * Derived from the HTTP request `Authorization` header or equivalent. * * Generated from protobuf field .google.rpc.context.AttributeContext.Auth auth = 13; * @return \Google\Rpc\Context\AttributeContext\Auth|null */ public function getAuth() { return $this->auth; } public function hasAuth() { return isset($this->auth); } public function clearAuth() { unset($this->auth); } /** * The request authentication. May be absent for unauthenticated requests. * Derived from the HTTP request `Authorization` header or equivalent. * * Generated from protobuf field .google.rpc.context.AttributeContext.Auth auth = 13; * @param \Google\Rpc\Context\AttributeContext\Auth $var * @return $this */ public function setAuth($var) { GPBUtil::checkMessage($var, \Google\Rpc\Context\AttributeContext\Auth::class); $this->auth = $var; return $this; } } src/Rpc/Context/AttributeContext/Resource.php000064400000055156151742741400015334 0ustar00google.rpc.context.AttributeContext.Resource */ class Resource extends \Google\Protobuf\Internal\Message { /** * The name of the service that this resource belongs to, such as * `pubsub.googleapis.com`. The service may be different from the DNS * hostname that actually serves the request. * * Generated from protobuf field string service = 1; */ protected $service = ''; /** * The stable identifier (name) of a resource on the `service`. A resource * can be logically identified as "//{resource.service}/{resource.name}". * The differences between a resource name and a URI are: * * Resource name is a logical identifier, independent of network * protocol and API version. For example, * `//pubsub.googleapis.com/projects/123/topics/news-feed`. * * URI often includes protocol and version information, so it can * be used directly by applications. For example, * `https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`. * See https://cloud.google.com/apis/design/resource_names for details. * * Generated from protobuf field string name = 2; */ protected $name = ''; /** * The type of the resource. The syntax is platform-specific because * different platforms define their resources differently. * For Google APIs, the type format must be "{service}/{kind}", such as * "pubsub.googleapis.com/Topic". * * Generated from protobuf field string type = 3; */ protected $type = ''; /** * The labels or tags on the resource, such as AWS resource tags and * Kubernetes resource labels. * * Generated from protobuf field map labels = 4; */ private $labels; /** * The unique identifier of the resource. UID is unique in the time * and space for this resource within the scope of the service. It is * typically generated by the server on successful creation of a resource * and must not be changed. UID is used to uniquely identify resources * with resource name reuses. This should be a UUID4. * * Generated from protobuf field string uid = 5; */ protected $uid = ''; /** * Annotations is an unstructured key-value map stored with a resource that * may be set by external tools to store and retrieve arbitrary metadata. * They are not queryable and should be preserved when modifying objects. * More info: https://kubernetes.io/docs/user-guide/annotations * * Generated from protobuf field map annotations = 6; */ private $annotations; /** * Mutable. The display name set by clients. Must be <= 63 characters. * * Generated from protobuf field string display_name = 7; */ protected $display_name = ''; /** * Output only. The timestamp when the resource was created. This may * be either the time creation was initiated or when it was completed. * * Generated from protobuf field .google.protobuf.Timestamp create_time = 8; */ protected $create_time = null; /** * Output only. The timestamp when the resource was last updated. Any * change to the resource made by users must refresh this value. * Changes to a resource made by the service should refresh this value. * * Generated from protobuf field .google.protobuf.Timestamp update_time = 9; */ protected $update_time = null; /** * Output only. The timestamp when the resource was deleted. * If the resource is not deleted, this must be empty. * * Generated from protobuf field .google.protobuf.Timestamp delete_time = 10; */ protected $delete_time = null; /** * Output only. An opaque value that uniquely identifies a version or * generation of a resource. It can be used to confirm that the client * and server agree on the ordering of a resource being written. * * Generated from protobuf field string etag = 11; */ protected $etag = ''; /** * Immutable. The location of the resource. The location encoding is * specific to the service provider, and new encoding may be introduced * as the service evolves. * For Google Cloud products, the encoding is what is used by Google Cloud * APIs, such as `us-east1`, `aws-us-east-1`, and `azure-eastus2`. The * semantics of `location` is identical to the * `cloud.googleapis.com/location` label used by some Google Cloud APIs. * * Generated from protobuf field string location = 12; */ protected $location = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $service * The name of the service that this resource belongs to, such as * `pubsub.googleapis.com`. The service may be different from the DNS * hostname that actually serves the request. * @type string $name * The stable identifier (name) of a resource on the `service`. A resource * can be logically identified as "//{resource.service}/{resource.name}". * The differences between a resource name and a URI are: * * Resource name is a logical identifier, independent of network * protocol and API version. For example, * `//pubsub.googleapis.com/projects/123/topics/news-feed`. * * URI often includes protocol and version information, so it can * be used directly by applications. For example, * `https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`. * See https://cloud.google.com/apis/design/resource_names for details. * @type string $type * The type of the resource. The syntax is platform-specific because * different platforms define their resources differently. * For Google APIs, the type format must be "{service}/{kind}", such as * "pubsub.googleapis.com/Topic". * @type array|\Google\Protobuf\Internal\MapField $labels * The labels or tags on the resource, such as AWS resource tags and * Kubernetes resource labels. * @type string $uid * The unique identifier of the resource. UID is unique in the time * and space for this resource within the scope of the service. It is * typically generated by the server on successful creation of a resource * and must not be changed. UID is used to uniquely identify resources * with resource name reuses. This should be a UUID4. * @type array|\Google\Protobuf\Internal\MapField $annotations * Annotations is an unstructured key-value map stored with a resource that * may be set by external tools to store and retrieve arbitrary metadata. * They are not queryable and should be preserved when modifying objects. * More info: https://kubernetes.io/docs/user-guide/annotations * @type string $display_name * Mutable. The display name set by clients. Must be <= 63 characters. * @type \Google\Protobuf\Timestamp $create_time * Output only. The timestamp when the resource was created. This may * be either the time creation was initiated or when it was completed. * @type \Google\Protobuf\Timestamp $update_time * Output only. The timestamp when the resource was last updated. Any * change to the resource made by users must refresh this value. * Changes to a resource made by the service should refresh this value. * @type \Google\Protobuf\Timestamp $delete_time * Output only. The timestamp when the resource was deleted. * If the resource is not deleted, this must be empty. * @type string $etag * Output only. An opaque value that uniquely identifies a version or * generation of a resource. It can be used to confirm that the client * and server agree on the ordering of a resource being written. * @type string $location * Immutable. The location of the resource. The location encoding is * specific to the service provider, and new encoding may be introduced * as the service evolves. * For Google Cloud products, the encoding is what is used by Google Cloud * APIs, such as `us-east1`, `aws-us-east-1`, and `azure-eastus2`. The * semantics of `location` is identical to the * `cloud.googleapis.com/location` label used by some Google Cloud APIs. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Rpc\Context\AttributeContext::initOnce(); parent::__construct($data); } /** * The name of the service that this resource belongs to, such as * `pubsub.googleapis.com`. The service may be different from the DNS * hostname that actually serves the request. * * Generated from protobuf field string service = 1; * @return string */ public function getService() { return $this->service; } /** * The name of the service that this resource belongs to, such as * `pubsub.googleapis.com`. The service may be different from the DNS * hostname that actually serves the request. * * Generated from protobuf field string service = 1; * @param string $var * @return $this */ public function setService($var) { GPBUtil::checkString($var, True); $this->service = $var; return $this; } /** * The stable identifier (name) of a resource on the `service`. A resource * can be logically identified as "//{resource.service}/{resource.name}". * The differences between a resource name and a URI are: * * Resource name is a logical identifier, independent of network * protocol and API version. For example, * `//pubsub.googleapis.com/projects/123/topics/news-feed`. * * URI often includes protocol and version information, so it can * be used directly by applications. For example, * `https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`. * See https://cloud.google.com/apis/design/resource_names for details. * * Generated from protobuf field string name = 2; * @return string */ public function getName() { return $this->name; } /** * The stable identifier (name) of a resource on the `service`. A resource * can be logically identified as "//{resource.service}/{resource.name}". * The differences between a resource name and a URI are: * * Resource name is a logical identifier, independent of network * protocol and API version. For example, * `//pubsub.googleapis.com/projects/123/topics/news-feed`. * * URI often includes protocol and version information, so it can * be used directly by applications. For example, * `https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`. * See https://cloud.google.com/apis/design/resource_names for details. * * 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 type of the resource. The syntax is platform-specific because * different platforms define their resources differently. * For Google APIs, the type format must be "{service}/{kind}", such as * "pubsub.googleapis.com/Topic". * * Generated from protobuf field string type = 3; * @return string */ public function getType() { return $this->type; } /** * The type of the resource. The syntax is platform-specific because * different platforms define their resources differently. * For Google APIs, the type format must be "{service}/{kind}", such as * "pubsub.googleapis.com/Topic". * * 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 labels or tags on the resource, such as AWS resource tags and * Kubernetes resource labels. * * Generated from protobuf field map labels = 4; * @return \Google\Protobuf\Internal\MapField */ public function getLabels() { return $this->labels; } /** * The labels or tags on the resource, such as AWS resource tags and * Kubernetes resource labels. * * Generated from protobuf field map labels = 4; * @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; } /** * The unique identifier of the resource. UID is unique in the time * and space for this resource within the scope of the service. It is * typically generated by the server on successful creation of a resource * and must not be changed. UID is used to uniquely identify resources * with resource name reuses. This should be a UUID4. * * Generated from protobuf field string uid = 5; * @return string */ public function getUid() { return $this->uid; } /** * The unique identifier of the resource. UID is unique in the time * and space for this resource within the scope of the service. It is * typically generated by the server on successful creation of a resource * and must not be changed. UID is used to uniquely identify resources * with resource name reuses. This should be a UUID4. * * Generated from protobuf field string uid = 5; * @param string $var * @return $this */ public function setUid($var) { GPBUtil::checkString($var, True); $this->uid = $var; return $this; } /** * Annotations is an unstructured key-value map stored with a resource that * may be set by external tools to store and retrieve arbitrary metadata. * They are not queryable and should be preserved when modifying objects. * More info: https://kubernetes.io/docs/user-guide/annotations * * Generated from protobuf field map annotations = 6; * @return \Google\Protobuf\Internal\MapField */ public function getAnnotations() { return $this->annotations; } /** * Annotations is an unstructured key-value map stored with a resource that * may be set by external tools to store and retrieve arbitrary metadata. * They are not queryable and should be preserved when modifying objects. * More info: https://kubernetes.io/docs/user-guide/annotations * * Generated from protobuf field map annotations = 6; * @param array|\Google\Protobuf\Internal\MapField $var * @return $this */ public function setAnnotations($var) { $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); $this->annotations = $arr; return $this; } /** * Mutable. The display name set by clients. Must be <= 63 characters. * * Generated from protobuf field string display_name = 7; * @return string */ public function getDisplayName() { return $this->display_name; } /** * Mutable. The display name set by clients. Must be <= 63 characters. * * 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; } /** * Output only. The timestamp when the resource was created. This may * be either the time creation was initiated or when it was completed. * * Generated from protobuf field .google.protobuf.Timestamp create_time = 8; * @return \Google\Protobuf\Timestamp|null */ public function getCreateTime() { return $this->create_time; } public function hasCreateTime() { return isset($this->create_time); } public function clearCreateTime() { unset($this->create_time); } /** * Output only. The timestamp when the resource was created. This may * be either the time creation was initiated or when it was completed. * * Generated from protobuf field .google.protobuf.Timestamp create_time = 8; * @param \Google\Protobuf\Timestamp $var * @return $this */ public function setCreateTime($var) { GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); $this->create_time = $var; return $this; } /** * Output only. The timestamp when the resource was last updated. Any * change to the resource made by users must refresh this value. * Changes to a resource made by the service should refresh this value. * * Generated from protobuf field .google.protobuf.Timestamp update_time = 9; * @return \Google\Protobuf\Timestamp|null */ public function getUpdateTime() { return $this->update_time; } public function hasUpdateTime() { return isset($this->update_time); } public function clearUpdateTime() { unset($this->update_time); } /** * Output only. The timestamp when the resource was last updated. Any * change to the resource made by users must refresh this value. * Changes to a resource made by the service should refresh this value. * * Generated from protobuf field .google.protobuf.Timestamp update_time = 9; * @param \Google\Protobuf\Timestamp $var * @return $this */ public function setUpdateTime($var) { GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); $this->update_time = $var; return $this; } /** * Output only. The timestamp when the resource was deleted. * If the resource is not deleted, this must be empty. * * Generated from protobuf field .google.protobuf.Timestamp delete_time = 10; * @return \Google\Protobuf\Timestamp|null */ public function getDeleteTime() { return $this->delete_time; } public function hasDeleteTime() { return isset($this->delete_time); } public function clearDeleteTime() { unset($this->delete_time); } /** * Output only. The timestamp when the resource was deleted. * If the resource is not deleted, this must be empty. * * Generated from protobuf field .google.protobuf.Timestamp delete_time = 10; * @param \Google\Protobuf\Timestamp $var * @return $this */ public function setDeleteTime($var) { GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); $this->delete_time = $var; return $this; } /** * Output only. An opaque value that uniquely identifies a version or * generation of a resource. It can be used to confirm that the client * and server agree on the ordering of a resource being written. * * Generated from protobuf field string etag = 11; * @return string */ public function getEtag() { return $this->etag; } /** * Output only. An opaque value that uniquely identifies a version or * generation of a resource. It can be used to confirm that the client * and server agree on the ordering of a resource being written. * * Generated from protobuf field string etag = 11; * @param string $var * @return $this */ public function setEtag($var) { GPBUtil::checkString($var, True); $this->etag = $var; return $this; } /** * Immutable. The location of the resource. The location encoding is * specific to the service provider, and new encoding may be introduced * as the service evolves. * For Google Cloud products, the encoding is what is used by Google Cloud * APIs, such as `us-east1`, `aws-us-east-1`, and `azure-eastus2`. The * semantics of `location` is identical to the * `cloud.googleapis.com/location` label used by some Google Cloud APIs. * * Generated from protobuf field string location = 12; * @return string */ public function getLocation() { return $this->location; } /** * Immutable. The location of the resource. The location encoding is * specific to the service provider, and new encoding may be introduced * as the service evolves. * For Google Cloud products, the encoding is what is used by Google Cloud * APIs, such as `us-east1`, `aws-us-east-1`, and `azure-eastus2`. The * semantics of `location` is identical to the * `cloud.googleapis.com/location` label used by some Google Cloud APIs. * * Generated from protobuf field string location = 12; * @param string $var * @return $this */ public function setLocation($var) { GPBUtil::checkString($var, True); $this->location = $var; return $this; } } src/Rpc/Context/AttributeContext/Response.php000064400000017320151742741400015332 0ustar00google.rpc.context.AttributeContext.Response */ class Response extends \Google\Protobuf\Internal\Message { /** * The HTTP response status code, such as `200` and `404`. * * Generated from protobuf field int64 code = 1; */ protected $code = 0; /** * The HTTP response size in bytes. If unknown, it must be -1. * * Generated from protobuf field int64 size = 2; */ protected $size = 0; /** * The HTTP response headers. If multiple headers share the same key, they * must be merged according to HTTP spec. All header keys must be * lowercased, because HTTP header keys are case-insensitive. * * Generated from protobuf field map headers = 3; */ private $headers; /** * The timestamp when the `destination` service sends the last byte of * the response. * * Generated from protobuf field .google.protobuf.Timestamp time = 4; */ protected $time = null; /** * The amount of time it takes the backend service to fully respond to a * request. Measured from when the destination service starts to send the * request to the backend until when the destination service receives the * complete response from the backend. * * Generated from protobuf field .google.protobuf.Duration backend_latency = 5; */ protected $backend_latency = null; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int|string $code * The HTTP response status code, such as `200` and `404`. * @type int|string $size * The HTTP response size in bytes. If unknown, it must be -1. * @type array|\Google\Protobuf\Internal\MapField $headers * The HTTP response headers. If multiple headers share the same key, they * must be merged according to HTTP spec. All header keys must be * lowercased, because HTTP header keys are case-insensitive. * @type \Google\Protobuf\Timestamp $time * The timestamp when the `destination` service sends the last byte of * the response. * @type \Google\Protobuf\Duration $backend_latency * The amount of time it takes the backend service to fully respond to a * request. Measured from when the destination service starts to send the * request to the backend until when the destination service receives the * complete response from the backend. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Rpc\Context\AttributeContext::initOnce(); parent::__construct($data); } /** * The HTTP response status code, such as `200` and `404`. * * Generated from protobuf field int64 code = 1; * @return int|string */ public function getCode() { return $this->code; } /** * The HTTP response status code, such as `200` and `404`. * * Generated from protobuf field int64 code = 1; * @param int|string $var * @return $this */ public function setCode($var) { GPBUtil::checkInt64($var); $this->code = $var; return $this; } /** * The HTTP response size in bytes. If unknown, it must be -1. * * Generated from protobuf field int64 size = 2; * @return int|string */ public function getSize() { return $this->size; } /** * The HTTP response size in bytes. If unknown, it must be -1. * * Generated from protobuf field int64 size = 2; * @param int|string $var * @return $this */ public function setSize($var) { GPBUtil::checkInt64($var); $this->size = $var; return $this; } /** * The HTTP response headers. If multiple headers share the same key, they * must be merged according to HTTP spec. All header keys must be * lowercased, because HTTP header keys are case-insensitive. * * Generated from protobuf field map headers = 3; * @return \Google\Protobuf\Internal\MapField */ public function getHeaders() { return $this->headers; } /** * The HTTP response headers. If multiple headers share the same key, they * must be merged according to HTTP spec. All header keys must be * lowercased, because HTTP header keys are case-insensitive. * * Generated from protobuf field map headers = 3; * @param array|\Google\Protobuf\Internal\MapField $var * @return $this */ public function setHeaders($var) { $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); $this->headers = $arr; return $this; } /** * The timestamp when the `destination` service sends the last byte of * the response. * * Generated from protobuf field .google.protobuf.Timestamp time = 4; * @return \Google\Protobuf\Timestamp|null */ public function getTime() { return $this->time; } public function hasTime() { return isset($this->time); } public function clearTime() { unset($this->time); } /** * The timestamp when the `destination` service sends the last byte of * the response. * * Generated from protobuf field .google.protobuf.Timestamp time = 4; * @param \Google\Protobuf\Timestamp $var * @return $this */ public function setTime($var) { GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); $this->time = $var; return $this; } /** * The amount of time it takes the backend service to fully respond to a * request. Measured from when the destination service starts to send the * request to the backend until when the destination service receives the * complete response from the backend. * * Generated from protobuf field .google.protobuf.Duration backend_latency = 5; * @return \Google\Protobuf\Duration|null */ public function getBackendLatency() { return $this->backend_latency; } public function hasBackendLatency() { return isset($this->backend_latency); } public function clearBackendLatency() { unset($this->backend_latency); } /** * The amount of time it takes the backend service to fully respond to a * request. Measured from when the destination service starts to send the * request to the backend until when the destination service receives the * complete response from the backend. * * Generated from protobuf field .google.protobuf.Duration backend_latency = 5; * @param \Google\Protobuf\Duration $var * @return $this */ public function setBackendLatency($var) { GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); $this->backend_latency = $var; return $this; } } src/Rpc/Context/AuditContext.php000064400000017222151742741400012640 0ustar00google.rpc.context.AuditContext */ class AuditContext extends \Google\Protobuf\Internal\Message { /** * Serialized audit log. * * Generated from protobuf field bytes audit_log = 1; */ protected $audit_log = ''; /** * An API request message that is scrubbed based on the method annotation. * This field should only be filled if audit_log field is present. * Service Control will use this to assemble a complete log for Cloud Audit * Logs and Google internal audit logs. * * Generated from protobuf field .google.protobuf.Struct scrubbed_request = 2; */ protected $scrubbed_request = null; /** * An API response message that is scrubbed based on the method annotation. * This field should only be filled if audit_log field is present. * Service Control will use this to assemble a complete log for Cloud Audit * Logs and Google internal audit logs. * * Generated from protobuf field .google.protobuf.Struct scrubbed_response = 3; */ protected $scrubbed_response = null; /** * Number of scrubbed response items. * * Generated from protobuf field int32 scrubbed_response_item_count = 4; */ protected $scrubbed_response_item_count = 0; /** * Audit resource name which is scrubbed. * * Generated from protobuf field string target_resource = 5; */ protected $target_resource = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $audit_log * Serialized audit log. * @type \Google\Protobuf\Struct $scrubbed_request * An API request message that is scrubbed based on the method annotation. * This field should only be filled if audit_log field is present. * Service Control will use this to assemble a complete log for Cloud Audit * Logs and Google internal audit logs. * @type \Google\Protobuf\Struct $scrubbed_response * An API response message that is scrubbed based on the method annotation. * This field should only be filled if audit_log field is present. * Service Control will use this to assemble a complete log for Cloud Audit * Logs and Google internal audit logs. * @type int $scrubbed_response_item_count * Number of scrubbed response items. * @type string $target_resource * Audit resource name which is scrubbed. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Rpc\Context\AuditContext::initOnce(); parent::__construct($data); } /** * Serialized audit log. * * Generated from protobuf field bytes audit_log = 1; * @return string */ public function getAuditLog() { return $this->audit_log; } /** * Serialized audit log. * * Generated from protobuf field bytes audit_log = 1; * @param string $var * @return $this */ public function setAuditLog($var) { GPBUtil::checkString($var, False); $this->audit_log = $var; return $this; } /** * An API request message that is scrubbed based on the method annotation. * This field should only be filled if audit_log field is present. * Service Control will use this to assemble a complete log for Cloud Audit * Logs and Google internal audit logs. * * Generated from protobuf field .google.protobuf.Struct scrubbed_request = 2; * @return \Google\Protobuf\Struct|null */ public function getScrubbedRequest() { return $this->scrubbed_request; } public function hasScrubbedRequest() { return isset($this->scrubbed_request); } public function clearScrubbedRequest() { unset($this->scrubbed_request); } /** * An API request message that is scrubbed based on the method annotation. * This field should only be filled if audit_log field is present. * Service Control will use this to assemble a complete log for Cloud Audit * Logs and Google internal audit logs. * * Generated from protobuf field .google.protobuf.Struct scrubbed_request = 2; * @param \Google\Protobuf\Struct $var * @return $this */ public function setScrubbedRequest($var) { GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class); $this->scrubbed_request = $var; return $this; } /** * An API response message that is scrubbed based on the method annotation. * This field should only be filled if audit_log field is present. * Service Control will use this to assemble a complete log for Cloud Audit * Logs and Google internal audit logs. * * Generated from protobuf field .google.protobuf.Struct scrubbed_response = 3; * @return \Google\Protobuf\Struct|null */ public function getScrubbedResponse() { return $this->scrubbed_response; } public function hasScrubbedResponse() { return isset($this->scrubbed_response); } public function clearScrubbedResponse() { unset($this->scrubbed_response); } /** * An API response message that is scrubbed based on the method annotation. * This field should only be filled if audit_log field is present. * Service Control will use this to assemble a complete log for Cloud Audit * Logs and Google internal audit logs. * * Generated from protobuf field .google.protobuf.Struct scrubbed_response = 3; * @param \Google\Protobuf\Struct $var * @return $this */ public function setScrubbedResponse($var) { GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class); $this->scrubbed_response = $var; return $this; } /** * Number of scrubbed response items. * * Generated from protobuf field int32 scrubbed_response_item_count = 4; * @return int */ public function getScrubbedResponseItemCount() { return $this->scrubbed_response_item_count; } /** * Number of scrubbed response items. * * Generated from protobuf field int32 scrubbed_response_item_count = 4; * @param int $var * @return $this */ public function setScrubbedResponseItemCount($var) { GPBUtil::checkInt32($var); $this->scrubbed_response_item_count = $var; return $this; } /** * Audit resource name which is scrubbed. * * Generated from protobuf field string target_resource = 5; * @return string */ public function getTargetResource() { return $this->target_resource; } /** * Audit resource name which is scrubbed. * * Generated from protobuf field string target_resource = 5; * @param string $var * @return $this */ public function setTargetResource($var) { GPBUtil::checkString($var, True); $this->target_resource = $var; return $this; } } src/Rpc/DebugInfo.php000064400000005343151742741400010444 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 array|\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 array|\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.php000064400000021170151742741400010503 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 * regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`, which represents * UPPER_SNAKE_CASE. * * 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 * regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`, which represents * UPPER_SNAKE_CASE. * @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 * regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`, which represents * UPPER_SNAKE_CASE. * * 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 * regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`, which represents * UPPER_SNAKE_CASE. * * 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.php000064400000004275151742741400007475 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 array<\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 array<\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.php000064400000004340151742741400010363 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; } } src/Rpc/LocalizedMessage.php000064400000005656151742741400012024 0ustar00google.rpc.LocalizedMessage */ class LocalizedMessage extends \Google\Protobuf\Internal\Message { /** * The locale used following the specification defined at * https://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 * https://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 * https://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 * https://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.php000064400000004250151742741400012543 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 array<\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 array<\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.php000064400000012025151742741400014506 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; } } src/Rpc/QuotaFailure.php000064400000004561151742741400011204 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 array<\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 array<\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.php000064400000010260151742741400013141 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; } } src/Rpc/RequestInfo.php000064400000006640151742741400011047 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.php000064400000015204151742741400011202 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.php000064400000005166151742741400010526 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.php000064400000012133151742741400010060 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 array<\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 array<\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.php000064400000005432151742741400011652 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.php000064400000032260151742741400010053 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; */ protected $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; */ protected $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; */ protected $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 rendered as a solid color * (as if the alpha value had been explicitly given a value of 1.0). * * Generated from protobuf field .google.protobuf.FloatValue alpha = 4; */ protected $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 rendered as a solid color * (as if the alpha value had been explicitly given 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 rendered as a solid color * (as if the alpha value had been explicitly given a value of 1.0). * * Generated from protobuf field .google.protobuf.FloatValue alpha = 4; * @return \Google\Protobuf\FloatValue|null */ public function getAlpha() { return $this->alpha; } public function hasAlpha() { return isset($this->alpha); } public function clearAlpha() { unset($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 rendered as a solid color * (as if the alpha value had been explicitly given a value of 1.0). * * Generated from protobuf field .google.protobuf.FloatValue alpha = 4; * @return float|null */ public function getAlphaUnwrapped() { return $this->readWrapperValue("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 rendered as a solid color * (as if the alpha value had been explicitly given 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 rendered as a solid color * (as if the alpha value had been explicitly given a value of 1.0). * * Generated from protobuf field .google.protobuf.FloatValue alpha = 4; * @param float|null $var * @return $this */ public function setAlphaUnwrapped($var) { $this->writeWrapperValue("alpha", $var); return $this;} } src/Type/Date.php000064400000011011151742741400007641 0ustar00google.type.Date */ class Date extends \Google\Protobuf\Internal\Message { /** * Year of the date. Must be from 1 to 9999, or 0 to specify a date without * a year. * * Generated from protobuf field int32 year = 1; */ protected $year = 0; /** * Month of a year. Must be from 1 to 12, or 0 to specify a year without a * month and day. * * Generated from protobuf field int32 month = 2; */ protected $month = 0; /** * Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 * to specify a year by itself or a year and month where the day isn't * significant. * * Generated from protobuf field int32 day = 3; */ protected $day = 0; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int $year * Year of the date. Must be from 1 to 9999, or 0 to specify a date without * a year. * @type int $month * Month of a year. Must be from 1 to 12, or 0 to specify a year without a * month and day. * @type int $day * Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 * to specify a year by itself or a year and month where the day isn't * significant. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Type\Date::initOnce(); parent::__construct($data); } /** * Year of the date. Must be from 1 to 9999, or 0 to specify a date without * a year. * * Generated from protobuf field int32 year = 1; * @return int */ public function getYear() { return $this->year; } /** * Year of the date. Must be from 1 to 9999, or 0 to specify 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 a year. Must be from 1 to 12, or 0 to specify a year without a * month and day. * * Generated from protobuf field int32 month = 2; * @return int */ public function getMonth() { return $this->month; } /** * Month of a year. Must be from 1 to 12, or 0 to specify 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 a month. Must be from 1 to 31 and valid for the year and month, or 0 * to specify a year by itself or a year and month where the day isn't * significant. * * Generated from protobuf field int32 day = 3; * @return int */ public function getDay() { return $this->day; } /** * Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 * to specify a year by itself or a year and month where the day isn't * 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.php000064400000025767151742741400010507 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; */ protected $year = 0; /** * Required. Month of year. Must be from 1 to 12. * * Generated from protobuf field int32 month = 2; */ protected $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; */ protected $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; */ protected $hours = 0; /** * Required. Minutes of hour of day. Must be from 0 to 59. * * Generated from protobuf field int32 minutes = 5; */ protected $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; */ protected $seconds = 0; /** * Required. Fractions of seconds in nanoseconds. Must be from 0 to * 999,999,999. * * Generated from protobuf field int32 nanos = 7; */ protected $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|null */ public function getUtcOffset() { return $this->readOneof(8); } public function hasUtcOffset() { return $this->hasOneof(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|null */ public function getTimeZone() { return $this->readOneof(9); } public function hasTimeZone() { return $this->hasOneof(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.php000064400000004406151742741400010614 0ustar00google.type.DayOfWeek */ class DayOfWeek { /** * The day of the week is unspecified. * * Generated from protobuf enum DAY_OF_WEEK_UNSPECIFIED = 0; */ const DAY_OF_WEEK_UNSPECIFIED = 0; /** * Monday * * Generated from protobuf enum MONDAY = 1; */ const MONDAY = 1; /** * Tuesday * * Generated from protobuf enum TUESDAY = 2; */ const TUESDAY = 2; /** * Wednesday * * Generated from protobuf enum WEDNESDAY = 3; */ const WEDNESDAY = 3; /** * Thursday * * Generated from protobuf enum THURSDAY = 4; */ const THURSDAY = 4; /** * Friday * * Generated from protobuf enum FRIDAY = 5; */ const FRIDAY = 5; /** * Saturday * * Generated from protobuf enum SATURDAY = 6; */ const SATURDAY = 6; /** * 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.php000064400000032673151742741400010343 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.php000064400000015076151742741400007721 0ustar00google.type.Expr */ class Expr extends \Google\Protobuf\Internal\Message { /** * Textual representation of an expression in Common Expression Language * syntax. * * Generated from protobuf field string expression = 1; */ protected $expression = ''; /** * 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; */ protected $title = ''; /** * 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; */ protected $description = ''; /** * 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; */ protected $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. * @type string $title * 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 * 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 * 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. * * 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. * * 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; } /** * 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; } /** * 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; } /** * 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; } /** * 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; } /** * 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; } /** * 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.php000064400000005204151742741400010540 0ustar00google.type.Fraction */ class Fraction extends \Google\Protobuf\Internal\Message { /** * The numerator in the fraction, e.g. 2 in 2/3. * * Generated from protobuf field int64 numerator = 1; */ protected $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; */ protected $denominator = 0; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int|string $numerator * The numerator in the fraction, 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 numerator in the fraction, e.g. 2 in 2/3. * * Generated from protobuf field int64 numerator = 1; * @return int|string */ public function getNumerator() { return $this->numerator; } /** * The numerator in the fraction, 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.php000064400000010161151742741400010555 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 $this->start_time; } 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 $this->end_time; } 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.php000064400000005525151742741400010162 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; */ protected $latitude = 0.0; /** * The longitude in degrees. It must be in the range [-180.0, +180.0]. * * Generated from protobuf field double longitude = 2; */ protected $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.php000064400000006046151742741400011553 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.php000064400000011670151742741400010066 0ustar00google.type.Money */ class Money extends \Google\Protobuf\Internal\Message { /** * The three-letter currency code defined in ISO 4217. * * Generated from protobuf field string currency_code = 1; */ protected $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; */ protected $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; */ protected $nanos = 0; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $currency_code * The three-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 three-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 three-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.php000064400000006167151742741400010071 0ustar00google.type.Month */ class Month { /** * The unspecified 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.php000064400000021427151742741400011222 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.php000064400000007577151742741400013126 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.php000064400000064611151742741400011552 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; */ protected $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; */ protected $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; */ protected $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; */ protected $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; */ protected $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; */ protected $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; */ protected $locality = ''; /** * Optional. Sublocality of the address. * For example, this can be neighborhoods, boroughs, districts. * * Generated from protobuf field string sublocality = 8; */ protected $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; */ protected $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 array|\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 array|\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 array|\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 array|\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.php000064400000013700151742741400011120 0ustar00google.type.Quaternion */ class Quaternion extends \Google\Protobuf\Internal\Message { /** * The x component. * * Generated from protobuf field double x = 1; */ protected $x = 0.0; /** * The y component. * * Generated from protobuf field double y = 2; */ protected $y = 0.0; /** * The z component. * * Generated from protobuf field double z = 3; */ protected $z = 0.0; /** * The scalar component. * * Generated from protobuf field double w = 4; */ protected $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.php000064400000011752151742741400010621 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; */ protected $hours = 0; /** * Minutes of hour of day. Must be from 0 to 59. * * Generated from protobuf field int32 minutes = 2; */ protected $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; */ protected $seconds = 0; /** * Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. * * Generated from protobuf field int32 nanos = 4; */ protected $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.php000064400000005020151742741400010521 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; */ protected $id = ''; /** * Optional. IANA Time Zone Database version number, e.g. "2019a". * * Generated from protobuf field string version = 2; */ protected $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; } }