allow vendord
All checks were successful
Build, Push and Deploy / build-and-push (push) Successful in 3m3s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 16s
Build, Push and Deploy / deploy-staging (push) Successful in 32s
Build, Push and Deploy / deploy-production (push) Has been skipped
Build, Push and Deploy / cleanup (push) Successful in 1s

This commit is contained in:
2026-03-30 14:54:57 +07:00
parent 66aed7c4e8
commit b5e3a778ce
21316 changed files with 2777892 additions and 13 deletions

View File

@@ -0,0 +1,87 @@
# 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))

View File

@@ -0,0 +1,43 @@
# 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/)

View File

@@ -0,0 +1,45 @@
## 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-protos

201
vendor/google/common-protos/LICENSE vendored Normal file
View File

@@ -0,0 +1,201 @@
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.

41
vendor/google/common-protos/README.md vendored Normal file
View File

@@ -0,0 +1,41 @@
## 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/

View File

@@ -0,0 +1,7 @@
# 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.

1
vendor/google/common-protos/VERSION vendored Normal file
View File

@@ -0,0 +1 @@
4.12.4

View File

@@ -0,0 +1,41 @@
{
"name": "google/common-protos",
"type": "library",
"description": "Google API Common Protos for PHP",
"version": "4.12.4",
"keywords": [
"google"
],
"homepage": "https://github.com/googleapis/common-protos-php",
"license": "Apache-2.0",
"require": {
"php": "^8.1",
"google/protobuf": "^4.31"
},
"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"
}
}
}

View File

@@ -0,0 +1,29 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/api/annotations.proto
namespace GPBMetadata\Google\Api;
class Annotations
{
public static $is_initialized = false;
public static function initOnce() {
$pool = \Google\Protobuf\Internal\DescriptorPool::getGeneratedPool();
if (static::$is_initialized == true) {
return;
}
\GPBMetadata\Google\Api\Http::initOnce();
$pool->internalAddGeneratedFile(
'
Ä
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;
}
}

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,33 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/api/billing.proto
namespace GPBMetadata\Google\Api;
class Billing
{
public static $is_initialized = false;
public static function initOnce() {
$pool = \Google\Protobuf\Internal\DescriptorPool::getGeneratedPool();
if (static::$is_initialized == true) {
return;
}
$pool->internalAddGeneratedFile(
'
´
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;
}
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,36 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/api/context.proto
namespace GPBMetadata\Google\Api;
class Context
{
public static $is_initialized = false;
public static function initOnce() {
$pool = \Google\Protobuf\Internal\DescriptorPool::getGeneratedPool();
if (static::$is_initialized == true) {
return;
}
$pool->internalAddGeneratedFile(
'
á
google/api/context.proto
google.api"1
Context&
rules ( 2.google.api.ContextRule"<EFBFBD>
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;
}
}

View File

@@ -0,0 +1,32 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/api/control.proto
namespace GPBMetadata\Google\Api;
class Control
{
public static $is_initialized = false;
public static function initOnce() {
$pool = \Google\Protobuf\Internal\DescriptorPool::getGeneratedPool();
if (static::$is_initialized == true) {
return;
}
\GPBMetadata\Google\Api\Policy::initOnce();
$pool->internalAddGeneratedFile(
'
ñ
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;
}
}

Binary file not shown.

View File

@@ -0,0 +1,43 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/api/documentation.proto
namespace GPBMetadata\Google\Api;
class Documentation
{
public static $is_initialized = false;
public static function initOnce() {
$pool = \Google\Protobuf\Internal\DescriptorPool::getGeneratedPool();
if (static::$is_initialized == true) {
return;
}
$pool->internalAddGeneratedFile(
'
<EFBFBD>
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;
}
}

View File

@@ -0,0 +1,34 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/api/endpoint.proto
namespace GPBMetadata\Google\Api;
class Endpoint
{
public static $is_initialized = false;
public static function initOnce() {
$pool = \Google\Protobuf\Internal\DescriptorPool::getGeneratedPool();
if (static::$is_initialized == true) {
return;
}
$pool->internalAddGeneratedFile(
'
ï
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;
}
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,34 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/api/httpbody.proto
namespace GPBMetadata\Google\Api;
class Httpbody
{
public static $is_initialized = false;
public static function initOnce() {
$pool = \Google\Protobuf\Internal\DescriptorPool::getGeneratedPool();
if (static::$is_initialized == true) {
return;
}
\GPBMetadata\Google\Protobuf\Any::initOnce();
$pool->internalAddGeneratedFile(
'
ð
google/api/httpbody.proto
google.api"X
HttpBody
content_type ( 
data ( (
extensions ( 2.google.protobuf.AnyBe
com.google.apiB HttpBodyProtoPZ;google.golang.org/genproto/googleapis/api/httpbody;httpbody¢GAPIbproto3'
, true);
static::$is_initialized = true;
}
}

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,34 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/api/log.proto
namespace GPBMetadata\Google\Api;
class Log
{
public static $is_initialized = false;
public static function initOnce() {
$pool = \Google\Protobuf\Internal\DescriptorPool::getGeneratedPool();
if (static::$is_initialized == true) {
return;
}
\GPBMetadata\Google\Api\Label::initOnce();
$pool->internalAddGeneratedFile(
'
<EFBFBD>
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;
}
}

View File

@@ -0,0 +1,34 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/api/logging.proto
namespace GPBMetadata\Google\Api;
class Logging
{
public static $is_initialized = false;
public static function initOnce() {
$pool = \Google\Protobuf\Internal\DescriptorPool::getGeneratedPool();
if (static::$is_initialized == true) {
return;
}
$pool->internalAddGeneratedFile(
'
ø
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;
}
}

Binary file not shown.

View File

@@ -0,0 +1,50 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/api/monitored_resource.proto
namespace GPBMetadata\Google\Api;
class MonitoredResource
{
public static $is_initialized = false;
public static function initOnce() {
$pool = \Google\Protobuf\Internal\DescriptorPool::getGeneratedPool();
if (static::$is_initialized == true) {
return;
}
\GPBMetadata\Google\Api\Label::initOnce();
\GPBMetadata\Google\Api\LaunchStage::initOnce();
\GPBMetadata\Google\Protobuf\Struct::initOnce();
$pool->internalAddGeneratedFile(
'
Œ
#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 ( :8Bv
com.google.apiBMonitoredResourceProtoPZCgoogle.golang.org/genproto/googleapis/api/monitoredres;monitoredres¢GAPIbproto3'
, true);
static::$is_initialized = true;
}
}

View File

@@ -0,0 +1,35 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/api/monitoring.proto
namespace GPBMetadata\Google\Api;
class Monitoring
{
public static $is_initialized = false;
public static function initOnce() {
$pool = \Google\Protobuf\Internal\DescriptorPool::getGeneratedPool();
if (static::$is_initialized == true) {
return;
}
$pool->internalAddGeneratedFile(
'

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;
}
}

View File

@@ -0,0 +1,35 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/api/policy.proto
namespace GPBMetadata\Google\Api;
class Policy
{
public static $is_initialized = false;
public static function initOnce() {
$pool = \Google\Protobuf\Internal\DescriptorPool::getGeneratedPool();
if (static::$is_initialized == true) {
return;
}
$pool->internalAddGeneratedFile(
'
è
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.FieldPolicyBm
com.google.apiB PolicyProtoPZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig¢GAPIbproto3'
, true);
static::$is_initialized = true;
}
}

View File

@@ -0,0 +1,55 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/api/quota.proto
namespace GPBMetadata\Google\Api;
class Quota
{
public static $is_initialized = false;
public static function initOnce() {
$pool = \Google\Protobuf\Internal\DescriptorPool::getGeneratedPool();
if (static::$is_initialized == true) {
return;
}
$pool->internalAddGeneratedFile(
'
¥
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;
}
}

Binary file not shown.

View File

@@ -0,0 +1,33 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/api/routing.proto
namespace GPBMetadata\Google\Api;
class Routing
{
public static $is_initialized = false;
public static function initOnce() {
$pool = \Google\Protobuf\Internal\DescriptorPool::getGeneratedPool();
if (static::$is_initialized == true) {
return;
}
$pool->internalAddGeneratedFile(
'
¿
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;
}
}

View File

@@ -0,0 +1,80 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/api/service.proto
namespace GPBMetadata\Google\Api;
class Service
{
public static $is_initialized = false;
public static function initOnce() {
$pool = \Google\Protobuf\Internal\DescriptorPool::getGeneratedPool();
if (static::$is_initialized == true) {
return;
}
\GPBMetadata\Google\Api\Auth::initOnce();
\GPBMetadata\Google\Api\Backend::initOnce();
\GPBMetadata\Google\Api\Billing::initOnce();
\GPBMetadata\Google\Api\Client::initOnce();
\GPBMetadata\Google\Api\Context::initOnce();
\GPBMetadata\Google\Api\Control::initOnce();
\GPBMetadata\Google\Api\Documentation::initOnce();
\GPBMetadata\Google\Api\Endpoint::initOnce();
\GPBMetadata\Google\Api\Http::initOnce();
\GPBMetadata\Google\Api\Log::initOnce();
\GPBMetadata\Google\Api\Logging::initOnce();
\GPBMetadata\Google\Api\Metric::initOnce();
\GPBMetadata\Google\Api\MonitoredResource::initOnce();
\GPBMetadata\Google\Api\Monitoring::initOnce();
\GPBMetadata\Google\Api\Quota::initOnce();
\GPBMetadata\Google\Api\SourceInfo::initOnce();
\GPBMetadata\Google\Api\SystemParameter::initOnce();
\GPBMetadata\Google\Api\Usage::initOnce();
\GPBMetadata\Google\Protobuf\Api::initOnce();
\GPBMetadata\Google\Protobuf\Type::initOnce();
\GPBMetadata\Google\Protobuf\Wrappers::initOnce();
$pool->internalAddGeneratedFile(
'
É
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;
}
}

View File

@@ -0,0 +1,32 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/api/source_info.proto
namespace GPBMetadata\Google\Api;
class SourceInfo
{
public static $is_initialized = false;
public static function initOnce() {
$pool = \Google\Protobuf\Internal\DescriptorPool::getGeneratedPool();
if (static::$is_initialized == true) {
return;
}
\GPBMetadata\Google\Protobuf\Any::initOnce();
$pool->internalAddGeneratedFile(
'
ß
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;
}
}

View File

@@ -0,0 +1,38 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/api/system_parameter.proto
namespace GPBMetadata\Google\Api;
class SystemParameter
{
public static $is_initialized = false;
public static function initOnce() {
$pool = \Google\Protobuf\Internal\DescriptorPool::getGeneratedPool();
if (static::$is_initialized == true) {
return;
}
$pool->internalAddGeneratedFile(
'
 
!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;
}
}

View File

@@ -0,0 +1,37 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/api/usage.proto
namespace GPBMetadata\Google\Api;
class Usage
{
public static $is_initialized = false;
public static function initOnce() {
$pool = \Google\Protobuf\Internal\DescriptorPool::getGeneratedPool();
if (static::$is_initialized == true) {
return;
}
$pool->internalAddGeneratedFile(
'
å
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;
}
}

View File

@@ -0,0 +1,34 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/api/visibility.proto
namespace GPBMetadata\Google\Api;
class Visibility
{
public static $is_initialized = false;
public static function initOnce() {
$pool = \Google\Protobuf\Internal\DescriptorPool::getGeneratedPool();
if (static::$is_initialized == true) {
return;
}
$pool->internalAddGeneratedFile(
'
²
google/api/visibility.proto
google.api google/protobuf/descriptor.proto"7
Visibility)
rules ( 2.google.api.VisibilityRule"7
VisibilityRule
selector ( 
restriction ( Bk
com.google.apiBVisibilityProtoPZ?google.golang.org/genproto/googleapis/api/visibility;visibility¢GAPIbproto3'
, true);
static::$is_initialized = true;
}
}

Binary file not shown.

View File

@@ -0,0 +1,53 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/cloud/location/locations.proto
namespace GPBMetadata\Google\Cloud\Location;
class Locations
{
public static $is_initialized = false;
public static function initOnce() {
$pool = \Google\Protobuf\Internal\DescriptorPool::getGeneratedPool();
if (static::$is_initialized == true) {
return;
}
\GPBMetadata\Google\Api\Annotations::initOnce();
\GPBMetadata\Google\Protobuf\Any::initOnce();
\GPBMetadata\Google\Api\Client::initOnce();
$pool->internalAddGeneratedFile(
'
Ó
%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;
}
}

View File

@@ -0,0 +1,53 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/iam/v1/iam_policy.proto
namespace GPBMetadata\Google\Iam\V1;
class IamPolicy
{
public static $is_initialized = false;
public static function initOnce() {
$pool = \Google\Protobuf\Internal\DescriptorPool::getGeneratedPool();
if (static::$is_initialized == true) {
return;
}
\GPBMetadata\Google\Api\Annotations::initOnce();
\GPBMetadata\Google\Api\Client::initOnce();
\GPBMetadata\Google\Api\FieldBehavior::initOnce();
\GPBMetadata\Google\Api\Resource::initOnce();
\GPBMetadata\Google\Iam\V1\Options::initOnce();
\GPBMetadata\Google\Iam\V1\Policy::initOnce();
\GPBMetadata\Google\Protobuf\FieldMask::initOnce();
$pool->internalAddGeneratedFile(
'
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"<EFBFBD>
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;
}
}

View File

@@ -0,0 +1,30 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/iam/v1/logging/audit_data.proto
namespace GPBMetadata\Google\Iam\V1\Logging;
class AuditData
{
public static $is_initialized = false;
public static function initOnce() {
$pool = \Google\Protobuf\Internal\DescriptorPool::getGeneratedPool();
if (static::$is_initialized == true) {
return;
}
\GPBMetadata\Google\Iam\V1\Policy::initOnce();
$pool->internalAddGeneratedFile(
'
<EFBFBD>
&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;
}
}

View File

@@ -0,0 +1,29 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/iam/v1/options.proto
namespace GPBMetadata\Google\Iam\V1;
class Options
{
public static $is_initialized = false;
public static function initOnce() {
$pool = \Google\Protobuf\Internal\DescriptorPool::getGeneratedPool();
if (static::$is_initialized == true) {
return;
}
$pool->internalAddGeneratedFile(
'
é
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;
}
}

Binary file not shown.

View File

@@ -0,0 +1,31 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/iam/v1/resource_policy_member.proto
namespace GPBMetadata\Google\Iam\V1;
class ResourcePolicyMember
{
public static $is_initialized = false;
public static function initOnce() {
$pool = \Google\Protobuf\Internal\DescriptorPool::getGeneratedPool();
if (static::$is_initialized == true) {
return;
}
\GPBMetadata\Google\Api\FieldBehavior::initOnce();
$pool->internalAddGeneratedFile(
'
´
*google/iam/v1/resource_policy_member.proto google.iam.v1"e
ResourcePolicyMember&
iam_policy_name_principal ( BàA%
iam_policy_uid_principal ( BàAB‡
com.google.iam.v1BResourcePolicyMemberProtoPZ)cloud.google.com/go/iam/apiv1/iampb;iampbªGoogle.Cloud.Iam.V1ÊGoogle\\Cloud\\Iam\\V1bproto3'
, true);
static::$is_initialized = true;
}
}

View File

@@ -0,0 +1,46 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/logging/type/http_request.proto
namespace GPBMetadata\Google\Logging\Type;
class HttpRequest
{
public static $is_initialized = false;
public static function initOnce() {
$pool = \Google\Protobuf\Internal\DescriptorPool::getGeneratedPool();
if (static::$is_initialized == true) {
return;
}
\GPBMetadata\Google\Protobuf\Duration::initOnce();
$pool->internalAddGeneratedFile(
'
ø
&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 ( 
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;
}
}

View File

@@ -0,0 +1,53 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/iam/v1/iam_policy.proto
namespace GPBMetadata\Google\Iam\V1;
class IamPolicy
{
public static $is_initialized = false;
public static function initOnce() {
$pool = \Google\Protobuf\Internal\DescriptorPool::getGeneratedPool();
if (static::$is_initialized == true) {
return;
}
\GPBMetadata\Google\Api\Annotations::initOnce();
\GPBMetadata\Google\Api\Client::initOnce();
\GPBMetadata\Google\Api\FieldBehavior::initOnce();
\GPBMetadata\Google\Api\Resource::initOnce();
\GPBMetadata\Google\Iam\V1\Options::initOnce();
\GPBMetadata\Google\Iam\V1\Policy::initOnce();
\GPBMetadata\Google\Protobuf\FieldMask::initOnce();
$pool->internalAddGeneratedFile(
'
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"<EFBFBD>
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;
}
}

View File

@@ -0,0 +1,30 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/iam/v1/logging/audit_data.proto
namespace GPBMetadata\Google\Iam\V1\Logging;
class AuditData
{
public static $is_initialized = false;
public static function initOnce() {
$pool = \Google\Protobuf\Internal\DescriptorPool::getGeneratedPool();
if (static::$is_initialized == true) {
return;
}
\GPBMetadata\Google\Iam\V1\Policy::initOnce();
$pool->internalAddGeneratedFile(
'
<EFBFBD>
&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;
}
}

View File

@@ -0,0 +1,29 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/iam/v1/options.proto
namespace GPBMetadata\Google\Iam\V1;
class Options
{
public static $is_initialized = false;
public static function initOnce() {
$pool = \Google\Protobuf\Internal\DescriptorPool::getGeneratedPool();
if (static::$is_initialized == true) {
return;
}
$pool->internalAddGeneratedFile(
'
é
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;
}
}

Binary file not shown.

View File

@@ -0,0 +1,31 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/iam/v1/resource_policy_member.proto
namespace GPBMetadata\Google\Iam\V1;
class ResourcePolicyMember
{
public static $is_initialized = false;
public static function initOnce() {
$pool = \Google\Protobuf\Internal\DescriptorPool::getGeneratedPool();
if (static::$is_initialized == true) {
return;
}
\GPBMetadata\Google\Api\FieldBehavior::initOnce();
$pool->internalAddGeneratedFile(
'
´
*google/iam/v1/resource_policy_member.proto google.iam.v1"e
ResourcePolicyMember&
iam_policy_name_principal ( BàA%
iam_policy_uid_principal ( BàAB‡
com.google.iam.v1BResourcePolicyMemberProtoPZ)cloud.google.com/go/iam/apiv1/iampb;iampbªGoogle.Cloud.Iam.V1ÊGoogle\\Cloud\\Iam\\V1bproto3'
, true);
static::$is_initialized = true;
}
}

View File

@@ -0,0 +1,46 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/logging/type/http_request.proto
namespace GPBMetadata\Google\Logging\Type;
class HttpRequest
{
public static $is_initialized = false;
public static function initOnce() {
$pool = \Google\Protobuf\Internal\DescriptorPool::getGeneratedPool();
if (static::$is_initialized == true) {
return;
}
\GPBMetadata\Google\Protobuf\Duration::initOnce();
$pool->internalAddGeneratedFile(
'
ø
&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 ( 
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;
}
}

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,109 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/rpc/context/attribute_context.proto
namespace GPBMetadata\Google\Rpc\Context;
class AttributeContext
{
public static $is_initialized = false;
public static function initOnce() {
$pool = \Google\Protobuf\Internal\DescriptorPool::getGeneratedPool();
if (static::$is_initialized == true) {
return;
}
\GPBMetadata\Google\Protobuf\Any::initOnce();
\GPBMetadata\Google\Protobuf\Duration::initOnce();
\GPBMetadata\Google\Protobuf\Struct::initOnce();
\GPBMetadata\Google\Protobuf\Timestamp::initOnce();
$pool->internalAddGeneratedFile(
'
»
*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<EFBFBD>
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<EFBFBD>
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;
}
}

View File

@@ -0,0 +1,34 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/rpc/context/audit_context.proto
namespace GPBMetadata\Google\Rpc\Context;
class AuditContext
{
public static $is_initialized = false;
public static function initOnce() {
$pool = \Google\Protobuf\Internal\DescriptorPool::getGeneratedPool();
if (static::$is_initialized == true) {
return;
}
\GPBMetadata\Google\Protobuf\Struct::initOnce();
$pool->internalAddGeneratedFile(
'
ø
&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 ( Bh
com.google.rpc.contextBAuditContextProtoPZ9google.golang.org/genproto/googleapis/rpc/context;contextbproto3'
, true);
static::$is_initialized = true;
}
}

Binary file not shown.

View File

@@ -0,0 +1,33 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/rpc/status.proto
namespace GPBMetadata\Google\Rpc;
class Status
{
public static $is_initialized = false;
public static function initOnce() {
$pool = \Google\Protobuf\Internal\DescriptorPool::getGeneratedPool();
if (static::$is_initialized == true) {
return;
}
\GPBMetadata\Google\Protobuf\Any::initOnce();
$pool->internalAddGeneratedFile(
'
ŕ
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;
}
}

Binary file not shown.

View File

@@ -0,0 +1,34 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/type/color.proto
namespace GPBMetadata\Google\Type;
class Color
{
public static $is_initialized = false;
public static function initOnce() {
$pool = \Google\Protobuf\Internal\DescriptorPool::getGeneratedPool();
if (static::$is_initialized == true) {
return;
}
\GPBMetadata\Google\Protobuf\Wrappers::initOnce();
$pool->internalAddGeneratedFile(
'
ï
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;
}
}

View File

@@ -0,0 +1,31 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/type/date.proto
namespace GPBMetadata\Google\Type;
class Date
{
public static $is_initialized = false;
public static function initOnce() {
$pool = \Google\Protobuf\Internal\DescriptorPool::getGeneratedPool();
if (static::$is_initialized == true) {
return;
}
$pool->internalAddGeneratedFile(
'
¾
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;
}
}

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,29 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/type/decimal.proto
namespace GPBMetadata\Google\Type;
class Decimal
{
public static $is_initialized = false;
public static function initOnce() {
$pool = \Google\Protobuf\Internal\DescriptorPool::getGeneratedPool();
if (static::$is_initialized == true) {
return;
}
$pool->internalAddGeneratedFile(
'
²
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;
}
}

View File

@@ -0,0 +1,33 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/type/expr.proto
namespace GPBMetadata\Google\Type;
class Expr
{
public static $is_initialized = false;
public static function initOnce() {
$pool = \Google\Protobuf\Internal\DescriptorPool::getGeneratedPool();
if (static::$is_initialized == true) {
return;
}
$pool->internalAddGeneratedFile(
'
Û
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;
}
}

View File

@@ -0,0 +1,30 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/type/fraction.proto
namespace GPBMetadata\Google\Type;
class Fraction
{
public static $is_initialized = false;
public static function initOnce() {
$pool = \Google\Protobuf\Internal\DescriptorPool::getGeneratedPool();
if (static::$is_initialized == true) {
return;
}
$pool->internalAddGeneratedFile(
'
Í
google/type/fraction.proto google.type"2
Fraction
numerator (
denominator (Bf
com.google.typeB FractionProtoPZ<google.golang.org/genproto/googleapis/type/fraction;fraction¢GTPbproto3'
, true);
static::$is_initialized = true;
}
}

View File

@@ -0,0 +1,32 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/type/interval.proto
namespace GPBMetadata\Google\Type;
class Interval
{
public static $is_initialized = false;
public static function initOnce() {
$pool = \Google\Protobuf\Internal\DescriptorPool::getGeneratedPool();
if (static::$is_initialized == true) {
return;
}
\GPBMetadata\Google\Protobuf\Timestamp::initOnce();
$pool->internalAddGeneratedFile(
'

google/type/interval.proto google.type"h
Interval.
start_time ( 2.google.protobuf.Timestamp,
end_time ( 2.google.protobuf.TimestampBi
com.google.typeB IntervalProtoPZ<google.golang.org/genproto/googleapis/type/interval;intervalø¢GTPbproto3'
, true);
static::$is_initialized = true;
}
}

View File

@@ -0,0 +1,30 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/type/latlng.proto
namespace GPBMetadata\Google\Type;
class Latlng
{
public static $is_initialized = false;
public static function initOnce() {
$pool = \Google\Protobuf\Internal\DescriptorPool::getGeneratedPool();
if (static::$is_initialized == true) {
return;
}
$pool->internalAddGeneratedFile(
'
Ã
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;
}
}

View File

@@ -0,0 +1,30 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/type/localized_text.proto
namespace GPBMetadata\Google\Type;
class LocalizedText
{
public static $is_initialized = false;
public static function initOnce() {
$pool = \Google\Protobuf\Internal\DescriptorPool::getGeneratedPool();
if (static::$is_initialized == true) {
return;
}
$pool->internalAddGeneratedFile(
'
é
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;
}
}

View File

@@ -0,0 +1,32 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/type/money.proto
namespace GPBMetadata\Google\Type;
class Money
{
public static $is_initialized = false;
public static function initOnce() {
$pool = \Google\Protobuf\Internal\DescriptorPool::getGeneratedPool();
if (static::$is_initialized == true) {
return;
}
$pool->internalAddGeneratedFile(
'
Î
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;
}
}

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,41 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/type/postal_address.proto
namespace GPBMetadata\Google\Type;
class PostalAddress
{
public static $is_initialized = false;
public static function initOnce() {
$pool = \Google\Protobuf\Internal\DescriptorPool::getGeneratedPool();
if (static::$is_initialized == true) {
return;
}
$pool->internalAddGeneratedFile(
'
±
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;
}
}

View File

@@ -0,0 +1,33 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/type/quaternion.proto
namespace GPBMetadata\Google\Type;
class Quaternion
{
public static $is_initialized = false;
public static function initOnce() {
$pool = \Google\Protobuf\Internal\DescriptorPool::getGeneratedPool();
if (static::$is_initialized == true) {
return;
}
$pool->internalAddGeneratedFile(
'
Þ
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;
}
}

View File

@@ -0,0 +1,32 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/type/timeofday.proto
namespace GPBMetadata\Google\Type;
class Timeofday
{
public static $is_initialized = false;
public static function initOnce() {
$pool = \Google\Protobuf\Internal\DescriptorPool::getGeneratedPool();
if (static::$is_initialized == true) {
return;
}
$pool->internalAddGeneratedFile(
'
í
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;
}
}

View File

@@ -0,0 +1,7 @@
{
"extends": [
"config:base",
":preserveSemverRanges",
":disableDependencyDashboard"
]
}

View File

@@ -0,0 +1,72 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/api/config_change.proto
namespace Google\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated advice about this change, used for providing more
* information about how a change will affect the existing service.
*
* Generated from protobuf message <code>google.api.Advice</code>
*/
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 <code>string description = 2;</code>
*/
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 <code>string description = 2;</code>
* @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 <code>string description = 2;</code>
* @param string $var
* @return $this
*/
public function setDescription($var)
{
GPBUtil::checkString($var, True);
$this->description = $var;
return $this;
}
}

View File

@@ -0,0 +1,419 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/api/auth.proto
namespace Google\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Configuration for an authentication provider, including support for
* [JSON Web Token
* (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32).
*
* Generated from protobuf message <code>google.api.AuthProvider</code>
*/
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 <code>string id = 1;</code>
*/
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&#64;developer.gserviceaccount.com
*
* Generated from protobuf field <code>string issuer = 2;</code>
*/
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 <code>string jwks_uri = 3;</code>
*/
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 <code>string audiences = 4;</code>
*/
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 <code>string authorization_url = 5;</code>
*/
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 <code>repeated .google.api.JwtLocation jwt_locations = 6;</code>
*/
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&#64;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 <code>string id = 1;</code>
* @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 <code>string id = 1;</code>
* @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&#64;developer.gserviceaccount.com
*
* Generated from protobuf field <code>string issuer = 2;</code>
* @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&#64;developer.gserviceaccount.com
*
* Generated from protobuf field <code>string issuer = 2;</code>
* @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 <code>string jwks_uri = 3;</code>
* @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 <code>string jwks_uri = 3;</code>
* @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 <code>string audiences = 4;</code>
* @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 <code>string audiences = 4;</code>
* @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 <code>string authorization_url = 5;</code>
* @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 <code>string authorization_url = 5;</code>
* @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 <code>repeated .google.api.JwtLocation jwt_locations = 6;</code>
* @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 <code>repeated .google.api.JwtLocation jwt_locations = 6;</code>
* @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;
}
}

View File

@@ -0,0 +1,159 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/api/auth.proto
namespace Google\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* User-defined authentication requirements, including support for
* [JSON Web Token
* (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32).
*
* Generated from protobuf message <code>google.api.AuthRequirement</code>
*/
class AuthRequirement extends \Google\Protobuf\Internal\Message
{
/**
* [id][google.api.AuthProvider.id] from authentication provider.
* Example:
* provider_id: bookstore_auth
*
* Generated from protobuf field <code>string provider_id = 1;</code>
*/
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 <code>string audiences = 2;</code>
*/
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 <code>string provider_id = 1;</code>
* @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 <code>string provider_id = 1;</code>
* @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 <code>string audiences = 2;</code>
* @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 <code>string audiences = 2;</code>
* @param string $var
* @return $this
*/
public function setAudiences($var)
{
GPBUtil::checkString($var, True);
$this->audiences = $var;
return $this;
}
}

View File

@@ -0,0 +1,120 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/api/auth.proto
namespace Google\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* `Authentication` defines the authentication configuration for API methods
* provided by an API service.
* Example:
* name: calendar.googleapis.com
* authentication:
* providers:
* - id: google_calendar_auth
* jwks_uri: https://www.googleapis.com/oauth2/v1/certs
* issuer: https://securetoken.google.com
* rules:
* - selector: "*"
* requirements:
* provider_id: google_calendar_auth
* - selector: google.calendar.Delegate
* oauth:
* canonical_scopes: https://www.googleapis.com/auth/calendar.read
*
* Generated from protobuf message <code>google.api.Authentication</code>
*/
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 <code>repeated .google.api.AuthenticationRule rules = 3;</code>
*/
private $rules;
/**
* Defines a set of authentication providers that a service supports.
*
* Generated from protobuf field <code>repeated .google.api.AuthProvider providers = 4;</code>
*/
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 <code>repeated .google.api.AuthenticationRule rules = 3;</code>
* @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 <code>repeated .google.api.AuthenticationRule rules = 3;</code>
* @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 <code>repeated .google.api.AuthProvider providers = 4;</code>
* @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 <code>repeated .google.api.AuthProvider providers = 4;</code>
* @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;
}
}

View File

@@ -0,0 +1,197 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/api/auth.proto
namespace Google\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Authentication rules for the service.
* By default, if a method has any authentication requirements, every request
* must include a valid credential matching one of the requirements.
* It's an error to include more than one kind of credential in a single
* request.
* If a method doesn't have any auth requirements, request credentials will be
* ignored.
*
* Generated from protobuf message <code>google.api.AuthenticationRule</code>
*/
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 <code>string selector = 1;</code>
*/
protected $selector = '';
/**
* The requirements for OAuth credentials.
*
* Generated from protobuf field <code>.google.api.OAuthRequirements oauth = 2;</code>
*/
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 <code>bool allow_without_credential = 5;</code>
*/
protected $allow_without_credential = false;
/**
* Requirements for additional authentication providers.
*
* Generated from protobuf field <code>repeated .google.api.AuthRequirement requirements = 7;</code>
*/
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 <code>string selector = 1;</code>
* @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 <code>string selector = 1;</code>
* @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 <code>.google.api.OAuthRequirements oauth = 2;</code>
* @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 <code>.google.api.OAuthRequirements oauth = 2;</code>
* @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 <code>bool allow_without_credential = 5;</code>
* @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 <code>bool allow_without_credential = 5;</code>
* @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 <code>repeated .google.api.AuthRequirement requirements = 7;</code>
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getRequirements()
{
return $this->requirements;
}
/**
* Requirements for additional authentication providers.
*
* Generated from protobuf field <code>repeated .google.api.AuthRequirement requirements = 7;</code>
* @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;
}
}

View File

@@ -0,0 +1,71 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/api/backend.proto
namespace Google\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* `Backend` defines the backend configuration for a service.
*
* Generated from protobuf message <code>google.api.Backend</code>
*/
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 <code>repeated .google.api.BackendRule rules = 1;</code>
*/
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 <code>repeated .google.api.BackendRule rules = 1;</code>
* @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 <code>repeated .google.api.BackendRule rules = 1;</code>
* @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;
}
}

View File

@@ -0,0 +1,527 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/api/backend.proto
namespace Google\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* A backend rule provides configuration for an individual API element.
*
* Generated from protobuf message <code>google.api.BackendRule</code>
*/
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 <code>string selector = 1;</code>
*/
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 <code>string address = 2;</code>
*/
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 <code>double deadline = 3;</code>
*/
protected $deadline = 0.0;
/**
* Deprecated, do not use.
*
* Generated from protobuf field <code>double min_deadline = 4 [deprecated = true];</code>
* @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 <code>double operation_deadline = 5;</code>
*/
protected $operation_deadline = 0.0;
/**
* Generated from protobuf field <code>.google.api.BackendRule.PathTranslation path_translation = 6;</code>
*/
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 <code>string protocol = 9;</code>
*/
protected $protocol = '';
/**
* The map between request protocol and the backend address.
*
* Generated from protobuf field <code>map<string, .google.api.BackendRule> overrides_by_request_protocol = 10;</code>
*/
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 <code>string selector = 1;</code>
* @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 <code>string selector = 1;</code>
* @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 <code>string address = 2;</code>
* @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 <code>string address = 2;</code>
* @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 <code>double deadline = 3;</code>
* @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 <code>double deadline = 3;</code>
* @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 <code>double min_deadline = 4 [deprecated = true];</code>
* @return float
* @deprecated
*/
public function getMinDeadline()
{
if ($this->min_deadline !== 0.0) {
@trigger_error('min_deadline is deprecated.', E_USER_DEPRECATED);
}
return $this->min_deadline;
}
/**
* Deprecated, do not use.
*
* Generated from protobuf field <code>double min_deadline = 4 [deprecated = true];</code>
* @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 <code>double operation_deadline = 5;</code>
* @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 <code>double operation_deadline = 5;</code>
* @param float $var
* @return $this
*/
public function setOperationDeadline($var)
{
GPBUtil::checkDouble($var);
$this->operation_deadline = $var;
return $this;
}
/**
* Generated from protobuf field <code>.google.api.BackendRule.PathTranslation path_translation = 6;</code>
* @return int
*/
public function getPathTranslation()
{
return $this->path_translation;
}
/**
* Generated from protobuf field <code>.google.api.BackendRule.PathTranslation path_translation = 6;</code>
* @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 <code>string jwt_audience = 7;</code>
* @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 <code>string jwt_audience = 7;</code>
* @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 <code>bool disable_auth = 8;</code>
* @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 <code>bool disable_auth = 8;</code>
* @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 <code>string protocol = 9;</code>
* @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 <code>string protocol = 9;</code>
* @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 <code>map<string, .google.api.BackendRule> overrides_by_request_protocol = 10;</code>
* @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 <code>map<string, .google.api.BackendRule> overrides_by_request_protocol = 10;</code>
* @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");
}
}

View File

@@ -0,0 +1,93 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/api/backend.proto
namespace Google\Api\BackendRule;
use UnexpectedValueException;
/**
* Path Translation specifies how to combine the backend address with the
* request path in order to produce the appropriate forwarding URL for the
* request.
* Path Translation is applicable only to HTTP-based backends. Backends which
* do not accept requests over HTTP/HTTPS should leave `path_translation`
* unspecified.
*
* Protobuf type <code>google.api.BackendRule.PathTranslation</code>
*/
class PathTranslation
{
/**
* Generated from protobuf enum <code>PATH_TRANSLATION_UNSPECIFIED = 0;</code>
*/
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 <code>CONSTANT_ADDRESS = 1;</code>
*/
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 <code>APPEND_PATH_TO_ADDRESS = 2;</code>
*/
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);
}
}

View File

@@ -0,0 +1,107 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/api/billing.proto
namespace Google\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Billing related configuration of the service.
* The following example shows how to configure monitored resources and metrics
* for billing, `consumer_destinations` is the only supported destination and
* the monitored resources need at least one label key
* `cloud.googleapis.com/location` to indicate the location of the billing
* usage, using different monitored resources between monitoring and billing is
* recommended so they can be evolved independently:
* monitored_resources:
* - type: library.googleapis.com/billing_branch
* labels:
* - key: cloud.googleapis.com/location
* description: |
* Predefined label to support billing location restriction.
* - key: city
* description: |
* Custom label to define the city where the library branch is located
* in.
* - key: name
* description: Custom label to define the name of the library branch.
* metrics:
* - name: library.googleapis.com/book/borrowed_count
* metric_kind: DELTA
* value_type: INT64
* unit: "1"
* billing:
* consumer_destinations:
* - monitored_resource: library.googleapis.com/billing_branch
* metrics:
* - library.googleapis.com/book/borrowed_count
*
* Generated from protobuf message <code>google.api.Billing</code>
*/
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 <code>repeated .google.api.Billing.BillingDestination consumer_destinations = 8;</code>
*/
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 <code>repeated .google.api.Billing.BillingDestination consumer_destinations = 8;</code>
* @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 <code>repeated .google.api.Billing.BillingDestination consumer_destinations = 8;</code>
* @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;
}
}

View File

@@ -0,0 +1,119 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/api/billing.proto
namespace Google\Api\Billing;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Configuration of a specific billing destination (Currently only support
* bill against consumer project).
*
* Generated from protobuf message <code>google.api.Billing.BillingDestination</code>
*/
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 <code>string monitored_resource = 1;</code>
*/
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 <code>repeated string metrics = 2;</code>
*/
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<string>|\Google\Protobuf\Internal\RepeatedField $metrics
* Names of the metrics to report to this billing destination.
* Each name must be defined in
* [Service.metrics][google.api.Service.metrics] section.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Google\Api\Billing::initOnce();
parent::__construct($data);
}
/**
* The monitored resource type. The type must be defined in
* [Service.monitored_resources][google.api.Service.monitored_resources]
* section.
*
* Generated from protobuf field <code>string monitored_resource = 1;</code>
* @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 <code>string monitored_resource = 1;</code>
* @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 <code>repeated string metrics = 2;</code>
* @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 <code>repeated string metrics = 2;</code>
* @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setMetrics($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
$this->metrics = $arr;
return $this;
}
}

View File

@@ -0,0 +1,72 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/api/config_change.proto
namespace Google\Api;
use UnexpectedValueException;
/**
* Classifies set of possible modifications to an object in the service
* configuration.
*
* Protobuf type <code>google.api.ChangeType</code>
*/
class ChangeType
{
/**
* No value was provided.
*
* Generated from protobuf enum <code>CHANGE_TYPE_UNSPECIFIED = 0;</code>
*/
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 <code>ADDED = 1;</code>
*/
const ADDED = 1;
/**
* The changed object exists in the 'old' service configuration, but not
* in the 'new' service configuration.
*
* Generated from protobuf enum <code>REMOVED = 2;</code>
*/
const REMOVED = 2;
/**
* The changed object exists in both service configurations, but its value
* is different.
*
* Generated from protobuf enum <code>MODIFIED = 3;</code>
*/
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);
}
}

View File

@@ -0,0 +1,63 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/api/client.proto
namespace Google\Api;
use UnexpectedValueException;
/**
* To where should client libraries be published?
*
* Protobuf type <code>google.api.ClientLibraryDestination</code>
*/
class ClientLibraryDestination
{
/**
* Client libraries will neither be generated nor published to package
* managers.
*
* Generated from protobuf enum <code>CLIENT_LIBRARY_DESTINATION_UNSPECIFIED = 0;</code>
*/
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 <code>GITHUB = 10;</code>
*/
const GITHUB = 10;
/**
* Publish the library to package managers like nuget.org and npmjs.com.
*
* Generated from protobuf enum <code>PACKAGE_MANAGER = 20;</code>
*/
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);
}
}

View File

@@ -0,0 +1,97 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/api/client.proto
namespace Google\Api;
use UnexpectedValueException;
/**
* The organization for which the client libraries are being published.
* Affects the url where generated docs are published, etc.
*
* Protobuf type <code>google.api.ClientLibraryOrganization</code>
*/
class ClientLibraryOrganization
{
/**
* Not useful.
*
* Generated from protobuf enum <code>CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 0;</code>
*/
const CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 0;
/**
* Google Cloud Platform Org.
*
* Generated from protobuf enum <code>CLOUD = 1;</code>
*/
const CLOUD = 1;
/**
* Ads (Advertising) Org.
*
* Generated from protobuf enum <code>ADS = 2;</code>
*/
const ADS = 2;
/**
* Photos Org.
*
* Generated from protobuf enum <code>PHOTOS = 3;</code>
*/
const PHOTOS = 3;
/**
* Street View Org.
*
* Generated from protobuf enum <code>STREET_VIEW = 4;</code>
*/
const STREET_VIEW = 4;
/**
* Shopping Org.
*
* Generated from protobuf enum <code>SHOPPING = 5;</code>
*/
const SHOPPING = 5;
/**
* Geo Org.
*
* Generated from protobuf enum <code>GEO = 6;</code>
*/
const GEO = 6;
/**
* Generative AI - https://developers.generativeai.google
*
* Generated from protobuf enum <code>GENERATIVE_AI = 7;</code>
*/
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);
}
}

View File

@@ -0,0 +1,499 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/api/client.proto
namespace Google\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Details about how and where to publish client libraries.
*
* Generated from protobuf message <code>google.api.ClientLibrarySettings</code>
*/
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 <code>string version = 1;</code>
*/
protected $version = '';
/**
* Launch stage of this version of the API.
*
* Generated from protobuf field <code>.google.api.LaunchStage launch_stage = 2;</code>
*/
protected $launch_stage = 0;
/**
* When using transport=rest, the client request will encode enums as
* numbers rather than strings.
*
* Generated from protobuf field <code>bool rest_numeric_enums = 3;</code>
*/
protected $rest_numeric_enums = false;
/**
* Settings for legacy Java features, supported in the Service YAML.
*
* Generated from protobuf field <code>.google.api.JavaSettings java_settings = 21;</code>
*/
protected $java_settings = null;
/**
* Settings for C++ client libraries.
*
* Generated from protobuf field <code>.google.api.CppSettings cpp_settings = 22;</code>
*/
protected $cpp_settings = null;
/**
* Settings for PHP client libraries.
*
* Generated from protobuf field <code>.google.api.PhpSettings php_settings = 23;</code>
*/
protected $php_settings = null;
/**
* Settings for Python client libraries.
*
* Generated from protobuf field <code>.google.api.PythonSettings python_settings = 24;</code>
*/
protected $python_settings = null;
/**
* Settings for Node client libraries.
*
* Generated from protobuf field <code>.google.api.NodeSettings node_settings = 25;</code>
*/
protected $node_settings = null;
/**
* Settings for .NET client libraries.
*
* Generated from protobuf field <code>.google.api.DotnetSettings dotnet_settings = 26;</code>
*/
protected $dotnet_settings = null;
/**
* Settings for Ruby client libraries.
*
* Generated from protobuf field <code>.google.api.RubySettings ruby_settings = 27;</code>
*/
protected $ruby_settings = null;
/**
* Settings for Go client libraries.
*
* Generated from protobuf field <code>.google.api.GoSettings go_settings = 28;</code>
*/
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 <code>string version = 1;</code>
* @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 <code>string version = 1;</code>
* @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 <code>.google.api.LaunchStage launch_stage = 2;</code>
* @return int
*/
public function getLaunchStage()
{
return $this->launch_stage;
}
/**
* Launch stage of this version of the API.
*
* Generated from protobuf field <code>.google.api.LaunchStage launch_stage = 2;</code>
* @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 <code>bool rest_numeric_enums = 3;</code>
* @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 <code>bool rest_numeric_enums = 3;</code>
* @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 <code>.google.api.JavaSettings java_settings = 21;</code>
* @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 <code>.google.api.JavaSettings java_settings = 21;</code>
* @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 <code>.google.api.CppSettings cpp_settings = 22;</code>
* @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 <code>.google.api.CppSettings cpp_settings = 22;</code>
* @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 <code>.google.api.PhpSettings php_settings = 23;</code>
* @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 <code>.google.api.PhpSettings php_settings = 23;</code>
* @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 <code>.google.api.PythonSettings python_settings = 24;</code>
* @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 <code>.google.api.PythonSettings python_settings = 24;</code>
* @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 <code>.google.api.NodeSettings node_settings = 25;</code>
* @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 <code>.google.api.NodeSettings node_settings = 25;</code>
* @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 <code>.google.api.DotnetSettings dotnet_settings = 26;</code>
* @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 <code>.google.api.DotnetSettings dotnet_settings = 26;</code>
* @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 <code>.google.api.RubySettings ruby_settings = 27;</code>
* @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 <code>.google.api.RubySettings ruby_settings = 27;</code>
* @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 <code>.google.api.GoSettings go_settings = 28;</code>
* @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 <code>.google.api.GoSettings go_settings = 28;</code>
* @param \Google\Api\GoSettings $var
* @return $this
*/
public function setGoSettings($var)
{
GPBUtil::checkMessage($var, \Google\Api\GoSettings::class);
$this->go_settings = $var;
return $this;
}
}

View File

@@ -0,0 +1,156 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/api/client.proto
namespace Google\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Required information for every language.
*
* Generated from protobuf message <code>google.api.CommonLanguageSettings</code>
*/
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 <code>string reference_docs_uri = 1 [deprecated = true];</code>
* @deprecated
*/
protected $reference_docs_uri = '';
/**
* The destination where API teams want this client library to be published.
*
* Generated from protobuf field <code>repeated .google.api.ClientLibraryDestination destinations = 2;</code>
*/
private $destinations;
/**
* Configuration for which RPCs should be generated in the GAPIC client.
*
* Generated from protobuf field <code>.google.api.SelectiveGapicGeneration selective_gapic_generation = 3;</code>
*/
protected $selective_gapic_generation = null;
/**
* 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<int>|\Google\Protobuf\Internal\RepeatedField $destinations
* The destination where API teams want this client library to be published.
* @type \Google\Api\SelectiveGapicGeneration $selective_gapic_generation
* Configuration for which RPCs should be generated in the GAPIC client.
* }
*/
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 <code>string reference_docs_uri = 1 [deprecated = true];</code>
* @return string
* @deprecated
*/
public function getReferenceDocsUri()
{
if ($this->reference_docs_uri !== '') {
@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 <code>string reference_docs_uri = 1 [deprecated = true];</code>
* @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 <code>repeated .google.api.ClientLibraryDestination destinations = 2;</code>
* @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 <code>repeated .google.api.ClientLibraryDestination destinations = 2;</code>
* @param array<int>|\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;
}
/**
* Configuration for which RPCs should be generated in the GAPIC client.
*
* Generated from protobuf field <code>.google.api.SelectiveGapicGeneration selective_gapic_generation = 3;</code>
* @return \Google\Api\SelectiveGapicGeneration|null
*/
public function getSelectiveGapicGeneration()
{
return $this->selective_gapic_generation;
}
public function hasSelectiveGapicGeneration()
{
return isset($this->selective_gapic_generation);
}
public function clearSelectiveGapicGeneration()
{
unset($this->selective_gapic_generation);
}
/**
* Configuration for which RPCs should be generated in the GAPIC client.
*
* Generated from protobuf field <code>.google.api.SelectiveGapicGeneration selective_gapic_generation = 3;</code>
* @param \Google\Api\SelectiveGapicGeneration $var
* @return $this
*/
public function setSelectiveGapicGeneration($var)
{
GPBUtil::checkMessage($var, \Google\Api\SelectiveGapicGeneration::class);
$this->selective_gapic_generation = $var;
return $this;
}
}

View File

@@ -0,0 +1,251 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/api/config_change.proto
namespace Google\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Output generated from semantically comparing two versions of a service
* configuration.
* Includes detailed information about a field that have changed with
* applicable advice about potential consequences for the change, such as
* backwards-incompatibility.
*
* Generated from protobuf message <code>google.api.ConfigChange</code>
*/
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 <code>string element = 1;</code>
*/
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 <code>string old_value = 2;</code>
*/
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 <code>string new_value = 3;</code>
*/
protected $new_value = '';
/**
* The type for this change, either ADDED, REMOVED, or MODIFIED.
*
* Generated from protobuf field <code>.google.api.ChangeType change_type = 4;</code>
*/
protected $change_type = 0;
/**
* Collection of advice provided for this change, useful for determining the
* possible impact of this change.
*
* Generated from protobuf field <code>repeated .google.api.Advice advices = 5;</code>
*/
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 <code>string element = 1;</code>
* @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 <code>string element = 1;</code>
* @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 <code>string old_value = 2;</code>
* @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 <code>string old_value = 2;</code>
* @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 <code>string new_value = 3;</code>
* @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 <code>string new_value = 3;</code>
* @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 <code>.google.api.ChangeType change_type = 4;</code>
* @return int
*/
public function getChangeType()
{
return $this->change_type;
}
/**
* The type for this change, either ADDED, REMOVED, or MODIFIED.
*
* Generated from protobuf field <code>.google.api.ChangeType change_type = 4;</code>
* @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 <code>repeated .google.api.Advice advices = 5;</code>
* @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 <code>repeated .google.api.Advice advices = 5;</code>
* @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;
}
}

View File

@@ -0,0 +1,98 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/api/context.proto
namespace Google\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* `Context` defines which contexts an API requests.
* Example:
* context:
* rules:
* - selector: "*"
* requested:
* - google.rpc.context.ProjectContext
* - google.rpc.context.OriginContext
* The above specifies that all methods in the API request
* `google.rpc.context.ProjectContext` and
* `google.rpc.context.OriginContext`.
* Available context types are defined in package
* `google.rpc.context`.
* This also provides mechanism to allowlist any protobuf message extension that
* can be sent in grpc metadata using “x-goog-ext-<extension_id>-bin” and
* “x-goog-ext-<extension_id>-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 <code>google.api.Context</code>
*/
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 <code>repeated .google.api.ContextRule rules = 1;</code>
*/
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 <code>repeated .google.api.ContextRule rules = 1;</code>
* @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 <code>repeated .google.api.ContextRule rules = 1;</code>
* @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;
}
}

View File

@@ -0,0 +1,228 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/api/context.proto
namespace Google\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* A context rule provides information about the context for an individual API
* element.
*
* Generated from protobuf message <code>google.api.ContextRule</code>
*/
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 <code>string selector = 1;</code>
*/
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 <code>repeated string requested = 2;</code>
*/
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 <code>repeated string provided = 3;</code>
*/
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 <code>repeated string allowed_request_extensions = 4;</code>
*/
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 <code>repeated string allowed_response_extensions = 5;</code>
*/
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<string>|\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<string>|\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<string>|\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<string>|\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 <code>string selector = 1;</code>
* @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 <code>string selector = 1;</code>
* @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 <code>repeated string requested = 2;</code>
* @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 <code>repeated string requested = 2;</code>
* @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setRequested($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
$this->requested = $arr;
return $this;
}
/**
* A list of full type names of provided contexts. It is used to support
* propagating HTTP headers and ETags from the response extension.
*
* Generated from protobuf field <code>repeated string provided = 3;</code>
* @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 <code>repeated string provided = 3;</code>
* @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setProvided($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
$this->provided = $arr;
return $this;
}
/**
* A list of full type names or extension IDs of extensions allowed in grpc
* side channel from client to backend.
*
* Generated from protobuf field <code>repeated string allowed_request_extensions = 4;</code>
* @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 <code>repeated string allowed_request_extensions = 4;</code>
* @param array<string>|\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 <code>repeated string allowed_response_extensions = 5;</code>
* @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 <code>repeated string allowed_response_extensions = 5;</code>
* @param array<string>|\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;
}
}

View File

@@ -0,0 +1,112 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/api/control.proto
namespace Google\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Selects and configures the service controller used by the service.
* Example:
* control:
* environment: servicecontrol.googleapis.com
*
* Generated from protobuf message <code>google.api.Control</code>
*/
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 <code>string environment = 1;</code>
*/
protected $environment = '';
/**
* Defines policies applying to the API methods of the service.
*
* Generated from protobuf field <code>repeated .google.api.MethodPolicy method_policies = 4;</code>
*/
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 <code>string environment = 1;</code>
* @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 <code>string environment = 1;</code>
* @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 <code>repeated .google.api.MethodPolicy method_policies = 4;</code>
* @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 <code>repeated .google.api.MethodPolicy method_policies = 4;</code>
* @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;
}
}

View File

@@ -0,0 +1,77 @@
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/api/client.proto
namespace Google\Api;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Settings for C++ client libraries.
*
* Generated from protobuf message <code>google.api.CppSettings</code>
*/
class CppSettings extends \Google\Protobuf\Internal\Message
{
/**
* Some settings.
*
* Generated from protobuf field <code>.google.api.CommonLanguageSettings common = 1;</code>
*/
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 <code>.google.api.CommonLanguageSettings common = 1;</code>
* @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 <code>.google.api.CommonLanguageSettings common = 1;</code>
* @param \Google\Api\CommonLanguageSettings $var
* @return $this
*/
public function setCommon($var)
{
GPBUtil::checkMessage($var, \Google\Api\CommonLanguageSettings::class);
$this->common = $var;
return $this;
}
}

Some files were not shown because too many files have changed in this diff Show More