├── CHANGELOG.md
├── CODE_OF_CONDUCT.md
├── CONTRIBUTING.md
├── LICENSE
├── README.md
├── SECURITY.md
├── VERSION
├── composer.json
├── metadata
├── Api
│ ├── Annotations.php
│ ├── Auth.php
│ ├── Backend.php
│ ├── Billing.php
│ ├── Client.php
│ ├── ConfigChange.php
│ ├── Consumer.php
│ ├── Context.php
│ ├── Control.php
│ ├── Distribution.php
│ ├── Documentation.php
│ ├── Endpoint.php
│ ├── ErrorReason.php
│ ├── FieldBehavior.php
│ ├── FieldInfo.php
│ ├── Http.php
│ ├── Httpbody.php
│ ├── Label.php
│ ├── LaunchStage.php
│ ├── Log.php
│ ├── Logging.php
│ ├── Metric.php
│ ├── MonitoredResource.php
│ ├── Monitoring.php
│ ├── Policy.php
│ ├── Quota.php
│ ├── Resource.php
│ ├── Routing.php
│ ├── Service.php
│ ├── SourceInfo.php
│ ├── SystemParameter.php
│ ├── Usage.php
│ └── Visibility.php
├── Cloud
│ ├── ExtendedOperations.php
│ └── Location
│ │ └── Locations.php
├── Google
│ ├── Iam
│ │ └── V1
│ │ │ ├── IamPolicy.php
│ │ │ ├── Logging
│ │ │ └── AuditData.php
│ │ │ ├── Options.php
│ │ │ ├── Policy.php
│ │ │ └── ResourcePolicyMember.php
│ └── Logging
│ │ └── Type
│ │ ├── HttpRequest.php
│ │ └── LogSeverity.php
├── Iam
│ └── V1
│ │ ├── IamPolicy.php
│ │ ├── Logging
│ │ └── AuditData.php
│ │ ├── Options.php
│ │ ├── Policy.php
│ │ └── ResourcePolicyMember.php
├── Logging
│ └── Type
│ │ ├── HttpRequest.php
│ │ └── LogSeverity.php
├── Rpc
│ ├── Code.php
│ ├── Context
│ │ ├── AttributeContext.php
│ │ └── AuditContext.php
│ ├── ErrorDetails.php
│ └── Status.php
└── Type
│ ├── CalendarPeriod.php
│ ├── Color.php
│ ├── Date.php
│ ├── Datetime.php
│ ├── Dayofweek.php
│ ├── Decimal.php
│ ├── Expr.php
│ ├── Fraction.php
│ ├── Interval.php
│ ├── Latlng.php
│ ├── LocalizedText.php
│ ├── Money.php
│ ├── Month.php
│ ├── PhoneNumber.php
│ ├── PostalAddress.php
│ ├── Quaternion.php
│ └── Timeofday.php
├── renovate.json
└── src
├── Api
├── Advice.php
├── AuthProvider.php
├── AuthRequirement.php
├── Authentication.php
├── AuthenticationRule.php
├── Backend.php
├── BackendRule.php
├── BackendRule
│ └── PathTranslation.php
├── Billing.php
├── Billing
│ └── BillingDestination.php
├── ChangeType.php
├── ClientLibraryDestination.php
├── ClientLibraryOrganization.php
├── ClientLibrarySettings.php
├── CommonLanguageSettings.php
├── ConfigChange.php
├── Context.php
├── ContextRule.php
├── Control.php
├── CppSettings.php
├── CustomHttpPattern.php
├── Distribution.php
├── Distribution
│ ├── BucketOptions.php
│ ├── BucketOptions
│ │ ├── Explicit.php
│ │ ├── Exponential.php
│ │ └── Linear.php
│ ├── Exemplar.php
│ └── Range.php
├── Documentation.php
├── DocumentationRule.php
├── DotnetSettings.php
├── Endpoint.php
├── ErrorReason.php
├── FieldBehavior.php
├── FieldInfo.php
├── FieldInfo
│ └── Format.php
├── FieldPolicy.php
├── GoSettings.php
├── Http.php
├── HttpBody.php
├── HttpRule.php
├── JavaSettings.php
├── JwtLocation.php
├── LabelDescriptor.php
├── LabelDescriptor
│ └── ValueType.php
├── LaunchStage.php
├── LogDescriptor.php
├── Logging.php
├── Logging
│ └── LoggingDestination.php
├── MethodPolicy.php
├── MethodSettings.php
├── MethodSettings
│ └── LongRunning.php
├── Metric.php
├── MetricDescriptor.php
├── MetricDescriptor
│ ├── MetricDescriptorMetadata.php
│ ├── MetricDescriptorMetadata
│ │ └── TimeSeriesResourceHierarchyLevel.php
│ ├── MetricKind.php
│ └── ValueType.php
├── MetricRule.php
├── MonitoredResource.php
├── MonitoredResourceDescriptor.php
├── MonitoredResourceMetadata.php
├── Monitoring.php
├── Monitoring
│ └── MonitoringDestination.php
├── NodeSettings.php
├── OAuthRequirements.php
├── Page.php
├── PhpSettings.php
├── ProjectProperties.php
├── Property.php
├── Property
│ └── PropertyType.php
├── Publishing.php
├── PythonSettings.php
├── PythonSettings
│ └── ExperimentalFeatures.php
├── Quota.php
├── QuotaLimit.php
├── ResourceDescriptor.php
├── ResourceDescriptor
│ ├── History.php
│ └── Style.php
├── ResourceReference.php
├── RoutingParameter.php
├── RoutingRule.php
├── RubySettings.php
├── SelectiveGapicGeneration.php
├── Service.php
├── SourceInfo.php
├── SystemParameter.php
├── SystemParameterRule.php
├── SystemParameters.php
├── TypeReference.php
├── Usage.php
├── UsageRule.php
├── Visibility.php
└── VisibilityRule.php
├── Cloud
├── Iam
│ └── V1
│ │ ├── AuditConfig.php
│ │ ├── AuditConfigDelta.php
│ │ ├── AuditConfigDelta
│ │ └── Action.php
│ │ ├── AuditLogConfig.php
│ │ ├── AuditLogConfig
│ │ └── LogType.php
│ │ ├── Binding.php
│ │ ├── BindingDelta.php
│ │ ├── BindingDelta
│ │ └── Action.php
│ │ ├── GetIamPolicyRequest.php
│ │ ├── GetPolicyOptions.php
│ │ ├── Policy.php
│ │ ├── PolicyDelta.php
│ │ ├── ResourcePolicyMember.php
│ │ ├── SetIamPolicyRequest.php
│ │ ├── TestIamPermissionsRequest.php
│ │ └── TestIamPermissionsResponse.php
├── Location
│ ├── GetLocationRequest.php
│ ├── ListLocationsRequest.php
│ ├── ListLocationsResponse.php
│ └── Location.php
├── Logging
│ └── Type
│ │ ├── HttpRequest.php
│ │ └── LogSeverity.php
└── OperationResponseMapping.php
├── Iam
└── V1
│ └── Logging
│ └── AuditData.php
├── Rpc
├── BadRequest.php
├── BadRequest
│ └── FieldViolation.php
├── Code.php
├── Context
│ ├── AttributeContext.php
│ ├── AttributeContext
│ │ ├── Api.php
│ │ ├── Auth.php
│ │ ├── Peer.php
│ │ ├── Request.php
│ │ ├── Resource.php
│ │ └── Response.php
│ └── AuditContext.php
├── DebugInfo.php
├── ErrorInfo.php
├── Help.php
├── Help
│ └── Link.php
├── LocalizedMessage.php
├── PreconditionFailure.php
├── PreconditionFailure
│ └── Violation.php
├── QuotaFailure.php
├── QuotaFailure
│ └── Violation.php
├── RequestInfo.php
├── ResourceInfo.php
├── RetryInfo.php
└── Status.php
└── Type
├── CalendarPeriod.php
├── Color.php
├── Date.php
├── DateTime.php
├── DayOfWeek.php
├── Decimal.php
├── Expr.php
├── Fraction.php
├── Interval.php
├── LatLng.php
├── LocalizedText.php
├── Money.php
├── Month.php
├── PhoneNumber.php
├── PhoneNumber
└── ShortCode.php
├── PostalAddress.php
├── Quaternion.php
├── TimeOfDay.php
└── TimeZone.php
/CODE_OF_CONDUCT.md:
--------------------------------------------------------------------------------
1 | # Contributor Code of Conduct
2 |
3 | As contributors and maintainers of this project,
4 | and in the interest of fostering an open and welcoming community,
5 | we pledge to respect all people who contribute through reporting issues,
6 | posting feature requests, updating documentation,
7 | submitting pull requests or patches, and other activities.
8 |
9 | We are committed to making participation in this project
10 | a harassment-free experience for everyone,
11 | regardless of level of experience, gender, gender identity and expression,
12 | sexual orientation, disability, personal appearance,
13 | body size, race, ethnicity, age, religion, or nationality.
14 |
15 | Examples of unacceptable behavior by participants include:
16 |
17 | * The use of sexualized language or imagery
18 | * Personal attacks
19 | * Trolling or insulting/derogatory comments
20 | * Public or private harassment
21 | * Publishing other's private information,
22 | such as physical or electronic
23 | addresses, without explicit permission
24 | * Other unethical or unprofessional conduct.
25 |
26 | Project maintainers have the right and responsibility to remove, edit, or reject
27 | comments, commits, code, wiki edits, issues, and other contributions
28 | that are not aligned to this Code of Conduct.
29 | By adopting this Code of Conduct,
30 | project maintainers commit themselves to fairly and consistently
31 | applying these principles to every aspect of managing this project.
32 | Project maintainers who do not follow or enforce the Code of Conduct
33 | may be permanently removed from the project team.
34 |
35 | This code of conduct applies both within project spaces and in public spaces
36 | when an individual is representing the project or its community.
37 |
38 | Instances of abusive, harassing, or otherwise unacceptable behavior
39 | may be reported by opening an issue
40 | or contacting one or more of the project maintainers.
41 |
42 | This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.2.0,
43 | available at [http://contributor-covenant.org/version/1/2/0/](http://contributor-covenant.org/version/1/2/0/)
44 |
--------------------------------------------------------------------------------
/CONTRIBUTING.md:
--------------------------------------------------------------------------------
1 | ## Contributing
2 |
3 | We are pleased that you are interested in contributing to our work.
4 |
5 | ### Generated Protocol Buffer Classes
6 |
7 | The classes in this repository are generated by the protocol buffer
8 | compiler, as known as protoc. As such, we can not accept contributions
9 | directly to these generated classes. Instead, changes should be
10 | suggested upstream in the [API Common Protos][api-common-protos]
11 | repository.
12 |
13 |
14 | ### Documentation
15 |
16 | We want for both protocol buffers and the types that we have provided here
17 | to be understandable to everyone, including to those who may be unfamiliar
18 | with the ecosystem or concepts.
19 |
20 | That means we want our documentation to be better, and welcome anyone
21 | willing to help with this. For documentation in the generated classes, please
22 | open a pull request against the [API Common Protos][api-common-protos]
23 | repository.
24 |
25 | Any improvements to READMEs or other non-generated documentation or
26 | development scripts in this repository would be greatly appreciated - please
27 | open a pull request.
28 |
29 |
30 | ## Contributor License Agreement
31 |
32 | Before we can accept your pull requests, you will need to sign a Contributor
33 | License Agreement (CLA):
34 |
35 | - **If you are an individual writing original source code** and **you own the
36 | intellectual property**, then you need to sign an [individual CLA][].
37 | - **If you work for a company that wants to allow you to contribute your
38 | work**, then you need to sign a [corporate CLA][].
39 |
40 | You can sign these electronically (just scroll to the bottom). After that,
41 | we'll be able to accept your pull requests.
42 |
43 | [individual CLA]: https://developers.google.com/open-source/cla/individual
44 | [corporate CLA]: https://developers.google.com/open-source/cla/corporate
45 | [api-common-protos]: https://github.com/googleapis/api-common-protos
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | ## Common Protos PHP
2 |
3 | [](https://packagist.org/packages/google/common-protos) [](https://packagist.org/packages/google/common-protos)
4 |
5 | * [API documentation](https://cloud.google.com/php/docs/reference/common-protos/latest)
6 |
7 | This repository is a home for the [protocol buffer][protobuf] types which are
8 | common dependencies throughout the Google API ecosystem, generated for PHP.
9 | The protobuf definitions for these generated PHP classes are provided by the
10 | [Common Components AIP][common-components-aip] repository.
11 |
12 | **NOTE:** This repository is part of [Google Cloud PHP](https://github.com/googleapis/google-cloud-php). Any
13 | support requests, bug reports, or development contributions should be directed to
14 | that project.
15 |
16 | ## Using these generated classes
17 |
18 | These classes are made available under an Apache license (see `LICENSE`) and
19 | you are free to depend on them within your applications. They are
20 | considered stable and will not change in backwards-incompaible ways.
21 |
22 | They are distributed as the [google/common-protos][packagist-common-protos]
23 | composer package, available on [Packagist][packagist].
24 |
25 | In order to depend on these classes, use composer from the command line in order
26 | to add this package to your `composer.json` file in the `requires` section:
27 |
28 | ```bash
29 | composer require google/common-protos
30 | ```
31 |
32 | ## License
33 |
34 | These classes are licensed using the Apache 2.0 software license, a
35 | permissive, copyfree license. You are free to use them in your applications
36 | provided the license terms are honored.
37 |
38 | [protobuf]: https://developers.google.com/protocol-buffers/
39 | [common-components-aip]: https://google.aip.dev/213
40 | [packagist-common-protos]: https://packagist.org/packages/google/common-protos/
41 | [packagist]: https://packagist.org/
42 |
--------------------------------------------------------------------------------
/SECURITY.md:
--------------------------------------------------------------------------------
1 | # Security Policy
2 |
3 | To report a security issue, please use [g.co/vulnz](https://g.co/vulnz).
4 |
5 | The Google Security Team will respond within 5 working days of your report on g.co/vulnz.
6 |
7 | 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.
8 |
--------------------------------------------------------------------------------
/VERSION:
--------------------------------------------------------------------------------
1 | 4.12.1
2 |
--------------------------------------------------------------------------------
/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "google/common-protos",
3 | "type": "library",
4 | "description": "Google API Common Protos for PHP",
5 | "version": "4.12.1",
6 | "keywords": [
7 | "google"
8 | ],
9 | "homepage": "https://github.com/googleapis/common-protos-php",
10 | "license": "Apache-2.0",
11 | "require": {
12 | "php": "^8.0",
13 | "google/protobuf": "^v3.25.3||^4.26.1"
14 | },
15 | "require-dev": {
16 | "phpunit/phpunit": "^9.6"
17 | },
18 | "autoload": {
19 | "psr-4": {
20 | "Google\\Api\\": "src/Api",
21 | "Google\\Cloud\\": "src/Cloud",
22 | "Google\\Iam\\": "src/Iam",
23 | "Google\\Rpc\\": "src/Rpc",
24 | "Google\\Type\\": "src/Type",
25 | "GPBMetadata\\Google\\Api\\": "metadata/Api",
26 | "GPBMetadata\\Google\\Cloud\\": "metadata/Cloud",
27 | "GPBMetadata\\Google\\Iam\\": "metadata/Iam",
28 | "GPBMetadata\\Google\\Logging\\": "metadata/Logging",
29 | "GPBMetadata\\Google\\Rpc\\": "metadata/Rpc",
30 | "GPBMetadata\\Google\\Type\\": "metadata/Type"
31 | }
32 | },
33 | "extra": {
34 | "component": {
35 | "id": "common-protos",
36 | "target": "googleapis/common-protos-php.git",
37 | "path": "CommonProtos",
38 | "entry": "README.md"
39 | }
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/metadata/Api/Annotations.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googleapis/common-protos-php/70c4eb1abab5484a23c17a43b0d455259f5d8c1b/metadata/Api/Annotations.php
--------------------------------------------------------------------------------
/metadata/Api/Auth.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googleapis/common-protos-php/70c4eb1abab5484a23c17a43b0d455259f5d8c1b/metadata/Api/Auth.php
--------------------------------------------------------------------------------
/metadata/Api/Backend.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googleapis/common-protos-php/70c4eb1abab5484a23c17a43b0d455259f5d8c1b/metadata/Api/Backend.php
--------------------------------------------------------------------------------
/metadata/Api/Billing.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googleapis/common-protos-php/70c4eb1abab5484a23c17a43b0d455259f5d8c1b/metadata/Api/Billing.php
--------------------------------------------------------------------------------
/metadata/Api/Client.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googleapis/common-protos-php/70c4eb1abab5484a23c17a43b0d455259f5d8c1b/metadata/Api/Client.php
--------------------------------------------------------------------------------
/metadata/Api/ConfigChange.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googleapis/common-protos-php/70c4eb1abab5484a23c17a43b0d455259f5d8c1b/metadata/Api/ConfigChange.php
--------------------------------------------------------------------------------
/metadata/Api/Consumer.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googleapis/common-protos-php/70c4eb1abab5484a23c17a43b0d455259f5d8c1b/metadata/Api/Consumer.php
--------------------------------------------------------------------------------
/metadata/Api/Context.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googleapis/common-protos-php/70c4eb1abab5484a23c17a43b0d455259f5d8c1b/metadata/Api/Context.php
--------------------------------------------------------------------------------
/metadata/Api/Control.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googleapis/common-protos-php/70c4eb1abab5484a23c17a43b0d455259f5d8c1b/metadata/Api/Control.php
--------------------------------------------------------------------------------
/metadata/Api/Distribution.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googleapis/common-protos-php/70c4eb1abab5484a23c17a43b0d455259f5d8c1b/metadata/Api/Distribution.php
--------------------------------------------------------------------------------
/metadata/Api/Documentation.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googleapis/common-protos-php/70c4eb1abab5484a23c17a43b0d455259f5d8c1b/metadata/Api/Documentation.php
--------------------------------------------------------------------------------
/metadata/Api/Endpoint.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googleapis/common-protos-php/70c4eb1abab5484a23c17a43b0d455259f5d8c1b/metadata/Api/Endpoint.php
--------------------------------------------------------------------------------
/metadata/Api/ErrorReason.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googleapis/common-protos-php/70c4eb1abab5484a23c17a43b0d455259f5d8c1b/metadata/Api/ErrorReason.php
--------------------------------------------------------------------------------
/metadata/Api/FieldBehavior.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googleapis/common-protos-php/70c4eb1abab5484a23c17a43b0d455259f5d8c1b/metadata/Api/FieldBehavior.php
--------------------------------------------------------------------------------
/metadata/Api/FieldInfo.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googleapis/common-protos-php/70c4eb1abab5484a23c17a43b0d455259f5d8c1b/metadata/Api/FieldInfo.php
--------------------------------------------------------------------------------
/metadata/Api/Http.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googleapis/common-protos-php/70c4eb1abab5484a23c17a43b0d455259f5d8c1b/metadata/Api/Http.php
--------------------------------------------------------------------------------
/metadata/Api/Httpbody.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googleapis/common-protos-php/70c4eb1abab5484a23c17a43b0d455259f5d8c1b/metadata/Api/Httpbody.php
--------------------------------------------------------------------------------
/metadata/Api/Label.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googleapis/common-protos-php/70c4eb1abab5484a23c17a43b0d455259f5d8c1b/metadata/Api/Label.php
--------------------------------------------------------------------------------
/metadata/Api/LaunchStage.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googleapis/common-protos-php/70c4eb1abab5484a23c17a43b0d455259f5d8c1b/metadata/Api/LaunchStage.php
--------------------------------------------------------------------------------
/metadata/Api/Log.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googleapis/common-protos-php/70c4eb1abab5484a23c17a43b0d455259f5d8c1b/metadata/Api/Log.php
--------------------------------------------------------------------------------
/metadata/Api/Logging.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googleapis/common-protos-php/70c4eb1abab5484a23c17a43b0d455259f5d8c1b/metadata/Api/Logging.php
--------------------------------------------------------------------------------
/metadata/Api/Metric.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googleapis/common-protos-php/70c4eb1abab5484a23c17a43b0d455259f5d8c1b/metadata/Api/Metric.php
--------------------------------------------------------------------------------
/metadata/Api/MonitoredResource.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googleapis/common-protos-php/70c4eb1abab5484a23c17a43b0d455259f5d8c1b/metadata/Api/MonitoredResource.php
--------------------------------------------------------------------------------
/metadata/Api/Monitoring.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googleapis/common-protos-php/70c4eb1abab5484a23c17a43b0d455259f5d8c1b/metadata/Api/Monitoring.php
--------------------------------------------------------------------------------
/metadata/Api/Policy.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googleapis/common-protos-php/70c4eb1abab5484a23c17a43b0d455259f5d8c1b/metadata/Api/Policy.php
--------------------------------------------------------------------------------
/metadata/Api/Quota.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googleapis/common-protos-php/70c4eb1abab5484a23c17a43b0d455259f5d8c1b/metadata/Api/Quota.php
--------------------------------------------------------------------------------
/metadata/Api/Resource.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googleapis/common-protos-php/70c4eb1abab5484a23c17a43b0d455259f5d8c1b/metadata/Api/Resource.php
--------------------------------------------------------------------------------
/metadata/Api/Routing.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googleapis/common-protos-php/70c4eb1abab5484a23c17a43b0d455259f5d8c1b/metadata/Api/Routing.php
--------------------------------------------------------------------------------
/metadata/Api/Service.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googleapis/common-protos-php/70c4eb1abab5484a23c17a43b0d455259f5d8c1b/metadata/Api/Service.php
--------------------------------------------------------------------------------
/metadata/Api/SourceInfo.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googleapis/common-protos-php/70c4eb1abab5484a23c17a43b0d455259f5d8c1b/metadata/Api/SourceInfo.php
--------------------------------------------------------------------------------
/metadata/Api/SystemParameter.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googleapis/common-protos-php/70c4eb1abab5484a23c17a43b0d455259f5d8c1b/metadata/Api/SystemParameter.php
--------------------------------------------------------------------------------
/metadata/Api/Usage.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googleapis/common-protos-php/70c4eb1abab5484a23c17a43b0d455259f5d8c1b/metadata/Api/Usage.php
--------------------------------------------------------------------------------
/metadata/Api/Visibility.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googleapis/common-protos-php/70c4eb1abab5484a23c17a43b0d455259f5d8c1b/metadata/Api/Visibility.php
--------------------------------------------------------------------------------
/metadata/Cloud/ExtendedOperations.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googleapis/common-protos-php/70c4eb1abab5484a23c17a43b0d455259f5d8c1b/metadata/Cloud/ExtendedOperations.php
--------------------------------------------------------------------------------
/metadata/Cloud/Location/Locations.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googleapis/common-protos-php/70c4eb1abab5484a23c17a43b0d455259f5d8c1b/metadata/Cloud/Location/Locations.php
--------------------------------------------------------------------------------
/metadata/Google/Iam/V1/IamPolicy.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googleapis/common-protos-php/70c4eb1abab5484a23c17a43b0d455259f5d8c1b/metadata/Google/Iam/V1/IamPolicy.php
--------------------------------------------------------------------------------
/metadata/Google/Iam/V1/Logging/AuditData.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googleapis/common-protos-php/70c4eb1abab5484a23c17a43b0d455259f5d8c1b/metadata/Google/Iam/V1/Logging/AuditData.php
--------------------------------------------------------------------------------
/metadata/Google/Iam/V1/Options.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googleapis/common-protos-php/70c4eb1abab5484a23c17a43b0d455259f5d8c1b/metadata/Google/Iam/V1/Options.php
--------------------------------------------------------------------------------
/metadata/Google/Iam/V1/Policy.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googleapis/common-protos-php/70c4eb1abab5484a23c17a43b0d455259f5d8c1b/metadata/Google/Iam/V1/Policy.php
--------------------------------------------------------------------------------
/metadata/Google/Iam/V1/ResourcePolicyMember.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googleapis/common-protos-php/70c4eb1abab5484a23c17a43b0d455259f5d8c1b/metadata/Google/Iam/V1/ResourcePolicyMember.php
--------------------------------------------------------------------------------
/metadata/Google/Logging/Type/HttpRequest.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googleapis/common-protos-php/70c4eb1abab5484a23c17a43b0d455259f5d8c1b/metadata/Google/Logging/Type/HttpRequest.php
--------------------------------------------------------------------------------
/metadata/Google/Logging/Type/LogSeverity.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googleapis/common-protos-php/70c4eb1abab5484a23c17a43b0d455259f5d8c1b/metadata/Google/Logging/Type/LogSeverity.php
--------------------------------------------------------------------------------
/metadata/Iam/V1/IamPolicy.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googleapis/common-protos-php/70c4eb1abab5484a23c17a43b0d455259f5d8c1b/metadata/Iam/V1/IamPolicy.php
--------------------------------------------------------------------------------
/metadata/Iam/V1/Logging/AuditData.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googleapis/common-protos-php/70c4eb1abab5484a23c17a43b0d455259f5d8c1b/metadata/Iam/V1/Logging/AuditData.php
--------------------------------------------------------------------------------
/metadata/Iam/V1/Options.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googleapis/common-protos-php/70c4eb1abab5484a23c17a43b0d455259f5d8c1b/metadata/Iam/V1/Options.php
--------------------------------------------------------------------------------
/metadata/Iam/V1/Policy.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googleapis/common-protos-php/70c4eb1abab5484a23c17a43b0d455259f5d8c1b/metadata/Iam/V1/Policy.php
--------------------------------------------------------------------------------
/metadata/Iam/V1/ResourcePolicyMember.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googleapis/common-protos-php/70c4eb1abab5484a23c17a43b0d455259f5d8c1b/metadata/Iam/V1/ResourcePolicyMember.php
--------------------------------------------------------------------------------
/metadata/Logging/Type/HttpRequest.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googleapis/common-protos-php/70c4eb1abab5484a23c17a43b0d455259f5d8c1b/metadata/Logging/Type/HttpRequest.php
--------------------------------------------------------------------------------
/metadata/Logging/Type/LogSeverity.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googleapis/common-protos-php/70c4eb1abab5484a23c17a43b0d455259f5d8c1b/metadata/Logging/Type/LogSeverity.php
--------------------------------------------------------------------------------
/metadata/Rpc/Code.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googleapis/common-protos-php/70c4eb1abab5484a23c17a43b0d455259f5d8c1b/metadata/Rpc/Code.php
--------------------------------------------------------------------------------
/metadata/Rpc/Context/AttributeContext.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googleapis/common-protos-php/70c4eb1abab5484a23c17a43b0d455259f5d8c1b/metadata/Rpc/Context/AttributeContext.php
--------------------------------------------------------------------------------
/metadata/Rpc/Context/AuditContext.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googleapis/common-protos-php/70c4eb1abab5484a23c17a43b0d455259f5d8c1b/metadata/Rpc/Context/AuditContext.php
--------------------------------------------------------------------------------
/metadata/Rpc/ErrorDetails.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googleapis/common-protos-php/70c4eb1abab5484a23c17a43b0d455259f5d8c1b/metadata/Rpc/ErrorDetails.php
--------------------------------------------------------------------------------
/metadata/Rpc/Status.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googleapis/common-protos-php/70c4eb1abab5484a23c17a43b0d455259f5d8c1b/metadata/Rpc/Status.php
--------------------------------------------------------------------------------
/metadata/Type/CalendarPeriod.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googleapis/common-protos-php/70c4eb1abab5484a23c17a43b0d455259f5d8c1b/metadata/Type/CalendarPeriod.php
--------------------------------------------------------------------------------
/metadata/Type/Color.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googleapis/common-protos-php/70c4eb1abab5484a23c17a43b0d455259f5d8c1b/metadata/Type/Color.php
--------------------------------------------------------------------------------
/metadata/Type/Date.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googleapis/common-protos-php/70c4eb1abab5484a23c17a43b0d455259f5d8c1b/metadata/Type/Date.php
--------------------------------------------------------------------------------
/metadata/Type/Datetime.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googleapis/common-protos-php/70c4eb1abab5484a23c17a43b0d455259f5d8c1b/metadata/Type/Datetime.php
--------------------------------------------------------------------------------
/metadata/Type/Dayofweek.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googleapis/common-protos-php/70c4eb1abab5484a23c17a43b0d455259f5d8c1b/metadata/Type/Dayofweek.php
--------------------------------------------------------------------------------
/metadata/Type/Decimal.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googleapis/common-protos-php/70c4eb1abab5484a23c17a43b0d455259f5d8c1b/metadata/Type/Decimal.php
--------------------------------------------------------------------------------
/metadata/Type/Expr.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googleapis/common-protos-php/70c4eb1abab5484a23c17a43b0d455259f5d8c1b/metadata/Type/Expr.php
--------------------------------------------------------------------------------
/metadata/Type/Fraction.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googleapis/common-protos-php/70c4eb1abab5484a23c17a43b0d455259f5d8c1b/metadata/Type/Fraction.php
--------------------------------------------------------------------------------
/metadata/Type/Interval.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googleapis/common-protos-php/70c4eb1abab5484a23c17a43b0d455259f5d8c1b/metadata/Type/Interval.php
--------------------------------------------------------------------------------
/metadata/Type/Latlng.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googleapis/common-protos-php/70c4eb1abab5484a23c17a43b0d455259f5d8c1b/metadata/Type/Latlng.php
--------------------------------------------------------------------------------
/metadata/Type/LocalizedText.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googleapis/common-protos-php/70c4eb1abab5484a23c17a43b0d455259f5d8c1b/metadata/Type/LocalizedText.php
--------------------------------------------------------------------------------
/metadata/Type/Money.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googleapis/common-protos-php/70c4eb1abab5484a23c17a43b0d455259f5d8c1b/metadata/Type/Money.php
--------------------------------------------------------------------------------
/metadata/Type/Month.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googleapis/common-protos-php/70c4eb1abab5484a23c17a43b0d455259f5d8c1b/metadata/Type/Month.php
--------------------------------------------------------------------------------
/metadata/Type/PhoneNumber.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googleapis/common-protos-php/70c4eb1abab5484a23c17a43b0d455259f5d8c1b/metadata/Type/PhoneNumber.php
--------------------------------------------------------------------------------
/metadata/Type/PostalAddress.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googleapis/common-protos-php/70c4eb1abab5484a23c17a43b0d455259f5d8c1b/metadata/Type/PostalAddress.php
--------------------------------------------------------------------------------
/metadata/Type/Quaternion.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googleapis/common-protos-php/70c4eb1abab5484a23c17a43b0d455259f5d8c1b/metadata/Type/Quaternion.php
--------------------------------------------------------------------------------
/metadata/Type/Timeofday.php:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/googleapis/common-protos-php/70c4eb1abab5484a23c17a43b0d455259f5d8c1b/metadata/Type/Timeofday.php
--------------------------------------------------------------------------------
/renovate.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": [
3 | "config:base",
4 | ":preserveSemverRanges",
5 | ":disableDependencyDashboard"
6 | ]
7 | }
8 |
--------------------------------------------------------------------------------
/src/Api/Advice.php:
--------------------------------------------------------------------------------
1 | google.api.Advice
16 | */
17 | class Advice extends \Google\Protobuf\Internal\Message
18 | {
19 | /**
20 | * Useful description for why this advice was applied and what actions should
21 | * be taken to mitigate any implied risks.
22 | *
23 | * Generated from protobuf field string description = 2;
24 | */
25 | protected $description = '';
26 |
27 | /**
28 | * Constructor.
29 | *
30 | * @param array $data {
31 | * Optional. Data for populating the Message object.
32 | *
33 | * @type string $description
34 | * Useful description for why this advice was applied and what actions should
35 | * be taken to mitigate any implied risks.
36 | * }
37 | */
38 | public function __construct($data = NULL) {
39 | \GPBMetadata\Google\Api\ConfigChange::initOnce();
40 | parent::__construct($data);
41 | }
42 |
43 | /**
44 | * Useful description for why this advice was applied and what actions should
45 | * be taken to mitigate any implied risks.
46 | *
47 | * Generated from protobuf field string description = 2;
48 | * @return string
49 | */
50 | public function getDescription()
51 | {
52 | return $this->description;
53 | }
54 |
55 | /**
56 | * Useful description for why this advice was applied and what actions should
57 | * be taken to mitigate any implied risks.
58 | *
59 | * Generated from protobuf field string description = 2;
60 | * @param string $var
61 | * @return $this
62 | */
63 | public function setDescription($var)
64 | {
65 | GPBUtil::checkString($var, True);
66 | $this->description = $var;
67 |
68 | return $this;
69 | }
70 |
71 | }
72 |
73 |
--------------------------------------------------------------------------------
/src/Api/Backend.php:
--------------------------------------------------------------------------------
1 | google.api.Backend
15 | */
16 | class Backend extends \Google\Protobuf\Internal\Message
17 | {
18 | /**
19 | * A list of API backend rules that apply to individual API methods.
20 | * **NOTE:** All service configuration rules follow "last one wins" order.
21 | *
22 | * Generated from protobuf field repeated .google.api.BackendRule rules = 1;
23 | */
24 | private $rules;
25 |
26 | /**
27 | * Constructor.
28 | *
29 | * @param array $data {
30 | * Optional. Data for populating the Message object.
31 | *
32 | * @type array<\Google\Api\BackendRule>|\Google\Protobuf\Internal\RepeatedField $rules
33 | * A list of API backend rules that apply to individual API methods.
34 | * **NOTE:** All service configuration rules follow "last one wins" order.
35 | * }
36 | */
37 | public function __construct($data = NULL) {
38 | \GPBMetadata\Google\Api\Backend::initOnce();
39 | parent::__construct($data);
40 | }
41 |
42 | /**
43 | * A list of API backend rules that apply to individual API methods.
44 | * **NOTE:** All service configuration rules follow "last one wins" order.
45 | *
46 | * Generated from protobuf field repeated .google.api.BackendRule rules = 1;
47 | * @return \Google\Protobuf\Internal\RepeatedField
48 | */
49 | public function getRules()
50 | {
51 | return $this->rules;
52 | }
53 |
54 | /**
55 | * A list of API backend rules that apply to individual API methods.
56 | * **NOTE:** All service configuration rules follow "last one wins" order.
57 | *
58 | * Generated from protobuf field repeated .google.api.BackendRule rules = 1;
59 | * @param array<\Google\Api\BackendRule>|\Google\Protobuf\Internal\RepeatedField $var
60 | * @return $this
61 | */
62 | public function setRules($var)
63 | {
64 | $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\BackendRule::class);
65 | $this->rules = $arr;
66 |
67 | return $this;
68 | }
69 |
70 | }
71 |
72 |
--------------------------------------------------------------------------------
/src/Api/BackendRule/PathTranslation.php:
--------------------------------------------------------------------------------
1 | google.api.BackendRule.PathTranslation
18 | */
19 | class PathTranslation
20 | {
21 | /**
22 | * Generated from protobuf enum PATH_TRANSLATION_UNSPECIFIED = 0;
23 | */
24 | const PATH_TRANSLATION_UNSPECIFIED = 0;
25 | /**
26 | * Use the backend address as-is, with no modification to the path. If the
27 | * URL pattern contains variables, the variable names and values will be
28 | * appended to the query string. If a query string parameter and a URL
29 | * pattern variable have the same name, this may result in duplicate keys in
30 | * the query string.
31 | * # Examples
32 | * Given the following operation config:
33 | * Method path: /api/company/{cid}/user/{uid}
34 | * Backend address: https://example.cloudfunctions.net/getUser
35 | * Requests to the following request paths will call the backend at the
36 | * translated path:
37 | * Request path: /api/company/widgetworks/user/johndoe
38 | * Translated:
39 | * https://example.cloudfunctions.net/getUser?cid=widgetworks&uid=johndoe
40 | * Request path: /api/company/widgetworks/user/johndoe?timezone=EST
41 | * Translated:
42 | * https://example.cloudfunctions.net/getUser?timezone=EST&cid=widgetworks&uid=johndoe
43 | *
44 | * Generated from protobuf enum CONSTANT_ADDRESS = 1;
45 | */
46 | const CONSTANT_ADDRESS = 1;
47 | /**
48 | * The request path will be appended to the backend address.
49 | * # Examples
50 | * Given the following operation config:
51 | * Method path: /api/company/{cid}/user/{uid}
52 | * Backend address: https://example.appspot.com
53 | * Requests to the following request paths will call the backend at the
54 | * translated path:
55 | * Request path: /api/company/widgetworks/user/johndoe
56 | * Translated:
57 | * https://example.appspot.com/api/company/widgetworks/user/johndoe
58 | * Request path: /api/company/widgetworks/user/johndoe?timezone=EST
59 | * Translated:
60 | * https://example.appspot.com/api/company/widgetworks/user/johndoe?timezone=EST
61 | *
62 | * Generated from protobuf enum APPEND_PATH_TO_ADDRESS = 2;
63 | */
64 | const APPEND_PATH_TO_ADDRESS = 2;
65 |
66 | private static $valueToName = [
67 | self::PATH_TRANSLATION_UNSPECIFIED => 'PATH_TRANSLATION_UNSPECIFIED',
68 | self::CONSTANT_ADDRESS => 'CONSTANT_ADDRESS',
69 | self::APPEND_PATH_TO_ADDRESS => 'APPEND_PATH_TO_ADDRESS',
70 | ];
71 |
72 | public static function name($value)
73 | {
74 | if (!isset(self::$valueToName[$value])) {
75 | throw new UnexpectedValueException(sprintf(
76 | 'Enum %s has no name defined for value %s', __CLASS__, $value));
77 | }
78 | return self::$valueToName[$value];
79 | }
80 |
81 |
82 | public static function value($name)
83 | {
84 | $const = __CLASS__ . '::' . strtoupper($name);
85 | if (!defined($const)) {
86 | throw new UnexpectedValueException(sprintf(
87 | 'Enum %s has no value defined for name %s', __CLASS__, $name));
88 | }
89 | return constant($const);
90 | }
91 | }
92 |
93 |
94 |
--------------------------------------------------------------------------------
/src/Api/Billing/BillingDestination.php:
--------------------------------------------------------------------------------
1 | google.api.Billing.BillingDestination
16 | */
17 | class BillingDestination extends \Google\Protobuf\Internal\Message
18 | {
19 | /**
20 | * The monitored resource type. The type must be defined in
21 | * [Service.monitored_resources][google.api.Service.monitored_resources]
22 | * section.
23 | *
24 | * Generated from protobuf field string monitored_resource = 1;
25 | */
26 | protected $monitored_resource = '';
27 | /**
28 | * Names of the metrics to report to this billing destination.
29 | * Each name must be defined in
30 | * [Service.metrics][google.api.Service.metrics] section.
31 | *
32 | * Generated from protobuf field repeated string metrics = 2;
33 | */
34 | private $metrics;
35 |
36 | /**
37 | * Constructor.
38 | *
39 | * @param array $data {
40 | * Optional. Data for populating the Message object.
41 | *
42 | * @type string $monitored_resource
43 | * The monitored resource type. The type must be defined in
44 | * [Service.monitored_resources][google.api.Service.monitored_resources]
45 | * section.
46 | * @type array|\Google\Protobuf\Internal\RepeatedField $metrics
47 | * Names of the metrics to report to this billing destination.
48 | * Each name must be defined in
49 | * [Service.metrics][google.api.Service.metrics] section.
50 | * }
51 | */
52 | public function __construct($data = NULL) {
53 | \GPBMetadata\Google\Api\Billing::initOnce();
54 | parent::__construct($data);
55 | }
56 |
57 | /**
58 | * The monitored resource type. The type must be defined in
59 | * [Service.monitored_resources][google.api.Service.monitored_resources]
60 | * section.
61 | *
62 | * Generated from protobuf field string monitored_resource = 1;
63 | * @return string
64 | */
65 | public function getMonitoredResource()
66 | {
67 | return $this->monitored_resource;
68 | }
69 |
70 | /**
71 | * The monitored resource type. The type must be defined in
72 | * [Service.monitored_resources][google.api.Service.monitored_resources]
73 | * section.
74 | *
75 | * Generated from protobuf field string monitored_resource = 1;
76 | * @param string $var
77 | * @return $this
78 | */
79 | public function setMonitoredResource($var)
80 | {
81 | GPBUtil::checkString($var, True);
82 | $this->monitored_resource = $var;
83 |
84 | return $this;
85 | }
86 |
87 | /**
88 | * Names of the metrics to report to this billing destination.
89 | * Each name must be defined in
90 | * [Service.metrics][google.api.Service.metrics] section.
91 | *
92 | * Generated from protobuf field repeated string metrics = 2;
93 | * @return \Google\Protobuf\Internal\RepeatedField
94 | */
95 | public function getMetrics()
96 | {
97 | return $this->metrics;
98 | }
99 |
100 | /**
101 | * Names of the metrics to report to this billing destination.
102 | * Each name must be defined in
103 | * [Service.metrics][google.api.Service.metrics] section.
104 | *
105 | * Generated from protobuf field repeated string metrics = 2;
106 | * @param array|\Google\Protobuf\Internal\RepeatedField $var
107 | * @return $this
108 | */
109 | public function setMetrics($var)
110 | {
111 | $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
112 | $this->metrics = $arr;
113 |
114 | return $this;
115 | }
116 |
117 | }
118 |
119 |
120 |
--------------------------------------------------------------------------------
/src/Api/ChangeType.php:
--------------------------------------------------------------------------------
1 | google.api.ChangeType
14 | */
15 | class ChangeType
16 | {
17 | /**
18 | * No value was provided.
19 | *
20 | * Generated from protobuf enum CHANGE_TYPE_UNSPECIFIED = 0;
21 | */
22 | const CHANGE_TYPE_UNSPECIFIED = 0;
23 | /**
24 | * The changed object exists in the 'new' service configuration, but not
25 | * in the 'old' service configuration.
26 | *
27 | * Generated from protobuf enum ADDED = 1;
28 | */
29 | const ADDED = 1;
30 | /**
31 | * The changed object exists in the 'old' service configuration, but not
32 | * in the 'new' service configuration.
33 | *
34 | * Generated from protobuf enum REMOVED = 2;
35 | */
36 | const REMOVED = 2;
37 | /**
38 | * The changed object exists in both service configurations, but its value
39 | * is different.
40 | *
41 | * Generated from protobuf enum MODIFIED = 3;
42 | */
43 | const MODIFIED = 3;
44 |
45 | private static $valueToName = [
46 | self::CHANGE_TYPE_UNSPECIFIED => 'CHANGE_TYPE_UNSPECIFIED',
47 | self::ADDED => 'ADDED',
48 | self::REMOVED => 'REMOVED',
49 | self::MODIFIED => 'MODIFIED',
50 | ];
51 |
52 | public static function name($value)
53 | {
54 | if (!isset(self::$valueToName[$value])) {
55 | throw new UnexpectedValueException(sprintf(
56 | 'Enum %s has no name defined for value %s', __CLASS__, $value));
57 | }
58 | return self::$valueToName[$value];
59 | }
60 |
61 |
62 | public static function value($name)
63 | {
64 | $const = __CLASS__ . '::' . strtoupper($name);
65 | if (!defined($const)) {
66 | throw new UnexpectedValueException(sprintf(
67 | 'Enum %s has no value defined for name %s', __CLASS__, $name));
68 | }
69 | return constant($const);
70 | }
71 | }
72 |
73 |
--------------------------------------------------------------------------------
/src/Api/ClientLibraryDestination.php:
--------------------------------------------------------------------------------
1 | google.api.ClientLibraryDestination
13 | */
14 | class ClientLibraryDestination
15 | {
16 | /**
17 | * Client libraries will neither be generated nor published to package
18 | * managers.
19 | *
20 | * Generated from protobuf enum CLIENT_LIBRARY_DESTINATION_UNSPECIFIED = 0;
21 | */
22 | const CLIENT_LIBRARY_DESTINATION_UNSPECIFIED = 0;
23 | /**
24 | * Generate the client library in a repo under github.com/googleapis,
25 | * but don't publish it to package managers.
26 | *
27 | * Generated from protobuf enum GITHUB = 10;
28 | */
29 | const GITHUB = 10;
30 | /**
31 | * Publish the library to package managers like nuget.org and npmjs.com.
32 | *
33 | * Generated from protobuf enum PACKAGE_MANAGER = 20;
34 | */
35 | const PACKAGE_MANAGER = 20;
36 |
37 | private static $valueToName = [
38 | self::CLIENT_LIBRARY_DESTINATION_UNSPECIFIED => 'CLIENT_LIBRARY_DESTINATION_UNSPECIFIED',
39 | self::GITHUB => 'GITHUB',
40 | self::PACKAGE_MANAGER => 'PACKAGE_MANAGER',
41 | ];
42 |
43 | public static function name($value)
44 | {
45 | if (!isset(self::$valueToName[$value])) {
46 | throw new UnexpectedValueException(sprintf(
47 | 'Enum %s has no name defined for value %s', __CLASS__, $value));
48 | }
49 | return self::$valueToName[$value];
50 | }
51 |
52 |
53 | public static function value($name)
54 | {
55 | $const = __CLASS__ . '::' . strtoupper($name);
56 | if (!defined($const)) {
57 | throw new UnexpectedValueException(sprintf(
58 | 'Enum %s has no value defined for name %s', __CLASS__, $name));
59 | }
60 | return constant($const);
61 | }
62 | }
63 |
64 |
--------------------------------------------------------------------------------
/src/Api/ClientLibraryOrganization.php:
--------------------------------------------------------------------------------
1 | google.api.ClientLibraryOrganization
14 | */
15 | class ClientLibraryOrganization
16 | {
17 | /**
18 | * Not useful.
19 | *
20 | * Generated from protobuf enum CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 0;
21 | */
22 | const CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 0;
23 | /**
24 | * Google Cloud Platform Org.
25 | *
26 | * Generated from protobuf enum CLOUD = 1;
27 | */
28 | const CLOUD = 1;
29 | /**
30 | * Ads (Advertising) Org.
31 | *
32 | * Generated from protobuf enum ADS = 2;
33 | */
34 | const ADS = 2;
35 | /**
36 | * Photos Org.
37 | *
38 | * Generated from protobuf enum PHOTOS = 3;
39 | */
40 | const PHOTOS = 3;
41 | /**
42 | * Street View Org.
43 | *
44 | * Generated from protobuf enum STREET_VIEW = 4;
45 | */
46 | const STREET_VIEW = 4;
47 | /**
48 | * Shopping Org.
49 | *
50 | * Generated from protobuf enum SHOPPING = 5;
51 | */
52 | const SHOPPING = 5;
53 | /**
54 | * Geo Org.
55 | *
56 | * Generated from protobuf enum GEO = 6;
57 | */
58 | const GEO = 6;
59 | /**
60 | * Generative AI - https://developers.generativeai.google
61 | *
62 | * Generated from protobuf enum GENERATIVE_AI = 7;
63 | */
64 | const GENERATIVE_AI = 7;
65 |
66 | private static $valueToName = [
67 | self::CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED => 'CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED',
68 | self::CLOUD => 'CLOUD',
69 | self::ADS => 'ADS',
70 | self::PHOTOS => 'PHOTOS',
71 | self::STREET_VIEW => 'STREET_VIEW',
72 | self::SHOPPING => 'SHOPPING',
73 | self::GEO => 'GEO',
74 | self::GENERATIVE_AI => 'GENERATIVE_AI',
75 | ];
76 |
77 | public static function name($value)
78 | {
79 | if (!isset(self::$valueToName[$value])) {
80 | throw new UnexpectedValueException(sprintf(
81 | 'Enum %s has no name defined for value %s', __CLASS__, $value));
82 | }
83 | return self::$valueToName[$value];
84 | }
85 |
86 |
87 | public static function value($name)
88 | {
89 | $const = __CLASS__ . '::' . strtoupper($name);
90 | if (!defined($const)) {
91 | throw new UnexpectedValueException(sprintf(
92 | 'Enum %s has no value defined for name %s', __CLASS__, $name));
93 | }
94 | return constant($const);
95 | }
96 | }
97 |
98 |
--------------------------------------------------------------------------------
/src/Api/Context.php:
--------------------------------------------------------------------------------
1 | -bin” and
27 | * “x-goog-ext--jspb” format. For example, list any service
28 | * specific protobuf types that can appear in grpc metadata as follows in your
29 | * yaml file:
30 | * Example:
31 | * context:
32 | * rules:
33 | * - selector: "google.example.library.v1.LibraryService.CreateBook"
34 | * allowed_request_extensions:
35 | * - google.foo.v1.NewExtension
36 | * allowed_response_extensions:
37 | * - google.foo.v1.NewExtension
38 | * You can also specify extension ID instead of fully qualified extension name
39 | * here.
40 | *
41 | * Generated from protobuf message google.api.Context
42 | */
43 | class Context extends \Google\Protobuf\Internal\Message
44 | {
45 | /**
46 | * A list of RPC context rules that apply to individual API methods.
47 | * **NOTE:** All service configuration rules follow "last one wins" order.
48 | *
49 | * Generated from protobuf field repeated .google.api.ContextRule rules = 1;
50 | */
51 | private $rules;
52 |
53 | /**
54 | * Constructor.
55 | *
56 | * @param array $data {
57 | * Optional. Data for populating the Message object.
58 | *
59 | * @type array<\Google\Api\ContextRule>|\Google\Protobuf\Internal\RepeatedField $rules
60 | * A list of RPC context rules that apply to individual API methods.
61 | * **NOTE:** All service configuration rules follow "last one wins" order.
62 | * }
63 | */
64 | public function __construct($data = NULL) {
65 | \GPBMetadata\Google\Api\Context::initOnce();
66 | parent::__construct($data);
67 | }
68 |
69 | /**
70 | * A list of RPC context rules that apply to individual API methods.
71 | * **NOTE:** All service configuration rules follow "last one wins" order.
72 | *
73 | * Generated from protobuf field repeated .google.api.ContextRule rules = 1;
74 | * @return \Google\Protobuf\Internal\RepeatedField
75 | */
76 | public function getRules()
77 | {
78 | return $this->rules;
79 | }
80 |
81 | /**
82 | * A list of RPC context rules that apply to individual API methods.
83 | * **NOTE:** All service configuration rules follow "last one wins" order.
84 | *
85 | * Generated from protobuf field repeated .google.api.ContextRule rules = 1;
86 | * @param array<\Google\Api\ContextRule>|\Google\Protobuf\Internal\RepeatedField $var
87 | * @return $this
88 | */
89 | public function setRules($var)
90 | {
91 | $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\ContextRule::class);
92 | $this->rules = $arr;
93 |
94 | return $this;
95 | }
96 |
97 | }
98 |
99 |
--------------------------------------------------------------------------------
/src/Api/Control.php:
--------------------------------------------------------------------------------
1 | google.api.Control
18 | */
19 | class Control extends \Google\Protobuf\Internal\Message
20 | {
21 | /**
22 | * The service controller environment to use. If empty, no control plane
23 | * feature (like quota and billing) will be enabled. The recommended value for
24 | * most services is servicecontrol.googleapis.com
25 | *
26 | * Generated from protobuf field string environment = 1;
27 | */
28 | protected $environment = '';
29 | /**
30 | * Defines policies applying to the API methods of the service.
31 | *
32 | * Generated from protobuf field repeated .google.api.MethodPolicy method_policies = 4;
33 | */
34 | private $method_policies;
35 |
36 | /**
37 | * Constructor.
38 | *
39 | * @param array $data {
40 | * Optional. Data for populating the Message object.
41 | *
42 | * @type string $environment
43 | * The service controller environment to use. If empty, no control plane
44 | * feature (like quota and billing) will be enabled. The recommended value for
45 | * most services is servicecontrol.googleapis.com
46 | * @type array<\Google\Api\MethodPolicy>|\Google\Protobuf\Internal\RepeatedField $method_policies
47 | * Defines policies applying to the API methods of the service.
48 | * }
49 | */
50 | public function __construct($data = NULL) {
51 | \GPBMetadata\Google\Api\Control::initOnce();
52 | parent::__construct($data);
53 | }
54 |
55 | /**
56 | * The service controller environment to use. If empty, no control plane
57 | * feature (like quota and billing) will be enabled. The recommended value for
58 | * most services is servicecontrol.googleapis.com
59 | *
60 | * Generated from protobuf field string environment = 1;
61 | * @return string
62 | */
63 | public function getEnvironment()
64 | {
65 | return $this->environment;
66 | }
67 |
68 | /**
69 | * The service controller environment to use. If empty, no control plane
70 | * feature (like quota and billing) will be enabled. The recommended value for
71 | * most services is servicecontrol.googleapis.com
72 | *
73 | * Generated from protobuf field string environment = 1;
74 | * @param string $var
75 | * @return $this
76 | */
77 | public function setEnvironment($var)
78 | {
79 | GPBUtil::checkString($var, True);
80 | $this->environment = $var;
81 |
82 | return $this;
83 | }
84 |
85 | /**
86 | * Defines policies applying to the API methods of the service.
87 | *
88 | * Generated from protobuf field repeated .google.api.MethodPolicy method_policies = 4;
89 | * @return \Google\Protobuf\Internal\RepeatedField
90 | */
91 | public function getMethodPolicies()
92 | {
93 | return $this->method_policies;
94 | }
95 |
96 | /**
97 | * Defines policies applying to the API methods of the service.
98 | *
99 | * Generated from protobuf field repeated .google.api.MethodPolicy method_policies = 4;
100 | * @param array<\Google\Api\MethodPolicy>|\Google\Protobuf\Internal\RepeatedField $var
101 | * @return $this
102 | */
103 | public function setMethodPolicies($var)
104 | {
105 | $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\MethodPolicy::class);
106 | $this->method_policies = $arr;
107 |
108 | return $this;
109 | }
110 |
111 | }
112 |
113 |
--------------------------------------------------------------------------------
/src/Api/CppSettings.php:
--------------------------------------------------------------------------------
1 | google.api.CppSettings
15 | */
16 | class CppSettings extends \Google\Protobuf\Internal\Message
17 | {
18 | /**
19 | * Some settings.
20 | *
21 | * Generated from protobuf field .google.api.CommonLanguageSettings common = 1;
22 | */
23 | protected $common = null;
24 |
25 | /**
26 | * Constructor.
27 | *
28 | * @param array $data {
29 | * Optional. Data for populating the Message object.
30 | *
31 | * @type \Google\Api\CommonLanguageSettings $common
32 | * Some settings.
33 | * }
34 | */
35 | public function __construct($data = NULL) {
36 | \GPBMetadata\Google\Api\Client::initOnce();
37 | parent::__construct($data);
38 | }
39 |
40 | /**
41 | * Some settings.
42 | *
43 | * Generated from protobuf field .google.api.CommonLanguageSettings common = 1;
44 | * @return \Google\Api\CommonLanguageSettings|null
45 | */
46 | public function getCommon()
47 | {
48 | return $this->common;
49 | }
50 |
51 | public function hasCommon()
52 | {
53 | return isset($this->common);
54 | }
55 |
56 | public function clearCommon()
57 | {
58 | unset($this->common);
59 | }
60 |
61 | /**
62 | * Some settings.
63 | *
64 | * Generated from protobuf field .google.api.CommonLanguageSettings common = 1;
65 | * @param \Google\Api\CommonLanguageSettings $var
66 | * @return $this
67 | */
68 | public function setCommon($var)
69 | {
70 | GPBUtil::checkMessage($var, \Google\Api\CommonLanguageSettings::class);
71 | $this->common = $var;
72 |
73 | return $this;
74 | }
75 |
76 | }
77 |
78 |
--------------------------------------------------------------------------------
/src/Api/CustomHttpPattern.php:
--------------------------------------------------------------------------------
1 | google.api.CustomHttpPattern
15 | */
16 | class CustomHttpPattern extends \Google\Protobuf\Internal\Message
17 | {
18 | /**
19 | * The name of this custom HTTP verb.
20 | *
21 | * Generated from protobuf field string kind = 1;
22 | */
23 | protected $kind = '';
24 | /**
25 | * The path matched by this custom verb.
26 | *
27 | * Generated from protobuf field string path = 2;
28 | */
29 | protected $path = '';
30 |
31 | /**
32 | * Constructor.
33 | *
34 | * @param array $data {
35 | * Optional. Data for populating the Message object.
36 | *
37 | * @type string $kind
38 | * The name of this custom HTTP verb.
39 | * @type string $path
40 | * The path matched by this custom verb.
41 | * }
42 | */
43 | public function __construct($data = NULL) {
44 | \GPBMetadata\Google\Api\Http::initOnce();
45 | parent::__construct($data);
46 | }
47 |
48 | /**
49 | * The name of this custom HTTP verb.
50 | *
51 | * Generated from protobuf field string kind = 1;
52 | * @return string
53 | */
54 | public function getKind()
55 | {
56 | return $this->kind;
57 | }
58 |
59 | /**
60 | * The name of this custom HTTP verb.
61 | *
62 | * Generated from protobuf field string kind = 1;
63 | * @param string $var
64 | * @return $this
65 | */
66 | public function setKind($var)
67 | {
68 | GPBUtil::checkString($var, True);
69 | $this->kind = $var;
70 |
71 | return $this;
72 | }
73 |
74 | /**
75 | * The path matched by this custom verb.
76 | *
77 | * Generated from protobuf field string path = 2;
78 | * @return string
79 | */
80 | public function getPath()
81 | {
82 | return $this->path;
83 | }
84 |
85 | /**
86 | * The path matched by this custom verb.
87 | *
88 | * Generated from protobuf field string path = 2;
89 | * @param string $var
90 | * @return $this
91 | */
92 | public function setPath($var)
93 | {
94 | GPBUtil::checkString($var, True);
95 | $this->path = $var;
96 |
97 | return $this;
98 | }
99 |
100 | }
101 |
102 |
--------------------------------------------------------------------------------
/src/Api/Distribution/BucketOptions/Explicit.php:
--------------------------------------------------------------------------------
1 | google.api.Distribution.BucketOptions.Explicit
22 | */
23 | class Explicit extends \Google\Protobuf\Internal\Message
24 | {
25 | /**
26 | * The values must be monotonically increasing.
27 | *
28 | * Generated from protobuf field repeated double bounds = 1;
29 | */
30 | private $bounds;
31 |
32 | /**
33 | * Constructor.
34 | *
35 | * @param array $data {
36 | * Optional. Data for populating the Message object.
37 | *
38 | * @type array|\Google\Protobuf\Internal\RepeatedField $bounds
39 | * The values must be monotonically increasing.
40 | * }
41 | */
42 | public function __construct($data = NULL) {
43 | \GPBMetadata\Google\Api\Distribution::initOnce();
44 | parent::__construct($data);
45 | }
46 |
47 | /**
48 | * The values must be monotonically increasing.
49 | *
50 | * Generated from protobuf field repeated double bounds = 1;
51 | * @return \Google\Protobuf\Internal\RepeatedField
52 | */
53 | public function getBounds()
54 | {
55 | return $this->bounds;
56 | }
57 |
58 | /**
59 | * The values must be monotonically increasing.
60 | *
61 | * Generated from protobuf field repeated double bounds = 1;
62 | * @param array|\Google\Protobuf\Internal\RepeatedField $var
63 | * @return $this
64 | */
65 | public function setBounds($var)
66 | {
67 | $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::DOUBLE);
68 | $this->bounds = $arr;
69 |
70 | return $this;
71 | }
72 |
73 | }
74 |
75 |
76 |
--------------------------------------------------------------------------------
/src/Api/Distribution/BucketOptions/Exponential.php:
--------------------------------------------------------------------------------
1 | google.api.Distribution.BucketOptions.Exponential
21 | */
22 | class Exponential extends \Google\Protobuf\Internal\Message
23 | {
24 | /**
25 | * Must be greater than 0.
26 | *
27 | * Generated from protobuf field int32 num_finite_buckets = 1;
28 | */
29 | protected $num_finite_buckets = 0;
30 | /**
31 | * Must be greater than 1.
32 | *
33 | * Generated from protobuf field double growth_factor = 2;
34 | */
35 | protected $growth_factor = 0.0;
36 | /**
37 | * Must be greater than 0.
38 | *
39 | * Generated from protobuf field double scale = 3;
40 | */
41 | protected $scale = 0.0;
42 |
43 | /**
44 | * Constructor.
45 | *
46 | * @param array $data {
47 | * Optional. Data for populating the Message object.
48 | *
49 | * @type int $num_finite_buckets
50 | * Must be greater than 0.
51 | * @type float $growth_factor
52 | * Must be greater than 1.
53 | * @type float $scale
54 | * Must be greater than 0.
55 | * }
56 | */
57 | public function __construct($data = NULL) {
58 | \GPBMetadata\Google\Api\Distribution::initOnce();
59 | parent::__construct($data);
60 | }
61 |
62 | /**
63 | * Must be greater than 0.
64 | *
65 | * Generated from protobuf field int32 num_finite_buckets = 1;
66 | * @return int
67 | */
68 | public function getNumFiniteBuckets()
69 | {
70 | return $this->num_finite_buckets;
71 | }
72 |
73 | /**
74 | * Must be greater than 0.
75 | *
76 | * Generated from protobuf field int32 num_finite_buckets = 1;
77 | * @param int $var
78 | * @return $this
79 | */
80 | public function setNumFiniteBuckets($var)
81 | {
82 | GPBUtil::checkInt32($var);
83 | $this->num_finite_buckets = $var;
84 |
85 | return $this;
86 | }
87 |
88 | /**
89 | * Must be greater than 1.
90 | *
91 | * Generated from protobuf field double growth_factor = 2;
92 | * @return float
93 | */
94 | public function getGrowthFactor()
95 | {
96 | return $this->growth_factor;
97 | }
98 |
99 | /**
100 | * Must be greater than 1.
101 | *
102 | * Generated from protobuf field double growth_factor = 2;
103 | * @param float $var
104 | * @return $this
105 | */
106 | public function setGrowthFactor($var)
107 | {
108 | GPBUtil::checkDouble($var);
109 | $this->growth_factor = $var;
110 |
111 | return $this;
112 | }
113 |
114 | /**
115 | * Must be greater than 0.
116 | *
117 | * Generated from protobuf field double scale = 3;
118 | * @return float
119 | */
120 | public function getScale()
121 | {
122 | return $this->scale;
123 | }
124 |
125 | /**
126 | * Must be greater than 0.
127 | *
128 | * Generated from protobuf field double scale = 3;
129 | * @param float $var
130 | * @return $this
131 | */
132 | public function setScale($var)
133 | {
134 | GPBUtil::checkDouble($var);
135 | $this->scale = $var;
136 |
137 | return $this;
138 | }
139 |
140 | }
141 |
142 |
143 |
--------------------------------------------------------------------------------
/src/Api/Distribution/BucketOptions/Linear.php:
--------------------------------------------------------------------------------
1 | google.api.Distribution.BucketOptions.Linear
21 | */
22 | class Linear extends \Google\Protobuf\Internal\Message
23 | {
24 | /**
25 | * Must be greater than 0.
26 | *
27 | * Generated from protobuf field int32 num_finite_buckets = 1;
28 | */
29 | protected $num_finite_buckets = 0;
30 | /**
31 | * Must be greater than 0.
32 | *
33 | * Generated from protobuf field double width = 2;
34 | */
35 | protected $width = 0.0;
36 | /**
37 | * Lower bound of the first bucket.
38 | *
39 | * Generated from protobuf field double offset = 3;
40 | */
41 | protected $offset = 0.0;
42 |
43 | /**
44 | * Constructor.
45 | *
46 | * @param array $data {
47 | * Optional. Data for populating the Message object.
48 | *
49 | * @type int $num_finite_buckets
50 | * Must be greater than 0.
51 | * @type float $width
52 | * Must be greater than 0.
53 | * @type float $offset
54 | * Lower bound of the first bucket.
55 | * }
56 | */
57 | public function __construct($data = NULL) {
58 | \GPBMetadata\Google\Api\Distribution::initOnce();
59 | parent::__construct($data);
60 | }
61 |
62 | /**
63 | * Must be greater than 0.
64 | *
65 | * Generated from protobuf field int32 num_finite_buckets = 1;
66 | * @return int
67 | */
68 | public function getNumFiniteBuckets()
69 | {
70 | return $this->num_finite_buckets;
71 | }
72 |
73 | /**
74 | * Must be greater than 0.
75 | *
76 | * Generated from protobuf field int32 num_finite_buckets = 1;
77 | * @param int $var
78 | * @return $this
79 | */
80 | public function setNumFiniteBuckets($var)
81 | {
82 | GPBUtil::checkInt32($var);
83 | $this->num_finite_buckets = $var;
84 |
85 | return $this;
86 | }
87 |
88 | /**
89 | * Must be greater than 0.
90 | *
91 | * Generated from protobuf field double width = 2;
92 | * @return float
93 | */
94 | public function getWidth()
95 | {
96 | return $this->width;
97 | }
98 |
99 | /**
100 | * Must be greater than 0.
101 | *
102 | * Generated from protobuf field double width = 2;
103 | * @param float $var
104 | * @return $this
105 | */
106 | public function setWidth($var)
107 | {
108 | GPBUtil::checkDouble($var);
109 | $this->width = $var;
110 |
111 | return $this;
112 | }
113 |
114 | /**
115 | * Lower bound of the first bucket.
116 | *
117 | * Generated from protobuf field double offset = 3;
118 | * @return float
119 | */
120 | public function getOffset()
121 | {
122 | return $this->offset;
123 | }
124 |
125 | /**
126 | * Lower bound of the first bucket.
127 | *
128 | * Generated from protobuf field double offset = 3;
129 | * @param float $var
130 | * @return $this
131 | */
132 | public function setOffset($var)
133 | {
134 | GPBUtil::checkDouble($var);
135 | $this->offset = $var;
136 |
137 | return $this;
138 | }
139 |
140 | }
141 |
142 |
143 |
--------------------------------------------------------------------------------
/src/Api/Distribution/Range.php:
--------------------------------------------------------------------------------
1 | google.api.Distribution.Range
15 | */
16 | class Range extends \Google\Protobuf\Internal\Message
17 | {
18 | /**
19 | * The minimum of the population values.
20 | *
21 | * Generated from protobuf field double min = 1;
22 | */
23 | protected $min = 0.0;
24 | /**
25 | * The maximum of the population values.
26 | *
27 | * Generated from protobuf field double max = 2;
28 | */
29 | protected $max = 0.0;
30 |
31 | /**
32 | * Constructor.
33 | *
34 | * @param array $data {
35 | * Optional. Data for populating the Message object.
36 | *
37 | * @type float $min
38 | * The minimum of the population values.
39 | * @type float $max
40 | * The maximum of the population values.
41 | * }
42 | */
43 | public function __construct($data = NULL) {
44 | \GPBMetadata\Google\Api\Distribution::initOnce();
45 | parent::__construct($data);
46 | }
47 |
48 | /**
49 | * The minimum of the population values.
50 | *
51 | * Generated from protobuf field double min = 1;
52 | * @return float
53 | */
54 | public function getMin()
55 | {
56 | return $this->min;
57 | }
58 |
59 | /**
60 | * The minimum of the population values.
61 | *
62 | * Generated from protobuf field double min = 1;
63 | * @param float $var
64 | * @return $this
65 | */
66 | public function setMin($var)
67 | {
68 | GPBUtil::checkDouble($var);
69 | $this->min = $var;
70 |
71 | return $this;
72 | }
73 |
74 | /**
75 | * The maximum of the population values.
76 | *
77 | * Generated from protobuf field double max = 2;
78 | * @return float
79 | */
80 | public function getMax()
81 | {
82 | return $this->max;
83 | }
84 |
85 | /**
86 | * The maximum of the population values.
87 | *
88 | * Generated from protobuf field double max = 2;
89 | * @param float $var
90 | * @return $this
91 | */
92 | public function setMax($var)
93 | {
94 | GPBUtil::checkDouble($var);
95 | $this->max = $var;
96 |
97 | return $this;
98 | }
99 |
100 | }
101 |
102 |
103 |
--------------------------------------------------------------------------------
/src/Api/FieldInfo/Format.php:
--------------------------------------------------------------------------------
1 | google.api.FieldInfo.Format
14 | */
15 | class Format
16 | {
17 | /**
18 | * Default, unspecified value.
19 | *
20 | * Generated from protobuf enum FORMAT_UNSPECIFIED = 0;
21 | */
22 | const FORMAT_UNSPECIFIED = 0;
23 | /**
24 | * Universally Unique Identifier, version 4, value as defined by
25 | * https://datatracker.ietf.org/doc/html/rfc4122. The value may be
26 | * normalized to entirely lowercase letters. For example, the value
27 | * `F47AC10B-58CC-0372-8567-0E02B2C3D479` would be normalized to
28 | * `f47ac10b-58cc-0372-8567-0e02b2c3d479`.
29 | *
30 | * Generated from protobuf enum UUID4 = 1;
31 | */
32 | const UUID4 = 1;
33 | /**
34 | * Internet Protocol v4 value as defined by [RFC
35 | * 791](https://datatracker.ietf.org/doc/html/rfc791). The value may be
36 | * condensed, with leading zeros in each octet stripped. For example,
37 | * `001.022.233.040` would be condensed to `1.22.233.40`.
38 | *
39 | * Generated from protobuf enum IPV4 = 2;
40 | */
41 | const IPV4 = 2;
42 | /**
43 | * Internet Protocol v6 value as defined by [RFC
44 | * 2460](https://datatracker.ietf.org/doc/html/rfc2460). The value may be
45 | * normalized to entirely lowercase letters with zeros compressed, following
46 | * [RFC 5952](https://datatracker.ietf.org/doc/html/rfc5952). For example,
47 | * the value `2001:0DB8:0::0` would be normalized to `2001:db8::`.
48 | *
49 | * Generated from protobuf enum IPV6 = 3;
50 | */
51 | const IPV6 = 3;
52 | /**
53 | * An IP address in either v4 or v6 format as described by the individual
54 | * values defined herein. See the comments on the IPV4 and IPV6 types for
55 | * allowed normalizations of each.
56 | *
57 | * Generated from protobuf enum IPV4_OR_IPV6 = 4;
58 | */
59 | const IPV4_OR_IPV6 = 4;
60 |
61 | private static $valueToName = [
62 | self::FORMAT_UNSPECIFIED => 'FORMAT_UNSPECIFIED',
63 | self::UUID4 => 'UUID4',
64 | self::IPV4 => 'IPV4',
65 | self::IPV6 => 'IPV6',
66 | self::IPV4_OR_IPV6 => 'IPV4_OR_IPV6',
67 | ];
68 |
69 | public static function name($value)
70 | {
71 | if (!isset(self::$valueToName[$value])) {
72 | throw new UnexpectedValueException(sprintf(
73 | 'Enum %s has no name defined for value %s', __CLASS__, $value));
74 | }
75 | return self::$valueToName[$value];
76 | }
77 |
78 |
79 | public static function value($name)
80 | {
81 | $const = __CLASS__ . '::' . strtoupper($name);
82 | if (!defined($const)) {
83 | throw new UnexpectedValueException(sprintf(
84 | 'Enum %s has no value defined for name %s', __CLASS__, $name));
85 | }
86 | return constant($const);
87 | }
88 | }
89 |
90 |
91 |
--------------------------------------------------------------------------------
/src/Api/LabelDescriptor.php:
--------------------------------------------------------------------------------
1 | google.api.LabelDescriptor
15 | */
16 | class LabelDescriptor extends \Google\Protobuf\Internal\Message
17 | {
18 | /**
19 | * The label key.
20 | *
21 | * Generated from protobuf field string key = 1;
22 | */
23 | protected $key = '';
24 | /**
25 | * The type of data that can be assigned to the label.
26 | *
27 | * Generated from protobuf field .google.api.LabelDescriptor.ValueType value_type = 2;
28 | */
29 | protected $value_type = 0;
30 | /**
31 | * A human-readable description for the label.
32 | *
33 | * Generated from protobuf field string description = 3;
34 | */
35 | protected $description = '';
36 |
37 | /**
38 | * Constructor.
39 | *
40 | * @param array $data {
41 | * Optional. Data for populating the Message object.
42 | *
43 | * @type string $key
44 | * The label key.
45 | * @type int $value_type
46 | * The type of data that can be assigned to the label.
47 | * @type string $description
48 | * A human-readable description for the label.
49 | * }
50 | */
51 | public function __construct($data = NULL) {
52 | \GPBMetadata\Google\Api\Label::initOnce();
53 | parent::__construct($data);
54 | }
55 |
56 | /**
57 | * The label key.
58 | *
59 | * Generated from protobuf field string key = 1;
60 | * @return string
61 | */
62 | public function getKey()
63 | {
64 | return $this->key;
65 | }
66 |
67 | /**
68 | * The label key.
69 | *
70 | * Generated from protobuf field string key = 1;
71 | * @param string $var
72 | * @return $this
73 | */
74 | public function setKey($var)
75 | {
76 | GPBUtil::checkString($var, True);
77 | $this->key = $var;
78 |
79 | return $this;
80 | }
81 |
82 | /**
83 | * The type of data that can be assigned to the label.
84 | *
85 | * Generated from protobuf field .google.api.LabelDescriptor.ValueType value_type = 2;
86 | * @return int
87 | */
88 | public function getValueType()
89 | {
90 | return $this->value_type;
91 | }
92 |
93 | /**
94 | * The type of data that can be assigned to the label.
95 | *
96 | * Generated from protobuf field .google.api.LabelDescriptor.ValueType value_type = 2;
97 | * @param int $var
98 | * @return $this
99 | */
100 | public function setValueType($var)
101 | {
102 | GPBUtil::checkEnum($var, \Google\Api\LabelDescriptor\ValueType::class);
103 | $this->value_type = $var;
104 |
105 | return $this;
106 | }
107 |
108 | /**
109 | * A human-readable description for the label.
110 | *
111 | * Generated from protobuf field string description = 3;
112 | * @return string
113 | */
114 | public function getDescription()
115 | {
116 | return $this->description;
117 | }
118 |
119 | /**
120 | * A human-readable description for the label.
121 | *
122 | * Generated from protobuf field string description = 3;
123 | * @param string $var
124 | * @return $this
125 | */
126 | public function setDescription($var)
127 | {
128 | GPBUtil::checkString($var, True);
129 | $this->description = $var;
130 |
131 | return $this;
132 | }
133 |
134 | }
135 |
136 |
--------------------------------------------------------------------------------
/src/Api/LabelDescriptor/ValueType.php:
--------------------------------------------------------------------------------
1 | google.api.LabelDescriptor.ValueType
13 | */
14 | class ValueType
15 | {
16 | /**
17 | * A variable-length string. This is the default.
18 | *
19 | * Generated from protobuf enum STRING = 0;
20 | */
21 | const STRING = 0;
22 | /**
23 | * Boolean; true or false.
24 | *
25 | * Generated from protobuf enum BOOL = 1;
26 | */
27 | const BOOL = 1;
28 | /**
29 | * A 64-bit signed integer.
30 | *
31 | * Generated from protobuf enum INT64 = 2;
32 | */
33 | const INT64 = 2;
34 |
35 | private static $valueToName = [
36 | self::STRING => 'STRING',
37 | self::BOOL => 'BOOL',
38 | self::INT64 => 'INT64',
39 | ];
40 |
41 | public static function name($value)
42 | {
43 | if (!isset(self::$valueToName[$value])) {
44 | throw new UnexpectedValueException(sprintf(
45 | 'Enum %s has no name defined for value %s', __CLASS__, $value));
46 | }
47 | return self::$valueToName[$value];
48 | }
49 |
50 |
51 | public static function value($name)
52 | {
53 | $const = __CLASS__ . '::' . strtoupper($name);
54 | if (!defined($const)) {
55 | throw new UnexpectedValueException(sprintf(
56 | 'Enum %s has no value defined for name %s', __CLASS__, $name));
57 | }
58 | return constant($const);
59 | }
60 | }
61 |
62 |
63 |
--------------------------------------------------------------------------------
/src/Api/Metric.php:
--------------------------------------------------------------------------------
1 | google.api.Metric
16 | */
17 | class Metric extends \Google\Protobuf\Internal\Message
18 | {
19 | /**
20 | * An existing metric type, see
21 | * [google.api.MetricDescriptor][google.api.MetricDescriptor]. For example,
22 | * `custom.googleapis.com/invoice/paid/amount`.
23 | *
24 | * Generated from protobuf field string type = 3;
25 | */
26 | protected $type = '';
27 | /**
28 | * The set of label values that uniquely identify this metric. All
29 | * labels listed in the `MetricDescriptor` must be assigned values.
30 | *
31 | * Generated from protobuf field map labels = 2;
32 | */
33 | private $labels;
34 |
35 | /**
36 | * Constructor.
37 | *
38 | * @param array $data {
39 | * Optional. Data for populating the Message object.
40 | *
41 | * @type string $type
42 | * An existing metric type, see
43 | * [google.api.MetricDescriptor][google.api.MetricDescriptor]. For example,
44 | * `custom.googleapis.com/invoice/paid/amount`.
45 | * @type array|\Google\Protobuf\Internal\MapField $labels
46 | * The set of label values that uniquely identify this metric. All
47 | * labels listed in the `MetricDescriptor` must be assigned values.
48 | * }
49 | */
50 | public function __construct($data = NULL) {
51 | \GPBMetadata\Google\Api\Metric::initOnce();
52 | parent::__construct($data);
53 | }
54 |
55 | /**
56 | * An existing metric type, see
57 | * [google.api.MetricDescriptor][google.api.MetricDescriptor]. For example,
58 | * `custom.googleapis.com/invoice/paid/amount`.
59 | *
60 | * Generated from protobuf field string type = 3;
61 | * @return string
62 | */
63 | public function getType()
64 | {
65 | return $this->type;
66 | }
67 |
68 | /**
69 | * An existing metric type, see
70 | * [google.api.MetricDescriptor][google.api.MetricDescriptor]. For example,
71 | * `custom.googleapis.com/invoice/paid/amount`.
72 | *
73 | * Generated from protobuf field string type = 3;
74 | * @param string $var
75 | * @return $this
76 | */
77 | public function setType($var)
78 | {
79 | GPBUtil::checkString($var, True);
80 | $this->type = $var;
81 |
82 | return $this;
83 | }
84 |
85 | /**
86 | * The set of label values that uniquely identify this metric. All
87 | * labels listed in the `MetricDescriptor` must be assigned values.
88 | *
89 | * Generated from protobuf field map labels = 2;
90 | * @return \Google\Protobuf\Internal\MapField
91 | */
92 | public function getLabels()
93 | {
94 | return $this->labels;
95 | }
96 |
97 | /**
98 | * The set of label values that uniquely identify this metric. All
99 | * labels listed in the `MetricDescriptor` must be assigned values.
100 | *
101 | * Generated from protobuf field map labels = 2;
102 | * @param array|\Google\Protobuf\Internal\MapField $var
103 | * @return $this
104 | */
105 | public function setLabels($var)
106 | {
107 | $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
108 | $this->labels = $arr;
109 |
110 | return $this;
111 | }
112 |
113 | }
114 |
115 |
--------------------------------------------------------------------------------
/src/Api/MetricDescriptor/MetricDescriptorMetadata/TimeSeriesResourceHierarchyLevel.php:
--------------------------------------------------------------------------------
1 | google.api.MetricDescriptor.MetricDescriptorMetadata.TimeSeriesResourceHierarchyLevel
13 | */
14 | class TimeSeriesResourceHierarchyLevel
15 | {
16 | /**
17 | * Do not use this default value.
18 | *
19 | * Generated from protobuf enum TIME_SERIES_RESOURCE_HIERARCHY_LEVEL_UNSPECIFIED = 0;
20 | */
21 | const TIME_SERIES_RESOURCE_HIERARCHY_LEVEL_UNSPECIFIED = 0;
22 | /**
23 | * Scopes a metric to a project.
24 | *
25 | * Generated from protobuf enum PROJECT = 1;
26 | */
27 | const PROJECT = 1;
28 | /**
29 | * Scopes a metric to an organization.
30 | *
31 | * Generated from protobuf enum ORGANIZATION = 2;
32 | */
33 | const ORGANIZATION = 2;
34 | /**
35 | * Scopes a metric to a folder.
36 | *
37 | * Generated from protobuf enum FOLDER = 3;
38 | */
39 | const FOLDER = 3;
40 |
41 | private static $valueToName = [
42 | self::TIME_SERIES_RESOURCE_HIERARCHY_LEVEL_UNSPECIFIED => 'TIME_SERIES_RESOURCE_HIERARCHY_LEVEL_UNSPECIFIED',
43 | self::PROJECT => 'PROJECT',
44 | self::ORGANIZATION => 'ORGANIZATION',
45 | self::FOLDER => 'FOLDER',
46 | ];
47 |
48 | public static function name($value)
49 | {
50 | if (!isset(self::$valueToName[$value])) {
51 | throw new UnexpectedValueException(sprintf(
52 | 'Enum %s has no name defined for value %s', __CLASS__, $value));
53 | }
54 | return self::$valueToName[$value];
55 | }
56 |
57 |
58 | public static function value($name)
59 | {
60 | $const = __CLASS__ . '::' . strtoupper($name);
61 | if (!defined($const)) {
62 | throw new UnexpectedValueException(sprintf(
63 | 'Enum %s has no value defined for name %s', __CLASS__, $name));
64 | }
65 | return constant($const);
66 | }
67 | }
68 |
69 |
70 |
--------------------------------------------------------------------------------
/src/Api/MetricDescriptor/MetricKind.php:
--------------------------------------------------------------------------------
1 | google.api.MetricDescriptor.MetricKind
15 | */
16 | class MetricKind
17 | {
18 | /**
19 | * Do not use this default value.
20 | *
21 | * Generated from protobuf enum METRIC_KIND_UNSPECIFIED = 0;
22 | */
23 | const METRIC_KIND_UNSPECIFIED = 0;
24 | /**
25 | * An instantaneous measurement of a value.
26 | *
27 | * Generated from protobuf enum GAUGE = 1;
28 | */
29 | const GAUGE = 1;
30 | /**
31 | * The change in a value during a time interval.
32 | *
33 | * Generated from protobuf enum DELTA = 2;
34 | */
35 | const DELTA = 2;
36 | /**
37 | * A value accumulated over a time interval. Cumulative
38 | * measurements in a time series should have the same start time
39 | * and increasing end times, until an event resets the cumulative
40 | * value to zero and sets a new start time for the following
41 | * points.
42 | *
43 | * Generated from protobuf enum CUMULATIVE = 3;
44 | */
45 | const CUMULATIVE = 3;
46 |
47 | private static $valueToName = [
48 | self::METRIC_KIND_UNSPECIFIED => 'METRIC_KIND_UNSPECIFIED',
49 | self::GAUGE => 'GAUGE',
50 | self::DELTA => 'DELTA',
51 | self::CUMULATIVE => 'CUMULATIVE',
52 | ];
53 |
54 | public static function name($value)
55 | {
56 | if (!isset(self::$valueToName[$value])) {
57 | throw new UnexpectedValueException(sprintf(
58 | 'Enum %s has no name defined for value %s', __CLASS__, $value));
59 | }
60 | return self::$valueToName[$value];
61 | }
62 |
63 |
64 | public static function value($name)
65 | {
66 | $const = __CLASS__ . '::' . strtoupper($name);
67 | if (!defined($const)) {
68 | throw new UnexpectedValueException(sprintf(
69 | 'Enum %s has no value defined for name %s', __CLASS__, $name));
70 | }
71 | return constant($const);
72 | }
73 | }
74 |
75 |
76 |
--------------------------------------------------------------------------------
/src/Api/MetricDescriptor/ValueType.php:
--------------------------------------------------------------------------------
1 | google.api.MetricDescriptor.ValueType
13 | */
14 | class ValueType
15 | {
16 | /**
17 | * Do not use this default value.
18 | *
19 | * Generated from protobuf enum VALUE_TYPE_UNSPECIFIED = 0;
20 | */
21 | const VALUE_TYPE_UNSPECIFIED = 0;
22 | /**
23 | * The value is a boolean.
24 | * This value type can be used only if the metric kind is `GAUGE`.
25 | *
26 | * Generated from protobuf enum BOOL = 1;
27 | */
28 | const BOOL = 1;
29 | /**
30 | * The value is a signed 64-bit integer.
31 | *
32 | * Generated from protobuf enum INT64 = 2;
33 | */
34 | const INT64 = 2;
35 | /**
36 | * The value is a double precision floating point number.
37 | *
38 | * Generated from protobuf enum DOUBLE = 3;
39 | */
40 | const DOUBLE = 3;
41 | /**
42 | * The value is a text string.
43 | * This value type can be used only if the metric kind is `GAUGE`.
44 | *
45 | * Generated from protobuf enum STRING = 4;
46 | */
47 | const STRING = 4;
48 | /**
49 | * The value is a [`Distribution`][google.api.Distribution].
50 | *
51 | * Generated from protobuf enum DISTRIBUTION = 5;
52 | */
53 | const DISTRIBUTION = 5;
54 | /**
55 | * The value is money.
56 | *
57 | * Generated from protobuf enum MONEY = 6;
58 | */
59 | const MONEY = 6;
60 |
61 | private static $valueToName = [
62 | self::VALUE_TYPE_UNSPECIFIED => 'VALUE_TYPE_UNSPECIFIED',
63 | self::BOOL => 'BOOL',
64 | self::INT64 => 'INT64',
65 | self::DOUBLE => 'DOUBLE',
66 | self::STRING => 'STRING',
67 | self::DISTRIBUTION => 'DISTRIBUTION',
68 | self::MONEY => 'MONEY',
69 | ];
70 |
71 | public static function name($value)
72 | {
73 | if (!isset(self::$valueToName[$value])) {
74 | throw new UnexpectedValueException(sprintf(
75 | 'Enum %s has no name defined for value %s', __CLASS__, $value));
76 | }
77 | return self::$valueToName[$value];
78 | }
79 |
80 |
81 | public static function value($name)
82 | {
83 | $const = __CLASS__ . '::' . strtoupper($name);
84 | if (!defined($const)) {
85 | throw new UnexpectedValueException(sprintf(
86 | 'Enum %s has no value defined for name %s', __CLASS__, $name));
87 | }
88 | return constant($const);
89 | }
90 | }
91 |
92 |
93 |
--------------------------------------------------------------------------------
/src/Api/Monitoring/MonitoringDestination.php:
--------------------------------------------------------------------------------
1 | google.api.Monitoring.MonitoringDestination
16 | */
17 | class MonitoringDestination extends \Google\Protobuf\Internal\Message
18 | {
19 | /**
20 | * The monitored resource type. The type must be defined in
21 | * [Service.monitored_resources][google.api.Service.monitored_resources]
22 | * section.
23 | *
24 | * Generated from protobuf field string monitored_resource = 1;
25 | */
26 | protected $monitored_resource = '';
27 | /**
28 | * Types of the metrics to report to this monitoring destination.
29 | * Each type must be defined in
30 | * [Service.metrics][google.api.Service.metrics] section.
31 | *
32 | * Generated from protobuf field repeated string metrics = 2;
33 | */
34 | private $metrics;
35 |
36 | /**
37 | * Constructor.
38 | *
39 | * @param array $data {
40 | * Optional. Data for populating the Message object.
41 | *
42 | * @type string $monitored_resource
43 | * The monitored resource type. The type must be defined in
44 | * [Service.monitored_resources][google.api.Service.monitored_resources]
45 | * section.
46 | * @type array|\Google\Protobuf\Internal\RepeatedField $metrics
47 | * Types of the metrics to report to this monitoring destination.
48 | * Each type must be defined in
49 | * [Service.metrics][google.api.Service.metrics] section.
50 | * }
51 | */
52 | public function __construct($data = NULL) {
53 | \GPBMetadata\Google\Api\Monitoring::initOnce();
54 | parent::__construct($data);
55 | }
56 |
57 | /**
58 | * The monitored resource type. The type must be defined in
59 | * [Service.monitored_resources][google.api.Service.monitored_resources]
60 | * section.
61 | *
62 | * Generated from protobuf field string monitored_resource = 1;
63 | * @return string
64 | */
65 | public function getMonitoredResource()
66 | {
67 | return $this->monitored_resource;
68 | }
69 |
70 | /**
71 | * The monitored resource type. The type must be defined in
72 | * [Service.monitored_resources][google.api.Service.monitored_resources]
73 | * section.
74 | *
75 | * Generated from protobuf field string monitored_resource = 1;
76 | * @param string $var
77 | * @return $this
78 | */
79 | public function setMonitoredResource($var)
80 | {
81 | GPBUtil::checkString($var, True);
82 | $this->monitored_resource = $var;
83 |
84 | return $this;
85 | }
86 |
87 | /**
88 | * Types of the metrics to report to this monitoring destination.
89 | * Each type must be defined in
90 | * [Service.metrics][google.api.Service.metrics] section.
91 | *
92 | * Generated from protobuf field repeated string metrics = 2;
93 | * @return \Google\Protobuf\Internal\RepeatedField
94 | */
95 | public function getMetrics()
96 | {
97 | return $this->metrics;
98 | }
99 |
100 | /**
101 | * Types of the metrics to report to this monitoring destination.
102 | * Each type must be defined in
103 | * [Service.metrics][google.api.Service.metrics] section.
104 | *
105 | * Generated from protobuf field repeated string metrics = 2;
106 | * @param array|\Google\Protobuf\Internal\RepeatedField $var
107 | * @return $this
108 | */
109 | public function setMetrics($var)
110 | {
111 | $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
112 | $this->metrics = $arr;
113 |
114 | return $this;
115 | }
116 |
117 | }
118 |
119 |
120 |
--------------------------------------------------------------------------------
/src/Api/NodeSettings.php:
--------------------------------------------------------------------------------
1 | google.api.NodeSettings
15 | */
16 | class NodeSettings extends \Google\Protobuf\Internal\Message
17 | {
18 | /**
19 | * Some settings.
20 | *
21 | * Generated from protobuf field .google.api.CommonLanguageSettings common = 1;
22 | */
23 | protected $common = null;
24 |
25 | /**
26 | * Constructor.
27 | *
28 | * @param array $data {
29 | * Optional. Data for populating the Message object.
30 | *
31 | * @type \Google\Api\CommonLanguageSettings $common
32 | * Some settings.
33 | * }
34 | */
35 | public function __construct($data = NULL) {
36 | \GPBMetadata\Google\Api\Client::initOnce();
37 | parent::__construct($data);
38 | }
39 |
40 | /**
41 | * Some settings.
42 | *
43 | * Generated from protobuf field .google.api.CommonLanguageSettings common = 1;
44 | * @return \Google\Api\CommonLanguageSettings|null
45 | */
46 | public function getCommon()
47 | {
48 | return $this->common;
49 | }
50 |
51 | public function hasCommon()
52 | {
53 | return isset($this->common);
54 | }
55 |
56 | public function clearCommon()
57 | {
58 | unset($this->common);
59 | }
60 |
61 | /**
62 | * Some settings.
63 | *
64 | * Generated from protobuf field .google.api.CommonLanguageSettings common = 1;
65 | * @param \Google\Api\CommonLanguageSettings $var
66 | * @return $this
67 | */
68 | public function setCommon($var)
69 | {
70 | GPBUtil::checkMessage($var, \Google\Api\CommonLanguageSettings::class);
71 | $this->common = $var;
72 |
73 | return $this;
74 | }
75 |
76 | }
77 |
78 |
--------------------------------------------------------------------------------
/src/Api/OAuthRequirements.php:
--------------------------------------------------------------------------------
1 | google.api.OAuthRequirements
28 | */
29 | class OAuthRequirements extends \Google\Protobuf\Internal\Message
30 | {
31 | /**
32 | * The list of publicly documented OAuth scopes that are allowed access. An
33 | * OAuth token containing any of these scopes will be accepted.
34 | * Example:
35 | * canonical_scopes: https://www.googleapis.com/auth/calendar,
36 | * https://www.googleapis.com/auth/calendar.read
37 | *
38 | * Generated from protobuf field string canonical_scopes = 1;
39 | */
40 | protected $canonical_scopes = '';
41 |
42 | /**
43 | * Constructor.
44 | *
45 | * @param array $data {
46 | * Optional. Data for populating the Message object.
47 | *
48 | * @type string $canonical_scopes
49 | * The list of publicly documented OAuth scopes that are allowed access. An
50 | * OAuth token containing any of these scopes will be accepted.
51 | * Example:
52 | * canonical_scopes: https://www.googleapis.com/auth/calendar,
53 | * https://www.googleapis.com/auth/calendar.read
54 | * }
55 | */
56 | public function __construct($data = NULL) {
57 | \GPBMetadata\Google\Api\Auth::initOnce();
58 | parent::__construct($data);
59 | }
60 |
61 | /**
62 | * The list of publicly documented OAuth scopes that are allowed access. An
63 | * OAuth token containing any of these scopes will be accepted.
64 | * Example:
65 | * canonical_scopes: https://www.googleapis.com/auth/calendar,
66 | * https://www.googleapis.com/auth/calendar.read
67 | *
68 | * Generated from protobuf field string canonical_scopes = 1;
69 | * @return string
70 | */
71 | public function getCanonicalScopes()
72 | {
73 | return $this->canonical_scopes;
74 | }
75 |
76 | /**
77 | * The list of publicly documented OAuth scopes that are allowed access. An
78 | * OAuth token containing any of these scopes will be accepted.
79 | * Example:
80 | * canonical_scopes: https://www.googleapis.com/auth/calendar,
81 | * https://www.googleapis.com/auth/calendar.read
82 | *
83 | * Generated from protobuf field string canonical_scopes = 1;
84 | * @param string $var
85 | * @return $this
86 | */
87 | public function setCanonicalScopes($var)
88 | {
89 | GPBUtil::checkString($var, True);
90 | $this->canonical_scopes = $var;
91 |
92 | return $this;
93 | }
94 |
95 | }
96 |
97 |
--------------------------------------------------------------------------------
/src/Api/PhpSettings.php:
--------------------------------------------------------------------------------
1 | google.api.PhpSettings
15 | */
16 | class PhpSettings extends \Google\Protobuf\Internal\Message
17 | {
18 | /**
19 | * Some settings.
20 | *
21 | * Generated from protobuf field .google.api.CommonLanguageSettings common = 1;
22 | */
23 | protected $common = null;
24 |
25 | /**
26 | * Constructor.
27 | *
28 | * @param array $data {
29 | * Optional. Data for populating the Message object.
30 | *
31 | * @type \Google\Api\CommonLanguageSettings $common
32 | * Some settings.
33 | * }
34 | */
35 | public function __construct($data = NULL) {
36 | \GPBMetadata\Google\Api\Client::initOnce();
37 | parent::__construct($data);
38 | }
39 |
40 | /**
41 | * Some settings.
42 | *
43 | * Generated from protobuf field .google.api.CommonLanguageSettings common = 1;
44 | * @return \Google\Api\CommonLanguageSettings|null
45 | */
46 | public function getCommon()
47 | {
48 | return $this->common;
49 | }
50 |
51 | public function hasCommon()
52 | {
53 | return isset($this->common);
54 | }
55 |
56 | public function clearCommon()
57 | {
58 | unset($this->common);
59 | }
60 |
61 | /**
62 | * Some settings.
63 | *
64 | * Generated from protobuf field .google.api.CommonLanguageSettings common = 1;
65 | * @param \Google\Api\CommonLanguageSettings $var
66 | * @return $this
67 | */
68 | public function setCommon($var)
69 | {
70 | GPBUtil::checkMessage($var, \Google\Api\CommonLanguageSettings::class);
71 | $this->common = $var;
72 |
73 | return $this;
74 | }
75 |
76 | }
77 |
78 |
--------------------------------------------------------------------------------
/src/Api/ProjectProperties.php:
--------------------------------------------------------------------------------
1 | google.api.ProjectProperties
28 | */
29 | class ProjectProperties extends \Google\Protobuf\Internal\Message
30 | {
31 | /**
32 | * List of per consumer project-specific properties.
33 | *
34 | * Generated from protobuf field repeated .google.api.Property properties = 1;
35 | */
36 | private $properties;
37 |
38 | /**
39 | * Constructor.
40 | *
41 | * @param array $data {
42 | * Optional. Data for populating the Message object.
43 | *
44 | * @type array<\Google\Api\Property>|\Google\Protobuf\Internal\RepeatedField $properties
45 | * List of per consumer project-specific properties.
46 | * }
47 | */
48 | public function __construct($data = NULL) {
49 | \GPBMetadata\Google\Api\Consumer::initOnce();
50 | parent::__construct($data);
51 | }
52 |
53 | /**
54 | * List of per consumer project-specific properties.
55 | *
56 | * Generated from protobuf field repeated .google.api.Property properties = 1;
57 | * @return \Google\Protobuf\Internal\RepeatedField
58 | */
59 | public function getProperties()
60 | {
61 | return $this->properties;
62 | }
63 |
64 | /**
65 | * List of per consumer project-specific properties.
66 | *
67 | * Generated from protobuf field repeated .google.api.Property properties = 1;
68 | * @param array<\Google\Api\Property>|\Google\Protobuf\Internal\RepeatedField $var
69 | * @return $this
70 | */
71 | public function setProperties($var)
72 | {
73 | $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\Property::class);
74 | $this->properties = $arr;
75 |
76 | return $this;
77 | }
78 |
79 | }
80 |
81 |
--------------------------------------------------------------------------------
/src/Api/Property.php:
--------------------------------------------------------------------------------
1 | google.api.Property
22 | */
23 | class Property extends \Google\Protobuf\Internal\Message
24 | {
25 | /**
26 | * The name of the property (a.k.a key).
27 | *
28 | * Generated from protobuf field string name = 1;
29 | */
30 | protected $name = '';
31 | /**
32 | * The type of this property.
33 | *
34 | * Generated from protobuf field .google.api.Property.PropertyType type = 2;
35 | */
36 | protected $type = 0;
37 | /**
38 | * The description of the property
39 | *
40 | * Generated from protobuf field string description = 3;
41 | */
42 | protected $description = '';
43 |
44 | /**
45 | * Constructor.
46 | *
47 | * @param array $data {
48 | * Optional. Data for populating the Message object.
49 | *
50 | * @type string $name
51 | * The name of the property (a.k.a key).
52 | * @type int $type
53 | * The type of this property.
54 | * @type string $description
55 | * The description of the property
56 | * }
57 | */
58 | public function __construct($data = NULL) {
59 | \GPBMetadata\Google\Api\Consumer::initOnce();
60 | parent::__construct($data);
61 | }
62 |
63 | /**
64 | * The name of the property (a.k.a key).
65 | *
66 | * Generated from protobuf field string name = 1;
67 | * @return string
68 | */
69 | public function getName()
70 | {
71 | return $this->name;
72 | }
73 |
74 | /**
75 | * The name of the property (a.k.a key).
76 | *
77 | * Generated from protobuf field string name = 1;
78 | * @param string $var
79 | * @return $this
80 | */
81 | public function setName($var)
82 | {
83 | GPBUtil::checkString($var, True);
84 | $this->name = $var;
85 |
86 | return $this;
87 | }
88 |
89 | /**
90 | * The type of this property.
91 | *
92 | * Generated from protobuf field .google.api.Property.PropertyType type = 2;
93 | * @return int
94 | */
95 | public function getType()
96 | {
97 | return $this->type;
98 | }
99 |
100 | /**
101 | * The type of this property.
102 | *
103 | * Generated from protobuf field .google.api.Property.PropertyType type = 2;
104 | * @param int $var
105 | * @return $this
106 | */
107 | public function setType($var)
108 | {
109 | GPBUtil::checkEnum($var, \Google\Api\Property\PropertyType::class);
110 | $this->type = $var;
111 |
112 | return $this;
113 | }
114 |
115 | /**
116 | * The description of the property
117 | *
118 | * Generated from protobuf field string description = 3;
119 | * @return string
120 | */
121 | public function getDescription()
122 | {
123 | return $this->description;
124 | }
125 |
126 | /**
127 | * The description of the property
128 | *
129 | * Generated from protobuf field string description = 3;
130 | * @param string $var
131 | * @return $this
132 | */
133 | public function setDescription($var)
134 | {
135 | GPBUtil::checkString($var, True);
136 | $this->description = $var;
137 |
138 | return $this;
139 | }
140 |
141 | }
142 |
143 |
--------------------------------------------------------------------------------
/src/Api/Property/PropertyType.php:
--------------------------------------------------------------------------------
1 | google.api.Property.PropertyType
13 | */
14 | class PropertyType
15 | {
16 | /**
17 | * The type is unspecified, and will result in an error.
18 | *
19 | * Generated from protobuf enum UNSPECIFIED = 0;
20 | */
21 | const UNSPECIFIED = 0;
22 | /**
23 | * The type is `int64`.
24 | *
25 | * Generated from protobuf enum INT64 = 1;
26 | */
27 | const INT64 = 1;
28 | /**
29 | * The type is `bool`.
30 | *
31 | * Generated from protobuf enum BOOL = 2;
32 | */
33 | const BOOL = 2;
34 | /**
35 | * The type is `string`.
36 | *
37 | * Generated from protobuf enum STRING = 3;
38 | */
39 | const STRING = 3;
40 | /**
41 | * The type is 'double'.
42 | *
43 | * Generated from protobuf enum DOUBLE = 4;
44 | */
45 | const DOUBLE = 4;
46 |
47 | private static $valueToName = [
48 | self::UNSPECIFIED => 'UNSPECIFIED',
49 | self::INT64 => 'INT64',
50 | self::BOOL => 'BOOL',
51 | self::STRING => 'STRING',
52 | self::DOUBLE => 'DOUBLE',
53 | ];
54 |
55 | public static function name($value)
56 | {
57 | if (!isset(self::$valueToName[$value])) {
58 | throw new UnexpectedValueException(sprintf(
59 | 'Enum %s has no name defined for value %s', __CLASS__, $value));
60 | }
61 | return self::$valueToName[$value];
62 | }
63 |
64 |
65 | public static function value($name)
66 | {
67 | $const = __CLASS__ . '::' . strtoupper($name);
68 | if (!defined($const)) {
69 | throw new UnexpectedValueException(sprintf(
70 | 'Enum %s has no value defined for name %s', __CLASS__, $name));
71 | }
72 | return constant($const);
73 | }
74 | }
75 |
76 |
77 |
--------------------------------------------------------------------------------
/src/Api/PythonSettings.php:
--------------------------------------------------------------------------------
1 | google.api.PythonSettings
15 | */
16 | class PythonSettings extends \Google\Protobuf\Internal\Message
17 | {
18 | /**
19 | * Some settings.
20 | *
21 | * Generated from protobuf field .google.api.CommonLanguageSettings common = 1;
22 | */
23 | protected $common = null;
24 | /**
25 | * Experimental features to be included during client library generation.
26 | *
27 | * Generated from protobuf field .google.api.PythonSettings.ExperimentalFeatures experimental_features = 2;
28 | */
29 | protected $experimental_features = null;
30 |
31 | /**
32 | * Constructor.
33 | *
34 | * @param array $data {
35 | * Optional. Data for populating the Message object.
36 | *
37 | * @type \Google\Api\CommonLanguageSettings $common
38 | * Some settings.
39 | * @type \Google\Api\PythonSettings\ExperimentalFeatures $experimental_features
40 | * Experimental features to be included during client library generation.
41 | * }
42 | */
43 | public function __construct($data = NULL) {
44 | \GPBMetadata\Google\Api\Client::initOnce();
45 | parent::__construct($data);
46 | }
47 |
48 | /**
49 | * Some settings.
50 | *
51 | * Generated from protobuf field .google.api.CommonLanguageSettings common = 1;
52 | * @return \Google\Api\CommonLanguageSettings|null
53 | */
54 | public function getCommon()
55 | {
56 | return $this->common;
57 | }
58 |
59 | public function hasCommon()
60 | {
61 | return isset($this->common);
62 | }
63 |
64 | public function clearCommon()
65 | {
66 | unset($this->common);
67 | }
68 |
69 | /**
70 | * Some settings.
71 | *
72 | * Generated from protobuf field .google.api.CommonLanguageSettings common = 1;
73 | * @param \Google\Api\CommonLanguageSettings $var
74 | * @return $this
75 | */
76 | public function setCommon($var)
77 | {
78 | GPBUtil::checkMessage($var, \Google\Api\CommonLanguageSettings::class);
79 | $this->common = $var;
80 |
81 | return $this;
82 | }
83 |
84 | /**
85 | * Experimental features to be included during client library generation.
86 | *
87 | * Generated from protobuf field .google.api.PythonSettings.ExperimentalFeatures experimental_features = 2;
88 | * @return \Google\Api\PythonSettings\ExperimentalFeatures|null
89 | */
90 | public function getExperimentalFeatures()
91 | {
92 | return $this->experimental_features;
93 | }
94 |
95 | public function hasExperimentalFeatures()
96 | {
97 | return isset($this->experimental_features);
98 | }
99 |
100 | public function clearExperimentalFeatures()
101 | {
102 | unset($this->experimental_features);
103 | }
104 |
105 | /**
106 | * Experimental features to be included during client library generation.
107 | *
108 | * Generated from protobuf field .google.api.PythonSettings.ExperimentalFeatures experimental_features = 2;
109 | * @param \Google\Api\PythonSettings\ExperimentalFeatures $var
110 | * @return $this
111 | */
112 | public function setExperimentalFeatures($var)
113 | {
114 | GPBUtil::checkMessage($var, \Google\Api\PythonSettings\ExperimentalFeatures::class);
115 | $this->experimental_features = $var;
116 |
117 | return $this;
118 | }
119 |
120 | }
121 |
122 |
--------------------------------------------------------------------------------
/src/Api/ResourceDescriptor/History.php:
--------------------------------------------------------------------------------
1 | google.api.ResourceDescriptor.History
14 | */
15 | class History
16 | {
17 | /**
18 | * The "unset" value.
19 | *
20 | * Generated from protobuf enum HISTORY_UNSPECIFIED = 0;
21 | */
22 | const HISTORY_UNSPECIFIED = 0;
23 | /**
24 | * The resource originally had one pattern and launched as such, and
25 | * additional patterns were added later.
26 | *
27 | * Generated from protobuf enum ORIGINALLY_SINGLE_PATTERN = 1;
28 | */
29 | const ORIGINALLY_SINGLE_PATTERN = 1;
30 | /**
31 | * The resource has one pattern, but the API owner expects to add more
32 | * later. (This is the inverse of ORIGINALLY_SINGLE_PATTERN, and prevents
33 | * that from being necessary once there are multiple patterns.)
34 | *
35 | * Generated from protobuf enum FUTURE_MULTI_PATTERN = 2;
36 | */
37 | const FUTURE_MULTI_PATTERN = 2;
38 |
39 | private static $valueToName = [
40 | self::HISTORY_UNSPECIFIED => 'HISTORY_UNSPECIFIED',
41 | self::ORIGINALLY_SINGLE_PATTERN => 'ORIGINALLY_SINGLE_PATTERN',
42 | self::FUTURE_MULTI_PATTERN => 'FUTURE_MULTI_PATTERN',
43 | ];
44 |
45 | public static function name($value)
46 | {
47 | if (!isset(self::$valueToName[$value])) {
48 | throw new UnexpectedValueException(sprintf(
49 | 'Enum %s has no name defined for value %s', __CLASS__, $value));
50 | }
51 | return self::$valueToName[$value];
52 | }
53 |
54 |
55 | public static function value($name)
56 | {
57 | $const = __CLASS__ . '::' . strtoupper($name);
58 | if (!defined($const)) {
59 | throw new UnexpectedValueException(sprintf(
60 | 'Enum %s has no value defined for name %s', __CLASS__, $name));
61 | }
62 | return constant($const);
63 | }
64 | }
65 |
66 |
67 |
--------------------------------------------------------------------------------
/src/Api/ResourceDescriptor/Style.php:
--------------------------------------------------------------------------------
1 | google.api.ResourceDescriptor.Style
13 | */
14 | class Style
15 | {
16 | /**
17 | * The unspecified value. Do not use.
18 | *
19 | * Generated from protobuf enum STYLE_UNSPECIFIED = 0;
20 | */
21 | const STYLE_UNSPECIFIED = 0;
22 | /**
23 | * This resource is intended to be "declarative-friendly".
24 | * Declarative-friendly resources must be more strictly consistent, and
25 | * setting this to true communicates to tools that this resource should
26 | * adhere to declarative-friendly expectations.
27 | * Note: This is used by the API linter (linter.aip.dev) to enable
28 | * additional checks.
29 | *
30 | * Generated from protobuf enum DECLARATIVE_FRIENDLY = 1;
31 | */
32 | const DECLARATIVE_FRIENDLY = 1;
33 |
34 | private static $valueToName = [
35 | self::STYLE_UNSPECIFIED => 'STYLE_UNSPECIFIED',
36 | self::DECLARATIVE_FRIENDLY => 'DECLARATIVE_FRIENDLY',
37 | ];
38 |
39 | public static function name($value)
40 | {
41 | if (!isset(self::$valueToName[$value])) {
42 | throw new UnexpectedValueException(sprintf(
43 | 'Enum %s has no name defined for value %s', __CLASS__, $value));
44 | }
45 | return self::$valueToName[$value];
46 | }
47 |
48 |
49 | public static function value($name)
50 | {
51 | $const = __CLASS__ . '::' . strtoupper($name);
52 | if (!defined($const)) {
53 | throw new UnexpectedValueException(sprintf(
54 | 'Enum %s has no value defined for name %s', __CLASS__, $name));
55 | }
56 | return constant($const);
57 | }
58 | }
59 |
60 |
61 |
--------------------------------------------------------------------------------
/src/Api/RubySettings.php:
--------------------------------------------------------------------------------
1 | google.api.RubySettings
15 | */
16 | class RubySettings extends \Google\Protobuf\Internal\Message
17 | {
18 | /**
19 | * Some settings.
20 | *
21 | * Generated from protobuf field .google.api.CommonLanguageSettings common = 1;
22 | */
23 | protected $common = null;
24 |
25 | /**
26 | * Constructor.
27 | *
28 | * @param array $data {
29 | * Optional. Data for populating the Message object.
30 | *
31 | * @type \Google\Api\CommonLanguageSettings $common
32 | * Some settings.
33 | * }
34 | */
35 | public function __construct($data = NULL) {
36 | \GPBMetadata\Google\Api\Client::initOnce();
37 | parent::__construct($data);
38 | }
39 |
40 | /**
41 | * Some settings.
42 | *
43 | * Generated from protobuf field .google.api.CommonLanguageSettings common = 1;
44 | * @return \Google\Api\CommonLanguageSettings|null
45 | */
46 | public function getCommon()
47 | {
48 | return $this->common;
49 | }
50 |
51 | public function hasCommon()
52 | {
53 | return isset($this->common);
54 | }
55 |
56 | public function clearCommon()
57 | {
58 | unset($this->common);
59 | }
60 |
61 | /**
62 | * Some settings.
63 | *
64 | * Generated from protobuf field .google.api.CommonLanguageSettings common = 1;
65 | * @param \Google\Api\CommonLanguageSettings $var
66 | * @return $this
67 | */
68 | public function setCommon($var)
69 | {
70 | GPBUtil::checkMessage($var, \Google\Api\CommonLanguageSettings::class);
71 | $this->common = $var;
72 |
73 | return $this;
74 | }
75 |
76 | }
77 |
78 |
--------------------------------------------------------------------------------
/src/Api/SourceInfo.php:
--------------------------------------------------------------------------------
1 | google.api.SourceInfo
15 | */
16 | class SourceInfo extends \Google\Protobuf\Internal\Message
17 | {
18 | /**
19 | * All files used during config generation.
20 | *
21 | * Generated from protobuf field repeated .google.protobuf.Any source_files = 1;
22 | */
23 | private $source_files;
24 |
25 | /**
26 | * Constructor.
27 | *
28 | * @param array $data {
29 | * Optional. Data for populating the Message object.
30 | *
31 | * @type array<\Google\Protobuf\Any>|\Google\Protobuf\Internal\RepeatedField $source_files
32 | * All files used during config generation.
33 | * }
34 | */
35 | public function __construct($data = NULL) {
36 | \GPBMetadata\Google\Api\SourceInfo::initOnce();
37 | parent::__construct($data);
38 | }
39 |
40 | /**
41 | * All files used during config generation.
42 | *
43 | * Generated from protobuf field repeated .google.protobuf.Any source_files = 1;
44 | * @return \Google\Protobuf\Internal\RepeatedField
45 | */
46 | public function getSourceFiles()
47 | {
48 | return $this->source_files;
49 | }
50 |
51 | /**
52 | * All files used during config generation.
53 | *
54 | * Generated from protobuf field repeated .google.protobuf.Any source_files = 1;
55 | * @param array<\Google\Protobuf\Any>|\Google\Protobuf\Internal\RepeatedField $var
56 | * @return $this
57 | */
58 | public function setSourceFiles($var)
59 | {
60 | $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Any::class);
61 | $this->source_files = $arr;
62 |
63 | return $this;
64 | }
65 |
66 | }
67 |
68 |
--------------------------------------------------------------------------------
/src/Api/TypeReference.php:
--------------------------------------------------------------------------------
1 | google.api.TypeReference
15 | */
16 | class TypeReference extends \Google\Protobuf\Internal\Message
17 | {
18 | /**
19 | * The name of the type that the annotated, generic field may represent.
20 | * If the type is in the same protobuf package, the value can be the simple
21 | * message name e.g., `"MyMessage"`. Otherwise, the value must be the
22 | * fully-qualified message name e.g., `"google.library.v1.Book"`.
23 | * If the type(s) are unknown to the service (e.g. the field accepts generic
24 | * user input), use the wildcard `"*"` to denote this behavior.
25 | * See [AIP-202](https://google.aip.dev/202#type-references) for more details.
26 | *
27 | * Generated from protobuf field string type_name = 1;
28 | */
29 | protected $type_name = '';
30 |
31 | /**
32 | * Constructor.
33 | *
34 | * @param array $data {
35 | * Optional. Data for populating the Message object.
36 | *
37 | * @type string $type_name
38 | * The name of the type that the annotated, generic field may represent.
39 | * If the type is in the same protobuf package, the value can be the simple
40 | * message name e.g., `"MyMessage"`. Otherwise, the value must be the
41 | * fully-qualified message name e.g., `"google.library.v1.Book"`.
42 | * If the type(s) are unknown to the service (e.g. the field accepts generic
43 | * user input), use the wildcard `"*"` to denote this behavior.
44 | * See [AIP-202](https://google.aip.dev/202#type-references) for more details.
45 | * }
46 | */
47 | public function __construct($data = NULL) {
48 | \GPBMetadata\Google\Api\FieldInfo::initOnce();
49 | parent::__construct($data);
50 | }
51 |
52 | /**
53 | * The name of the type that the annotated, generic field may represent.
54 | * If the type is in the same protobuf package, the value can be the simple
55 | * message name e.g., `"MyMessage"`. Otherwise, the value must be the
56 | * fully-qualified message name e.g., `"google.library.v1.Book"`.
57 | * If the type(s) are unknown to the service (e.g. the field accepts generic
58 | * user input), use the wildcard `"*"` to denote this behavior.
59 | * See [AIP-202](https://google.aip.dev/202#type-references) for more details.
60 | *
61 | * Generated from protobuf field string type_name = 1;
62 | * @return string
63 | */
64 | public function getTypeName()
65 | {
66 | return $this->type_name;
67 | }
68 |
69 | /**
70 | * The name of the type that the annotated, generic field may represent.
71 | * If the type is in the same protobuf package, the value can be the simple
72 | * message name e.g., `"MyMessage"`. Otherwise, the value must be the
73 | * fully-qualified message name e.g., `"google.library.v1.Book"`.
74 | * If the type(s) are unknown to the service (e.g. the field accepts generic
75 | * user input), use the wildcard `"*"` to denote this behavior.
76 | * See [AIP-202](https://google.aip.dev/202#type-references) for more details.
77 | *
78 | * Generated from protobuf field string type_name = 1;
79 | * @param string $var
80 | * @return $this
81 | */
82 | public function setTypeName($var)
83 | {
84 | GPBUtil::checkString($var, True);
85 | $this->type_name = $var;
86 |
87 | return $this;
88 | }
89 |
90 | }
91 |
92 |
--------------------------------------------------------------------------------
/src/Api/Visibility.php:
--------------------------------------------------------------------------------
1 | google.api.Visibility
32 | */
33 | class Visibility extends \Google\Protobuf\Internal\Message
34 | {
35 | /**
36 | * A list of visibility rules that apply to individual API elements.
37 | * **NOTE:** All service configuration rules follow "last one wins" order.
38 | *
39 | * Generated from protobuf field repeated .google.api.VisibilityRule rules = 1;
40 | */
41 | private $rules;
42 |
43 | /**
44 | * Constructor.
45 | *
46 | * @param array $data {
47 | * Optional. Data for populating the Message object.
48 | *
49 | * @type array<\Google\Api\VisibilityRule>|\Google\Protobuf\Internal\RepeatedField $rules
50 | * A list of visibility rules that apply to individual API elements.
51 | * **NOTE:** All service configuration rules follow "last one wins" order.
52 | * }
53 | */
54 | public function __construct($data = NULL) {
55 | \GPBMetadata\Google\Api\Visibility::initOnce();
56 | parent::__construct($data);
57 | }
58 |
59 | /**
60 | * A list of visibility rules that apply to individual API elements.
61 | * **NOTE:** All service configuration rules follow "last one wins" order.
62 | *
63 | * Generated from protobuf field repeated .google.api.VisibilityRule rules = 1;
64 | * @return \Google\Protobuf\Internal\RepeatedField
65 | */
66 | public function getRules()
67 | {
68 | return $this->rules;
69 | }
70 |
71 | /**
72 | * A list of visibility rules that apply to individual API elements.
73 | * **NOTE:** All service configuration rules follow "last one wins" order.
74 | *
75 | * Generated from protobuf field repeated .google.api.VisibilityRule rules = 1;
76 | * @param array<\Google\Api\VisibilityRule>|\Google\Protobuf\Internal\RepeatedField $var
77 | * @return $this
78 | */
79 | public function setRules($var)
80 | {
81 | $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\VisibilityRule::class);
82 | $this->rules = $arr;
83 |
84 | return $this;
85 | }
86 |
87 | }
88 |
89 |
--------------------------------------------------------------------------------
/src/Cloud/Iam/V1/AuditConfigDelta/Action.php:
--------------------------------------------------------------------------------
1 | google.iam.v1.AuditConfigDelta.Action
13 | */
14 | class Action
15 | {
16 | /**
17 | * Unspecified.
18 | *
19 | * Generated from protobuf enum ACTION_UNSPECIFIED = 0;
20 | */
21 | const ACTION_UNSPECIFIED = 0;
22 | /**
23 | * Addition of an audit configuration.
24 | *
25 | * Generated from protobuf enum ADD = 1;
26 | */
27 | const ADD = 1;
28 | /**
29 | * Removal of an audit configuration.
30 | *
31 | * Generated from protobuf enum REMOVE = 2;
32 | */
33 | const REMOVE = 2;
34 |
35 | private static $valueToName = [
36 | self::ACTION_UNSPECIFIED => 'ACTION_UNSPECIFIED',
37 | self::ADD => 'ADD',
38 | self::REMOVE => 'REMOVE',
39 | ];
40 |
41 | public static function name($value)
42 | {
43 | if (!isset(self::$valueToName[$value])) {
44 | throw new UnexpectedValueException(sprintf(
45 | 'Enum %s has no name defined for value %s', __CLASS__, $value));
46 | }
47 | return self::$valueToName[$value];
48 | }
49 |
50 |
51 | public static function value($name)
52 | {
53 | $const = __CLASS__ . '::' . strtoupper($name);
54 | if (!defined($const)) {
55 | throw new UnexpectedValueException(sprintf(
56 | 'Enum %s has no value defined for name %s', __CLASS__, $name));
57 | }
58 | return constant($const);
59 | }
60 | }
61 |
62 |
63 |
--------------------------------------------------------------------------------
/src/Cloud/Iam/V1/AuditLogConfig.php:
--------------------------------------------------------------------------------
1 | google.iam.v1.AuditLogConfig
31 | */
32 | class AuditLogConfig extends \Google\Protobuf\Internal\Message
33 | {
34 | /**
35 | * The log type that this config enables.
36 | *
37 | * Generated from protobuf field .google.iam.v1.AuditLogConfig.LogType log_type = 1;
38 | */
39 | protected $log_type = 0;
40 | /**
41 | * Specifies the identities that do not cause logging for this type of
42 | * permission.
43 | * Follows the same format of
44 | * [Binding.members][google.iam.v1.Binding.members].
45 | *
46 | * Generated from protobuf field repeated string exempted_members = 2;
47 | */
48 | private $exempted_members;
49 |
50 | /**
51 | * Constructor.
52 | *
53 | * @param array $data {
54 | * Optional. Data for populating the Message object.
55 | *
56 | * @type int $log_type
57 | * The log type that this config enables.
58 | * @type array|\Google\Protobuf\Internal\RepeatedField $exempted_members
59 | * Specifies the identities that do not cause logging for this type of
60 | * permission.
61 | * Follows the same format of
62 | * [Binding.members][google.iam.v1.Binding.members].
63 | * }
64 | */
65 | public function __construct($data = NULL) {
66 | \GPBMetadata\Google\Iam\V1\Policy::initOnce();
67 | parent::__construct($data);
68 | }
69 |
70 | /**
71 | * The log type that this config enables.
72 | *
73 | * Generated from protobuf field .google.iam.v1.AuditLogConfig.LogType log_type = 1;
74 | * @return int
75 | */
76 | public function getLogType()
77 | {
78 | return $this->log_type;
79 | }
80 |
81 | /**
82 | * The log type that this config enables.
83 | *
84 | * Generated from protobuf field .google.iam.v1.AuditLogConfig.LogType log_type = 1;
85 | * @param int $var
86 | * @return $this
87 | */
88 | public function setLogType($var)
89 | {
90 | GPBUtil::checkEnum($var, \Google\Cloud\Iam\V1\AuditLogConfig\LogType::class);
91 | $this->log_type = $var;
92 |
93 | return $this;
94 | }
95 |
96 | /**
97 | * Specifies the identities that do not cause logging for this type of
98 | * permission.
99 | * Follows the same format of
100 | * [Binding.members][google.iam.v1.Binding.members].
101 | *
102 | * Generated from protobuf field repeated string exempted_members = 2;
103 | * @return \Google\Protobuf\Internal\RepeatedField
104 | */
105 | public function getExemptedMembers()
106 | {
107 | return $this->exempted_members;
108 | }
109 |
110 | /**
111 | * Specifies the identities that do not cause logging for this type of
112 | * permission.
113 | * Follows the same format of
114 | * [Binding.members][google.iam.v1.Binding.members].
115 | *
116 | * Generated from protobuf field repeated string exempted_members = 2;
117 | * @param array|\Google\Protobuf\Internal\RepeatedField $var
118 | * @return $this
119 | */
120 | public function setExemptedMembers($var)
121 | {
122 | $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
123 | $this->exempted_members = $arr;
124 |
125 | return $this;
126 | }
127 |
128 | }
129 |
130 |
--------------------------------------------------------------------------------
/src/Cloud/Iam/V1/AuditLogConfig/LogType.php:
--------------------------------------------------------------------------------
1 | google.iam.v1.AuditLogConfig.LogType
14 | */
15 | class LogType
16 | {
17 | /**
18 | * Default case. Should never be this.
19 | *
20 | * Generated from protobuf enum LOG_TYPE_UNSPECIFIED = 0;
21 | */
22 | const LOG_TYPE_UNSPECIFIED = 0;
23 | /**
24 | * Admin reads. Example: CloudIAM getIamPolicy
25 | *
26 | * Generated from protobuf enum ADMIN_READ = 1;
27 | */
28 | const ADMIN_READ = 1;
29 | /**
30 | * Data writes. Example: CloudSQL Users create
31 | *
32 | * Generated from protobuf enum DATA_WRITE = 2;
33 | */
34 | const DATA_WRITE = 2;
35 | /**
36 | * Data reads. Example: CloudSQL Users list
37 | *
38 | * Generated from protobuf enum DATA_READ = 3;
39 | */
40 | const DATA_READ = 3;
41 |
42 | private static $valueToName = [
43 | self::LOG_TYPE_UNSPECIFIED => 'LOG_TYPE_UNSPECIFIED',
44 | self::ADMIN_READ => 'ADMIN_READ',
45 | self::DATA_WRITE => 'DATA_WRITE',
46 | self::DATA_READ => 'DATA_READ',
47 | ];
48 |
49 | public static function name($value)
50 | {
51 | if (!isset(self::$valueToName[$value])) {
52 | throw new UnexpectedValueException(sprintf(
53 | 'Enum %s has no name defined for value %s', __CLASS__, $value));
54 | }
55 | return self::$valueToName[$value];
56 | }
57 |
58 |
59 | public static function value($name)
60 | {
61 | $const = __CLASS__ . '::' . strtoupper($name);
62 | if (!defined($const)) {
63 | throw new UnexpectedValueException(sprintf(
64 | 'Enum %s has no value defined for name %s', __CLASS__, $name));
65 | }
66 | return constant($const);
67 | }
68 | }
69 |
70 |
71 |
--------------------------------------------------------------------------------
/src/Cloud/Iam/V1/BindingDelta/Action.php:
--------------------------------------------------------------------------------
1 | google.iam.v1.BindingDelta.Action
13 | */
14 | class Action
15 | {
16 | /**
17 | * Unspecified.
18 | *
19 | * Generated from protobuf enum ACTION_UNSPECIFIED = 0;
20 | */
21 | const ACTION_UNSPECIFIED = 0;
22 | /**
23 | * Addition of a Binding.
24 | *
25 | * Generated from protobuf enum ADD = 1;
26 | */
27 | const ADD = 1;
28 | /**
29 | * Removal of a Binding.
30 | *
31 | * Generated from protobuf enum REMOVE = 2;
32 | */
33 | const REMOVE = 2;
34 |
35 | private static $valueToName = [
36 | self::ACTION_UNSPECIFIED => 'ACTION_UNSPECIFIED',
37 | self::ADD => 'ADD',
38 | self::REMOVE => 'REMOVE',
39 | ];
40 |
41 | public static function name($value)
42 | {
43 | if (!isset(self::$valueToName[$value])) {
44 | throw new UnexpectedValueException(sprintf(
45 | 'Enum %s has no name defined for value %s', __CLASS__, $value));
46 | }
47 | return self::$valueToName[$value];
48 | }
49 |
50 |
51 | public static function value($name)
52 | {
53 | $const = __CLASS__ . '::' . strtoupper($name);
54 | if (!defined($const)) {
55 | throw new UnexpectedValueException(sprintf(
56 | 'Enum %s has no value defined for name %s', __CLASS__, $name));
57 | }
58 | return constant($const);
59 | }
60 | }
61 |
62 |
63 |
--------------------------------------------------------------------------------
/src/Cloud/Iam/V1/GetIamPolicyRequest.php:
--------------------------------------------------------------------------------
1 | google.iam.v1.GetIamPolicyRequest
15 | */
16 | class GetIamPolicyRequest extends \Google\Protobuf\Internal\Message
17 | {
18 | /**
19 | * REQUIRED: The resource for which the policy is being requested.
20 | * See the operation documentation for the appropriate value for this field.
21 | *
22 | * Generated from protobuf field string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
23 | */
24 | protected $resource = '';
25 | /**
26 | * OPTIONAL: A `GetPolicyOptions` object for specifying options to
27 | * `GetIamPolicy`.
28 | *
29 | * Generated from protobuf field .google.iam.v1.GetPolicyOptions options = 2;
30 | */
31 | protected $options = null;
32 |
33 | /**
34 | * Constructor.
35 | *
36 | * @param array $data {
37 | * Optional. Data for populating the Message object.
38 | *
39 | * @type string $resource
40 | * REQUIRED: The resource for which the policy is being requested.
41 | * See the operation documentation for the appropriate value for this field.
42 | * @type \Google\Cloud\Iam\V1\GetPolicyOptions $options
43 | * OPTIONAL: A `GetPolicyOptions` object for specifying options to
44 | * `GetIamPolicy`.
45 | * }
46 | */
47 | public function __construct($data = NULL) {
48 | \GPBMetadata\Google\Iam\V1\IamPolicy::initOnce();
49 | parent::__construct($data);
50 | }
51 |
52 | /**
53 | * REQUIRED: The resource for which the policy is being requested.
54 | * See the operation documentation for the appropriate value for this field.
55 | *
56 | * Generated from protobuf field string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
57 | * @return string
58 | */
59 | public function getResource()
60 | {
61 | return $this->resource;
62 | }
63 |
64 | /**
65 | * REQUIRED: The resource for which the policy is being requested.
66 | * See the operation documentation for the appropriate value for this field.
67 | *
68 | * Generated from protobuf field string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
69 | * @param string $var
70 | * @return $this
71 | */
72 | public function setResource($var)
73 | {
74 | GPBUtil::checkString($var, True);
75 | $this->resource = $var;
76 |
77 | return $this;
78 | }
79 |
80 | /**
81 | * OPTIONAL: A `GetPolicyOptions` object for specifying options to
82 | * `GetIamPolicy`.
83 | *
84 | * Generated from protobuf field .google.iam.v1.GetPolicyOptions options = 2;
85 | * @return \Google\Cloud\Iam\V1\GetPolicyOptions|null
86 | */
87 | public function getOptions()
88 | {
89 | return $this->options;
90 | }
91 |
92 | public function hasOptions()
93 | {
94 | return isset($this->options);
95 | }
96 |
97 | public function clearOptions()
98 | {
99 | unset($this->options);
100 | }
101 |
102 | /**
103 | * OPTIONAL: A `GetPolicyOptions` object for specifying options to
104 | * `GetIamPolicy`.
105 | *
106 | * Generated from protobuf field .google.iam.v1.GetPolicyOptions options = 2;
107 | * @param \Google\Cloud\Iam\V1\GetPolicyOptions $var
108 | * @return $this
109 | */
110 | public function setOptions($var)
111 | {
112 | GPBUtil::checkMessage($var, \Google\Cloud\Iam\V1\GetPolicyOptions::class);
113 | $this->options = $var;
114 |
115 | return $this;
116 | }
117 |
118 | }
119 |
120 |
--------------------------------------------------------------------------------
/src/Cloud/Iam/V1/PolicyDelta.php:
--------------------------------------------------------------------------------
1 | google.iam.v1.PolicyDelta
15 | */
16 | class PolicyDelta extends \Google\Protobuf\Internal\Message
17 | {
18 | /**
19 | * The delta for Bindings between two policies.
20 | *
21 | * Generated from protobuf field repeated .google.iam.v1.BindingDelta binding_deltas = 1;
22 | */
23 | private $binding_deltas;
24 | /**
25 | * The delta for AuditConfigs between two policies.
26 | *
27 | * Generated from protobuf field repeated .google.iam.v1.AuditConfigDelta audit_config_deltas = 2;
28 | */
29 | private $audit_config_deltas;
30 |
31 | /**
32 | * Constructor.
33 | *
34 | * @param array $data {
35 | * Optional. Data for populating the Message object.
36 | *
37 | * @type array<\Google\Cloud\Iam\V1\BindingDelta>|\Google\Protobuf\Internal\RepeatedField $binding_deltas
38 | * The delta for Bindings between two policies.
39 | * @type array<\Google\Cloud\Iam\V1\AuditConfigDelta>|\Google\Protobuf\Internal\RepeatedField $audit_config_deltas
40 | * The delta for AuditConfigs between two policies.
41 | * }
42 | */
43 | public function __construct($data = NULL) {
44 | \GPBMetadata\Google\Iam\V1\Policy::initOnce();
45 | parent::__construct($data);
46 | }
47 |
48 | /**
49 | * The delta for Bindings between two policies.
50 | *
51 | * Generated from protobuf field repeated .google.iam.v1.BindingDelta binding_deltas = 1;
52 | * @return \Google\Protobuf\Internal\RepeatedField
53 | */
54 | public function getBindingDeltas()
55 | {
56 | return $this->binding_deltas;
57 | }
58 |
59 | /**
60 | * The delta for Bindings between two policies.
61 | *
62 | * Generated from protobuf field repeated .google.iam.v1.BindingDelta binding_deltas = 1;
63 | * @param array<\Google\Cloud\Iam\V1\BindingDelta>|\Google\Protobuf\Internal\RepeatedField $var
64 | * @return $this
65 | */
66 | public function setBindingDeltas($var)
67 | {
68 | $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Iam\V1\BindingDelta::class);
69 | $this->binding_deltas = $arr;
70 |
71 | return $this;
72 | }
73 |
74 | /**
75 | * The delta for AuditConfigs between two policies.
76 | *
77 | * Generated from protobuf field repeated .google.iam.v1.AuditConfigDelta audit_config_deltas = 2;
78 | * @return \Google\Protobuf\Internal\RepeatedField
79 | */
80 | public function getAuditConfigDeltas()
81 | {
82 | return $this->audit_config_deltas;
83 | }
84 |
85 | /**
86 | * The delta for AuditConfigs between two policies.
87 | *
88 | * Generated from protobuf field repeated .google.iam.v1.AuditConfigDelta audit_config_deltas = 2;
89 | * @param array<\Google\Cloud\Iam\V1\AuditConfigDelta>|\Google\Protobuf\Internal\RepeatedField $var
90 | * @return $this
91 | */
92 | public function setAuditConfigDeltas($var)
93 | {
94 | $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Iam\V1\AuditConfigDelta::class);
95 | $this->audit_config_deltas = $arr;
96 |
97 | return $this;
98 | }
99 |
100 | }
101 |
102 |
--------------------------------------------------------------------------------
/src/Cloud/Iam/V1/TestIamPermissionsResponse.php:
--------------------------------------------------------------------------------
1 | google.iam.v1.TestIamPermissionsResponse
15 | */
16 | class TestIamPermissionsResponse extends \Google\Protobuf\Internal\Message
17 | {
18 | /**
19 | * A subset of `TestPermissionsRequest.permissions` that the caller is
20 | * allowed.
21 | *
22 | * Generated from protobuf field repeated string permissions = 1;
23 | */
24 | private $permissions;
25 |
26 | /**
27 | * Constructor.
28 | *
29 | * @param array $data {
30 | * Optional. Data for populating the Message object.
31 | *
32 | * @type array|\Google\Protobuf\Internal\RepeatedField $permissions
33 | * A subset of `TestPermissionsRequest.permissions` that the caller is
34 | * allowed.
35 | * }
36 | */
37 | public function __construct($data = NULL) {
38 | \GPBMetadata\Google\Iam\V1\IamPolicy::initOnce();
39 | parent::__construct($data);
40 | }
41 |
42 | /**
43 | * A subset of `TestPermissionsRequest.permissions` that the caller is
44 | * allowed.
45 | *
46 | * Generated from protobuf field repeated string permissions = 1;
47 | * @return \Google\Protobuf\Internal\RepeatedField
48 | */
49 | public function getPermissions()
50 | {
51 | return $this->permissions;
52 | }
53 |
54 | /**
55 | * A subset of `TestPermissionsRequest.permissions` that the caller is
56 | * allowed.
57 | *
58 | * Generated from protobuf field repeated string permissions = 1;
59 | * @param array|\Google\Protobuf\Internal\RepeatedField $var
60 | * @return $this
61 | */
62 | public function setPermissions($var)
63 | {
64 | $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
65 | $this->permissions = $arr;
66 |
67 | return $this;
68 | }
69 |
70 | }
71 |
72 |
--------------------------------------------------------------------------------
/src/Cloud/Location/GetLocationRequest.php:
--------------------------------------------------------------------------------
1 | google.cloud.location.GetLocationRequest
15 | */
16 | class GetLocationRequest extends \Google\Protobuf\Internal\Message
17 | {
18 | /**
19 | * Resource name for the location.
20 | *
21 | * Generated from protobuf field string name = 1;
22 | */
23 | protected $name = '';
24 |
25 | /**
26 | * Constructor.
27 | *
28 | * @param array $data {
29 | * Optional. Data for populating the Message object.
30 | *
31 | * @type string $name
32 | * Resource name for the location.
33 | * }
34 | */
35 | public function __construct($data = NULL) {
36 | \GPBMetadata\Google\Cloud\Location\Locations::initOnce();
37 | parent::__construct($data);
38 | }
39 |
40 | /**
41 | * Resource name for the location.
42 | *
43 | * Generated from protobuf field string name = 1;
44 | * @return string
45 | */
46 | public function getName()
47 | {
48 | return $this->name;
49 | }
50 |
51 | /**
52 | * Resource name for the location.
53 | *
54 | * Generated from protobuf field string name = 1;
55 | * @param string $var
56 | * @return $this
57 | */
58 | public function setName($var)
59 | {
60 | GPBUtil::checkString($var, True);
61 | $this->name = $var;
62 |
63 | return $this;
64 | }
65 |
66 | }
67 |
68 |
--------------------------------------------------------------------------------
/src/Cloud/Location/ListLocationsResponse.php:
--------------------------------------------------------------------------------
1 | google.cloud.location.ListLocationsResponse
15 | */
16 | class ListLocationsResponse extends \Google\Protobuf\Internal\Message
17 | {
18 | /**
19 | * A list of locations that matches the specified filter in the request.
20 | *
21 | * Generated from protobuf field repeated .google.cloud.location.Location locations = 1;
22 | */
23 | private $locations;
24 | /**
25 | * The standard List next-page token.
26 | *
27 | * Generated from protobuf field string next_page_token = 2;
28 | */
29 | protected $next_page_token = '';
30 |
31 | /**
32 | * Constructor.
33 | *
34 | * @param array $data {
35 | * Optional. Data for populating the Message object.
36 | *
37 | * @type array<\Google\Cloud\Location\Location>|\Google\Protobuf\Internal\RepeatedField $locations
38 | * A list of locations that matches the specified filter in the request.
39 | * @type string $next_page_token
40 | * The standard List next-page token.
41 | * }
42 | */
43 | public function __construct($data = NULL) {
44 | \GPBMetadata\Google\Cloud\Location\Locations::initOnce();
45 | parent::__construct($data);
46 | }
47 |
48 | /**
49 | * A list of locations that matches the specified filter in the request.
50 | *
51 | * Generated from protobuf field repeated .google.cloud.location.Location locations = 1;
52 | * @return \Google\Protobuf\Internal\RepeatedField
53 | */
54 | public function getLocations()
55 | {
56 | return $this->locations;
57 | }
58 |
59 | /**
60 | * A list of locations that matches the specified filter in the request.
61 | *
62 | * Generated from protobuf field repeated .google.cloud.location.Location locations = 1;
63 | * @param array<\Google\Cloud\Location\Location>|\Google\Protobuf\Internal\RepeatedField $var
64 | * @return $this
65 | */
66 | public function setLocations($var)
67 | {
68 | $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Location\Location::class);
69 | $this->locations = $arr;
70 |
71 | return $this;
72 | }
73 |
74 | /**
75 | * The standard List next-page token.
76 | *
77 | * Generated from protobuf field string next_page_token = 2;
78 | * @return string
79 | */
80 | public function getNextPageToken()
81 | {
82 | return $this->next_page_token;
83 | }
84 |
85 | /**
86 | * The standard List next-page token.
87 | *
88 | * Generated from protobuf field string next_page_token = 2;
89 | * @param string $var
90 | * @return $this
91 | */
92 | public function setNextPageToken($var)
93 | {
94 | GPBUtil::checkString($var, True);
95 | $this->next_page_token = $var;
96 |
97 | return $this;
98 | }
99 |
100 | }
101 |
102 |
--------------------------------------------------------------------------------
/src/Cloud/Logging/Type/LogSeverity.php:
--------------------------------------------------------------------------------
1 | DEBUG AND severity <= WARNING
18 | * If you are writing log entries, you should map other severity encodings to
19 | * one of these standard levels. For example, you might map all of Java's FINE,
20 | * FINER, and FINEST levels to `LogSeverity.DEBUG`. You can preserve the
21 | * original severity level in the log entry payload if you wish.
22 | *
23 | * Protobuf type google.logging.type.LogSeverity
24 | */
25 | class LogSeverity
26 | {
27 | /**
28 | * (0) The log entry has no assigned severity level.
29 | *
30 | * Generated from protobuf enum DEFAULT = 0;
31 | */
32 | const PBDEFAULT = 0;
33 | /**
34 | * (100) Debug or trace information.
35 | *
36 | * Generated from protobuf enum DEBUG = 100;
37 | */
38 | const DEBUG = 100;
39 | /**
40 | * (200) Routine information, such as ongoing status or performance.
41 | *
42 | * Generated from protobuf enum INFO = 200;
43 | */
44 | const INFO = 200;
45 | /**
46 | * (300) Normal but significant events, such as start up, shut down, or
47 | * a configuration change.
48 | *
49 | * Generated from protobuf enum NOTICE = 300;
50 | */
51 | const NOTICE = 300;
52 | /**
53 | * (400) Warning events might cause problems.
54 | *
55 | * Generated from protobuf enum WARNING = 400;
56 | */
57 | const WARNING = 400;
58 | /**
59 | * (500) Error events are likely to cause problems.
60 | *
61 | * Generated from protobuf enum ERROR = 500;
62 | */
63 | const ERROR = 500;
64 | /**
65 | * (600) Critical events cause more severe problems or outages.
66 | *
67 | * Generated from protobuf enum CRITICAL = 600;
68 | */
69 | const CRITICAL = 600;
70 | /**
71 | * (700) A person must take an action immediately.
72 | *
73 | * Generated from protobuf enum ALERT = 700;
74 | */
75 | const ALERT = 700;
76 | /**
77 | * (800) One or more systems are unusable.
78 | *
79 | * Generated from protobuf enum EMERGENCY = 800;
80 | */
81 | const EMERGENCY = 800;
82 |
83 | private static $valueToName = [
84 | self::PBDEFAULT => 'DEFAULT',
85 | self::DEBUG => 'DEBUG',
86 | self::INFO => 'INFO',
87 | self::NOTICE => 'NOTICE',
88 | self::WARNING => 'WARNING',
89 | self::ERROR => 'ERROR',
90 | self::CRITICAL => 'CRITICAL',
91 | self::ALERT => 'ALERT',
92 | self::EMERGENCY => 'EMERGENCY',
93 | ];
94 |
95 | public static function name($value)
96 | {
97 | if (!isset(self::$valueToName[$value])) {
98 | throw new UnexpectedValueException(sprintf(
99 | 'Enum %s has no name defined for value %s', __CLASS__, $value));
100 | }
101 | return self::$valueToName[$value];
102 | }
103 |
104 |
105 | public static function value($name)
106 | {
107 | $const = __CLASS__ . '::' . strtoupper($name);
108 | if (!defined($const)) {
109 | $pbconst = __CLASS__. '::PB' . strtoupper($name);
110 | if (!defined($pbconst)) {
111 | throw new UnexpectedValueException(sprintf(
112 | 'Enum %s has no value defined for name %s', __CLASS__, $name));
113 | }
114 | return constant($pbconst);
115 | }
116 | return constant($const);
117 | }
118 | }
119 |
120 |
--------------------------------------------------------------------------------
/src/Cloud/OperationResponseMapping.php:
--------------------------------------------------------------------------------
1 | google.cloud.OperationResponseMapping
16 | */
17 | class OperationResponseMapping
18 | {
19 | /**
20 | * Do not use.
21 | *
22 | * Generated from protobuf enum UNDEFINED = 0;
23 | */
24 | const UNDEFINED = 0;
25 | /**
26 | * A field in an API-specific (custom) Operation object which carries the same
27 | * meaning as google.longrunning.Operation.name.
28 | *
29 | * Generated from protobuf enum NAME = 1;
30 | */
31 | const NAME = 1;
32 | /**
33 | * A field in an API-specific (custom) Operation object which carries the same
34 | * meaning as google.longrunning.Operation.done. If the annotated field is of
35 | * an enum type, `annotated_field_name == EnumType.DONE` semantics should be
36 | * equivalent to `Operation.done == true`. If the annotated field is of type
37 | * boolean, then it should follow the same semantics as Operation.done.
38 | * Otherwise, a non-empty value should be treated as `Operation.done == true`.
39 | *
40 | * Generated from protobuf enum STATUS = 2;
41 | */
42 | const STATUS = 2;
43 | /**
44 | * A field in an API-specific (custom) Operation object which carries the same
45 | * meaning as google.longrunning.Operation.error.code.
46 | *
47 | * Generated from protobuf enum ERROR_CODE = 3;
48 | */
49 | const ERROR_CODE = 3;
50 | /**
51 | * A field in an API-specific (custom) Operation object which carries the same
52 | * meaning as google.longrunning.Operation.error.message.
53 | *
54 | * Generated from protobuf enum ERROR_MESSAGE = 4;
55 | */
56 | const ERROR_MESSAGE = 4;
57 |
58 | private static $valueToName = [
59 | self::UNDEFINED => 'UNDEFINED',
60 | self::NAME => 'NAME',
61 | self::STATUS => 'STATUS',
62 | self::ERROR_CODE => 'ERROR_CODE',
63 | self::ERROR_MESSAGE => 'ERROR_MESSAGE',
64 | ];
65 |
66 | public static function name($value)
67 | {
68 | if (!isset(self::$valueToName[$value])) {
69 | throw new UnexpectedValueException(sprintf(
70 | 'Enum %s has no name defined for value %s', __CLASS__, $value));
71 | }
72 | return self::$valueToName[$value];
73 | }
74 |
75 |
76 | public static function value($name)
77 | {
78 | $const = __CLASS__ . '::' . strtoupper($name);
79 | if (!defined($const)) {
80 | throw new UnexpectedValueException(sprintf(
81 | 'Enum %s has no value defined for name %s', __CLASS__, $name));
82 | }
83 | return constant($const);
84 | }
85 | }
86 |
87 |
--------------------------------------------------------------------------------
/src/Iam/V1/Logging/AuditData.php:
--------------------------------------------------------------------------------
1 | google.iam.v1.logging.AuditData
17 | */
18 | class AuditData extends \Google\Protobuf\Internal\Message
19 | {
20 | /**
21 | * Policy delta between the original policy and the newly set policy.
22 | *
23 | * Generated from protobuf field .google.iam.v1.PolicyDelta policy_delta = 2;
24 | */
25 | protected $policy_delta = null;
26 |
27 | /**
28 | * Constructor.
29 | *
30 | * @param array $data {
31 | * Optional. Data for populating the Message object.
32 | *
33 | * @type \Google\Cloud\Iam\V1\PolicyDelta $policy_delta
34 | * Policy delta between the original policy and the newly set policy.
35 | * }
36 | */
37 | public function __construct($data = NULL) {
38 | \GPBMetadata\Google\Iam\V1\Logging\AuditData::initOnce();
39 | parent::__construct($data);
40 | }
41 |
42 | /**
43 | * Policy delta between the original policy and the newly set policy.
44 | *
45 | * Generated from protobuf field .google.iam.v1.PolicyDelta policy_delta = 2;
46 | * @return \Google\Cloud\Iam\V1\PolicyDelta|null
47 | */
48 | public function getPolicyDelta()
49 | {
50 | return $this->policy_delta;
51 | }
52 |
53 | public function hasPolicyDelta()
54 | {
55 | return isset($this->policy_delta);
56 | }
57 |
58 | public function clearPolicyDelta()
59 | {
60 | unset($this->policy_delta);
61 | }
62 |
63 | /**
64 | * Policy delta between the original policy and the newly set policy.
65 | *
66 | * Generated from protobuf field .google.iam.v1.PolicyDelta policy_delta = 2;
67 | * @param \Google\Cloud\Iam\V1\PolicyDelta $var
68 | * @return $this
69 | */
70 | public function setPolicyDelta($var)
71 | {
72 | GPBUtil::checkMessage($var, \Google\Cloud\Iam\V1\PolicyDelta::class);
73 | $this->policy_delta = $var;
74 |
75 | return $this;
76 | }
77 |
78 | }
79 |
80 |
--------------------------------------------------------------------------------
/src/Rpc/BadRequest.php:
--------------------------------------------------------------------------------
1 | google.rpc.BadRequest
16 | */
17 | class BadRequest extends \Google\Protobuf\Internal\Message
18 | {
19 | /**
20 | * Describes all violations in a client request.
21 | *
22 | * Generated from protobuf field repeated .google.rpc.BadRequest.FieldViolation field_violations = 1;
23 | */
24 | private $field_violations;
25 |
26 | /**
27 | * Constructor.
28 | *
29 | * @param array $data {
30 | * Optional. Data for populating the Message object.
31 | *
32 | * @type array<\Google\Rpc\BadRequest\FieldViolation>|\Google\Protobuf\Internal\RepeatedField $field_violations
33 | * Describes all violations in a client request.
34 | * }
35 | */
36 | public function __construct($data = NULL) {
37 | \GPBMetadata\Google\Rpc\ErrorDetails::initOnce();
38 | parent::__construct($data);
39 | }
40 |
41 | /**
42 | * Describes all violations in a client request.
43 | *
44 | * Generated from protobuf field repeated .google.rpc.BadRequest.FieldViolation field_violations = 1;
45 | * @return \Google\Protobuf\Internal\RepeatedField
46 | */
47 | public function getFieldViolations()
48 | {
49 | return $this->field_violations;
50 | }
51 |
52 | /**
53 | * Describes all violations in a client request.
54 | *
55 | * Generated from protobuf field repeated .google.rpc.BadRequest.FieldViolation field_violations = 1;
56 | * @param array<\Google\Rpc\BadRequest\FieldViolation>|\Google\Protobuf\Internal\RepeatedField $var
57 | * @return $this
58 | */
59 | public function setFieldViolations($var)
60 | {
61 | $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Rpc\BadRequest\FieldViolation::class);
62 | $this->field_violations = $arr;
63 |
64 | return $this;
65 | }
66 |
67 | }
68 |
69 |
--------------------------------------------------------------------------------
/src/Rpc/DebugInfo.php:
--------------------------------------------------------------------------------
1 | google.rpc.DebugInfo
15 | */
16 | class DebugInfo extends \Google\Protobuf\Internal\Message
17 | {
18 | /**
19 | * The stack trace entries indicating where the error occurred.
20 | *
21 | * Generated from protobuf field repeated string stack_entries = 1;
22 | */
23 | private $stack_entries;
24 | /**
25 | * Additional debugging information provided by the server.
26 | *
27 | * Generated from protobuf field string detail = 2;
28 | */
29 | protected $detail = '';
30 |
31 | /**
32 | * Constructor.
33 | *
34 | * @param array $data {
35 | * Optional. Data for populating the Message object.
36 | *
37 | * @type array|\Google\Protobuf\Internal\RepeatedField $stack_entries
38 | * The stack trace entries indicating where the error occurred.
39 | * @type string $detail
40 | * Additional debugging information provided by the server.
41 | * }
42 | */
43 | public function __construct($data = NULL) {
44 | \GPBMetadata\Google\Rpc\ErrorDetails::initOnce();
45 | parent::__construct($data);
46 | }
47 |
48 | /**
49 | * The stack trace entries indicating where the error occurred.
50 | *
51 | * Generated from protobuf field repeated string stack_entries = 1;
52 | * @return \Google\Protobuf\Internal\RepeatedField
53 | */
54 | public function getStackEntries()
55 | {
56 | return $this->stack_entries;
57 | }
58 |
59 | /**
60 | * The stack trace entries indicating where the error occurred.
61 | *
62 | * Generated from protobuf field repeated string stack_entries = 1;
63 | * @param array|\Google\Protobuf\Internal\RepeatedField $var
64 | * @return $this
65 | */
66 | public function setStackEntries($var)
67 | {
68 | $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
69 | $this->stack_entries = $arr;
70 |
71 | return $this;
72 | }
73 |
74 | /**
75 | * Additional debugging information provided by the server.
76 | *
77 | * Generated from protobuf field string detail = 2;
78 | * @return string
79 | */
80 | public function getDetail()
81 | {
82 | return $this->detail;
83 | }
84 |
85 | /**
86 | * Additional debugging information provided by the server.
87 | *
88 | * Generated from protobuf field string detail = 2;
89 | * @param string $var
90 | * @return $this
91 | */
92 | public function setDetail($var)
93 | {
94 | GPBUtil::checkString($var, True);
95 | $this->detail = $var;
96 |
97 | return $this;
98 | }
99 |
100 | }
101 |
102 |
--------------------------------------------------------------------------------
/src/Rpc/Help.php:
--------------------------------------------------------------------------------
1 | google.rpc.Help
18 | */
19 | class Help extends \Google\Protobuf\Internal\Message
20 | {
21 | /**
22 | * URL(s) pointing to additional information on handling the current error.
23 | *
24 | * Generated from protobuf field repeated .google.rpc.Help.Link links = 1;
25 | */
26 | private $links;
27 |
28 | /**
29 | * Constructor.
30 | *
31 | * @param array $data {
32 | * Optional. Data for populating the Message object.
33 | *
34 | * @type array<\Google\Rpc\Help\Link>|\Google\Protobuf\Internal\RepeatedField $links
35 | * URL(s) pointing to additional information on handling the current error.
36 | * }
37 | */
38 | public function __construct($data = NULL) {
39 | \GPBMetadata\Google\Rpc\ErrorDetails::initOnce();
40 | parent::__construct($data);
41 | }
42 |
43 | /**
44 | * URL(s) pointing to additional information on handling the current error.
45 | *
46 | * Generated from protobuf field repeated .google.rpc.Help.Link links = 1;
47 | * @return \Google\Protobuf\Internal\RepeatedField
48 | */
49 | public function getLinks()
50 | {
51 | return $this->links;
52 | }
53 |
54 | /**
55 | * URL(s) pointing to additional information on handling the current error.
56 | *
57 | * Generated from protobuf field repeated .google.rpc.Help.Link links = 1;
58 | * @param array<\Google\Rpc\Help\Link>|\Google\Protobuf\Internal\RepeatedField $var
59 | * @return $this
60 | */
61 | public function setLinks($var)
62 | {
63 | $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Rpc\Help\Link::class);
64 | $this->links = $arr;
65 |
66 | return $this;
67 | }
68 |
69 | }
70 |
71 |
--------------------------------------------------------------------------------
/src/Rpc/Help/Link.php:
--------------------------------------------------------------------------------
1 | google.rpc.Help.Link
15 | */
16 | class Link extends \Google\Protobuf\Internal\Message
17 | {
18 | /**
19 | * Describes what the link offers.
20 | *
21 | * Generated from protobuf field string description = 1;
22 | */
23 | protected $description = '';
24 | /**
25 | * The URL of the link.
26 | *
27 | * Generated from protobuf field string url = 2;
28 | */
29 | protected $url = '';
30 |
31 | /**
32 | * Constructor.
33 | *
34 | * @param array $data {
35 | * Optional. Data for populating the Message object.
36 | *
37 | * @type string $description
38 | * Describes what the link offers.
39 | * @type string $url
40 | * The URL of the link.
41 | * }
42 | */
43 | public function __construct($data = NULL) {
44 | \GPBMetadata\Google\Rpc\ErrorDetails::initOnce();
45 | parent::__construct($data);
46 | }
47 |
48 | /**
49 | * Describes what the link offers.
50 | *
51 | * Generated from protobuf field string description = 1;
52 | * @return string
53 | */
54 | public function getDescription()
55 | {
56 | return $this->description;
57 | }
58 |
59 | /**
60 | * Describes what the link offers.
61 | *
62 | * Generated from protobuf field string description = 1;
63 | * @param string $var
64 | * @return $this
65 | */
66 | public function setDescription($var)
67 | {
68 | GPBUtil::checkString($var, True);
69 | $this->description = $var;
70 |
71 | return $this;
72 | }
73 |
74 | /**
75 | * The URL of the link.
76 | *
77 | * Generated from protobuf field string url = 2;
78 | * @return string
79 | */
80 | public function getUrl()
81 | {
82 | return $this->url;
83 | }
84 |
85 | /**
86 | * The URL of the link.
87 | *
88 | * Generated from protobuf field string url = 2;
89 | * @param string $var
90 | * @return $this
91 | */
92 | public function setUrl($var)
93 | {
94 | GPBUtil::checkString($var, True);
95 | $this->url = $var;
96 |
97 | return $this;
98 | }
99 |
100 | }
101 |
102 |
103 |
--------------------------------------------------------------------------------
/src/Rpc/LocalizedMessage.php:
--------------------------------------------------------------------------------
1 | google.rpc.LocalizedMessage
16 | */
17 | class LocalizedMessage extends \Google\Protobuf\Internal\Message
18 | {
19 | /**
20 | * The locale used following the specification defined at
21 | * https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
22 | * Examples are: "en-US", "fr-CH", "es-MX"
23 | *
24 | * Generated from protobuf field string locale = 1;
25 | */
26 | protected $locale = '';
27 | /**
28 | * The localized error message in the above locale.
29 | *
30 | * Generated from protobuf field string message = 2;
31 | */
32 | protected $message = '';
33 |
34 | /**
35 | * Constructor.
36 | *
37 | * @param array $data {
38 | * Optional. Data for populating the Message object.
39 | *
40 | * @type string $locale
41 | * The locale used following the specification defined at
42 | * https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
43 | * Examples are: "en-US", "fr-CH", "es-MX"
44 | * @type string $message
45 | * The localized error message in the above locale.
46 | * }
47 | */
48 | public function __construct($data = NULL) {
49 | \GPBMetadata\Google\Rpc\ErrorDetails::initOnce();
50 | parent::__construct($data);
51 | }
52 |
53 | /**
54 | * The locale used following the specification defined at
55 | * https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
56 | * Examples are: "en-US", "fr-CH", "es-MX"
57 | *
58 | * Generated from protobuf field string locale = 1;
59 | * @return string
60 | */
61 | public function getLocale()
62 | {
63 | return $this->locale;
64 | }
65 |
66 | /**
67 | * The locale used following the specification defined at
68 | * https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
69 | * Examples are: "en-US", "fr-CH", "es-MX"
70 | *
71 | * Generated from protobuf field string locale = 1;
72 | * @param string $var
73 | * @return $this
74 | */
75 | public function setLocale($var)
76 | {
77 | GPBUtil::checkString($var, True);
78 | $this->locale = $var;
79 |
80 | return $this;
81 | }
82 |
83 | /**
84 | * The localized error message in the above locale.
85 | *
86 | * Generated from protobuf field string message = 2;
87 | * @return string
88 | */
89 | public function getMessage()
90 | {
91 | return $this->message;
92 | }
93 |
94 | /**
95 | * The localized error message in the above locale.
96 | *
97 | * Generated from protobuf field string message = 2;
98 | * @param string $var
99 | * @return $this
100 | */
101 | public function setMessage($var)
102 | {
103 | GPBUtil::checkString($var, True);
104 | $this->message = $var;
105 |
106 | return $this;
107 | }
108 |
109 | }
110 |
111 |
--------------------------------------------------------------------------------
/src/Rpc/PreconditionFailure.php:
--------------------------------------------------------------------------------
1 | google.rpc.PreconditionFailure
18 | */
19 | class PreconditionFailure extends \Google\Protobuf\Internal\Message
20 | {
21 | /**
22 | * Describes all precondition violations.
23 | *
24 | * Generated from protobuf field repeated .google.rpc.PreconditionFailure.Violation violations = 1;
25 | */
26 | private $violations;
27 |
28 | /**
29 | * Constructor.
30 | *
31 | * @param array $data {
32 | * Optional. Data for populating the Message object.
33 | *
34 | * @type array<\Google\Rpc\PreconditionFailure\Violation>|\Google\Protobuf\Internal\RepeatedField $violations
35 | * Describes all precondition violations.
36 | * }
37 | */
38 | public function __construct($data = NULL) {
39 | \GPBMetadata\Google\Rpc\ErrorDetails::initOnce();
40 | parent::__construct($data);
41 | }
42 |
43 | /**
44 | * Describes all precondition violations.
45 | *
46 | * Generated from protobuf field repeated .google.rpc.PreconditionFailure.Violation violations = 1;
47 | * @return \Google\Protobuf\Internal\RepeatedField
48 | */
49 | public function getViolations()
50 | {
51 | return $this->violations;
52 | }
53 |
54 | /**
55 | * Describes all precondition violations.
56 | *
57 | * Generated from protobuf field repeated .google.rpc.PreconditionFailure.Violation violations = 1;
58 | * @param array<\Google\Rpc\PreconditionFailure\Violation>|\Google\Protobuf\Internal\RepeatedField $var
59 | * @return $this
60 | */
61 | public function setViolations($var)
62 | {
63 | $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Rpc\PreconditionFailure\Violation::class);
64 | $this->violations = $arr;
65 |
66 | return $this;
67 | }
68 |
69 | }
70 |
71 |
--------------------------------------------------------------------------------
/src/Rpc/QuotaFailure.php:
--------------------------------------------------------------------------------
1 | google.rpc.QuotaFailure
23 | */
24 | class QuotaFailure extends \Google\Protobuf\Internal\Message
25 | {
26 | /**
27 | * Describes all quota violations.
28 | *
29 | * Generated from protobuf field repeated .google.rpc.QuotaFailure.Violation violations = 1;
30 | */
31 | private $violations;
32 |
33 | /**
34 | * Constructor.
35 | *
36 | * @param array $data {
37 | * Optional. Data for populating the Message object.
38 | *
39 | * @type array<\Google\Rpc\QuotaFailure\Violation>|\Google\Protobuf\Internal\RepeatedField $violations
40 | * Describes all quota violations.
41 | * }
42 | */
43 | public function __construct($data = NULL) {
44 | \GPBMetadata\Google\Rpc\ErrorDetails::initOnce();
45 | parent::__construct($data);
46 | }
47 |
48 | /**
49 | * Describes all quota violations.
50 | *
51 | * Generated from protobuf field repeated .google.rpc.QuotaFailure.Violation violations = 1;
52 | * @return \Google\Protobuf\Internal\RepeatedField
53 | */
54 | public function getViolations()
55 | {
56 | return $this->violations;
57 | }
58 |
59 | /**
60 | * Describes all quota violations.
61 | *
62 | * Generated from protobuf field repeated .google.rpc.QuotaFailure.Violation violations = 1;
63 | * @param array<\Google\Rpc\QuotaFailure\Violation>|\Google\Protobuf\Internal\RepeatedField $var
64 | * @return $this
65 | */
66 | public function setViolations($var)
67 | {
68 | $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Rpc\QuotaFailure\Violation::class);
69 | $this->violations = $arr;
70 |
71 | return $this;
72 | }
73 |
74 | }
75 |
76 |
--------------------------------------------------------------------------------
/src/Rpc/RequestInfo.php:
--------------------------------------------------------------------------------
1 | google.rpc.RequestInfo
16 | */
17 | class RequestInfo extends \Google\Protobuf\Internal\Message
18 | {
19 | /**
20 | * An opaque string that should only be interpreted by the service generating
21 | * it. For example, it can be used to identify requests in the service's logs.
22 | *
23 | * Generated from protobuf field string request_id = 1;
24 | */
25 | protected $request_id = '';
26 | /**
27 | * Any data that was used to serve this request. For example, an encrypted
28 | * stack trace that can be sent back to the service provider for debugging.
29 | *
30 | * Generated from protobuf field string serving_data = 2;
31 | */
32 | protected $serving_data = '';
33 |
34 | /**
35 | * Constructor.
36 | *
37 | * @param array $data {
38 | * Optional. Data for populating the Message object.
39 | *
40 | * @type string $request_id
41 | * An opaque string that should only be interpreted by the service generating
42 | * it. For example, it can be used to identify requests in the service's logs.
43 | * @type string $serving_data
44 | * Any data that was used to serve this request. For example, an encrypted
45 | * stack trace that can be sent back to the service provider for debugging.
46 | * }
47 | */
48 | public function __construct($data = NULL) {
49 | \GPBMetadata\Google\Rpc\ErrorDetails::initOnce();
50 | parent::__construct($data);
51 | }
52 |
53 | /**
54 | * An opaque string that should only be interpreted by the service generating
55 | * it. For example, it can be used to identify requests in the service's logs.
56 | *
57 | * Generated from protobuf field string request_id = 1;
58 | * @return string
59 | */
60 | public function getRequestId()
61 | {
62 | return $this->request_id;
63 | }
64 |
65 | /**
66 | * An opaque string that should only be interpreted by the service generating
67 | * it. For example, it can be used to identify requests in the service's logs.
68 | *
69 | * Generated from protobuf field string request_id = 1;
70 | * @param string $var
71 | * @return $this
72 | */
73 | public function setRequestId($var)
74 | {
75 | GPBUtil::checkString($var, True);
76 | $this->request_id = $var;
77 |
78 | return $this;
79 | }
80 |
81 | /**
82 | * Any data that was used to serve this request. For example, an encrypted
83 | * stack trace that can be sent back to the service provider for debugging.
84 | *
85 | * Generated from protobuf field string serving_data = 2;
86 | * @return string
87 | */
88 | public function getServingData()
89 | {
90 | return $this->serving_data;
91 | }
92 |
93 | /**
94 | * Any data that was used to serve this request. For example, an encrypted
95 | * stack trace that can be sent back to the service provider for debugging.
96 | *
97 | * Generated from protobuf field string serving_data = 2;
98 | * @param string $var
99 | * @return $this
100 | */
101 | public function setServingData($var)
102 | {
103 | GPBUtil::checkString($var, True);
104 | $this->serving_data = $var;
105 |
106 | return $this;
107 | }
108 |
109 | }
110 |
111 |
--------------------------------------------------------------------------------
/src/Rpc/RetryInfo.php:
--------------------------------------------------------------------------------
1 | google.rpc.RetryInfo
25 | */
26 | class RetryInfo extends \Google\Protobuf\Internal\Message
27 | {
28 | /**
29 | * Clients should wait at least this long between retrying the same request.
30 | *
31 | * Generated from protobuf field .google.protobuf.Duration retry_delay = 1;
32 | */
33 | protected $retry_delay = null;
34 |
35 | /**
36 | * Constructor.
37 | *
38 | * @param array $data {
39 | * Optional. Data for populating the Message object.
40 | *
41 | * @type \Google\Protobuf\Duration $retry_delay
42 | * Clients should wait at least this long between retrying the same request.
43 | * }
44 | */
45 | public function __construct($data = NULL) {
46 | \GPBMetadata\Google\Rpc\ErrorDetails::initOnce();
47 | parent::__construct($data);
48 | }
49 |
50 | /**
51 | * Clients should wait at least this long between retrying the same request.
52 | *
53 | * Generated from protobuf field .google.protobuf.Duration retry_delay = 1;
54 | * @return \Google\Protobuf\Duration|null
55 | */
56 | public function getRetryDelay()
57 | {
58 | return $this->retry_delay;
59 | }
60 |
61 | public function hasRetryDelay()
62 | {
63 | return isset($this->retry_delay);
64 | }
65 |
66 | public function clearRetryDelay()
67 | {
68 | unset($this->retry_delay);
69 | }
70 |
71 | /**
72 | * Clients should wait at least this long between retrying the same request.
73 | *
74 | * Generated from protobuf field .google.protobuf.Duration retry_delay = 1;
75 | * @param \Google\Protobuf\Duration $var
76 | * @return $this
77 | */
78 | public function setRetryDelay($var)
79 | {
80 | GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
81 | $this->retry_delay = $var;
82 |
83 | return $this;
84 | }
85 |
86 | }
87 |
88 |
--------------------------------------------------------------------------------
/src/Type/CalendarPeriod.php:
--------------------------------------------------------------------------------
1 | google.type.CalendarPeriod
15 | */
16 | class CalendarPeriod
17 | {
18 | /**
19 | * Undefined period, raises an error.
20 | *
21 | * Generated from protobuf enum CALENDAR_PERIOD_UNSPECIFIED = 0;
22 | */
23 | const CALENDAR_PERIOD_UNSPECIFIED = 0;
24 | /**
25 | * A day.
26 | *
27 | * Generated from protobuf enum DAY = 1;
28 | */
29 | const DAY = 1;
30 | /**
31 | * A week. Weeks begin on Monday, following
32 | * [ISO 8601](https://en.wikipedia.org/wiki/ISO_week_date).
33 | *
34 | * Generated from protobuf enum WEEK = 2;
35 | */
36 | const WEEK = 2;
37 | /**
38 | * A fortnight. The first calendar fortnight of the year begins at the start
39 | * of week 1 according to
40 | * [ISO 8601](https://en.wikipedia.org/wiki/ISO_week_date).
41 | *
42 | * Generated from protobuf enum FORTNIGHT = 3;
43 | */
44 | const FORTNIGHT = 3;
45 | /**
46 | * A month.
47 | *
48 | * Generated from protobuf enum MONTH = 4;
49 | */
50 | const MONTH = 4;
51 | /**
52 | * A quarter. Quarters start on dates 1-Jan, 1-Apr, 1-Jul, and 1-Oct of each
53 | * year.
54 | *
55 | * Generated from protobuf enum QUARTER = 5;
56 | */
57 | const QUARTER = 5;
58 | /**
59 | * A half-year. Half-years start on dates 1-Jan and 1-Jul.
60 | *
61 | * Generated from protobuf enum HALF = 6;
62 | */
63 | const HALF = 6;
64 | /**
65 | * A year.
66 | *
67 | * Generated from protobuf enum YEAR = 7;
68 | */
69 | const YEAR = 7;
70 |
71 | private static $valueToName = [
72 | self::CALENDAR_PERIOD_UNSPECIFIED => 'CALENDAR_PERIOD_UNSPECIFIED',
73 | self::DAY => 'DAY',
74 | self::WEEK => 'WEEK',
75 | self::FORTNIGHT => 'FORTNIGHT',
76 | self::MONTH => 'MONTH',
77 | self::QUARTER => 'QUARTER',
78 | self::HALF => 'HALF',
79 | self::YEAR => 'YEAR',
80 | ];
81 |
82 | public static function name($value)
83 | {
84 | if (!isset(self::$valueToName[$value])) {
85 | throw new UnexpectedValueException(sprintf(
86 | 'Enum %s has no name defined for value %s', __CLASS__, $value));
87 | }
88 | return self::$valueToName[$value];
89 | }
90 |
91 |
92 | public static function value($name)
93 | {
94 | $const = __CLASS__ . '::' . strtoupper($name);
95 | if (!defined($const)) {
96 | throw new UnexpectedValueException(sprintf(
97 | 'Enum %s has no value defined for name %s', __CLASS__, $name));
98 | }
99 | return constant($const);
100 | }
101 | }
102 |
103 |
--------------------------------------------------------------------------------
/src/Type/DayOfWeek.php:
--------------------------------------------------------------------------------
1 | google.type.DayOfWeek
13 | */
14 | class DayOfWeek
15 | {
16 | /**
17 | * The day of the week is unspecified.
18 | *
19 | * Generated from protobuf enum DAY_OF_WEEK_UNSPECIFIED = 0;
20 | */
21 | const DAY_OF_WEEK_UNSPECIFIED = 0;
22 | /**
23 | * Monday
24 | *
25 | * Generated from protobuf enum MONDAY = 1;
26 | */
27 | const MONDAY = 1;
28 | /**
29 | * Tuesday
30 | *
31 | * Generated from protobuf enum TUESDAY = 2;
32 | */
33 | const TUESDAY = 2;
34 | /**
35 | * Wednesday
36 | *
37 | * Generated from protobuf enum WEDNESDAY = 3;
38 | */
39 | const WEDNESDAY = 3;
40 | /**
41 | * Thursday
42 | *
43 | * Generated from protobuf enum THURSDAY = 4;
44 | */
45 | const THURSDAY = 4;
46 | /**
47 | * Friday
48 | *
49 | * Generated from protobuf enum FRIDAY = 5;
50 | */
51 | const FRIDAY = 5;
52 | /**
53 | * Saturday
54 | *
55 | * Generated from protobuf enum SATURDAY = 6;
56 | */
57 | const SATURDAY = 6;
58 | /**
59 | * Sunday
60 | *
61 | * Generated from protobuf enum SUNDAY = 7;
62 | */
63 | const SUNDAY = 7;
64 |
65 | private static $valueToName = [
66 | self::DAY_OF_WEEK_UNSPECIFIED => 'DAY_OF_WEEK_UNSPECIFIED',
67 | self::MONDAY => 'MONDAY',
68 | self::TUESDAY => 'TUESDAY',
69 | self::WEDNESDAY => 'WEDNESDAY',
70 | self::THURSDAY => 'THURSDAY',
71 | self::FRIDAY => 'FRIDAY',
72 | self::SATURDAY => 'SATURDAY',
73 | self::SUNDAY => 'SUNDAY',
74 | ];
75 |
76 | public static function name($value)
77 | {
78 | if (!isset(self::$valueToName[$value])) {
79 | throw new UnexpectedValueException(sprintf(
80 | 'Enum %s has no name defined for value %s', __CLASS__, $value));
81 | }
82 | return self::$valueToName[$value];
83 | }
84 |
85 |
86 | public static function value($name)
87 | {
88 | $const = __CLASS__ . '::' . strtoupper($name);
89 | if (!defined($const)) {
90 | throw new UnexpectedValueException(sprintf(
91 | 'Enum %s has no value defined for name %s', __CLASS__, $name));
92 | }
93 | return constant($const);
94 | }
95 | }
96 |
97 |
--------------------------------------------------------------------------------
/src/Type/Fraction.php:
--------------------------------------------------------------------------------
1 | google.type.Fraction
15 | */
16 | class Fraction extends \Google\Protobuf\Internal\Message
17 | {
18 | /**
19 | * The numerator in the fraction, e.g. 2 in 2/3.
20 | *
21 | * Generated from protobuf field int64 numerator = 1;
22 | */
23 | protected $numerator = 0;
24 | /**
25 | * The value by which the numerator is divided, e.g. 3 in 2/3. Must be
26 | * positive.
27 | *
28 | * Generated from protobuf field int64 denominator = 2;
29 | */
30 | protected $denominator = 0;
31 |
32 | /**
33 | * Constructor.
34 | *
35 | * @param array $data {
36 | * Optional. Data for populating the Message object.
37 | *
38 | * @type int|string $numerator
39 | * The numerator in the fraction, e.g. 2 in 2/3.
40 | * @type int|string $denominator
41 | * The value by which the numerator is divided, e.g. 3 in 2/3. Must be
42 | * positive.
43 | * }
44 | */
45 | public function __construct($data = NULL) {
46 | \GPBMetadata\Google\Type\Fraction::initOnce();
47 | parent::__construct($data);
48 | }
49 |
50 | /**
51 | * The numerator in the fraction, e.g. 2 in 2/3.
52 | *
53 | * Generated from protobuf field int64 numerator = 1;
54 | * @return int|string
55 | */
56 | public function getNumerator()
57 | {
58 | return $this->numerator;
59 | }
60 |
61 | /**
62 | * The numerator in the fraction, e.g. 2 in 2/3.
63 | *
64 | * Generated from protobuf field int64 numerator = 1;
65 | * @param int|string $var
66 | * @return $this
67 | */
68 | public function setNumerator($var)
69 | {
70 | GPBUtil::checkInt64($var);
71 | $this->numerator = $var;
72 |
73 | return $this;
74 | }
75 |
76 | /**
77 | * The value by which the numerator is divided, e.g. 3 in 2/3. Must be
78 | * positive.
79 | *
80 | * Generated from protobuf field int64 denominator = 2;
81 | * @return int|string
82 | */
83 | public function getDenominator()
84 | {
85 | return $this->denominator;
86 | }
87 |
88 | /**
89 | * The value by which the numerator is divided, e.g. 3 in 2/3. Must be
90 | * positive.
91 | *
92 | * Generated from protobuf field int64 denominator = 2;
93 | * @param int|string $var
94 | * @return $this
95 | */
96 | public function setDenominator($var)
97 | {
98 | GPBUtil::checkInt64($var);
99 | $this->denominator = $var;
100 |
101 | return $this;
102 | }
103 |
104 | }
105 |
106 |
--------------------------------------------------------------------------------
/src/Type/LatLng.php:
--------------------------------------------------------------------------------
1 | WGS84
16 | * standard. Values must be within normalized ranges.
17 | *
18 | * Generated from protobuf message google.type.LatLng
19 | */
20 | class LatLng extends \Google\Protobuf\Internal\Message
21 | {
22 | /**
23 | * The latitude in degrees. It must be in the range [-90.0, +90.0].
24 | *
25 | * Generated from protobuf field double latitude = 1;
26 | */
27 | protected $latitude = 0.0;
28 | /**
29 | * The longitude in degrees. It must be in the range [-180.0, +180.0].
30 | *
31 | * Generated from protobuf field double longitude = 2;
32 | */
33 | protected $longitude = 0.0;
34 |
35 | /**
36 | * Constructor.
37 | *
38 | * @param array $data {
39 | * Optional. Data for populating the Message object.
40 | *
41 | * @type float $latitude
42 | * The latitude in degrees. It must be in the range [-90.0, +90.0].
43 | * @type float $longitude
44 | * The longitude in degrees. It must be in the range [-180.0, +180.0].
45 | * }
46 | */
47 | public function __construct($data = NULL) {
48 | \GPBMetadata\Google\Type\Latlng::initOnce();
49 | parent::__construct($data);
50 | }
51 |
52 | /**
53 | * The latitude in degrees. It must be in the range [-90.0, +90.0].
54 | *
55 | * Generated from protobuf field double latitude = 1;
56 | * @return float
57 | */
58 | public function getLatitude()
59 | {
60 | return $this->latitude;
61 | }
62 |
63 | /**
64 | * The latitude in degrees. It must be in the range [-90.0, +90.0].
65 | *
66 | * Generated from protobuf field double latitude = 1;
67 | * @param float $var
68 | * @return $this
69 | */
70 | public function setLatitude($var)
71 | {
72 | GPBUtil::checkDouble($var);
73 | $this->latitude = $var;
74 |
75 | return $this;
76 | }
77 |
78 | /**
79 | * The longitude in degrees. It must be in the range [-180.0, +180.0].
80 | *
81 | * Generated from protobuf field double longitude = 2;
82 | * @return float
83 | */
84 | public function getLongitude()
85 | {
86 | return $this->longitude;
87 | }
88 |
89 | /**
90 | * The longitude in degrees. It must be in the range [-180.0, +180.0].
91 | *
92 | * Generated from protobuf field double longitude = 2;
93 | * @param float $var
94 | * @return $this
95 | */
96 | public function setLongitude($var)
97 | {
98 | GPBUtil::checkDouble($var);
99 | $this->longitude = $var;
100 |
101 | return $this;
102 | }
103 |
104 | }
105 |
106 |
--------------------------------------------------------------------------------
/src/Type/LocalizedText.php:
--------------------------------------------------------------------------------
1 | google.type.LocalizedText
15 | */
16 | class LocalizedText extends \Google\Protobuf\Internal\Message
17 | {
18 | /**
19 | * Localized string in the language corresponding to `language_code' below.
20 | *
21 | * Generated from protobuf field string text = 1;
22 | */
23 | protected $text = '';
24 | /**
25 | * The text's BCP-47 language code, such as "en-US" or "sr-Latn".
26 | * For more information, see
27 | * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
28 | *
29 | * Generated from protobuf field string language_code = 2;
30 | */
31 | protected $language_code = '';
32 |
33 | /**
34 | * Constructor.
35 | *
36 | * @param array $data {
37 | * Optional. Data for populating the Message object.
38 | *
39 | * @type string $text
40 | * Localized string in the language corresponding to `language_code' below.
41 | * @type string $language_code
42 | * The text's BCP-47 language code, such as "en-US" or "sr-Latn".
43 | * For more information, see
44 | * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
45 | * }
46 | */
47 | public function __construct($data = NULL) {
48 | \GPBMetadata\Google\Type\LocalizedText::initOnce();
49 | parent::__construct($data);
50 | }
51 |
52 | /**
53 | * Localized string in the language corresponding to `language_code' below.
54 | *
55 | * Generated from protobuf field string text = 1;
56 | * @return string
57 | */
58 | public function getText()
59 | {
60 | return $this->text;
61 | }
62 |
63 | /**
64 | * Localized string in the language corresponding to `language_code' below.
65 | *
66 | * Generated from protobuf field string text = 1;
67 | * @param string $var
68 | * @return $this
69 | */
70 | public function setText($var)
71 | {
72 | GPBUtil::checkString($var, True);
73 | $this->text = $var;
74 |
75 | return $this;
76 | }
77 |
78 | /**
79 | * The text's BCP-47 language code, such as "en-US" or "sr-Latn".
80 | * For more information, see
81 | * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
82 | *
83 | * Generated from protobuf field string language_code = 2;
84 | * @return string
85 | */
86 | public function getLanguageCode()
87 | {
88 | return $this->language_code;
89 | }
90 |
91 | /**
92 | * The text's BCP-47 language code, such as "en-US" or "sr-Latn".
93 | * For more information, see
94 | * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
95 | *
96 | * Generated from protobuf field string language_code = 2;
97 | * @param string $var
98 | * @return $this
99 | */
100 | public function setLanguageCode($var)
101 | {
102 | GPBUtil::checkString($var, True);
103 | $this->language_code = $var;
104 |
105 | return $this;
106 | }
107 |
108 | }
109 |
110 |
--------------------------------------------------------------------------------
/src/Type/Month.php:
--------------------------------------------------------------------------------
1 | google.type.Month
13 | */
14 | class Month
15 | {
16 | /**
17 | * The unspecified month.
18 | *
19 | * Generated from protobuf enum MONTH_UNSPECIFIED = 0;
20 | */
21 | const MONTH_UNSPECIFIED = 0;
22 | /**
23 | * The month of January.
24 | *
25 | * Generated from protobuf enum JANUARY = 1;
26 | */
27 | const JANUARY = 1;
28 | /**
29 | * The month of February.
30 | *
31 | * Generated from protobuf enum FEBRUARY = 2;
32 | */
33 | const FEBRUARY = 2;
34 | /**
35 | * The month of March.
36 | *
37 | * Generated from protobuf enum MARCH = 3;
38 | */
39 | const MARCH = 3;
40 | /**
41 | * The month of April.
42 | *
43 | * Generated from protobuf enum APRIL = 4;
44 | */
45 | const APRIL = 4;
46 | /**
47 | * The month of May.
48 | *
49 | * Generated from protobuf enum MAY = 5;
50 | */
51 | const MAY = 5;
52 | /**
53 | * The month of June.
54 | *
55 | * Generated from protobuf enum JUNE = 6;
56 | */
57 | const JUNE = 6;
58 | /**
59 | * The month of July.
60 | *
61 | * Generated from protobuf enum JULY = 7;
62 | */
63 | const JULY = 7;
64 | /**
65 | * The month of August.
66 | *
67 | * Generated from protobuf enum AUGUST = 8;
68 | */
69 | const AUGUST = 8;
70 | /**
71 | * The month of September.
72 | *
73 | * Generated from protobuf enum SEPTEMBER = 9;
74 | */
75 | const SEPTEMBER = 9;
76 | /**
77 | * The month of October.
78 | *
79 | * Generated from protobuf enum OCTOBER = 10;
80 | */
81 | const OCTOBER = 10;
82 | /**
83 | * The month of November.
84 | *
85 | * Generated from protobuf enum NOVEMBER = 11;
86 | */
87 | const NOVEMBER = 11;
88 | /**
89 | * The month of December.
90 | *
91 | * Generated from protobuf enum DECEMBER = 12;
92 | */
93 | const DECEMBER = 12;
94 |
95 | private static $valueToName = [
96 | self::MONTH_UNSPECIFIED => 'MONTH_UNSPECIFIED',
97 | self::JANUARY => 'JANUARY',
98 | self::FEBRUARY => 'FEBRUARY',
99 | self::MARCH => 'MARCH',
100 | self::APRIL => 'APRIL',
101 | self::MAY => 'MAY',
102 | self::JUNE => 'JUNE',
103 | self::JULY => 'JULY',
104 | self::AUGUST => 'AUGUST',
105 | self::SEPTEMBER => 'SEPTEMBER',
106 | self::OCTOBER => 'OCTOBER',
107 | self::NOVEMBER => 'NOVEMBER',
108 | self::DECEMBER => 'DECEMBER',
109 | ];
110 |
111 | public static function name($value)
112 | {
113 | if (!isset(self::$valueToName[$value])) {
114 | throw new UnexpectedValueException(sprintf(
115 | 'Enum %s has no name defined for value %s', __CLASS__, $value));
116 | }
117 | return self::$valueToName[$value];
118 | }
119 |
120 |
121 | public static function value($name)
122 | {
123 | $const = __CLASS__ . '::' . strtoupper($name);
124 | if (!defined($const)) {
125 | throw new UnexpectedValueException(sprintf(
126 | 'Enum %s has no value defined for name %s', __CLASS__, $name));
127 | }
128 | return constant($const);
129 | }
130 | }
131 |
132 |
--------------------------------------------------------------------------------
/src/Type/TimeZone.php:
--------------------------------------------------------------------------------
1 | google.type.TimeZone
16 | */
17 | class TimeZone extends \Google\Protobuf\Internal\Message
18 | {
19 | /**
20 | * IANA Time Zone Database time zone, e.g. "America/New_York".
21 | *
22 | * Generated from protobuf field string id = 1;
23 | */
24 | protected $id = '';
25 | /**
26 | * Optional. IANA Time Zone Database version number, e.g. "2019a".
27 | *
28 | * Generated from protobuf field string version = 2;
29 | */
30 | protected $version = '';
31 |
32 | /**
33 | * Constructor.
34 | *
35 | * @param array $data {
36 | * Optional. Data for populating the Message object.
37 | *
38 | * @type string $id
39 | * IANA Time Zone Database time zone, e.g. "America/New_York".
40 | * @type string $version
41 | * Optional. IANA Time Zone Database version number, e.g. "2019a".
42 | * }
43 | */
44 | public function __construct($data = NULL) {
45 | \GPBMetadata\Google\Type\Datetime::initOnce();
46 | parent::__construct($data);
47 | }
48 |
49 | /**
50 | * IANA Time Zone Database time zone, e.g. "America/New_York".
51 | *
52 | * Generated from protobuf field string id = 1;
53 | * @return string
54 | */
55 | public function getId()
56 | {
57 | return $this->id;
58 | }
59 |
60 | /**
61 | * IANA Time Zone Database time zone, e.g. "America/New_York".
62 | *
63 | * Generated from protobuf field string id = 1;
64 | * @param string $var
65 | * @return $this
66 | */
67 | public function setId($var)
68 | {
69 | GPBUtil::checkString($var, True);
70 | $this->id = $var;
71 |
72 | return $this;
73 | }
74 |
75 | /**
76 | * Optional. IANA Time Zone Database version number, e.g. "2019a".
77 | *
78 | * Generated from protobuf field string version = 2;
79 | * @return string
80 | */
81 | public function getVersion()
82 | {
83 | return $this->version;
84 | }
85 |
86 | /**
87 | * Optional. IANA Time Zone Database version number, e.g. "2019a".
88 | *
89 | * Generated from protobuf field string version = 2;
90 | * @param string $var
91 | * @return $this
92 | */
93 | public function setVersion($var)
94 | {
95 | GPBUtil::checkString($var, True);
96 | $this->version = $var;
97 |
98 | return $this;
99 | }
100 |
101 | }
102 |
103 |
--------------------------------------------------------------------------------