feat: add S3-compatible storage provider (MinIO, Ceph, R2, etc.)
Adds a new 'S3-Compatible Storage' provider that works with any
S3-API-compatible object storage service, including MinIO, Ceph,
Cloudflare R2, Backblaze B2, and others.
Changes:
- New provider class: classes/providers/storage/s3-compatible-provider.php
- Provider key: s3compatible
- Reads user-configured endpoint URL from settings
- Uses path-style URL access (required by most S3-compatible services)
- Supports credentials via AS3CF_S3COMPAT_ACCESS_KEY_ID /
AS3CF_S3COMPAT_SECRET_ACCESS_KEY wp-config.php constants
- Disables AWS-specific features (Block Public Access, Object Ownership)
- New provider SVG icons (s3compatible.svg, -link.svg, -round.svg)
- Registered provider in main plugin class with endpoint setting support
- Updated StorageProviderSubPage to show endpoint URL input for S3-compatible
- Built pro settings bundle with rollup (Svelte 4.2.19)
- Added package.json and updated rollup.config.mjs for pro-only builds
This commit is contained in:
66
vendor/Gcp/google/common-protos/src/Api/Advice.php
vendored
Normal file
66
vendor/Gcp/google/common-protos/src/Api/Advice.php
vendored
Normal file
@@ -0,0 +1,66 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/config_change.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* Generated advice about this change, used for providing more
|
||||
* information about how a change will affect the existing service.
|
||||
*
|
||||
* Generated from protobuf message <code>google.api.Advice</code>
|
||||
*/
|
||||
class Advice extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* Useful description for why this advice was applied and what actions should
|
||||
* be taken to mitigate any implied risks.
|
||||
*
|
||||
* Generated from protobuf field <code>string description = 2;</code>
|
||||
*/
|
||||
protected $description = '';
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type string $description
|
||||
* Useful description for why this advice was applied and what actions should
|
||||
* be taken to mitigate any implied risks.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Api\ConfigChange::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* Useful description for why this advice was applied and what actions should
|
||||
* be taken to mitigate any implied risks.
|
||||
*
|
||||
* Generated from protobuf field <code>string description = 2;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getDescription()
|
||||
{
|
||||
return $this->description;
|
||||
}
|
||||
/**
|
||||
* Useful description for why this advice was applied and what actions should
|
||||
* be taken to mitigate any implied risks.
|
||||
*
|
||||
* Generated from protobuf field <code>string description = 2;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setDescription($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->description = $var;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
398
vendor/Gcp/google/common-protos/src/Api/AuthProvider.php
vendored
Normal file
398
vendor/Gcp/google/common-protos/src/Api/AuthProvider.php
vendored
Normal file
@@ -0,0 +1,398 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/auth.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* Configuration for an authentication provider, including support for
|
||||
* [JSON Web Token
|
||||
* (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32).
|
||||
*
|
||||
* Generated from protobuf message <code>google.api.AuthProvider</code>
|
||||
*/
|
||||
class AuthProvider extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* The unique identifier of the auth provider. It will be referred to by
|
||||
* `AuthRequirement.provider_id`.
|
||||
* Example: "bookstore_auth".
|
||||
*
|
||||
* Generated from protobuf field <code>string id = 1;</code>
|
||||
*/
|
||||
protected $id = '';
|
||||
/**
|
||||
* Identifies the principal that issued the JWT. See
|
||||
* https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1
|
||||
* Usually a URL or an email address.
|
||||
* Example: https://securetoken.google.com
|
||||
* Example: 1234567-compute@developer.gserviceaccount.com
|
||||
*
|
||||
* Generated from protobuf field <code>string issuer = 2;</code>
|
||||
*/
|
||||
protected $issuer = '';
|
||||
/**
|
||||
* URL of the provider's public key set to validate signature of the JWT. See
|
||||
* [OpenID
|
||||
* Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata).
|
||||
* Optional if the key set document:
|
||||
* - can be retrieved from
|
||||
* [OpenID
|
||||
* Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html)
|
||||
* of the issuer.
|
||||
* - can be inferred from the email domain of the issuer (e.g. a Google
|
||||
* service account).
|
||||
* Example: https://www.googleapis.com/oauth2/v1/certs
|
||||
*
|
||||
* Generated from protobuf field <code>string jwks_uri = 3;</code>
|
||||
*/
|
||||
protected $jwks_uri = '';
|
||||
/**
|
||||
* The list of JWT
|
||||
* [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
|
||||
* that are allowed to access. A JWT containing any of these audiences will
|
||||
* be accepted. When this setting is absent, JWTs with audiences:
|
||||
* - "https://[service.name]/[google.protobuf.Api.name]"
|
||||
* - "https://[service.name]/"
|
||||
* will be accepted.
|
||||
* For example, if no audiences are in the setting, LibraryService API will
|
||||
* accept JWTs with the following audiences:
|
||||
* -
|
||||
* https://library-example.googleapis.com/google.example.library.v1.LibraryService
|
||||
* - https://library-example.googleapis.com/
|
||||
* Example:
|
||||
* audiences: bookstore_android.apps.googleusercontent.com,
|
||||
* bookstore_web.apps.googleusercontent.com
|
||||
*
|
||||
* Generated from protobuf field <code>string audiences = 4;</code>
|
||||
*/
|
||||
protected $audiences = '';
|
||||
/**
|
||||
* Redirect URL if JWT token is required but not present or is expired.
|
||||
* Implement authorizationUrl of securityDefinitions in OpenAPI spec.
|
||||
*
|
||||
* Generated from protobuf field <code>string authorization_url = 5;</code>
|
||||
*/
|
||||
protected $authorization_url = '';
|
||||
/**
|
||||
* Defines the locations to extract the JWT. For now it is only used by the
|
||||
* Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations]
|
||||
* (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations)
|
||||
* JWT locations can be one of HTTP headers, URL query parameters or
|
||||
* cookies. The rule is that the first match wins.
|
||||
* If not specified, default to use following 3 locations:
|
||||
* 1) Authorization: Bearer
|
||||
* 2) x-goog-iap-jwt-assertion
|
||||
* 3) access_token query parameter
|
||||
* Default locations can be specified as followings:
|
||||
* jwt_locations:
|
||||
* - header: Authorization
|
||||
* value_prefix: "Bearer "
|
||||
* - header: x-goog-iap-jwt-assertion
|
||||
* - query: access_token
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.JwtLocation jwt_locations = 6;</code>
|
||||
*/
|
||||
private $jwt_locations;
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type string $id
|
||||
* The unique identifier of the auth provider. It will be referred to by
|
||||
* `AuthRequirement.provider_id`.
|
||||
* Example: "bookstore_auth".
|
||||
* @type string $issuer
|
||||
* Identifies the principal that issued the JWT. See
|
||||
* https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1
|
||||
* Usually a URL or an email address.
|
||||
* Example: https://securetoken.google.com
|
||||
* Example: 1234567-compute@developer.gserviceaccount.com
|
||||
* @type string $jwks_uri
|
||||
* URL of the provider's public key set to validate signature of the JWT. See
|
||||
* [OpenID
|
||||
* Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata).
|
||||
* Optional if the key set document:
|
||||
* - can be retrieved from
|
||||
* [OpenID
|
||||
* Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html)
|
||||
* of the issuer.
|
||||
* - can be inferred from the email domain of the issuer (e.g. a Google
|
||||
* service account).
|
||||
* Example: https://www.googleapis.com/oauth2/v1/certs
|
||||
* @type string $audiences
|
||||
* The list of JWT
|
||||
* [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
|
||||
* that are allowed to access. A JWT containing any of these audiences will
|
||||
* be accepted. When this setting is absent, JWTs with audiences:
|
||||
* - "https://[service.name]/[google.protobuf.Api.name]"
|
||||
* - "https://[service.name]/"
|
||||
* will be accepted.
|
||||
* For example, if no audiences are in the setting, LibraryService API will
|
||||
* accept JWTs with the following audiences:
|
||||
* -
|
||||
* https://library-example.googleapis.com/google.example.library.v1.LibraryService
|
||||
* - https://library-example.googleapis.com/
|
||||
* Example:
|
||||
* audiences: bookstore_android.apps.googleusercontent.com,
|
||||
* bookstore_web.apps.googleusercontent.com
|
||||
* @type string $authorization_url
|
||||
* Redirect URL if JWT token is required but not present or is expired.
|
||||
* Implement authorizationUrl of securityDefinitions in OpenAPI spec.
|
||||
* @type array<\Google\Api\JwtLocation>|\Google\Protobuf\Internal\RepeatedField $jwt_locations
|
||||
* Defines the locations to extract the JWT. For now it is only used by the
|
||||
* Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations]
|
||||
* (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations)
|
||||
* JWT locations can be one of HTTP headers, URL query parameters or
|
||||
* cookies. The rule is that the first match wins.
|
||||
* If not specified, default to use following 3 locations:
|
||||
* 1) Authorization: Bearer
|
||||
* 2) x-goog-iap-jwt-assertion
|
||||
* 3) access_token query parameter
|
||||
* Default locations can be specified as followings:
|
||||
* jwt_locations:
|
||||
* - header: Authorization
|
||||
* value_prefix: "Bearer "
|
||||
* - header: x-goog-iap-jwt-assertion
|
||||
* - query: access_token
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Api\Auth::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* The unique identifier of the auth provider. It will be referred to by
|
||||
* `AuthRequirement.provider_id`.
|
||||
* Example: "bookstore_auth".
|
||||
*
|
||||
* Generated from protobuf field <code>string id = 1;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getId()
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
/**
|
||||
* The unique identifier of the auth provider. It will be referred to by
|
||||
* `AuthRequirement.provider_id`.
|
||||
* Example: "bookstore_auth".
|
||||
*
|
||||
* Generated from protobuf field <code>string id = 1;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setId($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->id = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Identifies the principal that issued the JWT. See
|
||||
* https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1
|
||||
* Usually a URL or an email address.
|
||||
* Example: https://securetoken.google.com
|
||||
* Example: 1234567-compute@developer.gserviceaccount.com
|
||||
*
|
||||
* Generated from protobuf field <code>string issuer = 2;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getIssuer()
|
||||
{
|
||||
return $this->issuer;
|
||||
}
|
||||
/**
|
||||
* Identifies the principal that issued the JWT. See
|
||||
* https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1
|
||||
* Usually a URL or an email address.
|
||||
* Example: https://securetoken.google.com
|
||||
* Example: 1234567-compute@developer.gserviceaccount.com
|
||||
*
|
||||
* Generated from protobuf field <code>string issuer = 2;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setIssuer($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->issuer = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* URL of the provider's public key set to validate signature of the JWT. See
|
||||
* [OpenID
|
||||
* Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata).
|
||||
* Optional if the key set document:
|
||||
* - can be retrieved from
|
||||
* [OpenID
|
||||
* Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html)
|
||||
* of the issuer.
|
||||
* - can be inferred from the email domain of the issuer (e.g. a Google
|
||||
* service account).
|
||||
* Example: https://www.googleapis.com/oauth2/v1/certs
|
||||
*
|
||||
* Generated from protobuf field <code>string jwks_uri = 3;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getJwksUri()
|
||||
{
|
||||
return $this->jwks_uri;
|
||||
}
|
||||
/**
|
||||
* URL of the provider's public key set to validate signature of the JWT. See
|
||||
* [OpenID
|
||||
* Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata).
|
||||
* Optional if the key set document:
|
||||
* - can be retrieved from
|
||||
* [OpenID
|
||||
* Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html)
|
||||
* of the issuer.
|
||||
* - can be inferred from the email domain of the issuer (e.g. a Google
|
||||
* service account).
|
||||
* Example: https://www.googleapis.com/oauth2/v1/certs
|
||||
*
|
||||
* Generated from protobuf field <code>string jwks_uri = 3;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setJwksUri($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->jwks_uri = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* The list of JWT
|
||||
* [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
|
||||
* that are allowed to access. A JWT containing any of these audiences will
|
||||
* be accepted. When this setting is absent, JWTs with audiences:
|
||||
* - "https://[service.name]/[google.protobuf.Api.name]"
|
||||
* - "https://[service.name]/"
|
||||
* will be accepted.
|
||||
* For example, if no audiences are in the setting, LibraryService API will
|
||||
* accept JWTs with the following audiences:
|
||||
* -
|
||||
* https://library-example.googleapis.com/google.example.library.v1.LibraryService
|
||||
* - https://library-example.googleapis.com/
|
||||
* Example:
|
||||
* audiences: bookstore_android.apps.googleusercontent.com,
|
||||
* bookstore_web.apps.googleusercontent.com
|
||||
*
|
||||
* Generated from protobuf field <code>string audiences = 4;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getAudiences()
|
||||
{
|
||||
return $this->audiences;
|
||||
}
|
||||
/**
|
||||
* The list of JWT
|
||||
* [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
|
||||
* that are allowed to access. A JWT containing any of these audiences will
|
||||
* be accepted. When this setting is absent, JWTs with audiences:
|
||||
* - "https://[service.name]/[google.protobuf.Api.name]"
|
||||
* - "https://[service.name]/"
|
||||
* will be accepted.
|
||||
* For example, if no audiences are in the setting, LibraryService API will
|
||||
* accept JWTs with the following audiences:
|
||||
* -
|
||||
* https://library-example.googleapis.com/google.example.library.v1.LibraryService
|
||||
* - https://library-example.googleapis.com/
|
||||
* Example:
|
||||
* audiences: bookstore_android.apps.googleusercontent.com,
|
||||
* bookstore_web.apps.googleusercontent.com
|
||||
*
|
||||
* Generated from protobuf field <code>string audiences = 4;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setAudiences($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->audiences = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Redirect URL if JWT token is required but not present or is expired.
|
||||
* Implement authorizationUrl of securityDefinitions in OpenAPI spec.
|
||||
*
|
||||
* Generated from protobuf field <code>string authorization_url = 5;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getAuthorizationUrl()
|
||||
{
|
||||
return $this->authorization_url;
|
||||
}
|
||||
/**
|
||||
* Redirect URL if JWT token is required but not present or is expired.
|
||||
* Implement authorizationUrl of securityDefinitions in OpenAPI spec.
|
||||
*
|
||||
* Generated from protobuf field <code>string authorization_url = 5;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setAuthorizationUrl($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->authorization_url = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Defines the locations to extract the JWT. For now it is only used by the
|
||||
* Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations]
|
||||
* (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations)
|
||||
* JWT locations can be one of HTTP headers, URL query parameters or
|
||||
* cookies. The rule is that the first match wins.
|
||||
* If not specified, default to use following 3 locations:
|
||||
* 1) Authorization: Bearer
|
||||
* 2) x-goog-iap-jwt-assertion
|
||||
* 3) access_token query parameter
|
||||
* Default locations can be specified as followings:
|
||||
* jwt_locations:
|
||||
* - header: Authorization
|
||||
* value_prefix: "Bearer "
|
||||
* - header: x-goog-iap-jwt-assertion
|
||||
* - query: access_token
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.JwtLocation jwt_locations = 6;</code>
|
||||
* @return \Google\Protobuf\Internal\RepeatedField
|
||||
*/
|
||||
public function getJwtLocations()
|
||||
{
|
||||
return $this->jwt_locations;
|
||||
}
|
||||
/**
|
||||
* Defines the locations to extract the JWT. For now it is only used by the
|
||||
* Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations]
|
||||
* (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations)
|
||||
* JWT locations can be one of HTTP headers, URL query parameters or
|
||||
* cookies. The rule is that the first match wins.
|
||||
* If not specified, default to use following 3 locations:
|
||||
* 1) Authorization: Bearer
|
||||
* 2) x-goog-iap-jwt-assertion
|
||||
* 3) access_token query parameter
|
||||
* Default locations can be specified as followings:
|
||||
* jwt_locations:
|
||||
* - header: Authorization
|
||||
* value_prefix: "Bearer "
|
||||
* - header: x-goog-iap-jwt-assertion
|
||||
* - query: access_token
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.JwtLocation jwt_locations = 6;</code>
|
||||
* @param array<\Google\Api\JwtLocation>|\Google\Protobuf\Internal\RepeatedField $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setJwtLocations($var)
|
||||
{
|
||||
$arr = GPBUtil::checkRepeatedField($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::MESSAGE, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\JwtLocation::class);
|
||||
$this->jwt_locations = $arr;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
150
vendor/Gcp/google/common-protos/src/Api/AuthRequirement.php
vendored
Normal file
150
vendor/Gcp/google/common-protos/src/Api/AuthRequirement.php
vendored
Normal file
@@ -0,0 +1,150 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/auth.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* User-defined authentication requirements, including support for
|
||||
* [JSON Web Token
|
||||
* (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32).
|
||||
*
|
||||
* Generated from protobuf message <code>google.api.AuthRequirement</code>
|
||||
*/
|
||||
class AuthRequirement extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* [id][google.api.AuthProvider.id] from authentication provider.
|
||||
* Example:
|
||||
* provider_id: bookstore_auth
|
||||
*
|
||||
* Generated from protobuf field <code>string provider_id = 1;</code>
|
||||
*/
|
||||
protected $provider_id = '';
|
||||
/**
|
||||
* NOTE: This will be deprecated soon, once AuthProvider.audiences is
|
||||
* implemented and accepted in all the runtime components.
|
||||
* The list of JWT
|
||||
* [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
|
||||
* that are allowed to access. A JWT containing any of these audiences will
|
||||
* be accepted. When this setting is absent, only JWTs with audience
|
||||
* "https://[Service_name][google.api.Service.name]/[API_name][google.protobuf.Api.name]"
|
||||
* will be accepted. For example, if no audiences are in the setting,
|
||||
* LibraryService API will only accept JWTs with the following audience
|
||||
* "https://library-example.googleapis.com/google.example.library.v1.LibraryService".
|
||||
* Example:
|
||||
* audiences: bookstore_android.apps.googleusercontent.com,
|
||||
* bookstore_web.apps.googleusercontent.com
|
||||
*
|
||||
* Generated from protobuf field <code>string audiences = 2;</code>
|
||||
*/
|
||||
protected $audiences = '';
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type string $provider_id
|
||||
* [id][google.api.AuthProvider.id] from authentication provider.
|
||||
* Example:
|
||||
* provider_id: bookstore_auth
|
||||
* @type string $audiences
|
||||
* NOTE: This will be deprecated soon, once AuthProvider.audiences is
|
||||
* implemented and accepted in all the runtime components.
|
||||
* The list of JWT
|
||||
* [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
|
||||
* that are allowed to access. A JWT containing any of these audiences will
|
||||
* be accepted. When this setting is absent, only JWTs with audience
|
||||
* "https://[Service_name][google.api.Service.name]/[API_name][google.protobuf.Api.name]"
|
||||
* will be accepted. For example, if no audiences are in the setting,
|
||||
* LibraryService API will only accept JWTs with the following audience
|
||||
* "https://library-example.googleapis.com/google.example.library.v1.LibraryService".
|
||||
* Example:
|
||||
* audiences: bookstore_android.apps.googleusercontent.com,
|
||||
* bookstore_web.apps.googleusercontent.com
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Api\Auth::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* [id][google.api.AuthProvider.id] from authentication provider.
|
||||
* Example:
|
||||
* provider_id: bookstore_auth
|
||||
*
|
||||
* Generated from protobuf field <code>string provider_id = 1;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getProviderId()
|
||||
{
|
||||
return $this->provider_id;
|
||||
}
|
||||
/**
|
||||
* [id][google.api.AuthProvider.id] from authentication provider.
|
||||
* Example:
|
||||
* provider_id: bookstore_auth
|
||||
*
|
||||
* Generated from protobuf field <code>string provider_id = 1;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setProviderId($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->provider_id = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* NOTE: This will be deprecated soon, once AuthProvider.audiences is
|
||||
* implemented and accepted in all the runtime components.
|
||||
* The list of JWT
|
||||
* [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
|
||||
* that are allowed to access. A JWT containing any of these audiences will
|
||||
* be accepted. When this setting is absent, only JWTs with audience
|
||||
* "https://[Service_name][google.api.Service.name]/[API_name][google.protobuf.Api.name]"
|
||||
* will be accepted. For example, if no audiences are in the setting,
|
||||
* LibraryService API will only accept JWTs with the following audience
|
||||
* "https://library-example.googleapis.com/google.example.library.v1.LibraryService".
|
||||
* Example:
|
||||
* audiences: bookstore_android.apps.googleusercontent.com,
|
||||
* bookstore_web.apps.googleusercontent.com
|
||||
*
|
||||
* Generated from protobuf field <code>string audiences = 2;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getAudiences()
|
||||
{
|
||||
return $this->audiences;
|
||||
}
|
||||
/**
|
||||
* NOTE: This will be deprecated soon, once AuthProvider.audiences is
|
||||
* implemented and accepted in all the runtime components.
|
||||
* The list of JWT
|
||||
* [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
|
||||
* that are allowed to access. A JWT containing any of these audiences will
|
||||
* be accepted. When this setting is absent, only JWTs with audience
|
||||
* "https://[Service_name][google.api.Service.name]/[API_name][google.protobuf.Api.name]"
|
||||
* will be accepted. For example, if no audiences are in the setting,
|
||||
* LibraryService API will only accept JWTs with the following audience
|
||||
* "https://library-example.googleapis.com/google.example.library.v1.LibraryService".
|
||||
* Example:
|
||||
* audiences: bookstore_android.apps.googleusercontent.com,
|
||||
* bookstore_web.apps.googleusercontent.com
|
||||
*
|
||||
* Generated from protobuf field <code>string audiences = 2;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setAudiences($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->audiences = $var;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
111
vendor/Gcp/google/common-protos/src/Api/Authentication.php
vendored
Normal file
111
vendor/Gcp/google/common-protos/src/Api/Authentication.php
vendored
Normal file
@@ -0,0 +1,111 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/auth.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* `Authentication` defines the authentication configuration for API methods
|
||||
* provided by an API service.
|
||||
* Example:
|
||||
* name: calendar.googleapis.com
|
||||
* authentication:
|
||||
* providers:
|
||||
* - id: google_calendar_auth
|
||||
* jwks_uri: https://www.googleapis.com/oauth2/v1/certs
|
||||
* issuer: https://securetoken.google.com
|
||||
* rules:
|
||||
* - selector: "*"
|
||||
* requirements:
|
||||
* provider_id: google_calendar_auth
|
||||
* - selector: google.calendar.Delegate
|
||||
* oauth:
|
||||
* canonical_scopes: https://www.googleapis.com/auth/calendar.read
|
||||
*
|
||||
* Generated from protobuf message <code>google.api.Authentication</code>
|
||||
*/
|
||||
class Authentication extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* A list of authentication rules that apply to individual API methods.
|
||||
* **NOTE:** All service configuration rules follow "last one wins" order.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.AuthenticationRule rules = 3;</code>
|
||||
*/
|
||||
private $rules;
|
||||
/**
|
||||
* Defines a set of authentication providers that a service supports.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.AuthProvider providers = 4;</code>
|
||||
*/
|
||||
private $providers;
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type array<\Google\Api\AuthenticationRule>|\Google\Protobuf\Internal\RepeatedField $rules
|
||||
* A list of authentication rules that apply to individual API methods.
|
||||
* **NOTE:** All service configuration rules follow "last one wins" order.
|
||||
* @type array<\Google\Api\AuthProvider>|\Google\Protobuf\Internal\RepeatedField $providers
|
||||
* Defines a set of authentication providers that a service supports.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Api\Auth::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* A list of authentication rules that apply to individual API methods.
|
||||
* **NOTE:** All service configuration rules follow "last one wins" order.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.AuthenticationRule rules = 3;</code>
|
||||
* @return \Google\Protobuf\Internal\RepeatedField
|
||||
*/
|
||||
public function getRules()
|
||||
{
|
||||
return $this->rules;
|
||||
}
|
||||
/**
|
||||
* A list of authentication rules that apply to individual API methods.
|
||||
* **NOTE:** All service configuration rules follow "last one wins" order.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.AuthenticationRule rules = 3;</code>
|
||||
* @param array<\Google\Api\AuthenticationRule>|\Google\Protobuf\Internal\RepeatedField $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setRules($var)
|
||||
{
|
||||
$arr = GPBUtil::checkRepeatedField($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::MESSAGE, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\AuthenticationRule::class);
|
||||
$this->rules = $arr;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Defines a set of authentication providers that a service supports.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.AuthProvider providers = 4;</code>
|
||||
* @return \Google\Protobuf\Internal\RepeatedField
|
||||
*/
|
||||
public function getProviders()
|
||||
{
|
||||
return $this->providers;
|
||||
}
|
||||
/**
|
||||
* Defines a set of authentication providers that a service supports.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.AuthProvider providers = 4;</code>
|
||||
* @param array<\Google\Api\AuthProvider>|\Google\Protobuf\Internal\RepeatedField $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setProviders($var)
|
||||
{
|
||||
$arr = GPBUtil::checkRepeatedField($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::MESSAGE, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\AuthProvider::class);
|
||||
$this->providers = $arr;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
180
vendor/Gcp/google/common-protos/src/Api/AuthenticationRule.php
vendored
Normal file
180
vendor/Gcp/google/common-protos/src/Api/AuthenticationRule.php
vendored
Normal file
@@ -0,0 +1,180 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/auth.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* Authentication rules for the service.
|
||||
* By default, if a method has any authentication requirements, every request
|
||||
* must include a valid credential matching one of the requirements.
|
||||
* It's an error to include more than one kind of credential in a single
|
||||
* request.
|
||||
* If a method doesn't have any auth requirements, request credentials will be
|
||||
* ignored.
|
||||
*
|
||||
* Generated from protobuf message <code>google.api.AuthenticationRule</code>
|
||||
*/
|
||||
class AuthenticationRule extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* Selects the methods to which this rule applies.
|
||||
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
|
||||
* details.
|
||||
*
|
||||
* Generated from protobuf field <code>string selector = 1;</code>
|
||||
*/
|
||||
protected $selector = '';
|
||||
/**
|
||||
* The requirements for OAuth credentials.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.OAuthRequirements oauth = 2;</code>
|
||||
*/
|
||||
protected $oauth = null;
|
||||
/**
|
||||
* If true, the service accepts API keys without any other credential.
|
||||
* This flag only applies to HTTP and gRPC requests.
|
||||
*
|
||||
* Generated from protobuf field <code>bool allow_without_credential = 5;</code>
|
||||
*/
|
||||
protected $allow_without_credential = \false;
|
||||
/**
|
||||
* Requirements for additional authentication providers.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.AuthRequirement requirements = 7;</code>
|
||||
*/
|
||||
private $requirements;
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type string $selector
|
||||
* Selects the methods to which this rule applies.
|
||||
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
|
||||
* details.
|
||||
* @type \Google\Api\OAuthRequirements $oauth
|
||||
* The requirements for OAuth credentials.
|
||||
* @type bool $allow_without_credential
|
||||
* If true, the service accepts API keys without any other credential.
|
||||
* This flag only applies to HTTP and gRPC requests.
|
||||
* @type array<\Google\Api\AuthRequirement>|\Google\Protobuf\Internal\RepeatedField $requirements
|
||||
* Requirements for additional authentication providers.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Api\Auth::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* Selects the methods to which this rule applies.
|
||||
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
|
||||
* details.
|
||||
*
|
||||
* Generated from protobuf field <code>string selector = 1;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getSelector()
|
||||
{
|
||||
return $this->selector;
|
||||
}
|
||||
/**
|
||||
* Selects the methods to which this rule applies.
|
||||
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
|
||||
* details.
|
||||
*
|
||||
* Generated from protobuf field <code>string selector = 1;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setSelector($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->selector = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* The requirements for OAuth credentials.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.OAuthRequirements oauth = 2;</code>
|
||||
* @return \Google\Api\OAuthRequirements|null
|
||||
*/
|
||||
public function getOauth()
|
||||
{
|
||||
return $this->oauth;
|
||||
}
|
||||
public function hasOauth()
|
||||
{
|
||||
return isset($this->oauth);
|
||||
}
|
||||
public function clearOauth()
|
||||
{
|
||||
unset($this->oauth);
|
||||
}
|
||||
/**
|
||||
* The requirements for OAuth credentials.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.OAuthRequirements oauth = 2;</code>
|
||||
* @param \Google\Api\OAuthRequirements $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setOauth($var)
|
||||
{
|
||||
GPBUtil::checkMessage($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\OAuthRequirements::class);
|
||||
$this->oauth = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* If true, the service accepts API keys without any other credential.
|
||||
* This flag only applies to HTTP and gRPC requests.
|
||||
*
|
||||
* Generated from protobuf field <code>bool allow_without_credential = 5;</code>
|
||||
* @return bool
|
||||
*/
|
||||
public function getAllowWithoutCredential()
|
||||
{
|
||||
return $this->allow_without_credential;
|
||||
}
|
||||
/**
|
||||
* If true, the service accepts API keys without any other credential.
|
||||
* This flag only applies to HTTP and gRPC requests.
|
||||
*
|
||||
* Generated from protobuf field <code>bool allow_without_credential = 5;</code>
|
||||
* @param bool $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setAllowWithoutCredential($var)
|
||||
{
|
||||
GPBUtil::checkBool($var);
|
||||
$this->allow_without_credential = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Requirements for additional authentication providers.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.AuthRequirement requirements = 7;</code>
|
||||
* @return \Google\Protobuf\Internal\RepeatedField
|
||||
*/
|
||||
public function getRequirements()
|
||||
{
|
||||
return $this->requirements;
|
||||
}
|
||||
/**
|
||||
* Requirements for additional authentication providers.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.AuthRequirement requirements = 7;</code>
|
||||
* @param array<\Google\Api\AuthRequirement>|\Google\Protobuf\Internal\RepeatedField $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setRequirements($var)
|
||||
{
|
||||
$arr = GPBUtil::checkRepeatedField($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::MESSAGE, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\AuthRequirement::class);
|
||||
$this->requirements = $arr;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
65
vendor/Gcp/google/common-protos/src/Api/Backend.php
vendored
Normal file
65
vendor/Gcp/google/common-protos/src/Api/Backend.php
vendored
Normal file
@@ -0,0 +1,65 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/backend.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* `Backend` defines the backend configuration for a service.
|
||||
*
|
||||
* Generated from protobuf message <code>google.api.Backend</code>
|
||||
*/
|
||||
class Backend extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* A list of API backend rules that apply to individual API methods.
|
||||
* **NOTE:** All service configuration rules follow "last one wins" order.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.BackendRule rules = 1;</code>
|
||||
*/
|
||||
private $rules;
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type array<\Google\Api\BackendRule>|\Google\Protobuf\Internal\RepeatedField $rules
|
||||
* A list of API backend rules that apply to individual API methods.
|
||||
* **NOTE:** All service configuration rules follow "last one wins" order.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Api\Backend::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* A list of API backend rules that apply to individual API methods.
|
||||
* **NOTE:** All service configuration rules follow "last one wins" order.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.BackendRule rules = 1;</code>
|
||||
* @return \Google\Protobuf\Internal\RepeatedField
|
||||
*/
|
||||
public function getRules()
|
||||
{
|
||||
return $this->rules;
|
||||
}
|
||||
/**
|
||||
* A list of API backend rules that apply to individual API methods.
|
||||
* **NOTE:** All service configuration rules follow "last one wins" order.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.BackendRule rules = 1;</code>
|
||||
* @param array<\Google\Api\BackendRule>|\Google\Protobuf\Internal\RepeatedField $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setRules($var)
|
||||
{
|
||||
$arr = GPBUtil::checkRepeatedField($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::MESSAGE, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\BackendRule::class);
|
||||
$this->rules = $arr;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
489
vendor/Gcp/google/common-protos/src/Api/BackendRule.php
vendored
Normal file
489
vendor/Gcp/google/common-protos/src/Api/BackendRule.php
vendored
Normal file
@@ -0,0 +1,489 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/backend.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* A backend rule provides configuration for an individual API element.
|
||||
*
|
||||
* Generated from protobuf message <code>google.api.BackendRule</code>
|
||||
*/
|
||||
class BackendRule extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* Selects the methods to which this rule applies.
|
||||
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
|
||||
* details.
|
||||
*
|
||||
* Generated from protobuf field <code>string selector = 1;</code>
|
||||
*/
|
||||
protected $selector = '';
|
||||
/**
|
||||
* The address of the API backend.
|
||||
* The scheme is used to determine the backend protocol and security.
|
||||
* The following schemes are accepted:
|
||||
* SCHEME PROTOCOL SECURITY
|
||||
* http:// HTTP None
|
||||
* https:// HTTP TLS
|
||||
* grpc:// gRPC None
|
||||
* grpcs:// gRPC TLS
|
||||
* It is recommended to explicitly include a scheme. Leaving out the scheme
|
||||
* may cause constrasting behaviors across platforms.
|
||||
* If the port is unspecified, the default is:
|
||||
* - 80 for schemes without TLS
|
||||
* - 443 for schemes with TLS
|
||||
* For HTTP backends, use [protocol][google.api.BackendRule.protocol]
|
||||
* to specify the protocol version.
|
||||
*
|
||||
* Generated from protobuf field <code>string address = 2;</code>
|
||||
*/
|
||||
protected $address = '';
|
||||
/**
|
||||
* The number of seconds to wait for a response from a request. The default
|
||||
* varies based on the request protocol and deployment environment.
|
||||
*
|
||||
* Generated from protobuf field <code>double deadline = 3;</code>
|
||||
*/
|
||||
protected $deadline = 0.0;
|
||||
/**
|
||||
* Deprecated, do not use.
|
||||
*
|
||||
* Generated from protobuf field <code>double min_deadline = 4 [deprecated = true];</code>
|
||||
* @deprecated
|
||||
*/
|
||||
protected $min_deadline = 0.0;
|
||||
/**
|
||||
* The number of seconds to wait for the completion of a long running
|
||||
* operation. The default is no deadline.
|
||||
*
|
||||
* Generated from protobuf field <code>double operation_deadline = 5;</code>
|
||||
*/
|
||||
protected $operation_deadline = 0.0;
|
||||
/**
|
||||
* Generated from protobuf field <code>.google.api.BackendRule.PathTranslation path_translation = 6;</code>
|
||||
*/
|
||||
protected $path_translation = 0;
|
||||
/**
|
||||
* The protocol used for sending a request to the backend.
|
||||
* The supported values are "http/1.1" and "h2".
|
||||
* The default value is inferred from the scheme in the
|
||||
* [address][google.api.BackendRule.address] field:
|
||||
* SCHEME PROTOCOL
|
||||
* http:// http/1.1
|
||||
* https:// http/1.1
|
||||
* grpc:// h2
|
||||
* grpcs:// h2
|
||||
* For secure HTTP backends (https://) that support HTTP/2, set this field
|
||||
* to "h2" for improved performance.
|
||||
* Configuring this field to non-default values is only supported for secure
|
||||
* HTTP backends. This field will be ignored for all other backends.
|
||||
* See
|
||||
* https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
|
||||
* for more details on the supported values.
|
||||
*
|
||||
* Generated from protobuf field <code>string protocol = 9;</code>
|
||||
*/
|
||||
protected $protocol = '';
|
||||
/**
|
||||
* The map between request protocol and the backend address.
|
||||
*
|
||||
* Generated from protobuf field <code>map<string, .google.api.BackendRule> overrides_by_request_protocol = 10;</code>
|
||||
*/
|
||||
private $overrides_by_request_protocol;
|
||||
protected $authentication;
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type string $selector
|
||||
* Selects the methods to which this rule applies.
|
||||
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
|
||||
* details.
|
||||
* @type string $address
|
||||
* The address of the API backend.
|
||||
* The scheme is used to determine the backend protocol and security.
|
||||
* The following schemes are accepted:
|
||||
* SCHEME PROTOCOL SECURITY
|
||||
* http:// HTTP None
|
||||
* https:// HTTP TLS
|
||||
* grpc:// gRPC None
|
||||
* grpcs:// gRPC TLS
|
||||
* It is recommended to explicitly include a scheme. Leaving out the scheme
|
||||
* may cause constrasting behaviors across platforms.
|
||||
* If the port is unspecified, the default is:
|
||||
* - 80 for schemes without TLS
|
||||
* - 443 for schemes with TLS
|
||||
* For HTTP backends, use [protocol][google.api.BackendRule.protocol]
|
||||
* to specify the protocol version.
|
||||
* @type float $deadline
|
||||
* The number of seconds to wait for a response from a request. The default
|
||||
* varies based on the request protocol and deployment environment.
|
||||
* @type float $min_deadline
|
||||
* Deprecated, do not use.
|
||||
* @type float $operation_deadline
|
||||
* The number of seconds to wait for the completion of a long running
|
||||
* operation. The default is no deadline.
|
||||
* @type int $path_translation
|
||||
* @type string $jwt_audience
|
||||
* The JWT audience is used when generating a JWT ID token for the backend.
|
||||
* This ID token will be added in the HTTP "authorization" header, and sent
|
||||
* to the backend.
|
||||
* @type bool $disable_auth
|
||||
* When disable_auth is true, a JWT ID token won't be generated and the
|
||||
* original "Authorization" HTTP header will be preserved. If the header is
|
||||
* used to carry the original token and is expected by the backend, this
|
||||
* field must be set to true to preserve the header.
|
||||
* @type string $protocol
|
||||
* The protocol used for sending a request to the backend.
|
||||
* The supported values are "http/1.1" and "h2".
|
||||
* The default value is inferred from the scheme in the
|
||||
* [address][google.api.BackendRule.address] field:
|
||||
* SCHEME PROTOCOL
|
||||
* http:// http/1.1
|
||||
* https:// http/1.1
|
||||
* grpc:// h2
|
||||
* grpcs:// h2
|
||||
* For secure HTTP backends (https://) that support HTTP/2, set this field
|
||||
* to "h2" for improved performance.
|
||||
* Configuring this field to non-default values is only supported for secure
|
||||
* HTTP backends. This field will be ignored for all other backends.
|
||||
* See
|
||||
* https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
|
||||
* for more details on the supported values.
|
||||
* @type array|\Google\Protobuf\Internal\MapField $overrides_by_request_protocol
|
||||
* The map between request protocol and the backend address.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Api\Backend::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* Selects the methods to which this rule applies.
|
||||
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
|
||||
* details.
|
||||
*
|
||||
* Generated from protobuf field <code>string selector = 1;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getSelector()
|
||||
{
|
||||
return $this->selector;
|
||||
}
|
||||
/**
|
||||
* Selects the methods to which this rule applies.
|
||||
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
|
||||
* details.
|
||||
*
|
||||
* Generated from protobuf field <code>string selector = 1;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setSelector($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->selector = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* The address of the API backend.
|
||||
* The scheme is used to determine the backend protocol and security.
|
||||
* The following schemes are accepted:
|
||||
* SCHEME PROTOCOL SECURITY
|
||||
* http:// HTTP None
|
||||
* https:// HTTP TLS
|
||||
* grpc:// gRPC None
|
||||
* grpcs:// gRPC TLS
|
||||
* It is recommended to explicitly include a scheme. Leaving out the scheme
|
||||
* may cause constrasting behaviors across platforms.
|
||||
* If the port is unspecified, the default is:
|
||||
* - 80 for schemes without TLS
|
||||
* - 443 for schemes with TLS
|
||||
* For HTTP backends, use [protocol][google.api.BackendRule.protocol]
|
||||
* to specify the protocol version.
|
||||
*
|
||||
* Generated from protobuf field <code>string address = 2;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getAddress()
|
||||
{
|
||||
return $this->address;
|
||||
}
|
||||
/**
|
||||
* The address of the API backend.
|
||||
* The scheme is used to determine the backend protocol and security.
|
||||
* The following schemes are accepted:
|
||||
* SCHEME PROTOCOL SECURITY
|
||||
* http:// HTTP None
|
||||
* https:// HTTP TLS
|
||||
* grpc:// gRPC None
|
||||
* grpcs:// gRPC TLS
|
||||
* It is recommended to explicitly include a scheme. Leaving out the scheme
|
||||
* may cause constrasting behaviors across platforms.
|
||||
* If the port is unspecified, the default is:
|
||||
* - 80 for schemes without TLS
|
||||
* - 443 for schemes with TLS
|
||||
* For HTTP backends, use [protocol][google.api.BackendRule.protocol]
|
||||
* to specify the protocol version.
|
||||
*
|
||||
* Generated from protobuf field <code>string address = 2;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setAddress($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->address = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* The number of seconds to wait for a response from a request. The default
|
||||
* varies based on the request protocol and deployment environment.
|
||||
*
|
||||
* Generated from protobuf field <code>double deadline = 3;</code>
|
||||
* @return float
|
||||
*/
|
||||
public function getDeadline()
|
||||
{
|
||||
return $this->deadline;
|
||||
}
|
||||
/**
|
||||
* The number of seconds to wait for a response from a request. The default
|
||||
* varies based on the request protocol and deployment environment.
|
||||
*
|
||||
* Generated from protobuf field <code>double deadline = 3;</code>
|
||||
* @param float $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setDeadline($var)
|
||||
{
|
||||
GPBUtil::checkDouble($var);
|
||||
$this->deadline = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Deprecated, do not use.
|
||||
*
|
||||
* Generated from protobuf field <code>double min_deadline = 4 [deprecated = true];</code>
|
||||
* @return float
|
||||
* @deprecated
|
||||
*/
|
||||
public function getMinDeadline()
|
||||
{
|
||||
@\trigger_error('min_deadline is deprecated.', \E_USER_DEPRECATED);
|
||||
return $this->min_deadline;
|
||||
}
|
||||
/**
|
||||
* Deprecated, do not use.
|
||||
*
|
||||
* Generated from protobuf field <code>double min_deadline = 4 [deprecated = true];</code>
|
||||
* @param float $var
|
||||
* @return $this
|
||||
* @deprecated
|
||||
*/
|
||||
public function setMinDeadline($var)
|
||||
{
|
||||
@\trigger_error('min_deadline is deprecated.', \E_USER_DEPRECATED);
|
||||
GPBUtil::checkDouble($var);
|
||||
$this->min_deadline = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* The number of seconds to wait for the completion of a long running
|
||||
* operation. The default is no deadline.
|
||||
*
|
||||
* Generated from protobuf field <code>double operation_deadline = 5;</code>
|
||||
* @return float
|
||||
*/
|
||||
public function getOperationDeadline()
|
||||
{
|
||||
return $this->operation_deadline;
|
||||
}
|
||||
/**
|
||||
* The number of seconds to wait for the completion of a long running
|
||||
* operation. The default is no deadline.
|
||||
*
|
||||
* Generated from protobuf field <code>double operation_deadline = 5;</code>
|
||||
* @param float $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setOperationDeadline($var)
|
||||
{
|
||||
GPBUtil::checkDouble($var);
|
||||
$this->operation_deadline = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Generated from protobuf field <code>.google.api.BackendRule.PathTranslation path_translation = 6;</code>
|
||||
* @return int
|
||||
*/
|
||||
public function getPathTranslation()
|
||||
{
|
||||
return $this->path_translation;
|
||||
}
|
||||
/**
|
||||
* Generated from protobuf field <code>.google.api.BackendRule.PathTranslation path_translation = 6;</code>
|
||||
* @param int $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setPathTranslation($var)
|
||||
{
|
||||
GPBUtil::checkEnum($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\BackendRule\PathTranslation::class);
|
||||
$this->path_translation = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* The JWT audience is used when generating a JWT ID token for the backend.
|
||||
* This ID token will be added in the HTTP "authorization" header, and sent
|
||||
* to the backend.
|
||||
*
|
||||
* Generated from protobuf field <code>string jwt_audience = 7;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getJwtAudience()
|
||||
{
|
||||
return $this->readOneof(7);
|
||||
}
|
||||
public function hasJwtAudience()
|
||||
{
|
||||
return $this->hasOneof(7);
|
||||
}
|
||||
/**
|
||||
* The JWT audience is used when generating a JWT ID token for the backend.
|
||||
* This ID token will be added in the HTTP "authorization" header, and sent
|
||||
* to the backend.
|
||||
*
|
||||
* Generated from protobuf field <code>string jwt_audience = 7;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setJwtAudience($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->writeOneof(7, $var);
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* When disable_auth is true, a JWT ID token won't be generated and the
|
||||
* original "Authorization" HTTP header will be preserved. If the header is
|
||||
* used to carry the original token and is expected by the backend, this
|
||||
* field must be set to true to preserve the header.
|
||||
*
|
||||
* Generated from protobuf field <code>bool disable_auth = 8;</code>
|
||||
* @return bool
|
||||
*/
|
||||
public function getDisableAuth()
|
||||
{
|
||||
return $this->readOneof(8);
|
||||
}
|
||||
public function hasDisableAuth()
|
||||
{
|
||||
return $this->hasOneof(8);
|
||||
}
|
||||
/**
|
||||
* When disable_auth is true, a JWT ID token won't be generated and the
|
||||
* original "Authorization" HTTP header will be preserved. If the header is
|
||||
* used to carry the original token and is expected by the backend, this
|
||||
* field must be set to true to preserve the header.
|
||||
*
|
||||
* Generated from protobuf field <code>bool disable_auth = 8;</code>
|
||||
* @param bool $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setDisableAuth($var)
|
||||
{
|
||||
GPBUtil::checkBool($var);
|
||||
$this->writeOneof(8, $var);
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* The protocol used for sending a request to the backend.
|
||||
* The supported values are "http/1.1" and "h2".
|
||||
* The default value is inferred from the scheme in the
|
||||
* [address][google.api.BackendRule.address] field:
|
||||
* SCHEME PROTOCOL
|
||||
* http:// http/1.1
|
||||
* https:// http/1.1
|
||||
* grpc:// h2
|
||||
* grpcs:// h2
|
||||
* For secure HTTP backends (https://) that support HTTP/2, set this field
|
||||
* to "h2" for improved performance.
|
||||
* Configuring this field to non-default values is only supported for secure
|
||||
* HTTP backends. This field will be ignored for all other backends.
|
||||
* See
|
||||
* https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
|
||||
* for more details on the supported values.
|
||||
*
|
||||
* Generated from protobuf field <code>string protocol = 9;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getProtocol()
|
||||
{
|
||||
return $this->protocol;
|
||||
}
|
||||
/**
|
||||
* The protocol used for sending a request to the backend.
|
||||
* The supported values are "http/1.1" and "h2".
|
||||
* The default value is inferred from the scheme in the
|
||||
* [address][google.api.BackendRule.address] field:
|
||||
* SCHEME PROTOCOL
|
||||
* http:// http/1.1
|
||||
* https:// http/1.1
|
||||
* grpc:// h2
|
||||
* grpcs:// h2
|
||||
* For secure HTTP backends (https://) that support HTTP/2, set this field
|
||||
* to "h2" for improved performance.
|
||||
* Configuring this field to non-default values is only supported for secure
|
||||
* HTTP backends. This field will be ignored for all other backends.
|
||||
* See
|
||||
* https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
|
||||
* for more details on the supported values.
|
||||
*
|
||||
* Generated from protobuf field <code>string protocol = 9;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setProtocol($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->protocol = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* The map between request protocol and the backend address.
|
||||
*
|
||||
* Generated from protobuf field <code>map<string, .google.api.BackendRule> overrides_by_request_protocol = 10;</code>
|
||||
* @return \Google\Protobuf\Internal\MapField
|
||||
*/
|
||||
public function getOverridesByRequestProtocol()
|
||||
{
|
||||
return $this->overrides_by_request_protocol;
|
||||
}
|
||||
/**
|
||||
* The map between request protocol and the backend address.
|
||||
*
|
||||
* Generated from protobuf field <code>map<string, .google.api.BackendRule> overrides_by_request_protocol = 10;</code>
|
||||
* @param array|\Google\Protobuf\Internal\MapField $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setOverridesByRequestProtocol($var)
|
||||
{
|
||||
$arr = GPBUtil::checkMapField($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::STRING, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::MESSAGE, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\BackendRule::class);
|
||||
$this->overrides_by_request_protocol = $arr;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getAuthentication()
|
||||
{
|
||||
return $this->whichOneof("authentication");
|
||||
}
|
||||
}
|
||||
80
vendor/Gcp/google/common-protos/src/Api/BackendRule/PathTranslation.php
vendored
Normal file
80
vendor/Gcp/google/common-protos/src/Api/BackendRule/PathTranslation.php
vendored
Normal file
@@ -0,0 +1,80 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/backend.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\BackendRule;
|
||||
|
||||
use UnexpectedValueException;
|
||||
/**
|
||||
* Path Translation specifies how to combine the backend address with the
|
||||
* request path in order to produce the appropriate forwarding URL for the
|
||||
* request.
|
||||
* Path Translation is applicable only to HTTP-based backends. Backends which
|
||||
* do not accept requests over HTTP/HTTPS should leave `path_translation`
|
||||
* unspecified.
|
||||
*
|
||||
* Protobuf type <code>google.api.BackendRule.PathTranslation</code>
|
||||
*/
|
||||
class PathTranslation
|
||||
{
|
||||
/**
|
||||
* Generated from protobuf enum <code>PATH_TRANSLATION_UNSPECIFIED = 0;</code>
|
||||
*/
|
||||
const PATH_TRANSLATION_UNSPECIFIED = 0;
|
||||
/**
|
||||
* Use the backend address as-is, with no modification to the path. If the
|
||||
* URL pattern contains variables, the variable names and values will be
|
||||
* appended to the query string. If a query string parameter and a URL
|
||||
* pattern variable have the same name, this may result in duplicate keys in
|
||||
* the query string.
|
||||
* # Examples
|
||||
* Given the following operation config:
|
||||
* Method path: /api/company/{cid}/user/{uid}
|
||||
* Backend address: https://example.cloudfunctions.net/getUser
|
||||
* Requests to the following request paths will call the backend at the
|
||||
* translated path:
|
||||
* Request path: /api/company/widgetworks/user/johndoe
|
||||
* Translated:
|
||||
* https://example.cloudfunctions.net/getUser?cid=widgetworks&uid=johndoe
|
||||
* Request path: /api/company/widgetworks/user/johndoe?timezone=EST
|
||||
* Translated:
|
||||
* https://example.cloudfunctions.net/getUser?timezone=EST&cid=widgetworks&uid=johndoe
|
||||
*
|
||||
* Generated from protobuf enum <code>CONSTANT_ADDRESS = 1;</code>
|
||||
*/
|
||||
const CONSTANT_ADDRESS = 1;
|
||||
/**
|
||||
* The request path will be appended to the backend address.
|
||||
* # Examples
|
||||
* Given the following operation config:
|
||||
* Method path: /api/company/{cid}/user/{uid}
|
||||
* Backend address: https://example.appspot.com
|
||||
* Requests to the following request paths will call the backend at the
|
||||
* translated path:
|
||||
* Request path: /api/company/widgetworks/user/johndoe
|
||||
* Translated:
|
||||
* https://example.appspot.com/api/company/widgetworks/user/johndoe
|
||||
* Request path: /api/company/widgetworks/user/johndoe?timezone=EST
|
||||
* Translated:
|
||||
* https://example.appspot.com/api/company/widgetworks/user/johndoe?timezone=EST
|
||||
*
|
||||
* Generated from protobuf enum <code>APPEND_PATH_TO_ADDRESS = 2;</code>
|
||||
*/
|
||||
const APPEND_PATH_TO_ADDRESS = 2;
|
||||
private static $valueToName = [self::PATH_TRANSLATION_UNSPECIFIED => 'PATH_TRANSLATION_UNSPECIFIED', self::CONSTANT_ADDRESS => 'CONSTANT_ADDRESS', self::APPEND_PATH_TO_ADDRESS => 'APPEND_PATH_TO_ADDRESS'];
|
||||
public static function name($value)
|
||||
{
|
||||
if (!isset(self::$valueToName[$value])) {
|
||||
throw new UnexpectedValueException(\sprintf('Enum %s has no name defined for value %s', __CLASS__, $value));
|
||||
}
|
||||
return self::$valueToName[$value];
|
||||
}
|
||||
public static function value($name)
|
||||
{
|
||||
$const = __CLASS__ . '::' . \strtoupper($name);
|
||||
if (!\defined($const)) {
|
||||
throw new UnexpectedValueException(\sprintf('Enum %s has no value defined for name %s', __CLASS__, $name));
|
||||
}
|
||||
return \constant($const);
|
||||
}
|
||||
}
|
||||
101
vendor/Gcp/google/common-protos/src/Api/Billing.php
vendored
Normal file
101
vendor/Gcp/google/common-protos/src/Api/Billing.php
vendored
Normal file
@@ -0,0 +1,101 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/billing.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* Billing related configuration of the service.
|
||||
* The following example shows how to configure monitored resources and metrics
|
||||
* for billing, `consumer_destinations` is the only supported destination and
|
||||
* the monitored resources need at least one label key
|
||||
* `cloud.googleapis.com/location` to indicate the location of the billing
|
||||
* usage, using different monitored resources between monitoring and billing is
|
||||
* recommended so they can be evolved independently:
|
||||
* monitored_resources:
|
||||
* - type: library.googleapis.com/billing_branch
|
||||
* labels:
|
||||
* - key: cloud.googleapis.com/location
|
||||
* description: |
|
||||
* Predefined label to support billing location restriction.
|
||||
* - key: city
|
||||
* description: |
|
||||
* Custom label to define the city where the library branch is located
|
||||
* in.
|
||||
* - key: name
|
||||
* description: Custom label to define the name of the library branch.
|
||||
* metrics:
|
||||
* - name: library.googleapis.com/book/borrowed_count
|
||||
* metric_kind: DELTA
|
||||
* value_type: INT64
|
||||
* unit: "1"
|
||||
* billing:
|
||||
* consumer_destinations:
|
||||
* - monitored_resource: library.googleapis.com/billing_branch
|
||||
* metrics:
|
||||
* - library.googleapis.com/book/borrowed_count
|
||||
*
|
||||
* Generated from protobuf message <code>google.api.Billing</code>
|
||||
*/
|
||||
class Billing extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* Billing configurations for sending metrics to the consumer project.
|
||||
* There can be multiple consumer destinations per service, each one must have
|
||||
* a different monitored resource type. A metric can be used in at most
|
||||
* one consumer destination.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.Billing.BillingDestination consumer_destinations = 8;</code>
|
||||
*/
|
||||
private $consumer_destinations;
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type array<\Google\Api\Billing\BillingDestination>|\Google\Protobuf\Internal\RepeatedField $consumer_destinations
|
||||
* Billing configurations for sending metrics to the consumer project.
|
||||
* There can be multiple consumer destinations per service, each one must have
|
||||
* a different monitored resource type. A metric can be used in at most
|
||||
* one consumer destination.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Api\Billing::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* Billing configurations for sending metrics to the consumer project.
|
||||
* There can be multiple consumer destinations per service, each one must have
|
||||
* a different monitored resource type. A metric can be used in at most
|
||||
* one consumer destination.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.Billing.BillingDestination consumer_destinations = 8;</code>
|
||||
* @return \Google\Protobuf\Internal\RepeatedField
|
||||
*/
|
||||
public function getConsumerDestinations()
|
||||
{
|
||||
return $this->consumer_destinations;
|
||||
}
|
||||
/**
|
||||
* Billing configurations for sending metrics to the consumer project.
|
||||
* There can be multiple consumer destinations per service, each one must have
|
||||
* a different monitored resource type. A metric can be used in at most
|
||||
* one consumer destination.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.Billing.BillingDestination consumer_destinations = 8;</code>
|
||||
* @param array<\Google\Api\Billing\BillingDestination>|\Google\Protobuf\Internal\RepeatedField $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setConsumerDestinations($var)
|
||||
{
|
||||
$arr = GPBUtil::checkRepeatedField($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::MESSAGE, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\Billing\BillingDestination::class);
|
||||
$this->consumer_destinations = $arr;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
109
vendor/Gcp/google/common-protos/src/Api/Billing/BillingDestination.php
vendored
Normal file
109
vendor/Gcp/google/common-protos/src/Api/Billing/BillingDestination.php
vendored
Normal file
@@ -0,0 +1,109 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/billing.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\Billing;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* Configuration of a specific billing destination (Currently only support
|
||||
* bill against consumer project).
|
||||
*
|
||||
* Generated from protobuf message <code>google.api.Billing.BillingDestination</code>
|
||||
*/
|
||||
class BillingDestination extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* The monitored resource type. The type must be defined in
|
||||
* [Service.monitored_resources][google.api.Service.monitored_resources]
|
||||
* section.
|
||||
*
|
||||
* Generated from protobuf field <code>string monitored_resource = 1;</code>
|
||||
*/
|
||||
protected $monitored_resource = '';
|
||||
/**
|
||||
* Names of the metrics to report to this billing destination.
|
||||
* Each name must be defined in
|
||||
* [Service.metrics][google.api.Service.metrics] section.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated string metrics = 2;</code>
|
||||
*/
|
||||
private $metrics;
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type string $monitored_resource
|
||||
* The monitored resource type. The type must be defined in
|
||||
* [Service.monitored_resources][google.api.Service.monitored_resources]
|
||||
* section.
|
||||
* @type array<string>|\Google\Protobuf\Internal\RepeatedField $metrics
|
||||
* Names of the metrics to report to this billing destination.
|
||||
* Each name must be defined in
|
||||
* [Service.metrics][google.api.Service.metrics] section.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Api\Billing::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* The monitored resource type. The type must be defined in
|
||||
* [Service.monitored_resources][google.api.Service.monitored_resources]
|
||||
* section.
|
||||
*
|
||||
* Generated from protobuf field <code>string monitored_resource = 1;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getMonitoredResource()
|
||||
{
|
||||
return $this->monitored_resource;
|
||||
}
|
||||
/**
|
||||
* The monitored resource type. The type must be defined in
|
||||
* [Service.monitored_resources][google.api.Service.monitored_resources]
|
||||
* section.
|
||||
*
|
||||
* Generated from protobuf field <code>string monitored_resource = 1;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setMonitoredResource($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->monitored_resource = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Names of the metrics to report to this billing destination.
|
||||
* Each name must be defined in
|
||||
* [Service.metrics][google.api.Service.metrics] section.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated string metrics = 2;</code>
|
||||
* @return \Google\Protobuf\Internal\RepeatedField
|
||||
*/
|
||||
public function getMetrics()
|
||||
{
|
||||
return $this->metrics;
|
||||
}
|
||||
/**
|
||||
* Names of the metrics to report to this billing destination.
|
||||
* Each name must be defined in
|
||||
* [Service.metrics][google.api.Service.metrics] section.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated string metrics = 2;</code>
|
||||
* @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setMetrics($var)
|
||||
{
|
||||
$arr = GPBUtil::checkRepeatedField($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::STRING);
|
||||
$this->metrics = $arr;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
59
vendor/Gcp/google/common-protos/src/Api/ChangeType.php
vendored
Normal file
59
vendor/Gcp/google/common-protos/src/Api/ChangeType.php
vendored
Normal file
@@ -0,0 +1,59 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/config_change.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api;
|
||||
|
||||
use UnexpectedValueException;
|
||||
/**
|
||||
* Classifies set of possible modifications to an object in the service
|
||||
* configuration.
|
||||
*
|
||||
* Protobuf type <code>google.api.ChangeType</code>
|
||||
*/
|
||||
class ChangeType
|
||||
{
|
||||
/**
|
||||
* No value was provided.
|
||||
*
|
||||
* Generated from protobuf enum <code>CHANGE_TYPE_UNSPECIFIED = 0;</code>
|
||||
*/
|
||||
const CHANGE_TYPE_UNSPECIFIED = 0;
|
||||
/**
|
||||
* The changed object exists in the 'new' service configuration, but not
|
||||
* in the 'old' service configuration.
|
||||
*
|
||||
* Generated from protobuf enum <code>ADDED = 1;</code>
|
||||
*/
|
||||
const ADDED = 1;
|
||||
/**
|
||||
* The changed object exists in the 'old' service configuration, but not
|
||||
* in the 'new' service configuration.
|
||||
*
|
||||
* Generated from protobuf enum <code>REMOVED = 2;</code>
|
||||
*/
|
||||
const REMOVED = 2;
|
||||
/**
|
||||
* The changed object exists in both service configurations, but its value
|
||||
* is different.
|
||||
*
|
||||
* Generated from protobuf enum <code>MODIFIED = 3;</code>
|
||||
*/
|
||||
const MODIFIED = 3;
|
||||
private static $valueToName = [self::CHANGE_TYPE_UNSPECIFIED => 'CHANGE_TYPE_UNSPECIFIED', self::ADDED => 'ADDED', self::REMOVED => 'REMOVED', self::MODIFIED => 'MODIFIED'];
|
||||
public static function name($value)
|
||||
{
|
||||
if (!isset(self::$valueToName[$value])) {
|
||||
throw new UnexpectedValueException(\sprintf('Enum %s has no name defined for value %s', __CLASS__, $value));
|
||||
}
|
||||
return self::$valueToName[$value];
|
||||
}
|
||||
public static function value($name)
|
||||
{
|
||||
$const = __CLASS__ . '::' . \strtoupper($name);
|
||||
if (!\defined($const)) {
|
||||
throw new UnexpectedValueException(\sprintf('Enum %s has no value defined for name %s', __CLASS__, $name));
|
||||
}
|
||||
return \constant($const);
|
||||
}
|
||||
}
|
||||
51
vendor/Gcp/google/common-protos/src/Api/ClientLibraryDestination.php
vendored
Normal file
51
vendor/Gcp/google/common-protos/src/Api/ClientLibraryDestination.php
vendored
Normal file
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/client.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api;
|
||||
|
||||
use UnexpectedValueException;
|
||||
/**
|
||||
* To where should client libraries be published?
|
||||
*
|
||||
* Protobuf type <code>google.api.ClientLibraryDestination</code>
|
||||
*/
|
||||
class ClientLibraryDestination
|
||||
{
|
||||
/**
|
||||
* Client libraries will neither be generated nor published to package
|
||||
* managers.
|
||||
*
|
||||
* Generated from protobuf enum <code>CLIENT_LIBRARY_DESTINATION_UNSPECIFIED = 0;</code>
|
||||
*/
|
||||
const CLIENT_LIBRARY_DESTINATION_UNSPECIFIED = 0;
|
||||
/**
|
||||
* Generate the client library in a repo under github.com/googleapis,
|
||||
* but don't publish it to package managers.
|
||||
*
|
||||
* Generated from protobuf enum <code>GITHUB = 10;</code>
|
||||
*/
|
||||
const GITHUB = 10;
|
||||
/**
|
||||
* Publish the library to package managers like nuget.org and npmjs.com.
|
||||
*
|
||||
* Generated from protobuf enum <code>PACKAGE_MANAGER = 20;</code>
|
||||
*/
|
||||
const PACKAGE_MANAGER = 20;
|
||||
private static $valueToName = [self::CLIENT_LIBRARY_DESTINATION_UNSPECIFIED => 'CLIENT_LIBRARY_DESTINATION_UNSPECIFIED', self::GITHUB => 'GITHUB', self::PACKAGE_MANAGER => 'PACKAGE_MANAGER'];
|
||||
public static function name($value)
|
||||
{
|
||||
if (!isset(self::$valueToName[$value])) {
|
||||
throw new UnexpectedValueException(\sprintf('Enum %s has no name defined for value %s', __CLASS__, $value));
|
||||
}
|
||||
return self::$valueToName[$value];
|
||||
}
|
||||
public static function value($name)
|
||||
{
|
||||
$const = __CLASS__ . '::' . \strtoupper($name);
|
||||
if (!\defined($const)) {
|
||||
throw new UnexpectedValueException(\sprintf('Enum %s has no value defined for name %s', __CLASS__, $name));
|
||||
}
|
||||
return \constant($const);
|
||||
}
|
||||
}
|
||||
80
vendor/Gcp/google/common-protos/src/Api/ClientLibraryOrganization.php
vendored
Normal file
80
vendor/Gcp/google/common-protos/src/Api/ClientLibraryOrganization.php
vendored
Normal file
@@ -0,0 +1,80 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/client.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api;
|
||||
|
||||
use UnexpectedValueException;
|
||||
/**
|
||||
* The organization for which the client libraries are being published.
|
||||
* Affects the url where generated docs are published, etc.
|
||||
*
|
||||
* Protobuf type <code>google.api.ClientLibraryOrganization</code>
|
||||
*/
|
||||
class ClientLibraryOrganization
|
||||
{
|
||||
/**
|
||||
* Not useful.
|
||||
*
|
||||
* Generated from protobuf enum <code>CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 0;</code>
|
||||
*/
|
||||
const CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 0;
|
||||
/**
|
||||
* Google Cloud Platform Org.
|
||||
*
|
||||
* Generated from protobuf enum <code>CLOUD = 1;</code>
|
||||
*/
|
||||
const CLOUD = 1;
|
||||
/**
|
||||
* Ads (Advertising) Org.
|
||||
*
|
||||
* Generated from protobuf enum <code>ADS = 2;</code>
|
||||
*/
|
||||
const ADS = 2;
|
||||
/**
|
||||
* Photos Org.
|
||||
*
|
||||
* Generated from protobuf enum <code>PHOTOS = 3;</code>
|
||||
*/
|
||||
const PHOTOS = 3;
|
||||
/**
|
||||
* Street View Org.
|
||||
*
|
||||
* Generated from protobuf enum <code>STREET_VIEW = 4;</code>
|
||||
*/
|
||||
const STREET_VIEW = 4;
|
||||
/**
|
||||
* Shopping Org.
|
||||
*
|
||||
* Generated from protobuf enum <code>SHOPPING = 5;</code>
|
||||
*/
|
||||
const SHOPPING = 5;
|
||||
/**
|
||||
* Geo Org.
|
||||
*
|
||||
* Generated from protobuf enum <code>GEO = 6;</code>
|
||||
*/
|
||||
const GEO = 6;
|
||||
/**
|
||||
* Generative AI - https://developers.generativeai.google
|
||||
*
|
||||
* Generated from protobuf enum <code>GENERATIVE_AI = 7;</code>
|
||||
*/
|
||||
const GENERATIVE_AI = 7;
|
||||
private static $valueToName = [self::CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED => 'CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED', self::CLOUD => 'CLOUD', self::ADS => 'ADS', self::PHOTOS => 'PHOTOS', self::STREET_VIEW => 'STREET_VIEW', self::SHOPPING => 'SHOPPING', self::GEO => 'GEO', self::GENERATIVE_AI => 'GENERATIVE_AI'];
|
||||
public static function name($value)
|
||||
{
|
||||
if (!isset(self::$valueToName[$value])) {
|
||||
throw new UnexpectedValueException(\sprintf('Enum %s has no name defined for value %s', __CLASS__, $value));
|
||||
}
|
||||
return self::$valueToName[$value];
|
||||
}
|
||||
public static function value($name)
|
||||
{
|
||||
$const = __CLASS__ . '::' . \strtoupper($name);
|
||||
if (!\defined($const)) {
|
||||
throw new UnexpectedValueException(\sprintf('Enum %s has no value defined for name %s', __CLASS__, $name));
|
||||
}
|
||||
return \constant($const);
|
||||
}
|
||||
}
|
||||
447
vendor/Gcp/google/common-protos/src/Api/ClientLibrarySettings.php
vendored
Normal file
447
vendor/Gcp/google/common-protos/src/Api/ClientLibrarySettings.php
vendored
Normal file
@@ -0,0 +1,447 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/client.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* Details about how and where to publish client libraries.
|
||||
*
|
||||
* Generated from protobuf message <code>google.api.ClientLibrarySettings</code>
|
||||
*/
|
||||
class ClientLibrarySettings extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* Version of the API to apply these settings to. This is the full protobuf
|
||||
* package for the API, ending in the version element.
|
||||
* Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1".
|
||||
*
|
||||
* Generated from protobuf field <code>string version = 1;</code>
|
||||
*/
|
||||
protected $version = '';
|
||||
/**
|
||||
* Launch stage of this version of the API.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.LaunchStage launch_stage = 2;</code>
|
||||
*/
|
||||
protected $launch_stage = 0;
|
||||
/**
|
||||
* When using transport=rest, the client request will encode enums as
|
||||
* numbers rather than strings.
|
||||
*
|
||||
* Generated from protobuf field <code>bool rest_numeric_enums = 3;</code>
|
||||
*/
|
||||
protected $rest_numeric_enums = \false;
|
||||
/**
|
||||
* Settings for legacy Java features, supported in the Service YAML.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.JavaSettings java_settings = 21;</code>
|
||||
*/
|
||||
protected $java_settings = null;
|
||||
/**
|
||||
* Settings for C++ client libraries.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.CppSettings cpp_settings = 22;</code>
|
||||
*/
|
||||
protected $cpp_settings = null;
|
||||
/**
|
||||
* Settings for PHP client libraries.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.PhpSettings php_settings = 23;</code>
|
||||
*/
|
||||
protected $php_settings = null;
|
||||
/**
|
||||
* Settings for Python client libraries.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.PythonSettings python_settings = 24;</code>
|
||||
*/
|
||||
protected $python_settings = null;
|
||||
/**
|
||||
* Settings for Node client libraries.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.NodeSettings node_settings = 25;</code>
|
||||
*/
|
||||
protected $node_settings = null;
|
||||
/**
|
||||
* Settings for .NET client libraries.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.DotnetSettings dotnet_settings = 26;</code>
|
||||
*/
|
||||
protected $dotnet_settings = null;
|
||||
/**
|
||||
* Settings for Ruby client libraries.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.RubySettings ruby_settings = 27;</code>
|
||||
*/
|
||||
protected $ruby_settings = null;
|
||||
/**
|
||||
* Settings for Go client libraries.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.GoSettings go_settings = 28;</code>
|
||||
*/
|
||||
protected $go_settings = null;
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type string $version
|
||||
* Version of the API to apply these settings to. This is the full protobuf
|
||||
* package for the API, ending in the version element.
|
||||
* Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1".
|
||||
* @type int $launch_stage
|
||||
* Launch stage of this version of the API.
|
||||
* @type bool $rest_numeric_enums
|
||||
* When using transport=rest, the client request will encode enums as
|
||||
* numbers rather than strings.
|
||||
* @type \Google\Api\JavaSettings $java_settings
|
||||
* Settings for legacy Java features, supported in the Service YAML.
|
||||
* @type \Google\Api\CppSettings $cpp_settings
|
||||
* Settings for C++ client libraries.
|
||||
* @type \Google\Api\PhpSettings $php_settings
|
||||
* Settings for PHP client libraries.
|
||||
* @type \Google\Api\PythonSettings $python_settings
|
||||
* Settings for Python client libraries.
|
||||
* @type \Google\Api\NodeSettings $node_settings
|
||||
* Settings for Node client libraries.
|
||||
* @type \Google\Api\DotnetSettings $dotnet_settings
|
||||
* Settings for .NET client libraries.
|
||||
* @type \Google\Api\RubySettings $ruby_settings
|
||||
* Settings for Ruby client libraries.
|
||||
* @type \Google\Api\GoSettings $go_settings
|
||||
* Settings for Go client libraries.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Api\Client::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* Version of the API to apply these settings to. This is the full protobuf
|
||||
* package for the API, ending in the version element.
|
||||
* Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1".
|
||||
*
|
||||
* Generated from protobuf field <code>string version = 1;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getVersion()
|
||||
{
|
||||
return $this->version;
|
||||
}
|
||||
/**
|
||||
* Version of the API to apply these settings to. This is the full protobuf
|
||||
* package for the API, ending in the version element.
|
||||
* Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1".
|
||||
*
|
||||
* Generated from protobuf field <code>string version = 1;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setVersion($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->version = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Launch stage of this version of the API.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.LaunchStage launch_stage = 2;</code>
|
||||
* @return int
|
||||
*/
|
||||
public function getLaunchStage()
|
||||
{
|
||||
return $this->launch_stage;
|
||||
}
|
||||
/**
|
||||
* Launch stage of this version of the API.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.LaunchStage launch_stage = 2;</code>
|
||||
* @param int $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setLaunchStage($var)
|
||||
{
|
||||
GPBUtil::checkEnum($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\LaunchStage::class);
|
||||
$this->launch_stage = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* When using transport=rest, the client request will encode enums as
|
||||
* numbers rather than strings.
|
||||
*
|
||||
* Generated from protobuf field <code>bool rest_numeric_enums = 3;</code>
|
||||
* @return bool
|
||||
*/
|
||||
public function getRestNumericEnums()
|
||||
{
|
||||
return $this->rest_numeric_enums;
|
||||
}
|
||||
/**
|
||||
* When using transport=rest, the client request will encode enums as
|
||||
* numbers rather than strings.
|
||||
*
|
||||
* Generated from protobuf field <code>bool rest_numeric_enums = 3;</code>
|
||||
* @param bool $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setRestNumericEnums($var)
|
||||
{
|
||||
GPBUtil::checkBool($var);
|
||||
$this->rest_numeric_enums = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Settings for legacy Java features, supported in the Service YAML.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.JavaSettings java_settings = 21;</code>
|
||||
* @return \Google\Api\JavaSettings|null
|
||||
*/
|
||||
public function getJavaSettings()
|
||||
{
|
||||
return $this->java_settings;
|
||||
}
|
||||
public function hasJavaSettings()
|
||||
{
|
||||
return isset($this->java_settings);
|
||||
}
|
||||
public function clearJavaSettings()
|
||||
{
|
||||
unset($this->java_settings);
|
||||
}
|
||||
/**
|
||||
* Settings for legacy Java features, supported in the Service YAML.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.JavaSettings java_settings = 21;</code>
|
||||
* @param \Google\Api\JavaSettings $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setJavaSettings($var)
|
||||
{
|
||||
GPBUtil::checkMessage($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\JavaSettings::class);
|
||||
$this->java_settings = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Settings for C++ client libraries.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.CppSettings cpp_settings = 22;</code>
|
||||
* @return \Google\Api\CppSettings|null
|
||||
*/
|
||||
public function getCppSettings()
|
||||
{
|
||||
return $this->cpp_settings;
|
||||
}
|
||||
public function hasCppSettings()
|
||||
{
|
||||
return isset($this->cpp_settings);
|
||||
}
|
||||
public function clearCppSettings()
|
||||
{
|
||||
unset($this->cpp_settings);
|
||||
}
|
||||
/**
|
||||
* Settings for C++ client libraries.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.CppSettings cpp_settings = 22;</code>
|
||||
* @param \Google\Api\CppSettings $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setCppSettings($var)
|
||||
{
|
||||
GPBUtil::checkMessage($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\CppSettings::class);
|
||||
$this->cpp_settings = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Settings for PHP client libraries.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.PhpSettings php_settings = 23;</code>
|
||||
* @return \Google\Api\PhpSettings|null
|
||||
*/
|
||||
public function getPhpSettings()
|
||||
{
|
||||
return $this->php_settings;
|
||||
}
|
||||
public function hasPhpSettings()
|
||||
{
|
||||
return isset($this->php_settings);
|
||||
}
|
||||
public function clearPhpSettings()
|
||||
{
|
||||
unset($this->php_settings);
|
||||
}
|
||||
/**
|
||||
* Settings for PHP client libraries.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.PhpSettings php_settings = 23;</code>
|
||||
* @param \Google\Api\PhpSettings $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setPhpSettings($var)
|
||||
{
|
||||
GPBUtil::checkMessage($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\PhpSettings::class);
|
||||
$this->php_settings = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Settings for Python client libraries.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.PythonSettings python_settings = 24;</code>
|
||||
* @return \Google\Api\PythonSettings|null
|
||||
*/
|
||||
public function getPythonSettings()
|
||||
{
|
||||
return $this->python_settings;
|
||||
}
|
||||
public function hasPythonSettings()
|
||||
{
|
||||
return isset($this->python_settings);
|
||||
}
|
||||
public function clearPythonSettings()
|
||||
{
|
||||
unset($this->python_settings);
|
||||
}
|
||||
/**
|
||||
* Settings for Python client libraries.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.PythonSettings python_settings = 24;</code>
|
||||
* @param \Google\Api\PythonSettings $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setPythonSettings($var)
|
||||
{
|
||||
GPBUtil::checkMessage($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\PythonSettings::class);
|
||||
$this->python_settings = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Settings for Node client libraries.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.NodeSettings node_settings = 25;</code>
|
||||
* @return \Google\Api\NodeSettings|null
|
||||
*/
|
||||
public function getNodeSettings()
|
||||
{
|
||||
return $this->node_settings;
|
||||
}
|
||||
public function hasNodeSettings()
|
||||
{
|
||||
return isset($this->node_settings);
|
||||
}
|
||||
public function clearNodeSettings()
|
||||
{
|
||||
unset($this->node_settings);
|
||||
}
|
||||
/**
|
||||
* Settings for Node client libraries.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.NodeSettings node_settings = 25;</code>
|
||||
* @param \Google\Api\NodeSettings $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setNodeSettings($var)
|
||||
{
|
||||
GPBUtil::checkMessage($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\NodeSettings::class);
|
||||
$this->node_settings = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Settings for .NET client libraries.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.DotnetSettings dotnet_settings = 26;</code>
|
||||
* @return \Google\Api\DotnetSettings|null
|
||||
*/
|
||||
public function getDotnetSettings()
|
||||
{
|
||||
return $this->dotnet_settings;
|
||||
}
|
||||
public function hasDotnetSettings()
|
||||
{
|
||||
return isset($this->dotnet_settings);
|
||||
}
|
||||
public function clearDotnetSettings()
|
||||
{
|
||||
unset($this->dotnet_settings);
|
||||
}
|
||||
/**
|
||||
* Settings for .NET client libraries.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.DotnetSettings dotnet_settings = 26;</code>
|
||||
* @param \Google\Api\DotnetSettings $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setDotnetSettings($var)
|
||||
{
|
||||
GPBUtil::checkMessage($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\DotnetSettings::class);
|
||||
$this->dotnet_settings = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Settings for Ruby client libraries.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.RubySettings ruby_settings = 27;</code>
|
||||
* @return \Google\Api\RubySettings|null
|
||||
*/
|
||||
public function getRubySettings()
|
||||
{
|
||||
return $this->ruby_settings;
|
||||
}
|
||||
public function hasRubySettings()
|
||||
{
|
||||
return isset($this->ruby_settings);
|
||||
}
|
||||
public function clearRubySettings()
|
||||
{
|
||||
unset($this->ruby_settings);
|
||||
}
|
||||
/**
|
||||
* Settings for Ruby client libraries.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.RubySettings ruby_settings = 27;</code>
|
||||
* @param \Google\Api\RubySettings $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setRubySettings($var)
|
||||
{
|
||||
GPBUtil::checkMessage($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\RubySettings::class);
|
||||
$this->ruby_settings = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Settings for Go client libraries.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.GoSettings go_settings = 28;</code>
|
||||
* @return \Google\Api\GoSettings|null
|
||||
*/
|
||||
public function getGoSettings()
|
||||
{
|
||||
return $this->go_settings;
|
||||
}
|
||||
public function hasGoSettings()
|
||||
{
|
||||
return isset($this->go_settings);
|
||||
}
|
||||
public function clearGoSettings()
|
||||
{
|
||||
unset($this->go_settings);
|
||||
}
|
||||
/**
|
||||
* Settings for Go client libraries.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.GoSettings go_settings = 28;</code>
|
||||
* @param \Google\Api\GoSettings $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setGoSettings($var)
|
||||
{
|
||||
GPBUtil::checkMessage($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\GoSettings::class);
|
||||
$this->go_settings = $var;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
101
vendor/Gcp/google/common-protos/src/Api/CommonLanguageSettings.php
vendored
Normal file
101
vendor/Gcp/google/common-protos/src/Api/CommonLanguageSettings.php
vendored
Normal file
@@ -0,0 +1,101 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/client.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* Required information for every language.
|
||||
*
|
||||
* Generated from protobuf message <code>google.api.CommonLanguageSettings</code>
|
||||
*/
|
||||
class CommonLanguageSettings extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* Link to automatically generated reference documentation. Example:
|
||||
* https://cloud.google.com/nodejs/docs/reference/asset/latest
|
||||
*
|
||||
* Generated from protobuf field <code>string reference_docs_uri = 1 [deprecated = true];</code>
|
||||
* @deprecated
|
||||
*/
|
||||
protected $reference_docs_uri = '';
|
||||
/**
|
||||
* The destination where API teams want this client library to be published.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.ClientLibraryDestination destinations = 2;</code>
|
||||
*/
|
||||
private $destinations;
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type string $reference_docs_uri
|
||||
* Link to automatically generated reference documentation. Example:
|
||||
* https://cloud.google.com/nodejs/docs/reference/asset/latest
|
||||
* @type array<int>|\Google\Protobuf\Internal\RepeatedField $destinations
|
||||
* The destination where API teams want this client library to be published.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Api\Client::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* Link to automatically generated reference documentation. Example:
|
||||
* https://cloud.google.com/nodejs/docs/reference/asset/latest
|
||||
*
|
||||
* Generated from protobuf field <code>string reference_docs_uri = 1 [deprecated = true];</code>
|
||||
* @return string
|
||||
* @deprecated
|
||||
*/
|
||||
public function getReferenceDocsUri()
|
||||
{
|
||||
@\trigger_error('reference_docs_uri is deprecated.', \E_USER_DEPRECATED);
|
||||
return $this->reference_docs_uri;
|
||||
}
|
||||
/**
|
||||
* Link to automatically generated reference documentation. Example:
|
||||
* https://cloud.google.com/nodejs/docs/reference/asset/latest
|
||||
*
|
||||
* Generated from protobuf field <code>string reference_docs_uri = 1 [deprecated = true];</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
* @deprecated
|
||||
*/
|
||||
public function setReferenceDocsUri($var)
|
||||
{
|
||||
@\trigger_error('reference_docs_uri is deprecated.', \E_USER_DEPRECATED);
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->reference_docs_uri = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* The destination where API teams want this client library to be published.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.ClientLibraryDestination destinations = 2;</code>
|
||||
* @return \Google\Protobuf\Internal\RepeatedField
|
||||
*/
|
||||
public function getDestinations()
|
||||
{
|
||||
return $this->destinations;
|
||||
}
|
||||
/**
|
||||
* The destination where API teams want this client library to be published.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.ClientLibraryDestination destinations = 2;</code>
|
||||
* @param array<int>|\Google\Protobuf\Internal\RepeatedField $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setDestinations($var)
|
||||
{
|
||||
$arr = GPBUtil::checkRepeatedField($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::ENUM, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\ClientLibraryDestination::class);
|
||||
$this->destinations = $arr;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
233
vendor/Gcp/google/common-protos/src/Api/ConfigChange.php
vendored
Normal file
233
vendor/Gcp/google/common-protos/src/Api/ConfigChange.php
vendored
Normal file
@@ -0,0 +1,233 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/config_change.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* Output generated from semantically comparing two versions of a service
|
||||
* configuration.
|
||||
* Includes detailed information about a field that have changed with
|
||||
* applicable advice about potential consequences for the change, such as
|
||||
* backwards-incompatibility.
|
||||
*
|
||||
* Generated from protobuf message <code>google.api.ConfigChange</code>
|
||||
*/
|
||||
class ConfigChange extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* Object hierarchy path to the change, with levels separated by a '.'
|
||||
* character. For repeated fields, an applicable unique identifier field is
|
||||
* used for the index (usually selector, name, or id). For maps, the term
|
||||
* 'key' is used. If the field has no unique identifier, the numeric index
|
||||
* is used.
|
||||
* Examples:
|
||||
* - visibility.rules[selector=="google.LibraryService.ListBooks"].restriction
|
||||
* - quota.metric_rules[selector=="google"].metric_costs[key=="reads"].value
|
||||
* - logging.producer_destinations[0]
|
||||
*
|
||||
* Generated from protobuf field <code>string element = 1;</code>
|
||||
*/
|
||||
protected $element = '';
|
||||
/**
|
||||
* Value of the changed object in the old Service configuration,
|
||||
* in JSON format. This field will not be populated if ChangeType == ADDED.
|
||||
*
|
||||
* Generated from protobuf field <code>string old_value = 2;</code>
|
||||
*/
|
||||
protected $old_value = '';
|
||||
/**
|
||||
* Value of the changed object in the new Service configuration,
|
||||
* in JSON format. This field will not be populated if ChangeType == REMOVED.
|
||||
*
|
||||
* Generated from protobuf field <code>string new_value = 3;</code>
|
||||
*/
|
||||
protected $new_value = '';
|
||||
/**
|
||||
* The type for this change, either ADDED, REMOVED, or MODIFIED.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.ChangeType change_type = 4;</code>
|
||||
*/
|
||||
protected $change_type = 0;
|
||||
/**
|
||||
* Collection of advice provided for this change, useful for determining the
|
||||
* possible impact of this change.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.Advice advices = 5;</code>
|
||||
*/
|
||||
private $advices;
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type string $element
|
||||
* Object hierarchy path to the change, with levels separated by a '.'
|
||||
* character. For repeated fields, an applicable unique identifier field is
|
||||
* used for the index (usually selector, name, or id). For maps, the term
|
||||
* 'key' is used. If the field has no unique identifier, the numeric index
|
||||
* is used.
|
||||
* Examples:
|
||||
* - visibility.rules[selector=="google.LibraryService.ListBooks"].restriction
|
||||
* - quota.metric_rules[selector=="google"].metric_costs[key=="reads"].value
|
||||
* - logging.producer_destinations[0]
|
||||
* @type string $old_value
|
||||
* Value of the changed object in the old Service configuration,
|
||||
* in JSON format. This field will not be populated if ChangeType == ADDED.
|
||||
* @type string $new_value
|
||||
* Value of the changed object in the new Service configuration,
|
||||
* in JSON format. This field will not be populated if ChangeType == REMOVED.
|
||||
* @type int $change_type
|
||||
* The type for this change, either ADDED, REMOVED, or MODIFIED.
|
||||
* @type array<\Google\Api\Advice>|\Google\Protobuf\Internal\RepeatedField $advices
|
||||
* Collection of advice provided for this change, useful for determining the
|
||||
* possible impact of this change.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Api\ConfigChange::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* Object hierarchy path to the change, with levels separated by a '.'
|
||||
* character. For repeated fields, an applicable unique identifier field is
|
||||
* used for the index (usually selector, name, or id). For maps, the term
|
||||
* 'key' is used. If the field has no unique identifier, the numeric index
|
||||
* is used.
|
||||
* Examples:
|
||||
* - visibility.rules[selector=="google.LibraryService.ListBooks"].restriction
|
||||
* - quota.metric_rules[selector=="google"].metric_costs[key=="reads"].value
|
||||
* - logging.producer_destinations[0]
|
||||
*
|
||||
* Generated from protobuf field <code>string element = 1;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getElement()
|
||||
{
|
||||
return $this->element;
|
||||
}
|
||||
/**
|
||||
* Object hierarchy path to the change, with levels separated by a '.'
|
||||
* character. For repeated fields, an applicable unique identifier field is
|
||||
* used for the index (usually selector, name, or id). For maps, the term
|
||||
* 'key' is used. If the field has no unique identifier, the numeric index
|
||||
* is used.
|
||||
* Examples:
|
||||
* - visibility.rules[selector=="google.LibraryService.ListBooks"].restriction
|
||||
* - quota.metric_rules[selector=="google"].metric_costs[key=="reads"].value
|
||||
* - logging.producer_destinations[0]
|
||||
*
|
||||
* Generated from protobuf field <code>string element = 1;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setElement($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->element = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Value of the changed object in the old Service configuration,
|
||||
* in JSON format. This field will not be populated if ChangeType == ADDED.
|
||||
*
|
||||
* Generated from protobuf field <code>string old_value = 2;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getOldValue()
|
||||
{
|
||||
return $this->old_value;
|
||||
}
|
||||
/**
|
||||
* Value of the changed object in the old Service configuration,
|
||||
* in JSON format. This field will not be populated if ChangeType == ADDED.
|
||||
*
|
||||
* Generated from protobuf field <code>string old_value = 2;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setOldValue($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->old_value = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Value of the changed object in the new Service configuration,
|
||||
* in JSON format. This field will not be populated if ChangeType == REMOVED.
|
||||
*
|
||||
* Generated from protobuf field <code>string new_value = 3;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getNewValue()
|
||||
{
|
||||
return $this->new_value;
|
||||
}
|
||||
/**
|
||||
* Value of the changed object in the new Service configuration,
|
||||
* in JSON format. This field will not be populated if ChangeType == REMOVED.
|
||||
*
|
||||
* Generated from protobuf field <code>string new_value = 3;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setNewValue($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->new_value = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* The type for this change, either ADDED, REMOVED, or MODIFIED.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.ChangeType change_type = 4;</code>
|
||||
* @return int
|
||||
*/
|
||||
public function getChangeType()
|
||||
{
|
||||
return $this->change_type;
|
||||
}
|
||||
/**
|
||||
* The type for this change, either ADDED, REMOVED, or MODIFIED.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.ChangeType change_type = 4;</code>
|
||||
* @param int $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setChangeType($var)
|
||||
{
|
||||
GPBUtil::checkEnum($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\ChangeType::class);
|
||||
$this->change_type = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Collection of advice provided for this change, useful for determining the
|
||||
* possible impact of this change.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.Advice advices = 5;</code>
|
||||
* @return \Google\Protobuf\Internal\RepeatedField
|
||||
*/
|
||||
public function getAdvices()
|
||||
{
|
||||
return $this->advices;
|
||||
}
|
||||
/**
|
||||
* Collection of advice provided for this change, useful for determining the
|
||||
* possible impact of this change.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.Advice advices = 5;</code>
|
||||
* @param array<\Google\Api\Advice>|\Google\Protobuf\Internal\RepeatedField $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setAdvices($var)
|
||||
{
|
||||
$arr = GPBUtil::checkRepeatedField($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::MESSAGE, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\Advice::class);
|
||||
$this->advices = $arr;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
92
vendor/Gcp/google/common-protos/src/Api/Context.php
vendored
Normal file
92
vendor/Gcp/google/common-protos/src/Api/Context.php
vendored
Normal file
@@ -0,0 +1,92 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/context.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* `Context` defines which contexts an API requests.
|
||||
* Example:
|
||||
* context:
|
||||
* rules:
|
||||
* - selector: "*"
|
||||
* requested:
|
||||
* - google.rpc.context.ProjectContext
|
||||
* - google.rpc.context.OriginContext
|
||||
* The above specifies that all methods in the API request
|
||||
* `google.rpc.context.ProjectContext` and
|
||||
* `google.rpc.context.OriginContext`.
|
||||
* Available context types are defined in package
|
||||
* `google.rpc.context`.
|
||||
* This also provides mechanism to allowlist any protobuf message extension that
|
||||
* can be sent in grpc metadata using “x-goog-ext-<extension_id>-bin” and
|
||||
* “x-goog-ext-<extension_id>-jspb” format. For example, list any service
|
||||
* specific protobuf types that can appear in grpc metadata as follows in your
|
||||
* yaml file:
|
||||
* Example:
|
||||
* context:
|
||||
* rules:
|
||||
* - selector: "google.example.library.v1.LibraryService.CreateBook"
|
||||
* allowed_request_extensions:
|
||||
* - google.foo.v1.NewExtension
|
||||
* allowed_response_extensions:
|
||||
* - google.foo.v1.NewExtension
|
||||
* You can also specify extension ID instead of fully qualified extension name
|
||||
* here.
|
||||
*
|
||||
* Generated from protobuf message <code>google.api.Context</code>
|
||||
*/
|
||||
class Context extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* A list of RPC context rules that apply to individual API methods.
|
||||
* **NOTE:** All service configuration rules follow "last one wins" order.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.ContextRule rules = 1;</code>
|
||||
*/
|
||||
private $rules;
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type array<\Google\Api\ContextRule>|\Google\Protobuf\Internal\RepeatedField $rules
|
||||
* A list of RPC context rules that apply to individual API methods.
|
||||
* **NOTE:** All service configuration rules follow "last one wins" order.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Api\Context::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* A list of RPC context rules that apply to individual API methods.
|
||||
* **NOTE:** All service configuration rules follow "last one wins" order.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.ContextRule rules = 1;</code>
|
||||
* @return \Google\Protobuf\Internal\RepeatedField
|
||||
*/
|
||||
public function getRules()
|
||||
{
|
||||
return $this->rules;
|
||||
}
|
||||
/**
|
||||
* A list of RPC context rules that apply to individual API methods.
|
||||
* **NOTE:** All service configuration rules follow "last one wins" order.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.ContextRule rules = 1;</code>
|
||||
* @param array<\Google\Api\ContextRule>|\Google\Protobuf\Internal\RepeatedField $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setRules($var)
|
||||
{
|
||||
$arr = GPBUtil::checkRepeatedField($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::MESSAGE, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\ContextRule::class);
|
||||
$this->rules = $arr;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
202
vendor/Gcp/google/common-protos/src/Api/ContextRule.php
vendored
Normal file
202
vendor/Gcp/google/common-protos/src/Api/ContextRule.php
vendored
Normal file
@@ -0,0 +1,202 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/context.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* A context rule provides information about the context for an individual API
|
||||
* element.
|
||||
*
|
||||
* Generated from protobuf message <code>google.api.ContextRule</code>
|
||||
*/
|
||||
class ContextRule extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* Selects the methods to which this rule applies.
|
||||
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
|
||||
* details.
|
||||
*
|
||||
* Generated from protobuf field <code>string selector = 1;</code>
|
||||
*/
|
||||
protected $selector = '';
|
||||
/**
|
||||
* A list of full type names of requested contexts.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated string requested = 2;</code>
|
||||
*/
|
||||
private $requested;
|
||||
/**
|
||||
* A list of full type names of provided contexts.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated string provided = 3;</code>
|
||||
*/
|
||||
private $provided;
|
||||
/**
|
||||
* A list of full type names or extension IDs of extensions allowed in grpc
|
||||
* side channel from client to backend.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated string allowed_request_extensions = 4;</code>
|
||||
*/
|
||||
private $allowed_request_extensions;
|
||||
/**
|
||||
* A list of full type names or extension IDs of extensions allowed in grpc
|
||||
* side channel from backend to client.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated string allowed_response_extensions = 5;</code>
|
||||
*/
|
||||
private $allowed_response_extensions;
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type string $selector
|
||||
* Selects the methods to which this rule applies.
|
||||
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
|
||||
* details.
|
||||
* @type array<string>|\Google\Protobuf\Internal\RepeatedField $requested
|
||||
* A list of full type names of requested contexts.
|
||||
* @type array<string>|\Google\Protobuf\Internal\RepeatedField $provided
|
||||
* A list of full type names of provided contexts.
|
||||
* @type array<string>|\Google\Protobuf\Internal\RepeatedField $allowed_request_extensions
|
||||
* A list of full type names or extension IDs of extensions allowed in grpc
|
||||
* side channel from client to backend.
|
||||
* @type array<string>|\Google\Protobuf\Internal\RepeatedField $allowed_response_extensions
|
||||
* A list of full type names or extension IDs of extensions allowed in grpc
|
||||
* side channel from backend to client.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Api\Context::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* Selects the methods to which this rule applies.
|
||||
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
|
||||
* details.
|
||||
*
|
||||
* Generated from protobuf field <code>string selector = 1;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getSelector()
|
||||
{
|
||||
return $this->selector;
|
||||
}
|
||||
/**
|
||||
* Selects the methods to which this rule applies.
|
||||
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
|
||||
* details.
|
||||
*
|
||||
* Generated from protobuf field <code>string selector = 1;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setSelector($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->selector = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* A list of full type names of requested contexts.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated string requested = 2;</code>
|
||||
* @return \Google\Protobuf\Internal\RepeatedField
|
||||
*/
|
||||
public function getRequested()
|
||||
{
|
||||
return $this->requested;
|
||||
}
|
||||
/**
|
||||
* A list of full type names of requested contexts.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated string requested = 2;</code>
|
||||
* @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setRequested($var)
|
||||
{
|
||||
$arr = GPBUtil::checkRepeatedField($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::STRING);
|
||||
$this->requested = $arr;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* A list of full type names of provided contexts.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated string provided = 3;</code>
|
||||
* @return \Google\Protobuf\Internal\RepeatedField
|
||||
*/
|
||||
public function getProvided()
|
||||
{
|
||||
return $this->provided;
|
||||
}
|
||||
/**
|
||||
* A list of full type names of provided contexts.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated string provided = 3;</code>
|
||||
* @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setProvided($var)
|
||||
{
|
||||
$arr = GPBUtil::checkRepeatedField($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::STRING);
|
||||
$this->provided = $arr;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* A list of full type names or extension IDs of extensions allowed in grpc
|
||||
* side channel from client to backend.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated string allowed_request_extensions = 4;</code>
|
||||
* @return \Google\Protobuf\Internal\RepeatedField
|
||||
*/
|
||||
public function getAllowedRequestExtensions()
|
||||
{
|
||||
return $this->allowed_request_extensions;
|
||||
}
|
||||
/**
|
||||
* A list of full type names or extension IDs of extensions allowed in grpc
|
||||
* side channel from client to backend.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated string allowed_request_extensions = 4;</code>
|
||||
* @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setAllowedRequestExtensions($var)
|
||||
{
|
||||
$arr = GPBUtil::checkRepeatedField($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::STRING);
|
||||
$this->allowed_request_extensions = $arr;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* A list of full type names or extension IDs of extensions allowed in grpc
|
||||
* side channel from backend to client.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated string allowed_response_extensions = 5;</code>
|
||||
* @return \Google\Protobuf\Internal\RepeatedField
|
||||
*/
|
||||
public function getAllowedResponseExtensions()
|
||||
{
|
||||
return $this->allowed_response_extensions;
|
||||
}
|
||||
/**
|
||||
* A list of full type names or extension IDs of extensions allowed in grpc
|
||||
* side channel from backend to client.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated string allowed_response_extensions = 5;</code>
|
||||
* @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setAllowedResponseExtensions($var)
|
||||
{
|
||||
$arr = GPBUtil::checkRepeatedField($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::STRING);
|
||||
$this->allowed_response_extensions = $arr;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
103
vendor/Gcp/google/common-protos/src/Api/Control.php
vendored
Normal file
103
vendor/Gcp/google/common-protos/src/Api/Control.php
vendored
Normal file
@@ -0,0 +1,103 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/control.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* Selects and configures the service controller used by the service.
|
||||
* Example:
|
||||
* control:
|
||||
* environment: servicecontrol.googleapis.com
|
||||
*
|
||||
* Generated from protobuf message <code>google.api.Control</code>
|
||||
*/
|
||||
class Control extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* The service controller environment to use. If empty, no control plane
|
||||
* feature (like quota and billing) will be enabled. The recommended value for
|
||||
* most services is servicecontrol.googleapis.com
|
||||
*
|
||||
* Generated from protobuf field <code>string environment = 1;</code>
|
||||
*/
|
||||
protected $environment = '';
|
||||
/**
|
||||
* Defines policies applying to the API methods of the service.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.MethodPolicy method_policies = 4;</code>
|
||||
*/
|
||||
private $method_policies;
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type string $environment
|
||||
* The service controller environment to use. If empty, no control plane
|
||||
* feature (like quota and billing) will be enabled. The recommended value for
|
||||
* most services is servicecontrol.googleapis.com
|
||||
* @type array<\Google\Api\MethodPolicy>|\Google\Protobuf\Internal\RepeatedField $method_policies
|
||||
* Defines policies applying to the API methods of the service.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Api\Control::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* The service controller environment to use. If empty, no control plane
|
||||
* feature (like quota and billing) will be enabled. The recommended value for
|
||||
* most services is servicecontrol.googleapis.com
|
||||
*
|
||||
* Generated from protobuf field <code>string environment = 1;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getEnvironment()
|
||||
{
|
||||
return $this->environment;
|
||||
}
|
||||
/**
|
||||
* The service controller environment to use. If empty, no control plane
|
||||
* feature (like quota and billing) will be enabled. The recommended value for
|
||||
* most services is servicecontrol.googleapis.com
|
||||
*
|
||||
* Generated from protobuf field <code>string environment = 1;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setEnvironment($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->environment = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Defines policies applying to the API methods of the service.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.MethodPolicy method_policies = 4;</code>
|
||||
* @return \Google\Protobuf\Internal\RepeatedField
|
||||
*/
|
||||
public function getMethodPolicies()
|
||||
{
|
||||
return $this->method_policies;
|
||||
}
|
||||
/**
|
||||
* Defines policies applying to the API methods of the service.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.MethodPolicy method_policies = 4;</code>
|
||||
* @param array<\Google\Api\MethodPolicy>|\Google\Protobuf\Internal\RepeatedField $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setMethodPolicies($var)
|
||||
{
|
||||
$arr = GPBUtil::checkRepeatedField($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::MESSAGE, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\MethodPolicy::class);
|
||||
$this->method_policies = $arr;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
69
vendor/Gcp/google/common-protos/src/Api/CppSettings.php
vendored
Normal file
69
vendor/Gcp/google/common-protos/src/Api/CppSettings.php
vendored
Normal file
@@ -0,0 +1,69 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/client.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* Settings for C++ client libraries.
|
||||
*
|
||||
* Generated from protobuf message <code>google.api.CppSettings</code>
|
||||
*/
|
||||
class CppSettings extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* Some settings.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.CommonLanguageSettings common = 1;</code>
|
||||
*/
|
||||
protected $common = null;
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type \Google\Api\CommonLanguageSettings $common
|
||||
* Some settings.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Api\Client::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* Some settings.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.CommonLanguageSettings common = 1;</code>
|
||||
* @return \Google\Api\CommonLanguageSettings|null
|
||||
*/
|
||||
public function getCommon()
|
||||
{
|
||||
return $this->common;
|
||||
}
|
||||
public function hasCommon()
|
||||
{
|
||||
return isset($this->common);
|
||||
}
|
||||
public function clearCommon()
|
||||
{
|
||||
unset($this->common);
|
||||
}
|
||||
/**
|
||||
* Some settings.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.CommonLanguageSettings common = 1;</code>
|
||||
* @param \Google\Api\CommonLanguageSettings $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setCommon($var)
|
||||
{
|
||||
GPBUtil::checkMessage($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\CommonLanguageSettings::class);
|
||||
$this->common = $var;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
92
vendor/Gcp/google/common-protos/src/Api/CustomHttpPattern.php
vendored
Normal file
92
vendor/Gcp/google/common-protos/src/Api/CustomHttpPattern.php
vendored
Normal file
@@ -0,0 +1,92 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/http.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* A custom pattern is used for defining custom HTTP verb.
|
||||
*
|
||||
* Generated from protobuf message <code>google.api.CustomHttpPattern</code>
|
||||
*/
|
||||
class CustomHttpPattern extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* The name of this custom HTTP verb.
|
||||
*
|
||||
* Generated from protobuf field <code>string kind = 1;</code>
|
||||
*/
|
||||
protected $kind = '';
|
||||
/**
|
||||
* The path matched by this custom verb.
|
||||
*
|
||||
* Generated from protobuf field <code>string path = 2;</code>
|
||||
*/
|
||||
protected $path = '';
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type string $kind
|
||||
* The name of this custom HTTP verb.
|
||||
* @type string $path
|
||||
* The path matched by this custom verb.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Api\Http::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* The name of this custom HTTP verb.
|
||||
*
|
||||
* Generated from protobuf field <code>string kind = 1;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getKind()
|
||||
{
|
||||
return $this->kind;
|
||||
}
|
||||
/**
|
||||
* The name of this custom HTTP verb.
|
||||
*
|
||||
* Generated from protobuf field <code>string kind = 1;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setKind($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->kind = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* The path matched by this custom verb.
|
||||
*
|
||||
* Generated from protobuf field <code>string path = 2;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getPath()
|
||||
{
|
||||
return $this->path;
|
||||
}
|
||||
/**
|
||||
* The path matched by this custom verb.
|
||||
*
|
||||
* Generated from protobuf field <code>string path = 2;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setPath($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->path = $var;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
362
vendor/Gcp/google/common-protos/src/Api/Distribution.php
vendored
Normal file
362
vendor/Gcp/google/common-protos/src/Api/Distribution.php
vendored
Normal file
@@ -0,0 +1,362 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/distribution.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* `Distribution` contains summary statistics for a population of values. It
|
||||
* optionally contains a histogram representing the distribution of those values
|
||||
* across a set of buckets.
|
||||
* The summary statistics are the count, mean, sum of the squared deviation from
|
||||
* the mean, the minimum, and the maximum of the set of population of values.
|
||||
* The histogram is based on a sequence of buckets and gives a count of values
|
||||
* that fall into each bucket. The boundaries of the buckets are given either
|
||||
* explicitly or by formulas for buckets of fixed or exponentially increasing
|
||||
* widths.
|
||||
* Although it is not forbidden, it is generally a bad idea to include
|
||||
* non-finite values (infinities or NaNs) in the population of values, as this
|
||||
* will render the `mean` and `sum_of_squared_deviation` fields meaningless.
|
||||
*
|
||||
* Generated from protobuf message <code>google.api.Distribution</code>
|
||||
*/
|
||||
class Distribution extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* The number of values in the population. Must be non-negative. This value
|
||||
* must equal the sum of the values in `bucket_counts` if a histogram is
|
||||
* provided.
|
||||
*
|
||||
* Generated from protobuf field <code>int64 count = 1;</code>
|
||||
*/
|
||||
protected $count = 0;
|
||||
/**
|
||||
* The arithmetic mean of the values in the population. If `count` is zero
|
||||
* then this field must be zero.
|
||||
*
|
||||
* Generated from protobuf field <code>double mean = 2;</code>
|
||||
*/
|
||||
protected $mean = 0.0;
|
||||
/**
|
||||
* The sum of squared deviations from the mean of the values in the
|
||||
* population. For values x_i this is:
|
||||
* Sum[i=1..n]((x_i - mean)^2)
|
||||
* Knuth, "The Art of Computer Programming", Vol. 2, page 232, 3rd edition
|
||||
* describes Welford's method for accumulating this sum in one pass.
|
||||
* If `count` is zero then this field must be zero.
|
||||
*
|
||||
* Generated from protobuf field <code>double sum_of_squared_deviation = 3;</code>
|
||||
*/
|
||||
protected $sum_of_squared_deviation = 0.0;
|
||||
/**
|
||||
* If specified, contains the range of the population values. The field
|
||||
* must not be present if the `count` is zero.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.Distribution.Range range = 4;</code>
|
||||
*/
|
||||
protected $range = null;
|
||||
/**
|
||||
* Defines the histogram bucket boundaries. If the distribution does not
|
||||
* contain a histogram, then omit this field.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.Distribution.BucketOptions bucket_options = 6;</code>
|
||||
*/
|
||||
protected $bucket_options = null;
|
||||
/**
|
||||
* The number of values in each bucket of the histogram, as described in
|
||||
* `bucket_options`. If the distribution does not have a histogram, then omit
|
||||
* this field. If there is a histogram, then the sum of the values in
|
||||
* `bucket_counts` must equal the value in the `count` field of the
|
||||
* distribution.
|
||||
* If present, `bucket_counts` should contain N values, where N is the number
|
||||
* of buckets specified in `bucket_options`. If you supply fewer than N
|
||||
* values, the remaining values are assumed to be 0.
|
||||
* The order of the values in `bucket_counts` follows the bucket numbering
|
||||
* schemes described for the three bucket types. The first value must be the
|
||||
* count for the underflow bucket (number 0). The next N-2 values are the
|
||||
* counts for the finite buckets (number 1 through N-2). The N'th value in
|
||||
* `bucket_counts` is the count for the overflow bucket (number N-1).
|
||||
*
|
||||
* Generated from protobuf field <code>repeated int64 bucket_counts = 7;</code>
|
||||
*/
|
||||
private $bucket_counts;
|
||||
/**
|
||||
* Must be in increasing order of `value` field.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.Distribution.Exemplar exemplars = 10;</code>
|
||||
*/
|
||||
private $exemplars;
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type int|string $count
|
||||
* The number of values in the population. Must be non-negative. This value
|
||||
* must equal the sum of the values in `bucket_counts` if a histogram is
|
||||
* provided.
|
||||
* @type float $mean
|
||||
* The arithmetic mean of the values in the population. If `count` is zero
|
||||
* then this field must be zero.
|
||||
* @type float $sum_of_squared_deviation
|
||||
* The sum of squared deviations from the mean of the values in the
|
||||
* population. For values x_i this is:
|
||||
* Sum[i=1..n]((x_i - mean)^2)
|
||||
* Knuth, "The Art of Computer Programming", Vol. 2, page 232, 3rd edition
|
||||
* describes Welford's method for accumulating this sum in one pass.
|
||||
* If `count` is zero then this field must be zero.
|
||||
* @type \Google\Api\Distribution\Range $range
|
||||
* If specified, contains the range of the population values. The field
|
||||
* must not be present if the `count` is zero.
|
||||
* @type \Google\Api\Distribution\BucketOptions $bucket_options
|
||||
* Defines the histogram bucket boundaries. If the distribution does not
|
||||
* contain a histogram, then omit this field.
|
||||
* @type array<int>|array<string>|\Google\Protobuf\Internal\RepeatedField $bucket_counts
|
||||
* The number of values in each bucket of the histogram, as described in
|
||||
* `bucket_options`. If the distribution does not have a histogram, then omit
|
||||
* this field. If there is a histogram, then the sum of the values in
|
||||
* `bucket_counts` must equal the value in the `count` field of the
|
||||
* distribution.
|
||||
* If present, `bucket_counts` should contain N values, where N is the number
|
||||
* of buckets specified in `bucket_options`. If you supply fewer than N
|
||||
* values, the remaining values are assumed to be 0.
|
||||
* The order of the values in `bucket_counts` follows the bucket numbering
|
||||
* schemes described for the three bucket types. The first value must be the
|
||||
* count for the underflow bucket (number 0). The next N-2 values are the
|
||||
* counts for the finite buckets (number 1 through N-2). The N'th value in
|
||||
* `bucket_counts` is the count for the overflow bucket (number N-1).
|
||||
* @type array<\Google\Api\Distribution\Exemplar>|\Google\Protobuf\Internal\RepeatedField $exemplars
|
||||
* Must be in increasing order of `value` field.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Api\Distribution::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* The number of values in the population. Must be non-negative. This value
|
||||
* must equal the sum of the values in `bucket_counts` if a histogram is
|
||||
* provided.
|
||||
*
|
||||
* Generated from protobuf field <code>int64 count = 1;</code>
|
||||
* @return int|string
|
||||
*/
|
||||
public function getCount()
|
||||
{
|
||||
return $this->count;
|
||||
}
|
||||
/**
|
||||
* The number of values in the population. Must be non-negative. This value
|
||||
* must equal the sum of the values in `bucket_counts` if a histogram is
|
||||
* provided.
|
||||
*
|
||||
* Generated from protobuf field <code>int64 count = 1;</code>
|
||||
* @param int|string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setCount($var)
|
||||
{
|
||||
GPBUtil::checkInt64($var);
|
||||
$this->count = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* The arithmetic mean of the values in the population. If `count` is zero
|
||||
* then this field must be zero.
|
||||
*
|
||||
* Generated from protobuf field <code>double mean = 2;</code>
|
||||
* @return float
|
||||
*/
|
||||
public function getMean()
|
||||
{
|
||||
return $this->mean;
|
||||
}
|
||||
/**
|
||||
* The arithmetic mean of the values in the population. If `count` is zero
|
||||
* then this field must be zero.
|
||||
*
|
||||
* Generated from protobuf field <code>double mean = 2;</code>
|
||||
* @param float $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setMean($var)
|
||||
{
|
||||
GPBUtil::checkDouble($var);
|
||||
$this->mean = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* The sum of squared deviations from the mean of the values in the
|
||||
* population. For values x_i this is:
|
||||
* Sum[i=1..n]((x_i - mean)^2)
|
||||
* Knuth, "The Art of Computer Programming", Vol. 2, page 232, 3rd edition
|
||||
* describes Welford's method for accumulating this sum in one pass.
|
||||
* If `count` is zero then this field must be zero.
|
||||
*
|
||||
* Generated from protobuf field <code>double sum_of_squared_deviation = 3;</code>
|
||||
* @return float
|
||||
*/
|
||||
public function getSumOfSquaredDeviation()
|
||||
{
|
||||
return $this->sum_of_squared_deviation;
|
||||
}
|
||||
/**
|
||||
* The sum of squared deviations from the mean of the values in the
|
||||
* population. For values x_i this is:
|
||||
* Sum[i=1..n]((x_i - mean)^2)
|
||||
* Knuth, "The Art of Computer Programming", Vol. 2, page 232, 3rd edition
|
||||
* describes Welford's method for accumulating this sum in one pass.
|
||||
* If `count` is zero then this field must be zero.
|
||||
*
|
||||
* Generated from protobuf field <code>double sum_of_squared_deviation = 3;</code>
|
||||
* @param float $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setSumOfSquaredDeviation($var)
|
||||
{
|
||||
GPBUtil::checkDouble($var);
|
||||
$this->sum_of_squared_deviation = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* If specified, contains the range of the population values. The field
|
||||
* must not be present if the `count` is zero.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.Distribution.Range range = 4;</code>
|
||||
* @return \Google\Api\Distribution\Range|null
|
||||
*/
|
||||
public function getRange()
|
||||
{
|
||||
return $this->range;
|
||||
}
|
||||
public function hasRange()
|
||||
{
|
||||
return isset($this->range);
|
||||
}
|
||||
public function clearRange()
|
||||
{
|
||||
unset($this->range);
|
||||
}
|
||||
/**
|
||||
* If specified, contains the range of the population values. The field
|
||||
* must not be present if the `count` is zero.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.Distribution.Range range = 4;</code>
|
||||
* @param \Google\Api\Distribution\Range $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setRange($var)
|
||||
{
|
||||
GPBUtil::checkMessage($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\Distribution\Range::class);
|
||||
$this->range = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Defines the histogram bucket boundaries. If the distribution does not
|
||||
* contain a histogram, then omit this field.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.Distribution.BucketOptions bucket_options = 6;</code>
|
||||
* @return \Google\Api\Distribution\BucketOptions|null
|
||||
*/
|
||||
public function getBucketOptions()
|
||||
{
|
||||
return $this->bucket_options;
|
||||
}
|
||||
public function hasBucketOptions()
|
||||
{
|
||||
return isset($this->bucket_options);
|
||||
}
|
||||
public function clearBucketOptions()
|
||||
{
|
||||
unset($this->bucket_options);
|
||||
}
|
||||
/**
|
||||
* Defines the histogram bucket boundaries. If the distribution does not
|
||||
* contain a histogram, then omit this field.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.Distribution.BucketOptions bucket_options = 6;</code>
|
||||
* @param \Google\Api\Distribution\BucketOptions $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setBucketOptions($var)
|
||||
{
|
||||
GPBUtil::checkMessage($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\Distribution\BucketOptions::class);
|
||||
$this->bucket_options = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* The number of values in each bucket of the histogram, as described in
|
||||
* `bucket_options`. If the distribution does not have a histogram, then omit
|
||||
* this field. If there is a histogram, then the sum of the values in
|
||||
* `bucket_counts` must equal the value in the `count` field of the
|
||||
* distribution.
|
||||
* If present, `bucket_counts` should contain N values, where N is the number
|
||||
* of buckets specified in `bucket_options`. If you supply fewer than N
|
||||
* values, the remaining values are assumed to be 0.
|
||||
* The order of the values in `bucket_counts` follows the bucket numbering
|
||||
* schemes described for the three bucket types. The first value must be the
|
||||
* count for the underflow bucket (number 0). The next N-2 values are the
|
||||
* counts for the finite buckets (number 1 through N-2). The N'th value in
|
||||
* `bucket_counts` is the count for the overflow bucket (number N-1).
|
||||
*
|
||||
* Generated from protobuf field <code>repeated int64 bucket_counts = 7;</code>
|
||||
* @return \Google\Protobuf\Internal\RepeatedField
|
||||
*/
|
||||
public function getBucketCounts()
|
||||
{
|
||||
return $this->bucket_counts;
|
||||
}
|
||||
/**
|
||||
* The number of values in each bucket of the histogram, as described in
|
||||
* `bucket_options`. If the distribution does not have a histogram, then omit
|
||||
* this field. If there is a histogram, then the sum of the values in
|
||||
* `bucket_counts` must equal the value in the `count` field of the
|
||||
* distribution.
|
||||
* If present, `bucket_counts` should contain N values, where N is the number
|
||||
* of buckets specified in `bucket_options`. If you supply fewer than N
|
||||
* values, the remaining values are assumed to be 0.
|
||||
* The order of the values in `bucket_counts` follows the bucket numbering
|
||||
* schemes described for the three bucket types. The first value must be the
|
||||
* count for the underflow bucket (number 0). The next N-2 values are the
|
||||
* counts for the finite buckets (number 1 through N-2). The N'th value in
|
||||
* `bucket_counts` is the count for the overflow bucket (number N-1).
|
||||
*
|
||||
* Generated from protobuf field <code>repeated int64 bucket_counts = 7;</code>
|
||||
* @param array<int>|array<string>|\Google\Protobuf\Internal\RepeatedField $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setBucketCounts($var)
|
||||
{
|
||||
$arr = GPBUtil::checkRepeatedField($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::INT64);
|
||||
$this->bucket_counts = $arr;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Must be in increasing order of `value` field.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.Distribution.Exemplar exemplars = 10;</code>
|
||||
* @return \Google\Protobuf\Internal\RepeatedField
|
||||
*/
|
||||
public function getExemplars()
|
||||
{
|
||||
return $this->exemplars;
|
||||
}
|
||||
/**
|
||||
* Must be in increasing order of `value` field.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.Distribution.Exemplar exemplars = 10;</code>
|
||||
* @param array<\Google\Api\Distribution\Exemplar>|\Google\Protobuf\Internal\RepeatedField $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setExemplars($var)
|
||||
{
|
||||
$arr = GPBUtil::checkRepeatedField($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::MESSAGE, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\Distribution\Exemplar::class);
|
||||
$this->exemplars = $arr;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
138
vendor/Gcp/google/common-protos/src/Api/Distribution/BucketOptions.php
vendored
Normal file
138
vendor/Gcp/google/common-protos/src/Api/Distribution/BucketOptions.php
vendored
Normal file
@@ -0,0 +1,138 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/distribution.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\Distribution;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* `BucketOptions` describes the bucket boundaries used to create a histogram
|
||||
* for the distribution. The buckets can be in a linear sequence, an
|
||||
* exponential sequence, or each bucket can be specified explicitly.
|
||||
* `BucketOptions` does not include the number of values in each bucket.
|
||||
* A bucket has an inclusive lower bound and exclusive upper bound for the
|
||||
* values that are counted for that bucket. The upper bound of a bucket must
|
||||
* be strictly greater than the lower bound. The sequence of N buckets for a
|
||||
* distribution consists of an underflow bucket (number 0), zero or more
|
||||
* finite buckets (number 1 through N - 2) and an overflow bucket (number N -
|
||||
* 1). The buckets are contiguous: the lower bound of bucket i (i > 0) is the
|
||||
* same as the upper bound of bucket i - 1. The buckets span the whole range
|
||||
* of finite values: lower bound of the underflow bucket is -infinity and the
|
||||
* upper bound of the overflow bucket is +infinity. The finite buckets are
|
||||
* so-called because both bounds are finite.
|
||||
*
|
||||
* Generated from protobuf message <code>google.api.Distribution.BucketOptions</code>
|
||||
*/
|
||||
class BucketOptions extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
protected $options;
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type \Google\Api\Distribution\BucketOptions\Linear $linear_buckets
|
||||
* The linear bucket.
|
||||
* @type \Google\Api\Distribution\BucketOptions\Exponential $exponential_buckets
|
||||
* The exponential buckets.
|
||||
* @type \Google\Api\Distribution\BucketOptions\Explicit $explicit_buckets
|
||||
* The explicit buckets.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Api\Distribution::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* The linear bucket.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.Distribution.BucketOptions.Linear linear_buckets = 1;</code>
|
||||
* @return \Google\Api\Distribution\BucketOptions\Linear|null
|
||||
*/
|
||||
public function getLinearBuckets()
|
||||
{
|
||||
return $this->readOneof(1);
|
||||
}
|
||||
public function hasLinearBuckets()
|
||||
{
|
||||
return $this->hasOneof(1);
|
||||
}
|
||||
/**
|
||||
* The linear bucket.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.Distribution.BucketOptions.Linear linear_buckets = 1;</code>
|
||||
* @param \Google\Api\Distribution\BucketOptions\Linear $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setLinearBuckets($var)
|
||||
{
|
||||
GPBUtil::checkMessage($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\Distribution\BucketOptions\Linear::class);
|
||||
$this->writeOneof(1, $var);
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* The exponential buckets.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.Distribution.BucketOptions.Exponential exponential_buckets = 2;</code>
|
||||
* @return \Google\Api\Distribution\BucketOptions\Exponential|null
|
||||
*/
|
||||
public function getExponentialBuckets()
|
||||
{
|
||||
return $this->readOneof(2);
|
||||
}
|
||||
public function hasExponentialBuckets()
|
||||
{
|
||||
return $this->hasOneof(2);
|
||||
}
|
||||
/**
|
||||
* The exponential buckets.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.Distribution.BucketOptions.Exponential exponential_buckets = 2;</code>
|
||||
* @param \Google\Api\Distribution\BucketOptions\Exponential $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setExponentialBuckets($var)
|
||||
{
|
||||
GPBUtil::checkMessage($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\Distribution\BucketOptions\Exponential::class);
|
||||
$this->writeOneof(2, $var);
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* The explicit buckets.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.Distribution.BucketOptions.Explicit explicit_buckets = 3;</code>
|
||||
* @return \Google\Api\Distribution\BucketOptions\Explicit|null
|
||||
*/
|
||||
public function getExplicitBuckets()
|
||||
{
|
||||
return $this->readOneof(3);
|
||||
}
|
||||
public function hasExplicitBuckets()
|
||||
{
|
||||
return $this->hasOneof(3);
|
||||
}
|
||||
/**
|
||||
* The explicit buckets.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.Distribution.BucketOptions.Explicit explicit_buckets = 3;</code>
|
||||
* @param \Google\Api\Distribution\BucketOptions\Explicit $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setExplicitBuckets($var)
|
||||
{
|
||||
GPBUtil::checkMessage($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\Distribution\BucketOptions\Explicit::class);
|
||||
$this->writeOneof(3, $var);
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getOptions()
|
||||
{
|
||||
return $this->whichOneof("options");
|
||||
}
|
||||
}
|
||||
68
vendor/Gcp/google/common-protos/src/Api/Distribution/BucketOptions/Explicit.php
vendored
Normal file
68
vendor/Gcp/google/common-protos/src/Api/Distribution/BucketOptions/Explicit.php
vendored
Normal file
@@ -0,0 +1,68 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/distribution.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\Distribution\BucketOptions;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* Specifies a set of buckets with arbitrary widths.
|
||||
* There are `size(bounds) + 1` (= N) buckets. Bucket `i` has the following
|
||||
* boundaries:
|
||||
* Upper bound (0 <= i < N-1): bounds[i]
|
||||
* Lower bound (1 <= i < N); bounds[i - 1]
|
||||
* The `bounds` field must contain at least one element. If `bounds` has
|
||||
* only one element, then there are no finite buckets, and that single
|
||||
* element is the common boundary of the overflow and underflow buckets.
|
||||
*
|
||||
* Generated from protobuf message <code>google.api.Distribution.BucketOptions.Explicit</code>
|
||||
*/
|
||||
class Explicit extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* The values must be monotonically increasing.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated double bounds = 1;</code>
|
||||
*/
|
||||
private $bounds;
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type array<float>|\Google\Protobuf\Internal\RepeatedField $bounds
|
||||
* The values must be monotonically increasing.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Api\Distribution::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* The values must be monotonically increasing.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated double bounds = 1;</code>
|
||||
* @return \Google\Protobuf\Internal\RepeatedField
|
||||
*/
|
||||
public function getBounds()
|
||||
{
|
||||
return $this->bounds;
|
||||
}
|
||||
/**
|
||||
* The values must be monotonically increasing.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated double bounds = 1;</code>
|
||||
* @param array<float>|\Google\Protobuf\Internal\RepeatedField $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setBounds($var)
|
||||
{
|
||||
$arr = GPBUtil::checkRepeatedField($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::DOUBLE);
|
||||
$this->bounds = $arr;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
129
vendor/Gcp/google/common-protos/src/Api/Distribution/BucketOptions/Exponential.php
vendored
Normal file
129
vendor/Gcp/google/common-protos/src/Api/Distribution/BucketOptions/Exponential.php
vendored
Normal file
@@ -0,0 +1,129 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/distribution.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\Distribution\BucketOptions;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* Specifies an exponential sequence of buckets that have a width that is
|
||||
* proportional to the value of the lower bound. Each bucket represents a
|
||||
* constant relative uncertainty on a specific value in the bucket.
|
||||
* There are `num_finite_buckets + 2` (= N) buckets. Bucket `i` has the
|
||||
* following boundaries:
|
||||
* Upper bound (0 <= i < N-1): scale * (growth_factor ^ i).
|
||||
* Lower bound (1 <= i < N): scale * (growth_factor ^ (i - 1)).
|
||||
*
|
||||
* Generated from protobuf message <code>google.api.Distribution.BucketOptions.Exponential</code>
|
||||
*/
|
||||
class Exponential extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* Must be greater than 0.
|
||||
*
|
||||
* Generated from protobuf field <code>int32 num_finite_buckets = 1;</code>
|
||||
*/
|
||||
protected $num_finite_buckets = 0;
|
||||
/**
|
||||
* Must be greater than 1.
|
||||
*
|
||||
* Generated from protobuf field <code>double growth_factor = 2;</code>
|
||||
*/
|
||||
protected $growth_factor = 0.0;
|
||||
/**
|
||||
* Must be greater than 0.
|
||||
*
|
||||
* Generated from protobuf field <code>double scale = 3;</code>
|
||||
*/
|
||||
protected $scale = 0.0;
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type int $num_finite_buckets
|
||||
* Must be greater than 0.
|
||||
* @type float $growth_factor
|
||||
* Must be greater than 1.
|
||||
* @type float $scale
|
||||
* Must be greater than 0.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Api\Distribution::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* Must be greater than 0.
|
||||
*
|
||||
* Generated from protobuf field <code>int32 num_finite_buckets = 1;</code>
|
||||
* @return int
|
||||
*/
|
||||
public function getNumFiniteBuckets()
|
||||
{
|
||||
return $this->num_finite_buckets;
|
||||
}
|
||||
/**
|
||||
* Must be greater than 0.
|
||||
*
|
||||
* Generated from protobuf field <code>int32 num_finite_buckets = 1;</code>
|
||||
* @param int $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setNumFiniteBuckets($var)
|
||||
{
|
||||
GPBUtil::checkInt32($var);
|
||||
$this->num_finite_buckets = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Must be greater than 1.
|
||||
*
|
||||
* Generated from protobuf field <code>double growth_factor = 2;</code>
|
||||
* @return float
|
||||
*/
|
||||
public function getGrowthFactor()
|
||||
{
|
||||
return $this->growth_factor;
|
||||
}
|
||||
/**
|
||||
* Must be greater than 1.
|
||||
*
|
||||
* Generated from protobuf field <code>double growth_factor = 2;</code>
|
||||
* @param float $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setGrowthFactor($var)
|
||||
{
|
||||
GPBUtil::checkDouble($var);
|
||||
$this->growth_factor = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Must be greater than 0.
|
||||
*
|
||||
* Generated from protobuf field <code>double scale = 3;</code>
|
||||
* @return float
|
||||
*/
|
||||
public function getScale()
|
||||
{
|
||||
return $this->scale;
|
||||
}
|
||||
/**
|
||||
* Must be greater than 0.
|
||||
*
|
||||
* Generated from protobuf field <code>double scale = 3;</code>
|
||||
* @param float $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setScale($var)
|
||||
{
|
||||
GPBUtil::checkDouble($var);
|
||||
$this->scale = $var;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
129
vendor/Gcp/google/common-protos/src/Api/Distribution/BucketOptions/Linear.php
vendored
Normal file
129
vendor/Gcp/google/common-protos/src/Api/Distribution/BucketOptions/Linear.php
vendored
Normal file
@@ -0,0 +1,129 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/distribution.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\Distribution\BucketOptions;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* Specifies a linear sequence of buckets that all have the same width
|
||||
* (except overflow and underflow). Each bucket represents a constant
|
||||
* absolute uncertainty on the specific value in the bucket.
|
||||
* There are `num_finite_buckets + 2` (= N) buckets. Bucket `i` has the
|
||||
* following boundaries:
|
||||
* Upper bound (0 <= i < N-1): offset + (width * i).
|
||||
* Lower bound (1 <= i < N): offset + (width * (i - 1)).
|
||||
*
|
||||
* Generated from protobuf message <code>google.api.Distribution.BucketOptions.Linear</code>
|
||||
*/
|
||||
class Linear extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* Must be greater than 0.
|
||||
*
|
||||
* Generated from protobuf field <code>int32 num_finite_buckets = 1;</code>
|
||||
*/
|
||||
protected $num_finite_buckets = 0;
|
||||
/**
|
||||
* Must be greater than 0.
|
||||
*
|
||||
* Generated from protobuf field <code>double width = 2;</code>
|
||||
*/
|
||||
protected $width = 0.0;
|
||||
/**
|
||||
* Lower bound of the first bucket.
|
||||
*
|
||||
* Generated from protobuf field <code>double offset = 3;</code>
|
||||
*/
|
||||
protected $offset = 0.0;
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type int $num_finite_buckets
|
||||
* Must be greater than 0.
|
||||
* @type float $width
|
||||
* Must be greater than 0.
|
||||
* @type float $offset
|
||||
* Lower bound of the first bucket.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Api\Distribution::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* Must be greater than 0.
|
||||
*
|
||||
* Generated from protobuf field <code>int32 num_finite_buckets = 1;</code>
|
||||
* @return int
|
||||
*/
|
||||
public function getNumFiniteBuckets()
|
||||
{
|
||||
return $this->num_finite_buckets;
|
||||
}
|
||||
/**
|
||||
* Must be greater than 0.
|
||||
*
|
||||
* Generated from protobuf field <code>int32 num_finite_buckets = 1;</code>
|
||||
* @param int $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setNumFiniteBuckets($var)
|
||||
{
|
||||
GPBUtil::checkInt32($var);
|
||||
$this->num_finite_buckets = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Must be greater than 0.
|
||||
*
|
||||
* Generated from protobuf field <code>double width = 2;</code>
|
||||
* @return float
|
||||
*/
|
||||
public function getWidth()
|
||||
{
|
||||
return $this->width;
|
||||
}
|
||||
/**
|
||||
* Must be greater than 0.
|
||||
*
|
||||
* Generated from protobuf field <code>double width = 2;</code>
|
||||
* @param float $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setWidth($var)
|
||||
{
|
||||
GPBUtil::checkDouble($var);
|
||||
$this->width = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Lower bound of the first bucket.
|
||||
*
|
||||
* Generated from protobuf field <code>double offset = 3;</code>
|
||||
* @return float
|
||||
*/
|
||||
public function getOffset()
|
||||
{
|
||||
return $this->offset;
|
||||
}
|
||||
/**
|
||||
* Lower bound of the first bucket.
|
||||
*
|
||||
* Generated from protobuf field <code>double offset = 3;</code>
|
||||
* @param float $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setOffset($var)
|
||||
{
|
||||
GPBUtil::checkDouble($var);
|
||||
$this->offset = $var;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
163
vendor/Gcp/google/common-protos/src/Api/Distribution/Exemplar.php
vendored
Normal file
163
vendor/Gcp/google/common-protos/src/Api/Distribution/Exemplar.php
vendored
Normal file
@@ -0,0 +1,163 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/distribution.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\Distribution;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* Exemplars are example points that may be used to annotate aggregated
|
||||
* distribution values. They are metadata that gives information about a
|
||||
* particular value added to a Distribution bucket, such as a trace ID that
|
||||
* was active when a value was added. They may contain further information,
|
||||
* such as a example values and timestamps, origin, etc.
|
||||
*
|
||||
* Generated from protobuf message <code>google.api.Distribution.Exemplar</code>
|
||||
*/
|
||||
class Exemplar extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* Value of the exemplar point. This value determines to which bucket the
|
||||
* exemplar belongs.
|
||||
*
|
||||
* Generated from protobuf field <code>double value = 1;</code>
|
||||
*/
|
||||
protected $value = 0.0;
|
||||
/**
|
||||
* The observation (sampling) time of the above value.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.protobuf.Timestamp timestamp = 2;</code>
|
||||
*/
|
||||
protected $timestamp = null;
|
||||
/**
|
||||
* Contextual information about the example value. Examples are:
|
||||
* Trace: type.googleapis.com/google.monitoring.v3.SpanContext
|
||||
* Literal string: type.googleapis.com/google.protobuf.StringValue
|
||||
* Labels dropped during aggregation:
|
||||
* type.googleapis.com/google.monitoring.v3.DroppedLabels
|
||||
* There may be only a single attachment of any given message type in a
|
||||
* single exemplar, and this is enforced by the system.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.protobuf.Any attachments = 3;</code>
|
||||
*/
|
||||
private $attachments;
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type float $value
|
||||
* Value of the exemplar point. This value determines to which bucket the
|
||||
* exemplar belongs.
|
||||
* @type \Google\Protobuf\Timestamp $timestamp
|
||||
* The observation (sampling) time of the above value.
|
||||
* @type array<\Google\Protobuf\Any>|\Google\Protobuf\Internal\RepeatedField $attachments
|
||||
* Contextual information about the example value. Examples are:
|
||||
* Trace: type.googleapis.com/google.monitoring.v3.SpanContext
|
||||
* Literal string: type.googleapis.com/google.protobuf.StringValue
|
||||
* Labels dropped during aggregation:
|
||||
* type.googleapis.com/google.monitoring.v3.DroppedLabels
|
||||
* There may be only a single attachment of any given message type in a
|
||||
* single exemplar, and this is enforced by the system.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Api\Distribution::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* Value of the exemplar point. This value determines to which bucket the
|
||||
* exemplar belongs.
|
||||
*
|
||||
* Generated from protobuf field <code>double value = 1;</code>
|
||||
* @return float
|
||||
*/
|
||||
public function getValue()
|
||||
{
|
||||
return $this->value;
|
||||
}
|
||||
/**
|
||||
* Value of the exemplar point. This value determines to which bucket the
|
||||
* exemplar belongs.
|
||||
*
|
||||
* Generated from protobuf field <code>double value = 1;</code>
|
||||
* @param float $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setValue($var)
|
||||
{
|
||||
GPBUtil::checkDouble($var);
|
||||
$this->value = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* The observation (sampling) time of the above value.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.protobuf.Timestamp timestamp = 2;</code>
|
||||
* @return \Google\Protobuf\Timestamp|null
|
||||
*/
|
||||
public function getTimestamp()
|
||||
{
|
||||
return $this->timestamp;
|
||||
}
|
||||
public function hasTimestamp()
|
||||
{
|
||||
return isset($this->timestamp);
|
||||
}
|
||||
public function clearTimestamp()
|
||||
{
|
||||
unset($this->timestamp);
|
||||
}
|
||||
/**
|
||||
* The observation (sampling) time of the above value.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.protobuf.Timestamp timestamp = 2;</code>
|
||||
* @param \Google\Protobuf\Timestamp $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setTimestamp($var)
|
||||
{
|
||||
GPBUtil::checkMessage($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Timestamp::class);
|
||||
$this->timestamp = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Contextual information about the example value. Examples are:
|
||||
* Trace: type.googleapis.com/google.monitoring.v3.SpanContext
|
||||
* Literal string: type.googleapis.com/google.protobuf.StringValue
|
||||
* Labels dropped during aggregation:
|
||||
* type.googleapis.com/google.monitoring.v3.DroppedLabels
|
||||
* There may be only a single attachment of any given message type in a
|
||||
* single exemplar, and this is enforced by the system.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.protobuf.Any attachments = 3;</code>
|
||||
* @return \Google\Protobuf\Internal\RepeatedField
|
||||
*/
|
||||
public function getAttachments()
|
||||
{
|
||||
return $this->attachments;
|
||||
}
|
||||
/**
|
||||
* Contextual information about the example value. Examples are:
|
||||
* Trace: type.googleapis.com/google.monitoring.v3.SpanContext
|
||||
* Literal string: type.googleapis.com/google.protobuf.StringValue
|
||||
* Labels dropped during aggregation:
|
||||
* type.googleapis.com/google.monitoring.v3.DroppedLabels
|
||||
* There may be only a single attachment of any given message type in a
|
||||
* single exemplar, and this is enforced by the system.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.protobuf.Any attachments = 3;</code>
|
||||
* @param array<\Google\Protobuf\Any>|\Google\Protobuf\Internal\RepeatedField $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setAttachments($var)
|
||||
{
|
||||
$arr = GPBUtil::checkRepeatedField($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::MESSAGE, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Any::class);
|
||||
$this->attachments = $arr;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
92
vendor/Gcp/google/common-protos/src/Api/Distribution/Range.php
vendored
Normal file
92
vendor/Gcp/google/common-protos/src/Api/Distribution/Range.php
vendored
Normal file
@@ -0,0 +1,92 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/distribution.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\Distribution;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* The range of the population values.
|
||||
*
|
||||
* Generated from protobuf message <code>google.api.Distribution.Range</code>
|
||||
*/
|
||||
class Range extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* The minimum of the population values.
|
||||
*
|
||||
* Generated from protobuf field <code>double min = 1;</code>
|
||||
*/
|
||||
protected $min = 0.0;
|
||||
/**
|
||||
* The maximum of the population values.
|
||||
*
|
||||
* Generated from protobuf field <code>double max = 2;</code>
|
||||
*/
|
||||
protected $max = 0.0;
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type float $min
|
||||
* The minimum of the population values.
|
||||
* @type float $max
|
||||
* The maximum of the population values.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Api\Distribution::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* The minimum of the population values.
|
||||
*
|
||||
* Generated from protobuf field <code>double min = 1;</code>
|
||||
* @return float
|
||||
*/
|
||||
public function getMin()
|
||||
{
|
||||
return $this->min;
|
||||
}
|
||||
/**
|
||||
* The minimum of the population values.
|
||||
*
|
||||
* Generated from protobuf field <code>double min = 1;</code>
|
||||
* @param float $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setMin($var)
|
||||
{
|
||||
GPBUtil::checkDouble($var);
|
||||
$this->min = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* The maximum of the population values.
|
||||
*
|
||||
* Generated from protobuf field <code>double max = 2;</code>
|
||||
* @return float
|
||||
*/
|
||||
public function getMax()
|
||||
{
|
||||
return $this->max;
|
||||
}
|
||||
/**
|
||||
* The maximum of the population values.
|
||||
*
|
||||
* Generated from protobuf field <code>double max = 2;</code>
|
||||
* @param float $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setMax($var)
|
||||
{
|
||||
GPBUtil::checkDouble($var);
|
||||
$this->max = $var;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
341
vendor/Gcp/google/common-protos/src/Api/Documentation.php
vendored
Normal file
341
vendor/Gcp/google/common-protos/src/Api/Documentation.php
vendored
Normal file
@@ -0,0 +1,341 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/documentation.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* `Documentation` provides the information for describing a service.
|
||||
* Example:
|
||||
* <pre><code>documentation:
|
||||
* summary: >
|
||||
* The Google Calendar API gives access
|
||||
* to most calendar features.
|
||||
* pages:
|
||||
* - name: Overview
|
||||
* content: (== include google/foo/overview.md ==)
|
||||
* - name: Tutorial
|
||||
* content: (== include google/foo/tutorial.md ==)
|
||||
* subpages;
|
||||
* - name: Java
|
||||
* content: (== include google/foo/tutorial_java.md ==)
|
||||
* rules:
|
||||
* - selector: google.calendar.Calendar.Get
|
||||
* description: >
|
||||
* ...
|
||||
* - selector: google.calendar.Calendar.Put
|
||||
* description: >
|
||||
* ...
|
||||
* </code></pre>
|
||||
* Documentation is provided in markdown syntax. In addition to
|
||||
* standard markdown features, definition lists, tables and fenced
|
||||
* code blocks are supported. Section headers can be provided and are
|
||||
* interpreted relative to the section nesting of the context where
|
||||
* a documentation fragment is embedded.
|
||||
* Documentation from the IDL is merged with documentation defined
|
||||
* via the config at normalization time, where documentation provided
|
||||
* by config rules overrides IDL provided.
|
||||
* A number of constructs specific to the API platform are supported
|
||||
* in documentation text.
|
||||
* In order to reference a proto element, the following
|
||||
* notation can be used:
|
||||
* <pre><code>[fully.qualified.proto.name][]</code></pre>
|
||||
* To override the display text used for the link, this can be used:
|
||||
* <pre><code>[display text][fully.qualified.proto.name]</code></pre>
|
||||
* Text can be excluded from doc using the following notation:
|
||||
* <pre><code>(-- internal comment --)</code></pre>
|
||||
* A few directives are available in documentation. Note that
|
||||
* directives must appear on a single line to be properly
|
||||
* identified. The `include` directive includes a markdown file from
|
||||
* an external source:
|
||||
* <pre><code>(== include path/to/file ==)</code></pre>
|
||||
* The `resource_for` directive marks a message to be the resource of
|
||||
* a collection in REST view. If it is not specified, tools attempt
|
||||
* to infer the resource from the operations in a collection:
|
||||
* <pre><code>(== resource_for v1.shelves.books ==)</code></pre>
|
||||
* The directive `suppress_warning` does not directly affect documentation
|
||||
* and is documented together with service config validation.
|
||||
*
|
||||
* Generated from protobuf message <code>google.api.Documentation</code>
|
||||
*/
|
||||
class Documentation extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* A short description of what the service does. The summary must be plain
|
||||
* text. It becomes the overview of the service displayed in Google Cloud
|
||||
* Console.
|
||||
* NOTE: This field is equivalent to the standard field `description`.
|
||||
*
|
||||
* Generated from protobuf field <code>string summary = 1;</code>
|
||||
*/
|
||||
protected $summary = '';
|
||||
/**
|
||||
* The top level pages for the documentation set.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.Page pages = 5;</code>
|
||||
*/
|
||||
private $pages;
|
||||
/**
|
||||
* A list of documentation rules that apply to individual API elements.
|
||||
* **NOTE:** All service configuration rules follow "last one wins" order.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.DocumentationRule rules = 3;</code>
|
||||
*/
|
||||
private $rules;
|
||||
/**
|
||||
* The URL to the root of documentation.
|
||||
*
|
||||
* Generated from protobuf field <code>string documentation_root_url = 4;</code>
|
||||
*/
|
||||
protected $documentation_root_url = '';
|
||||
/**
|
||||
* Specifies the service root url if the default one (the service name
|
||||
* from the yaml file) is not suitable. This can be seen in any fully
|
||||
* specified service urls as well as sections that show a base that other
|
||||
* urls are relative to.
|
||||
*
|
||||
* Generated from protobuf field <code>string service_root_url = 6;</code>
|
||||
*/
|
||||
protected $service_root_url = '';
|
||||
/**
|
||||
* Declares a single overview page. For example:
|
||||
* <pre><code>documentation:
|
||||
* summary: ...
|
||||
* overview: (== include overview.md ==)
|
||||
* </code></pre>
|
||||
* This is a shortcut for the following declaration (using pages style):
|
||||
* <pre><code>documentation:
|
||||
* summary: ...
|
||||
* pages:
|
||||
* - name: Overview
|
||||
* content: (== include overview.md ==)
|
||||
* </code></pre>
|
||||
* Note: you cannot specify both `overview` field and `pages` field.
|
||||
*
|
||||
* Generated from protobuf field <code>string overview = 2;</code>
|
||||
*/
|
||||
protected $overview = '';
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type string $summary
|
||||
* A short description of what the service does. The summary must be plain
|
||||
* text. It becomes the overview of the service displayed in Google Cloud
|
||||
* Console.
|
||||
* NOTE: This field is equivalent to the standard field `description`.
|
||||
* @type array<\Google\Api\Page>|\Google\Protobuf\Internal\RepeatedField $pages
|
||||
* The top level pages for the documentation set.
|
||||
* @type array<\Google\Api\DocumentationRule>|\Google\Protobuf\Internal\RepeatedField $rules
|
||||
* A list of documentation rules that apply to individual API elements.
|
||||
* **NOTE:** All service configuration rules follow "last one wins" order.
|
||||
* @type string $documentation_root_url
|
||||
* The URL to the root of documentation.
|
||||
* @type string $service_root_url
|
||||
* Specifies the service root url if the default one (the service name
|
||||
* from the yaml file) is not suitable. This can be seen in any fully
|
||||
* specified service urls as well as sections that show a base that other
|
||||
* urls are relative to.
|
||||
* @type string $overview
|
||||
* Declares a single overview page. For example:
|
||||
* <pre><code>documentation:
|
||||
* summary: ...
|
||||
* overview: (== include overview.md ==)
|
||||
* </code></pre>
|
||||
* This is a shortcut for the following declaration (using pages style):
|
||||
* <pre><code>documentation:
|
||||
* summary: ...
|
||||
* pages:
|
||||
* - name: Overview
|
||||
* content: (== include overview.md ==)
|
||||
* </code></pre>
|
||||
* Note: you cannot specify both `overview` field and `pages` field.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Api\Documentation::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* A short description of what the service does. The summary must be plain
|
||||
* text. It becomes the overview of the service displayed in Google Cloud
|
||||
* Console.
|
||||
* NOTE: This field is equivalent to the standard field `description`.
|
||||
*
|
||||
* Generated from protobuf field <code>string summary = 1;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getSummary()
|
||||
{
|
||||
return $this->summary;
|
||||
}
|
||||
/**
|
||||
* A short description of what the service does. The summary must be plain
|
||||
* text. It becomes the overview of the service displayed in Google Cloud
|
||||
* Console.
|
||||
* NOTE: This field is equivalent to the standard field `description`.
|
||||
*
|
||||
* Generated from protobuf field <code>string summary = 1;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setSummary($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->summary = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* The top level pages for the documentation set.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.Page pages = 5;</code>
|
||||
* @return \Google\Protobuf\Internal\RepeatedField
|
||||
*/
|
||||
public function getPages()
|
||||
{
|
||||
return $this->pages;
|
||||
}
|
||||
/**
|
||||
* The top level pages for the documentation set.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.Page pages = 5;</code>
|
||||
* @param array<\Google\Api\Page>|\Google\Protobuf\Internal\RepeatedField $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setPages($var)
|
||||
{
|
||||
$arr = GPBUtil::checkRepeatedField($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::MESSAGE, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\Page::class);
|
||||
$this->pages = $arr;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* A list of documentation rules that apply to individual API elements.
|
||||
* **NOTE:** All service configuration rules follow "last one wins" order.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.DocumentationRule rules = 3;</code>
|
||||
* @return \Google\Protobuf\Internal\RepeatedField
|
||||
*/
|
||||
public function getRules()
|
||||
{
|
||||
return $this->rules;
|
||||
}
|
||||
/**
|
||||
* A list of documentation rules that apply to individual API elements.
|
||||
* **NOTE:** All service configuration rules follow "last one wins" order.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.DocumentationRule rules = 3;</code>
|
||||
* @param array<\Google\Api\DocumentationRule>|\Google\Protobuf\Internal\RepeatedField $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setRules($var)
|
||||
{
|
||||
$arr = GPBUtil::checkRepeatedField($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::MESSAGE, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\DocumentationRule::class);
|
||||
$this->rules = $arr;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* The URL to the root of documentation.
|
||||
*
|
||||
* Generated from protobuf field <code>string documentation_root_url = 4;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getDocumentationRootUrl()
|
||||
{
|
||||
return $this->documentation_root_url;
|
||||
}
|
||||
/**
|
||||
* The URL to the root of documentation.
|
||||
*
|
||||
* Generated from protobuf field <code>string documentation_root_url = 4;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setDocumentationRootUrl($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->documentation_root_url = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Specifies the service root url if the default one (the service name
|
||||
* from the yaml file) is not suitable. This can be seen in any fully
|
||||
* specified service urls as well as sections that show a base that other
|
||||
* urls are relative to.
|
||||
*
|
||||
* Generated from protobuf field <code>string service_root_url = 6;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getServiceRootUrl()
|
||||
{
|
||||
return $this->service_root_url;
|
||||
}
|
||||
/**
|
||||
* Specifies the service root url if the default one (the service name
|
||||
* from the yaml file) is not suitable. This can be seen in any fully
|
||||
* specified service urls as well as sections that show a base that other
|
||||
* urls are relative to.
|
||||
*
|
||||
* Generated from protobuf field <code>string service_root_url = 6;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setServiceRootUrl($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->service_root_url = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Declares a single overview page. For example:
|
||||
* <pre><code>documentation:
|
||||
* summary: ...
|
||||
* overview: (== include overview.md ==)
|
||||
* </code></pre>
|
||||
* This is a shortcut for the following declaration (using pages style):
|
||||
* <pre><code>documentation:
|
||||
* summary: ...
|
||||
* pages:
|
||||
* - name: Overview
|
||||
* content: (== include overview.md ==)
|
||||
* </code></pre>
|
||||
* Note: you cannot specify both `overview` field and `pages` field.
|
||||
*
|
||||
* Generated from protobuf field <code>string overview = 2;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getOverview()
|
||||
{
|
||||
return $this->overview;
|
||||
}
|
||||
/**
|
||||
* Declares a single overview page. For example:
|
||||
* <pre><code>documentation:
|
||||
* summary: ...
|
||||
* overview: (== include overview.md ==)
|
||||
* </code></pre>
|
||||
* This is a shortcut for the following declaration (using pages style):
|
||||
* <pre><code>documentation:
|
||||
* summary: ...
|
||||
* pages:
|
||||
* - name: Overview
|
||||
* content: (== include overview.md ==)
|
||||
* </code></pre>
|
||||
* Note: you cannot specify both `overview` field and `pages` field.
|
||||
*
|
||||
* Generated from protobuf field <code>string overview = 2;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setOverview($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->overview = $var;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
159
vendor/Gcp/google/common-protos/src/Api/DocumentationRule.php
vendored
Normal file
159
vendor/Gcp/google/common-protos/src/Api/DocumentationRule.php
vendored
Normal file
@@ -0,0 +1,159 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/documentation.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* A documentation rule provides information about individual API elements.
|
||||
*
|
||||
* Generated from protobuf message <code>google.api.DocumentationRule</code>
|
||||
*/
|
||||
class DocumentationRule extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* The selector is a comma-separated list of patterns for any element such as
|
||||
* a method, a field, an enum value. Each pattern is a qualified name of the
|
||||
* element which may end in "*", indicating a wildcard. Wildcards are only
|
||||
* allowed at the end and for a whole component of the qualified name,
|
||||
* i.e. "foo.*" is ok, but not "foo.b*" or "foo.*.bar". A wildcard will match
|
||||
* one or more components. To specify a default for all applicable elements,
|
||||
* the whole pattern "*" is used.
|
||||
*
|
||||
* Generated from protobuf field <code>string selector = 1;</code>
|
||||
*/
|
||||
protected $selector = '';
|
||||
/**
|
||||
* Description of the selected proto element (e.g. a message, a method, a
|
||||
* 'service' definition, or a field). Defaults to leading & trailing comments
|
||||
* taken from the proto source definition of the proto element.
|
||||
*
|
||||
* Generated from protobuf field <code>string description = 2;</code>
|
||||
*/
|
||||
protected $description = '';
|
||||
/**
|
||||
* Deprecation description of the selected element(s). It can be provided if
|
||||
* an element is marked as `deprecated`.
|
||||
*
|
||||
* Generated from protobuf field <code>string deprecation_description = 3;</code>
|
||||
*/
|
||||
protected $deprecation_description = '';
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type string $selector
|
||||
* The selector is a comma-separated list of patterns for any element such as
|
||||
* a method, a field, an enum value. Each pattern is a qualified name of the
|
||||
* element which may end in "*", indicating a wildcard. Wildcards are only
|
||||
* allowed at the end and for a whole component of the qualified name,
|
||||
* i.e. "foo.*" is ok, but not "foo.b*" or "foo.*.bar". A wildcard will match
|
||||
* one or more components. To specify a default for all applicable elements,
|
||||
* the whole pattern "*" is used.
|
||||
* @type string $description
|
||||
* Description of the selected proto element (e.g. a message, a method, a
|
||||
* 'service' definition, or a field). Defaults to leading & trailing comments
|
||||
* taken from the proto source definition of the proto element.
|
||||
* @type string $deprecation_description
|
||||
* Deprecation description of the selected element(s). It can be provided if
|
||||
* an element is marked as `deprecated`.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Api\Documentation::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* The selector is a comma-separated list of patterns for any element such as
|
||||
* a method, a field, an enum value. Each pattern is a qualified name of the
|
||||
* element which may end in "*", indicating a wildcard. Wildcards are only
|
||||
* allowed at the end and for a whole component of the qualified name,
|
||||
* i.e. "foo.*" is ok, but not "foo.b*" or "foo.*.bar". A wildcard will match
|
||||
* one or more components. To specify a default for all applicable elements,
|
||||
* the whole pattern "*" is used.
|
||||
*
|
||||
* Generated from protobuf field <code>string selector = 1;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getSelector()
|
||||
{
|
||||
return $this->selector;
|
||||
}
|
||||
/**
|
||||
* The selector is a comma-separated list of patterns for any element such as
|
||||
* a method, a field, an enum value. Each pattern is a qualified name of the
|
||||
* element which may end in "*", indicating a wildcard. Wildcards are only
|
||||
* allowed at the end and for a whole component of the qualified name,
|
||||
* i.e. "foo.*" is ok, but not "foo.b*" or "foo.*.bar". A wildcard will match
|
||||
* one or more components. To specify a default for all applicable elements,
|
||||
* the whole pattern "*" is used.
|
||||
*
|
||||
* Generated from protobuf field <code>string selector = 1;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setSelector($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->selector = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Description of the selected proto element (e.g. a message, a method, a
|
||||
* 'service' definition, or a field). Defaults to leading & trailing comments
|
||||
* taken from the proto source definition of the proto element.
|
||||
*
|
||||
* Generated from protobuf field <code>string description = 2;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getDescription()
|
||||
{
|
||||
return $this->description;
|
||||
}
|
||||
/**
|
||||
* Description of the selected proto element (e.g. a message, a method, a
|
||||
* 'service' definition, or a field). Defaults to leading & trailing comments
|
||||
* taken from the proto source definition of the proto element.
|
||||
*
|
||||
* Generated from protobuf field <code>string description = 2;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setDescription($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->description = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Deprecation description of the selected element(s). It can be provided if
|
||||
* an element is marked as `deprecated`.
|
||||
*
|
||||
* Generated from protobuf field <code>string deprecation_description = 3;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getDeprecationDescription()
|
||||
{
|
||||
return $this->deprecation_description;
|
||||
}
|
||||
/**
|
||||
* Deprecation description of the selected element(s). It can be provided if
|
||||
* an element is marked as `deprecated`.
|
||||
*
|
||||
* Generated from protobuf field <code>string deprecation_description = 3;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setDeprecationDescription($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->deprecation_description = $var;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
284
vendor/Gcp/google/common-protos/src/Api/DotnetSettings.php
vendored
Normal file
284
vendor/Gcp/google/common-protos/src/Api/DotnetSettings.php
vendored
Normal file
@@ -0,0 +1,284 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/client.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* Settings for Dotnet client libraries.
|
||||
*
|
||||
* Generated from protobuf message <code>google.api.DotnetSettings</code>
|
||||
*/
|
||||
class DotnetSettings extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* Some settings.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.CommonLanguageSettings common = 1;</code>
|
||||
*/
|
||||
protected $common = null;
|
||||
/**
|
||||
* Map from original service names to renamed versions.
|
||||
* This is used when the default generated types
|
||||
* would cause a naming conflict. (Neither name is
|
||||
* fully-qualified.)
|
||||
* Example: Subscriber to SubscriberServiceApi.
|
||||
*
|
||||
* Generated from protobuf field <code>map<string, string> renamed_services = 2;</code>
|
||||
*/
|
||||
private $renamed_services;
|
||||
/**
|
||||
* Map from full resource types to the effective short name
|
||||
* for the resource. This is used when otherwise resource
|
||||
* named from different services would cause naming collisions.
|
||||
* Example entry:
|
||||
* "datalabeling.googleapis.com/Dataset": "DataLabelingDataset"
|
||||
*
|
||||
* Generated from protobuf field <code>map<string, string> renamed_resources = 3;</code>
|
||||
*/
|
||||
private $renamed_resources;
|
||||
/**
|
||||
* List of full resource types to ignore during generation.
|
||||
* This is typically used for API-specific Location resources,
|
||||
* which should be handled by the generator as if they were actually
|
||||
* the common Location resources.
|
||||
* Example entry: "documentai.googleapis.com/Location"
|
||||
*
|
||||
* Generated from protobuf field <code>repeated string ignored_resources = 4;</code>
|
||||
*/
|
||||
private $ignored_resources;
|
||||
/**
|
||||
* Namespaces which must be aliased in snippets due to
|
||||
* a known (but non-generator-predictable) naming collision
|
||||
*
|
||||
* Generated from protobuf field <code>repeated string forced_namespace_aliases = 5;</code>
|
||||
*/
|
||||
private $forced_namespace_aliases;
|
||||
/**
|
||||
* Method signatures (in the form "service.method(signature)")
|
||||
* which are provided separately, so shouldn't be generated.
|
||||
* Snippets *calling* these methods are still generated, however.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated string handwritten_signatures = 6;</code>
|
||||
*/
|
||||
private $handwritten_signatures;
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type \Google\Api\CommonLanguageSettings $common
|
||||
* Some settings.
|
||||
* @type array|\Google\Protobuf\Internal\MapField $renamed_services
|
||||
* Map from original service names to renamed versions.
|
||||
* This is used when the default generated types
|
||||
* would cause a naming conflict. (Neither name is
|
||||
* fully-qualified.)
|
||||
* Example: Subscriber to SubscriberServiceApi.
|
||||
* @type array|\Google\Protobuf\Internal\MapField $renamed_resources
|
||||
* Map from full resource types to the effective short name
|
||||
* for the resource. This is used when otherwise resource
|
||||
* named from different services would cause naming collisions.
|
||||
* Example entry:
|
||||
* "datalabeling.googleapis.com/Dataset": "DataLabelingDataset"
|
||||
* @type array<string>|\Google\Protobuf\Internal\RepeatedField $ignored_resources
|
||||
* List of full resource types to ignore during generation.
|
||||
* This is typically used for API-specific Location resources,
|
||||
* which should be handled by the generator as if they were actually
|
||||
* the common Location resources.
|
||||
* Example entry: "documentai.googleapis.com/Location"
|
||||
* @type array<string>|\Google\Protobuf\Internal\RepeatedField $forced_namespace_aliases
|
||||
* Namespaces which must be aliased in snippets due to
|
||||
* a known (but non-generator-predictable) naming collision
|
||||
* @type array<string>|\Google\Protobuf\Internal\RepeatedField $handwritten_signatures
|
||||
* Method signatures (in the form "service.method(signature)")
|
||||
* which are provided separately, so shouldn't be generated.
|
||||
* Snippets *calling* these methods are still generated, however.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Api\Client::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* Some settings.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.CommonLanguageSettings common = 1;</code>
|
||||
* @return \Google\Api\CommonLanguageSettings|null
|
||||
*/
|
||||
public function getCommon()
|
||||
{
|
||||
return $this->common;
|
||||
}
|
||||
public function hasCommon()
|
||||
{
|
||||
return isset($this->common);
|
||||
}
|
||||
public function clearCommon()
|
||||
{
|
||||
unset($this->common);
|
||||
}
|
||||
/**
|
||||
* Some settings.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.CommonLanguageSettings common = 1;</code>
|
||||
* @param \Google\Api\CommonLanguageSettings $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setCommon($var)
|
||||
{
|
||||
GPBUtil::checkMessage($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\CommonLanguageSettings::class);
|
||||
$this->common = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Map from original service names to renamed versions.
|
||||
* This is used when the default generated types
|
||||
* would cause a naming conflict. (Neither name is
|
||||
* fully-qualified.)
|
||||
* Example: Subscriber to SubscriberServiceApi.
|
||||
*
|
||||
* Generated from protobuf field <code>map<string, string> renamed_services = 2;</code>
|
||||
* @return \Google\Protobuf\Internal\MapField
|
||||
*/
|
||||
public function getRenamedServices()
|
||||
{
|
||||
return $this->renamed_services;
|
||||
}
|
||||
/**
|
||||
* Map from original service names to renamed versions.
|
||||
* This is used when the default generated types
|
||||
* would cause a naming conflict. (Neither name is
|
||||
* fully-qualified.)
|
||||
* Example: Subscriber to SubscriberServiceApi.
|
||||
*
|
||||
* Generated from protobuf field <code>map<string, string> renamed_services = 2;</code>
|
||||
* @param array|\Google\Protobuf\Internal\MapField $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setRenamedServices($var)
|
||||
{
|
||||
$arr = GPBUtil::checkMapField($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::STRING, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::STRING);
|
||||
$this->renamed_services = $arr;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Map from full resource types to the effective short name
|
||||
* for the resource. This is used when otherwise resource
|
||||
* named from different services would cause naming collisions.
|
||||
* Example entry:
|
||||
* "datalabeling.googleapis.com/Dataset": "DataLabelingDataset"
|
||||
*
|
||||
* Generated from protobuf field <code>map<string, string> renamed_resources = 3;</code>
|
||||
* @return \Google\Protobuf\Internal\MapField
|
||||
*/
|
||||
public function getRenamedResources()
|
||||
{
|
||||
return $this->renamed_resources;
|
||||
}
|
||||
/**
|
||||
* Map from full resource types to the effective short name
|
||||
* for the resource. This is used when otherwise resource
|
||||
* named from different services would cause naming collisions.
|
||||
* Example entry:
|
||||
* "datalabeling.googleapis.com/Dataset": "DataLabelingDataset"
|
||||
*
|
||||
* Generated from protobuf field <code>map<string, string> renamed_resources = 3;</code>
|
||||
* @param array|\Google\Protobuf\Internal\MapField $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setRenamedResources($var)
|
||||
{
|
||||
$arr = GPBUtil::checkMapField($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::STRING, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::STRING);
|
||||
$this->renamed_resources = $arr;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* List of full resource types to ignore during generation.
|
||||
* This is typically used for API-specific Location resources,
|
||||
* which should be handled by the generator as if they were actually
|
||||
* the common Location resources.
|
||||
* Example entry: "documentai.googleapis.com/Location"
|
||||
*
|
||||
* Generated from protobuf field <code>repeated string ignored_resources = 4;</code>
|
||||
* @return \Google\Protobuf\Internal\RepeatedField
|
||||
*/
|
||||
public function getIgnoredResources()
|
||||
{
|
||||
return $this->ignored_resources;
|
||||
}
|
||||
/**
|
||||
* List of full resource types to ignore during generation.
|
||||
* This is typically used for API-specific Location resources,
|
||||
* which should be handled by the generator as if they were actually
|
||||
* the common Location resources.
|
||||
* Example entry: "documentai.googleapis.com/Location"
|
||||
*
|
||||
* Generated from protobuf field <code>repeated string ignored_resources = 4;</code>
|
||||
* @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setIgnoredResources($var)
|
||||
{
|
||||
$arr = GPBUtil::checkRepeatedField($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::STRING);
|
||||
$this->ignored_resources = $arr;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Namespaces which must be aliased in snippets due to
|
||||
* a known (but non-generator-predictable) naming collision
|
||||
*
|
||||
* Generated from protobuf field <code>repeated string forced_namespace_aliases = 5;</code>
|
||||
* @return \Google\Protobuf\Internal\RepeatedField
|
||||
*/
|
||||
public function getForcedNamespaceAliases()
|
||||
{
|
||||
return $this->forced_namespace_aliases;
|
||||
}
|
||||
/**
|
||||
* Namespaces which must be aliased in snippets due to
|
||||
* a known (but non-generator-predictable) naming collision
|
||||
*
|
||||
* Generated from protobuf field <code>repeated string forced_namespace_aliases = 5;</code>
|
||||
* @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setForcedNamespaceAliases($var)
|
||||
{
|
||||
$arr = GPBUtil::checkRepeatedField($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::STRING);
|
||||
$this->forced_namespace_aliases = $arr;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Method signatures (in the form "service.method(signature)")
|
||||
* which are provided separately, so shouldn't be generated.
|
||||
* Snippets *calling* these methods are still generated, however.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated string handwritten_signatures = 6;</code>
|
||||
* @return \Google\Protobuf\Internal\RepeatedField
|
||||
*/
|
||||
public function getHandwrittenSignatures()
|
||||
{
|
||||
return $this->handwritten_signatures;
|
||||
}
|
||||
/**
|
||||
* Method signatures (in the form "service.method(signature)")
|
||||
* which are provided separately, so shouldn't be generated.
|
||||
* Snippets *calling* these methods are still generated, however.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated string handwritten_signatures = 6;</code>
|
||||
* @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setHandwrittenSignatures($var)
|
||||
{
|
||||
$arr = GPBUtil::checkRepeatedField($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::STRING);
|
||||
$this->handwritten_signatures = $arr;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
229
vendor/Gcp/google/common-protos/src/Api/Endpoint.php
vendored
Normal file
229
vendor/Gcp/google/common-protos/src/Api/Endpoint.php
vendored
Normal file
@@ -0,0 +1,229 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/endpoint.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* `Endpoint` describes a network address of a service that serves a set of
|
||||
* APIs. It is commonly known as a service endpoint. A service may expose
|
||||
* any number of service endpoints, and all service endpoints share the same
|
||||
* service definition, such as quota limits and monitoring metrics.
|
||||
* Example:
|
||||
* type: google.api.Service
|
||||
* name: library-example.googleapis.com
|
||||
* endpoints:
|
||||
* # Declares network address `https://library-example.googleapis.com`
|
||||
* # for service `library-example.googleapis.com`. The `https` scheme
|
||||
* # is implicit for all service endpoints. Other schemes may be
|
||||
* # supported in the future.
|
||||
* - name: library-example.googleapis.com
|
||||
* allow_cors: false
|
||||
* - name: content-staging-library-example.googleapis.com
|
||||
* # Allows HTTP OPTIONS calls to be passed to the API frontend, for it
|
||||
* # to decide whether the subsequent cross-origin request is allowed
|
||||
* # to proceed.
|
||||
* allow_cors: true
|
||||
*
|
||||
* Generated from protobuf message <code>google.api.Endpoint</code>
|
||||
*/
|
||||
class Endpoint extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* The canonical name of this endpoint.
|
||||
*
|
||||
* Generated from protobuf field <code>string name = 1;</code>
|
||||
*/
|
||||
protected $name = '';
|
||||
/**
|
||||
* Unimplemented. Dot not use.
|
||||
* DEPRECATED: This field is no longer supported. Instead of using aliases,
|
||||
* please specify multiple [google.api.Endpoint][google.api.Endpoint] for each
|
||||
* of the intended aliases.
|
||||
* Additional names that this endpoint will be hosted on.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated string aliases = 2 [deprecated = true];</code>
|
||||
* @deprecated
|
||||
*/
|
||||
private $aliases;
|
||||
/**
|
||||
* The specification of an Internet routable address of API frontend that will
|
||||
* handle requests to this [API
|
||||
* Endpoint](https://cloud.google.com/apis/design/glossary). It should be
|
||||
* either a valid IPv4 address or a fully-qualified domain name. For example,
|
||||
* "8.8.8.8" or "myservice.appspot.com".
|
||||
*
|
||||
* Generated from protobuf field <code>string target = 101;</code>
|
||||
*/
|
||||
protected $target = '';
|
||||
/**
|
||||
* Allowing
|
||||
* [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), aka
|
||||
* cross-domain traffic, would allow the backends served from this endpoint to
|
||||
* receive and respond to HTTP OPTIONS requests. The response will be used by
|
||||
* the browser to determine whether the subsequent cross-origin request is
|
||||
* allowed to proceed.
|
||||
*
|
||||
* Generated from protobuf field <code>bool allow_cors = 5;</code>
|
||||
*/
|
||||
protected $allow_cors = \false;
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type string $name
|
||||
* The canonical name of this endpoint.
|
||||
* @type array<string>|\Google\Protobuf\Internal\RepeatedField $aliases
|
||||
* Unimplemented. Dot not use.
|
||||
* DEPRECATED: This field is no longer supported. Instead of using aliases,
|
||||
* please specify multiple [google.api.Endpoint][google.api.Endpoint] for each
|
||||
* of the intended aliases.
|
||||
* Additional names that this endpoint will be hosted on.
|
||||
* @type string $target
|
||||
* The specification of an Internet routable address of API frontend that will
|
||||
* handle requests to this [API
|
||||
* Endpoint](https://cloud.google.com/apis/design/glossary). It should be
|
||||
* either a valid IPv4 address or a fully-qualified domain name. For example,
|
||||
* "8.8.8.8" or "myservice.appspot.com".
|
||||
* @type bool $allow_cors
|
||||
* Allowing
|
||||
* [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), aka
|
||||
* cross-domain traffic, would allow the backends served from this endpoint to
|
||||
* receive and respond to HTTP OPTIONS requests. The response will be used by
|
||||
* the browser to determine whether the subsequent cross-origin request is
|
||||
* allowed to proceed.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Api\Endpoint::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* The canonical name of this endpoint.
|
||||
*
|
||||
* Generated from protobuf field <code>string name = 1;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getName()
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
/**
|
||||
* The canonical name of this endpoint.
|
||||
*
|
||||
* Generated from protobuf field <code>string name = 1;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setName($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->name = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Unimplemented. Dot not use.
|
||||
* DEPRECATED: This field is no longer supported. Instead of using aliases,
|
||||
* please specify multiple [google.api.Endpoint][google.api.Endpoint] for each
|
||||
* of the intended aliases.
|
||||
* Additional names that this endpoint will be hosted on.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated string aliases = 2 [deprecated = true];</code>
|
||||
* @return \Google\Protobuf\Internal\RepeatedField
|
||||
* @deprecated
|
||||
*/
|
||||
public function getAliases()
|
||||
{
|
||||
@\trigger_error('aliases is deprecated.', \E_USER_DEPRECATED);
|
||||
return $this->aliases;
|
||||
}
|
||||
/**
|
||||
* Unimplemented. Dot not use.
|
||||
* DEPRECATED: This field is no longer supported. Instead of using aliases,
|
||||
* please specify multiple [google.api.Endpoint][google.api.Endpoint] for each
|
||||
* of the intended aliases.
|
||||
* Additional names that this endpoint will be hosted on.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated string aliases = 2 [deprecated = true];</code>
|
||||
* @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
|
||||
* @return $this
|
||||
* @deprecated
|
||||
*/
|
||||
public function setAliases($var)
|
||||
{
|
||||
@\trigger_error('aliases is deprecated.', \E_USER_DEPRECATED);
|
||||
$arr = GPBUtil::checkRepeatedField($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::STRING);
|
||||
$this->aliases = $arr;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* The specification of an Internet routable address of API frontend that will
|
||||
* handle requests to this [API
|
||||
* Endpoint](https://cloud.google.com/apis/design/glossary). It should be
|
||||
* either a valid IPv4 address or a fully-qualified domain name. For example,
|
||||
* "8.8.8.8" or "myservice.appspot.com".
|
||||
*
|
||||
* Generated from protobuf field <code>string target = 101;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getTarget()
|
||||
{
|
||||
return $this->target;
|
||||
}
|
||||
/**
|
||||
* The specification of an Internet routable address of API frontend that will
|
||||
* handle requests to this [API
|
||||
* Endpoint](https://cloud.google.com/apis/design/glossary). It should be
|
||||
* either a valid IPv4 address or a fully-qualified domain name. For example,
|
||||
* "8.8.8.8" or "myservice.appspot.com".
|
||||
*
|
||||
* Generated from protobuf field <code>string target = 101;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setTarget($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->target = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Allowing
|
||||
* [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), aka
|
||||
* cross-domain traffic, would allow the backends served from this endpoint to
|
||||
* receive and respond to HTTP OPTIONS requests. The response will be used by
|
||||
* the browser to determine whether the subsequent cross-origin request is
|
||||
* allowed to proceed.
|
||||
*
|
||||
* Generated from protobuf field <code>bool allow_cors = 5;</code>
|
||||
* @return bool
|
||||
*/
|
||||
public function getAllowCors()
|
||||
{
|
||||
return $this->allow_cors;
|
||||
}
|
||||
/**
|
||||
* Allowing
|
||||
* [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), aka
|
||||
* cross-domain traffic, would allow the backends served from this endpoint to
|
||||
* receive and respond to HTTP OPTIONS requests. The response will be used by
|
||||
* the browser to determine whether the subsequent cross-origin request is
|
||||
* allowed to proceed.
|
||||
*
|
||||
* Generated from protobuf field <code>bool allow_cors = 5;</code>
|
||||
* @param bool $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setAllowCors($var)
|
||||
{
|
||||
GPBUtil::checkBool($var);
|
||||
$this->allow_cors = $var;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
594
vendor/Gcp/google/common-protos/src/Api/ErrorReason.php
vendored
Normal file
594
vendor/Gcp/google/common-protos/src/Api/ErrorReason.php
vendored
Normal file
@@ -0,0 +1,594 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/error_reason.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api;
|
||||
|
||||
use UnexpectedValueException;
|
||||
/**
|
||||
* Defines the supported values for `google.rpc.ErrorInfo.reason` for the
|
||||
* `googleapis.com` error domain. This error domain is reserved for [Service
|
||||
* Infrastructure](https://cloud.google.com/service-infrastructure/docs/overview).
|
||||
* For each error info of this domain, the metadata key "service" refers to the
|
||||
* logical identifier of an API service, such as "pubsub.googleapis.com". The
|
||||
* "consumer" refers to the entity that consumes an API Service. It typically is
|
||||
* a Google project that owns the client application or the server resource,
|
||||
* such as "projects/123". Other metadata keys are specific to each error
|
||||
* reason. For more information, see the definition of the specific error
|
||||
* reason.
|
||||
*
|
||||
* Protobuf type <code>google.api.ErrorReason</code>
|
||||
*/
|
||||
class ErrorReason
|
||||
{
|
||||
/**
|
||||
* Do not use this default value.
|
||||
*
|
||||
* Generated from protobuf enum <code>ERROR_REASON_UNSPECIFIED = 0;</code>
|
||||
*/
|
||||
const ERROR_REASON_UNSPECIFIED = 0;
|
||||
/**
|
||||
* The request is calling a disabled service for a consumer.
|
||||
* Example of an ErrorInfo when the consumer "projects/123" contacting
|
||||
* "pubsub.googleapis.com" service which is disabled:
|
||||
* { "reason": "SERVICE_DISABLED",
|
||||
* "domain": "googleapis.com",
|
||||
* "metadata": {
|
||||
* "consumer": "projects/123",
|
||||
* "service": "pubsub.googleapis.com"
|
||||
* }
|
||||
* }
|
||||
* This response indicates the "pubsub.googleapis.com" has been disabled in
|
||||
* "projects/123".
|
||||
*
|
||||
* Generated from protobuf enum <code>SERVICE_DISABLED = 1;</code>
|
||||
*/
|
||||
const SERVICE_DISABLED = 1;
|
||||
/**
|
||||
* The request whose associated billing account is disabled.
|
||||
* Example of an ErrorInfo when the consumer "projects/123" fails to contact
|
||||
* "pubsub.googleapis.com" service because the associated billing account is
|
||||
* disabled:
|
||||
* { "reason": "BILLING_DISABLED",
|
||||
* "domain": "googleapis.com",
|
||||
* "metadata": {
|
||||
* "consumer": "projects/123",
|
||||
* "service": "pubsub.googleapis.com"
|
||||
* }
|
||||
* }
|
||||
* This response indicates the billing account associated has been disabled.
|
||||
*
|
||||
* Generated from protobuf enum <code>BILLING_DISABLED = 2;</code>
|
||||
*/
|
||||
const BILLING_DISABLED = 2;
|
||||
/**
|
||||
* The request is denied because the provided [API
|
||||
* key](https://cloud.google.com/docs/authentication/api-keys) is invalid. It
|
||||
* may be in a bad format, cannot be found, or has been expired).
|
||||
* Example of an ErrorInfo when the request is contacting
|
||||
* "storage.googleapis.com" service with an invalid API key:
|
||||
* { "reason": "API_KEY_INVALID",
|
||||
* "domain": "googleapis.com",
|
||||
* "metadata": {
|
||||
* "service": "storage.googleapis.com",
|
||||
* }
|
||||
* }
|
||||
*
|
||||
* Generated from protobuf enum <code>API_KEY_INVALID = 3;</code>
|
||||
*/
|
||||
const API_KEY_INVALID = 3;
|
||||
/**
|
||||
* The request is denied because it violates [API key API
|
||||
* restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_api_restrictions).
|
||||
* Example of an ErrorInfo when the consumer "projects/123" fails to call the
|
||||
* "storage.googleapis.com" service because this service is restricted in the
|
||||
* API key:
|
||||
* { "reason": "API_KEY_SERVICE_BLOCKED",
|
||||
* "domain": "googleapis.com",
|
||||
* "metadata": {
|
||||
* "consumer": "projects/123",
|
||||
* "service": "storage.googleapis.com"
|
||||
* }
|
||||
* }
|
||||
*
|
||||
* Generated from protobuf enum <code>API_KEY_SERVICE_BLOCKED = 4;</code>
|
||||
*/
|
||||
const API_KEY_SERVICE_BLOCKED = 4;
|
||||
/**
|
||||
* The request is denied because it violates [API key HTTP
|
||||
* restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_http_restrictions).
|
||||
* Example of an ErrorInfo when the consumer "projects/123" fails to call
|
||||
* "storage.googleapis.com" service because the http referrer of the request
|
||||
* violates API key HTTP restrictions:
|
||||
* { "reason": "API_KEY_HTTP_REFERRER_BLOCKED",
|
||||
* "domain": "googleapis.com",
|
||||
* "metadata": {
|
||||
* "consumer": "projects/123",
|
||||
* "service": "storage.googleapis.com",
|
||||
* }
|
||||
* }
|
||||
*
|
||||
* Generated from protobuf enum <code>API_KEY_HTTP_REFERRER_BLOCKED = 7;</code>
|
||||
*/
|
||||
const API_KEY_HTTP_REFERRER_BLOCKED = 7;
|
||||
/**
|
||||
* The request is denied because it violates [API key IP address
|
||||
* restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_application_restrictions).
|
||||
* Example of an ErrorInfo when the consumer "projects/123" fails to call
|
||||
* "storage.googleapis.com" service because the caller IP of the request
|
||||
* violates API key IP address restrictions:
|
||||
* { "reason": "API_KEY_IP_ADDRESS_BLOCKED",
|
||||
* "domain": "googleapis.com",
|
||||
* "metadata": {
|
||||
* "consumer": "projects/123",
|
||||
* "service": "storage.googleapis.com",
|
||||
* }
|
||||
* }
|
||||
*
|
||||
* Generated from protobuf enum <code>API_KEY_IP_ADDRESS_BLOCKED = 8;</code>
|
||||
*/
|
||||
const API_KEY_IP_ADDRESS_BLOCKED = 8;
|
||||
/**
|
||||
* The request is denied because it violates [API key Android application
|
||||
* restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_application_restrictions).
|
||||
* Example of an ErrorInfo when the consumer "projects/123" fails to call
|
||||
* "storage.googleapis.com" service because the request from the Android apps
|
||||
* violates the API key Android application restrictions:
|
||||
* { "reason": "API_KEY_ANDROID_APP_BLOCKED",
|
||||
* "domain": "googleapis.com",
|
||||
* "metadata": {
|
||||
* "consumer": "projects/123",
|
||||
* "service": "storage.googleapis.com"
|
||||
* }
|
||||
* }
|
||||
*
|
||||
* Generated from protobuf enum <code>API_KEY_ANDROID_APP_BLOCKED = 9;</code>
|
||||
*/
|
||||
const API_KEY_ANDROID_APP_BLOCKED = 9;
|
||||
/**
|
||||
* The request is denied because it violates [API key iOS application
|
||||
* restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_application_restrictions).
|
||||
* Example of an ErrorInfo when the consumer "projects/123" fails to call
|
||||
* "storage.googleapis.com" service because the request from the iOS apps
|
||||
* violates the API key iOS application restrictions:
|
||||
* { "reason": "API_KEY_IOS_APP_BLOCKED",
|
||||
* "domain": "googleapis.com",
|
||||
* "metadata": {
|
||||
* "consumer": "projects/123",
|
||||
* "service": "storage.googleapis.com"
|
||||
* }
|
||||
* }
|
||||
*
|
||||
* Generated from protobuf enum <code>API_KEY_IOS_APP_BLOCKED = 13;</code>
|
||||
*/
|
||||
const API_KEY_IOS_APP_BLOCKED = 13;
|
||||
/**
|
||||
* The request is denied because there is not enough rate quota for the
|
||||
* consumer.
|
||||
* Example of an ErrorInfo when the consumer "projects/123" fails to contact
|
||||
* "pubsub.googleapis.com" service because consumer's rate quota usage has
|
||||
* reached the maximum value set for the quota limit
|
||||
* "ReadsPerMinutePerProject" on the quota metric
|
||||
* "pubsub.googleapis.com/read_requests":
|
||||
* { "reason": "RATE_LIMIT_EXCEEDED",
|
||||
* "domain": "googleapis.com",
|
||||
* "metadata": {
|
||||
* "consumer": "projects/123",
|
||||
* "service": "pubsub.googleapis.com",
|
||||
* "quota_metric": "pubsub.googleapis.com/read_requests",
|
||||
* "quota_limit": "ReadsPerMinutePerProject"
|
||||
* }
|
||||
* }
|
||||
* Example of an ErrorInfo when the consumer "projects/123" checks quota on
|
||||
* the service "dataflow.googleapis.com" and hits the organization quota
|
||||
* limit "DefaultRequestsPerMinutePerOrganization" on the metric
|
||||
* "dataflow.googleapis.com/default_requests".
|
||||
* { "reason": "RATE_LIMIT_EXCEEDED",
|
||||
* "domain": "googleapis.com",
|
||||
* "metadata": {
|
||||
* "consumer": "projects/123",
|
||||
* "service": "dataflow.googleapis.com",
|
||||
* "quota_metric": "dataflow.googleapis.com/default_requests",
|
||||
* "quota_limit": "DefaultRequestsPerMinutePerOrganization"
|
||||
* }
|
||||
* }
|
||||
*
|
||||
* Generated from protobuf enum <code>RATE_LIMIT_EXCEEDED = 5;</code>
|
||||
*/
|
||||
const RATE_LIMIT_EXCEEDED = 5;
|
||||
/**
|
||||
* The request is denied because there is not enough resource quota for the
|
||||
* consumer.
|
||||
* Example of an ErrorInfo when the consumer "projects/123" fails to contact
|
||||
* "compute.googleapis.com" service because consumer's resource quota usage
|
||||
* has reached the maximum value set for the quota limit "VMsPerProject"
|
||||
* on the quota metric "compute.googleapis.com/vms":
|
||||
* { "reason": "RESOURCE_QUOTA_EXCEEDED",
|
||||
* "domain": "googleapis.com",
|
||||
* "metadata": {
|
||||
* "consumer": "projects/123",
|
||||
* "service": "compute.googleapis.com",
|
||||
* "quota_metric": "compute.googleapis.com/vms",
|
||||
* "quota_limit": "VMsPerProject"
|
||||
* }
|
||||
* }
|
||||
* Example of an ErrorInfo when the consumer "projects/123" checks resource
|
||||
* quota on the service "dataflow.googleapis.com" and hits the organization
|
||||
* quota limit "jobs-per-organization" on the metric
|
||||
* "dataflow.googleapis.com/job_count".
|
||||
* { "reason": "RESOURCE_QUOTA_EXCEEDED",
|
||||
* "domain": "googleapis.com",
|
||||
* "metadata": {
|
||||
* "consumer": "projects/123",
|
||||
* "service": "dataflow.googleapis.com",
|
||||
* "quota_metric": "dataflow.googleapis.com/job_count",
|
||||
* "quota_limit": "jobs-per-organization"
|
||||
* }
|
||||
* }
|
||||
*
|
||||
* Generated from protobuf enum <code>RESOURCE_QUOTA_EXCEEDED = 6;</code>
|
||||
*/
|
||||
const RESOURCE_QUOTA_EXCEEDED = 6;
|
||||
/**
|
||||
* The request whose associated billing account address is in a tax restricted
|
||||
* location, violates the local tax restrictions when creating resources in
|
||||
* the restricted region.
|
||||
* Example of an ErrorInfo when creating the Cloud Storage Bucket in the
|
||||
* container "projects/123" under a tax restricted region
|
||||
* "locations/asia-northeast3":
|
||||
* { "reason": "LOCATION_TAX_POLICY_VIOLATED",
|
||||
* "domain": "googleapis.com",
|
||||
* "metadata": {
|
||||
* "consumer": "projects/123",
|
||||
* "service": "storage.googleapis.com",
|
||||
* "location": "locations/asia-northeast3"
|
||||
* }
|
||||
* }
|
||||
* This response indicates creating the Cloud Storage Bucket in
|
||||
* "locations/asia-northeast3" violates the location tax restriction.
|
||||
*
|
||||
* Generated from protobuf enum <code>LOCATION_TAX_POLICY_VIOLATED = 10;</code>
|
||||
*/
|
||||
const LOCATION_TAX_POLICY_VIOLATED = 10;
|
||||
/**
|
||||
* The request is denied because the caller does not have required permission
|
||||
* on the user project "projects/123" or the user project is invalid. For more
|
||||
* information, check the [userProject System
|
||||
* Parameters](https://cloud.google.com/apis/docs/system-parameters).
|
||||
* Example of an ErrorInfo when the caller is calling Cloud Storage service
|
||||
* with insufficient permissions on the user project:
|
||||
* { "reason": "USER_PROJECT_DENIED",
|
||||
* "domain": "googleapis.com",
|
||||
* "metadata": {
|
||||
* "consumer": "projects/123",
|
||||
* "service": "storage.googleapis.com"
|
||||
* }
|
||||
* }
|
||||
*
|
||||
* Generated from protobuf enum <code>USER_PROJECT_DENIED = 11;</code>
|
||||
*/
|
||||
const USER_PROJECT_DENIED = 11;
|
||||
/**
|
||||
* The request is denied because the consumer "projects/123" is suspended due
|
||||
* to Terms of Service(Tos) violations. Check [Project suspension
|
||||
* guidelines](https://cloud.google.com/resource-manager/docs/project-suspension-guidelines)
|
||||
* for more information.
|
||||
* Example of an ErrorInfo when calling Cloud Storage service with the
|
||||
* suspended consumer "projects/123":
|
||||
* { "reason": "CONSUMER_SUSPENDED",
|
||||
* "domain": "googleapis.com",
|
||||
* "metadata": {
|
||||
* "consumer": "projects/123",
|
||||
* "service": "storage.googleapis.com"
|
||||
* }
|
||||
* }
|
||||
*
|
||||
* Generated from protobuf enum <code>CONSUMER_SUSPENDED = 12;</code>
|
||||
*/
|
||||
const CONSUMER_SUSPENDED = 12;
|
||||
/**
|
||||
* The request is denied because the associated consumer is invalid. It may be
|
||||
* in a bad format, cannot be found, or have been deleted.
|
||||
* Example of an ErrorInfo when calling Cloud Storage service with the
|
||||
* invalid consumer "projects/123":
|
||||
* { "reason": "CONSUMER_INVALID",
|
||||
* "domain": "googleapis.com",
|
||||
* "metadata": {
|
||||
* "consumer": "projects/123",
|
||||
* "service": "storage.googleapis.com"
|
||||
* }
|
||||
* }
|
||||
*
|
||||
* Generated from protobuf enum <code>CONSUMER_INVALID = 14;</code>
|
||||
*/
|
||||
const CONSUMER_INVALID = 14;
|
||||
/**
|
||||
* The request is denied because it violates [VPC Service
|
||||
* Controls](https://cloud.google.com/vpc-service-controls/docs/overview).
|
||||
* The 'uid' field is a random generated identifier that customer can use it
|
||||
* to search the audit log for a request rejected by VPC Service Controls. For
|
||||
* more information, please refer [VPC Service Controls
|
||||
* Troubleshooting](https://cloud.google.com/vpc-service-controls/docs/troubleshooting#unique-id)
|
||||
* Example of an ErrorInfo when the consumer "projects/123" fails to call
|
||||
* Cloud Storage service because the request is prohibited by the VPC Service
|
||||
* Controls.
|
||||
* { "reason": "SECURITY_POLICY_VIOLATED",
|
||||
* "domain": "googleapis.com",
|
||||
* "metadata": {
|
||||
* "uid": "123456789abcde",
|
||||
* "consumer": "projects/123",
|
||||
* "service": "storage.googleapis.com"
|
||||
* }
|
||||
* }
|
||||
*
|
||||
* Generated from protobuf enum <code>SECURITY_POLICY_VIOLATED = 15;</code>
|
||||
*/
|
||||
const SECURITY_POLICY_VIOLATED = 15;
|
||||
/**
|
||||
* The request is denied because the provided access token has expired.
|
||||
* Example of an ErrorInfo when the request is calling Cloud Storage service
|
||||
* with an expired access token:
|
||||
* { "reason": "ACCESS_TOKEN_EXPIRED",
|
||||
* "domain": "googleapis.com",
|
||||
* "metadata": {
|
||||
* "service": "storage.googleapis.com",
|
||||
* "method": "google.storage.v1.Storage.GetObject"
|
||||
* }
|
||||
* }
|
||||
*
|
||||
* Generated from protobuf enum <code>ACCESS_TOKEN_EXPIRED = 16;</code>
|
||||
*/
|
||||
const ACCESS_TOKEN_EXPIRED = 16;
|
||||
/**
|
||||
* The request is denied because the provided access token doesn't have at
|
||||
* least one of the acceptable scopes required for the API. Please check
|
||||
* [OAuth 2.0 Scopes for Google
|
||||
* APIs](https://developers.google.com/identity/protocols/oauth2/scopes) for
|
||||
* the list of the OAuth 2.0 scopes that you might need to request to access
|
||||
* the API.
|
||||
* Example of an ErrorInfo when the request is calling Cloud Storage service
|
||||
* with an access token that is missing required scopes:
|
||||
* { "reason": "ACCESS_TOKEN_SCOPE_INSUFFICIENT",
|
||||
* "domain": "googleapis.com",
|
||||
* "metadata": {
|
||||
* "service": "storage.googleapis.com",
|
||||
* "method": "google.storage.v1.Storage.GetObject"
|
||||
* }
|
||||
* }
|
||||
*
|
||||
* Generated from protobuf enum <code>ACCESS_TOKEN_SCOPE_INSUFFICIENT = 17;</code>
|
||||
*/
|
||||
const ACCESS_TOKEN_SCOPE_INSUFFICIENT = 17;
|
||||
/**
|
||||
* The request is denied because the account associated with the provided
|
||||
* access token is in an invalid state, such as disabled or deleted.
|
||||
* For more information, see https://cloud.google.com/docs/authentication.
|
||||
* Warning: For privacy reasons, the server may not be able to disclose the
|
||||
* email address for some accounts. The client MUST NOT depend on the
|
||||
* availability of the `email` attribute.
|
||||
* Example of an ErrorInfo when the request is to the Cloud Storage API with
|
||||
* an access token that is associated with a disabled or deleted [service
|
||||
* account](http://cloud/iam/docs/service-accounts):
|
||||
* { "reason": "ACCOUNT_STATE_INVALID",
|
||||
* "domain": "googleapis.com",
|
||||
* "metadata": {
|
||||
* "service": "storage.googleapis.com",
|
||||
* "method": "google.storage.v1.Storage.GetObject",
|
||||
* "email": "user@123.iam.gserviceaccount.com"
|
||||
* }
|
||||
* }
|
||||
*
|
||||
* Generated from protobuf enum <code>ACCOUNT_STATE_INVALID = 18;</code>
|
||||
*/
|
||||
const ACCOUNT_STATE_INVALID = 18;
|
||||
/**
|
||||
* The request is denied because the type of the provided access token is not
|
||||
* supported by the API being called.
|
||||
* Example of an ErrorInfo when the request is to the Cloud Storage API with
|
||||
* an unsupported token type.
|
||||
* { "reason": "ACCESS_TOKEN_TYPE_UNSUPPORTED",
|
||||
* "domain": "googleapis.com",
|
||||
* "metadata": {
|
||||
* "service": "storage.googleapis.com",
|
||||
* "method": "google.storage.v1.Storage.GetObject"
|
||||
* }
|
||||
* }
|
||||
*
|
||||
* Generated from protobuf enum <code>ACCESS_TOKEN_TYPE_UNSUPPORTED = 19;</code>
|
||||
*/
|
||||
const ACCESS_TOKEN_TYPE_UNSUPPORTED = 19;
|
||||
/**
|
||||
* The request is denied because the request doesn't have any authentication
|
||||
* credentials. For more information regarding the supported authentication
|
||||
* strategies for Google Cloud APIs, see
|
||||
* https://cloud.google.com/docs/authentication.
|
||||
* Example of an ErrorInfo when the request is to the Cloud Storage API
|
||||
* without any authentication credentials.
|
||||
* { "reason": "CREDENTIALS_MISSING",
|
||||
* "domain": "googleapis.com",
|
||||
* "metadata": {
|
||||
* "service": "storage.googleapis.com",
|
||||
* "method": "google.storage.v1.Storage.GetObject"
|
||||
* }
|
||||
* }
|
||||
*
|
||||
* Generated from protobuf enum <code>CREDENTIALS_MISSING = 20;</code>
|
||||
*/
|
||||
const CREDENTIALS_MISSING = 20;
|
||||
/**
|
||||
* The request is denied because the provided project owning the resource
|
||||
* which acts as the [API
|
||||
* consumer](https://cloud.google.com/apis/design/glossary#api_consumer) is
|
||||
* invalid. It may be in a bad format or empty.
|
||||
* Example of an ErrorInfo when the request is to the Cloud Functions API,
|
||||
* but the offered resource project in the request in a bad format which can't
|
||||
* perform the ListFunctions method.
|
||||
* { "reason": "RESOURCE_PROJECT_INVALID",
|
||||
* "domain": "googleapis.com",
|
||||
* "metadata": {
|
||||
* "service": "cloudfunctions.googleapis.com",
|
||||
* "method":
|
||||
* "google.cloud.functions.v1.CloudFunctionsService.ListFunctions"
|
||||
* }
|
||||
* }
|
||||
*
|
||||
* Generated from protobuf enum <code>RESOURCE_PROJECT_INVALID = 21;</code>
|
||||
*/
|
||||
const RESOURCE_PROJECT_INVALID = 21;
|
||||
/**
|
||||
* The request is denied because the provided session cookie is missing,
|
||||
* invalid or failed to decode.
|
||||
* Example of an ErrorInfo when the request is calling Cloud Storage service
|
||||
* with a SID cookie which can't be decoded.
|
||||
* { "reason": "SESSION_COOKIE_INVALID",
|
||||
* "domain": "googleapis.com",
|
||||
* "metadata": {
|
||||
* "service": "storage.googleapis.com",
|
||||
* "method": "google.storage.v1.Storage.GetObject",
|
||||
* "cookie": "SID"
|
||||
* }
|
||||
* }
|
||||
*
|
||||
* Generated from protobuf enum <code>SESSION_COOKIE_INVALID = 23;</code>
|
||||
*/
|
||||
const SESSION_COOKIE_INVALID = 23;
|
||||
/**
|
||||
* The request is denied because the user is from a Google Workspace customer
|
||||
* that blocks their users from accessing a particular service.
|
||||
* Example scenario: https://support.google.com/a/answer/9197205?hl=en
|
||||
* Example of an ErrorInfo when access to Google Cloud Storage service is
|
||||
* blocked by the Google Workspace administrator:
|
||||
* { "reason": "USER_BLOCKED_BY_ADMIN",
|
||||
* "domain": "googleapis.com",
|
||||
* "metadata": {
|
||||
* "service": "storage.googleapis.com",
|
||||
* "method": "google.storage.v1.Storage.GetObject",
|
||||
* }
|
||||
* }
|
||||
*
|
||||
* Generated from protobuf enum <code>USER_BLOCKED_BY_ADMIN = 24;</code>
|
||||
*/
|
||||
const USER_BLOCKED_BY_ADMIN = 24;
|
||||
/**
|
||||
* The request is denied because the resource service usage is restricted
|
||||
* by administrators according to the organization policy constraint.
|
||||
* For more information see
|
||||
* https://cloud.google.com/resource-manager/docs/organization-policy/restricting-services.
|
||||
* Example of an ErrorInfo when access to Google Cloud Storage service is
|
||||
* restricted by Resource Usage Restriction policy:
|
||||
* { "reason": "RESOURCE_USAGE_RESTRICTION_VIOLATED",
|
||||
* "domain": "googleapis.com",
|
||||
* "metadata": {
|
||||
* "consumer": "projects/project-123",
|
||||
* "service": "storage.googleapis.com"
|
||||
* }
|
||||
* }
|
||||
*
|
||||
* Generated from protobuf enum <code>RESOURCE_USAGE_RESTRICTION_VIOLATED = 25;</code>
|
||||
*/
|
||||
const RESOURCE_USAGE_RESTRICTION_VIOLATED = 25;
|
||||
/**
|
||||
* Unimplemented. Do not use.
|
||||
* The request is denied because it contains unsupported system parameters in
|
||||
* URL query parameters or HTTP headers. For more information,
|
||||
* see https://cloud.google.com/apis/docs/system-parameters
|
||||
* Example of an ErrorInfo when access "pubsub.googleapis.com" service with
|
||||
* a request header of "x-goog-user-ip":
|
||||
* { "reason": "SYSTEM_PARAMETER_UNSUPPORTED",
|
||||
* "domain": "googleapis.com",
|
||||
* "metadata": {
|
||||
* "service": "pubsub.googleapis.com"
|
||||
* "parameter": "x-goog-user-ip"
|
||||
* }
|
||||
* }
|
||||
*
|
||||
* Generated from protobuf enum <code>SYSTEM_PARAMETER_UNSUPPORTED = 26;</code>
|
||||
*/
|
||||
const SYSTEM_PARAMETER_UNSUPPORTED = 26;
|
||||
/**
|
||||
* The request is denied because it violates Org Restriction: the requested
|
||||
* resource does not belong to allowed organizations specified in
|
||||
* "X-Goog-Allowed-Resources" header.
|
||||
* Example of an ErrorInfo when accessing a GCP resource that is restricted by
|
||||
* Org Restriction for "pubsub.googleapis.com" service.
|
||||
* {
|
||||
* reason: "ORG_RESTRICTION_VIOLATION"
|
||||
* domain: "googleapis.com"
|
||||
* metadata {
|
||||
* "consumer":"projects/123456"
|
||||
* "service": "pubsub.googleapis.com"
|
||||
* }
|
||||
* }
|
||||
*
|
||||
* Generated from protobuf enum <code>ORG_RESTRICTION_VIOLATION = 27;</code>
|
||||
*/
|
||||
const ORG_RESTRICTION_VIOLATION = 27;
|
||||
/**
|
||||
* The request is denied because "X-Goog-Allowed-Resources" header is in a bad
|
||||
* format.
|
||||
* Example of an ErrorInfo when
|
||||
* accessing "pubsub.googleapis.com" service with an invalid
|
||||
* "X-Goog-Allowed-Resources" request header.
|
||||
* {
|
||||
* reason: "ORG_RESTRICTION_HEADER_INVALID"
|
||||
* domain: "googleapis.com"
|
||||
* metadata {
|
||||
* "consumer":"projects/123456"
|
||||
* "service": "pubsub.googleapis.com"
|
||||
* }
|
||||
* }
|
||||
*
|
||||
* Generated from protobuf enum <code>ORG_RESTRICTION_HEADER_INVALID = 28;</code>
|
||||
*/
|
||||
const ORG_RESTRICTION_HEADER_INVALID = 28;
|
||||
/**
|
||||
* Unimplemented. Do not use.
|
||||
* The request is calling a service that is not visible to the consumer.
|
||||
* Example of an ErrorInfo when the consumer "projects/123" contacting
|
||||
* "pubsub.googleapis.com" service which is not visible to the consumer.
|
||||
* { "reason": "SERVICE_NOT_VISIBLE",
|
||||
* "domain": "googleapis.com",
|
||||
* "metadata": {
|
||||
* "consumer": "projects/123",
|
||||
* "service": "pubsub.googleapis.com"
|
||||
* }
|
||||
* }
|
||||
* This response indicates the "pubsub.googleapis.com" is not visible to
|
||||
* "projects/123" (or it may not exist).
|
||||
*
|
||||
* Generated from protobuf enum <code>SERVICE_NOT_VISIBLE = 29;</code>
|
||||
*/
|
||||
const SERVICE_NOT_VISIBLE = 29;
|
||||
/**
|
||||
* The request is related to a project for which GCP access is suspended.
|
||||
* Example of an ErrorInfo when the consumer "projects/123" fails to contact
|
||||
* "pubsub.googleapis.com" service because GCP access is suspended:
|
||||
* { "reason": "GCP_SUSPENDED",
|
||||
* "domain": "googleapis.com",
|
||||
* "metadata": {
|
||||
* "consumer": "projects/123",
|
||||
* "service": "pubsub.googleapis.com"
|
||||
* }
|
||||
* }
|
||||
* This response indicates the associated GCP account has been suspended.
|
||||
*
|
||||
* Generated from protobuf enum <code>GCP_SUSPENDED = 30;</code>
|
||||
*/
|
||||
const GCP_SUSPENDED = 30;
|
||||
private static $valueToName = [self::ERROR_REASON_UNSPECIFIED => 'ERROR_REASON_UNSPECIFIED', self::SERVICE_DISABLED => 'SERVICE_DISABLED', self::BILLING_DISABLED => 'BILLING_DISABLED', self::API_KEY_INVALID => 'API_KEY_INVALID', self::API_KEY_SERVICE_BLOCKED => 'API_KEY_SERVICE_BLOCKED', self::API_KEY_HTTP_REFERRER_BLOCKED => 'API_KEY_HTTP_REFERRER_BLOCKED', self::API_KEY_IP_ADDRESS_BLOCKED => 'API_KEY_IP_ADDRESS_BLOCKED', self::API_KEY_ANDROID_APP_BLOCKED => 'API_KEY_ANDROID_APP_BLOCKED', self::API_KEY_IOS_APP_BLOCKED => 'API_KEY_IOS_APP_BLOCKED', self::RATE_LIMIT_EXCEEDED => 'RATE_LIMIT_EXCEEDED', self::RESOURCE_QUOTA_EXCEEDED => 'RESOURCE_QUOTA_EXCEEDED', self::LOCATION_TAX_POLICY_VIOLATED => 'LOCATION_TAX_POLICY_VIOLATED', self::USER_PROJECT_DENIED => 'USER_PROJECT_DENIED', self::CONSUMER_SUSPENDED => 'CONSUMER_SUSPENDED', self::CONSUMER_INVALID => 'CONSUMER_INVALID', self::SECURITY_POLICY_VIOLATED => 'SECURITY_POLICY_VIOLATED', self::ACCESS_TOKEN_EXPIRED => 'ACCESS_TOKEN_EXPIRED', self::ACCESS_TOKEN_SCOPE_INSUFFICIENT => 'ACCESS_TOKEN_SCOPE_INSUFFICIENT', self::ACCOUNT_STATE_INVALID => 'ACCOUNT_STATE_INVALID', self::ACCESS_TOKEN_TYPE_UNSUPPORTED => 'ACCESS_TOKEN_TYPE_UNSUPPORTED', self::CREDENTIALS_MISSING => 'CREDENTIALS_MISSING', self::RESOURCE_PROJECT_INVALID => 'RESOURCE_PROJECT_INVALID', self::SESSION_COOKIE_INVALID => 'SESSION_COOKIE_INVALID', self::USER_BLOCKED_BY_ADMIN => 'USER_BLOCKED_BY_ADMIN', self::RESOURCE_USAGE_RESTRICTION_VIOLATED => 'RESOURCE_USAGE_RESTRICTION_VIOLATED', self::SYSTEM_PARAMETER_UNSUPPORTED => 'SYSTEM_PARAMETER_UNSUPPORTED', self::ORG_RESTRICTION_VIOLATION => 'ORG_RESTRICTION_VIOLATION', self::ORG_RESTRICTION_HEADER_INVALID => 'ORG_RESTRICTION_HEADER_INVALID', self::SERVICE_NOT_VISIBLE => 'SERVICE_NOT_VISIBLE', self::GCP_SUSPENDED => 'GCP_SUSPENDED'];
|
||||
public static function name($value)
|
||||
{
|
||||
if (!isset(self::$valueToName[$value])) {
|
||||
throw new UnexpectedValueException(\sprintf('Enum %s has no name defined for value %s', __CLASS__, $value));
|
||||
}
|
||||
return self::$valueToName[$value];
|
||||
}
|
||||
public static function value($name)
|
||||
{
|
||||
$const = __CLASS__ . '::' . \strtoupper($name);
|
||||
if (!\defined($const)) {
|
||||
throw new UnexpectedValueException(\sprintf('Enum %s has no value defined for name %s', __CLASS__, $name));
|
||||
}
|
||||
return \constant($const);
|
||||
}
|
||||
}
|
||||
115
vendor/Gcp/google/common-protos/src/Api/FieldBehavior.php
vendored
Normal file
115
vendor/Gcp/google/common-protos/src/Api/FieldBehavior.php
vendored
Normal file
@@ -0,0 +1,115 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/field_behavior.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api;
|
||||
|
||||
use UnexpectedValueException;
|
||||
/**
|
||||
* An indicator of the behavior of a given field (for example, that a field
|
||||
* is required in requests, or given as output but ignored as input).
|
||||
* This **does not** change the behavior in protocol buffers itself; it only
|
||||
* denotes the behavior and may affect how API tooling handles the field.
|
||||
* Note: This enum **may** receive new values in the future.
|
||||
*
|
||||
* Protobuf type <code>google.api.FieldBehavior</code>
|
||||
*/
|
||||
class FieldBehavior
|
||||
{
|
||||
/**
|
||||
* Conventional default for enums. Do not use this.
|
||||
*
|
||||
* Generated from protobuf enum <code>FIELD_BEHAVIOR_UNSPECIFIED = 0;</code>
|
||||
*/
|
||||
const FIELD_BEHAVIOR_UNSPECIFIED = 0;
|
||||
/**
|
||||
* Specifically denotes a field as optional.
|
||||
* While all fields in protocol buffers are optional, this may be specified
|
||||
* for emphasis if appropriate.
|
||||
*
|
||||
* Generated from protobuf enum <code>OPTIONAL = 1;</code>
|
||||
*/
|
||||
const OPTIONAL = 1;
|
||||
/**
|
||||
* Denotes a field as required.
|
||||
* This indicates that the field **must** be provided as part of the request,
|
||||
* and failure to do so will cause an error (usually `INVALID_ARGUMENT`).
|
||||
*
|
||||
* Generated from protobuf enum <code>REQUIRED = 2;</code>
|
||||
*/
|
||||
const REQUIRED = 2;
|
||||
/**
|
||||
* Denotes a field as output only.
|
||||
* This indicates that the field is provided in responses, but including the
|
||||
* field in a request does nothing (the server *must* ignore it and
|
||||
* *must not* throw an error as a result of the field's presence).
|
||||
*
|
||||
* Generated from protobuf enum <code>OUTPUT_ONLY = 3;</code>
|
||||
*/
|
||||
const OUTPUT_ONLY = 3;
|
||||
/**
|
||||
* Denotes a field as input only.
|
||||
* This indicates that the field is provided in requests, and the
|
||||
* corresponding field is not included in output.
|
||||
*
|
||||
* Generated from protobuf enum <code>INPUT_ONLY = 4;</code>
|
||||
*/
|
||||
const INPUT_ONLY = 4;
|
||||
/**
|
||||
* Denotes a field as immutable.
|
||||
* This indicates that the field may be set once in a request to create a
|
||||
* resource, but may not be changed thereafter.
|
||||
*
|
||||
* Generated from protobuf enum <code>IMMUTABLE = 5;</code>
|
||||
*/
|
||||
const IMMUTABLE = 5;
|
||||
/**
|
||||
* Denotes that a (repeated) field is an unordered list.
|
||||
* This indicates that the service may provide the elements of the list
|
||||
* in any arbitrary order, rather than the order the user originally
|
||||
* provided. Additionally, the list's order may or may not be stable.
|
||||
*
|
||||
* Generated from protobuf enum <code>UNORDERED_LIST = 6;</code>
|
||||
*/
|
||||
const UNORDERED_LIST = 6;
|
||||
/**
|
||||
* Denotes that this field returns a non-empty default value if not set.
|
||||
* This indicates that if the user provides the empty value in a request,
|
||||
* a non-empty value will be returned. The user will not be aware of what
|
||||
* non-empty value to expect.
|
||||
*
|
||||
* Generated from protobuf enum <code>NON_EMPTY_DEFAULT = 7;</code>
|
||||
*/
|
||||
const NON_EMPTY_DEFAULT = 7;
|
||||
/**
|
||||
* Denotes that the field in a resource (a message annotated with
|
||||
* google.api.resource) is used in the resource name to uniquely identify the
|
||||
* resource. For AIP-compliant APIs, this should only be applied to the
|
||||
* `name` field on the resource.
|
||||
* This behavior should not be applied to references to other resources within
|
||||
* the message.
|
||||
* The identifier field of resources often have different field behavior
|
||||
* depending on the request it is embedded in (e.g. for Create methods name
|
||||
* is optional and unused, while for Update methods it is required). Instead
|
||||
* of method-specific annotations, only `IDENTIFIER` is required.
|
||||
*
|
||||
* Generated from protobuf enum <code>IDENTIFIER = 8;</code>
|
||||
*/
|
||||
const IDENTIFIER = 8;
|
||||
private static $valueToName = [self::FIELD_BEHAVIOR_UNSPECIFIED => 'FIELD_BEHAVIOR_UNSPECIFIED', self::OPTIONAL => 'OPTIONAL', self::REQUIRED => 'REQUIRED', self::OUTPUT_ONLY => 'OUTPUT_ONLY', self::INPUT_ONLY => 'INPUT_ONLY', self::IMMUTABLE => 'IMMUTABLE', self::UNORDERED_LIST => 'UNORDERED_LIST', self::NON_EMPTY_DEFAULT => 'NON_EMPTY_DEFAULT', self::IDENTIFIER => 'IDENTIFIER'];
|
||||
public static function name($value)
|
||||
{
|
||||
if (!isset(self::$valueToName[$value])) {
|
||||
throw new UnexpectedValueException(\sprintf('Enum %s has no name defined for value %s', __CLASS__, $value));
|
||||
}
|
||||
return self::$valueToName[$value];
|
||||
}
|
||||
public static function value($name)
|
||||
{
|
||||
$const = __CLASS__ . '::' . \strtoupper($name);
|
||||
if (!\defined($const)) {
|
||||
throw new UnexpectedValueException(\sprintf('Enum %s has no value defined for name %s', __CLASS__, $name));
|
||||
}
|
||||
return \constant($const);
|
||||
}
|
||||
}
|
||||
69
vendor/Gcp/google/common-protos/src/Api/FieldInfo.php
vendored
Normal file
69
vendor/Gcp/google/common-protos/src/Api/FieldInfo.php
vendored
Normal file
@@ -0,0 +1,69 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/field_info.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* Rich semantic information of an API field beyond basic typing.
|
||||
*
|
||||
* Generated from protobuf message <code>google.api.FieldInfo</code>
|
||||
*/
|
||||
class FieldInfo extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* The standard format of a field value. This does not explicitly configure
|
||||
* any API consumer, just documents the API's format for the field it is
|
||||
* applied to.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.FieldInfo.Format format = 1;</code>
|
||||
*/
|
||||
protected $format = 0;
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type int $format
|
||||
* The standard format of a field value. This does not explicitly configure
|
||||
* any API consumer, just documents the API's format for the field it is
|
||||
* applied to.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Api\FieldInfo::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* The standard format of a field value. This does not explicitly configure
|
||||
* any API consumer, just documents the API's format for the field it is
|
||||
* applied to.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.FieldInfo.Format format = 1;</code>
|
||||
* @return int
|
||||
*/
|
||||
public function getFormat()
|
||||
{
|
||||
return $this->format;
|
||||
}
|
||||
/**
|
||||
* The standard format of a field value. This does not explicitly configure
|
||||
* any API consumer, just documents the API's format for the field it is
|
||||
* applied to.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.FieldInfo.Format format = 1;</code>
|
||||
* @param int $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setFormat($var)
|
||||
{
|
||||
GPBUtil::checkEnum($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\FieldInfo\Format::class);
|
||||
$this->format = $var;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
75
vendor/Gcp/google/common-protos/src/Api/FieldInfo/Format.php
vendored
Normal file
75
vendor/Gcp/google/common-protos/src/Api/FieldInfo/Format.php
vendored
Normal file
@@ -0,0 +1,75 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/field_info.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\FieldInfo;
|
||||
|
||||
use UnexpectedValueException;
|
||||
/**
|
||||
* The standard format of a field value. The supported formats are all backed
|
||||
* by either an RFC defined by the IETF or a Google-defined AIP.
|
||||
*
|
||||
* Protobuf type <code>google.api.FieldInfo.Format</code>
|
||||
*/
|
||||
class Format
|
||||
{
|
||||
/**
|
||||
* Default, unspecified value.
|
||||
*
|
||||
* Generated from protobuf enum <code>FORMAT_UNSPECIFIED = 0;</code>
|
||||
*/
|
||||
const FORMAT_UNSPECIFIED = 0;
|
||||
/**
|
||||
* Universally Unique Identifier, version 4, value as defined by
|
||||
* https://datatracker.ietf.org/doc/html/rfc4122. The value may be
|
||||
* normalized to entirely lowercase letters. For example, the value
|
||||
* `F47AC10B-58CC-0372-8567-0E02B2C3D479` would be normalized to
|
||||
* `f47ac10b-58cc-0372-8567-0e02b2c3d479`.
|
||||
*
|
||||
* Generated from protobuf enum <code>UUID4 = 1;</code>
|
||||
*/
|
||||
const UUID4 = 1;
|
||||
/**
|
||||
* Internet Protocol v4 value as defined by [RFC
|
||||
* 791](https://datatracker.ietf.org/doc/html/rfc791). The value may be
|
||||
* condensed, with leading zeros in each octet stripped. For example,
|
||||
* `001.022.233.040` would be condensed to `1.22.233.40`.
|
||||
*
|
||||
* Generated from protobuf enum <code>IPV4 = 2;</code>
|
||||
*/
|
||||
const IPV4 = 2;
|
||||
/**
|
||||
* Internet Protocol v6 value as defined by [RFC
|
||||
* 2460](https://datatracker.ietf.org/doc/html/rfc2460). The value may be
|
||||
* normalized to entirely lowercase letters, and zero-padded partial and
|
||||
* empty octets. For example, the value `2001:DB8::` would be normalized to
|
||||
* `2001:0db8:0:0`.
|
||||
*
|
||||
* Generated from protobuf enum <code>IPV6 = 3;</code>
|
||||
*/
|
||||
const IPV6 = 3;
|
||||
/**
|
||||
* An IP address in either v4 or v6 format as described by the individual
|
||||
* values defined herein. See the comments on the IPV4 and IPV6 types for
|
||||
* allowed normalizations of each.
|
||||
*
|
||||
* Generated from protobuf enum <code>IPV4_OR_IPV6 = 4;</code>
|
||||
*/
|
||||
const IPV4_OR_IPV6 = 4;
|
||||
private static $valueToName = [self::FORMAT_UNSPECIFIED => 'FORMAT_UNSPECIFIED', self::UUID4 => 'UUID4', self::IPV4 => 'IPV4', self::IPV6 => 'IPV6', self::IPV4_OR_IPV6 => 'IPV4_OR_IPV6'];
|
||||
public static function name($value)
|
||||
{
|
||||
if (!isset(self::$valueToName[$value])) {
|
||||
throw new UnexpectedValueException(\sprintf('Enum %s has no name defined for value %s', __CLASS__, $value));
|
||||
}
|
||||
return self::$valueToName[$value];
|
||||
}
|
||||
public static function value($name)
|
||||
{
|
||||
$const = __CLASS__ . '::' . \strtoupper($name);
|
||||
if (!\defined($const)) {
|
||||
throw new UnexpectedValueException(\sprintf('Enum %s has no value defined for name %s', __CLASS__, $name));
|
||||
}
|
||||
return \constant($const);
|
||||
}
|
||||
}
|
||||
169
vendor/Gcp/google/common-protos/src/Api/FieldPolicy.php
vendored
Normal file
169
vendor/Gcp/google/common-protos/src/Api/FieldPolicy.php
vendored
Normal file
@@ -0,0 +1,169 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/policy.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* Google API Policy Annotation
|
||||
* This message defines a simple API policy annotation that can be used to
|
||||
* annotate API request and response message fields with applicable policies.
|
||||
* One field may have multiple applicable policies that must all be satisfied
|
||||
* before a request can be processed. This policy annotation is used to
|
||||
* generate the overall policy that will be used for automatic runtime
|
||||
* policy enforcement and documentation generation.
|
||||
*
|
||||
* Generated from protobuf message <code>google.api.FieldPolicy</code>
|
||||
*/
|
||||
class FieldPolicy extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* Selects one or more request or response message fields to apply this
|
||||
* `FieldPolicy`.
|
||||
* When a `FieldPolicy` is used in proto annotation, the selector must
|
||||
* be left as empty. The service config generator will automatically fill
|
||||
* the correct value.
|
||||
* When a `FieldPolicy` is used in service config, the selector must be a
|
||||
* comma-separated string with valid request or response field paths,
|
||||
* such as "foo.bar" or "foo.bar,foo.baz".
|
||||
*
|
||||
* Generated from protobuf field <code>string selector = 1;</code>
|
||||
*/
|
||||
protected $selector = '';
|
||||
/**
|
||||
* Specifies the required permission(s) for the resource referred to by the
|
||||
* field. It requires the field contains a valid resource reference, and
|
||||
* the request must pass the permission checks to proceed. For example,
|
||||
* "resourcemanager.projects.get".
|
||||
*
|
||||
* Generated from protobuf field <code>string resource_permission = 2;</code>
|
||||
*/
|
||||
protected $resource_permission = '';
|
||||
/**
|
||||
* Specifies the resource type for the resource referred to by the field.
|
||||
*
|
||||
* Generated from protobuf field <code>string resource_type = 3;</code>
|
||||
*/
|
||||
protected $resource_type = '';
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type string $selector
|
||||
* Selects one or more request or response message fields to apply this
|
||||
* `FieldPolicy`.
|
||||
* When a `FieldPolicy` is used in proto annotation, the selector must
|
||||
* be left as empty. The service config generator will automatically fill
|
||||
* the correct value.
|
||||
* When a `FieldPolicy` is used in service config, the selector must be a
|
||||
* comma-separated string with valid request or response field paths,
|
||||
* such as "foo.bar" or "foo.bar,foo.baz".
|
||||
* @type string $resource_permission
|
||||
* Specifies the required permission(s) for the resource referred to by the
|
||||
* field. It requires the field contains a valid resource reference, and
|
||||
* the request must pass the permission checks to proceed. For example,
|
||||
* "resourcemanager.projects.get".
|
||||
* @type string $resource_type
|
||||
* Specifies the resource type for the resource referred to by the field.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Api\Policy::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* Selects one or more request or response message fields to apply this
|
||||
* `FieldPolicy`.
|
||||
* When a `FieldPolicy` is used in proto annotation, the selector must
|
||||
* be left as empty. The service config generator will automatically fill
|
||||
* the correct value.
|
||||
* When a `FieldPolicy` is used in service config, the selector must be a
|
||||
* comma-separated string with valid request or response field paths,
|
||||
* such as "foo.bar" or "foo.bar,foo.baz".
|
||||
*
|
||||
* Generated from protobuf field <code>string selector = 1;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getSelector()
|
||||
{
|
||||
return $this->selector;
|
||||
}
|
||||
/**
|
||||
* Selects one or more request or response message fields to apply this
|
||||
* `FieldPolicy`.
|
||||
* When a `FieldPolicy` is used in proto annotation, the selector must
|
||||
* be left as empty. The service config generator will automatically fill
|
||||
* the correct value.
|
||||
* When a `FieldPolicy` is used in service config, the selector must be a
|
||||
* comma-separated string with valid request or response field paths,
|
||||
* such as "foo.bar" or "foo.bar,foo.baz".
|
||||
*
|
||||
* Generated from protobuf field <code>string selector = 1;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setSelector($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->selector = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Specifies the required permission(s) for the resource referred to by the
|
||||
* field. It requires the field contains a valid resource reference, and
|
||||
* the request must pass the permission checks to proceed. For example,
|
||||
* "resourcemanager.projects.get".
|
||||
*
|
||||
* Generated from protobuf field <code>string resource_permission = 2;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getResourcePermission()
|
||||
{
|
||||
return $this->resource_permission;
|
||||
}
|
||||
/**
|
||||
* Specifies the required permission(s) for the resource referred to by the
|
||||
* field. It requires the field contains a valid resource reference, and
|
||||
* the request must pass the permission checks to proceed. For example,
|
||||
* "resourcemanager.projects.get".
|
||||
*
|
||||
* Generated from protobuf field <code>string resource_permission = 2;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setResourcePermission($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->resource_permission = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Specifies the resource type for the resource referred to by the field.
|
||||
*
|
||||
* Generated from protobuf field <code>string resource_type = 3;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getResourceType()
|
||||
{
|
||||
return $this->resource_type;
|
||||
}
|
||||
/**
|
||||
* Specifies the resource type for the resource referred to by the field.
|
||||
*
|
||||
* Generated from protobuf field <code>string resource_type = 3;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setResourceType($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->resource_type = $var;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
69
vendor/Gcp/google/common-protos/src/Api/GoSettings.php
vendored
Normal file
69
vendor/Gcp/google/common-protos/src/Api/GoSettings.php
vendored
Normal file
@@ -0,0 +1,69 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/client.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* Settings for Go client libraries.
|
||||
*
|
||||
* Generated from protobuf message <code>google.api.GoSettings</code>
|
||||
*/
|
||||
class GoSettings extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* Some settings.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.CommonLanguageSettings common = 1;</code>
|
||||
*/
|
||||
protected $common = null;
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type \Google\Api\CommonLanguageSettings $common
|
||||
* Some settings.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Api\Client::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* Some settings.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.CommonLanguageSettings common = 1;</code>
|
||||
* @return \Google\Api\CommonLanguageSettings|null
|
||||
*/
|
||||
public function getCommon()
|
||||
{
|
||||
return $this->common;
|
||||
}
|
||||
public function hasCommon()
|
||||
{
|
||||
return isset($this->common);
|
||||
}
|
||||
public function clearCommon()
|
||||
{
|
||||
unset($this->common);
|
||||
}
|
||||
/**
|
||||
* Some settings.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.CommonLanguageSettings common = 1;</code>
|
||||
* @param \Google\Api\CommonLanguageSettings $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setCommon($var)
|
||||
{
|
||||
GPBUtil::checkMessage($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\CommonLanguageSettings::class);
|
||||
$this->common = $var;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
114
vendor/Gcp/google/common-protos/src/Api/Http.php
vendored
Normal file
114
vendor/Gcp/google/common-protos/src/Api/Http.php
vendored
Normal file
@@ -0,0 +1,114 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/http.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* Defines the HTTP configuration for an API service. It contains a list of
|
||||
* [HttpRule][google.api.HttpRule], each specifying the mapping of an RPC method
|
||||
* to one or more HTTP REST API methods.
|
||||
*
|
||||
* Generated from protobuf message <code>google.api.Http</code>
|
||||
*/
|
||||
class Http extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* A list of HTTP configuration rules that apply to individual API methods.
|
||||
* **NOTE:** All service configuration rules follow "last one wins" order.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.HttpRule rules = 1;</code>
|
||||
*/
|
||||
private $rules;
|
||||
/**
|
||||
* When set to true, URL path parameters will be fully URI-decoded except in
|
||||
* cases of single segment matches in reserved expansion, where "%2F" will be
|
||||
* left encoded.
|
||||
* The default behavior is to not decode RFC 6570 reserved characters in multi
|
||||
* segment matches.
|
||||
*
|
||||
* Generated from protobuf field <code>bool fully_decode_reserved_expansion = 2;</code>
|
||||
*/
|
||||
protected $fully_decode_reserved_expansion = \false;
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type array<\Google\Api\HttpRule>|\Google\Protobuf\Internal\RepeatedField $rules
|
||||
* A list of HTTP configuration rules that apply to individual API methods.
|
||||
* **NOTE:** All service configuration rules follow "last one wins" order.
|
||||
* @type bool $fully_decode_reserved_expansion
|
||||
* When set to true, URL path parameters will be fully URI-decoded except in
|
||||
* cases of single segment matches in reserved expansion, where "%2F" will be
|
||||
* left encoded.
|
||||
* The default behavior is to not decode RFC 6570 reserved characters in multi
|
||||
* segment matches.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Api\Http::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* A list of HTTP configuration rules that apply to individual API methods.
|
||||
* **NOTE:** All service configuration rules follow "last one wins" order.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.HttpRule rules = 1;</code>
|
||||
* @return \Google\Protobuf\Internal\RepeatedField
|
||||
*/
|
||||
public function getRules()
|
||||
{
|
||||
return $this->rules;
|
||||
}
|
||||
/**
|
||||
* A list of HTTP configuration rules that apply to individual API methods.
|
||||
* **NOTE:** All service configuration rules follow "last one wins" order.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.HttpRule rules = 1;</code>
|
||||
* @param array<\Google\Api\HttpRule>|\Google\Protobuf\Internal\RepeatedField $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setRules($var)
|
||||
{
|
||||
$arr = GPBUtil::checkRepeatedField($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::MESSAGE, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\HttpRule::class);
|
||||
$this->rules = $arr;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* When set to true, URL path parameters will be fully URI-decoded except in
|
||||
* cases of single segment matches in reserved expansion, where "%2F" will be
|
||||
* left encoded.
|
||||
* The default behavior is to not decode RFC 6570 reserved characters in multi
|
||||
* segment matches.
|
||||
*
|
||||
* Generated from protobuf field <code>bool fully_decode_reserved_expansion = 2;</code>
|
||||
* @return bool
|
||||
*/
|
||||
public function getFullyDecodeReservedExpansion()
|
||||
{
|
||||
return $this->fully_decode_reserved_expansion;
|
||||
}
|
||||
/**
|
||||
* When set to true, URL path parameters will be fully URI-decoded except in
|
||||
* cases of single segment matches in reserved expansion, where "%2F" will be
|
||||
* left encoded.
|
||||
* The default behavior is to not decode RFC 6570 reserved characters in multi
|
||||
* segment matches.
|
||||
*
|
||||
* Generated from protobuf field <code>bool fully_decode_reserved_expansion = 2;</code>
|
||||
* @param bool $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setFullyDecodeReservedExpansion($var)
|
||||
{
|
||||
GPBUtil::checkBool($var);
|
||||
$this->fully_decode_reserved_expansion = $var;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
156
vendor/Gcp/google/common-protos/src/Api/HttpBody.php
vendored
Normal file
156
vendor/Gcp/google/common-protos/src/Api/HttpBody.php
vendored
Normal file
@@ -0,0 +1,156 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/httpbody.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* Message that represents an arbitrary HTTP body. It should only be used for
|
||||
* payload formats that can't be represented as JSON, such as raw binary or
|
||||
* an HTML page.
|
||||
* This message can be used both in streaming and non-streaming API methods in
|
||||
* the request as well as the response.
|
||||
* It can be used as a top-level request field, which is convenient if one
|
||||
* wants to extract parameters from either the URL or HTTP template into the
|
||||
* request fields and also want access to the raw HTTP body.
|
||||
* Example:
|
||||
* message GetResourceRequest {
|
||||
* // A unique request id.
|
||||
* string request_id = 1;
|
||||
* // The raw HTTP body is bound to this field.
|
||||
* google.api.HttpBody http_body = 2;
|
||||
* }
|
||||
* service ResourceService {
|
||||
* rpc GetResource(GetResourceRequest)
|
||||
* returns (google.api.HttpBody);
|
||||
* rpc UpdateResource(google.api.HttpBody)
|
||||
* returns (google.protobuf.Empty);
|
||||
* }
|
||||
* Example with streaming methods:
|
||||
* service CaldavService {
|
||||
* rpc GetCalendar(stream google.api.HttpBody)
|
||||
* returns (stream google.api.HttpBody);
|
||||
* rpc UpdateCalendar(stream google.api.HttpBody)
|
||||
* returns (stream google.api.HttpBody);
|
||||
* }
|
||||
* Use of this type only changes how the request and response bodies are
|
||||
* handled, all other features will continue to work unchanged.
|
||||
*
|
||||
* Generated from protobuf message <code>google.api.HttpBody</code>
|
||||
*/
|
||||
class HttpBody extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* The HTTP Content-Type header value specifying the content type of the body.
|
||||
*
|
||||
* Generated from protobuf field <code>string content_type = 1;</code>
|
||||
*/
|
||||
protected $content_type = '';
|
||||
/**
|
||||
* The HTTP request/response body as raw binary.
|
||||
*
|
||||
* Generated from protobuf field <code>bytes data = 2;</code>
|
||||
*/
|
||||
protected $data = '';
|
||||
/**
|
||||
* Application specific response metadata. Must be set in the first response
|
||||
* for streaming APIs.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.protobuf.Any extensions = 3;</code>
|
||||
*/
|
||||
private $extensions;
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type string $content_type
|
||||
* The HTTP Content-Type header value specifying the content type of the body.
|
||||
* @type string $data
|
||||
* The HTTP request/response body as raw binary.
|
||||
* @type array<\Google\Protobuf\Any>|\Google\Protobuf\Internal\RepeatedField $extensions
|
||||
* Application specific response metadata. Must be set in the first response
|
||||
* for streaming APIs.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Api\Httpbody::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* The HTTP Content-Type header value specifying the content type of the body.
|
||||
*
|
||||
* Generated from protobuf field <code>string content_type = 1;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getContentType()
|
||||
{
|
||||
return $this->content_type;
|
||||
}
|
||||
/**
|
||||
* The HTTP Content-Type header value specifying the content type of the body.
|
||||
*
|
||||
* Generated from protobuf field <code>string content_type = 1;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setContentType($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->content_type = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* The HTTP request/response body as raw binary.
|
||||
*
|
||||
* Generated from protobuf field <code>bytes data = 2;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getData()
|
||||
{
|
||||
return $this->data;
|
||||
}
|
||||
/**
|
||||
* The HTTP request/response body as raw binary.
|
||||
*
|
||||
* Generated from protobuf field <code>bytes data = 2;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setData($var)
|
||||
{
|
||||
GPBUtil::checkString($var, False);
|
||||
$this->data = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Application specific response metadata. Must be set in the first response
|
||||
* for streaming APIs.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.protobuf.Any extensions = 3;</code>
|
||||
* @return \Google\Protobuf\Internal\RepeatedField
|
||||
*/
|
||||
public function getExtensions()
|
||||
{
|
||||
return $this->extensions;
|
||||
}
|
||||
/**
|
||||
* Application specific response metadata. Must be set in the first response
|
||||
* for streaming APIs.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.protobuf.Any extensions = 3;</code>
|
||||
* @param array<\Google\Protobuf\Any>|\Google\Protobuf\Internal\RepeatedField $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setExtensions($var)
|
||||
{
|
||||
$arr = GPBUtil::checkRepeatedField($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::MESSAGE, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Any::class);
|
||||
$this->extensions = $arr;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
620
vendor/Gcp/google/common-protos/src/Api/HttpRule.php
vendored
Normal file
620
vendor/Gcp/google/common-protos/src/Api/HttpRule.php
vendored
Normal file
@@ -0,0 +1,620 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/http.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* # gRPC Transcoding
|
||||
* gRPC Transcoding is a feature for mapping between a gRPC method and one or
|
||||
* more HTTP REST endpoints. It allows developers to build a single API service
|
||||
* that supports both gRPC APIs and REST APIs. Many systems, including [Google
|
||||
* APIs](https://github.com/googleapis/googleapis),
|
||||
* [Cloud Endpoints](https://cloud.google.com/endpoints), [gRPC
|
||||
* Gateway](https://github.com/grpc-ecosystem/grpc-gateway),
|
||||
* and [Envoy](https://github.com/envoyproxy/envoy) proxy support this feature
|
||||
* and use it for large scale production services.
|
||||
* `HttpRule` defines the schema of the gRPC/REST mapping. The mapping specifies
|
||||
* how different portions of the gRPC request message are mapped to the URL
|
||||
* path, URL query parameters, and HTTP request body. It also controls how the
|
||||
* gRPC response message is mapped to the HTTP response body. `HttpRule` is
|
||||
* typically specified as an `google.api.http` annotation on the gRPC method.
|
||||
* Each mapping specifies a URL path template and an HTTP method. The path
|
||||
* template may refer to one or more fields in the gRPC request message, as long
|
||||
* as each field is a non-repeated field with a primitive (non-message) type.
|
||||
* The path template controls how fields of the request message are mapped to
|
||||
* the URL path.
|
||||
* Example:
|
||||
* service Messaging {
|
||||
* rpc GetMessage(GetMessageRequest) returns (Message) {
|
||||
* option (google.api.http) = {
|
||||
* get: "/v1/{name=messages/*}"
|
||||
* };
|
||||
* }
|
||||
* }
|
||||
* message GetMessageRequest {
|
||||
* string name = 1; // Mapped to URL path.
|
||||
* }
|
||||
* message Message {
|
||||
* string text = 1; // The resource content.
|
||||
* }
|
||||
* This enables an HTTP REST to gRPC mapping as below:
|
||||
* HTTP | gRPC
|
||||
* -----|-----
|
||||
* `GET /v1/messages/123456` | `GetMessage(name: "messages/123456")`
|
||||
* Any fields in the request message which are not bound by the path template
|
||||
* automatically become HTTP query parameters if there is no HTTP request body.
|
||||
* For example:
|
||||
* service Messaging {
|
||||
* rpc GetMessage(GetMessageRequest) returns (Message) {
|
||||
* option (google.api.http) = {
|
||||
* get:"/v1/messages/{message_id}"
|
||||
* };
|
||||
* }
|
||||
* }
|
||||
* message GetMessageRequest {
|
||||
* message SubMessage {
|
||||
* string subfield = 1;
|
||||
* }
|
||||
* string message_id = 1; // Mapped to URL path.
|
||||
* int64 revision = 2; // Mapped to URL query parameter `revision`.
|
||||
* SubMessage sub = 3; // Mapped to URL query parameter `sub.subfield`.
|
||||
* }
|
||||
* This enables a HTTP JSON to RPC mapping as below:
|
||||
* HTTP | gRPC
|
||||
* -----|-----
|
||||
* `GET /v1/messages/123456?revision=2&sub.subfield=foo` |
|
||||
* `GetMessage(message_id: "123456" revision: 2 sub: SubMessage(subfield:
|
||||
* "foo"))`
|
||||
* Note that fields which are mapped to URL query parameters must have a
|
||||
* primitive type or a repeated primitive type or a non-repeated message type.
|
||||
* In the case of a repeated type, the parameter can be repeated in the URL
|
||||
* as `...?param=A¶m=B`. In the case of a message type, each field of the
|
||||
* message is mapped to a separate parameter, such as
|
||||
* `...?foo.a=A&foo.b=B&foo.c=C`.
|
||||
* For HTTP methods that allow a request body, the `body` field
|
||||
* specifies the mapping. Consider a REST update method on the
|
||||
* message resource collection:
|
||||
* service Messaging {
|
||||
* rpc UpdateMessage(UpdateMessageRequest) returns (Message) {
|
||||
* option (google.api.http) = {
|
||||
* patch: "/v1/messages/{message_id}"
|
||||
* body: "message"
|
||||
* };
|
||||
* }
|
||||
* }
|
||||
* message UpdateMessageRequest {
|
||||
* string message_id = 1; // mapped to the URL
|
||||
* Message message = 2; // mapped to the body
|
||||
* }
|
||||
* The following HTTP JSON to RPC mapping is enabled, where the
|
||||
* representation of the JSON in the request body is determined by
|
||||
* protos JSON encoding:
|
||||
* HTTP | gRPC
|
||||
* -----|-----
|
||||
* `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id:
|
||||
* "123456" message { text: "Hi!" })`
|
||||
* The special name `*` can be used in the body mapping to define that
|
||||
* every field not bound by the path template should be mapped to the
|
||||
* request body. This enables the following alternative definition of
|
||||
* the update method:
|
||||
* service Messaging {
|
||||
* rpc UpdateMessage(Message) returns (Message) {
|
||||
* option (google.api.http) = {
|
||||
* patch: "/v1/messages/{message_id}"
|
||||
* body: "*"
|
||||
* };
|
||||
* }
|
||||
* }
|
||||
* message Message {
|
||||
* string message_id = 1;
|
||||
* string text = 2;
|
||||
* }
|
||||
* The following HTTP JSON to RPC mapping is enabled:
|
||||
* HTTP | gRPC
|
||||
* -----|-----
|
||||
* `PATCH /v1/messages/123456 { "text": "Hi!" }` | `UpdateMessage(message_id:
|
||||
* "123456" text: "Hi!")`
|
||||
* Note that when using `*` in the body mapping, it is not possible to
|
||||
* have HTTP parameters, as all fields not bound by the path end in
|
||||
* the body. This makes this option more rarely used in practice when
|
||||
* defining REST APIs. The common usage of `*` is in custom methods
|
||||
* which don't use the URL at all for transferring data.
|
||||
* It is possible to define multiple HTTP methods for one RPC by using
|
||||
* the `additional_bindings` option. Example:
|
||||
* service Messaging {
|
||||
* rpc GetMessage(GetMessageRequest) returns (Message) {
|
||||
* option (google.api.http) = {
|
||||
* get: "/v1/messages/{message_id}"
|
||||
* additional_bindings {
|
||||
* get: "/v1/users/{user_id}/messages/{message_id}"
|
||||
* }
|
||||
* };
|
||||
* }
|
||||
* }
|
||||
* message GetMessageRequest {
|
||||
* string message_id = 1;
|
||||
* string user_id = 2;
|
||||
* }
|
||||
* This enables the following two alternative HTTP JSON to RPC mappings:
|
||||
* HTTP | gRPC
|
||||
* -----|-----
|
||||
* `GET /v1/messages/123456` | `GetMessage(message_id: "123456")`
|
||||
* `GET /v1/users/me/messages/123456` | `GetMessage(user_id: "me" message_id:
|
||||
* "123456")`
|
||||
* ## Rules for HTTP mapping
|
||||
* 1. Leaf request fields (recursive expansion nested messages in the request
|
||||
* message) are classified into three categories:
|
||||
* - Fields referred by the path template. They are passed via the URL path.
|
||||
* - Fields referred by the [HttpRule.body][google.api.HttpRule.body]. They
|
||||
* are passed via the HTTP
|
||||
* request body.
|
||||
* - All other fields are passed via the URL query parameters, and the
|
||||
* parameter name is the field path in the request message. A repeated
|
||||
* field can be represented as multiple query parameters under the same
|
||||
* name.
|
||||
* 2. If [HttpRule.body][google.api.HttpRule.body] is "*", there is no URL
|
||||
* query parameter, all fields
|
||||
* are passed via URL path and HTTP request body.
|
||||
* 3. If [HttpRule.body][google.api.HttpRule.body] is omitted, there is no HTTP
|
||||
* request body, all
|
||||
* fields are passed via URL path and URL query parameters.
|
||||
* ### Path template syntax
|
||||
* Template = "/" Segments [ Verb ] ;
|
||||
* Segments = Segment { "/" Segment } ;
|
||||
* Segment = "*" | "**" | LITERAL | Variable ;
|
||||
* Variable = "{" FieldPath [ "=" Segments ] "}" ;
|
||||
* FieldPath = IDENT { "." IDENT } ;
|
||||
* Verb = ":" LITERAL ;
|
||||
* The syntax `*` matches a single URL path segment. The syntax `**` matches
|
||||
* zero or more URL path segments, which must be the last part of the URL path
|
||||
* except the `Verb`.
|
||||
* The syntax `Variable` matches part of the URL path as specified by its
|
||||
* template. A variable template must not contain other variables. If a variable
|
||||
* matches a single path segment, its template may be omitted, e.g. `{var}`
|
||||
* is equivalent to `{var=*}`.
|
||||
* The syntax `LITERAL` matches literal text in the URL path. If the `LITERAL`
|
||||
* contains any reserved character, such characters should be percent-encoded
|
||||
* before the matching.
|
||||
* If a variable contains exactly one path segment, such as `"{var}"` or
|
||||
* `"{var=*}"`, when such a variable is expanded into a URL path on the client
|
||||
* side, all characters except `[-_.~0-9a-zA-Z]` are percent-encoded. The
|
||||
* server side does the reverse decoding. Such variables show up in the
|
||||
* [Discovery
|
||||
* Document](https://developers.google.com/discovery/v1/reference/apis) as
|
||||
* `{var}`.
|
||||
* If a variable contains multiple path segments, such as `"{var=foo/*}"`
|
||||
* or `"{var=**}"`, when such a variable is expanded into a URL path on the
|
||||
* client side, all characters except `[-_.~/0-9a-zA-Z]` are percent-encoded.
|
||||
* The server side does the reverse decoding, except "%2F" and "%2f" are left
|
||||
* unchanged. Such variables show up in the
|
||||
* [Discovery
|
||||
* Document](https://developers.google.com/discovery/v1/reference/apis) as
|
||||
* `{+var}`.
|
||||
* ## Using gRPC API Service Configuration
|
||||
* gRPC API Service Configuration (service config) is a configuration language
|
||||
* for configuring a gRPC service to become a user-facing product. The
|
||||
* service config is simply the YAML representation of the `google.api.Service`
|
||||
* proto message.
|
||||
* As an alternative to annotating your proto file, you can configure gRPC
|
||||
* transcoding in your service config YAML files. You do this by specifying a
|
||||
* `HttpRule` that maps the gRPC method to a REST endpoint, achieving the same
|
||||
* effect as the proto annotation. This can be particularly useful if you
|
||||
* have a proto that is reused in multiple services. Note that any transcoding
|
||||
* specified in the service config will override any matching transcoding
|
||||
* configuration in the proto.
|
||||
* Example:
|
||||
* http:
|
||||
* rules:
|
||||
* # Selects a gRPC method and applies HttpRule to it.
|
||||
* - selector: example.v1.Messaging.GetMessage
|
||||
* get: /v1/messages/{message_id}/{sub.subfield}
|
||||
* ## Special notes
|
||||
* When gRPC Transcoding is used to map a gRPC to JSON REST endpoints, the
|
||||
* proto to JSON conversion must follow the [proto3
|
||||
* specification](https://developers.google.com/protocol-buffers/docs/proto3#json).
|
||||
* While the single segment variable follows the semantics of
|
||||
* [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 Simple String
|
||||
* Expansion, the multi segment variable **does not** follow RFC 6570 Section
|
||||
* 3.2.3 Reserved Expansion. The reason is that the Reserved Expansion
|
||||
* does not expand special characters like `?` and `#`, which would lead
|
||||
* to invalid URLs. As the result, gRPC Transcoding uses a custom encoding
|
||||
* for multi segment variables.
|
||||
* The path variables **must not** refer to any repeated or mapped field,
|
||||
* because client libraries are not capable of handling such variable expansion.
|
||||
* The path variables **must not** capture the leading "/" character. The reason
|
||||
* is that the most common use case "{var}" does not capture the leading "/"
|
||||
* character. For consistency, all path variables must share the same behavior.
|
||||
* Repeated message fields must not be mapped to URL query parameters, because
|
||||
* no client library can support such complicated mapping.
|
||||
* If an API needs to use a JSON array for request or response body, it can map
|
||||
* the request or response body to a repeated field. However, some gRPC
|
||||
* Transcoding implementations may not support this feature.
|
||||
*
|
||||
* Generated from protobuf message <code>google.api.HttpRule</code>
|
||||
*/
|
||||
class HttpRule extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* Selects a method to which this rule applies.
|
||||
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
|
||||
* details.
|
||||
*
|
||||
* Generated from protobuf field <code>string selector = 1;</code>
|
||||
*/
|
||||
protected $selector = '';
|
||||
/**
|
||||
* The name of the request field whose value is mapped to the HTTP request
|
||||
* body, or `*` for mapping all request fields not captured by the path
|
||||
* pattern to the HTTP body, or omitted for not having any HTTP request body.
|
||||
* NOTE: the referred field must be present at the top-level of the request
|
||||
* message type.
|
||||
*
|
||||
* Generated from protobuf field <code>string body = 7;</code>
|
||||
*/
|
||||
protected $body = '';
|
||||
/**
|
||||
* Optional. The name of the response field whose value is mapped to the HTTP
|
||||
* response body. When omitted, the entire response message will be used
|
||||
* as the HTTP response body.
|
||||
* NOTE: The referred field must be present at the top-level of the response
|
||||
* message type.
|
||||
*
|
||||
* Generated from protobuf field <code>string response_body = 12;</code>
|
||||
*/
|
||||
protected $response_body = '';
|
||||
/**
|
||||
* Additional HTTP bindings for the selector. Nested bindings must
|
||||
* not contain an `additional_bindings` field themselves (that is,
|
||||
* the nesting may only be one level deep).
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.HttpRule additional_bindings = 11;</code>
|
||||
*/
|
||||
private $additional_bindings;
|
||||
protected $pattern;
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type string $selector
|
||||
* Selects a method to which this rule applies.
|
||||
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
|
||||
* details.
|
||||
* @type string $get
|
||||
* Maps to HTTP GET. Used for listing and getting information about
|
||||
* resources.
|
||||
* @type string $put
|
||||
* Maps to HTTP PUT. Used for replacing a resource.
|
||||
* @type string $post
|
||||
* Maps to HTTP POST. Used for creating a resource or performing an action.
|
||||
* @type string $delete
|
||||
* Maps to HTTP DELETE. Used for deleting a resource.
|
||||
* @type string $patch
|
||||
* Maps to HTTP PATCH. Used for updating a resource.
|
||||
* @type \Google\Api\CustomHttpPattern $custom
|
||||
* The custom pattern is used for specifying an HTTP method that is not
|
||||
* included in the `pattern` field, such as HEAD, or "*" to leave the
|
||||
* HTTP method unspecified for this rule. The wild-card rule is useful
|
||||
* for services that provide content to Web (HTML) clients.
|
||||
* @type string $body
|
||||
* The name of the request field whose value is mapped to the HTTP request
|
||||
* body, or `*` for mapping all request fields not captured by the path
|
||||
* pattern to the HTTP body, or omitted for not having any HTTP request body.
|
||||
* NOTE: the referred field must be present at the top-level of the request
|
||||
* message type.
|
||||
* @type string $response_body
|
||||
* Optional. The name of the response field whose value is mapped to the HTTP
|
||||
* response body. When omitted, the entire response message will be used
|
||||
* as the HTTP response body.
|
||||
* NOTE: The referred field must be present at the top-level of the response
|
||||
* message type.
|
||||
* @type array<\Google\Api\HttpRule>|\Google\Protobuf\Internal\RepeatedField $additional_bindings
|
||||
* Additional HTTP bindings for the selector. Nested bindings must
|
||||
* not contain an `additional_bindings` field themselves (that is,
|
||||
* the nesting may only be one level deep).
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Api\Http::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* Selects a method to which this rule applies.
|
||||
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
|
||||
* details.
|
||||
*
|
||||
* Generated from protobuf field <code>string selector = 1;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getSelector()
|
||||
{
|
||||
return $this->selector;
|
||||
}
|
||||
/**
|
||||
* Selects a method to which this rule applies.
|
||||
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
|
||||
* details.
|
||||
*
|
||||
* Generated from protobuf field <code>string selector = 1;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setSelector($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->selector = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Maps to HTTP GET. Used for listing and getting information about
|
||||
* resources.
|
||||
*
|
||||
* Generated from protobuf field <code>string get = 2;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getGet()
|
||||
{
|
||||
return $this->readOneof(2);
|
||||
}
|
||||
public function hasGet()
|
||||
{
|
||||
return $this->hasOneof(2);
|
||||
}
|
||||
/**
|
||||
* Maps to HTTP GET. Used for listing and getting information about
|
||||
* resources.
|
||||
*
|
||||
* Generated from protobuf field <code>string get = 2;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setGet($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->writeOneof(2, $var);
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Maps to HTTP PUT. Used for replacing a resource.
|
||||
*
|
||||
* Generated from protobuf field <code>string put = 3;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getPut()
|
||||
{
|
||||
return $this->readOneof(3);
|
||||
}
|
||||
public function hasPut()
|
||||
{
|
||||
return $this->hasOneof(3);
|
||||
}
|
||||
/**
|
||||
* Maps to HTTP PUT. Used for replacing a resource.
|
||||
*
|
||||
* Generated from protobuf field <code>string put = 3;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setPut($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->writeOneof(3, $var);
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Maps to HTTP POST. Used for creating a resource or performing an action.
|
||||
*
|
||||
* Generated from protobuf field <code>string post = 4;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getPost()
|
||||
{
|
||||
return $this->readOneof(4);
|
||||
}
|
||||
public function hasPost()
|
||||
{
|
||||
return $this->hasOneof(4);
|
||||
}
|
||||
/**
|
||||
* Maps to HTTP POST. Used for creating a resource or performing an action.
|
||||
*
|
||||
* Generated from protobuf field <code>string post = 4;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setPost($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->writeOneof(4, $var);
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Maps to HTTP DELETE. Used for deleting a resource.
|
||||
*
|
||||
* Generated from protobuf field <code>string delete = 5;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getDelete()
|
||||
{
|
||||
return $this->readOneof(5);
|
||||
}
|
||||
public function hasDelete()
|
||||
{
|
||||
return $this->hasOneof(5);
|
||||
}
|
||||
/**
|
||||
* Maps to HTTP DELETE. Used for deleting a resource.
|
||||
*
|
||||
* Generated from protobuf field <code>string delete = 5;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setDelete($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->writeOneof(5, $var);
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Maps to HTTP PATCH. Used for updating a resource.
|
||||
*
|
||||
* Generated from protobuf field <code>string patch = 6;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getPatch()
|
||||
{
|
||||
return $this->readOneof(6);
|
||||
}
|
||||
public function hasPatch()
|
||||
{
|
||||
return $this->hasOneof(6);
|
||||
}
|
||||
/**
|
||||
* Maps to HTTP PATCH. Used for updating a resource.
|
||||
*
|
||||
* Generated from protobuf field <code>string patch = 6;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setPatch($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->writeOneof(6, $var);
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* The custom pattern is used for specifying an HTTP method that is not
|
||||
* included in the `pattern` field, such as HEAD, or "*" to leave the
|
||||
* HTTP method unspecified for this rule. The wild-card rule is useful
|
||||
* for services that provide content to Web (HTML) clients.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.CustomHttpPattern custom = 8;</code>
|
||||
* @return \Google\Api\CustomHttpPattern|null
|
||||
*/
|
||||
public function getCustom()
|
||||
{
|
||||
return $this->readOneof(8);
|
||||
}
|
||||
public function hasCustom()
|
||||
{
|
||||
return $this->hasOneof(8);
|
||||
}
|
||||
/**
|
||||
* The custom pattern is used for specifying an HTTP method that is not
|
||||
* included in the `pattern` field, such as HEAD, or "*" to leave the
|
||||
* HTTP method unspecified for this rule. The wild-card rule is useful
|
||||
* for services that provide content to Web (HTML) clients.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.CustomHttpPattern custom = 8;</code>
|
||||
* @param \Google\Api\CustomHttpPattern $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setCustom($var)
|
||||
{
|
||||
GPBUtil::checkMessage($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\CustomHttpPattern::class);
|
||||
$this->writeOneof(8, $var);
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* The name of the request field whose value is mapped to the HTTP request
|
||||
* body, or `*` for mapping all request fields not captured by the path
|
||||
* pattern to the HTTP body, or omitted for not having any HTTP request body.
|
||||
* NOTE: the referred field must be present at the top-level of the request
|
||||
* message type.
|
||||
*
|
||||
* Generated from protobuf field <code>string body = 7;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getBody()
|
||||
{
|
||||
return $this->body;
|
||||
}
|
||||
/**
|
||||
* The name of the request field whose value is mapped to the HTTP request
|
||||
* body, or `*` for mapping all request fields not captured by the path
|
||||
* pattern to the HTTP body, or omitted for not having any HTTP request body.
|
||||
* NOTE: the referred field must be present at the top-level of the request
|
||||
* message type.
|
||||
*
|
||||
* Generated from protobuf field <code>string body = 7;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setBody($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->body = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Optional. The name of the response field whose value is mapped to the HTTP
|
||||
* response body. When omitted, the entire response message will be used
|
||||
* as the HTTP response body.
|
||||
* NOTE: The referred field must be present at the top-level of the response
|
||||
* message type.
|
||||
*
|
||||
* Generated from protobuf field <code>string response_body = 12;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getResponseBody()
|
||||
{
|
||||
return $this->response_body;
|
||||
}
|
||||
/**
|
||||
* Optional. The name of the response field whose value is mapped to the HTTP
|
||||
* response body. When omitted, the entire response message will be used
|
||||
* as the HTTP response body.
|
||||
* NOTE: The referred field must be present at the top-level of the response
|
||||
* message type.
|
||||
*
|
||||
* Generated from protobuf field <code>string response_body = 12;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setResponseBody($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->response_body = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Additional HTTP bindings for the selector. Nested bindings must
|
||||
* not contain an `additional_bindings` field themselves (that is,
|
||||
* the nesting may only be one level deep).
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.HttpRule additional_bindings = 11;</code>
|
||||
* @return \Google\Protobuf\Internal\RepeatedField
|
||||
*/
|
||||
public function getAdditionalBindings()
|
||||
{
|
||||
return $this->additional_bindings;
|
||||
}
|
||||
/**
|
||||
* Additional HTTP bindings for the selector. Nested bindings must
|
||||
* not contain an `additional_bindings` field themselves (that is,
|
||||
* the nesting may only be one level deep).
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.HttpRule additional_bindings = 11;</code>
|
||||
* @param array<\Google\Api\HttpRule>|\Google\Protobuf\Internal\RepeatedField $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setAdditionalBindings($var)
|
||||
{
|
||||
$arr = GPBUtil::checkRepeatedField($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::MESSAGE, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\HttpRule::class);
|
||||
$this->additional_bindings = $arr;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getPattern()
|
||||
{
|
||||
return $this->whichOneof("pattern");
|
||||
}
|
||||
}
|
||||
207
vendor/Gcp/google/common-protos/src/Api/JavaSettings.php
vendored
Normal file
207
vendor/Gcp/google/common-protos/src/Api/JavaSettings.php
vendored
Normal file
@@ -0,0 +1,207 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/client.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* Settings for Java client libraries.
|
||||
*
|
||||
* Generated from protobuf message <code>google.api.JavaSettings</code>
|
||||
*/
|
||||
class JavaSettings extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* The package name to use in Java. Clobbers the java_package option
|
||||
* set in the protobuf. This should be used **only** by APIs
|
||||
* who have already set the language_settings.java.package_name" field
|
||||
* in gapic.yaml. API teams should use the protobuf java_package option
|
||||
* where possible.
|
||||
* Example of a YAML configuration::
|
||||
* publishing:
|
||||
* java_settings:
|
||||
* library_package: com.google.cloud.pubsub.v1
|
||||
*
|
||||
* Generated from protobuf field <code>string library_package = 1;</code>
|
||||
*/
|
||||
protected $library_package = '';
|
||||
/**
|
||||
* Configure the Java class name to use instead of the service's for its
|
||||
* corresponding generated GAPIC client. Keys are fully-qualified
|
||||
* service names as they appear in the protobuf (including the full
|
||||
* the language_settings.java.interface_names" field in gapic.yaml. API
|
||||
* teams should otherwise use the service name as it appears in the
|
||||
* protobuf.
|
||||
* Example of a YAML configuration::
|
||||
* publishing:
|
||||
* java_settings:
|
||||
* service_class_names:
|
||||
* - google.pubsub.v1.Publisher: TopicAdmin
|
||||
* - google.pubsub.v1.Subscriber: SubscriptionAdmin
|
||||
*
|
||||
* Generated from protobuf field <code>map<string, string> service_class_names = 2;</code>
|
||||
*/
|
||||
private $service_class_names;
|
||||
/**
|
||||
* Some settings.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.CommonLanguageSettings common = 3;</code>
|
||||
*/
|
||||
protected $common = null;
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type string $library_package
|
||||
* The package name to use in Java. Clobbers the java_package option
|
||||
* set in the protobuf. This should be used **only** by APIs
|
||||
* who have already set the language_settings.java.package_name" field
|
||||
* in gapic.yaml. API teams should use the protobuf java_package option
|
||||
* where possible.
|
||||
* Example of a YAML configuration::
|
||||
* publishing:
|
||||
* java_settings:
|
||||
* library_package: com.google.cloud.pubsub.v1
|
||||
* @type array|\Google\Protobuf\Internal\MapField $service_class_names
|
||||
* Configure the Java class name to use instead of the service's for its
|
||||
* corresponding generated GAPIC client. Keys are fully-qualified
|
||||
* service names as they appear in the protobuf (including the full
|
||||
* the language_settings.java.interface_names" field in gapic.yaml. API
|
||||
* teams should otherwise use the service name as it appears in the
|
||||
* protobuf.
|
||||
* Example of a YAML configuration::
|
||||
* publishing:
|
||||
* java_settings:
|
||||
* service_class_names:
|
||||
* - google.pubsub.v1.Publisher: TopicAdmin
|
||||
* - google.pubsub.v1.Subscriber: SubscriptionAdmin
|
||||
* @type \Google\Api\CommonLanguageSettings $common
|
||||
* Some settings.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Api\Client::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* The package name to use in Java. Clobbers the java_package option
|
||||
* set in the protobuf. This should be used **only** by APIs
|
||||
* who have already set the language_settings.java.package_name" field
|
||||
* in gapic.yaml. API teams should use the protobuf java_package option
|
||||
* where possible.
|
||||
* Example of a YAML configuration::
|
||||
* publishing:
|
||||
* java_settings:
|
||||
* library_package: com.google.cloud.pubsub.v1
|
||||
*
|
||||
* Generated from protobuf field <code>string library_package = 1;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getLibraryPackage()
|
||||
{
|
||||
return $this->library_package;
|
||||
}
|
||||
/**
|
||||
* The package name to use in Java. Clobbers the java_package option
|
||||
* set in the protobuf. This should be used **only** by APIs
|
||||
* who have already set the language_settings.java.package_name" field
|
||||
* in gapic.yaml. API teams should use the protobuf java_package option
|
||||
* where possible.
|
||||
* Example of a YAML configuration::
|
||||
* publishing:
|
||||
* java_settings:
|
||||
* library_package: com.google.cloud.pubsub.v1
|
||||
*
|
||||
* Generated from protobuf field <code>string library_package = 1;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setLibraryPackage($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->library_package = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Configure the Java class name to use instead of the service's for its
|
||||
* corresponding generated GAPIC client. Keys are fully-qualified
|
||||
* service names as they appear in the protobuf (including the full
|
||||
* the language_settings.java.interface_names" field in gapic.yaml. API
|
||||
* teams should otherwise use the service name as it appears in the
|
||||
* protobuf.
|
||||
* Example of a YAML configuration::
|
||||
* publishing:
|
||||
* java_settings:
|
||||
* service_class_names:
|
||||
* - google.pubsub.v1.Publisher: TopicAdmin
|
||||
* - google.pubsub.v1.Subscriber: SubscriptionAdmin
|
||||
*
|
||||
* Generated from protobuf field <code>map<string, string> service_class_names = 2;</code>
|
||||
* @return \Google\Protobuf\Internal\MapField
|
||||
*/
|
||||
public function getServiceClassNames()
|
||||
{
|
||||
return $this->service_class_names;
|
||||
}
|
||||
/**
|
||||
* Configure the Java class name to use instead of the service's for its
|
||||
* corresponding generated GAPIC client. Keys are fully-qualified
|
||||
* service names as they appear in the protobuf (including the full
|
||||
* the language_settings.java.interface_names" field in gapic.yaml. API
|
||||
* teams should otherwise use the service name as it appears in the
|
||||
* protobuf.
|
||||
* Example of a YAML configuration::
|
||||
* publishing:
|
||||
* java_settings:
|
||||
* service_class_names:
|
||||
* - google.pubsub.v1.Publisher: TopicAdmin
|
||||
* - google.pubsub.v1.Subscriber: SubscriptionAdmin
|
||||
*
|
||||
* Generated from protobuf field <code>map<string, string> service_class_names = 2;</code>
|
||||
* @param array|\Google\Protobuf\Internal\MapField $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setServiceClassNames($var)
|
||||
{
|
||||
$arr = GPBUtil::checkMapField($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::STRING, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::STRING);
|
||||
$this->service_class_names = $arr;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Some settings.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.CommonLanguageSettings common = 3;</code>
|
||||
* @return \Google\Api\CommonLanguageSettings|null
|
||||
*/
|
||||
public function getCommon()
|
||||
{
|
||||
return $this->common;
|
||||
}
|
||||
public function hasCommon()
|
||||
{
|
||||
return isset($this->common);
|
||||
}
|
||||
public function clearCommon()
|
||||
{
|
||||
unset($this->common);
|
||||
}
|
||||
/**
|
||||
* Some settings.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.CommonLanguageSettings common = 3;</code>
|
||||
* @param \Google\Api\CommonLanguageSettings $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setCommon($var)
|
||||
{
|
||||
GPBUtil::checkMessage($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\CommonLanguageSettings::class);
|
||||
$this->common = $var;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
180
vendor/Gcp/google/common-protos/src/Api/JwtLocation.php
vendored
Normal file
180
vendor/Gcp/google/common-protos/src/Api/JwtLocation.php
vendored
Normal file
@@ -0,0 +1,180 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/auth.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* Specifies a location to extract JWT from an API request.
|
||||
*
|
||||
* Generated from protobuf message <code>google.api.JwtLocation</code>
|
||||
*/
|
||||
class JwtLocation extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* The value prefix. The value format is "value_prefix{token}"
|
||||
* Only applies to "in" header type. Must be empty for "in" query type.
|
||||
* If not empty, the header value has to match (case sensitive) this prefix.
|
||||
* If not matched, JWT will not be extracted. If matched, JWT will be
|
||||
* extracted after the prefix is removed.
|
||||
* For example, for "Authorization: Bearer {JWT}",
|
||||
* value_prefix="Bearer " with a space at the end.
|
||||
*
|
||||
* Generated from protobuf field <code>string value_prefix = 3;</code>
|
||||
*/
|
||||
protected $value_prefix = '';
|
||||
protected $in;
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type string $header
|
||||
* Specifies HTTP header name to extract JWT token.
|
||||
* @type string $query
|
||||
* Specifies URL query parameter name to extract JWT token.
|
||||
* @type string $cookie
|
||||
* Specifies cookie name to extract JWT token.
|
||||
* @type string $value_prefix
|
||||
* The value prefix. The value format is "value_prefix{token}"
|
||||
* Only applies to "in" header type. Must be empty for "in" query type.
|
||||
* If not empty, the header value has to match (case sensitive) this prefix.
|
||||
* If not matched, JWT will not be extracted. If matched, JWT will be
|
||||
* extracted after the prefix is removed.
|
||||
* For example, for "Authorization: Bearer {JWT}",
|
||||
* value_prefix="Bearer " with a space at the end.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Api\Auth::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* Specifies HTTP header name to extract JWT token.
|
||||
*
|
||||
* Generated from protobuf field <code>string header = 1;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getHeader()
|
||||
{
|
||||
return $this->readOneof(1);
|
||||
}
|
||||
public function hasHeader()
|
||||
{
|
||||
return $this->hasOneof(1);
|
||||
}
|
||||
/**
|
||||
* Specifies HTTP header name to extract JWT token.
|
||||
*
|
||||
* Generated from protobuf field <code>string header = 1;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setHeader($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->writeOneof(1, $var);
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Specifies URL query parameter name to extract JWT token.
|
||||
*
|
||||
* Generated from protobuf field <code>string query = 2;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getQuery()
|
||||
{
|
||||
return $this->readOneof(2);
|
||||
}
|
||||
public function hasQuery()
|
||||
{
|
||||
return $this->hasOneof(2);
|
||||
}
|
||||
/**
|
||||
* Specifies URL query parameter name to extract JWT token.
|
||||
*
|
||||
* Generated from protobuf field <code>string query = 2;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setQuery($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->writeOneof(2, $var);
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Specifies cookie name to extract JWT token.
|
||||
*
|
||||
* Generated from protobuf field <code>string cookie = 4;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getCookie()
|
||||
{
|
||||
return $this->readOneof(4);
|
||||
}
|
||||
public function hasCookie()
|
||||
{
|
||||
return $this->hasOneof(4);
|
||||
}
|
||||
/**
|
||||
* Specifies cookie name to extract JWT token.
|
||||
*
|
||||
* Generated from protobuf field <code>string cookie = 4;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setCookie($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->writeOneof(4, $var);
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* The value prefix. The value format is "value_prefix{token}"
|
||||
* Only applies to "in" header type. Must be empty for "in" query type.
|
||||
* If not empty, the header value has to match (case sensitive) this prefix.
|
||||
* If not matched, JWT will not be extracted. If matched, JWT will be
|
||||
* extracted after the prefix is removed.
|
||||
* For example, for "Authorization: Bearer {JWT}",
|
||||
* value_prefix="Bearer " with a space at the end.
|
||||
*
|
||||
* Generated from protobuf field <code>string value_prefix = 3;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getValuePrefix()
|
||||
{
|
||||
return $this->value_prefix;
|
||||
}
|
||||
/**
|
||||
* The value prefix. The value format is "value_prefix{token}"
|
||||
* Only applies to "in" header type. Must be empty for "in" query type.
|
||||
* If not empty, the header value has to match (case sensitive) this prefix.
|
||||
* If not matched, JWT will not be extracted. If matched, JWT will be
|
||||
* extracted after the prefix is removed.
|
||||
* For example, for "Authorization: Bearer {JWT}",
|
||||
* value_prefix="Bearer " with a space at the end.
|
||||
*
|
||||
* Generated from protobuf field <code>string value_prefix = 3;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setValuePrefix($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->value_prefix = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getIn()
|
||||
{
|
||||
return $this->whichOneof("in");
|
||||
}
|
||||
}
|
||||
123
vendor/Gcp/google/common-protos/src/Api/LabelDescriptor.php
vendored
Normal file
123
vendor/Gcp/google/common-protos/src/Api/LabelDescriptor.php
vendored
Normal file
@@ -0,0 +1,123 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/label.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* A description of a label.
|
||||
*
|
||||
* Generated from protobuf message <code>google.api.LabelDescriptor</code>
|
||||
*/
|
||||
class LabelDescriptor extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* The label key.
|
||||
*
|
||||
* Generated from protobuf field <code>string key = 1;</code>
|
||||
*/
|
||||
protected $key = '';
|
||||
/**
|
||||
* The type of data that can be assigned to the label.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.LabelDescriptor.ValueType value_type = 2;</code>
|
||||
*/
|
||||
protected $value_type = 0;
|
||||
/**
|
||||
* A human-readable description for the label.
|
||||
*
|
||||
* Generated from protobuf field <code>string description = 3;</code>
|
||||
*/
|
||||
protected $description = '';
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type string $key
|
||||
* The label key.
|
||||
* @type int $value_type
|
||||
* The type of data that can be assigned to the label.
|
||||
* @type string $description
|
||||
* A human-readable description for the label.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Api\Label::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* The label key.
|
||||
*
|
||||
* Generated from protobuf field <code>string key = 1;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getKey()
|
||||
{
|
||||
return $this->key;
|
||||
}
|
||||
/**
|
||||
* The label key.
|
||||
*
|
||||
* Generated from protobuf field <code>string key = 1;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setKey($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->key = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* The type of data that can be assigned to the label.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.LabelDescriptor.ValueType value_type = 2;</code>
|
||||
* @return int
|
||||
*/
|
||||
public function getValueType()
|
||||
{
|
||||
return $this->value_type;
|
||||
}
|
||||
/**
|
||||
* The type of data that can be assigned to the label.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.LabelDescriptor.ValueType value_type = 2;</code>
|
||||
* @param int $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setValueType($var)
|
||||
{
|
||||
GPBUtil::checkEnum($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\LabelDescriptor\ValueType::class);
|
||||
$this->value_type = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* A human-readable description for the label.
|
||||
*
|
||||
* Generated from protobuf field <code>string description = 3;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getDescription()
|
||||
{
|
||||
return $this->description;
|
||||
}
|
||||
/**
|
||||
* A human-readable description for the label.
|
||||
*
|
||||
* Generated from protobuf field <code>string description = 3;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setDescription($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->description = $var;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
49
vendor/Gcp/google/common-protos/src/Api/LabelDescriptor/ValueType.php
vendored
Normal file
49
vendor/Gcp/google/common-protos/src/Api/LabelDescriptor/ValueType.php
vendored
Normal file
@@ -0,0 +1,49 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/label.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\LabelDescriptor;
|
||||
|
||||
use UnexpectedValueException;
|
||||
/**
|
||||
* Value types that can be used as label values.
|
||||
*
|
||||
* Protobuf type <code>google.api.LabelDescriptor.ValueType</code>
|
||||
*/
|
||||
class ValueType
|
||||
{
|
||||
/**
|
||||
* A variable-length string. This is the default.
|
||||
*
|
||||
* Generated from protobuf enum <code>STRING = 0;</code>
|
||||
*/
|
||||
const STRING = 0;
|
||||
/**
|
||||
* Boolean; true or false.
|
||||
*
|
||||
* Generated from protobuf enum <code>BOOL = 1;</code>
|
||||
*/
|
||||
const BOOL = 1;
|
||||
/**
|
||||
* A 64-bit signed integer.
|
||||
*
|
||||
* Generated from protobuf enum <code>INT64 = 2;</code>
|
||||
*/
|
||||
const INT64 = 2;
|
||||
private static $valueToName = [self::STRING => 'STRING', self::BOOL => 'BOOL', self::INT64 => 'INT64'];
|
||||
public static function name($value)
|
||||
{
|
||||
if (!isset(self::$valueToName[$value])) {
|
||||
throw new UnexpectedValueException(\sprintf('Enum %s has no name defined for value %s', __CLASS__, $value));
|
||||
}
|
||||
return self::$valueToName[$value];
|
||||
}
|
||||
public static function value($name)
|
||||
{
|
||||
$const = __CLASS__ . '::' . \strtoupper($name);
|
||||
if (!\defined($const)) {
|
||||
throw new UnexpectedValueException(\sprintf('Enum %s has no value defined for name %s', __CLASS__, $name));
|
||||
}
|
||||
return \constant($const);
|
||||
}
|
||||
}
|
||||
101
vendor/Gcp/google/common-protos/src/Api/LaunchStage.php
vendored
Normal file
101
vendor/Gcp/google/common-protos/src/Api/LaunchStage.php
vendored
Normal file
@@ -0,0 +1,101 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/launch_stage.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api;
|
||||
|
||||
use UnexpectedValueException;
|
||||
/**
|
||||
* The launch stage as defined by [Google Cloud Platform
|
||||
* Launch Stages](https://cloud.google.com/terms/launch-stages).
|
||||
*
|
||||
* Protobuf type <code>google.api.LaunchStage</code>
|
||||
*/
|
||||
class LaunchStage
|
||||
{
|
||||
/**
|
||||
* Do not use this default value.
|
||||
*
|
||||
* Generated from protobuf enum <code>LAUNCH_STAGE_UNSPECIFIED = 0;</code>
|
||||
*/
|
||||
const LAUNCH_STAGE_UNSPECIFIED = 0;
|
||||
/**
|
||||
* The feature is not yet implemented. Users can not use it.
|
||||
*
|
||||
* Generated from protobuf enum <code>UNIMPLEMENTED = 6;</code>
|
||||
*/
|
||||
const UNIMPLEMENTED = 6;
|
||||
/**
|
||||
* Prelaunch features are hidden from users and are only visible internally.
|
||||
*
|
||||
* Generated from protobuf enum <code>PRELAUNCH = 7;</code>
|
||||
*/
|
||||
const PRELAUNCH = 7;
|
||||
/**
|
||||
* Early Access features are limited to a closed group of testers. To use
|
||||
* these features, you must sign up in advance and sign a Trusted Tester
|
||||
* agreement (which includes confidentiality provisions). These features may
|
||||
* be unstable, changed in backward-incompatible ways, and are not
|
||||
* guaranteed to be released.
|
||||
*
|
||||
* Generated from protobuf enum <code>EARLY_ACCESS = 1;</code>
|
||||
*/
|
||||
const EARLY_ACCESS = 1;
|
||||
/**
|
||||
* Alpha is a limited availability test for releases before they are cleared
|
||||
* for widespread use. By Alpha, all significant design issues are resolved
|
||||
* and we are in the process of verifying functionality. Alpha customers
|
||||
* need to apply for access, agree to applicable terms, and have their
|
||||
* projects allowlisted. Alpha releases don't have to be feature complete,
|
||||
* no SLAs are provided, and there are no technical support obligations, but
|
||||
* they will be far enough along that customers can actually use them in
|
||||
* test environments or for limited-use tests -- just like they would in
|
||||
* normal production cases.
|
||||
*
|
||||
* Generated from protobuf enum <code>ALPHA = 2;</code>
|
||||
*/
|
||||
const ALPHA = 2;
|
||||
/**
|
||||
* Beta is the point at which we are ready to open a release for any
|
||||
* customer to use. There are no SLA or technical support obligations in a
|
||||
* Beta release. Products will be complete from a feature perspective, but
|
||||
* may have some open outstanding issues. Beta releases are suitable for
|
||||
* limited production use cases.
|
||||
*
|
||||
* Generated from protobuf enum <code>BETA = 3;</code>
|
||||
*/
|
||||
const BETA = 3;
|
||||
/**
|
||||
* GA features are open to all developers and are considered stable and
|
||||
* fully qualified for production use.
|
||||
*
|
||||
* Generated from protobuf enum <code>GA = 4;</code>
|
||||
*/
|
||||
const GA = 4;
|
||||
/**
|
||||
* Deprecated features are scheduled to be shut down and removed. For more
|
||||
* information, see the "Deprecation Policy" section of our [Terms of
|
||||
* Service](https://cloud.google.com/terms/)
|
||||
* and the [Google Cloud Platform Subject to the Deprecation
|
||||
* Policy](https://cloud.google.com/terms/deprecation) documentation.
|
||||
*
|
||||
* Generated from protobuf enum <code>DEPRECATED = 5;</code>
|
||||
*/
|
||||
const DEPRECATED = 5;
|
||||
private static $valueToName = [self::LAUNCH_STAGE_UNSPECIFIED => 'LAUNCH_STAGE_UNSPECIFIED', self::UNIMPLEMENTED => 'UNIMPLEMENTED', self::PRELAUNCH => 'PRELAUNCH', self::EARLY_ACCESS => 'EARLY_ACCESS', self::ALPHA => 'ALPHA', self::BETA => 'BETA', self::GA => 'GA', self::DEPRECATED => 'DEPRECATED'];
|
||||
public static function name($value)
|
||||
{
|
||||
if (!isset(self::$valueToName[$value])) {
|
||||
throw new UnexpectedValueException(\sprintf('Enum %s has no name defined for value %s', __CLASS__, $value));
|
||||
}
|
||||
return self::$valueToName[$value];
|
||||
}
|
||||
public static function value($name)
|
||||
{
|
||||
$const = __CLASS__ . '::' . \strtoupper($name);
|
||||
if (!\defined($const)) {
|
||||
throw new UnexpectedValueException(\sprintf('Enum %s has no value defined for name %s', __CLASS__, $name));
|
||||
}
|
||||
return \constant($const);
|
||||
}
|
||||
}
|
||||
188
vendor/Gcp/google/common-protos/src/Api/LogDescriptor.php
vendored
Normal file
188
vendor/Gcp/google/common-protos/src/Api/LogDescriptor.php
vendored
Normal file
@@ -0,0 +1,188 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/log.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* A description of a log type. Example in YAML format:
|
||||
* - name: library.googleapis.com/activity_history
|
||||
* description: The history of borrowing and returning library items.
|
||||
* display_name: Activity
|
||||
* labels:
|
||||
* - key: /customer_id
|
||||
* description: Identifier of a library customer
|
||||
*
|
||||
* Generated from protobuf message <code>google.api.LogDescriptor</code>
|
||||
*/
|
||||
class LogDescriptor extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* The name of the log. It must be less than 512 characters long and can
|
||||
* include the following characters: upper- and lower-case alphanumeric
|
||||
* characters [A-Za-z0-9], and punctuation characters including
|
||||
* slash, underscore, hyphen, period [/_-.].
|
||||
*
|
||||
* Generated from protobuf field <code>string name = 1;</code>
|
||||
*/
|
||||
protected $name = '';
|
||||
/**
|
||||
* The set of labels that are available to describe a specific log entry.
|
||||
* Runtime requests that contain labels not specified here are
|
||||
* considered invalid.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.LabelDescriptor labels = 2;</code>
|
||||
*/
|
||||
private $labels;
|
||||
/**
|
||||
* A human-readable description of this log. This information appears in
|
||||
* the documentation and can contain details.
|
||||
*
|
||||
* Generated from protobuf field <code>string description = 3;</code>
|
||||
*/
|
||||
protected $description = '';
|
||||
/**
|
||||
* The human-readable name for this log. This information appears on
|
||||
* the user interface and should be concise.
|
||||
*
|
||||
* Generated from protobuf field <code>string display_name = 4;</code>
|
||||
*/
|
||||
protected $display_name = '';
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type string $name
|
||||
* The name of the log. It must be less than 512 characters long and can
|
||||
* include the following characters: upper- and lower-case alphanumeric
|
||||
* characters [A-Za-z0-9], and punctuation characters including
|
||||
* slash, underscore, hyphen, period [/_-.].
|
||||
* @type array<\Google\Api\LabelDescriptor>|\Google\Protobuf\Internal\RepeatedField $labels
|
||||
* The set of labels that are available to describe a specific log entry.
|
||||
* Runtime requests that contain labels not specified here are
|
||||
* considered invalid.
|
||||
* @type string $description
|
||||
* A human-readable description of this log. This information appears in
|
||||
* the documentation and can contain details.
|
||||
* @type string $display_name
|
||||
* The human-readable name for this log. This information appears on
|
||||
* the user interface and should be concise.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Api\Log::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* The name of the log. It must be less than 512 characters long and can
|
||||
* include the following characters: upper- and lower-case alphanumeric
|
||||
* characters [A-Za-z0-9], and punctuation characters including
|
||||
* slash, underscore, hyphen, period [/_-.].
|
||||
*
|
||||
* Generated from protobuf field <code>string name = 1;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getName()
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
/**
|
||||
* The name of the log. It must be less than 512 characters long and can
|
||||
* include the following characters: upper- and lower-case alphanumeric
|
||||
* characters [A-Za-z0-9], and punctuation characters including
|
||||
* slash, underscore, hyphen, period [/_-.].
|
||||
*
|
||||
* Generated from protobuf field <code>string name = 1;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setName($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->name = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* The set of labels that are available to describe a specific log entry.
|
||||
* Runtime requests that contain labels not specified here are
|
||||
* considered invalid.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.LabelDescriptor labels = 2;</code>
|
||||
* @return \Google\Protobuf\Internal\RepeatedField
|
||||
*/
|
||||
public function getLabels()
|
||||
{
|
||||
return $this->labels;
|
||||
}
|
||||
/**
|
||||
* The set of labels that are available to describe a specific log entry.
|
||||
* Runtime requests that contain labels not specified here are
|
||||
* considered invalid.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.LabelDescriptor labels = 2;</code>
|
||||
* @param array<\Google\Api\LabelDescriptor>|\Google\Protobuf\Internal\RepeatedField $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setLabels($var)
|
||||
{
|
||||
$arr = GPBUtil::checkRepeatedField($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::MESSAGE, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\LabelDescriptor::class);
|
||||
$this->labels = $arr;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* A human-readable description of this log. This information appears in
|
||||
* the documentation and can contain details.
|
||||
*
|
||||
* Generated from protobuf field <code>string description = 3;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getDescription()
|
||||
{
|
||||
return $this->description;
|
||||
}
|
||||
/**
|
||||
* A human-readable description of this log. This information appears in
|
||||
* the documentation and can contain details.
|
||||
*
|
||||
* Generated from protobuf field <code>string description = 3;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setDescription($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->description = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* The human-readable name for this log. This information appears on
|
||||
* the user interface and should be concise.
|
||||
*
|
||||
* Generated from protobuf field <code>string display_name = 4;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getDisplayName()
|
||||
{
|
||||
return $this->display_name;
|
||||
}
|
||||
/**
|
||||
* The human-readable name for this log. This information appears on
|
||||
* the user interface and should be concise.
|
||||
*
|
||||
* Generated from protobuf field <code>string display_name = 4;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setDisplayName($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->display_name = $var;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
142
vendor/Gcp/google/common-protos/src/Api/Logging.php
vendored
Normal file
142
vendor/Gcp/google/common-protos/src/Api/Logging.php
vendored
Normal file
@@ -0,0 +1,142 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/logging.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* Logging configuration of the service.
|
||||
* The following example shows how to configure logs to be sent to the
|
||||
* producer and consumer projects. In the example, the `activity_history`
|
||||
* log is sent to both the producer and consumer projects, whereas the
|
||||
* `purchase_history` log is only sent to the producer project.
|
||||
* monitored_resources:
|
||||
* - type: library.googleapis.com/branch
|
||||
* labels:
|
||||
* - key: /city
|
||||
* description: The city where the library branch is located in.
|
||||
* - key: /name
|
||||
* description: The name of the branch.
|
||||
* logs:
|
||||
* - name: activity_history
|
||||
* labels:
|
||||
* - key: /customer_id
|
||||
* - name: purchase_history
|
||||
* logging:
|
||||
* producer_destinations:
|
||||
* - monitored_resource: library.googleapis.com/branch
|
||||
* logs:
|
||||
* - activity_history
|
||||
* - purchase_history
|
||||
* consumer_destinations:
|
||||
* - monitored_resource: library.googleapis.com/branch
|
||||
* logs:
|
||||
* - activity_history
|
||||
*
|
||||
* Generated from protobuf message <code>google.api.Logging</code>
|
||||
*/
|
||||
class Logging extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* Logging configurations for sending logs to the producer project.
|
||||
* There can be multiple producer destinations, each one must have a
|
||||
* different monitored resource type. A log can be used in at most
|
||||
* one producer destination.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.Logging.LoggingDestination producer_destinations = 1;</code>
|
||||
*/
|
||||
private $producer_destinations;
|
||||
/**
|
||||
* Logging configurations for sending logs to the consumer project.
|
||||
* There can be multiple consumer destinations, each one must have a
|
||||
* different monitored resource type. A log can be used in at most
|
||||
* one consumer destination.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.Logging.LoggingDestination consumer_destinations = 2;</code>
|
||||
*/
|
||||
private $consumer_destinations;
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type array<\Google\Api\Logging\LoggingDestination>|\Google\Protobuf\Internal\RepeatedField $producer_destinations
|
||||
* Logging configurations for sending logs to the producer project.
|
||||
* There can be multiple producer destinations, each one must have a
|
||||
* different monitored resource type. A log can be used in at most
|
||||
* one producer destination.
|
||||
* @type array<\Google\Api\Logging\LoggingDestination>|\Google\Protobuf\Internal\RepeatedField $consumer_destinations
|
||||
* Logging configurations for sending logs to the consumer project.
|
||||
* There can be multiple consumer destinations, each one must have a
|
||||
* different monitored resource type. A log can be used in at most
|
||||
* one consumer destination.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Api\Logging::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* Logging configurations for sending logs to the producer project.
|
||||
* There can be multiple producer destinations, each one must have a
|
||||
* different monitored resource type. A log can be used in at most
|
||||
* one producer destination.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.Logging.LoggingDestination producer_destinations = 1;</code>
|
||||
* @return \Google\Protobuf\Internal\RepeatedField
|
||||
*/
|
||||
public function getProducerDestinations()
|
||||
{
|
||||
return $this->producer_destinations;
|
||||
}
|
||||
/**
|
||||
* Logging configurations for sending logs to the producer project.
|
||||
* There can be multiple producer destinations, each one must have a
|
||||
* different monitored resource type. A log can be used in at most
|
||||
* one producer destination.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.Logging.LoggingDestination producer_destinations = 1;</code>
|
||||
* @param array<\Google\Api\Logging\LoggingDestination>|\Google\Protobuf\Internal\RepeatedField $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setProducerDestinations($var)
|
||||
{
|
||||
$arr = GPBUtil::checkRepeatedField($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::MESSAGE, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\Logging\LoggingDestination::class);
|
||||
$this->producer_destinations = $arr;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Logging configurations for sending logs to the consumer project.
|
||||
* There can be multiple consumer destinations, each one must have a
|
||||
* different monitored resource type. A log can be used in at most
|
||||
* one consumer destination.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.Logging.LoggingDestination consumer_destinations = 2;</code>
|
||||
* @return \Google\Protobuf\Internal\RepeatedField
|
||||
*/
|
||||
public function getConsumerDestinations()
|
||||
{
|
||||
return $this->consumer_destinations;
|
||||
}
|
||||
/**
|
||||
* Logging configurations for sending logs to the consumer project.
|
||||
* There can be multiple consumer destinations, each one must have a
|
||||
* different monitored resource type. A log can be used in at most
|
||||
* one consumer destination.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.Logging.LoggingDestination consumer_destinations = 2;</code>
|
||||
* @param array<\Google\Api\Logging\LoggingDestination>|\Google\Protobuf\Internal\RepeatedField $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setConsumerDestinations($var)
|
||||
{
|
||||
$arr = GPBUtil::checkRepeatedField($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::MESSAGE, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\Logging\LoggingDestination::class);
|
||||
$this->consumer_destinations = $arr;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
113
vendor/Gcp/google/common-protos/src/Api/Logging/LoggingDestination.php
vendored
Normal file
113
vendor/Gcp/google/common-protos/src/Api/Logging/LoggingDestination.php
vendored
Normal file
@@ -0,0 +1,113 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/logging.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\Logging;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* Configuration of a specific logging destination (the producer project
|
||||
* or the consumer project).
|
||||
*
|
||||
* Generated from protobuf message <code>google.api.Logging.LoggingDestination</code>
|
||||
*/
|
||||
class LoggingDestination extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* The monitored resource type. The type must be defined in the
|
||||
* [Service.monitored_resources][google.api.Service.monitored_resources]
|
||||
* section.
|
||||
*
|
||||
* Generated from protobuf field <code>string monitored_resource = 3;</code>
|
||||
*/
|
||||
protected $monitored_resource = '';
|
||||
/**
|
||||
* Names of the logs to be sent to this destination. Each name must
|
||||
* be defined in the [Service.logs][google.api.Service.logs] section. If the
|
||||
* log name is not a domain scoped name, it will be automatically prefixed
|
||||
* with the service name followed by "/".
|
||||
*
|
||||
* Generated from protobuf field <code>repeated string logs = 1;</code>
|
||||
*/
|
||||
private $logs;
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type string $monitored_resource
|
||||
* The monitored resource type. The type must be defined in the
|
||||
* [Service.monitored_resources][google.api.Service.monitored_resources]
|
||||
* section.
|
||||
* @type array<string>|\Google\Protobuf\Internal\RepeatedField $logs
|
||||
* Names of the logs to be sent to this destination. Each name must
|
||||
* be defined in the [Service.logs][google.api.Service.logs] section. If the
|
||||
* log name is not a domain scoped name, it will be automatically prefixed
|
||||
* with the service name followed by "/".
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Api\Logging::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* The monitored resource type. The type must be defined in the
|
||||
* [Service.monitored_resources][google.api.Service.monitored_resources]
|
||||
* section.
|
||||
*
|
||||
* Generated from protobuf field <code>string monitored_resource = 3;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getMonitoredResource()
|
||||
{
|
||||
return $this->monitored_resource;
|
||||
}
|
||||
/**
|
||||
* The monitored resource type. The type must be defined in the
|
||||
* [Service.monitored_resources][google.api.Service.monitored_resources]
|
||||
* section.
|
||||
*
|
||||
* Generated from protobuf field <code>string monitored_resource = 3;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setMonitoredResource($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->monitored_resource = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Names of the logs to be sent to this destination. Each name must
|
||||
* be defined in the [Service.logs][google.api.Service.logs] section. If the
|
||||
* log name is not a domain scoped name, it will be automatically prefixed
|
||||
* with the service name followed by "/".
|
||||
*
|
||||
* Generated from protobuf field <code>repeated string logs = 1;</code>
|
||||
* @return \Google\Protobuf\Internal\RepeatedField
|
||||
*/
|
||||
public function getLogs()
|
||||
{
|
||||
return $this->logs;
|
||||
}
|
||||
/**
|
||||
* Names of the logs to be sent to this destination. Each name must
|
||||
* be defined in the [Service.logs][google.api.Service.logs] section. If the
|
||||
* log name is not a domain scoped name, it will be automatically prefixed
|
||||
* with the service name followed by "/".
|
||||
*
|
||||
* Generated from protobuf field <code>repeated string logs = 1;</code>
|
||||
* @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setLogs($var)
|
||||
{
|
||||
$arr = GPBUtil::checkRepeatedField($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::STRING);
|
||||
$this->logs = $arr;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
112
vendor/Gcp/google/common-protos/src/Api/MethodPolicy.php
vendored
Normal file
112
vendor/Gcp/google/common-protos/src/Api/MethodPolicy.php
vendored
Normal file
@@ -0,0 +1,112 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/policy.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* Defines policies applying to an RPC method.
|
||||
*
|
||||
* Generated from protobuf message <code>google.api.MethodPolicy</code>
|
||||
*/
|
||||
class MethodPolicy extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* Selects a method to which these policies should be enforced, for example,
|
||||
* "google.pubsub.v1.Subscriber.CreateSubscription".
|
||||
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
|
||||
* details.
|
||||
* NOTE: This field must not be set in the proto annotation. It will be
|
||||
* automatically filled by the service config compiler .
|
||||
*
|
||||
* Generated from protobuf field <code>string selector = 9;</code>
|
||||
*/
|
||||
protected $selector = '';
|
||||
/**
|
||||
* Policies that are applicable to the request message.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.FieldPolicy request_policies = 2;</code>
|
||||
*/
|
||||
private $request_policies;
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type string $selector
|
||||
* Selects a method to which these policies should be enforced, for example,
|
||||
* "google.pubsub.v1.Subscriber.CreateSubscription".
|
||||
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
|
||||
* details.
|
||||
* NOTE: This field must not be set in the proto annotation. It will be
|
||||
* automatically filled by the service config compiler .
|
||||
* @type array<\Google\Api\FieldPolicy>|\Google\Protobuf\Internal\RepeatedField $request_policies
|
||||
* Policies that are applicable to the request message.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Api\Policy::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* Selects a method to which these policies should be enforced, for example,
|
||||
* "google.pubsub.v1.Subscriber.CreateSubscription".
|
||||
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
|
||||
* details.
|
||||
* NOTE: This field must not be set in the proto annotation. It will be
|
||||
* automatically filled by the service config compiler .
|
||||
*
|
||||
* Generated from protobuf field <code>string selector = 9;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getSelector()
|
||||
{
|
||||
return $this->selector;
|
||||
}
|
||||
/**
|
||||
* Selects a method to which these policies should be enforced, for example,
|
||||
* "google.pubsub.v1.Subscriber.CreateSubscription".
|
||||
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
|
||||
* details.
|
||||
* NOTE: This field must not be set in the proto annotation. It will be
|
||||
* automatically filled by the service config compiler .
|
||||
*
|
||||
* Generated from protobuf field <code>string selector = 9;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setSelector($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->selector = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Policies that are applicable to the request message.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.FieldPolicy request_policies = 2;</code>
|
||||
* @return \Google\Protobuf\Internal\RepeatedField
|
||||
*/
|
||||
public function getRequestPolicies()
|
||||
{
|
||||
return $this->request_policies;
|
||||
}
|
||||
/**
|
||||
* Policies that are applicable to the request message.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.FieldPolicy request_policies = 2;</code>
|
||||
* @param array<\Google\Api\FieldPolicy>|\Google\Protobuf\Internal\RepeatedField $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setRequestPolicies($var)
|
||||
{
|
||||
$arr = GPBUtil::checkRepeatedField($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::MESSAGE, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\FieldPolicy::class);
|
||||
$this->request_policies = $arr;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
223
vendor/Gcp/google/common-protos/src/Api/MethodSettings.php
vendored
Normal file
223
vendor/Gcp/google/common-protos/src/Api/MethodSettings.php
vendored
Normal file
@@ -0,0 +1,223 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/client.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* Describes the generator configuration for a method.
|
||||
*
|
||||
* Generated from protobuf message <code>google.api.MethodSettings</code>
|
||||
*/
|
||||
class MethodSettings extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* The fully qualified name of the method, for which the options below apply.
|
||||
* This is used to find the method to apply the options.
|
||||
*
|
||||
* Generated from protobuf field <code>string selector = 1;</code>
|
||||
*/
|
||||
protected $selector = '';
|
||||
/**
|
||||
* Describes settings to use for long-running operations when generating
|
||||
* API methods for RPCs. Complements RPCs that use the annotations in
|
||||
* google/longrunning/operations.proto.
|
||||
* Example of a YAML configuration::
|
||||
* publishing:
|
||||
* method_settings:
|
||||
* - selector: google.cloud.speech.v2.Speech.BatchRecognize
|
||||
* long_running:
|
||||
* initial_poll_delay:
|
||||
* seconds: 60 # 1 minute
|
||||
* poll_delay_multiplier: 1.5
|
||||
* max_poll_delay:
|
||||
* seconds: 360 # 6 minutes
|
||||
* total_poll_timeout:
|
||||
* seconds: 54000 # 90 minutes
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.MethodSettings.LongRunning long_running = 2;</code>
|
||||
*/
|
||||
protected $long_running = null;
|
||||
/**
|
||||
* List of top-level fields of the request message, that should be
|
||||
* automatically populated by the client libraries based on their
|
||||
* (google.api.field_info).format. Currently supported format: UUID4.
|
||||
* Example of a YAML configuration:
|
||||
* publishing:
|
||||
* method_settings:
|
||||
* - selector: google.example.v1.ExampleService.CreateExample
|
||||
* auto_populated_fields:
|
||||
* - request_id
|
||||
*
|
||||
* Generated from protobuf field <code>repeated string auto_populated_fields = 3;</code>
|
||||
*/
|
||||
private $auto_populated_fields;
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type string $selector
|
||||
* The fully qualified name of the method, for which the options below apply.
|
||||
* This is used to find the method to apply the options.
|
||||
* @type \Google\Api\MethodSettings\LongRunning $long_running
|
||||
* Describes settings to use for long-running operations when generating
|
||||
* API methods for RPCs. Complements RPCs that use the annotations in
|
||||
* google/longrunning/operations.proto.
|
||||
* Example of a YAML configuration::
|
||||
* publishing:
|
||||
* method_settings:
|
||||
* - selector: google.cloud.speech.v2.Speech.BatchRecognize
|
||||
* long_running:
|
||||
* initial_poll_delay:
|
||||
* seconds: 60 # 1 minute
|
||||
* poll_delay_multiplier: 1.5
|
||||
* max_poll_delay:
|
||||
* seconds: 360 # 6 minutes
|
||||
* total_poll_timeout:
|
||||
* seconds: 54000 # 90 minutes
|
||||
* @type array<string>|\Google\Protobuf\Internal\RepeatedField $auto_populated_fields
|
||||
* List of top-level fields of the request message, that should be
|
||||
* automatically populated by the client libraries based on their
|
||||
* (google.api.field_info).format. Currently supported format: UUID4.
|
||||
* Example of a YAML configuration:
|
||||
* publishing:
|
||||
* method_settings:
|
||||
* - selector: google.example.v1.ExampleService.CreateExample
|
||||
* auto_populated_fields:
|
||||
* - request_id
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Api\Client::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* The fully qualified name of the method, for which the options below apply.
|
||||
* This is used to find the method to apply the options.
|
||||
*
|
||||
* Generated from protobuf field <code>string selector = 1;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getSelector()
|
||||
{
|
||||
return $this->selector;
|
||||
}
|
||||
/**
|
||||
* The fully qualified name of the method, for which the options below apply.
|
||||
* This is used to find the method to apply the options.
|
||||
*
|
||||
* Generated from protobuf field <code>string selector = 1;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setSelector($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->selector = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Describes settings to use for long-running operations when generating
|
||||
* API methods for RPCs. Complements RPCs that use the annotations in
|
||||
* google/longrunning/operations.proto.
|
||||
* Example of a YAML configuration::
|
||||
* publishing:
|
||||
* method_settings:
|
||||
* - selector: google.cloud.speech.v2.Speech.BatchRecognize
|
||||
* long_running:
|
||||
* initial_poll_delay:
|
||||
* seconds: 60 # 1 minute
|
||||
* poll_delay_multiplier: 1.5
|
||||
* max_poll_delay:
|
||||
* seconds: 360 # 6 minutes
|
||||
* total_poll_timeout:
|
||||
* seconds: 54000 # 90 minutes
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.MethodSettings.LongRunning long_running = 2;</code>
|
||||
* @return \Google\Api\MethodSettings\LongRunning|null
|
||||
*/
|
||||
public function getLongRunning()
|
||||
{
|
||||
return $this->long_running;
|
||||
}
|
||||
public function hasLongRunning()
|
||||
{
|
||||
return isset($this->long_running);
|
||||
}
|
||||
public function clearLongRunning()
|
||||
{
|
||||
unset($this->long_running);
|
||||
}
|
||||
/**
|
||||
* Describes settings to use for long-running operations when generating
|
||||
* API methods for RPCs. Complements RPCs that use the annotations in
|
||||
* google/longrunning/operations.proto.
|
||||
* Example of a YAML configuration::
|
||||
* publishing:
|
||||
* method_settings:
|
||||
* - selector: google.cloud.speech.v2.Speech.BatchRecognize
|
||||
* long_running:
|
||||
* initial_poll_delay:
|
||||
* seconds: 60 # 1 minute
|
||||
* poll_delay_multiplier: 1.5
|
||||
* max_poll_delay:
|
||||
* seconds: 360 # 6 minutes
|
||||
* total_poll_timeout:
|
||||
* seconds: 54000 # 90 minutes
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.MethodSettings.LongRunning long_running = 2;</code>
|
||||
* @param \Google\Api\MethodSettings\LongRunning $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setLongRunning($var)
|
||||
{
|
||||
GPBUtil::checkMessage($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\MethodSettings\LongRunning::class);
|
||||
$this->long_running = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* List of top-level fields of the request message, that should be
|
||||
* automatically populated by the client libraries based on their
|
||||
* (google.api.field_info).format. Currently supported format: UUID4.
|
||||
* Example of a YAML configuration:
|
||||
* publishing:
|
||||
* method_settings:
|
||||
* - selector: google.example.v1.ExampleService.CreateExample
|
||||
* auto_populated_fields:
|
||||
* - request_id
|
||||
*
|
||||
* Generated from protobuf field <code>repeated string auto_populated_fields = 3;</code>
|
||||
* @return \Google\Protobuf\Internal\RepeatedField
|
||||
*/
|
||||
public function getAutoPopulatedFields()
|
||||
{
|
||||
return $this->auto_populated_fields;
|
||||
}
|
||||
/**
|
||||
* List of top-level fields of the request message, that should be
|
||||
* automatically populated by the client libraries based on their
|
||||
* (google.api.field_info).format. Currently supported format: UUID4.
|
||||
* Example of a YAML configuration:
|
||||
* publishing:
|
||||
* method_settings:
|
||||
* - selector: google.example.v1.ExampleService.CreateExample
|
||||
* auto_populated_fields:
|
||||
* - request_id
|
||||
*
|
||||
* Generated from protobuf field <code>repeated string auto_populated_fields = 3;</code>
|
||||
* @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setAutoPopulatedFields($var)
|
||||
{
|
||||
$arr = GPBUtil::checkRepeatedField($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::STRING);
|
||||
$this->auto_populated_fields = $arr;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
202
vendor/Gcp/google/common-protos/src/Api/MethodSettings/LongRunning.php
vendored
Normal file
202
vendor/Gcp/google/common-protos/src/Api/MethodSettings/LongRunning.php
vendored
Normal file
@@ -0,0 +1,202 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/client.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\MethodSettings;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* Describes settings to use when generating API methods that use the
|
||||
* long-running operation pattern.
|
||||
* All default values below are from those used in the client library
|
||||
* generators (e.g.
|
||||
* [Java](https://github.com/googleapis/gapic-generator-java/blob/04c2faa191a9b5a10b92392fe8482279c4404803/src/main/java/com/google/api/generator/gapic/composer/common/RetrySettingsComposer.java)).
|
||||
*
|
||||
* Generated from protobuf message <code>google.api.MethodSettings.LongRunning</code>
|
||||
*/
|
||||
class LongRunning extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* Initial delay after which the first poll request will be made.
|
||||
* Default value: 5 seconds.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.protobuf.Duration initial_poll_delay = 1;</code>
|
||||
*/
|
||||
protected $initial_poll_delay = null;
|
||||
/**
|
||||
* Multiplier to gradually increase delay between subsequent polls until it
|
||||
* reaches max_poll_delay.
|
||||
* Default value: 1.5.
|
||||
*
|
||||
* Generated from protobuf field <code>float poll_delay_multiplier = 2;</code>
|
||||
*/
|
||||
protected $poll_delay_multiplier = 0.0;
|
||||
/**
|
||||
* Maximum time between two subsequent poll requests.
|
||||
* Default value: 45 seconds.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.protobuf.Duration max_poll_delay = 3;</code>
|
||||
*/
|
||||
protected $max_poll_delay = null;
|
||||
/**
|
||||
* Total polling timeout.
|
||||
* Default value: 5 minutes.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.protobuf.Duration total_poll_timeout = 4;</code>
|
||||
*/
|
||||
protected $total_poll_timeout = null;
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type \Google\Protobuf\Duration $initial_poll_delay
|
||||
* Initial delay after which the first poll request will be made.
|
||||
* Default value: 5 seconds.
|
||||
* @type float $poll_delay_multiplier
|
||||
* Multiplier to gradually increase delay between subsequent polls until it
|
||||
* reaches max_poll_delay.
|
||||
* Default value: 1.5.
|
||||
* @type \Google\Protobuf\Duration $max_poll_delay
|
||||
* Maximum time between two subsequent poll requests.
|
||||
* Default value: 45 seconds.
|
||||
* @type \Google\Protobuf\Duration $total_poll_timeout
|
||||
* Total polling timeout.
|
||||
* Default value: 5 minutes.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Api\Client::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* Initial delay after which the first poll request will be made.
|
||||
* Default value: 5 seconds.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.protobuf.Duration initial_poll_delay = 1;</code>
|
||||
* @return \Google\Protobuf\Duration|null
|
||||
*/
|
||||
public function getInitialPollDelay()
|
||||
{
|
||||
return $this->initial_poll_delay;
|
||||
}
|
||||
public function hasInitialPollDelay()
|
||||
{
|
||||
return isset($this->initial_poll_delay);
|
||||
}
|
||||
public function clearInitialPollDelay()
|
||||
{
|
||||
unset($this->initial_poll_delay);
|
||||
}
|
||||
/**
|
||||
* Initial delay after which the first poll request will be made.
|
||||
* Default value: 5 seconds.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.protobuf.Duration initial_poll_delay = 1;</code>
|
||||
* @param \Google\Protobuf\Duration $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setInitialPollDelay($var)
|
||||
{
|
||||
GPBUtil::checkMessage($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Duration::class);
|
||||
$this->initial_poll_delay = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Multiplier to gradually increase delay between subsequent polls until it
|
||||
* reaches max_poll_delay.
|
||||
* Default value: 1.5.
|
||||
*
|
||||
* Generated from protobuf field <code>float poll_delay_multiplier = 2;</code>
|
||||
* @return float
|
||||
*/
|
||||
public function getPollDelayMultiplier()
|
||||
{
|
||||
return $this->poll_delay_multiplier;
|
||||
}
|
||||
/**
|
||||
* Multiplier to gradually increase delay between subsequent polls until it
|
||||
* reaches max_poll_delay.
|
||||
* Default value: 1.5.
|
||||
*
|
||||
* Generated from protobuf field <code>float poll_delay_multiplier = 2;</code>
|
||||
* @param float $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setPollDelayMultiplier($var)
|
||||
{
|
||||
GPBUtil::checkFloat($var);
|
||||
$this->poll_delay_multiplier = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Maximum time between two subsequent poll requests.
|
||||
* Default value: 45 seconds.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.protobuf.Duration max_poll_delay = 3;</code>
|
||||
* @return \Google\Protobuf\Duration|null
|
||||
*/
|
||||
public function getMaxPollDelay()
|
||||
{
|
||||
return $this->max_poll_delay;
|
||||
}
|
||||
public function hasMaxPollDelay()
|
||||
{
|
||||
return isset($this->max_poll_delay);
|
||||
}
|
||||
public function clearMaxPollDelay()
|
||||
{
|
||||
unset($this->max_poll_delay);
|
||||
}
|
||||
/**
|
||||
* Maximum time between two subsequent poll requests.
|
||||
* Default value: 45 seconds.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.protobuf.Duration max_poll_delay = 3;</code>
|
||||
* @param \Google\Protobuf\Duration $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setMaxPollDelay($var)
|
||||
{
|
||||
GPBUtil::checkMessage($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Duration::class);
|
||||
$this->max_poll_delay = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Total polling timeout.
|
||||
* Default value: 5 minutes.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.protobuf.Duration total_poll_timeout = 4;</code>
|
||||
* @return \Google\Protobuf\Duration|null
|
||||
*/
|
||||
public function getTotalPollTimeout()
|
||||
{
|
||||
return $this->total_poll_timeout;
|
||||
}
|
||||
public function hasTotalPollTimeout()
|
||||
{
|
||||
return isset($this->total_poll_timeout);
|
||||
}
|
||||
public function clearTotalPollTimeout()
|
||||
{
|
||||
unset($this->total_poll_timeout);
|
||||
}
|
||||
/**
|
||||
* Total polling timeout.
|
||||
* Default value: 5 minutes.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.protobuf.Duration total_poll_timeout = 4;</code>
|
||||
* @param \Google\Protobuf\Duration $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setTotalPollTimeout($var)
|
||||
{
|
||||
GPBUtil::checkMessage($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Duration::class);
|
||||
$this->total_poll_timeout = $var;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
105
vendor/Gcp/google/common-protos/src/Api/Metric.php
vendored
Normal file
105
vendor/Gcp/google/common-protos/src/Api/Metric.php
vendored
Normal file
@@ -0,0 +1,105 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/metric.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* A specific metric, identified by specifying values for all of the
|
||||
* labels of a [`MetricDescriptor`][google.api.MetricDescriptor].
|
||||
*
|
||||
* Generated from protobuf message <code>google.api.Metric</code>
|
||||
*/
|
||||
class Metric extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* An existing metric type, see
|
||||
* [google.api.MetricDescriptor][google.api.MetricDescriptor]. For example,
|
||||
* `custom.googleapis.com/invoice/paid/amount`.
|
||||
*
|
||||
* Generated from protobuf field <code>string type = 3;</code>
|
||||
*/
|
||||
protected $type = '';
|
||||
/**
|
||||
* The set of label values that uniquely identify this metric. All
|
||||
* labels listed in the `MetricDescriptor` must be assigned values.
|
||||
*
|
||||
* Generated from protobuf field <code>map<string, string> labels = 2;</code>
|
||||
*/
|
||||
private $labels;
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type string $type
|
||||
* An existing metric type, see
|
||||
* [google.api.MetricDescriptor][google.api.MetricDescriptor]. For example,
|
||||
* `custom.googleapis.com/invoice/paid/amount`.
|
||||
* @type array|\Google\Protobuf\Internal\MapField $labels
|
||||
* The set of label values that uniquely identify this metric. All
|
||||
* labels listed in the `MetricDescriptor` must be assigned values.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Api\Metric::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* An existing metric type, see
|
||||
* [google.api.MetricDescriptor][google.api.MetricDescriptor]. For example,
|
||||
* `custom.googleapis.com/invoice/paid/amount`.
|
||||
*
|
||||
* Generated from protobuf field <code>string type = 3;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getType()
|
||||
{
|
||||
return $this->type;
|
||||
}
|
||||
/**
|
||||
* An existing metric type, see
|
||||
* [google.api.MetricDescriptor][google.api.MetricDescriptor]. For example,
|
||||
* `custom.googleapis.com/invoice/paid/amount`.
|
||||
*
|
||||
* Generated from protobuf field <code>string type = 3;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setType($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->type = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* The set of label values that uniquely identify this metric. All
|
||||
* labels listed in the `MetricDescriptor` must be assigned values.
|
||||
*
|
||||
* Generated from protobuf field <code>map<string, string> labels = 2;</code>
|
||||
* @return \Google\Protobuf\Internal\MapField
|
||||
*/
|
||||
public function getLabels()
|
||||
{
|
||||
return $this->labels;
|
||||
}
|
||||
/**
|
||||
* The set of label values that uniquely identify this metric. All
|
||||
* labels listed in the `MetricDescriptor` must be assigned values.
|
||||
*
|
||||
* Generated from protobuf field <code>map<string, string> labels = 2;</code>
|
||||
* @param array|\Google\Protobuf\Internal\MapField $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setLabels($var)
|
||||
{
|
||||
$arr = GPBUtil::checkMapField($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::STRING, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::STRING);
|
||||
$this->labels = $arr;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
793
vendor/Gcp/google/common-protos/src/Api/MetricDescriptor.php
vendored
Normal file
793
vendor/Gcp/google/common-protos/src/Api/MetricDescriptor.php
vendored
Normal file
@@ -0,0 +1,793 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/metric.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* Defines a metric type and its schema. Once a metric descriptor is created,
|
||||
* deleting or altering it stops data collection and makes the metric type's
|
||||
* existing data unusable.
|
||||
*
|
||||
* Generated from protobuf message <code>google.api.MetricDescriptor</code>
|
||||
*/
|
||||
class MetricDescriptor extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* The resource name of the metric descriptor.
|
||||
*
|
||||
* Generated from protobuf field <code>string name = 1;</code>
|
||||
*/
|
||||
protected $name = '';
|
||||
/**
|
||||
* The metric type, including its DNS name prefix. The type is not
|
||||
* URL-encoded. All user-defined metric types have the DNS name
|
||||
* `custom.googleapis.com` or `external.googleapis.com`. Metric types should
|
||||
* use a natural hierarchical grouping. For example:
|
||||
* "custom.googleapis.com/invoice/paid/amount"
|
||||
* "external.googleapis.com/prometheus/up"
|
||||
* "appengine.googleapis.com/http/server/response_latencies"
|
||||
*
|
||||
* Generated from protobuf field <code>string type = 8;</code>
|
||||
*/
|
||||
protected $type = '';
|
||||
/**
|
||||
* The set of labels that can be used to describe a specific
|
||||
* instance of this metric type. For example, the
|
||||
* `appengine.googleapis.com/http/server/response_latencies` metric
|
||||
* type has a label for the HTTP response code, `response_code`, so
|
||||
* you can look at latencies for successful responses or just
|
||||
* for responses that failed.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.LabelDescriptor labels = 2;</code>
|
||||
*/
|
||||
private $labels;
|
||||
/**
|
||||
* Whether the metric records instantaneous values, changes to a value, etc.
|
||||
* Some combinations of `metric_kind` and `value_type` might not be supported.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.MetricDescriptor.MetricKind metric_kind = 3;</code>
|
||||
*/
|
||||
protected $metric_kind = 0;
|
||||
/**
|
||||
* Whether the measurement is an integer, a floating-point number, etc.
|
||||
* Some combinations of `metric_kind` and `value_type` might not be supported.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.MetricDescriptor.ValueType value_type = 4;</code>
|
||||
*/
|
||||
protected $value_type = 0;
|
||||
/**
|
||||
* The units in which the metric value is reported. It is only applicable
|
||||
* if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit`
|
||||
* defines the representation of the stored metric values.
|
||||
* Different systems might scale the values to be more easily displayed (so a
|
||||
* value of `0.02kBy` _might_ be displayed as `20By`, and a value of
|
||||
* `3523kBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is
|
||||
* `kBy`, then the value of the metric is always in thousands of bytes, no
|
||||
* matter how it might be displayed.
|
||||
* If you want a custom metric to record the exact number of CPU-seconds used
|
||||
* by a job, you can create an `INT64 CUMULATIVE` metric whose `unit` is
|
||||
* `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses 12,005
|
||||
* CPU-seconds, then the value is written as `12005`.
|
||||
* Alternatively, if you want a custom metric to record data in a more
|
||||
* granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is
|
||||
* `ks{CPU}`, and then write the value `12.005` (which is `12005/1000`),
|
||||
* or use `Kis{CPU}` and write `11.723` (which is `12005/1024`).
|
||||
* The supported units are a subset of [The Unified Code for Units of
|
||||
* Measure](https://unitsofmeasure.org/ucum.html) standard:
|
||||
* **Basic units (UNIT)**
|
||||
* * `bit` bit
|
||||
* * `By` byte
|
||||
* * `s` second
|
||||
* * `min` minute
|
||||
* * `h` hour
|
||||
* * `d` day
|
||||
* * `1` dimensionless
|
||||
* **Prefixes (PREFIX)**
|
||||
* * `k` kilo (10^3)
|
||||
* * `M` mega (10^6)
|
||||
* * `G` giga (10^9)
|
||||
* * `T` tera (10^12)
|
||||
* * `P` peta (10^15)
|
||||
* * `E` exa (10^18)
|
||||
* * `Z` zetta (10^21)
|
||||
* * `Y` yotta (10^24)
|
||||
* * `m` milli (10^-3)
|
||||
* * `u` micro (10^-6)
|
||||
* * `n` nano (10^-9)
|
||||
* * `p` pico (10^-12)
|
||||
* * `f` femto (10^-15)
|
||||
* * `a` atto (10^-18)
|
||||
* * `z` zepto (10^-21)
|
||||
* * `y` yocto (10^-24)
|
||||
* * `Ki` kibi (2^10)
|
||||
* * `Mi` mebi (2^20)
|
||||
* * `Gi` gibi (2^30)
|
||||
* * `Ti` tebi (2^40)
|
||||
* * `Pi` pebi (2^50)
|
||||
* **Grammar**
|
||||
* The grammar also includes these connectors:
|
||||
* * `/` division or ratio (as an infix operator). For examples,
|
||||
* `kBy/{email}` or `MiBy/10ms` (although you should almost never
|
||||
* have `/s` in a metric `unit`; rates should always be computed at
|
||||
* query time from the underlying cumulative or delta value).
|
||||
* * `.` multiplication or composition (as an infix operator). For
|
||||
* examples, `GBy.d` or `k{watt}.h`.
|
||||
* The grammar for a unit is as follows:
|
||||
* Expression = Component { "." Component } { "/" Component } ;
|
||||
* Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ]
|
||||
* | Annotation
|
||||
* | "1"
|
||||
* ;
|
||||
* Annotation = "{" NAME "}" ;
|
||||
* Notes:
|
||||
* * `Annotation` is just a comment if it follows a `UNIT`. If the annotation
|
||||
* is used alone, then the unit is equivalent to `1`. For examples,
|
||||
* `{request}/s == 1/s`, `By{transmitted}/s == By/s`.
|
||||
* * `NAME` is a sequence of non-blank printable ASCII characters not
|
||||
* containing `{` or `}`.
|
||||
* * `1` represents a unitary [dimensionless
|
||||
* unit](https://en.wikipedia.org/wiki/Dimensionless_quantity) of 1, such
|
||||
* as in `1/s`. It is typically used when none of the basic units are
|
||||
* appropriate. For example, "new users per day" can be represented as
|
||||
* `1/d` or `{new-users}/d` (and a metric value `5` would mean "5 new
|
||||
* users). Alternatively, "thousands of page views per day" would be
|
||||
* represented as `1000/d` or `k1/d` or `k{page_views}/d` (and a metric
|
||||
* value of `5.3` would mean "5300 page views per day").
|
||||
* * `%` represents dimensionless value of 1/100, and annotates values giving
|
||||
* a percentage (so the metric values are typically in the range of 0..100,
|
||||
* and a metric value `3` means "3 percent").
|
||||
* * `10^2.%` indicates a metric contains a ratio, typically in the range
|
||||
* 0..1, that will be multiplied by 100 and displayed as a percentage
|
||||
* (so a metric value `0.03` means "3 percent").
|
||||
*
|
||||
* Generated from protobuf field <code>string unit = 5;</code>
|
||||
*/
|
||||
protected $unit = '';
|
||||
/**
|
||||
* A detailed description of the metric, which can be used in documentation.
|
||||
*
|
||||
* Generated from protobuf field <code>string description = 6;</code>
|
||||
*/
|
||||
protected $description = '';
|
||||
/**
|
||||
* A concise name for the metric, which can be displayed in user interfaces.
|
||||
* Use sentence case without an ending period, for example "Request count".
|
||||
* This field is optional but it is recommended to be set for any metrics
|
||||
* associated with user-visible concepts, such as Quota.
|
||||
*
|
||||
* Generated from protobuf field <code>string display_name = 7;</code>
|
||||
*/
|
||||
protected $display_name = '';
|
||||
/**
|
||||
* Optional. Metadata which can be used to guide usage of the metric.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.MetricDescriptor.MetricDescriptorMetadata metadata = 10;</code>
|
||||
*/
|
||||
protected $metadata = null;
|
||||
/**
|
||||
* Optional. The launch stage of the metric definition.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.LaunchStage launch_stage = 12;</code>
|
||||
*/
|
||||
protected $launch_stage = 0;
|
||||
/**
|
||||
* Read-only. If present, then a [time
|
||||
* series][google.monitoring.v3.TimeSeries], which is identified partially by
|
||||
* a metric type and a
|
||||
* [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor], that
|
||||
* is associated with this metric type can only be associated with one of the
|
||||
* monitored resource types listed here.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated string monitored_resource_types = 13;</code>
|
||||
*/
|
||||
private $monitored_resource_types;
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type string $name
|
||||
* The resource name of the metric descriptor.
|
||||
* @type string $type
|
||||
* The metric type, including its DNS name prefix. The type is not
|
||||
* URL-encoded. All user-defined metric types have the DNS name
|
||||
* `custom.googleapis.com` or `external.googleapis.com`. Metric types should
|
||||
* use a natural hierarchical grouping. For example:
|
||||
* "custom.googleapis.com/invoice/paid/amount"
|
||||
* "external.googleapis.com/prometheus/up"
|
||||
* "appengine.googleapis.com/http/server/response_latencies"
|
||||
* @type array<\Google\Api\LabelDescriptor>|\Google\Protobuf\Internal\RepeatedField $labels
|
||||
* The set of labels that can be used to describe a specific
|
||||
* instance of this metric type. For example, the
|
||||
* `appengine.googleapis.com/http/server/response_latencies` metric
|
||||
* type has a label for the HTTP response code, `response_code`, so
|
||||
* you can look at latencies for successful responses or just
|
||||
* for responses that failed.
|
||||
* @type int $metric_kind
|
||||
* Whether the metric records instantaneous values, changes to a value, etc.
|
||||
* Some combinations of `metric_kind` and `value_type` might not be supported.
|
||||
* @type int $value_type
|
||||
* Whether the measurement is an integer, a floating-point number, etc.
|
||||
* Some combinations of `metric_kind` and `value_type` might not be supported.
|
||||
* @type string $unit
|
||||
* The units in which the metric value is reported. It is only applicable
|
||||
* if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit`
|
||||
* defines the representation of the stored metric values.
|
||||
* Different systems might scale the values to be more easily displayed (so a
|
||||
* value of `0.02kBy` _might_ be displayed as `20By`, and a value of
|
||||
* `3523kBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is
|
||||
* `kBy`, then the value of the metric is always in thousands of bytes, no
|
||||
* matter how it might be displayed.
|
||||
* If you want a custom metric to record the exact number of CPU-seconds used
|
||||
* by a job, you can create an `INT64 CUMULATIVE` metric whose `unit` is
|
||||
* `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses 12,005
|
||||
* CPU-seconds, then the value is written as `12005`.
|
||||
* Alternatively, if you want a custom metric to record data in a more
|
||||
* granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is
|
||||
* `ks{CPU}`, and then write the value `12.005` (which is `12005/1000`),
|
||||
* or use `Kis{CPU}` and write `11.723` (which is `12005/1024`).
|
||||
* The supported units are a subset of [The Unified Code for Units of
|
||||
* Measure](https://unitsofmeasure.org/ucum.html) standard:
|
||||
* **Basic units (UNIT)**
|
||||
* * `bit` bit
|
||||
* * `By` byte
|
||||
* * `s` second
|
||||
* * `min` minute
|
||||
* * `h` hour
|
||||
* * `d` day
|
||||
* * `1` dimensionless
|
||||
* **Prefixes (PREFIX)**
|
||||
* * `k` kilo (10^3)
|
||||
* * `M` mega (10^6)
|
||||
* * `G` giga (10^9)
|
||||
* * `T` tera (10^12)
|
||||
* * `P` peta (10^15)
|
||||
* * `E` exa (10^18)
|
||||
* * `Z` zetta (10^21)
|
||||
* * `Y` yotta (10^24)
|
||||
* * `m` milli (10^-3)
|
||||
* * `u` micro (10^-6)
|
||||
* * `n` nano (10^-9)
|
||||
* * `p` pico (10^-12)
|
||||
* * `f` femto (10^-15)
|
||||
* * `a` atto (10^-18)
|
||||
* * `z` zepto (10^-21)
|
||||
* * `y` yocto (10^-24)
|
||||
* * `Ki` kibi (2^10)
|
||||
* * `Mi` mebi (2^20)
|
||||
* * `Gi` gibi (2^30)
|
||||
* * `Ti` tebi (2^40)
|
||||
* * `Pi` pebi (2^50)
|
||||
* **Grammar**
|
||||
* The grammar also includes these connectors:
|
||||
* * `/` division or ratio (as an infix operator). For examples,
|
||||
* `kBy/{email}` or `MiBy/10ms` (although you should almost never
|
||||
* have `/s` in a metric `unit`; rates should always be computed at
|
||||
* query time from the underlying cumulative or delta value).
|
||||
* * `.` multiplication or composition (as an infix operator). For
|
||||
* examples, `GBy.d` or `k{watt}.h`.
|
||||
* The grammar for a unit is as follows:
|
||||
* Expression = Component { "." Component } { "/" Component } ;
|
||||
* Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ]
|
||||
* | Annotation
|
||||
* | "1"
|
||||
* ;
|
||||
* Annotation = "{" NAME "}" ;
|
||||
* Notes:
|
||||
* * `Annotation` is just a comment if it follows a `UNIT`. If the annotation
|
||||
* is used alone, then the unit is equivalent to `1`. For examples,
|
||||
* `{request}/s == 1/s`, `By{transmitted}/s == By/s`.
|
||||
* * `NAME` is a sequence of non-blank printable ASCII characters not
|
||||
* containing `{` or `}`.
|
||||
* * `1` represents a unitary [dimensionless
|
||||
* unit](https://en.wikipedia.org/wiki/Dimensionless_quantity) of 1, such
|
||||
* as in `1/s`. It is typically used when none of the basic units are
|
||||
* appropriate. For example, "new users per day" can be represented as
|
||||
* `1/d` or `{new-users}/d` (and a metric value `5` would mean "5 new
|
||||
* users). Alternatively, "thousands of page views per day" would be
|
||||
* represented as `1000/d` or `k1/d` or `k{page_views}/d` (and a metric
|
||||
* value of `5.3` would mean "5300 page views per day").
|
||||
* * `%` represents dimensionless value of 1/100, and annotates values giving
|
||||
* a percentage (so the metric values are typically in the range of 0..100,
|
||||
* and a metric value `3` means "3 percent").
|
||||
* * `10^2.%` indicates a metric contains a ratio, typically in the range
|
||||
* 0..1, that will be multiplied by 100 and displayed as a percentage
|
||||
* (so a metric value `0.03` means "3 percent").
|
||||
* @type string $description
|
||||
* A detailed description of the metric, which can be used in documentation.
|
||||
* @type string $display_name
|
||||
* A concise name for the metric, which can be displayed in user interfaces.
|
||||
* Use sentence case without an ending period, for example "Request count".
|
||||
* This field is optional but it is recommended to be set for any metrics
|
||||
* associated with user-visible concepts, such as Quota.
|
||||
* @type \Google\Api\MetricDescriptor\MetricDescriptorMetadata $metadata
|
||||
* Optional. Metadata which can be used to guide usage of the metric.
|
||||
* @type int $launch_stage
|
||||
* Optional. The launch stage of the metric definition.
|
||||
* @type array<string>|\Google\Protobuf\Internal\RepeatedField $monitored_resource_types
|
||||
* Read-only. If present, then a [time
|
||||
* series][google.monitoring.v3.TimeSeries], which is identified partially by
|
||||
* a metric type and a
|
||||
* [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor], that
|
||||
* is associated with this metric type can only be associated with one of the
|
||||
* monitored resource types listed here.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Api\Metric::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* The resource name of the metric descriptor.
|
||||
*
|
||||
* Generated from protobuf field <code>string name = 1;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getName()
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
/**
|
||||
* The resource name of the metric descriptor.
|
||||
*
|
||||
* Generated from protobuf field <code>string name = 1;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setName($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->name = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* The metric type, including its DNS name prefix. The type is not
|
||||
* URL-encoded. All user-defined metric types have the DNS name
|
||||
* `custom.googleapis.com` or `external.googleapis.com`. Metric types should
|
||||
* use a natural hierarchical grouping. For example:
|
||||
* "custom.googleapis.com/invoice/paid/amount"
|
||||
* "external.googleapis.com/prometheus/up"
|
||||
* "appengine.googleapis.com/http/server/response_latencies"
|
||||
*
|
||||
* Generated from protobuf field <code>string type = 8;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getType()
|
||||
{
|
||||
return $this->type;
|
||||
}
|
||||
/**
|
||||
* The metric type, including its DNS name prefix. The type is not
|
||||
* URL-encoded. All user-defined metric types have the DNS name
|
||||
* `custom.googleapis.com` or `external.googleapis.com`. Metric types should
|
||||
* use a natural hierarchical grouping. For example:
|
||||
* "custom.googleapis.com/invoice/paid/amount"
|
||||
* "external.googleapis.com/prometheus/up"
|
||||
* "appengine.googleapis.com/http/server/response_latencies"
|
||||
*
|
||||
* Generated from protobuf field <code>string type = 8;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setType($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->type = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* The set of labels that can be used to describe a specific
|
||||
* instance of this metric type. For example, the
|
||||
* `appengine.googleapis.com/http/server/response_latencies` metric
|
||||
* type has a label for the HTTP response code, `response_code`, so
|
||||
* you can look at latencies for successful responses or just
|
||||
* for responses that failed.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.LabelDescriptor labels = 2;</code>
|
||||
* @return \Google\Protobuf\Internal\RepeatedField
|
||||
*/
|
||||
public function getLabels()
|
||||
{
|
||||
return $this->labels;
|
||||
}
|
||||
/**
|
||||
* The set of labels that can be used to describe a specific
|
||||
* instance of this metric type. For example, the
|
||||
* `appengine.googleapis.com/http/server/response_latencies` metric
|
||||
* type has a label for the HTTP response code, `response_code`, so
|
||||
* you can look at latencies for successful responses or just
|
||||
* for responses that failed.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.LabelDescriptor labels = 2;</code>
|
||||
* @param array<\Google\Api\LabelDescriptor>|\Google\Protobuf\Internal\RepeatedField $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setLabels($var)
|
||||
{
|
||||
$arr = GPBUtil::checkRepeatedField($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::MESSAGE, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\LabelDescriptor::class);
|
||||
$this->labels = $arr;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Whether the metric records instantaneous values, changes to a value, etc.
|
||||
* Some combinations of `metric_kind` and `value_type` might not be supported.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.MetricDescriptor.MetricKind metric_kind = 3;</code>
|
||||
* @return int
|
||||
*/
|
||||
public function getMetricKind()
|
||||
{
|
||||
return $this->metric_kind;
|
||||
}
|
||||
/**
|
||||
* Whether the metric records instantaneous values, changes to a value, etc.
|
||||
* Some combinations of `metric_kind` and `value_type` might not be supported.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.MetricDescriptor.MetricKind metric_kind = 3;</code>
|
||||
* @param int $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setMetricKind($var)
|
||||
{
|
||||
GPBUtil::checkEnum($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\MetricDescriptor\MetricKind::class);
|
||||
$this->metric_kind = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Whether the measurement is an integer, a floating-point number, etc.
|
||||
* Some combinations of `metric_kind` and `value_type` might not be supported.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.MetricDescriptor.ValueType value_type = 4;</code>
|
||||
* @return int
|
||||
*/
|
||||
public function getValueType()
|
||||
{
|
||||
return $this->value_type;
|
||||
}
|
||||
/**
|
||||
* Whether the measurement is an integer, a floating-point number, etc.
|
||||
* Some combinations of `metric_kind` and `value_type` might not be supported.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.MetricDescriptor.ValueType value_type = 4;</code>
|
||||
* @param int $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setValueType($var)
|
||||
{
|
||||
GPBUtil::checkEnum($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\MetricDescriptor\ValueType::class);
|
||||
$this->value_type = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* The units in which the metric value is reported. It is only applicable
|
||||
* if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit`
|
||||
* defines the representation of the stored metric values.
|
||||
* Different systems might scale the values to be more easily displayed (so a
|
||||
* value of `0.02kBy` _might_ be displayed as `20By`, and a value of
|
||||
* `3523kBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is
|
||||
* `kBy`, then the value of the metric is always in thousands of bytes, no
|
||||
* matter how it might be displayed.
|
||||
* If you want a custom metric to record the exact number of CPU-seconds used
|
||||
* by a job, you can create an `INT64 CUMULATIVE` metric whose `unit` is
|
||||
* `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses 12,005
|
||||
* CPU-seconds, then the value is written as `12005`.
|
||||
* Alternatively, if you want a custom metric to record data in a more
|
||||
* granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is
|
||||
* `ks{CPU}`, and then write the value `12.005` (which is `12005/1000`),
|
||||
* or use `Kis{CPU}` and write `11.723` (which is `12005/1024`).
|
||||
* The supported units are a subset of [The Unified Code for Units of
|
||||
* Measure](https://unitsofmeasure.org/ucum.html) standard:
|
||||
* **Basic units (UNIT)**
|
||||
* * `bit` bit
|
||||
* * `By` byte
|
||||
* * `s` second
|
||||
* * `min` minute
|
||||
* * `h` hour
|
||||
* * `d` day
|
||||
* * `1` dimensionless
|
||||
* **Prefixes (PREFIX)**
|
||||
* * `k` kilo (10^3)
|
||||
* * `M` mega (10^6)
|
||||
* * `G` giga (10^9)
|
||||
* * `T` tera (10^12)
|
||||
* * `P` peta (10^15)
|
||||
* * `E` exa (10^18)
|
||||
* * `Z` zetta (10^21)
|
||||
* * `Y` yotta (10^24)
|
||||
* * `m` milli (10^-3)
|
||||
* * `u` micro (10^-6)
|
||||
* * `n` nano (10^-9)
|
||||
* * `p` pico (10^-12)
|
||||
* * `f` femto (10^-15)
|
||||
* * `a` atto (10^-18)
|
||||
* * `z` zepto (10^-21)
|
||||
* * `y` yocto (10^-24)
|
||||
* * `Ki` kibi (2^10)
|
||||
* * `Mi` mebi (2^20)
|
||||
* * `Gi` gibi (2^30)
|
||||
* * `Ti` tebi (2^40)
|
||||
* * `Pi` pebi (2^50)
|
||||
* **Grammar**
|
||||
* The grammar also includes these connectors:
|
||||
* * `/` division or ratio (as an infix operator). For examples,
|
||||
* `kBy/{email}` or `MiBy/10ms` (although you should almost never
|
||||
* have `/s` in a metric `unit`; rates should always be computed at
|
||||
* query time from the underlying cumulative or delta value).
|
||||
* * `.` multiplication or composition (as an infix operator). For
|
||||
* examples, `GBy.d` or `k{watt}.h`.
|
||||
* The grammar for a unit is as follows:
|
||||
* Expression = Component { "." Component } { "/" Component } ;
|
||||
* Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ]
|
||||
* | Annotation
|
||||
* | "1"
|
||||
* ;
|
||||
* Annotation = "{" NAME "}" ;
|
||||
* Notes:
|
||||
* * `Annotation` is just a comment if it follows a `UNIT`. If the annotation
|
||||
* is used alone, then the unit is equivalent to `1`. For examples,
|
||||
* `{request}/s == 1/s`, `By{transmitted}/s == By/s`.
|
||||
* * `NAME` is a sequence of non-blank printable ASCII characters not
|
||||
* containing `{` or `}`.
|
||||
* * `1` represents a unitary [dimensionless
|
||||
* unit](https://en.wikipedia.org/wiki/Dimensionless_quantity) of 1, such
|
||||
* as in `1/s`. It is typically used when none of the basic units are
|
||||
* appropriate. For example, "new users per day" can be represented as
|
||||
* `1/d` or `{new-users}/d` (and a metric value `5` would mean "5 new
|
||||
* users). Alternatively, "thousands of page views per day" would be
|
||||
* represented as `1000/d` or `k1/d` or `k{page_views}/d` (and a metric
|
||||
* value of `5.3` would mean "5300 page views per day").
|
||||
* * `%` represents dimensionless value of 1/100, and annotates values giving
|
||||
* a percentage (so the metric values are typically in the range of 0..100,
|
||||
* and a metric value `3` means "3 percent").
|
||||
* * `10^2.%` indicates a metric contains a ratio, typically in the range
|
||||
* 0..1, that will be multiplied by 100 and displayed as a percentage
|
||||
* (so a metric value `0.03` means "3 percent").
|
||||
*
|
||||
* Generated from protobuf field <code>string unit = 5;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getUnit()
|
||||
{
|
||||
return $this->unit;
|
||||
}
|
||||
/**
|
||||
* The units in which the metric value is reported. It is only applicable
|
||||
* if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit`
|
||||
* defines the representation of the stored metric values.
|
||||
* Different systems might scale the values to be more easily displayed (so a
|
||||
* value of `0.02kBy` _might_ be displayed as `20By`, and a value of
|
||||
* `3523kBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is
|
||||
* `kBy`, then the value of the metric is always in thousands of bytes, no
|
||||
* matter how it might be displayed.
|
||||
* If you want a custom metric to record the exact number of CPU-seconds used
|
||||
* by a job, you can create an `INT64 CUMULATIVE` metric whose `unit` is
|
||||
* `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses 12,005
|
||||
* CPU-seconds, then the value is written as `12005`.
|
||||
* Alternatively, if you want a custom metric to record data in a more
|
||||
* granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is
|
||||
* `ks{CPU}`, and then write the value `12.005` (which is `12005/1000`),
|
||||
* or use `Kis{CPU}` and write `11.723` (which is `12005/1024`).
|
||||
* The supported units are a subset of [The Unified Code for Units of
|
||||
* Measure](https://unitsofmeasure.org/ucum.html) standard:
|
||||
* **Basic units (UNIT)**
|
||||
* * `bit` bit
|
||||
* * `By` byte
|
||||
* * `s` second
|
||||
* * `min` minute
|
||||
* * `h` hour
|
||||
* * `d` day
|
||||
* * `1` dimensionless
|
||||
* **Prefixes (PREFIX)**
|
||||
* * `k` kilo (10^3)
|
||||
* * `M` mega (10^6)
|
||||
* * `G` giga (10^9)
|
||||
* * `T` tera (10^12)
|
||||
* * `P` peta (10^15)
|
||||
* * `E` exa (10^18)
|
||||
* * `Z` zetta (10^21)
|
||||
* * `Y` yotta (10^24)
|
||||
* * `m` milli (10^-3)
|
||||
* * `u` micro (10^-6)
|
||||
* * `n` nano (10^-9)
|
||||
* * `p` pico (10^-12)
|
||||
* * `f` femto (10^-15)
|
||||
* * `a` atto (10^-18)
|
||||
* * `z` zepto (10^-21)
|
||||
* * `y` yocto (10^-24)
|
||||
* * `Ki` kibi (2^10)
|
||||
* * `Mi` mebi (2^20)
|
||||
* * `Gi` gibi (2^30)
|
||||
* * `Ti` tebi (2^40)
|
||||
* * `Pi` pebi (2^50)
|
||||
* **Grammar**
|
||||
* The grammar also includes these connectors:
|
||||
* * `/` division or ratio (as an infix operator). For examples,
|
||||
* `kBy/{email}` or `MiBy/10ms` (although you should almost never
|
||||
* have `/s` in a metric `unit`; rates should always be computed at
|
||||
* query time from the underlying cumulative or delta value).
|
||||
* * `.` multiplication or composition (as an infix operator). For
|
||||
* examples, `GBy.d` or `k{watt}.h`.
|
||||
* The grammar for a unit is as follows:
|
||||
* Expression = Component { "." Component } { "/" Component } ;
|
||||
* Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ]
|
||||
* | Annotation
|
||||
* | "1"
|
||||
* ;
|
||||
* Annotation = "{" NAME "}" ;
|
||||
* Notes:
|
||||
* * `Annotation` is just a comment if it follows a `UNIT`. If the annotation
|
||||
* is used alone, then the unit is equivalent to `1`. For examples,
|
||||
* `{request}/s == 1/s`, `By{transmitted}/s == By/s`.
|
||||
* * `NAME` is a sequence of non-blank printable ASCII characters not
|
||||
* containing `{` or `}`.
|
||||
* * `1` represents a unitary [dimensionless
|
||||
* unit](https://en.wikipedia.org/wiki/Dimensionless_quantity) of 1, such
|
||||
* as in `1/s`. It is typically used when none of the basic units are
|
||||
* appropriate. For example, "new users per day" can be represented as
|
||||
* `1/d` or `{new-users}/d` (and a metric value `5` would mean "5 new
|
||||
* users). Alternatively, "thousands of page views per day" would be
|
||||
* represented as `1000/d` or `k1/d` or `k{page_views}/d` (and a metric
|
||||
* value of `5.3` would mean "5300 page views per day").
|
||||
* * `%` represents dimensionless value of 1/100, and annotates values giving
|
||||
* a percentage (so the metric values are typically in the range of 0..100,
|
||||
* and a metric value `3` means "3 percent").
|
||||
* * `10^2.%` indicates a metric contains a ratio, typically in the range
|
||||
* 0..1, that will be multiplied by 100 and displayed as a percentage
|
||||
* (so a metric value `0.03` means "3 percent").
|
||||
*
|
||||
* Generated from protobuf field <code>string unit = 5;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setUnit($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->unit = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* A detailed description of the metric, which can be used in documentation.
|
||||
*
|
||||
* Generated from protobuf field <code>string description = 6;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getDescription()
|
||||
{
|
||||
return $this->description;
|
||||
}
|
||||
/**
|
||||
* A detailed description of the metric, which can be used in documentation.
|
||||
*
|
||||
* Generated from protobuf field <code>string description = 6;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setDescription($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->description = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* A concise name for the metric, which can be displayed in user interfaces.
|
||||
* Use sentence case without an ending period, for example "Request count".
|
||||
* This field is optional but it is recommended to be set for any metrics
|
||||
* associated with user-visible concepts, such as Quota.
|
||||
*
|
||||
* Generated from protobuf field <code>string display_name = 7;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getDisplayName()
|
||||
{
|
||||
return $this->display_name;
|
||||
}
|
||||
/**
|
||||
* A concise name for the metric, which can be displayed in user interfaces.
|
||||
* Use sentence case without an ending period, for example "Request count".
|
||||
* This field is optional but it is recommended to be set for any metrics
|
||||
* associated with user-visible concepts, such as Quota.
|
||||
*
|
||||
* Generated from protobuf field <code>string display_name = 7;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setDisplayName($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->display_name = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Optional. Metadata which can be used to guide usage of the metric.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.MetricDescriptor.MetricDescriptorMetadata metadata = 10;</code>
|
||||
* @return \Google\Api\MetricDescriptor\MetricDescriptorMetadata|null
|
||||
*/
|
||||
public function getMetadata()
|
||||
{
|
||||
return $this->metadata;
|
||||
}
|
||||
public function hasMetadata()
|
||||
{
|
||||
return isset($this->metadata);
|
||||
}
|
||||
public function clearMetadata()
|
||||
{
|
||||
unset($this->metadata);
|
||||
}
|
||||
/**
|
||||
* Optional. Metadata which can be used to guide usage of the metric.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.MetricDescriptor.MetricDescriptorMetadata metadata = 10;</code>
|
||||
* @param \Google\Api\MetricDescriptor\MetricDescriptorMetadata $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setMetadata($var)
|
||||
{
|
||||
GPBUtil::checkMessage($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\MetricDescriptor\MetricDescriptorMetadata::class);
|
||||
$this->metadata = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Optional. The launch stage of the metric definition.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.LaunchStage launch_stage = 12;</code>
|
||||
* @return int
|
||||
*/
|
||||
public function getLaunchStage()
|
||||
{
|
||||
return $this->launch_stage;
|
||||
}
|
||||
/**
|
||||
* Optional. The launch stage of the metric definition.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.LaunchStage launch_stage = 12;</code>
|
||||
* @param int $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setLaunchStage($var)
|
||||
{
|
||||
GPBUtil::checkEnum($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\LaunchStage::class);
|
||||
$this->launch_stage = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Read-only. If present, then a [time
|
||||
* series][google.monitoring.v3.TimeSeries], which is identified partially by
|
||||
* a metric type and a
|
||||
* [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor], that
|
||||
* is associated with this metric type can only be associated with one of the
|
||||
* monitored resource types listed here.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated string monitored_resource_types = 13;</code>
|
||||
* @return \Google\Protobuf\Internal\RepeatedField
|
||||
*/
|
||||
public function getMonitoredResourceTypes()
|
||||
{
|
||||
return $this->monitored_resource_types;
|
||||
}
|
||||
/**
|
||||
* Read-only. If present, then a [time
|
||||
* series][google.monitoring.v3.TimeSeries], which is identified partially by
|
||||
* a metric type and a
|
||||
* [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor], that
|
||||
* is associated with this metric type can only be associated with one of the
|
||||
* monitored resource types listed here.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated string monitored_resource_types = 13;</code>
|
||||
* @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setMonitoredResourceTypes($var)
|
||||
{
|
||||
$arr = GPBUtil::checkRepeatedField($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::STRING);
|
||||
$this->monitored_resource_types = $arr;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
172
vendor/Gcp/google/common-protos/src/Api/MetricDescriptor/MetricDescriptorMetadata.php
vendored
Normal file
172
vendor/Gcp/google/common-protos/src/Api/MetricDescriptor/MetricDescriptorMetadata.php
vendored
Normal file
@@ -0,0 +1,172 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/metric.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\MetricDescriptor;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* Additional annotations that can be used to guide the usage of a metric.
|
||||
*
|
||||
* Generated from protobuf message <code>google.api.MetricDescriptor.MetricDescriptorMetadata</code>
|
||||
*/
|
||||
class MetricDescriptorMetadata extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* Deprecated. Must use the
|
||||
* [MetricDescriptor.launch_stage][google.api.MetricDescriptor.launch_stage]
|
||||
* instead.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.LaunchStage launch_stage = 1 [deprecated = true];</code>
|
||||
* @deprecated
|
||||
*/
|
||||
protected $launch_stage = 0;
|
||||
/**
|
||||
* The sampling period of metric data points. For metrics which are written
|
||||
* periodically, consecutive data points are stored at this time interval,
|
||||
* excluding data loss due to errors. Metrics with a higher granularity have
|
||||
* a smaller sampling period.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.protobuf.Duration sample_period = 2;</code>
|
||||
*/
|
||||
protected $sample_period = null;
|
||||
/**
|
||||
* The delay of data points caused by ingestion. Data points older than this
|
||||
* age are guaranteed to be ingested and available to be read, excluding
|
||||
* data loss due to errors.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.protobuf.Duration ingest_delay = 3;</code>
|
||||
*/
|
||||
protected $ingest_delay = null;
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type int $launch_stage
|
||||
* Deprecated. Must use the
|
||||
* [MetricDescriptor.launch_stage][google.api.MetricDescriptor.launch_stage]
|
||||
* instead.
|
||||
* @type \Google\Protobuf\Duration $sample_period
|
||||
* The sampling period of metric data points. For metrics which are written
|
||||
* periodically, consecutive data points are stored at this time interval,
|
||||
* excluding data loss due to errors. Metrics with a higher granularity have
|
||||
* a smaller sampling period.
|
||||
* @type \Google\Protobuf\Duration $ingest_delay
|
||||
* The delay of data points caused by ingestion. Data points older than this
|
||||
* age are guaranteed to be ingested and available to be read, excluding
|
||||
* data loss due to errors.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Api\Metric::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* Deprecated. Must use the
|
||||
* [MetricDescriptor.launch_stage][google.api.MetricDescriptor.launch_stage]
|
||||
* instead.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.LaunchStage launch_stage = 1 [deprecated = true];</code>
|
||||
* @return int
|
||||
* @deprecated
|
||||
*/
|
||||
public function getLaunchStage()
|
||||
{
|
||||
@\trigger_error('launch_stage is deprecated.', \E_USER_DEPRECATED);
|
||||
return $this->launch_stage;
|
||||
}
|
||||
/**
|
||||
* Deprecated. Must use the
|
||||
* [MetricDescriptor.launch_stage][google.api.MetricDescriptor.launch_stage]
|
||||
* instead.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.LaunchStage launch_stage = 1 [deprecated = true];</code>
|
||||
* @param int $var
|
||||
* @return $this
|
||||
* @deprecated
|
||||
*/
|
||||
public function setLaunchStage($var)
|
||||
{
|
||||
@\trigger_error('launch_stage is deprecated.', \E_USER_DEPRECATED);
|
||||
GPBUtil::checkEnum($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\LaunchStage::class);
|
||||
$this->launch_stage = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* The sampling period of metric data points. For metrics which are written
|
||||
* periodically, consecutive data points are stored at this time interval,
|
||||
* excluding data loss due to errors. Metrics with a higher granularity have
|
||||
* a smaller sampling period.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.protobuf.Duration sample_period = 2;</code>
|
||||
* @return \Google\Protobuf\Duration|null
|
||||
*/
|
||||
public function getSamplePeriod()
|
||||
{
|
||||
return $this->sample_period;
|
||||
}
|
||||
public function hasSamplePeriod()
|
||||
{
|
||||
return isset($this->sample_period);
|
||||
}
|
||||
public function clearSamplePeriod()
|
||||
{
|
||||
unset($this->sample_period);
|
||||
}
|
||||
/**
|
||||
* The sampling period of metric data points. For metrics which are written
|
||||
* periodically, consecutive data points are stored at this time interval,
|
||||
* excluding data loss due to errors. Metrics with a higher granularity have
|
||||
* a smaller sampling period.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.protobuf.Duration sample_period = 2;</code>
|
||||
* @param \Google\Protobuf\Duration $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setSamplePeriod($var)
|
||||
{
|
||||
GPBUtil::checkMessage($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Duration::class);
|
||||
$this->sample_period = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* The delay of data points caused by ingestion. Data points older than this
|
||||
* age are guaranteed to be ingested and available to be read, excluding
|
||||
* data loss due to errors.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.protobuf.Duration ingest_delay = 3;</code>
|
||||
* @return \Google\Protobuf\Duration|null
|
||||
*/
|
||||
public function getIngestDelay()
|
||||
{
|
||||
return $this->ingest_delay;
|
||||
}
|
||||
public function hasIngestDelay()
|
||||
{
|
||||
return isset($this->ingest_delay);
|
||||
}
|
||||
public function clearIngestDelay()
|
||||
{
|
||||
unset($this->ingest_delay);
|
||||
}
|
||||
/**
|
||||
* The delay of data points caused by ingestion. Data points older than this
|
||||
* age are guaranteed to be ingested and available to be read, excluding
|
||||
* data loss due to errors.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.protobuf.Duration ingest_delay = 3;</code>
|
||||
* @param \Google\Protobuf\Duration $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setIngestDelay($var)
|
||||
{
|
||||
GPBUtil::checkMessage($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Duration::class);
|
||||
$this->ingest_delay = $var;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
61
vendor/Gcp/google/common-protos/src/Api/MetricDescriptor/MetricKind.php
vendored
Normal file
61
vendor/Gcp/google/common-protos/src/Api/MetricDescriptor/MetricKind.php
vendored
Normal file
@@ -0,0 +1,61 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/metric.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\MetricDescriptor;
|
||||
|
||||
use UnexpectedValueException;
|
||||
/**
|
||||
* The kind of measurement. It describes how the data is reported.
|
||||
* For information on setting the start time and end time based on
|
||||
* the MetricKind, see [TimeInterval][google.monitoring.v3.TimeInterval].
|
||||
*
|
||||
* Protobuf type <code>google.api.MetricDescriptor.MetricKind</code>
|
||||
*/
|
||||
class MetricKind
|
||||
{
|
||||
/**
|
||||
* Do not use this default value.
|
||||
*
|
||||
* Generated from protobuf enum <code>METRIC_KIND_UNSPECIFIED = 0;</code>
|
||||
*/
|
||||
const METRIC_KIND_UNSPECIFIED = 0;
|
||||
/**
|
||||
* An instantaneous measurement of a value.
|
||||
*
|
||||
* Generated from protobuf enum <code>GAUGE = 1;</code>
|
||||
*/
|
||||
const GAUGE = 1;
|
||||
/**
|
||||
* The change in a value during a time interval.
|
||||
*
|
||||
* Generated from protobuf enum <code>DELTA = 2;</code>
|
||||
*/
|
||||
const DELTA = 2;
|
||||
/**
|
||||
* A value accumulated over a time interval. Cumulative
|
||||
* measurements in a time series should have the same start time
|
||||
* and increasing end times, until an event resets the cumulative
|
||||
* value to zero and sets a new start time for the following
|
||||
* points.
|
||||
*
|
||||
* Generated from protobuf enum <code>CUMULATIVE = 3;</code>
|
||||
*/
|
||||
const CUMULATIVE = 3;
|
||||
private static $valueToName = [self::METRIC_KIND_UNSPECIFIED => 'METRIC_KIND_UNSPECIFIED', self::GAUGE => 'GAUGE', self::DELTA => 'DELTA', self::CUMULATIVE => 'CUMULATIVE'];
|
||||
public static function name($value)
|
||||
{
|
||||
if (!isset(self::$valueToName[$value])) {
|
||||
throw new UnexpectedValueException(\sprintf('Enum %s has no name defined for value %s', __CLASS__, $value));
|
||||
}
|
||||
return self::$valueToName[$value];
|
||||
}
|
||||
public static function value($name)
|
||||
{
|
||||
$const = __CLASS__ . '::' . \strtoupper($name);
|
||||
if (!\defined($const)) {
|
||||
throw new UnexpectedValueException(\sprintf('Enum %s has no value defined for name %s', __CLASS__, $name));
|
||||
}
|
||||
return \constant($const);
|
||||
}
|
||||
}
|
||||
75
vendor/Gcp/google/common-protos/src/Api/MetricDescriptor/ValueType.php
vendored
Normal file
75
vendor/Gcp/google/common-protos/src/Api/MetricDescriptor/ValueType.php
vendored
Normal file
@@ -0,0 +1,75 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/metric.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\MetricDescriptor;
|
||||
|
||||
use UnexpectedValueException;
|
||||
/**
|
||||
* The value type of a metric.
|
||||
*
|
||||
* Protobuf type <code>google.api.MetricDescriptor.ValueType</code>
|
||||
*/
|
||||
class ValueType
|
||||
{
|
||||
/**
|
||||
* Do not use this default value.
|
||||
*
|
||||
* Generated from protobuf enum <code>VALUE_TYPE_UNSPECIFIED = 0;</code>
|
||||
*/
|
||||
const VALUE_TYPE_UNSPECIFIED = 0;
|
||||
/**
|
||||
* The value is a boolean.
|
||||
* This value type can be used only if the metric kind is `GAUGE`.
|
||||
*
|
||||
* Generated from protobuf enum <code>BOOL = 1;</code>
|
||||
*/
|
||||
const BOOL = 1;
|
||||
/**
|
||||
* The value is a signed 64-bit integer.
|
||||
*
|
||||
* Generated from protobuf enum <code>INT64 = 2;</code>
|
||||
*/
|
||||
const INT64 = 2;
|
||||
/**
|
||||
* The value is a double precision floating point number.
|
||||
*
|
||||
* Generated from protobuf enum <code>DOUBLE = 3;</code>
|
||||
*/
|
||||
const DOUBLE = 3;
|
||||
/**
|
||||
* The value is a text string.
|
||||
* This value type can be used only if the metric kind is `GAUGE`.
|
||||
*
|
||||
* Generated from protobuf enum <code>STRING = 4;</code>
|
||||
*/
|
||||
const STRING = 4;
|
||||
/**
|
||||
* The value is a [`Distribution`][google.api.Distribution].
|
||||
*
|
||||
* Generated from protobuf enum <code>DISTRIBUTION = 5;</code>
|
||||
*/
|
||||
const DISTRIBUTION = 5;
|
||||
/**
|
||||
* The value is money.
|
||||
*
|
||||
* Generated from protobuf enum <code>MONEY = 6;</code>
|
||||
*/
|
||||
const MONEY = 6;
|
||||
private static $valueToName = [self::VALUE_TYPE_UNSPECIFIED => 'VALUE_TYPE_UNSPECIFIED', self::BOOL => 'BOOL', self::INT64 => 'INT64', self::DOUBLE => 'DOUBLE', self::STRING => 'STRING', self::DISTRIBUTION => 'DISTRIBUTION', self::MONEY => 'MONEY'];
|
||||
public static function name($value)
|
||||
{
|
||||
if (!isset(self::$valueToName[$value])) {
|
||||
throw new UnexpectedValueException(\sprintf('Enum %s has no name defined for value %s', __CLASS__, $value));
|
||||
}
|
||||
return self::$valueToName[$value];
|
||||
}
|
||||
public static function value($name)
|
||||
{
|
||||
$const = __CLASS__ . '::' . \strtoupper($name);
|
||||
if (!\defined($const)) {
|
||||
throw new UnexpectedValueException(\sprintf('Enum %s has no value defined for name %s', __CLASS__, $name));
|
||||
}
|
||||
return \constant($const);
|
||||
}
|
||||
}
|
||||
117
vendor/Gcp/google/common-protos/src/Api/MetricRule.php
vendored
Normal file
117
vendor/Gcp/google/common-protos/src/Api/MetricRule.php
vendored
Normal file
@@ -0,0 +1,117 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/quota.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* Bind API methods to metrics. Binding a method to a metric causes that
|
||||
* metric's configured quota behaviors to apply to the method call.
|
||||
*
|
||||
* Generated from protobuf message <code>google.api.MetricRule</code>
|
||||
*/
|
||||
class MetricRule extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* Selects the methods to which this rule applies.
|
||||
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
|
||||
* details.
|
||||
*
|
||||
* Generated from protobuf field <code>string selector = 1;</code>
|
||||
*/
|
||||
protected $selector = '';
|
||||
/**
|
||||
* Metrics to update when the selected methods are called, and the associated
|
||||
* cost applied to each metric.
|
||||
* The key of the map is the metric name, and the values are the amount
|
||||
* increased for the metric against which the quota limits are defined.
|
||||
* The value must not be negative.
|
||||
*
|
||||
* Generated from protobuf field <code>map<string, int64> metric_costs = 2;</code>
|
||||
*/
|
||||
private $metric_costs;
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type string $selector
|
||||
* Selects the methods to which this rule applies.
|
||||
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
|
||||
* details.
|
||||
* @type array|\Google\Protobuf\Internal\MapField $metric_costs
|
||||
* Metrics to update when the selected methods are called, and the associated
|
||||
* cost applied to each metric.
|
||||
* The key of the map is the metric name, and the values are the amount
|
||||
* increased for the metric against which the quota limits are defined.
|
||||
* The value must not be negative.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Api\Quota::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* Selects the methods to which this rule applies.
|
||||
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
|
||||
* details.
|
||||
*
|
||||
* Generated from protobuf field <code>string selector = 1;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getSelector()
|
||||
{
|
||||
return $this->selector;
|
||||
}
|
||||
/**
|
||||
* Selects the methods to which this rule applies.
|
||||
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
|
||||
* details.
|
||||
*
|
||||
* Generated from protobuf field <code>string selector = 1;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setSelector($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->selector = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Metrics to update when the selected methods are called, and the associated
|
||||
* cost applied to each metric.
|
||||
* The key of the map is the metric name, and the values are the amount
|
||||
* increased for the metric against which the quota limits are defined.
|
||||
* The value must not be negative.
|
||||
*
|
||||
* Generated from protobuf field <code>map<string, int64> metric_costs = 2;</code>
|
||||
* @return \Google\Protobuf\Internal\MapField
|
||||
*/
|
||||
public function getMetricCosts()
|
||||
{
|
||||
return $this->metric_costs;
|
||||
}
|
||||
/**
|
||||
* Metrics to update when the selected methods are called, and the associated
|
||||
* cost applied to each metric.
|
||||
* The key of the map is the metric name, and the values are the amount
|
||||
* increased for the metric against which the quota limits are defined.
|
||||
* The value must not be negative.
|
||||
*
|
||||
* Generated from protobuf field <code>map<string, int64> metric_costs = 2;</code>
|
||||
* @param array|\Google\Protobuf\Internal\MapField $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setMetricCosts($var)
|
||||
{
|
||||
$arr = GPBUtil::checkMapField($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::STRING, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::INT64);
|
||||
$this->metric_costs = $arr;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
138
vendor/Gcp/google/common-protos/src/Api/MonitoredResource.php
vendored
Normal file
138
vendor/Gcp/google/common-protos/src/Api/MonitoredResource.php
vendored
Normal file
@@ -0,0 +1,138 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/monitored_resource.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* An object representing a resource that can be used for monitoring, logging,
|
||||
* billing, or other purposes. Examples include virtual machine instances,
|
||||
* databases, and storage devices such as disks. The `type` field identifies a
|
||||
* [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor] object
|
||||
* that describes the resource's schema. Information in the `labels` field
|
||||
* identifies the actual resource and its attributes according to the schema.
|
||||
* For example, a particular Compute Engine VM instance could be represented by
|
||||
* the following object, because the
|
||||
* [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor] for
|
||||
* `"gce_instance"` has labels
|
||||
* `"project_id"`, `"instance_id"` and `"zone"`:
|
||||
* { "type": "gce_instance",
|
||||
* "labels": { "project_id": "my-project",
|
||||
* "instance_id": "12345678901234",
|
||||
* "zone": "us-central1-a" }}
|
||||
*
|
||||
* Generated from protobuf message <code>google.api.MonitoredResource</code>
|
||||
*/
|
||||
class MonitoredResource extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* Required. The monitored resource type. This field must match
|
||||
* the `type` field of a
|
||||
* [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor]
|
||||
* object. For example, the type of a Compute Engine VM instance is
|
||||
* `gce_instance`. Some descriptors include the service name in the type; for
|
||||
* example, the type of a Datastream stream is
|
||||
* `datastream.googleapis.com/Stream`.
|
||||
*
|
||||
* Generated from protobuf field <code>string type = 1;</code>
|
||||
*/
|
||||
protected $type = '';
|
||||
/**
|
||||
* Required. Values for all of the labels listed in the associated monitored
|
||||
* resource descriptor. For example, Compute Engine VM instances use the
|
||||
* labels `"project_id"`, `"instance_id"`, and `"zone"`.
|
||||
*
|
||||
* Generated from protobuf field <code>map<string, string> labels = 2;</code>
|
||||
*/
|
||||
private $labels;
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type string $type
|
||||
* Required. The monitored resource type. This field must match
|
||||
* the `type` field of a
|
||||
* [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor]
|
||||
* object. For example, the type of a Compute Engine VM instance is
|
||||
* `gce_instance`. Some descriptors include the service name in the type; for
|
||||
* example, the type of a Datastream stream is
|
||||
* `datastream.googleapis.com/Stream`.
|
||||
* @type array|\Google\Protobuf\Internal\MapField $labels
|
||||
* Required. Values for all of the labels listed in the associated monitored
|
||||
* resource descriptor. For example, Compute Engine VM instances use the
|
||||
* labels `"project_id"`, `"instance_id"`, and `"zone"`.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Api\MonitoredResource::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* Required. The monitored resource type. This field must match
|
||||
* the `type` field of a
|
||||
* [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor]
|
||||
* object. For example, the type of a Compute Engine VM instance is
|
||||
* `gce_instance`. Some descriptors include the service name in the type; for
|
||||
* example, the type of a Datastream stream is
|
||||
* `datastream.googleapis.com/Stream`.
|
||||
*
|
||||
* Generated from protobuf field <code>string type = 1;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getType()
|
||||
{
|
||||
return $this->type;
|
||||
}
|
||||
/**
|
||||
* Required. The monitored resource type. This field must match
|
||||
* the `type` field of a
|
||||
* [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor]
|
||||
* object. For example, the type of a Compute Engine VM instance is
|
||||
* `gce_instance`. Some descriptors include the service name in the type; for
|
||||
* example, the type of a Datastream stream is
|
||||
* `datastream.googleapis.com/Stream`.
|
||||
*
|
||||
* Generated from protobuf field <code>string type = 1;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setType($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->type = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Required. Values for all of the labels listed in the associated monitored
|
||||
* resource descriptor. For example, Compute Engine VM instances use the
|
||||
* labels `"project_id"`, `"instance_id"`, and `"zone"`.
|
||||
*
|
||||
* Generated from protobuf field <code>map<string, string> labels = 2;</code>
|
||||
* @return \Google\Protobuf\Internal\MapField
|
||||
*/
|
||||
public function getLabels()
|
||||
{
|
||||
return $this->labels;
|
||||
}
|
||||
/**
|
||||
* Required. Values for all of the labels listed in the associated monitored
|
||||
* resource descriptor. For example, Compute Engine VM instances use the
|
||||
* labels `"project_id"`, `"instance_id"`, and `"zone"`.
|
||||
*
|
||||
* Generated from protobuf field <code>map<string, string> labels = 2;</code>
|
||||
* @param array|\Google\Protobuf\Internal\MapField $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setLabels($var)
|
||||
{
|
||||
$arr = GPBUtil::checkMapField($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::STRING, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::STRING);
|
||||
$this->labels = $arr;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
288
vendor/Gcp/google/common-protos/src/Api/MonitoredResourceDescriptor.php
vendored
Normal file
288
vendor/Gcp/google/common-protos/src/Api/MonitoredResourceDescriptor.php
vendored
Normal file
@@ -0,0 +1,288 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/monitored_resource.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* An object that describes the schema of a
|
||||
* [MonitoredResource][google.api.MonitoredResource] object using a type name
|
||||
* and a set of labels. For example, the monitored resource descriptor for
|
||||
* Google Compute Engine VM instances has a type of
|
||||
* `"gce_instance"` and specifies the use of the labels `"instance_id"` and
|
||||
* `"zone"` to identify particular VM instances.
|
||||
* Different APIs can support different monitored resource types. APIs generally
|
||||
* provide a `list` method that returns the monitored resource descriptors used
|
||||
* by the API.
|
||||
*
|
||||
* Generated from protobuf message <code>google.api.MonitoredResourceDescriptor</code>
|
||||
*/
|
||||
class MonitoredResourceDescriptor extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* Optional. The resource name of the monitored resource descriptor:
|
||||
* `"projects/{project_id}/monitoredResourceDescriptors/{type}"` where
|
||||
* {type} is the value of the `type` field in this object and
|
||||
* {project_id} is a project ID that provides API-specific context for
|
||||
* accessing the type. APIs that do not use project information can use the
|
||||
* resource name format `"monitoredResourceDescriptors/{type}"`.
|
||||
*
|
||||
* Generated from protobuf field <code>string name = 5;</code>
|
||||
*/
|
||||
protected $name = '';
|
||||
/**
|
||||
* Required. The monitored resource type. For example, the type
|
||||
* `"cloudsql_database"` represents databases in Google Cloud SQL.
|
||||
* For a list of types, see [Monitoring resource
|
||||
* types](https://cloud.google.com/monitoring/api/resources)
|
||||
* and [Logging resource
|
||||
* types](https://cloud.google.com/logging/docs/api/v2/resource-list).
|
||||
*
|
||||
* Generated from protobuf field <code>string type = 1;</code>
|
||||
*/
|
||||
protected $type = '';
|
||||
/**
|
||||
* Optional. A concise name for the monitored resource type that might be
|
||||
* displayed in user interfaces. It should be a Title Cased Noun Phrase,
|
||||
* without any article or other determiners. For example,
|
||||
* `"Google Cloud SQL Database"`.
|
||||
*
|
||||
* Generated from protobuf field <code>string display_name = 2;</code>
|
||||
*/
|
||||
protected $display_name = '';
|
||||
/**
|
||||
* Optional. A detailed description of the monitored resource type that might
|
||||
* be used in documentation.
|
||||
*
|
||||
* Generated from protobuf field <code>string description = 3;</code>
|
||||
*/
|
||||
protected $description = '';
|
||||
/**
|
||||
* Required. A set of labels used to describe instances of this monitored
|
||||
* resource type. For example, an individual Google Cloud SQL database is
|
||||
* identified by values for the labels `"database_id"` and `"zone"`.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.LabelDescriptor labels = 4;</code>
|
||||
*/
|
||||
private $labels;
|
||||
/**
|
||||
* Optional. The launch stage of the monitored resource definition.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.LaunchStage launch_stage = 7;</code>
|
||||
*/
|
||||
protected $launch_stage = 0;
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type string $name
|
||||
* Optional. The resource name of the monitored resource descriptor:
|
||||
* `"projects/{project_id}/monitoredResourceDescriptors/{type}"` where
|
||||
* {type} is the value of the `type` field in this object and
|
||||
* {project_id} is a project ID that provides API-specific context for
|
||||
* accessing the type. APIs that do not use project information can use the
|
||||
* resource name format `"monitoredResourceDescriptors/{type}"`.
|
||||
* @type string $type
|
||||
* Required. The monitored resource type. For example, the type
|
||||
* `"cloudsql_database"` represents databases in Google Cloud SQL.
|
||||
* For a list of types, see [Monitoring resource
|
||||
* types](https://cloud.google.com/monitoring/api/resources)
|
||||
* and [Logging resource
|
||||
* types](https://cloud.google.com/logging/docs/api/v2/resource-list).
|
||||
* @type string $display_name
|
||||
* Optional. A concise name for the monitored resource type that might be
|
||||
* displayed in user interfaces. It should be a Title Cased Noun Phrase,
|
||||
* without any article or other determiners. For example,
|
||||
* `"Google Cloud SQL Database"`.
|
||||
* @type string $description
|
||||
* Optional. A detailed description of the monitored resource type that might
|
||||
* be used in documentation.
|
||||
* @type array<\Google\Api\LabelDescriptor>|\Google\Protobuf\Internal\RepeatedField $labels
|
||||
* Required. A set of labels used to describe instances of this monitored
|
||||
* resource type. For example, an individual Google Cloud SQL database is
|
||||
* identified by values for the labels `"database_id"` and `"zone"`.
|
||||
* @type int $launch_stage
|
||||
* Optional. The launch stage of the monitored resource definition.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Api\MonitoredResource::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* Optional. The resource name of the monitored resource descriptor:
|
||||
* `"projects/{project_id}/monitoredResourceDescriptors/{type}"` where
|
||||
* {type} is the value of the `type` field in this object and
|
||||
* {project_id} is a project ID that provides API-specific context for
|
||||
* accessing the type. APIs that do not use project information can use the
|
||||
* resource name format `"monitoredResourceDescriptors/{type}"`.
|
||||
*
|
||||
* Generated from protobuf field <code>string name = 5;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getName()
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
/**
|
||||
* Optional. The resource name of the monitored resource descriptor:
|
||||
* `"projects/{project_id}/monitoredResourceDescriptors/{type}"` where
|
||||
* {type} is the value of the `type` field in this object and
|
||||
* {project_id} is a project ID that provides API-specific context for
|
||||
* accessing the type. APIs that do not use project information can use the
|
||||
* resource name format `"monitoredResourceDescriptors/{type}"`.
|
||||
*
|
||||
* Generated from protobuf field <code>string name = 5;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setName($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->name = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Required. The monitored resource type. For example, the type
|
||||
* `"cloudsql_database"` represents databases in Google Cloud SQL.
|
||||
* For a list of types, see [Monitoring resource
|
||||
* types](https://cloud.google.com/monitoring/api/resources)
|
||||
* and [Logging resource
|
||||
* types](https://cloud.google.com/logging/docs/api/v2/resource-list).
|
||||
*
|
||||
* Generated from protobuf field <code>string type = 1;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getType()
|
||||
{
|
||||
return $this->type;
|
||||
}
|
||||
/**
|
||||
* Required. The monitored resource type. For example, the type
|
||||
* `"cloudsql_database"` represents databases in Google Cloud SQL.
|
||||
* For a list of types, see [Monitoring resource
|
||||
* types](https://cloud.google.com/monitoring/api/resources)
|
||||
* and [Logging resource
|
||||
* types](https://cloud.google.com/logging/docs/api/v2/resource-list).
|
||||
*
|
||||
* Generated from protobuf field <code>string type = 1;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setType($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->type = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Optional. A concise name for the monitored resource type that might be
|
||||
* displayed in user interfaces. It should be a Title Cased Noun Phrase,
|
||||
* without any article or other determiners. For example,
|
||||
* `"Google Cloud SQL Database"`.
|
||||
*
|
||||
* Generated from protobuf field <code>string display_name = 2;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getDisplayName()
|
||||
{
|
||||
return $this->display_name;
|
||||
}
|
||||
/**
|
||||
* Optional. A concise name for the monitored resource type that might be
|
||||
* displayed in user interfaces. It should be a Title Cased Noun Phrase,
|
||||
* without any article or other determiners. For example,
|
||||
* `"Google Cloud SQL Database"`.
|
||||
*
|
||||
* Generated from protobuf field <code>string display_name = 2;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setDisplayName($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->display_name = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Optional. A detailed description of the monitored resource type that might
|
||||
* be used in documentation.
|
||||
*
|
||||
* Generated from protobuf field <code>string description = 3;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getDescription()
|
||||
{
|
||||
return $this->description;
|
||||
}
|
||||
/**
|
||||
* Optional. A detailed description of the monitored resource type that might
|
||||
* be used in documentation.
|
||||
*
|
||||
* Generated from protobuf field <code>string description = 3;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setDescription($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->description = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Required. A set of labels used to describe instances of this monitored
|
||||
* resource type. For example, an individual Google Cloud SQL database is
|
||||
* identified by values for the labels `"database_id"` and `"zone"`.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.LabelDescriptor labels = 4;</code>
|
||||
* @return \Google\Protobuf\Internal\RepeatedField
|
||||
*/
|
||||
public function getLabels()
|
||||
{
|
||||
return $this->labels;
|
||||
}
|
||||
/**
|
||||
* Required. A set of labels used to describe instances of this monitored
|
||||
* resource type. For example, an individual Google Cloud SQL database is
|
||||
* identified by values for the labels `"database_id"` and `"zone"`.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.LabelDescriptor labels = 4;</code>
|
||||
* @param array<\Google\Api\LabelDescriptor>|\Google\Protobuf\Internal\RepeatedField $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setLabels($var)
|
||||
{
|
||||
$arr = GPBUtil::checkRepeatedField($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::MESSAGE, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\LabelDescriptor::class);
|
||||
$this->labels = $arr;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Optional. The launch stage of the monitored resource definition.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.LaunchStage launch_stage = 7;</code>
|
||||
* @return int
|
||||
*/
|
||||
public function getLaunchStage()
|
||||
{
|
||||
return $this->launch_stage;
|
||||
}
|
||||
/**
|
||||
* Optional. The launch stage of the monitored resource definition.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.LaunchStage launch_stage = 7;</code>
|
||||
* @param int $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setLaunchStage($var)
|
||||
{
|
||||
GPBUtil::checkEnum($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\LaunchStage::class);
|
||||
$this->launch_stage = $var;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
137
vendor/Gcp/google/common-protos/src/Api/MonitoredResourceMetadata.php
vendored
Normal file
137
vendor/Gcp/google/common-protos/src/Api/MonitoredResourceMetadata.php
vendored
Normal file
@@ -0,0 +1,137 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/monitored_resource.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* Auxiliary metadata for a [MonitoredResource][google.api.MonitoredResource]
|
||||
* object. [MonitoredResource][google.api.MonitoredResource] objects contain the
|
||||
* minimum set of information to uniquely identify a monitored resource
|
||||
* instance. There is some other useful auxiliary metadata. Monitoring and
|
||||
* Logging use an ingestion pipeline to extract metadata for cloud resources of
|
||||
* all types, and store the metadata in this message.
|
||||
*
|
||||
* Generated from protobuf message <code>google.api.MonitoredResourceMetadata</code>
|
||||
*/
|
||||
class MonitoredResourceMetadata extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* Output only. Values for predefined system metadata labels.
|
||||
* System labels are a kind of metadata extracted by Google, including
|
||||
* "machine_image", "vpc", "subnet_id",
|
||||
* "security_group", "name", etc.
|
||||
* System label values can be only strings, Boolean values, or a list of
|
||||
* strings. For example:
|
||||
* { "name": "my-test-instance",
|
||||
* "security_group": ["a", "b", "c"],
|
||||
* "spot_instance": false }
|
||||
*
|
||||
* Generated from protobuf field <code>.google.protobuf.Struct system_labels = 1;</code>
|
||||
*/
|
||||
protected $system_labels = null;
|
||||
/**
|
||||
* Output only. A map of user-defined metadata labels.
|
||||
*
|
||||
* Generated from protobuf field <code>map<string, string> user_labels = 2;</code>
|
||||
*/
|
||||
private $user_labels;
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type \Google\Protobuf\Struct $system_labels
|
||||
* Output only. Values for predefined system metadata labels.
|
||||
* System labels are a kind of metadata extracted by Google, including
|
||||
* "machine_image", "vpc", "subnet_id",
|
||||
* "security_group", "name", etc.
|
||||
* System label values can be only strings, Boolean values, or a list of
|
||||
* strings. For example:
|
||||
* { "name": "my-test-instance",
|
||||
* "security_group": ["a", "b", "c"],
|
||||
* "spot_instance": false }
|
||||
* @type array|\Google\Protobuf\Internal\MapField $user_labels
|
||||
* Output only. A map of user-defined metadata labels.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Api\MonitoredResource::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* Output only. Values for predefined system metadata labels.
|
||||
* System labels are a kind of metadata extracted by Google, including
|
||||
* "machine_image", "vpc", "subnet_id",
|
||||
* "security_group", "name", etc.
|
||||
* System label values can be only strings, Boolean values, or a list of
|
||||
* strings. For example:
|
||||
* { "name": "my-test-instance",
|
||||
* "security_group": ["a", "b", "c"],
|
||||
* "spot_instance": false }
|
||||
*
|
||||
* Generated from protobuf field <code>.google.protobuf.Struct system_labels = 1;</code>
|
||||
* @return \Google\Protobuf\Struct|null
|
||||
*/
|
||||
public function getSystemLabels()
|
||||
{
|
||||
return $this->system_labels;
|
||||
}
|
||||
public function hasSystemLabels()
|
||||
{
|
||||
return isset($this->system_labels);
|
||||
}
|
||||
public function clearSystemLabels()
|
||||
{
|
||||
unset($this->system_labels);
|
||||
}
|
||||
/**
|
||||
* Output only. Values for predefined system metadata labels.
|
||||
* System labels are a kind of metadata extracted by Google, including
|
||||
* "machine_image", "vpc", "subnet_id",
|
||||
* "security_group", "name", etc.
|
||||
* System label values can be only strings, Boolean values, or a list of
|
||||
* strings. For example:
|
||||
* { "name": "my-test-instance",
|
||||
* "security_group": ["a", "b", "c"],
|
||||
* "spot_instance": false }
|
||||
*
|
||||
* Generated from protobuf field <code>.google.protobuf.Struct system_labels = 1;</code>
|
||||
* @param \Google\Protobuf\Struct $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setSystemLabels($var)
|
||||
{
|
||||
GPBUtil::checkMessage($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Struct::class);
|
||||
$this->system_labels = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Output only. A map of user-defined metadata labels.
|
||||
*
|
||||
* Generated from protobuf field <code>map<string, string> user_labels = 2;</code>
|
||||
* @return \Google\Protobuf\Internal\MapField
|
||||
*/
|
||||
public function getUserLabels()
|
||||
{
|
||||
return $this->user_labels;
|
||||
}
|
||||
/**
|
||||
* Output only. A map of user-defined metadata labels.
|
||||
*
|
||||
* Generated from protobuf field <code>map<string, string> user_labels = 2;</code>
|
||||
* @param array|\Google\Protobuf\Internal\MapField $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setUserLabels($var)
|
||||
{
|
||||
$arr = GPBUtil::checkMapField($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::STRING, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::STRING);
|
||||
$this->user_labels = $arr;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
181
vendor/Gcp/google/common-protos/src/Api/Monitoring.php
vendored
Normal file
181
vendor/Gcp/google/common-protos/src/Api/Monitoring.php
vendored
Normal file
@@ -0,0 +1,181 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/monitoring.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* Monitoring configuration of the service.
|
||||
* The example below shows how to configure monitored resources and metrics
|
||||
* for monitoring. In the example, a monitored resource and two metrics are
|
||||
* defined. The `library.googleapis.com/book/returned_count` metric is sent
|
||||
* to both producer and consumer projects, whereas the
|
||||
* `library.googleapis.com/book/num_overdue` metric is only sent to the
|
||||
* consumer project.
|
||||
* monitored_resources:
|
||||
* - type: library.googleapis.com/Branch
|
||||
* display_name: "Library Branch"
|
||||
* description: "A branch of a library."
|
||||
* launch_stage: GA
|
||||
* labels:
|
||||
* - key: resource_container
|
||||
* description: "The Cloud container (ie. project id) for the Branch."
|
||||
* - key: location
|
||||
* description: "The location of the library branch."
|
||||
* - key: branch_id
|
||||
* description: "The id of the branch."
|
||||
* metrics:
|
||||
* - name: library.googleapis.com/book/returned_count
|
||||
* display_name: "Books Returned"
|
||||
* description: "The count of books that have been returned."
|
||||
* launch_stage: GA
|
||||
* metric_kind: DELTA
|
||||
* value_type: INT64
|
||||
* unit: "1"
|
||||
* labels:
|
||||
* - key: customer_id
|
||||
* description: "The id of the customer."
|
||||
* - name: library.googleapis.com/book/num_overdue
|
||||
* display_name: "Books Overdue"
|
||||
* description: "The current number of overdue books."
|
||||
* launch_stage: GA
|
||||
* metric_kind: GAUGE
|
||||
* value_type: INT64
|
||||
* unit: "1"
|
||||
* labels:
|
||||
* - key: customer_id
|
||||
* description: "The id of the customer."
|
||||
* monitoring:
|
||||
* producer_destinations:
|
||||
* - monitored_resource: library.googleapis.com/Branch
|
||||
* metrics:
|
||||
* - library.googleapis.com/book/returned_count
|
||||
* consumer_destinations:
|
||||
* - monitored_resource: library.googleapis.com/Branch
|
||||
* metrics:
|
||||
* - library.googleapis.com/book/returned_count
|
||||
* - library.googleapis.com/book/num_overdue
|
||||
*
|
||||
* Generated from protobuf message <code>google.api.Monitoring</code>
|
||||
*/
|
||||
class Monitoring extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* Monitoring configurations for sending metrics to the producer project.
|
||||
* There can be multiple producer destinations. A monitored resource type may
|
||||
* appear in multiple monitoring destinations if different aggregations are
|
||||
* needed for different sets of metrics associated with that monitored
|
||||
* resource type. A monitored resource and metric pair may only be used once
|
||||
* in the Monitoring configuration.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.Monitoring.MonitoringDestination producer_destinations = 1;</code>
|
||||
*/
|
||||
private $producer_destinations;
|
||||
/**
|
||||
* Monitoring configurations for sending metrics to the consumer project.
|
||||
* There can be multiple consumer destinations. A monitored resource type may
|
||||
* appear in multiple monitoring destinations if different aggregations are
|
||||
* needed for different sets of metrics associated with that monitored
|
||||
* resource type. A monitored resource and metric pair may only be used once
|
||||
* in the Monitoring configuration.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.Monitoring.MonitoringDestination consumer_destinations = 2;</code>
|
||||
*/
|
||||
private $consumer_destinations;
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type array<\Google\Api\Monitoring\MonitoringDestination>|\Google\Protobuf\Internal\RepeatedField $producer_destinations
|
||||
* Monitoring configurations for sending metrics to the producer project.
|
||||
* There can be multiple producer destinations. A monitored resource type may
|
||||
* appear in multiple monitoring destinations if different aggregations are
|
||||
* needed for different sets of metrics associated with that monitored
|
||||
* resource type. A monitored resource and metric pair may only be used once
|
||||
* in the Monitoring configuration.
|
||||
* @type array<\Google\Api\Monitoring\MonitoringDestination>|\Google\Protobuf\Internal\RepeatedField $consumer_destinations
|
||||
* Monitoring configurations for sending metrics to the consumer project.
|
||||
* There can be multiple consumer destinations. A monitored resource type may
|
||||
* appear in multiple monitoring destinations if different aggregations are
|
||||
* needed for different sets of metrics associated with that monitored
|
||||
* resource type. A monitored resource and metric pair may only be used once
|
||||
* in the Monitoring configuration.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Api\Monitoring::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* Monitoring configurations for sending metrics to the producer project.
|
||||
* There can be multiple producer destinations. A monitored resource type may
|
||||
* appear in multiple monitoring destinations if different aggregations are
|
||||
* needed for different sets of metrics associated with that monitored
|
||||
* resource type. A monitored resource and metric pair may only be used once
|
||||
* in the Monitoring configuration.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.Monitoring.MonitoringDestination producer_destinations = 1;</code>
|
||||
* @return \Google\Protobuf\Internal\RepeatedField
|
||||
*/
|
||||
public function getProducerDestinations()
|
||||
{
|
||||
return $this->producer_destinations;
|
||||
}
|
||||
/**
|
||||
* Monitoring configurations for sending metrics to the producer project.
|
||||
* There can be multiple producer destinations. A monitored resource type may
|
||||
* appear in multiple monitoring destinations if different aggregations are
|
||||
* needed for different sets of metrics associated with that monitored
|
||||
* resource type. A monitored resource and metric pair may only be used once
|
||||
* in the Monitoring configuration.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.Monitoring.MonitoringDestination producer_destinations = 1;</code>
|
||||
* @param array<\Google\Api\Monitoring\MonitoringDestination>|\Google\Protobuf\Internal\RepeatedField $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setProducerDestinations($var)
|
||||
{
|
||||
$arr = GPBUtil::checkRepeatedField($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::MESSAGE, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\Monitoring\MonitoringDestination::class);
|
||||
$this->producer_destinations = $arr;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Monitoring configurations for sending metrics to the consumer project.
|
||||
* There can be multiple consumer destinations. A monitored resource type may
|
||||
* appear in multiple monitoring destinations if different aggregations are
|
||||
* needed for different sets of metrics associated with that monitored
|
||||
* resource type. A monitored resource and metric pair may only be used once
|
||||
* in the Monitoring configuration.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.Monitoring.MonitoringDestination consumer_destinations = 2;</code>
|
||||
* @return \Google\Protobuf\Internal\RepeatedField
|
||||
*/
|
||||
public function getConsumerDestinations()
|
||||
{
|
||||
return $this->consumer_destinations;
|
||||
}
|
||||
/**
|
||||
* Monitoring configurations for sending metrics to the consumer project.
|
||||
* There can be multiple consumer destinations. A monitored resource type may
|
||||
* appear in multiple monitoring destinations if different aggregations are
|
||||
* needed for different sets of metrics associated with that monitored
|
||||
* resource type. A monitored resource and metric pair may only be used once
|
||||
* in the Monitoring configuration.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.Monitoring.MonitoringDestination consumer_destinations = 2;</code>
|
||||
* @param array<\Google\Api\Monitoring\MonitoringDestination>|\Google\Protobuf\Internal\RepeatedField $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setConsumerDestinations($var)
|
||||
{
|
||||
$arr = GPBUtil::checkRepeatedField($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::MESSAGE, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\Monitoring\MonitoringDestination::class);
|
||||
$this->consumer_destinations = $arr;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
109
vendor/Gcp/google/common-protos/src/Api/Monitoring/MonitoringDestination.php
vendored
Normal file
109
vendor/Gcp/google/common-protos/src/Api/Monitoring/MonitoringDestination.php
vendored
Normal file
@@ -0,0 +1,109 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/monitoring.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\Monitoring;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* Configuration of a specific monitoring destination (the producer project
|
||||
* or the consumer project).
|
||||
*
|
||||
* Generated from protobuf message <code>google.api.Monitoring.MonitoringDestination</code>
|
||||
*/
|
||||
class MonitoringDestination extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* The monitored resource type. The type must be defined in
|
||||
* [Service.monitored_resources][google.api.Service.monitored_resources]
|
||||
* section.
|
||||
*
|
||||
* Generated from protobuf field <code>string monitored_resource = 1;</code>
|
||||
*/
|
||||
protected $monitored_resource = '';
|
||||
/**
|
||||
* Types of the metrics to report to this monitoring destination.
|
||||
* Each type must be defined in
|
||||
* [Service.metrics][google.api.Service.metrics] section.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated string metrics = 2;</code>
|
||||
*/
|
||||
private $metrics;
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type string $monitored_resource
|
||||
* The monitored resource type. The type must be defined in
|
||||
* [Service.monitored_resources][google.api.Service.monitored_resources]
|
||||
* section.
|
||||
* @type array<string>|\Google\Protobuf\Internal\RepeatedField $metrics
|
||||
* Types of the metrics to report to this monitoring destination.
|
||||
* Each type must be defined in
|
||||
* [Service.metrics][google.api.Service.metrics] section.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Api\Monitoring::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* The monitored resource type. The type must be defined in
|
||||
* [Service.monitored_resources][google.api.Service.monitored_resources]
|
||||
* section.
|
||||
*
|
||||
* Generated from protobuf field <code>string monitored_resource = 1;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getMonitoredResource()
|
||||
{
|
||||
return $this->monitored_resource;
|
||||
}
|
||||
/**
|
||||
* The monitored resource type. The type must be defined in
|
||||
* [Service.monitored_resources][google.api.Service.monitored_resources]
|
||||
* section.
|
||||
*
|
||||
* Generated from protobuf field <code>string monitored_resource = 1;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setMonitoredResource($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->monitored_resource = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Types of the metrics to report to this monitoring destination.
|
||||
* Each type must be defined in
|
||||
* [Service.metrics][google.api.Service.metrics] section.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated string metrics = 2;</code>
|
||||
* @return \Google\Protobuf\Internal\RepeatedField
|
||||
*/
|
||||
public function getMetrics()
|
||||
{
|
||||
return $this->metrics;
|
||||
}
|
||||
/**
|
||||
* Types of the metrics to report to this monitoring destination.
|
||||
* Each type must be defined in
|
||||
* [Service.metrics][google.api.Service.metrics] section.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated string metrics = 2;</code>
|
||||
* @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setMetrics($var)
|
||||
{
|
||||
$arr = GPBUtil::checkRepeatedField($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::STRING);
|
||||
$this->metrics = $arr;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
69
vendor/Gcp/google/common-protos/src/Api/NodeSettings.php
vendored
Normal file
69
vendor/Gcp/google/common-protos/src/Api/NodeSettings.php
vendored
Normal file
@@ -0,0 +1,69 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/client.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* Settings for Node client libraries.
|
||||
*
|
||||
* Generated from protobuf message <code>google.api.NodeSettings</code>
|
||||
*/
|
||||
class NodeSettings extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* Some settings.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.CommonLanguageSettings common = 1;</code>
|
||||
*/
|
||||
protected $common = null;
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type \Google\Api\CommonLanguageSettings $common
|
||||
* Some settings.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Api\Client::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* Some settings.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.CommonLanguageSettings common = 1;</code>
|
||||
* @return \Google\Api\CommonLanguageSettings|null
|
||||
*/
|
||||
public function getCommon()
|
||||
{
|
||||
return $this->common;
|
||||
}
|
||||
public function hasCommon()
|
||||
{
|
||||
return isset($this->common);
|
||||
}
|
||||
public function clearCommon()
|
||||
{
|
||||
unset($this->common);
|
||||
}
|
||||
/**
|
||||
* Some settings.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.CommonLanguageSettings common = 1;</code>
|
||||
* @param \Google\Api\CommonLanguageSettings $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setCommon($var)
|
||||
{
|
||||
GPBUtil::checkMessage($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\CommonLanguageSettings::class);
|
||||
$this->common = $var;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
90
vendor/Gcp/google/common-protos/src/Api/OAuthRequirements.php
vendored
Normal file
90
vendor/Gcp/google/common-protos/src/Api/OAuthRequirements.php
vendored
Normal file
@@ -0,0 +1,90 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/auth.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* OAuth scopes are a way to define data and permissions on data. For example,
|
||||
* there are scopes defined for "Read-only access to Google Calendar" and
|
||||
* "Access to Cloud Platform". Users can consent to a scope for an application,
|
||||
* giving it permission to access that data on their behalf.
|
||||
* OAuth scope specifications should be fairly coarse grained; a user will need
|
||||
* to see and understand the text description of what your scope means.
|
||||
* In most cases: use one or at most two OAuth scopes for an entire family of
|
||||
* products. If your product has multiple APIs, you should probably be sharing
|
||||
* the OAuth scope across all of those APIs.
|
||||
* When you need finer grained OAuth consent screens: talk with your product
|
||||
* management about how developers will use them in practice.
|
||||
* Please note that even though each of the canonical scopes is enough for a
|
||||
* request to be accepted and passed to the backend, a request can still fail
|
||||
* due to the backend requiring additional scopes or permissions.
|
||||
*
|
||||
* Generated from protobuf message <code>google.api.OAuthRequirements</code>
|
||||
*/
|
||||
class OAuthRequirements extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* The list of publicly documented OAuth scopes that are allowed access. An
|
||||
* OAuth token containing any of these scopes will be accepted.
|
||||
* Example:
|
||||
* canonical_scopes: https://www.googleapis.com/auth/calendar,
|
||||
* https://www.googleapis.com/auth/calendar.read
|
||||
*
|
||||
* Generated from protobuf field <code>string canonical_scopes = 1;</code>
|
||||
*/
|
||||
protected $canonical_scopes = '';
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type string $canonical_scopes
|
||||
* The list of publicly documented OAuth scopes that are allowed access. An
|
||||
* OAuth token containing any of these scopes will be accepted.
|
||||
* Example:
|
||||
* canonical_scopes: https://www.googleapis.com/auth/calendar,
|
||||
* https://www.googleapis.com/auth/calendar.read
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Api\Auth::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* The list of publicly documented OAuth scopes that are allowed access. An
|
||||
* OAuth token containing any of these scopes will be accepted.
|
||||
* Example:
|
||||
* canonical_scopes: https://www.googleapis.com/auth/calendar,
|
||||
* https://www.googleapis.com/auth/calendar.read
|
||||
*
|
||||
* Generated from protobuf field <code>string canonical_scopes = 1;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getCanonicalScopes()
|
||||
{
|
||||
return $this->canonical_scopes;
|
||||
}
|
||||
/**
|
||||
* The list of publicly documented OAuth scopes that are allowed access. An
|
||||
* OAuth token containing any of these scopes will be accepted.
|
||||
* Example:
|
||||
* canonical_scopes: https://www.googleapis.com/auth/calendar,
|
||||
* https://www.googleapis.com/auth/calendar.read
|
||||
*
|
||||
* Generated from protobuf field <code>string canonical_scopes = 1;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setCanonicalScopes($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->canonical_scopes = $var;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
188
vendor/Gcp/google/common-protos/src/Api/Page.php
vendored
Normal file
188
vendor/Gcp/google/common-protos/src/Api/Page.php
vendored
Normal file
@@ -0,0 +1,188 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/documentation.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* Represents a documentation page. A page can contain subpages to represent
|
||||
* nested documentation set structure.
|
||||
*
|
||||
* Generated from protobuf message <code>google.api.Page</code>
|
||||
*/
|
||||
class Page extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* The name of the page. It will be used as an identity of the page to
|
||||
* generate URI of the page, text of the link to this page in navigation,
|
||||
* etc. The full page name (start from the root page name to this page
|
||||
* concatenated with `.`) can be used as reference to the page in your
|
||||
* documentation. For example:
|
||||
* <pre><code>pages:
|
||||
* - name: Tutorial
|
||||
* content: (== include tutorial.md ==)
|
||||
* subpages:
|
||||
* - name: Java
|
||||
* content: (== include tutorial_java.md ==)
|
||||
* </code></pre>
|
||||
* You can reference `Java` page using Markdown reference link syntax:
|
||||
* `[Java][Tutorial.Java]`.
|
||||
*
|
||||
* Generated from protobuf field <code>string name = 1;</code>
|
||||
*/
|
||||
protected $name = '';
|
||||
/**
|
||||
* The Markdown content of the page. You can use <code>(== include {path}
|
||||
* ==)</code> to include content from a Markdown file. The content can be
|
||||
* used to produce the documentation page such as HTML format page.
|
||||
*
|
||||
* Generated from protobuf field <code>string content = 2;</code>
|
||||
*/
|
||||
protected $content = '';
|
||||
/**
|
||||
* Subpages of this page. The order of subpages specified here will be
|
||||
* honored in the generated docset.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.Page subpages = 3;</code>
|
||||
*/
|
||||
private $subpages;
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type string $name
|
||||
* The name of the page. It will be used as an identity of the page to
|
||||
* generate URI of the page, text of the link to this page in navigation,
|
||||
* etc. The full page name (start from the root page name to this page
|
||||
* concatenated with `.`) can be used as reference to the page in your
|
||||
* documentation. For example:
|
||||
* <pre><code>pages:
|
||||
* - name: Tutorial
|
||||
* content: (== include tutorial.md ==)
|
||||
* subpages:
|
||||
* - name: Java
|
||||
* content: (== include tutorial_java.md ==)
|
||||
* </code></pre>
|
||||
* You can reference `Java` page using Markdown reference link syntax:
|
||||
* `[Java][Tutorial.Java]`.
|
||||
* @type string $content
|
||||
* The Markdown content of the page. You can use <code>(== include {path}
|
||||
* ==)</code> to include content from a Markdown file. The content can be
|
||||
* used to produce the documentation page such as HTML format page.
|
||||
* @type array<\Google\Api\Page>|\Google\Protobuf\Internal\RepeatedField $subpages
|
||||
* Subpages of this page. The order of subpages specified here will be
|
||||
* honored in the generated docset.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Api\Documentation::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* The name of the page. It will be used as an identity of the page to
|
||||
* generate URI of the page, text of the link to this page in navigation,
|
||||
* etc. The full page name (start from the root page name to this page
|
||||
* concatenated with `.`) can be used as reference to the page in your
|
||||
* documentation. For example:
|
||||
* <pre><code>pages:
|
||||
* - name: Tutorial
|
||||
* content: (== include tutorial.md ==)
|
||||
* subpages:
|
||||
* - name: Java
|
||||
* content: (== include tutorial_java.md ==)
|
||||
* </code></pre>
|
||||
* You can reference `Java` page using Markdown reference link syntax:
|
||||
* `[Java][Tutorial.Java]`.
|
||||
*
|
||||
* Generated from protobuf field <code>string name = 1;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getName()
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
/**
|
||||
* The name of the page. It will be used as an identity of the page to
|
||||
* generate URI of the page, text of the link to this page in navigation,
|
||||
* etc. The full page name (start from the root page name to this page
|
||||
* concatenated with `.`) can be used as reference to the page in your
|
||||
* documentation. For example:
|
||||
* <pre><code>pages:
|
||||
* - name: Tutorial
|
||||
* content: (== include tutorial.md ==)
|
||||
* subpages:
|
||||
* - name: Java
|
||||
* content: (== include tutorial_java.md ==)
|
||||
* </code></pre>
|
||||
* You can reference `Java` page using Markdown reference link syntax:
|
||||
* `[Java][Tutorial.Java]`.
|
||||
*
|
||||
* Generated from protobuf field <code>string name = 1;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setName($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->name = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* The Markdown content of the page. You can use <code>(== include {path}
|
||||
* ==)</code> to include content from a Markdown file. The content can be
|
||||
* used to produce the documentation page such as HTML format page.
|
||||
*
|
||||
* Generated from protobuf field <code>string content = 2;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getContent()
|
||||
{
|
||||
return $this->content;
|
||||
}
|
||||
/**
|
||||
* The Markdown content of the page. You can use <code>(== include {path}
|
||||
* ==)</code> to include content from a Markdown file. The content can be
|
||||
* used to produce the documentation page such as HTML format page.
|
||||
*
|
||||
* Generated from protobuf field <code>string content = 2;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setContent($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->content = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Subpages of this page. The order of subpages specified here will be
|
||||
* honored in the generated docset.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.Page subpages = 3;</code>
|
||||
* @return \Google\Protobuf\Internal\RepeatedField
|
||||
*/
|
||||
public function getSubpages()
|
||||
{
|
||||
return $this->subpages;
|
||||
}
|
||||
/**
|
||||
* Subpages of this page. The order of subpages specified here will be
|
||||
* honored in the generated docset.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.Page subpages = 3;</code>
|
||||
* @param array<\Google\Api\Page>|\Google\Protobuf\Internal\RepeatedField $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setSubpages($var)
|
||||
{
|
||||
$arr = GPBUtil::checkRepeatedField($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::MESSAGE, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\Page::class);
|
||||
$this->subpages = $arr;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
69
vendor/Gcp/google/common-protos/src/Api/PhpSettings.php
vendored
Normal file
69
vendor/Gcp/google/common-protos/src/Api/PhpSettings.php
vendored
Normal file
@@ -0,0 +1,69 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/client.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* Settings for Php client libraries.
|
||||
*
|
||||
* Generated from protobuf message <code>google.api.PhpSettings</code>
|
||||
*/
|
||||
class PhpSettings extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* Some settings.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.CommonLanguageSettings common = 1;</code>
|
||||
*/
|
||||
protected $common = null;
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type \Google\Api\CommonLanguageSettings $common
|
||||
* Some settings.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Api\Client::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* Some settings.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.CommonLanguageSettings common = 1;</code>
|
||||
* @return \Google\Api\CommonLanguageSettings|null
|
||||
*/
|
||||
public function getCommon()
|
||||
{
|
||||
return $this->common;
|
||||
}
|
||||
public function hasCommon()
|
||||
{
|
||||
return isset($this->common);
|
||||
}
|
||||
public function clearCommon()
|
||||
{
|
||||
unset($this->common);
|
||||
}
|
||||
/**
|
||||
* Some settings.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.CommonLanguageSettings common = 1;</code>
|
||||
* @param \Google\Api\CommonLanguageSettings $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setCommon($var)
|
||||
{
|
||||
GPBUtil::checkMessage($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\CommonLanguageSettings::class);
|
||||
$this->common = $var;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
74
vendor/Gcp/google/common-protos/src/Api/ProjectProperties.php
vendored
Normal file
74
vendor/Gcp/google/common-protos/src/Api/ProjectProperties.php
vendored
Normal file
@@ -0,0 +1,74 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/consumer.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* A descriptor for defining project properties for a service. One service may
|
||||
* have many consumer projects, and the service may want to behave differently
|
||||
* depending on some properties on the project. For example, a project may be
|
||||
* associated with a school, or a business, or a government agency, a business
|
||||
* type property on the project may affect how a service responds to the client.
|
||||
* This descriptor defines which properties are allowed to be set on a project.
|
||||
* Example:
|
||||
* project_properties:
|
||||
* properties:
|
||||
* - name: NO_WATERMARK
|
||||
* type: BOOL
|
||||
* description: Allows usage of the API without watermarks.
|
||||
* - name: EXTENDED_TILE_CACHE_PERIOD
|
||||
* type: INT64
|
||||
*
|
||||
* Generated from protobuf message <code>google.api.ProjectProperties</code>
|
||||
*/
|
||||
class ProjectProperties extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* List of per consumer project-specific properties.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.Property properties = 1;</code>
|
||||
*/
|
||||
private $properties;
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type array<\Google\Api\Property>|\Google\Protobuf\Internal\RepeatedField $properties
|
||||
* List of per consumer project-specific properties.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Api\Consumer::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* List of per consumer project-specific properties.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.Property properties = 1;</code>
|
||||
* @return \Google\Protobuf\Internal\RepeatedField
|
||||
*/
|
||||
public function getProperties()
|
||||
{
|
||||
return $this->properties;
|
||||
}
|
||||
/**
|
||||
* List of per consumer project-specific properties.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.Property properties = 1;</code>
|
||||
* @param array<\Google\Api\Property>|\Google\Protobuf\Internal\RepeatedField $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setProperties($var)
|
||||
{
|
||||
$arr = GPBUtil::checkRepeatedField($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::MESSAGE, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\Property::class);
|
||||
$this->properties = $arr;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
130
vendor/Gcp/google/common-protos/src/Api/Property.php
vendored
Normal file
130
vendor/Gcp/google/common-protos/src/Api/Property.php
vendored
Normal file
@@ -0,0 +1,130 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/consumer.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* Defines project properties.
|
||||
* API services can define properties that can be assigned to consumer projects
|
||||
* so that backends can perform response customization without having to make
|
||||
* additional calls or maintain additional storage. For example, Maps API
|
||||
* defines properties that controls map tile cache period, or whether to embed a
|
||||
* watermark in a result.
|
||||
* These values can be set via API producer console. Only API providers can
|
||||
* define and set these properties.
|
||||
*
|
||||
* Generated from protobuf message <code>google.api.Property</code>
|
||||
*/
|
||||
class Property extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* The name of the property (a.k.a key).
|
||||
*
|
||||
* Generated from protobuf field <code>string name = 1;</code>
|
||||
*/
|
||||
protected $name = '';
|
||||
/**
|
||||
* The type of this property.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.Property.PropertyType type = 2;</code>
|
||||
*/
|
||||
protected $type = 0;
|
||||
/**
|
||||
* The description of the property
|
||||
*
|
||||
* Generated from protobuf field <code>string description = 3;</code>
|
||||
*/
|
||||
protected $description = '';
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type string $name
|
||||
* The name of the property (a.k.a key).
|
||||
* @type int $type
|
||||
* The type of this property.
|
||||
* @type string $description
|
||||
* The description of the property
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Api\Consumer::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* The name of the property (a.k.a key).
|
||||
*
|
||||
* Generated from protobuf field <code>string name = 1;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getName()
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
/**
|
||||
* The name of the property (a.k.a key).
|
||||
*
|
||||
* Generated from protobuf field <code>string name = 1;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setName($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->name = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* The type of this property.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.Property.PropertyType type = 2;</code>
|
||||
* @return int
|
||||
*/
|
||||
public function getType()
|
||||
{
|
||||
return $this->type;
|
||||
}
|
||||
/**
|
||||
* The type of this property.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.Property.PropertyType type = 2;</code>
|
||||
* @param int $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setType($var)
|
||||
{
|
||||
GPBUtil::checkEnum($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\Property\PropertyType::class);
|
||||
$this->type = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* The description of the property
|
||||
*
|
||||
* Generated from protobuf field <code>string description = 3;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getDescription()
|
||||
{
|
||||
return $this->description;
|
||||
}
|
||||
/**
|
||||
* The description of the property
|
||||
*
|
||||
* Generated from protobuf field <code>string description = 3;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setDescription($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->description = $var;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
61
vendor/Gcp/google/common-protos/src/Api/Property/PropertyType.php
vendored
Normal file
61
vendor/Gcp/google/common-protos/src/Api/Property/PropertyType.php
vendored
Normal file
@@ -0,0 +1,61 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/consumer.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\Property;
|
||||
|
||||
use UnexpectedValueException;
|
||||
/**
|
||||
* Supported data type of the property values
|
||||
*
|
||||
* Protobuf type <code>google.api.Property.PropertyType</code>
|
||||
*/
|
||||
class PropertyType
|
||||
{
|
||||
/**
|
||||
* The type is unspecified, and will result in an error.
|
||||
*
|
||||
* Generated from protobuf enum <code>UNSPECIFIED = 0;</code>
|
||||
*/
|
||||
const UNSPECIFIED = 0;
|
||||
/**
|
||||
* The type is `int64`.
|
||||
*
|
||||
* Generated from protobuf enum <code>INT64 = 1;</code>
|
||||
*/
|
||||
const INT64 = 1;
|
||||
/**
|
||||
* The type is `bool`.
|
||||
*
|
||||
* Generated from protobuf enum <code>BOOL = 2;</code>
|
||||
*/
|
||||
const BOOL = 2;
|
||||
/**
|
||||
* The type is `string`.
|
||||
*
|
||||
* Generated from protobuf enum <code>STRING = 3;</code>
|
||||
*/
|
||||
const STRING = 3;
|
||||
/**
|
||||
* The type is 'double'.
|
||||
*
|
||||
* Generated from protobuf enum <code>DOUBLE = 4;</code>
|
||||
*/
|
||||
const DOUBLE = 4;
|
||||
private static $valueToName = [self::UNSPECIFIED => 'UNSPECIFIED', self::INT64 => 'INT64', self::BOOL => 'BOOL', self::STRING => 'STRING', self::DOUBLE => 'DOUBLE'];
|
||||
public static function name($value)
|
||||
{
|
||||
if (!isset(self::$valueToName[$value])) {
|
||||
throw new UnexpectedValueException(\sprintf('Enum %s has no name defined for value %s', __CLASS__, $value));
|
||||
}
|
||||
return self::$valueToName[$value];
|
||||
}
|
||||
public static function value($name)
|
||||
{
|
||||
$const = __CLASS__ . '::' . \strtoupper($name);
|
||||
if (!\defined($const)) {
|
||||
throw new UnexpectedValueException(\sprintf('Enum %s has no value defined for name %s', __CLASS__, $name));
|
||||
}
|
||||
return \constant($const);
|
||||
}
|
||||
}
|
||||
382
vendor/Gcp/google/common-protos/src/Api/Publishing.php
vendored
Normal file
382
vendor/Gcp/google/common-protos/src/Api/Publishing.php
vendored
Normal file
@@ -0,0 +1,382 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/client.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* This message configures the settings for publishing [Google Cloud Client
|
||||
* libraries](https://cloud.google.com/apis/docs/cloud-client-libraries)
|
||||
* generated from the service config.
|
||||
*
|
||||
* Generated from protobuf message <code>google.api.Publishing</code>
|
||||
*/
|
||||
class Publishing extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* A list of API method settings, e.g. the behavior for methods that use the
|
||||
* long-running operation pattern.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.MethodSettings method_settings = 2;</code>
|
||||
*/
|
||||
private $method_settings;
|
||||
/**
|
||||
* Link to a *public* URI where users can report issues. Example:
|
||||
* https://issuetracker.google.com/issues/new?component=190865&template=1161103
|
||||
*
|
||||
* Generated from protobuf field <code>string new_issue_uri = 101;</code>
|
||||
*/
|
||||
protected $new_issue_uri = '';
|
||||
/**
|
||||
* Link to product home page. Example:
|
||||
* https://cloud.google.com/asset-inventory/docs/overview
|
||||
*
|
||||
* Generated from protobuf field <code>string documentation_uri = 102;</code>
|
||||
*/
|
||||
protected $documentation_uri = '';
|
||||
/**
|
||||
* Used as a tracking tag when collecting data about the APIs developer
|
||||
* relations artifacts like docs, packages delivered to package managers,
|
||||
* etc. Example: "speech".
|
||||
*
|
||||
* Generated from protobuf field <code>string api_short_name = 103;</code>
|
||||
*/
|
||||
protected $api_short_name = '';
|
||||
/**
|
||||
* GitHub label to apply to issues and pull requests opened for this API.
|
||||
*
|
||||
* Generated from protobuf field <code>string github_label = 104;</code>
|
||||
*/
|
||||
protected $github_label = '';
|
||||
/**
|
||||
* GitHub teams to be added to CODEOWNERS in the directory in GitHub
|
||||
* containing source code for the client libraries for this API.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated string codeowner_github_teams = 105;</code>
|
||||
*/
|
||||
private $codeowner_github_teams;
|
||||
/**
|
||||
* A prefix used in sample code when demarking regions to be included in
|
||||
* documentation.
|
||||
*
|
||||
* Generated from protobuf field <code>string doc_tag_prefix = 106;</code>
|
||||
*/
|
||||
protected $doc_tag_prefix = '';
|
||||
/**
|
||||
* For whom the client library is being published.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.ClientLibraryOrganization organization = 107;</code>
|
||||
*/
|
||||
protected $organization = 0;
|
||||
/**
|
||||
* Client library settings. If the same version string appears multiple
|
||||
* times in this list, then the last one wins. Settings from earlier
|
||||
* settings with the same version string are discarded.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.ClientLibrarySettings library_settings = 109;</code>
|
||||
*/
|
||||
private $library_settings;
|
||||
/**
|
||||
* Optional link to proto reference documentation. Example:
|
||||
* https://cloud.google.com/pubsub/lite/docs/reference/rpc
|
||||
*
|
||||
* Generated from protobuf field <code>string proto_reference_documentation_uri = 110;</code>
|
||||
*/
|
||||
protected $proto_reference_documentation_uri = '';
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type array<\Google\Api\MethodSettings>|\Google\Protobuf\Internal\RepeatedField $method_settings
|
||||
* A list of API method settings, e.g. the behavior for methods that use the
|
||||
* long-running operation pattern.
|
||||
* @type string $new_issue_uri
|
||||
* Link to a *public* URI where users can report issues. Example:
|
||||
* https://issuetracker.google.com/issues/new?component=190865&template=1161103
|
||||
* @type string $documentation_uri
|
||||
* Link to product home page. Example:
|
||||
* https://cloud.google.com/asset-inventory/docs/overview
|
||||
* @type string $api_short_name
|
||||
* Used as a tracking tag when collecting data about the APIs developer
|
||||
* relations artifacts like docs, packages delivered to package managers,
|
||||
* etc. Example: "speech".
|
||||
* @type string $github_label
|
||||
* GitHub label to apply to issues and pull requests opened for this API.
|
||||
* @type array<string>|\Google\Protobuf\Internal\RepeatedField $codeowner_github_teams
|
||||
* GitHub teams to be added to CODEOWNERS in the directory in GitHub
|
||||
* containing source code for the client libraries for this API.
|
||||
* @type string $doc_tag_prefix
|
||||
* A prefix used in sample code when demarking regions to be included in
|
||||
* documentation.
|
||||
* @type int $organization
|
||||
* For whom the client library is being published.
|
||||
* @type array<\Google\Api\ClientLibrarySettings>|\Google\Protobuf\Internal\RepeatedField $library_settings
|
||||
* Client library settings. If the same version string appears multiple
|
||||
* times in this list, then the last one wins. Settings from earlier
|
||||
* settings with the same version string are discarded.
|
||||
* @type string $proto_reference_documentation_uri
|
||||
* Optional link to proto reference documentation. Example:
|
||||
* https://cloud.google.com/pubsub/lite/docs/reference/rpc
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Api\Client::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* A list of API method settings, e.g. the behavior for methods that use the
|
||||
* long-running operation pattern.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.MethodSettings method_settings = 2;</code>
|
||||
* @return \Google\Protobuf\Internal\RepeatedField
|
||||
*/
|
||||
public function getMethodSettings()
|
||||
{
|
||||
return $this->method_settings;
|
||||
}
|
||||
/**
|
||||
* A list of API method settings, e.g. the behavior for methods that use the
|
||||
* long-running operation pattern.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.MethodSettings method_settings = 2;</code>
|
||||
* @param array<\Google\Api\MethodSettings>|\Google\Protobuf\Internal\RepeatedField $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setMethodSettings($var)
|
||||
{
|
||||
$arr = GPBUtil::checkRepeatedField($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::MESSAGE, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\MethodSettings::class);
|
||||
$this->method_settings = $arr;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Link to a *public* URI where users can report issues. Example:
|
||||
* https://issuetracker.google.com/issues/new?component=190865&template=1161103
|
||||
*
|
||||
* Generated from protobuf field <code>string new_issue_uri = 101;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getNewIssueUri()
|
||||
{
|
||||
return $this->new_issue_uri;
|
||||
}
|
||||
/**
|
||||
* Link to a *public* URI where users can report issues. Example:
|
||||
* https://issuetracker.google.com/issues/new?component=190865&template=1161103
|
||||
*
|
||||
* Generated from protobuf field <code>string new_issue_uri = 101;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setNewIssueUri($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->new_issue_uri = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Link to product home page. Example:
|
||||
* https://cloud.google.com/asset-inventory/docs/overview
|
||||
*
|
||||
* Generated from protobuf field <code>string documentation_uri = 102;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getDocumentationUri()
|
||||
{
|
||||
return $this->documentation_uri;
|
||||
}
|
||||
/**
|
||||
* Link to product home page. Example:
|
||||
* https://cloud.google.com/asset-inventory/docs/overview
|
||||
*
|
||||
* Generated from protobuf field <code>string documentation_uri = 102;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setDocumentationUri($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->documentation_uri = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Used as a tracking tag when collecting data about the APIs developer
|
||||
* relations artifacts like docs, packages delivered to package managers,
|
||||
* etc. Example: "speech".
|
||||
*
|
||||
* Generated from protobuf field <code>string api_short_name = 103;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getApiShortName()
|
||||
{
|
||||
return $this->api_short_name;
|
||||
}
|
||||
/**
|
||||
* Used as a tracking tag when collecting data about the APIs developer
|
||||
* relations artifacts like docs, packages delivered to package managers,
|
||||
* etc. Example: "speech".
|
||||
*
|
||||
* Generated from protobuf field <code>string api_short_name = 103;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setApiShortName($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->api_short_name = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* GitHub label to apply to issues and pull requests opened for this API.
|
||||
*
|
||||
* Generated from protobuf field <code>string github_label = 104;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getGithubLabel()
|
||||
{
|
||||
return $this->github_label;
|
||||
}
|
||||
/**
|
||||
* GitHub label to apply to issues and pull requests opened for this API.
|
||||
*
|
||||
* Generated from protobuf field <code>string github_label = 104;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setGithubLabel($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->github_label = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* GitHub teams to be added to CODEOWNERS in the directory in GitHub
|
||||
* containing source code for the client libraries for this API.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated string codeowner_github_teams = 105;</code>
|
||||
* @return \Google\Protobuf\Internal\RepeatedField
|
||||
*/
|
||||
public function getCodeownerGithubTeams()
|
||||
{
|
||||
return $this->codeowner_github_teams;
|
||||
}
|
||||
/**
|
||||
* GitHub teams to be added to CODEOWNERS in the directory in GitHub
|
||||
* containing source code for the client libraries for this API.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated string codeowner_github_teams = 105;</code>
|
||||
* @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setCodeownerGithubTeams($var)
|
||||
{
|
||||
$arr = GPBUtil::checkRepeatedField($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::STRING);
|
||||
$this->codeowner_github_teams = $arr;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* A prefix used in sample code when demarking regions to be included in
|
||||
* documentation.
|
||||
*
|
||||
* Generated from protobuf field <code>string doc_tag_prefix = 106;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getDocTagPrefix()
|
||||
{
|
||||
return $this->doc_tag_prefix;
|
||||
}
|
||||
/**
|
||||
* A prefix used in sample code when demarking regions to be included in
|
||||
* documentation.
|
||||
*
|
||||
* Generated from protobuf field <code>string doc_tag_prefix = 106;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setDocTagPrefix($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->doc_tag_prefix = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* For whom the client library is being published.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.ClientLibraryOrganization organization = 107;</code>
|
||||
* @return int
|
||||
*/
|
||||
public function getOrganization()
|
||||
{
|
||||
return $this->organization;
|
||||
}
|
||||
/**
|
||||
* For whom the client library is being published.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.ClientLibraryOrganization organization = 107;</code>
|
||||
* @param int $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setOrganization($var)
|
||||
{
|
||||
GPBUtil::checkEnum($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\ClientLibraryOrganization::class);
|
||||
$this->organization = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Client library settings. If the same version string appears multiple
|
||||
* times in this list, then the last one wins. Settings from earlier
|
||||
* settings with the same version string are discarded.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.ClientLibrarySettings library_settings = 109;</code>
|
||||
* @return \Google\Protobuf\Internal\RepeatedField
|
||||
*/
|
||||
public function getLibrarySettings()
|
||||
{
|
||||
return $this->library_settings;
|
||||
}
|
||||
/**
|
||||
* Client library settings. If the same version string appears multiple
|
||||
* times in this list, then the last one wins. Settings from earlier
|
||||
* settings with the same version string are discarded.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.ClientLibrarySettings library_settings = 109;</code>
|
||||
* @param array<\Google\Api\ClientLibrarySettings>|\Google\Protobuf\Internal\RepeatedField $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setLibrarySettings($var)
|
||||
{
|
||||
$arr = GPBUtil::checkRepeatedField($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::MESSAGE, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\ClientLibrarySettings::class);
|
||||
$this->library_settings = $arr;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Optional link to proto reference documentation. Example:
|
||||
* https://cloud.google.com/pubsub/lite/docs/reference/rpc
|
||||
*
|
||||
* Generated from protobuf field <code>string proto_reference_documentation_uri = 110;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getProtoReferenceDocumentationUri()
|
||||
{
|
||||
return $this->proto_reference_documentation_uri;
|
||||
}
|
||||
/**
|
||||
* Optional link to proto reference documentation. Example:
|
||||
* https://cloud.google.com/pubsub/lite/docs/reference/rpc
|
||||
*
|
||||
* Generated from protobuf field <code>string proto_reference_documentation_uri = 110;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setProtoReferenceDocumentationUri($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->proto_reference_documentation_uri = $var;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
69
vendor/Gcp/google/common-protos/src/Api/PythonSettings.php
vendored
Normal file
69
vendor/Gcp/google/common-protos/src/Api/PythonSettings.php
vendored
Normal file
@@ -0,0 +1,69 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/client.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* Settings for Python client libraries.
|
||||
*
|
||||
* Generated from protobuf message <code>google.api.PythonSettings</code>
|
||||
*/
|
||||
class PythonSettings extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* Some settings.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.CommonLanguageSettings common = 1;</code>
|
||||
*/
|
||||
protected $common = null;
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type \Google\Api\CommonLanguageSettings $common
|
||||
* Some settings.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Api\Client::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* Some settings.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.CommonLanguageSettings common = 1;</code>
|
||||
* @return \Google\Api\CommonLanguageSettings|null
|
||||
*/
|
||||
public function getCommon()
|
||||
{
|
||||
return $this->common;
|
||||
}
|
||||
public function hasCommon()
|
||||
{
|
||||
return isset($this->common);
|
||||
}
|
||||
public function clearCommon()
|
||||
{
|
||||
unset($this->common);
|
||||
}
|
||||
/**
|
||||
* Some settings.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.CommonLanguageSettings common = 1;</code>
|
||||
* @param \Google\Api\CommonLanguageSettings $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setCommon($var)
|
||||
{
|
||||
GPBUtil::checkMessage($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\CommonLanguageSettings::class);
|
||||
$this->common = $var;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
135
vendor/Gcp/google/common-protos/src/Api/Quota.php
vendored
Normal file
135
vendor/Gcp/google/common-protos/src/Api/Quota.php
vendored
Normal file
@@ -0,0 +1,135 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/quota.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* Quota configuration helps to achieve fairness and budgeting in service
|
||||
* usage.
|
||||
* The metric based quota configuration works this way:
|
||||
* - The service configuration defines a set of metrics.
|
||||
* - For API calls, the quota.metric_rules maps methods to metrics with
|
||||
* corresponding costs.
|
||||
* - The quota.limits defines limits on the metrics, which will be used for
|
||||
* quota checks at runtime.
|
||||
* An example quota configuration in yaml format:
|
||||
* quota:
|
||||
* limits:
|
||||
* - name: apiWriteQpsPerProject
|
||||
* metric: library.googleapis.com/write_calls
|
||||
* unit: "1/min/{project}" # rate limit for consumer projects
|
||||
* values:
|
||||
* STANDARD: 10000
|
||||
* (The metric rules bind all methods to the read_calls metric,
|
||||
* except for the UpdateBook and DeleteBook methods. These two methods
|
||||
* are mapped to the write_calls metric, with the UpdateBook method
|
||||
* consuming at twice rate as the DeleteBook method.)
|
||||
* metric_rules:
|
||||
* - selector: "*"
|
||||
* metric_costs:
|
||||
* library.googleapis.com/read_calls: 1
|
||||
* - selector: google.example.library.v1.LibraryService.UpdateBook
|
||||
* metric_costs:
|
||||
* library.googleapis.com/write_calls: 2
|
||||
* - selector: google.example.library.v1.LibraryService.DeleteBook
|
||||
* metric_costs:
|
||||
* library.googleapis.com/write_calls: 1
|
||||
* Corresponding Metric definition:
|
||||
* metrics:
|
||||
* - name: library.googleapis.com/read_calls
|
||||
* display_name: Read requests
|
||||
* metric_kind: DELTA
|
||||
* value_type: INT64
|
||||
* - name: library.googleapis.com/write_calls
|
||||
* display_name: Write requests
|
||||
* metric_kind: DELTA
|
||||
* value_type: INT64
|
||||
*
|
||||
* Generated from protobuf message <code>google.api.Quota</code>
|
||||
*/
|
||||
class Quota extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* List of QuotaLimit definitions for the service.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.QuotaLimit limits = 3;</code>
|
||||
*/
|
||||
private $limits;
|
||||
/**
|
||||
* List of MetricRule definitions, each one mapping a selected method to one
|
||||
* or more metrics.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.MetricRule metric_rules = 4;</code>
|
||||
*/
|
||||
private $metric_rules;
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type array<\Google\Api\QuotaLimit>|\Google\Protobuf\Internal\RepeatedField $limits
|
||||
* List of QuotaLimit definitions for the service.
|
||||
* @type array<\Google\Api\MetricRule>|\Google\Protobuf\Internal\RepeatedField $metric_rules
|
||||
* List of MetricRule definitions, each one mapping a selected method to one
|
||||
* or more metrics.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Api\Quota::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* List of QuotaLimit definitions for the service.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.QuotaLimit limits = 3;</code>
|
||||
* @return \Google\Protobuf\Internal\RepeatedField
|
||||
*/
|
||||
public function getLimits()
|
||||
{
|
||||
return $this->limits;
|
||||
}
|
||||
/**
|
||||
* List of QuotaLimit definitions for the service.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.QuotaLimit limits = 3;</code>
|
||||
* @param array<\Google\Api\QuotaLimit>|\Google\Protobuf\Internal\RepeatedField $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setLimits($var)
|
||||
{
|
||||
$arr = GPBUtil::checkRepeatedField($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::MESSAGE, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\QuotaLimit::class);
|
||||
$this->limits = $arr;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* List of MetricRule definitions, each one mapping a selected method to one
|
||||
* or more metrics.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.MetricRule metric_rules = 4;</code>
|
||||
* @return \Google\Protobuf\Internal\RepeatedField
|
||||
*/
|
||||
public function getMetricRules()
|
||||
{
|
||||
return $this->metric_rules;
|
||||
}
|
||||
/**
|
||||
* List of MetricRule definitions, each one mapping a selected method to one
|
||||
* or more metrics.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.MetricRule metric_rules = 4;</code>
|
||||
* @param array<\Google\Api\MetricRule>|\Google\Protobuf\Internal\RepeatedField $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setMetricRules($var)
|
||||
{
|
||||
$arr = GPBUtil::checkRepeatedField($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::MESSAGE, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\MetricRule::class);
|
||||
$this->metric_rules = $arr;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
494
vendor/Gcp/google/common-protos/src/Api/QuotaLimit.php
vendored
Normal file
494
vendor/Gcp/google/common-protos/src/Api/QuotaLimit.php
vendored
Normal file
@@ -0,0 +1,494 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/quota.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* `QuotaLimit` defines a specific limit that applies over a specified duration
|
||||
* for a limit type. There can be at most one limit for a duration and limit
|
||||
* type combination defined within a `QuotaGroup`.
|
||||
*
|
||||
* Generated from protobuf message <code>google.api.QuotaLimit</code>
|
||||
*/
|
||||
class QuotaLimit extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* Name of the quota limit.
|
||||
* The name must be provided, and it must be unique within the service. The
|
||||
* name can only include alphanumeric characters as well as '-'.
|
||||
* The maximum length of the limit name is 64 characters.
|
||||
*
|
||||
* Generated from protobuf field <code>string name = 6;</code>
|
||||
*/
|
||||
protected $name = '';
|
||||
/**
|
||||
* Optional. User-visible, extended description for this quota limit.
|
||||
* Should be used only when more context is needed to understand this limit
|
||||
* than provided by the limit's display name (see: `display_name`).
|
||||
*
|
||||
* Generated from protobuf field <code>string description = 2;</code>
|
||||
*/
|
||||
protected $description = '';
|
||||
/**
|
||||
* Default number of tokens that can be consumed during the specified
|
||||
* duration. This is the number of tokens assigned when a client
|
||||
* application developer activates the service for his/her project.
|
||||
* Specifying a value of 0 will block all requests. This can be used if you
|
||||
* are provisioning quota to selected consumers and blocking others.
|
||||
* Similarly, a value of -1 will indicate an unlimited quota. No other
|
||||
* negative values are allowed.
|
||||
* Used by group-based quotas only.
|
||||
*
|
||||
* Generated from protobuf field <code>int64 default_limit = 3;</code>
|
||||
*/
|
||||
protected $default_limit = 0;
|
||||
/**
|
||||
* Maximum number of tokens that can be consumed during the specified
|
||||
* duration. Client application developers can override the default limit up
|
||||
* to this maximum. If specified, this value cannot be set to a value less
|
||||
* than the default limit. If not specified, it is set to the default limit.
|
||||
* To allow clients to apply overrides with no upper bound, set this to -1,
|
||||
* indicating unlimited maximum quota.
|
||||
* Used by group-based quotas only.
|
||||
*
|
||||
* Generated from protobuf field <code>int64 max_limit = 4;</code>
|
||||
*/
|
||||
protected $max_limit = 0;
|
||||
/**
|
||||
* Free tier value displayed in the Developers Console for this limit.
|
||||
* The free tier is the number of tokens that will be subtracted from the
|
||||
* billed amount when billing is enabled.
|
||||
* This field can only be set on a limit with duration "1d", in a billable
|
||||
* group; it is invalid on any other limit. If this field is not set, it
|
||||
* defaults to 0, indicating that there is no free tier for this service.
|
||||
* Used by group-based quotas only.
|
||||
*
|
||||
* Generated from protobuf field <code>int64 free_tier = 7;</code>
|
||||
*/
|
||||
protected $free_tier = 0;
|
||||
/**
|
||||
* Duration of this limit in textual notation. Must be "100s" or "1d".
|
||||
* Used by group-based quotas only.
|
||||
*
|
||||
* Generated from protobuf field <code>string duration = 5;</code>
|
||||
*/
|
||||
protected $duration = '';
|
||||
/**
|
||||
* The name of the metric this quota limit applies to. The quota limits with
|
||||
* the same metric will be checked together during runtime. The metric must be
|
||||
* defined within the service config.
|
||||
*
|
||||
* Generated from protobuf field <code>string metric = 8;</code>
|
||||
*/
|
||||
protected $metric = '';
|
||||
/**
|
||||
* Specify the unit of the quota limit. It uses the same syntax as
|
||||
* [Metric.unit][]. The supported unit kinds are determined by the quota
|
||||
* backend system.
|
||||
* Here are some examples:
|
||||
* * "1/min/{project}" for quota per minute per project.
|
||||
* Note: the order of unit components is insignificant.
|
||||
* The "1" at the beginning is required to follow the metric unit syntax.
|
||||
*
|
||||
* Generated from protobuf field <code>string unit = 9;</code>
|
||||
*/
|
||||
protected $unit = '';
|
||||
/**
|
||||
* Tiered limit values. You must specify this as a key:value pair, with an
|
||||
* integer value that is the maximum number of requests allowed for the
|
||||
* specified unit. Currently only STANDARD is supported.
|
||||
*
|
||||
* Generated from protobuf field <code>map<string, int64> values = 10;</code>
|
||||
*/
|
||||
private $values;
|
||||
/**
|
||||
* User-visible display name for this limit.
|
||||
* Optional. If not set, the UI will provide a default display name based on
|
||||
* the quota configuration. This field can be used to override the default
|
||||
* display name generated from the configuration.
|
||||
*
|
||||
* Generated from protobuf field <code>string display_name = 12;</code>
|
||||
*/
|
||||
protected $display_name = '';
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type string $name
|
||||
* Name of the quota limit.
|
||||
* The name must be provided, and it must be unique within the service. The
|
||||
* name can only include alphanumeric characters as well as '-'.
|
||||
* The maximum length of the limit name is 64 characters.
|
||||
* @type string $description
|
||||
* Optional. User-visible, extended description for this quota limit.
|
||||
* Should be used only when more context is needed to understand this limit
|
||||
* than provided by the limit's display name (see: `display_name`).
|
||||
* @type int|string $default_limit
|
||||
* Default number of tokens that can be consumed during the specified
|
||||
* duration. This is the number of tokens assigned when a client
|
||||
* application developer activates the service for his/her project.
|
||||
* Specifying a value of 0 will block all requests. This can be used if you
|
||||
* are provisioning quota to selected consumers and blocking others.
|
||||
* Similarly, a value of -1 will indicate an unlimited quota. No other
|
||||
* negative values are allowed.
|
||||
* Used by group-based quotas only.
|
||||
* @type int|string $max_limit
|
||||
* Maximum number of tokens that can be consumed during the specified
|
||||
* duration. Client application developers can override the default limit up
|
||||
* to this maximum. If specified, this value cannot be set to a value less
|
||||
* than the default limit. If not specified, it is set to the default limit.
|
||||
* To allow clients to apply overrides with no upper bound, set this to -1,
|
||||
* indicating unlimited maximum quota.
|
||||
* Used by group-based quotas only.
|
||||
* @type int|string $free_tier
|
||||
* Free tier value displayed in the Developers Console for this limit.
|
||||
* The free tier is the number of tokens that will be subtracted from the
|
||||
* billed amount when billing is enabled.
|
||||
* This field can only be set on a limit with duration "1d", in a billable
|
||||
* group; it is invalid on any other limit. If this field is not set, it
|
||||
* defaults to 0, indicating that there is no free tier for this service.
|
||||
* Used by group-based quotas only.
|
||||
* @type string $duration
|
||||
* Duration of this limit in textual notation. Must be "100s" or "1d".
|
||||
* Used by group-based quotas only.
|
||||
* @type string $metric
|
||||
* The name of the metric this quota limit applies to. The quota limits with
|
||||
* the same metric will be checked together during runtime. The metric must be
|
||||
* defined within the service config.
|
||||
* @type string $unit
|
||||
* Specify the unit of the quota limit. It uses the same syntax as
|
||||
* [Metric.unit][]. The supported unit kinds are determined by the quota
|
||||
* backend system.
|
||||
* Here are some examples:
|
||||
* * "1/min/{project}" for quota per minute per project.
|
||||
* Note: the order of unit components is insignificant.
|
||||
* The "1" at the beginning is required to follow the metric unit syntax.
|
||||
* @type array|\Google\Protobuf\Internal\MapField $values
|
||||
* Tiered limit values. You must specify this as a key:value pair, with an
|
||||
* integer value that is the maximum number of requests allowed for the
|
||||
* specified unit. Currently only STANDARD is supported.
|
||||
* @type string $display_name
|
||||
* User-visible display name for this limit.
|
||||
* Optional. If not set, the UI will provide a default display name based on
|
||||
* the quota configuration. This field can be used to override the default
|
||||
* display name generated from the configuration.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Api\Quota::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* Name of the quota limit.
|
||||
* The name must be provided, and it must be unique within the service. The
|
||||
* name can only include alphanumeric characters as well as '-'.
|
||||
* The maximum length of the limit name is 64 characters.
|
||||
*
|
||||
* Generated from protobuf field <code>string name = 6;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getName()
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
/**
|
||||
* Name of the quota limit.
|
||||
* The name must be provided, and it must be unique within the service. The
|
||||
* name can only include alphanumeric characters as well as '-'.
|
||||
* The maximum length of the limit name is 64 characters.
|
||||
*
|
||||
* Generated from protobuf field <code>string name = 6;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setName($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->name = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Optional. User-visible, extended description for this quota limit.
|
||||
* Should be used only when more context is needed to understand this limit
|
||||
* than provided by the limit's display name (see: `display_name`).
|
||||
*
|
||||
* Generated from protobuf field <code>string description = 2;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getDescription()
|
||||
{
|
||||
return $this->description;
|
||||
}
|
||||
/**
|
||||
* Optional. User-visible, extended description for this quota limit.
|
||||
* Should be used only when more context is needed to understand this limit
|
||||
* than provided by the limit's display name (see: `display_name`).
|
||||
*
|
||||
* Generated from protobuf field <code>string description = 2;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setDescription($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->description = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Default number of tokens that can be consumed during the specified
|
||||
* duration. This is the number of tokens assigned when a client
|
||||
* application developer activates the service for his/her project.
|
||||
* Specifying a value of 0 will block all requests. This can be used if you
|
||||
* are provisioning quota to selected consumers and blocking others.
|
||||
* Similarly, a value of -1 will indicate an unlimited quota. No other
|
||||
* negative values are allowed.
|
||||
* Used by group-based quotas only.
|
||||
*
|
||||
* Generated from protobuf field <code>int64 default_limit = 3;</code>
|
||||
* @return int|string
|
||||
*/
|
||||
public function getDefaultLimit()
|
||||
{
|
||||
return $this->default_limit;
|
||||
}
|
||||
/**
|
||||
* Default number of tokens that can be consumed during the specified
|
||||
* duration. This is the number of tokens assigned when a client
|
||||
* application developer activates the service for his/her project.
|
||||
* Specifying a value of 0 will block all requests. This can be used if you
|
||||
* are provisioning quota to selected consumers and blocking others.
|
||||
* Similarly, a value of -1 will indicate an unlimited quota. No other
|
||||
* negative values are allowed.
|
||||
* Used by group-based quotas only.
|
||||
*
|
||||
* Generated from protobuf field <code>int64 default_limit = 3;</code>
|
||||
* @param int|string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setDefaultLimit($var)
|
||||
{
|
||||
GPBUtil::checkInt64($var);
|
||||
$this->default_limit = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Maximum number of tokens that can be consumed during the specified
|
||||
* duration. Client application developers can override the default limit up
|
||||
* to this maximum. If specified, this value cannot be set to a value less
|
||||
* than the default limit. If not specified, it is set to the default limit.
|
||||
* To allow clients to apply overrides with no upper bound, set this to -1,
|
||||
* indicating unlimited maximum quota.
|
||||
* Used by group-based quotas only.
|
||||
*
|
||||
* Generated from protobuf field <code>int64 max_limit = 4;</code>
|
||||
* @return int|string
|
||||
*/
|
||||
public function getMaxLimit()
|
||||
{
|
||||
return $this->max_limit;
|
||||
}
|
||||
/**
|
||||
* Maximum number of tokens that can be consumed during the specified
|
||||
* duration. Client application developers can override the default limit up
|
||||
* to this maximum. If specified, this value cannot be set to a value less
|
||||
* than the default limit. If not specified, it is set to the default limit.
|
||||
* To allow clients to apply overrides with no upper bound, set this to -1,
|
||||
* indicating unlimited maximum quota.
|
||||
* Used by group-based quotas only.
|
||||
*
|
||||
* Generated from protobuf field <code>int64 max_limit = 4;</code>
|
||||
* @param int|string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setMaxLimit($var)
|
||||
{
|
||||
GPBUtil::checkInt64($var);
|
||||
$this->max_limit = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Free tier value displayed in the Developers Console for this limit.
|
||||
* The free tier is the number of tokens that will be subtracted from the
|
||||
* billed amount when billing is enabled.
|
||||
* This field can only be set on a limit with duration "1d", in a billable
|
||||
* group; it is invalid on any other limit. If this field is not set, it
|
||||
* defaults to 0, indicating that there is no free tier for this service.
|
||||
* Used by group-based quotas only.
|
||||
*
|
||||
* Generated from protobuf field <code>int64 free_tier = 7;</code>
|
||||
* @return int|string
|
||||
*/
|
||||
public function getFreeTier()
|
||||
{
|
||||
return $this->free_tier;
|
||||
}
|
||||
/**
|
||||
* Free tier value displayed in the Developers Console for this limit.
|
||||
* The free tier is the number of tokens that will be subtracted from the
|
||||
* billed amount when billing is enabled.
|
||||
* This field can only be set on a limit with duration "1d", in a billable
|
||||
* group; it is invalid on any other limit. If this field is not set, it
|
||||
* defaults to 0, indicating that there is no free tier for this service.
|
||||
* Used by group-based quotas only.
|
||||
*
|
||||
* Generated from protobuf field <code>int64 free_tier = 7;</code>
|
||||
* @param int|string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setFreeTier($var)
|
||||
{
|
||||
GPBUtil::checkInt64($var);
|
||||
$this->free_tier = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Duration of this limit in textual notation. Must be "100s" or "1d".
|
||||
* Used by group-based quotas only.
|
||||
*
|
||||
* Generated from protobuf field <code>string duration = 5;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getDuration()
|
||||
{
|
||||
return $this->duration;
|
||||
}
|
||||
/**
|
||||
* Duration of this limit in textual notation. Must be "100s" or "1d".
|
||||
* Used by group-based quotas only.
|
||||
*
|
||||
* Generated from protobuf field <code>string duration = 5;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setDuration($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->duration = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* The name of the metric this quota limit applies to. The quota limits with
|
||||
* the same metric will be checked together during runtime. The metric must be
|
||||
* defined within the service config.
|
||||
*
|
||||
* Generated from protobuf field <code>string metric = 8;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getMetric()
|
||||
{
|
||||
return $this->metric;
|
||||
}
|
||||
/**
|
||||
* The name of the metric this quota limit applies to. The quota limits with
|
||||
* the same metric will be checked together during runtime. The metric must be
|
||||
* defined within the service config.
|
||||
*
|
||||
* Generated from protobuf field <code>string metric = 8;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setMetric($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->metric = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Specify the unit of the quota limit. It uses the same syntax as
|
||||
* [Metric.unit][]. The supported unit kinds are determined by the quota
|
||||
* backend system.
|
||||
* Here are some examples:
|
||||
* * "1/min/{project}" for quota per minute per project.
|
||||
* Note: the order of unit components is insignificant.
|
||||
* The "1" at the beginning is required to follow the metric unit syntax.
|
||||
*
|
||||
* Generated from protobuf field <code>string unit = 9;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getUnit()
|
||||
{
|
||||
return $this->unit;
|
||||
}
|
||||
/**
|
||||
* Specify the unit of the quota limit. It uses the same syntax as
|
||||
* [Metric.unit][]. The supported unit kinds are determined by the quota
|
||||
* backend system.
|
||||
* Here are some examples:
|
||||
* * "1/min/{project}" for quota per minute per project.
|
||||
* Note: the order of unit components is insignificant.
|
||||
* The "1" at the beginning is required to follow the metric unit syntax.
|
||||
*
|
||||
* Generated from protobuf field <code>string unit = 9;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setUnit($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->unit = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Tiered limit values. You must specify this as a key:value pair, with an
|
||||
* integer value that is the maximum number of requests allowed for the
|
||||
* specified unit. Currently only STANDARD is supported.
|
||||
*
|
||||
* Generated from protobuf field <code>map<string, int64> values = 10;</code>
|
||||
* @return \Google\Protobuf\Internal\MapField
|
||||
*/
|
||||
public function getValues()
|
||||
{
|
||||
return $this->values;
|
||||
}
|
||||
/**
|
||||
* Tiered limit values. You must specify this as a key:value pair, with an
|
||||
* integer value that is the maximum number of requests allowed for the
|
||||
* specified unit. Currently only STANDARD is supported.
|
||||
*
|
||||
* Generated from protobuf field <code>map<string, int64> values = 10;</code>
|
||||
* @param array|\Google\Protobuf\Internal\MapField $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setValues($var)
|
||||
{
|
||||
$arr = GPBUtil::checkMapField($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::STRING, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::INT64);
|
||||
$this->values = $arr;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* User-visible display name for this limit.
|
||||
* Optional. If not set, the UI will provide a default display name based on
|
||||
* the quota configuration. This field can be used to override the default
|
||||
* display name generated from the configuration.
|
||||
*
|
||||
* Generated from protobuf field <code>string display_name = 12;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getDisplayName()
|
||||
{
|
||||
return $this->display_name;
|
||||
}
|
||||
/**
|
||||
* User-visible display name for this limit.
|
||||
* Optional. If not set, the UI will provide a default display name based on
|
||||
* the quota configuration. This field can be used to override the default
|
||||
* display name generated from the configuration.
|
||||
*
|
||||
* Generated from protobuf field <code>string display_name = 12;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setDisplayName($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->display_name = $var;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
455
vendor/Gcp/google/common-protos/src/Api/ResourceDescriptor.php
vendored
Normal file
455
vendor/Gcp/google/common-protos/src/Api/ResourceDescriptor.php
vendored
Normal file
@@ -0,0 +1,455 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/resource.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* A simple descriptor of a resource type.
|
||||
* ResourceDescriptor annotates a resource message (either by means of a
|
||||
* protobuf annotation or use in the service config), and associates the
|
||||
* resource's schema, the resource type, and the pattern of the resource name.
|
||||
* Example:
|
||||
* message Topic {
|
||||
* // Indicates this message defines a resource schema.
|
||||
* // Declares the resource type in the format of {service}/{kind}.
|
||||
* // For Kubernetes resources, the format is {api group}/{kind}.
|
||||
* option (google.api.resource) = {
|
||||
* type: "pubsub.googleapis.com/Topic"
|
||||
* pattern: "projects/{project}/topics/{topic}"
|
||||
* };
|
||||
* }
|
||||
* The ResourceDescriptor Yaml config will look like:
|
||||
* resources:
|
||||
* - type: "pubsub.googleapis.com/Topic"
|
||||
* pattern: "projects/{project}/topics/{topic}"
|
||||
* Sometimes, resources have multiple patterns, typically because they can
|
||||
* live under multiple parents.
|
||||
* Example:
|
||||
* message LogEntry {
|
||||
* option (google.api.resource) = {
|
||||
* type: "logging.googleapis.com/LogEntry"
|
||||
* pattern: "projects/{project}/logs/{log}"
|
||||
* pattern: "folders/{folder}/logs/{log}"
|
||||
* pattern: "organizations/{organization}/logs/{log}"
|
||||
* pattern: "billingAccounts/{billing_account}/logs/{log}"
|
||||
* };
|
||||
* }
|
||||
* The ResourceDescriptor Yaml config will look like:
|
||||
* resources:
|
||||
* - type: 'logging.googleapis.com/LogEntry'
|
||||
* pattern: "projects/{project}/logs/{log}"
|
||||
* pattern: "folders/{folder}/logs/{log}"
|
||||
* pattern: "organizations/{organization}/logs/{log}"
|
||||
* pattern: "billingAccounts/{billing_account}/logs/{log}"
|
||||
*
|
||||
* Generated from protobuf message <code>google.api.ResourceDescriptor</code>
|
||||
*/
|
||||
class ResourceDescriptor extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* The resource type. It must be in the format of
|
||||
* {service_name}/{resource_type_kind}. The `resource_type_kind` must be
|
||||
* singular and must not include version numbers.
|
||||
* Example: `storage.googleapis.com/Bucket`
|
||||
* The value of the resource_type_kind must follow the regular expression
|
||||
* /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and
|
||||
* should use PascalCase (UpperCamelCase). The maximum number of
|
||||
* characters allowed for the `resource_type_kind` is 100.
|
||||
*
|
||||
* Generated from protobuf field <code>string type = 1;</code>
|
||||
*/
|
||||
protected $type = '';
|
||||
/**
|
||||
* Optional. The relative resource name pattern associated with this resource
|
||||
* type. The DNS prefix of the full resource name shouldn't be specified here.
|
||||
* The path pattern must follow the syntax, which aligns with HTTP binding
|
||||
* syntax:
|
||||
* Template = Segment { "/" Segment } ;
|
||||
* Segment = LITERAL | Variable ;
|
||||
* Variable = "{" LITERAL "}" ;
|
||||
* Examples:
|
||||
* - "projects/{project}/topics/{topic}"
|
||||
* - "projects/{project}/knowledgeBases/{knowledge_base}"
|
||||
* The components in braces correspond to the IDs for each resource in the
|
||||
* hierarchy. It is expected that, if multiple patterns are provided,
|
||||
* the same component name (e.g. "project") refers to IDs of the same
|
||||
* type of resource.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated string pattern = 2;</code>
|
||||
*/
|
||||
private $pattern;
|
||||
/**
|
||||
* Optional. The field on the resource that designates the resource name
|
||||
* field. If omitted, this is assumed to be "name".
|
||||
*
|
||||
* Generated from protobuf field <code>string name_field = 3;</code>
|
||||
*/
|
||||
protected $name_field = '';
|
||||
/**
|
||||
* Optional. The historical or future-looking state of the resource pattern.
|
||||
* Example:
|
||||
* // The InspectTemplate message originally only supported resource
|
||||
* // names with organization, and project was added later.
|
||||
* message InspectTemplate {
|
||||
* option (google.api.resource) = {
|
||||
* type: "dlp.googleapis.com/InspectTemplate"
|
||||
* pattern:
|
||||
* "organizations/{organization}/inspectTemplates/{inspect_template}"
|
||||
* pattern: "projects/{project}/inspectTemplates/{inspect_template}"
|
||||
* history: ORIGINALLY_SINGLE_PATTERN
|
||||
* };
|
||||
* }
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.ResourceDescriptor.History history = 4;</code>
|
||||
*/
|
||||
protected $history = 0;
|
||||
/**
|
||||
* The plural name used in the resource name and permission names, such as
|
||||
* 'projects' for the resource name of 'projects/{project}' and the permission
|
||||
* name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same
|
||||
* concept of the `plural` field in k8s CRD spec
|
||||
* https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
|
||||
* Note: The plural form is required even for singleton resources. See
|
||||
* https://aip.dev/156
|
||||
*
|
||||
* Generated from protobuf field <code>string plural = 5;</code>
|
||||
*/
|
||||
protected $plural = '';
|
||||
/**
|
||||
* The same concept of the `singular` field in k8s CRD spec
|
||||
* https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
|
||||
* Such as "project" for the `resourcemanager.googleapis.com/Project` type.
|
||||
*
|
||||
* Generated from protobuf field <code>string singular = 6;</code>
|
||||
*/
|
||||
protected $singular = '';
|
||||
/**
|
||||
* Style flag(s) for this resource.
|
||||
* These indicate that a resource is expected to conform to a given
|
||||
* style. See the specific style flags for additional information.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.ResourceDescriptor.Style style = 10;</code>
|
||||
*/
|
||||
private $style;
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type string $type
|
||||
* The resource type. It must be in the format of
|
||||
* {service_name}/{resource_type_kind}. The `resource_type_kind` must be
|
||||
* singular and must not include version numbers.
|
||||
* Example: `storage.googleapis.com/Bucket`
|
||||
* The value of the resource_type_kind must follow the regular expression
|
||||
* /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and
|
||||
* should use PascalCase (UpperCamelCase). The maximum number of
|
||||
* characters allowed for the `resource_type_kind` is 100.
|
||||
* @type array<string>|\Google\Protobuf\Internal\RepeatedField $pattern
|
||||
* Optional. The relative resource name pattern associated with this resource
|
||||
* type. The DNS prefix of the full resource name shouldn't be specified here.
|
||||
* The path pattern must follow the syntax, which aligns with HTTP binding
|
||||
* syntax:
|
||||
* Template = Segment { "/" Segment } ;
|
||||
* Segment = LITERAL | Variable ;
|
||||
* Variable = "{" LITERAL "}" ;
|
||||
* Examples:
|
||||
* - "projects/{project}/topics/{topic}"
|
||||
* - "projects/{project}/knowledgeBases/{knowledge_base}"
|
||||
* The components in braces correspond to the IDs for each resource in the
|
||||
* hierarchy. It is expected that, if multiple patterns are provided,
|
||||
* the same component name (e.g. "project") refers to IDs of the same
|
||||
* type of resource.
|
||||
* @type string $name_field
|
||||
* Optional. The field on the resource that designates the resource name
|
||||
* field. If omitted, this is assumed to be "name".
|
||||
* @type int $history
|
||||
* Optional. The historical or future-looking state of the resource pattern.
|
||||
* Example:
|
||||
* // The InspectTemplate message originally only supported resource
|
||||
* // names with organization, and project was added later.
|
||||
* message InspectTemplate {
|
||||
* option (google.api.resource) = {
|
||||
* type: "dlp.googleapis.com/InspectTemplate"
|
||||
* pattern:
|
||||
* "organizations/{organization}/inspectTemplates/{inspect_template}"
|
||||
* pattern: "projects/{project}/inspectTemplates/{inspect_template}"
|
||||
* history: ORIGINALLY_SINGLE_PATTERN
|
||||
* };
|
||||
* }
|
||||
* @type string $plural
|
||||
* The plural name used in the resource name and permission names, such as
|
||||
* 'projects' for the resource name of 'projects/{project}' and the permission
|
||||
* name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same
|
||||
* concept of the `plural` field in k8s CRD spec
|
||||
* https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
|
||||
* Note: The plural form is required even for singleton resources. See
|
||||
* https://aip.dev/156
|
||||
* @type string $singular
|
||||
* The same concept of the `singular` field in k8s CRD spec
|
||||
* https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
|
||||
* Such as "project" for the `resourcemanager.googleapis.com/Project` type.
|
||||
* @type array<int>|\Google\Protobuf\Internal\RepeatedField $style
|
||||
* Style flag(s) for this resource.
|
||||
* These indicate that a resource is expected to conform to a given
|
||||
* style. See the specific style flags for additional information.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Api\Resource::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* The resource type. It must be in the format of
|
||||
* {service_name}/{resource_type_kind}. The `resource_type_kind` must be
|
||||
* singular and must not include version numbers.
|
||||
* Example: `storage.googleapis.com/Bucket`
|
||||
* The value of the resource_type_kind must follow the regular expression
|
||||
* /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and
|
||||
* should use PascalCase (UpperCamelCase). The maximum number of
|
||||
* characters allowed for the `resource_type_kind` is 100.
|
||||
*
|
||||
* Generated from protobuf field <code>string type = 1;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getType()
|
||||
{
|
||||
return $this->type;
|
||||
}
|
||||
/**
|
||||
* The resource type. It must be in the format of
|
||||
* {service_name}/{resource_type_kind}. The `resource_type_kind` must be
|
||||
* singular and must not include version numbers.
|
||||
* Example: `storage.googleapis.com/Bucket`
|
||||
* The value of the resource_type_kind must follow the regular expression
|
||||
* /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and
|
||||
* should use PascalCase (UpperCamelCase). The maximum number of
|
||||
* characters allowed for the `resource_type_kind` is 100.
|
||||
*
|
||||
* Generated from protobuf field <code>string type = 1;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setType($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->type = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Optional. The relative resource name pattern associated with this resource
|
||||
* type. The DNS prefix of the full resource name shouldn't be specified here.
|
||||
* The path pattern must follow the syntax, which aligns with HTTP binding
|
||||
* syntax:
|
||||
* Template = Segment { "/" Segment } ;
|
||||
* Segment = LITERAL | Variable ;
|
||||
* Variable = "{" LITERAL "}" ;
|
||||
* Examples:
|
||||
* - "projects/{project}/topics/{topic}"
|
||||
* - "projects/{project}/knowledgeBases/{knowledge_base}"
|
||||
* The components in braces correspond to the IDs for each resource in the
|
||||
* hierarchy. It is expected that, if multiple patterns are provided,
|
||||
* the same component name (e.g. "project") refers to IDs of the same
|
||||
* type of resource.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated string pattern = 2;</code>
|
||||
* @return \Google\Protobuf\Internal\RepeatedField
|
||||
*/
|
||||
public function getPattern()
|
||||
{
|
||||
return $this->pattern;
|
||||
}
|
||||
/**
|
||||
* Optional. The relative resource name pattern associated with this resource
|
||||
* type. The DNS prefix of the full resource name shouldn't be specified here.
|
||||
* The path pattern must follow the syntax, which aligns with HTTP binding
|
||||
* syntax:
|
||||
* Template = Segment { "/" Segment } ;
|
||||
* Segment = LITERAL | Variable ;
|
||||
* Variable = "{" LITERAL "}" ;
|
||||
* Examples:
|
||||
* - "projects/{project}/topics/{topic}"
|
||||
* - "projects/{project}/knowledgeBases/{knowledge_base}"
|
||||
* The components in braces correspond to the IDs for each resource in the
|
||||
* hierarchy. It is expected that, if multiple patterns are provided,
|
||||
* the same component name (e.g. "project") refers to IDs of the same
|
||||
* type of resource.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated string pattern = 2;</code>
|
||||
* @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setPattern($var)
|
||||
{
|
||||
$arr = GPBUtil::checkRepeatedField($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::STRING);
|
||||
$this->pattern = $arr;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Optional. The field on the resource that designates the resource name
|
||||
* field. If omitted, this is assumed to be "name".
|
||||
*
|
||||
* Generated from protobuf field <code>string name_field = 3;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getNameField()
|
||||
{
|
||||
return $this->name_field;
|
||||
}
|
||||
/**
|
||||
* Optional. The field on the resource that designates the resource name
|
||||
* field. If omitted, this is assumed to be "name".
|
||||
*
|
||||
* Generated from protobuf field <code>string name_field = 3;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setNameField($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->name_field = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Optional. The historical or future-looking state of the resource pattern.
|
||||
* Example:
|
||||
* // The InspectTemplate message originally only supported resource
|
||||
* // names with organization, and project was added later.
|
||||
* message InspectTemplate {
|
||||
* option (google.api.resource) = {
|
||||
* type: "dlp.googleapis.com/InspectTemplate"
|
||||
* pattern:
|
||||
* "organizations/{organization}/inspectTemplates/{inspect_template}"
|
||||
* pattern: "projects/{project}/inspectTemplates/{inspect_template}"
|
||||
* history: ORIGINALLY_SINGLE_PATTERN
|
||||
* };
|
||||
* }
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.ResourceDescriptor.History history = 4;</code>
|
||||
* @return int
|
||||
*/
|
||||
public function getHistory()
|
||||
{
|
||||
return $this->history;
|
||||
}
|
||||
/**
|
||||
* Optional. The historical or future-looking state of the resource pattern.
|
||||
* Example:
|
||||
* // The InspectTemplate message originally only supported resource
|
||||
* // names with organization, and project was added later.
|
||||
* message InspectTemplate {
|
||||
* option (google.api.resource) = {
|
||||
* type: "dlp.googleapis.com/InspectTemplate"
|
||||
* pattern:
|
||||
* "organizations/{organization}/inspectTemplates/{inspect_template}"
|
||||
* pattern: "projects/{project}/inspectTemplates/{inspect_template}"
|
||||
* history: ORIGINALLY_SINGLE_PATTERN
|
||||
* };
|
||||
* }
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.ResourceDescriptor.History history = 4;</code>
|
||||
* @param int $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setHistory($var)
|
||||
{
|
||||
GPBUtil::checkEnum($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\ResourceDescriptor\History::class);
|
||||
$this->history = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* The plural name used in the resource name and permission names, such as
|
||||
* 'projects' for the resource name of 'projects/{project}' and the permission
|
||||
* name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same
|
||||
* concept of the `plural` field in k8s CRD spec
|
||||
* https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
|
||||
* Note: The plural form is required even for singleton resources. See
|
||||
* https://aip.dev/156
|
||||
*
|
||||
* Generated from protobuf field <code>string plural = 5;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getPlural()
|
||||
{
|
||||
return $this->plural;
|
||||
}
|
||||
/**
|
||||
* The plural name used in the resource name and permission names, such as
|
||||
* 'projects' for the resource name of 'projects/{project}' and the permission
|
||||
* name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same
|
||||
* concept of the `plural` field in k8s CRD spec
|
||||
* https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
|
||||
* Note: The plural form is required even for singleton resources. See
|
||||
* https://aip.dev/156
|
||||
*
|
||||
* Generated from protobuf field <code>string plural = 5;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setPlural($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->plural = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* The same concept of the `singular` field in k8s CRD spec
|
||||
* https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
|
||||
* Such as "project" for the `resourcemanager.googleapis.com/Project` type.
|
||||
*
|
||||
* Generated from protobuf field <code>string singular = 6;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getSingular()
|
||||
{
|
||||
return $this->singular;
|
||||
}
|
||||
/**
|
||||
* The same concept of the `singular` field in k8s CRD spec
|
||||
* https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
|
||||
* Such as "project" for the `resourcemanager.googleapis.com/Project` type.
|
||||
*
|
||||
* Generated from protobuf field <code>string singular = 6;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setSingular($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->singular = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Style flag(s) for this resource.
|
||||
* These indicate that a resource is expected to conform to a given
|
||||
* style. See the specific style flags for additional information.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.ResourceDescriptor.Style style = 10;</code>
|
||||
* @return \Google\Protobuf\Internal\RepeatedField
|
||||
*/
|
||||
public function getStyle()
|
||||
{
|
||||
return $this->style;
|
||||
}
|
||||
/**
|
||||
* Style flag(s) for this resource.
|
||||
* These indicate that a resource is expected to conform to a given
|
||||
* style. See the specific style flags for additional information.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.ResourceDescriptor.Style style = 10;</code>
|
||||
* @param array<int>|\Google\Protobuf\Internal\RepeatedField $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setStyle($var)
|
||||
{
|
||||
$arr = GPBUtil::checkRepeatedField($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::ENUM, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\ResourceDescriptor\Style::class);
|
||||
$this->style = $arr;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
53
vendor/Gcp/google/common-protos/src/Api/ResourceDescriptor/History.php
vendored
Normal file
53
vendor/Gcp/google/common-protos/src/Api/ResourceDescriptor/History.php
vendored
Normal file
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/resource.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\ResourceDescriptor;
|
||||
|
||||
use UnexpectedValueException;
|
||||
/**
|
||||
* A description of the historical or future-looking state of the
|
||||
* resource pattern.
|
||||
*
|
||||
* Protobuf type <code>google.api.ResourceDescriptor.History</code>
|
||||
*/
|
||||
class History
|
||||
{
|
||||
/**
|
||||
* The "unset" value.
|
||||
*
|
||||
* Generated from protobuf enum <code>HISTORY_UNSPECIFIED = 0;</code>
|
||||
*/
|
||||
const HISTORY_UNSPECIFIED = 0;
|
||||
/**
|
||||
* The resource originally had one pattern and launched as such, and
|
||||
* additional patterns were added later.
|
||||
*
|
||||
* Generated from protobuf enum <code>ORIGINALLY_SINGLE_PATTERN = 1;</code>
|
||||
*/
|
||||
const ORIGINALLY_SINGLE_PATTERN = 1;
|
||||
/**
|
||||
* The resource has one pattern, but the API owner expects to add more
|
||||
* later. (This is the inverse of ORIGINALLY_SINGLE_PATTERN, and prevents
|
||||
* that from being necessary once there are multiple patterns.)
|
||||
*
|
||||
* Generated from protobuf enum <code>FUTURE_MULTI_PATTERN = 2;</code>
|
||||
*/
|
||||
const FUTURE_MULTI_PATTERN = 2;
|
||||
private static $valueToName = [self::HISTORY_UNSPECIFIED => 'HISTORY_UNSPECIFIED', self::ORIGINALLY_SINGLE_PATTERN => 'ORIGINALLY_SINGLE_PATTERN', self::FUTURE_MULTI_PATTERN => 'FUTURE_MULTI_PATTERN'];
|
||||
public static function name($value)
|
||||
{
|
||||
if (!isset(self::$valueToName[$value])) {
|
||||
throw new UnexpectedValueException(\sprintf('Enum %s has no name defined for value %s', __CLASS__, $value));
|
||||
}
|
||||
return self::$valueToName[$value];
|
||||
}
|
||||
public static function value($name)
|
||||
{
|
||||
$const = __CLASS__ . '::' . \strtoupper($name);
|
||||
if (!\defined($const)) {
|
||||
throw new UnexpectedValueException(\sprintf('Enum %s has no value defined for name %s', __CLASS__, $name));
|
||||
}
|
||||
return \constant($const);
|
||||
}
|
||||
}
|
||||
48
vendor/Gcp/google/common-protos/src/Api/ResourceDescriptor/Style.php
vendored
Normal file
48
vendor/Gcp/google/common-protos/src/Api/ResourceDescriptor/Style.php
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/resource.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\ResourceDescriptor;
|
||||
|
||||
use UnexpectedValueException;
|
||||
/**
|
||||
* A flag representing a specific style that a resource claims to conform to.
|
||||
*
|
||||
* Protobuf type <code>google.api.ResourceDescriptor.Style</code>
|
||||
*/
|
||||
class Style
|
||||
{
|
||||
/**
|
||||
* The unspecified value. Do not use.
|
||||
*
|
||||
* Generated from protobuf enum <code>STYLE_UNSPECIFIED = 0;</code>
|
||||
*/
|
||||
const STYLE_UNSPECIFIED = 0;
|
||||
/**
|
||||
* This resource is intended to be "declarative-friendly".
|
||||
* Declarative-friendly resources must be more strictly consistent, and
|
||||
* setting this to true communicates to tools that this resource should
|
||||
* adhere to declarative-friendly expectations.
|
||||
* Note: This is used by the API linter (linter.aip.dev) to enable
|
||||
* additional checks.
|
||||
*
|
||||
* Generated from protobuf enum <code>DECLARATIVE_FRIENDLY = 1;</code>
|
||||
*/
|
||||
const DECLARATIVE_FRIENDLY = 1;
|
||||
private static $valueToName = [self::STYLE_UNSPECIFIED => 'STYLE_UNSPECIFIED', self::DECLARATIVE_FRIENDLY => 'DECLARATIVE_FRIENDLY'];
|
||||
public static function name($value)
|
||||
{
|
||||
if (!isset(self::$valueToName[$value])) {
|
||||
throw new UnexpectedValueException(\sprintf('Enum %s has no name defined for value %s', __CLASS__, $value));
|
||||
}
|
||||
return self::$valueToName[$value];
|
||||
}
|
||||
public static function value($name)
|
||||
{
|
||||
$const = __CLASS__ . '::' . \strtoupper($name);
|
||||
if (!\defined($const)) {
|
||||
throw new UnexpectedValueException(\sprintf('Enum %s has no value defined for name %s', __CLASS__, $name));
|
||||
}
|
||||
return \constant($const);
|
||||
}
|
||||
}
|
||||
181
vendor/Gcp/google/common-protos/src/Api/ResourceReference.php
vendored
Normal file
181
vendor/Gcp/google/common-protos/src/Api/ResourceReference.php
vendored
Normal file
@@ -0,0 +1,181 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/resource.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* Defines a proto annotation that describes a string field that refers to
|
||||
* an API resource.
|
||||
*
|
||||
* Generated from protobuf message <code>google.api.ResourceReference</code>
|
||||
*/
|
||||
class ResourceReference extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* The resource type that the annotated field references.
|
||||
* Example:
|
||||
* message Subscription {
|
||||
* string topic = 2 [(google.api.resource_reference) = {
|
||||
* type: "pubsub.googleapis.com/Topic"
|
||||
* }];
|
||||
* }
|
||||
* Occasionally, a field may reference an arbitrary resource. In this case,
|
||||
* APIs use the special value * in their resource reference.
|
||||
* Example:
|
||||
* message GetIamPolicyRequest {
|
||||
* string resource = 2 [(google.api.resource_reference) = {
|
||||
* type: "*"
|
||||
* }];
|
||||
* }
|
||||
*
|
||||
* Generated from protobuf field <code>string type = 1;</code>
|
||||
*/
|
||||
protected $type = '';
|
||||
/**
|
||||
* The resource type of a child collection that the annotated field
|
||||
* references. This is useful for annotating the `parent` field that
|
||||
* doesn't have a fixed resource type.
|
||||
* Example:
|
||||
* message ListLogEntriesRequest {
|
||||
* string parent = 1 [(google.api.resource_reference) = {
|
||||
* child_type: "logging.googleapis.com/LogEntry"
|
||||
* };
|
||||
* }
|
||||
*
|
||||
* Generated from protobuf field <code>string child_type = 2;</code>
|
||||
*/
|
||||
protected $child_type = '';
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type string $type
|
||||
* The resource type that the annotated field references.
|
||||
* Example:
|
||||
* message Subscription {
|
||||
* string topic = 2 [(google.api.resource_reference) = {
|
||||
* type: "pubsub.googleapis.com/Topic"
|
||||
* }];
|
||||
* }
|
||||
* Occasionally, a field may reference an arbitrary resource. In this case,
|
||||
* APIs use the special value * in their resource reference.
|
||||
* Example:
|
||||
* message GetIamPolicyRequest {
|
||||
* string resource = 2 [(google.api.resource_reference) = {
|
||||
* type: "*"
|
||||
* }];
|
||||
* }
|
||||
* @type string $child_type
|
||||
* The resource type of a child collection that the annotated field
|
||||
* references. This is useful for annotating the `parent` field that
|
||||
* doesn't have a fixed resource type.
|
||||
* Example:
|
||||
* message ListLogEntriesRequest {
|
||||
* string parent = 1 [(google.api.resource_reference) = {
|
||||
* child_type: "logging.googleapis.com/LogEntry"
|
||||
* };
|
||||
* }
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Api\Resource::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* The resource type that the annotated field references.
|
||||
* Example:
|
||||
* message Subscription {
|
||||
* string topic = 2 [(google.api.resource_reference) = {
|
||||
* type: "pubsub.googleapis.com/Topic"
|
||||
* }];
|
||||
* }
|
||||
* Occasionally, a field may reference an arbitrary resource. In this case,
|
||||
* APIs use the special value * in their resource reference.
|
||||
* Example:
|
||||
* message GetIamPolicyRequest {
|
||||
* string resource = 2 [(google.api.resource_reference) = {
|
||||
* type: "*"
|
||||
* }];
|
||||
* }
|
||||
*
|
||||
* Generated from protobuf field <code>string type = 1;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getType()
|
||||
{
|
||||
return $this->type;
|
||||
}
|
||||
/**
|
||||
* The resource type that the annotated field references.
|
||||
* Example:
|
||||
* message Subscription {
|
||||
* string topic = 2 [(google.api.resource_reference) = {
|
||||
* type: "pubsub.googleapis.com/Topic"
|
||||
* }];
|
||||
* }
|
||||
* Occasionally, a field may reference an arbitrary resource. In this case,
|
||||
* APIs use the special value * in their resource reference.
|
||||
* Example:
|
||||
* message GetIamPolicyRequest {
|
||||
* string resource = 2 [(google.api.resource_reference) = {
|
||||
* type: "*"
|
||||
* }];
|
||||
* }
|
||||
*
|
||||
* Generated from protobuf field <code>string type = 1;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setType($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->type = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* The resource type of a child collection that the annotated field
|
||||
* references. This is useful for annotating the `parent` field that
|
||||
* doesn't have a fixed resource type.
|
||||
* Example:
|
||||
* message ListLogEntriesRequest {
|
||||
* string parent = 1 [(google.api.resource_reference) = {
|
||||
* child_type: "logging.googleapis.com/LogEntry"
|
||||
* };
|
||||
* }
|
||||
*
|
||||
* Generated from protobuf field <code>string child_type = 2;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getChildType()
|
||||
{
|
||||
return $this->child_type;
|
||||
}
|
||||
/**
|
||||
* The resource type of a child collection that the annotated field
|
||||
* references. This is useful for annotating the `parent` field that
|
||||
* doesn't have a fixed resource type.
|
||||
* Example:
|
||||
* message ListLogEntriesRequest {
|
||||
* string parent = 1 [(google.api.resource_reference) = {
|
||||
* child_type: "logging.googleapis.com/LogEntry"
|
||||
* };
|
||||
* }
|
||||
*
|
||||
* Generated from protobuf field <code>string child_type = 2;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setChildType($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->child_type = $var;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
272
vendor/Gcp/google/common-protos/src/Api/RoutingParameter.php
vendored
Normal file
272
vendor/Gcp/google/common-protos/src/Api/RoutingParameter.php
vendored
Normal file
@@ -0,0 +1,272 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/routing.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* A projection from an input message to the GRPC or REST header.
|
||||
*
|
||||
* Generated from protobuf message <code>google.api.RoutingParameter</code>
|
||||
*/
|
||||
class RoutingParameter extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* A request field to extract the header key-value pair from.
|
||||
*
|
||||
* Generated from protobuf field <code>string field = 1;</code>
|
||||
*/
|
||||
protected $field = '';
|
||||
/**
|
||||
* A pattern matching the key-value field. Optional.
|
||||
* If not specified, the whole field specified in the `field` field will be
|
||||
* taken as value, and its name used as key. If specified, it MUST contain
|
||||
* exactly one named segment (along with any number of unnamed segments) The
|
||||
* pattern will be matched over the field specified in the `field` field, then
|
||||
* if the match is successful:
|
||||
* - the name of the single named segment will be used as a header name,
|
||||
* - the match value of the segment will be used as a header value;
|
||||
* if the match is NOT successful, nothing will be sent.
|
||||
* Example:
|
||||
* -- This is a field in the request message
|
||||
* | that the header value will be extracted from.
|
||||
* |
|
||||
* | -- This is the key name in the
|
||||
* | | routing header.
|
||||
* V |
|
||||
* field: "table_name" v
|
||||
* path_template: "projects/*/{table_location=instances/*}/tables/*"
|
||||
* ^ ^
|
||||
* | |
|
||||
* In the {} brackets is the pattern that -- |
|
||||
* specifies what to extract from the |
|
||||
* field as a value to be sent. |
|
||||
* |
|
||||
* The string in the field must match the whole pattern --
|
||||
* before brackets, inside brackets, after brackets.
|
||||
* When looking at this specific example, we can see that:
|
||||
* - A key-value pair with the key `table_location`
|
||||
* and the value matching `instances/*` should be added
|
||||
* to the x-goog-request-params routing header.
|
||||
* - The value is extracted from the request message's `table_name` field
|
||||
* if it matches the full pattern specified:
|
||||
* `projects/*/instances/*/tables/*`.
|
||||
* **NB:** If the `path_template` field is not provided, the key name is
|
||||
* equal to the field name, and the whole field should be sent as a value.
|
||||
* This makes the pattern for the field and the value functionally equivalent
|
||||
* to `**`, and the configuration
|
||||
* {
|
||||
* field: "table_name"
|
||||
* }
|
||||
* is a functionally equivalent shorthand to:
|
||||
* {
|
||||
* field: "table_name"
|
||||
* path_template: "{table_name=**}"
|
||||
* }
|
||||
* See Example 1 for more details.
|
||||
*
|
||||
* Generated from protobuf field <code>string path_template = 2;</code>
|
||||
*/
|
||||
protected $path_template = '';
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type string $field
|
||||
* A request field to extract the header key-value pair from.
|
||||
* @type string $path_template
|
||||
* A pattern matching the key-value field. Optional.
|
||||
* If not specified, the whole field specified in the `field` field will be
|
||||
* taken as value, and its name used as key. If specified, it MUST contain
|
||||
* exactly one named segment (along with any number of unnamed segments) The
|
||||
* pattern will be matched over the field specified in the `field` field, then
|
||||
* if the match is successful:
|
||||
* - the name of the single named segment will be used as a header name,
|
||||
* - the match value of the segment will be used as a header value;
|
||||
* if the match is NOT successful, nothing will be sent.
|
||||
* Example:
|
||||
* -- This is a field in the request message
|
||||
* | that the header value will be extracted from.
|
||||
* |
|
||||
* | -- This is the key name in the
|
||||
* | | routing header.
|
||||
* V |
|
||||
* field: "table_name" v
|
||||
* path_template: "projects/*/{table_location=instances/*}/tables/*"
|
||||
* ^ ^
|
||||
* | |
|
||||
* In the {} brackets is the pattern that -- |
|
||||
* specifies what to extract from the |
|
||||
* field as a value to be sent. |
|
||||
* |
|
||||
* The string in the field must match the whole pattern --
|
||||
* before brackets, inside brackets, after brackets.
|
||||
* When looking at this specific example, we can see that:
|
||||
* - A key-value pair with the key `table_location`
|
||||
* and the value matching `instances/*` should be added
|
||||
* to the x-goog-request-params routing header.
|
||||
* - The value is extracted from the request message's `table_name` field
|
||||
* if it matches the full pattern specified:
|
||||
* `projects/*/instances/*/tables/*`.
|
||||
* **NB:** If the `path_template` field is not provided, the key name is
|
||||
* equal to the field name, and the whole field should be sent as a value.
|
||||
* This makes the pattern for the field and the value functionally equivalent
|
||||
* to `**`, and the configuration
|
||||
* {
|
||||
* field: "table_name"
|
||||
* }
|
||||
* is a functionally equivalent shorthand to:
|
||||
* {
|
||||
* field: "table_name"
|
||||
* path_template: "{table_name=**}"
|
||||
* }
|
||||
* See Example 1 for more details.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Api\Routing::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* A request field to extract the header key-value pair from.
|
||||
*
|
||||
* Generated from protobuf field <code>string field = 1;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getField()
|
||||
{
|
||||
return $this->field;
|
||||
}
|
||||
/**
|
||||
* A request field to extract the header key-value pair from.
|
||||
*
|
||||
* Generated from protobuf field <code>string field = 1;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setField($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->field = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* A pattern matching the key-value field. Optional.
|
||||
* If not specified, the whole field specified in the `field` field will be
|
||||
* taken as value, and its name used as key. If specified, it MUST contain
|
||||
* exactly one named segment (along with any number of unnamed segments) The
|
||||
* pattern will be matched over the field specified in the `field` field, then
|
||||
* if the match is successful:
|
||||
* - the name of the single named segment will be used as a header name,
|
||||
* - the match value of the segment will be used as a header value;
|
||||
* if the match is NOT successful, nothing will be sent.
|
||||
* Example:
|
||||
* -- This is a field in the request message
|
||||
* | that the header value will be extracted from.
|
||||
* |
|
||||
* | -- This is the key name in the
|
||||
* | | routing header.
|
||||
* V |
|
||||
* field: "table_name" v
|
||||
* path_template: "projects/*/{table_location=instances/*}/tables/*"
|
||||
* ^ ^
|
||||
* | |
|
||||
* In the {} brackets is the pattern that -- |
|
||||
* specifies what to extract from the |
|
||||
* field as a value to be sent. |
|
||||
* |
|
||||
* The string in the field must match the whole pattern --
|
||||
* before brackets, inside brackets, after brackets.
|
||||
* When looking at this specific example, we can see that:
|
||||
* - A key-value pair with the key `table_location`
|
||||
* and the value matching `instances/*` should be added
|
||||
* to the x-goog-request-params routing header.
|
||||
* - The value is extracted from the request message's `table_name` field
|
||||
* if it matches the full pattern specified:
|
||||
* `projects/*/instances/*/tables/*`.
|
||||
* **NB:** If the `path_template` field is not provided, the key name is
|
||||
* equal to the field name, and the whole field should be sent as a value.
|
||||
* This makes the pattern for the field and the value functionally equivalent
|
||||
* to `**`, and the configuration
|
||||
* {
|
||||
* field: "table_name"
|
||||
* }
|
||||
* is a functionally equivalent shorthand to:
|
||||
* {
|
||||
* field: "table_name"
|
||||
* path_template: "{table_name=**}"
|
||||
* }
|
||||
* See Example 1 for more details.
|
||||
*
|
||||
* Generated from protobuf field <code>string path_template = 2;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getPathTemplate()
|
||||
{
|
||||
return $this->path_template;
|
||||
}
|
||||
/**
|
||||
* A pattern matching the key-value field. Optional.
|
||||
* If not specified, the whole field specified in the `field` field will be
|
||||
* taken as value, and its name used as key. If specified, it MUST contain
|
||||
* exactly one named segment (along with any number of unnamed segments) The
|
||||
* pattern will be matched over the field specified in the `field` field, then
|
||||
* if the match is successful:
|
||||
* - the name of the single named segment will be used as a header name,
|
||||
* - the match value of the segment will be used as a header value;
|
||||
* if the match is NOT successful, nothing will be sent.
|
||||
* Example:
|
||||
* -- This is a field in the request message
|
||||
* | that the header value will be extracted from.
|
||||
* |
|
||||
* | -- This is the key name in the
|
||||
* | | routing header.
|
||||
* V |
|
||||
* field: "table_name" v
|
||||
* path_template: "projects/*/{table_location=instances/*}/tables/*"
|
||||
* ^ ^
|
||||
* | |
|
||||
* In the {} brackets is the pattern that -- |
|
||||
* specifies what to extract from the |
|
||||
* field as a value to be sent. |
|
||||
* |
|
||||
* The string in the field must match the whole pattern --
|
||||
* before brackets, inside brackets, after brackets.
|
||||
* When looking at this specific example, we can see that:
|
||||
* - A key-value pair with the key `table_location`
|
||||
* and the value matching `instances/*` should be added
|
||||
* to the x-goog-request-params routing header.
|
||||
* - The value is extracted from the request message's `table_name` field
|
||||
* if it matches the full pattern specified:
|
||||
* `projects/*/instances/*/tables/*`.
|
||||
* **NB:** If the `path_template` field is not provided, the key name is
|
||||
* equal to the field name, and the whole field should be sent as a value.
|
||||
* This makes the pattern for the field and the value functionally equivalent
|
||||
* to `**`, and the configuration
|
||||
* {
|
||||
* field: "table_name"
|
||||
* }
|
||||
* is a functionally equivalent shorthand to:
|
||||
* {
|
||||
* field: "table_name"
|
||||
* path_template: "{table_name=**}"
|
||||
* }
|
||||
* See Example 1 for more details.
|
||||
*
|
||||
* Generated from protobuf field <code>string path_template = 2;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setPathTemplate($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->path_template = $var;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
347
vendor/Gcp/google/common-protos/src/Api/RoutingRule.php
vendored
Normal file
347
vendor/Gcp/google/common-protos/src/Api/RoutingRule.php
vendored
Normal file
@@ -0,0 +1,347 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/routing.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* Specifies the routing information that should be sent along with the request
|
||||
* in the form of routing header.
|
||||
* **NOTE:** All service configuration rules follow the "last one wins" order.
|
||||
* The examples below will apply to an RPC which has the following request type:
|
||||
* Message Definition:
|
||||
* message Request {
|
||||
* // The name of the Table
|
||||
* // Values can be of the following formats:
|
||||
* // - `projects/<project>/tables/<table>`
|
||||
* // - `projects/<project>/instances/<instance>/tables/<table>`
|
||||
* // - `region/<region>/zones/<zone>/tables/<table>`
|
||||
* string table_name = 1;
|
||||
* // This value specifies routing for replication.
|
||||
* // It can be in the following formats:
|
||||
* // - `profiles/<profile_id>`
|
||||
* // - a legacy `profile_id` that can be any string
|
||||
* string app_profile_id = 2;
|
||||
* }
|
||||
* Example message:
|
||||
* {
|
||||
* table_name: projects/proj_foo/instances/instance_bar/table/table_baz,
|
||||
* app_profile_id: profiles/prof_qux
|
||||
* }
|
||||
* The routing header consists of one or multiple key-value pairs. Every key
|
||||
* and value must be percent-encoded, and joined together in the format of
|
||||
* `key1=value1&key2=value2`.
|
||||
* In the examples below I am skipping the percent-encoding for readablity.
|
||||
* Example 1
|
||||
* Extracting a field from the request to put into the routing header
|
||||
* unchanged, with the key equal to the field name.
|
||||
* annotation:
|
||||
* option (google.api.routing) = {
|
||||
* // Take the `app_profile_id`.
|
||||
* routing_parameters {
|
||||
* field: "app_profile_id"
|
||||
* }
|
||||
* };
|
||||
* result:
|
||||
* x-goog-request-params: app_profile_id=profiles/prof_qux
|
||||
* Example 2
|
||||
* Extracting a field from the request to put into the routing header
|
||||
* unchanged, with the key different from the field name.
|
||||
* annotation:
|
||||
* option (google.api.routing) = {
|
||||
* // Take the `app_profile_id`, but name it `routing_id` in the header.
|
||||
* routing_parameters {
|
||||
* field: "app_profile_id"
|
||||
* path_template: "{routing_id=**}"
|
||||
* }
|
||||
* };
|
||||
* result:
|
||||
* x-goog-request-params: routing_id=profiles/prof_qux
|
||||
* Example 3
|
||||
* Extracting a field from the request to put into the routing
|
||||
* header, while matching a path template syntax on the field's value.
|
||||
* NB: it is more useful to send nothing than to send garbage for the purpose
|
||||
* of dynamic routing, since garbage pollutes cache. Thus the matching.
|
||||
* Sub-example 3a
|
||||
* The field matches the template.
|
||||
* annotation:
|
||||
* option (google.api.routing) = {
|
||||
* // Take the `table_name`, if it's well-formed (with project-based
|
||||
* // syntax).
|
||||
* routing_parameters {
|
||||
* field: "table_name"
|
||||
* path_template: "{table_name=projects/*/instances/*/**}"
|
||||
* }
|
||||
* };
|
||||
* result:
|
||||
* x-goog-request-params:
|
||||
* table_name=projects/proj_foo/instances/instance_bar/table/table_baz
|
||||
* Sub-example 3b
|
||||
* The field does not match the template.
|
||||
* annotation:
|
||||
* option (google.api.routing) = {
|
||||
* // Take the `table_name`, if it's well-formed (with region-based
|
||||
* // syntax).
|
||||
* routing_parameters {
|
||||
* field: "table_name"
|
||||
* path_template: "{table_name=regions/*/zones/*/**}"
|
||||
* }
|
||||
* };
|
||||
* result:
|
||||
* <no routing header will be sent>
|
||||
* Sub-example 3c
|
||||
* Multiple alternative conflictingly named path templates are
|
||||
* specified. The one that matches is used to construct the header.
|
||||
* annotation:
|
||||
* option (google.api.routing) = {
|
||||
* // Take the `table_name`, if it's well-formed, whether
|
||||
* // using the region- or projects-based syntax.
|
||||
* routing_parameters {
|
||||
* field: "table_name"
|
||||
* path_template: "{table_name=regions/*/zones/*/**}"
|
||||
* }
|
||||
* routing_parameters {
|
||||
* field: "table_name"
|
||||
* path_template: "{table_name=projects/*/instances/*/**}"
|
||||
* }
|
||||
* };
|
||||
* result:
|
||||
* x-goog-request-params:
|
||||
* table_name=projects/proj_foo/instances/instance_bar/table/table_baz
|
||||
* Example 4
|
||||
* Extracting a single routing header key-value pair by matching a
|
||||
* template syntax on (a part of) a single request field.
|
||||
* annotation:
|
||||
* option (google.api.routing) = {
|
||||
* // Take just the project id from the `table_name` field.
|
||||
* routing_parameters {
|
||||
* field: "table_name"
|
||||
* path_template: "{routing_id=projects/*}/**"
|
||||
* }
|
||||
* };
|
||||
* result:
|
||||
* x-goog-request-params: routing_id=projects/proj_foo
|
||||
* Example 5
|
||||
* Extracting a single routing header key-value pair by matching
|
||||
* several conflictingly named path templates on (parts of) a single request
|
||||
* field. The last template to match "wins" the conflict.
|
||||
* annotation:
|
||||
* option (google.api.routing) = {
|
||||
* // If the `table_name` does not have instances information,
|
||||
* // take just the project id for routing.
|
||||
* // Otherwise take project + instance.
|
||||
* routing_parameters {
|
||||
* field: "table_name"
|
||||
* path_template: "{routing_id=projects/*}/**"
|
||||
* }
|
||||
* routing_parameters {
|
||||
* field: "table_name"
|
||||
* path_template: "{routing_id=projects/*/instances/*}/**"
|
||||
* }
|
||||
* };
|
||||
* result:
|
||||
* x-goog-request-params:
|
||||
* routing_id=projects/proj_foo/instances/instance_bar
|
||||
* Example 6
|
||||
* Extracting multiple routing header key-value pairs by matching
|
||||
* several non-conflicting path templates on (parts of) a single request field.
|
||||
* Sub-example 6a
|
||||
* Make the templates strict, so that if the `table_name` does not
|
||||
* have an instance information, nothing is sent.
|
||||
* annotation:
|
||||
* option (google.api.routing) = {
|
||||
* // The routing code needs two keys instead of one composite
|
||||
* // but works only for the tables with the "project-instance" name
|
||||
* // syntax.
|
||||
* routing_parameters {
|
||||
* field: "table_name"
|
||||
* path_template: "{project_id=projects/*}/instances/*/**"
|
||||
* }
|
||||
* routing_parameters {
|
||||
* field: "table_name"
|
||||
* path_template: "projects/*/{instance_id=instances/*}/**"
|
||||
* }
|
||||
* };
|
||||
* result:
|
||||
* x-goog-request-params:
|
||||
* project_id=projects/proj_foo&instance_id=instances/instance_bar
|
||||
* Sub-example 6b
|
||||
* Make the templates loose, so that if the `table_name` does not
|
||||
* have an instance information, just the project id part is sent.
|
||||
* annotation:
|
||||
* option (google.api.routing) = {
|
||||
* // The routing code wants two keys instead of one composite
|
||||
* // but will work with just the `project_id` for tables without
|
||||
* // an instance in the `table_name`.
|
||||
* routing_parameters {
|
||||
* field: "table_name"
|
||||
* path_template: "{project_id=projects/*}/**"
|
||||
* }
|
||||
* routing_parameters {
|
||||
* field: "table_name"
|
||||
* path_template: "projects/*/{instance_id=instances/*}/**"
|
||||
* }
|
||||
* };
|
||||
* result (is the same as 6a for our example message because it has the instance
|
||||
* information):
|
||||
* x-goog-request-params:
|
||||
* project_id=projects/proj_foo&instance_id=instances/instance_bar
|
||||
* Example 7
|
||||
* Extracting multiple routing header key-value pairs by matching
|
||||
* several path templates on multiple request fields.
|
||||
* NB: note that here there is no way to specify sending nothing if one of the
|
||||
* fields does not match its template. E.g. if the `table_name` is in the wrong
|
||||
* format, the `project_id` will not be sent, but the `routing_id` will be.
|
||||
* The backend routing code has to be aware of that and be prepared to not
|
||||
* receive a full complement of keys if it expects multiple.
|
||||
* annotation:
|
||||
* option (google.api.routing) = {
|
||||
* // The routing needs both `project_id` and `routing_id`
|
||||
* // (from the `app_profile_id` field) for routing.
|
||||
* routing_parameters {
|
||||
* field: "table_name"
|
||||
* path_template: "{project_id=projects/*}/**"
|
||||
* }
|
||||
* routing_parameters {
|
||||
* field: "app_profile_id"
|
||||
* path_template: "{routing_id=**}"
|
||||
* }
|
||||
* };
|
||||
* result:
|
||||
* x-goog-request-params:
|
||||
* project_id=projects/proj_foo&routing_id=profiles/prof_qux
|
||||
* Example 8
|
||||
* Extracting a single routing header key-value pair by matching
|
||||
* several conflictingly named path templates on several request fields. The
|
||||
* last template to match "wins" the conflict.
|
||||
* annotation:
|
||||
* option (google.api.routing) = {
|
||||
* // The `routing_id` can be a project id or a region id depending on
|
||||
* // the table name format, but only if the `app_profile_id` is not set.
|
||||
* // If `app_profile_id` is set it should be used instead.
|
||||
* routing_parameters {
|
||||
* field: "table_name"
|
||||
* path_template: "{routing_id=projects/*}/**"
|
||||
* }
|
||||
* routing_parameters {
|
||||
* field: "table_name"
|
||||
* path_template: "{routing_id=regions/*}/**"
|
||||
* }
|
||||
* routing_parameters {
|
||||
* field: "app_profile_id"
|
||||
* path_template: "{routing_id=**}"
|
||||
* }
|
||||
* };
|
||||
* result:
|
||||
* x-goog-request-params: routing_id=profiles/prof_qux
|
||||
* Example 9
|
||||
* Bringing it all together.
|
||||
* annotation:
|
||||
* option (google.api.routing) = {
|
||||
* // For routing both `table_location` and a `routing_id` are needed.
|
||||
* //
|
||||
* // table_location can be either an instance id or a region+zone id.
|
||||
* //
|
||||
* // For `routing_id`, take the value of `app_profile_id`
|
||||
* // - If it's in the format `profiles/<profile_id>`, send
|
||||
* // just the `<profile_id>` part.
|
||||
* // - If it's any other literal, send it as is.
|
||||
* // If the `app_profile_id` is empty, and the `table_name` starts with
|
||||
* // the project_id, send that instead.
|
||||
* routing_parameters {
|
||||
* field: "table_name"
|
||||
* path_template: "projects/*/{table_location=instances/*}/tables/*"
|
||||
* }
|
||||
* routing_parameters {
|
||||
* field: "table_name"
|
||||
* path_template: "{table_location=regions/*/zones/*}/tables/*"
|
||||
* }
|
||||
* routing_parameters {
|
||||
* field: "table_name"
|
||||
* path_template: "{routing_id=projects/*}/**"
|
||||
* }
|
||||
* routing_parameters {
|
||||
* field: "app_profile_id"
|
||||
* path_template: "{routing_id=**}"
|
||||
* }
|
||||
* routing_parameters {
|
||||
* field: "app_profile_id"
|
||||
* path_template: "profiles/{routing_id=*}"
|
||||
* }
|
||||
* };
|
||||
* result:
|
||||
* x-goog-request-params:
|
||||
* table_location=instances/instance_bar&routing_id=prof_qux
|
||||
*
|
||||
* Generated from protobuf message <code>google.api.RoutingRule</code>
|
||||
*/
|
||||
class RoutingRule extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* A collection of Routing Parameter specifications.
|
||||
* **NOTE:** If multiple Routing Parameters describe the same key
|
||||
* (via the `path_template` field or via the `field` field when
|
||||
* `path_template` is not provided), "last one wins" rule
|
||||
* determines which Parameter gets used.
|
||||
* See the examples for more details.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.RoutingParameter routing_parameters = 2;</code>
|
||||
*/
|
||||
private $routing_parameters;
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type array<\Google\Api\RoutingParameter>|\Google\Protobuf\Internal\RepeatedField $routing_parameters
|
||||
* A collection of Routing Parameter specifications.
|
||||
* **NOTE:** If multiple Routing Parameters describe the same key
|
||||
* (via the `path_template` field or via the `field` field when
|
||||
* `path_template` is not provided), "last one wins" rule
|
||||
* determines which Parameter gets used.
|
||||
* See the examples for more details.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Api\Routing::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* A collection of Routing Parameter specifications.
|
||||
* **NOTE:** If multiple Routing Parameters describe the same key
|
||||
* (via the `path_template` field or via the `field` field when
|
||||
* `path_template` is not provided), "last one wins" rule
|
||||
* determines which Parameter gets used.
|
||||
* See the examples for more details.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.RoutingParameter routing_parameters = 2;</code>
|
||||
* @return \Google\Protobuf\Internal\RepeatedField
|
||||
*/
|
||||
public function getRoutingParameters()
|
||||
{
|
||||
return $this->routing_parameters;
|
||||
}
|
||||
/**
|
||||
* A collection of Routing Parameter specifications.
|
||||
* **NOTE:** If multiple Routing Parameters describe the same key
|
||||
* (via the `path_template` field or via the `field` field when
|
||||
* `path_template` is not provided), "last one wins" rule
|
||||
* determines which Parameter gets used.
|
||||
* See the examples for more details.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.RoutingParameter routing_parameters = 2;</code>
|
||||
* @param array<\Google\Api\RoutingParameter>|\Google\Protobuf\Internal\RepeatedField $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setRoutingParameters($var)
|
||||
{
|
||||
$arr = GPBUtil::checkRepeatedField($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::MESSAGE, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\RoutingParameter::class);
|
||||
$this->routing_parameters = $arr;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
69
vendor/Gcp/google/common-protos/src/Api/RubySettings.php
vendored
Normal file
69
vendor/Gcp/google/common-protos/src/Api/RubySettings.php
vendored
Normal file
@@ -0,0 +1,69 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/client.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* Settings for Ruby client libraries.
|
||||
*
|
||||
* Generated from protobuf message <code>google.api.RubySettings</code>
|
||||
*/
|
||||
class RubySettings extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* Some settings.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.CommonLanguageSettings common = 1;</code>
|
||||
*/
|
||||
protected $common = null;
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type \Google\Api\CommonLanguageSettings $common
|
||||
* Some settings.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Api\Client::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* Some settings.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.CommonLanguageSettings common = 1;</code>
|
||||
* @return \Google\Api\CommonLanguageSettings|null
|
||||
*/
|
||||
public function getCommon()
|
||||
{
|
||||
return $this->common;
|
||||
}
|
||||
public function hasCommon()
|
||||
{
|
||||
return isset($this->common);
|
||||
}
|
||||
public function clearCommon()
|
||||
{
|
||||
unset($this->common);
|
||||
}
|
||||
/**
|
||||
* Some settings.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.api.CommonLanguageSettings common = 1;</code>
|
||||
* @param \Google\Api\CommonLanguageSettings $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setCommon($var)
|
||||
{
|
||||
GPBUtil::checkMessage($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\CommonLanguageSettings::class);
|
||||
$this->common = $var;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
1132
vendor/Gcp/google/common-protos/src/Api/Service.php
vendored
Normal file
1132
vendor/Gcp/google/common-protos/src/Api/Service.php
vendored
Normal file
File diff suppressed because it is too large
Load Diff
61
vendor/Gcp/google/common-protos/src/Api/SourceInfo.php
vendored
Normal file
61
vendor/Gcp/google/common-protos/src/Api/SourceInfo.php
vendored
Normal file
@@ -0,0 +1,61 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/source_info.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* Source information used to create a Service Config
|
||||
*
|
||||
* Generated from protobuf message <code>google.api.SourceInfo</code>
|
||||
*/
|
||||
class SourceInfo extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* All files used during config generation.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.protobuf.Any source_files = 1;</code>
|
||||
*/
|
||||
private $source_files;
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type array<\Google\Protobuf\Any>|\Google\Protobuf\Internal\RepeatedField $source_files
|
||||
* All files used during config generation.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Api\SourceInfo::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* All files used during config generation.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.protobuf.Any source_files = 1;</code>
|
||||
* @return \Google\Protobuf\Internal\RepeatedField
|
||||
*/
|
||||
public function getSourceFiles()
|
||||
{
|
||||
return $this->source_files;
|
||||
}
|
||||
/**
|
||||
* All files used during config generation.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.protobuf.Any source_files = 1;</code>
|
||||
* @param array<\Google\Protobuf\Any>|\Google\Protobuf\Internal\RepeatedField $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setSourceFiles($var)
|
||||
{
|
||||
$arr = GPBUtil::checkRepeatedField($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::MESSAGE, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Any::class);
|
||||
$this->source_files = $arr;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
133
vendor/Gcp/google/common-protos/src/Api/SystemParameter.php
vendored
Normal file
133
vendor/Gcp/google/common-protos/src/Api/SystemParameter.php
vendored
Normal file
@@ -0,0 +1,133 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/system_parameter.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* Define a parameter's name and location. The parameter may be passed as either
|
||||
* an HTTP header or a URL query parameter, and if both are passed the behavior
|
||||
* is implementation-dependent.
|
||||
*
|
||||
* Generated from protobuf message <code>google.api.SystemParameter</code>
|
||||
*/
|
||||
class SystemParameter extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* Define the name of the parameter, such as "api_key" . It is case sensitive.
|
||||
*
|
||||
* Generated from protobuf field <code>string name = 1;</code>
|
||||
*/
|
||||
protected $name = '';
|
||||
/**
|
||||
* Define the HTTP header name to use for the parameter. It is case
|
||||
* insensitive.
|
||||
*
|
||||
* Generated from protobuf field <code>string http_header = 2;</code>
|
||||
*/
|
||||
protected $http_header = '';
|
||||
/**
|
||||
* Define the URL query parameter name to use for the parameter. It is case
|
||||
* sensitive.
|
||||
*
|
||||
* Generated from protobuf field <code>string url_query_parameter = 3;</code>
|
||||
*/
|
||||
protected $url_query_parameter = '';
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type string $name
|
||||
* Define the name of the parameter, such as "api_key" . It is case sensitive.
|
||||
* @type string $http_header
|
||||
* Define the HTTP header name to use for the parameter. It is case
|
||||
* insensitive.
|
||||
* @type string $url_query_parameter
|
||||
* Define the URL query parameter name to use for the parameter. It is case
|
||||
* sensitive.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Api\SystemParameter::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* Define the name of the parameter, such as "api_key" . It is case sensitive.
|
||||
*
|
||||
* Generated from protobuf field <code>string name = 1;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getName()
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
/**
|
||||
* Define the name of the parameter, such as "api_key" . It is case sensitive.
|
||||
*
|
||||
* Generated from protobuf field <code>string name = 1;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setName($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->name = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Define the HTTP header name to use for the parameter. It is case
|
||||
* insensitive.
|
||||
*
|
||||
* Generated from protobuf field <code>string http_header = 2;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getHttpHeader()
|
||||
{
|
||||
return $this->http_header;
|
||||
}
|
||||
/**
|
||||
* Define the HTTP header name to use for the parameter. It is case
|
||||
* insensitive.
|
||||
*
|
||||
* Generated from protobuf field <code>string http_header = 2;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setHttpHeader($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->http_header = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Define the URL query parameter name to use for the parameter. It is case
|
||||
* sensitive.
|
||||
*
|
||||
* Generated from protobuf field <code>string url_query_parameter = 3;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getUrlQueryParameter()
|
||||
{
|
||||
return $this->url_query_parameter;
|
||||
}
|
||||
/**
|
||||
* Define the URL query parameter name to use for the parameter. It is case
|
||||
* sensitive.
|
||||
*
|
||||
* Generated from protobuf field <code>string url_query_parameter = 3;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setUrlQueryParameter($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->url_query_parameter = $var;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
121
vendor/Gcp/google/common-protos/src/Api/SystemParameterRule.php
vendored
Normal file
121
vendor/Gcp/google/common-protos/src/Api/SystemParameterRule.php
vendored
Normal file
@@ -0,0 +1,121 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/system_parameter.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* Define a system parameter rule mapping system parameter definitions to
|
||||
* methods.
|
||||
*
|
||||
* Generated from protobuf message <code>google.api.SystemParameterRule</code>
|
||||
*/
|
||||
class SystemParameterRule extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* Selects the methods to which this rule applies. Use '*' to indicate all
|
||||
* methods in all APIs.
|
||||
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
|
||||
* details.
|
||||
*
|
||||
* Generated from protobuf field <code>string selector = 1;</code>
|
||||
*/
|
||||
protected $selector = '';
|
||||
/**
|
||||
* Define parameters. Multiple names may be defined for a parameter.
|
||||
* For a given method call, only one of them should be used. If multiple
|
||||
* names are used the behavior is implementation-dependent.
|
||||
* If none of the specified names are present the behavior is
|
||||
* parameter-dependent.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.SystemParameter parameters = 2;</code>
|
||||
*/
|
||||
private $parameters;
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type string $selector
|
||||
* Selects the methods to which this rule applies. Use '*' to indicate all
|
||||
* methods in all APIs.
|
||||
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
|
||||
* details.
|
||||
* @type array<\Google\Api\SystemParameter>|\Google\Protobuf\Internal\RepeatedField $parameters
|
||||
* Define parameters. Multiple names may be defined for a parameter.
|
||||
* For a given method call, only one of them should be used. If multiple
|
||||
* names are used the behavior is implementation-dependent.
|
||||
* If none of the specified names are present the behavior is
|
||||
* parameter-dependent.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Api\SystemParameter::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* Selects the methods to which this rule applies. Use '*' to indicate all
|
||||
* methods in all APIs.
|
||||
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
|
||||
* details.
|
||||
*
|
||||
* Generated from protobuf field <code>string selector = 1;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getSelector()
|
||||
{
|
||||
return $this->selector;
|
||||
}
|
||||
/**
|
||||
* Selects the methods to which this rule applies. Use '*' to indicate all
|
||||
* methods in all APIs.
|
||||
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
|
||||
* details.
|
||||
*
|
||||
* Generated from protobuf field <code>string selector = 1;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setSelector($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->selector = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Define parameters. Multiple names may be defined for a parameter.
|
||||
* For a given method call, only one of them should be used. If multiple
|
||||
* names are used the behavior is implementation-dependent.
|
||||
* If none of the specified names are present the behavior is
|
||||
* parameter-dependent.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.SystemParameter parameters = 2;</code>
|
||||
* @return \Google\Protobuf\Internal\RepeatedField
|
||||
*/
|
||||
public function getParameters()
|
||||
{
|
||||
return $this->parameters;
|
||||
}
|
||||
/**
|
||||
* Define parameters. Multiple names may be defined for a parameter.
|
||||
* For a given method call, only one of them should be used. If multiple
|
||||
* names are used the behavior is implementation-dependent.
|
||||
* If none of the specified names are present the behavior is
|
||||
* parameter-dependent.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.SystemParameter parameters = 2;</code>
|
||||
* @param array<\Google\Api\SystemParameter>|\Google\Protobuf\Internal\RepeatedField $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setParameters($var)
|
||||
{
|
||||
$arr = GPBUtil::checkRepeatedField($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::MESSAGE, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\SystemParameter::class);
|
||||
$this->parameters = $arr;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
149
vendor/Gcp/google/common-protos/src/Api/SystemParameters.php
vendored
Normal file
149
vendor/Gcp/google/common-protos/src/Api/SystemParameters.php
vendored
Normal file
@@ -0,0 +1,149 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/system_parameter.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* ### System parameter configuration
|
||||
* A system parameter is a special kind of parameter defined by the API
|
||||
* system, not by an individual API. It is typically mapped to an HTTP header
|
||||
* and/or a URL query parameter. This configuration specifies which methods
|
||||
* change the names of the system parameters.
|
||||
*
|
||||
* Generated from protobuf message <code>google.api.SystemParameters</code>
|
||||
*/
|
||||
class SystemParameters extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* Define system parameters.
|
||||
* The parameters defined here will override the default parameters
|
||||
* implemented by the system. If this field is missing from the service
|
||||
* config, default system parameters will be used. Default system parameters
|
||||
* and names is implementation-dependent.
|
||||
* Example: define api key for all methods
|
||||
* system_parameters
|
||||
* rules:
|
||||
* - selector: "*"
|
||||
* parameters:
|
||||
* - name: api_key
|
||||
* url_query_parameter: api_key
|
||||
* Example: define 2 api key names for a specific method.
|
||||
* system_parameters
|
||||
* rules:
|
||||
* - selector: "/ListShelves"
|
||||
* parameters:
|
||||
* - name: api_key
|
||||
* http_header: Api-Key1
|
||||
* - name: api_key
|
||||
* http_header: Api-Key2
|
||||
* **NOTE:** All service configuration rules follow "last one wins" order.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.SystemParameterRule rules = 1;</code>
|
||||
*/
|
||||
private $rules;
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type array<\Google\Api\SystemParameterRule>|\Google\Protobuf\Internal\RepeatedField $rules
|
||||
* Define system parameters.
|
||||
* The parameters defined here will override the default parameters
|
||||
* implemented by the system. If this field is missing from the service
|
||||
* config, default system parameters will be used. Default system parameters
|
||||
* and names is implementation-dependent.
|
||||
* Example: define api key for all methods
|
||||
* system_parameters
|
||||
* rules:
|
||||
* - selector: "*"
|
||||
* parameters:
|
||||
* - name: api_key
|
||||
* url_query_parameter: api_key
|
||||
* Example: define 2 api key names for a specific method.
|
||||
* system_parameters
|
||||
* rules:
|
||||
* - selector: "/ListShelves"
|
||||
* parameters:
|
||||
* - name: api_key
|
||||
* http_header: Api-Key1
|
||||
* - name: api_key
|
||||
* http_header: Api-Key2
|
||||
* **NOTE:** All service configuration rules follow "last one wins" order.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Api\SystemParameter::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* Define system parameters.
|
||||
* The parameters defined here will override the default parameters
|
||||
* implemented by the system. If this field is missing from the service
|
||||
* config, default system parameters will be used. Default system parameters
|
||||
* and names is implementation-dependent.
|
||||
* Example: define api key for all methods
|
||||
* system_parameters
|
||||
* rules:
|
||||
* - selector: "*"
|
||||
* parameters:
|
||||
* - name: api_key
|
||||
* url_query_parameter: api_key
|
||||
* Example: define 2 api key names for a specific method.
|
||||
* system_parameters
|
||||
* rules:
|
||||
* - selector: "/ListShelves"
|
||||
* parameters:
|
||||
* - name: api_key
|
||||
* http_header: Api-Key1
|
||||
* - name: api_key
|
||||
* http_header: Api-Key2
|
||||
* **NOTE:** All service configuration rules follow "last one wins" order.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.SystemParameterRule rules = 1;</code>
|
||||
* @return \Google\Protobuf\Internal\RepeatedField
|
||||
*/
|
||||
public function getRules()
|
||||
{
|
||||
return $this->rules;
|
||||
}
|
||||
/**
|
||||
* Define system parameters.
|
||||
* The parameters defined here will override the default parameters
|
||||
* implemented by the system. If this field is missing from the service
|
||||
* config, default system parameters will be used. Default system parameters
|
||||
* and names is implementation-dependent.
|
||||
* Example: define api key for all methods
|
||||
* system_parameters
|
||||
* rules:
|
||||
* - selector: "*"
|
||||
* parameters:
|
||||
* - name: api_key
|
||||
* url_query_parameter: api_key
|
||||
* Example: define 2 api key names for a specific method.
|
||||
* system_parameters
|
||||
* rules:
|
||||
* - selector: "/ListShelves"
|
||||
* parameters:
|
||||
* - name: api_key
|
||||
* http_header: Api-Key1
|
||||
* - name: api_key
|
||||
* http_header: Api-Key2
|
||||
* **NOTE:** All service configuration rules follow "last one wins" order.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.SystemParameterRule rules = 1;</code>
|
||||
* @param array<\Google\Api\SystemParameterRule>|\Google\Protobuf\Internal\RepeatedField $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setRules($var)
|
||||
{
|
||||
$arr = GPBUtil::checkRepeatedField($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::MESSAGE, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\SystemParameterRule::class);
|
||||
$this->rules = $arr;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
179
vendor/Gcp/google/common-protos/src/Api/Usage.php
vendored
Normal file
179
vendor/Gcp/google/common-protos/src/Api/Usage.php
vendored
Normal file
@@ -0,0 +1,179 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/usage.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* Configuration controlling usage of a service.
|
||||
*
|
||||
* Generated from protobuf message <code>google.api.Usage</code>
|
||||
*/
|
||||
class Usage extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* Requirements that must be satisfied before a consumer project can use the
|
||||
* service. Each requirement is of the form <service.name>/<requirement-id>;
|
||||
* for example 'serviceusage.googleapis.com/billing-enabled'.
|
||||
* For Google APIs, a Terms of Service requirement must be included here.
|
||||
* Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud".
|
||||
* Other Google APIs should include
|
||||
* "serviceusage.googleapis.com/tos/universal". Additional ToS can be
|
||||
* included based on the business needs.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated string requirements = 1;</code>
|
||||
*/
|
||||
private $requirements;
|
||||
/**
|
||||
* A list of usage rules that apply to individual API methods.
|
||||
* **NOTE:** All service configuration rules follow "last one wins" order.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.UsageRule rules = 6;</code>
|
||||
*/
|
||||
private $rules;
|
||||
/**
|
||||
* The full resource name of a channel used for sending notifications to the
|
||||
* service producer.
|
||||
* Google Service Management currently only supports
|
||||
* [Google Cloud Pub/Sub](https://cloud.google.com/pubsub) as a notification
|
||||
* channel. To use Google Cloud Pub/Sub as the channel, this must be the name
|
||||
* of a Cloud Pub/Sub topic that uses the Cloud Pub/Sub topic name format
|
||||
* documented in https://cloud.google.com/pubsub/docs/overview.
|
||||
*
|
||||
* Generated from protobuf field <code>string producer_notification_channel = 7;</code>
|
||||
*/
|
||||
protected $producer_notification_channel = '';
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type array<string>|\Google\Protobuf\Internal\RepeatedField $requirements
|
||||
* Requirements that must be satisfied before a consumer project can use the
|
||||
* service. Each requirement is of the form <service.name>/<requirement-id>;
|
||||
* for example 'serviceusage.googleapis.com/billing-enabled'.
|
||||
* For Google APIs, a Terms of Service requirement must be included here.
|
||||
* Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud".
|
||||
* Other Google APIs should include
|
||||
* "serviceusage.googleapis.com/tos/universal". Additional ToS can be
|
||||
* included based on the business needs.
|
||||
* @type array<\Google\Api\UsageRule>|\Google\Protobuf\Internal\RepeatedField $rules
|
||||
* A list of usage rules that apply to individual API methods.
|
||||
* **NOTE:** All service configuration rules follow "last one wins" order.
|
||||
* @type string $producer_notification_channel
|
||||
* The full resource name of a channel used for sending notifications to the
|
||||
* service producer.
|
||||
* Google Service Management currently only supports
|
||||
* [Google Cloud Pub/Sub](https://cloud.google.com/pubsub) as a notification
|
||||
* channel. To use Google Cloud Pub/Sub as the channel, this must be the name
|
||||
* of a Cloud Pub/Sub topic that uses the Cloud Pub/Sub topic name format
|
||||
* documented in https://cloud.google.com/pubsub/docs/overview.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Api\Usage::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* Requirements that must be satisfied before a consumer project can use the
|
||||
* service. Each requirement is of the form <service.name>/<requirement-id>;
|
||||
* for example 'serviceusage.googleapis.com/billing-enabled'.
|
||||
* For Google APIs, a Terms of Service requirement must be included here.
|
||||
* Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud".
|
||||
* Other Google APIs should include
|
||||
* "serviceusage.googleapis.com/tos/universal". Additional ToS can be
|
||||
* included based on the business needs.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated string requirements = 1;</code>
|
||||
* @return \Google\Protobuf\Internal\RepeatedField
|
||||
*/
|
||||
public function getRequirements()
|
||||
{
|
||||
return $this->requirements;
|
||||
}
|
||||
/**
|
||||
* Requirements that must be satisfied before a consumer project can use the
|
||||
* service. Each requirement is of the form <service.name>/<requirement-id>;
|
||||
* for example 'serviceusage.googleapis.com/billing-enabled'.
|
||||
* For Google APIs, a Terms of Service requirement must be included here.
|
||||
* Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud".
|
||||
* Other Google APIs should include
|
||||
* "serviceusage.googleapis.com/tos/universal". Additional ToS can be
|
||||
* included based on the business needs.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated string requirements = 1;</code>
|
||||
* @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setRequirements($var)
|
||||
{
|
||||
$arr = GPBUtil::checkRepeatedField($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::STRING);
|
||||
$this->requirements = $arr;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* A list of usage rules that apply to individual API methods.
|
||||
* **NOTE:** All service configuration rules follow "last one wins" order.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.UsageRule rules = 6;</code>
|
||||
* @return \Google\Protobuf\Internal\RepeatedField
|
||||
*/
|
||||
public function getRules()
|
||||
{
|
||||
return $this->rules;
|
||||
}
|
||||
/**
|
||||
* A list of usage rules that apply to individual API methods.
|
||||
* **NOTE:** All service configuration rules follow "last one wins" order.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.UsageRule rules = 6;</code>
|
||||
* @param array<\Google\Api\UsageRule>|\Google\Protobuf\Internal\RepeatedField $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setRules($var)
|
||||
{
|
||||
$arr = GPBUtil::checkRepeatedField($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::MESSAGE, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\UsageRule::class);
|
||||
$this->rules = $arr;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* The full resource name of a channel used for sending notifications to the
|
||||
* service producer.
|
||||
* Google Service Management currently only supports
|
||||
* [Google Cloud Pub/Sub](https://cloud.google.com/pubsub) as a notification
|
||||
* channel. To use Google Cloud Pub/Sub as the channel, this must be the name
|
||||
* of a Cloud Pub/Sub topic that uses the Cloud Pub/Sub topic name format
|
||||
* documented in https://cloud.google.com/pubsub/docs/overview.
|
||||
*
|
||||
* Generated from protobuf field <code>string producer_notification_channel = 7;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getProducerNotificationChannel()
|
||||
{
|
||||
return $this->producer_notification_channel;
|
||||
}
|
||||
/**
|
||||
* The full resource name of a channel used for sending notifications to the
|
||||
* service producer.
|
||||
* Google Service Management currently only supports
|
||||
* [Google Cloud Pub/Sub](https://cloud.google.com/pubsub) as a notification
|
||||
* channel. To use Google Cloud Pub/Sub as the channel, this must be the name
|
||||
* of a Cloud Pub/Sub topic that uses the Cloud Pub/Sub topic name format
|
||||
* documented in https://cloud.google.com/pubsub/docs/overview.
|
||||
*
|
||||
* Generated from protobuf field <code>string producer_notification_channel = 7;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setProducerNotificationChannel($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->producer_notification_channel = $var;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
168
vendor/Gcp/google/common-protos/src/Api/UsageRule.php
vendored
Normal file
168
vendor/Gcp/google/common-protos/src/Api/UsageRule.php
vendored
Normal file
@@ -0,0 +1,168 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/usage.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* Usage configuration rules for the service.
|
||||
* NOTE: Under development.
|
||||
* Use this rule to configure unregistered calls for the service. Unregistered
|
||||
* calls are calls that do not contain consumer project identity.
|
||||
* (Example: calls that do not contain an API key).
|
||||
* By default, API methods do not allow unregistered calls, and each method call
|
||||
* must be identified by a consumer project identity. Use this rule to
|
||||
* allow/disallow unregistered calls.
|
||||
* Example of an API that wants to allow unregistered calls for entire service.
|
||||
* usage:
|
||||
* rules:
|
||||
* - selector: "*"
|
||||
* allow_unregistered_calls: true
|
||||
* Example of a method that wants to allow unregistered calls.
|
||||
* usage:
|
||||
* rules:
|
||||
* - selector: "google.example.library.v1.LibraryService.CreateBook"
|
||||
* allow_unregistered_calls: true
|
||||
*
|
||||
* Generated from protobuf message <code>google.api.UsageRule</code>
|
||||
*/
|
||||
class UsageRule extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* Selects the methods to which this rule applies. Use '*' to indicate all
|
||||
* methods in all APIs.
|
||||
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
|
||||
* details.
|
||||
*
|
||||
* Generated from protobuf field <code>string selector = 1;</code>
|
||||
*/
|
||||
protected $selector = '';
|
||||
/**
|
||||
* If true, the selected method allows unregistered calls, e.g. calls
|
||||
* that don't identify any user or application.
|
||||
*
|
||||
* Generated from protobuf field <code>bool allow_unregistered_calls = 2;</code>
|
||||
*/
|
||||
protected $allow_unregistered_calls = \false;
|
||||
/**
|
||||
* If true, the selected method should skip service control and the control
|
||||
* plane features, such as quota and billing, will not be available.
|
||||
* This flag is used by Google Cloud Endpoints to bypass checks for internal
|
||||
* methods, such as service health check methods.
|
||||
*
|
||||
* Generated from protobuf field <code>bool skip_service_control = 3;</code>
|
||||
*/
|
||||
protected $skip_service_control = \false;
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type string $selector
|
||||
* Selects the methods to which this rule applies. Use '*' to indicate all
|
||||
* methods in all APIs.
|
||||
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
|
||||
* details.
|
||||
* @type bool $allow_unregistered_calls
|
||||
* If true, the selected method allows unregistered calls, e.g. calls
|
||||
* that don't identify any user or application.
|
||||
* @type bool $skip_service_control
|
||||
* If true, the selected method should skip service control and the control
|
||||
* plane features, such as quota and billing, will not be available.
|
||||
* This flag is used by Google Cloud Endpoints to bypass checks for internal
|
||||
* methods, such as service health check methods.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Api\Usage::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* Selects the methods to which this rule applies. Use '*' to indicate all
|
||||
* methods in all APIs.
|
||||
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
|
||||
* details.
|
||||
*
|
||||
* Generated from protobuf field <code>string selector = 1;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getSelector()
|
||||
{
|
||||
return $this->selector;
|
||||
}
|
||||
/**
|
||||
* Selects the methods to which this rule applies. Use '*' to indicate all
|
||||
* methods in all APIs.
|
||||
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
|
||||
* details.
|
||||
*
|
||||
* Generated from protobuf field <code>string selector = 1;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setSelector($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->selector = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* If true, the selected method allows unregistered calls, e.g. calls
|
||||
* that don't identify any user or application.
|
||||
*
|
||||
* Generated from protobuf field <code>bool allow_unregistered_calls = 2;</code>
|
||||
* @return bool
|
||||
*/
|
||||
public function getAllowUnregisteredCalls()
|
||||
{
|
||||
return $this->allow_unregistered_calls;
|
||||
}
|
||||
/**
|
||||
* If true, the selected method allows unregistered calls, e.g. calls
|
||||
* that don't identify any user or application.
|
||||
*
|
||||
* Generated from protobuf field <code>bool allow_unregistered_calls = 2;</code>
|
||||
* @param bool $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setAllowUnregisteredCalls($var)
|
||||
{
|
||||
GPBUtil::checkBool($var);
|
||||
$this->allow_unregistered_calls = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* If true, the selected method should skip service control and the control
|
||||
* plane features, such as quota and billing, will not be available.
|
||||
* This flag is used by Google Cloud Endpoints to bypass checks for internal
|
||||
* methods, such as service health check methods.
|
||||
*
|
||||
* Generated from protobuf field <code>bool skip_service_control = 3;</code>
|
||||
* @return bool
|
||||
*/
|
||||
public function getSkipServiceControl()
|
||||
{
|
||||
return $this->skip_service_control;
|
||||
}
|
||||
/**
|
||||
* If true, the selected method should skip service control and the control
|
||||
* plane features, such as quota and billing, will not be available.
|
||||
* This flag is used by Google Cloud Endpoints to bypass checks for internal
|
||||
* methods, such as service health check methods.
|
||||
*
|
||||
* Generated from protobuf field <code>bool skip_service_control = 3;</code>
|
||||
* @param bool $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setSkipServiceControl($var)
|
||||
{
|
||||
GPBUtil::checkBool($var);
|
||||
$this->skip_service_control = $var;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
82
vendor/Gcp/google/common-protos/src/Api/Visibility.php
vendored
Normal file
82
vendor/Gcp/google/common-protos/src/Api/Visibility.php
vendored
Normal file
@@ -0,0 +1,82 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/visibility.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* `Visibility` restricts service consumer's access to service elements,
|
||||
* such as whether an application can call a visibility-restricted method.
|
||||
* The restriction is expressed by applying visibility labels on service
|
||||
* elements. The visibility labels are elsewhere linked to service consumers.
|
||||
* A service can define multiple visibility labels, but a service consumer
|
||||
* should be granted at most one visibility label. Multiple visibility
|
||||
* labels for a single service consumer are not supported.
|
||||
* If an element and all its parents have no visibility label, its visibility
|
||||
* is unconditionally granted.
|
||||
* Example:
|
||||
* visibility:
|
||||
* rules:
|
||||
* - selector: google.calendar.Calendar.EnhancedSearch
|
||||
* restriction: PREVIEW
|
||||
* - selector: google.calendar.Calendar.Delegate
|
||||
* restriction: INTERNAL
|
||||
* Here, all methods are publicly visible except for the restricted methods
|
||||
* EnhancedSearch and Delegate.
|
||||
*
|
||||
* Generated from protobuf message <code>google.api.Visibility</code>
|
||||
*/
|
||||
class Visibility extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* A list of visibility rules that apply to individual API elements.
|
||||
* **NOTE:** All service configuration rules follow "last one wins" order.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.VisibilityRule rules = 1;</code>
|
||||
*/
|
||||
private $rules;
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type array<\Google\Api\VisibilityRule>|\Google\Protobuf\Internal\RepeatedField $rules
|
||||
* A list of visibility rules that apply to individual API elements.
|
||||
* **NOTE:** All service configuration rules follow "last one wins" order.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Api\Visibility::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* A list of visibility rules that apply to individual API elements.
|
||||
* **NOTE:** All service configuration rules follow "last one wins" order.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.VisibilityRule rules = 1;</code>
|
||||
* @return \Google\Protobuf\Internal\RepeatedField
|
||||
*/
|
||||
public function getRules()
|
||||
{
|
||||
return $this->rules;
|
||||
}
|
||||
/**
|
||||
* A list of visibility rules that apply to individual API elements.
|
||||
* **NOTE:** All service configuration rules follow "last one wins" order.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.api.VisibilityRule rules = 1;</code>
|
||||
* @param array<\Google\Api\VisibilityRule>|\Google\Protobuf\Internal\RepeatedField $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setRules($var)
|
||||
{
|
||||
$arr = GPBUtil::checkRepeatedField($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::MESSAGE, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Api\VisibilityRule::class);
|
||||
$this->rules = $arr;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
141
vendor/Gcp/google/common-protos/src/Api/VisibilityRule.php
vendored
Normal file
141
vendor/Gcp/google/common-protos/src/Api/VisibilityRule.php
vendored
Normal file
@@ -0,0 +1,141 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/api/visibility.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Api;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* A visibility rule provides visibility configuration for an individual API
|
||||
* element.
|
||||
*
|
||||
* Generated from protobuf message <code>google.api.VisibilityRule</code>
|
||||
*/
|
||||
class VisibilityRule extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* Selects methods, messages, fields, enums, etc. to which this rule applies.
|
||||
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
|
||||
* details.
|
||||
*
|
||||
* Generated from protobuf field <code>string selector = 1;</code>
|
||||
*/
|
||||
protected $selector = '';
|
||||
/**
|
||||
* A comma-separated list of visibility labels that apply to the `selector`.
|
||||
* Any of the listed labels can be used to grant the visibility.
|
||||
* If a rule has multiple labels, removing one of the labels but not all of
|
||||
* them can break clients.
|
||||
* Example:
|
||||
* visibility:
|
||||
* rules:
|
||||
* - selector: google.calendar.Calendar.EnhancedSearch
|
||||
* restriction: INTERNAL, PREVIEW
|
||||
* Removing INTERNAL from this restriction will break clients that rely on
|
||||
* this method and only had access to it through INTERNAL.
|
||||
*
|
||||
* Generated from protobuf field <code>string restriction = 2;</code>
|
||||
*/
|
||||
protected $restriction = '';
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type string $selector
|
||||
* Selects methods, messages, fields, enums, etc. to which this rule applies.
|
||||
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
|
||||
* details.
|
||||
* @type string $restriction
|
||||
* A comma-separated list of visibility labels that apply to the `selector`.
|
||||
* Any of the listed labels can be used to grant the visibility.
|
||||
* If a rule has multiple labels, removing one of the labels but not all of
|
||||
* them can break clients.
|
||||
* Example:
|
||||
* visibility:
|
||||
* rules:
|
||||
* - selector: google.calendar.Calendar.EnhancedSearch
|
||||
* restriction: INTERNAL, PREVIEW
|
||||
* Removing INTERNAL from this restriction will break clients that rely on
|
||||
* this method and only had access to it through INTERNAL.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Api\Visibility::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* Selects methods, messages, fields, enums, etc. to which this rule applies.
|
||||
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
|
||||
* details.
|
||||
*
|
||||
* Generated from protobuf field <code>string selector = 1;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getSelector()
|
||||
{
|
||||
return $this->selector;
|
||||
}
|
||||
/**
|
||||
* Selects methods, messages, fields, enums, etc. to which this rule applies.
|
||||
* Refer to [selector][google.api.DocumentationRule.selector] for syntax
|
||||
* details.
|
||||
*
|
||||
* Generated from protobuf field <code>string selector = 1;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setSelector($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->selector = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* A comma-separated list of visibility labels that apply to the `selector`.
|
||||
* Any of the listed labels can be used to grant the visibility.
|
||||
* If a rule has multiple labels, removing one of the labels but not all of
|
||||
* them can break clients.
|
||||
* Example:
|
||||
* visibility:
|
||||
* rules:
|
||||
* - selector: google.calendar.Calendar.EnhancedSearch
|
||||
* restriction: INTERNAL, PREVIEW
|
||||
* Removing INTERNAL from this restriction will break clients that rely on
|
||||
* this method and only had access to it through INTERNAL.
|
||||
*
|
||||
* Generated from protobuf field <code>string restriction = 2;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getRestriction()
|
||||
{
|
||||
return $this->restriction;
|
||||
}
|
||||
/**
|
||||
* A comma-separated list of visibility labels that apply to the `selector`.
|
||||
* Any of the listed labels can be used to grant the visibility.
|
||||
* If a rule has multiple labels, removing one of the labels but not all of
|
||||
* them can break clients.
|
||||
* Example:
|
||||
* visibility:
|
||||
* rules:
|
||||
* - selector: google.calendar.Calendar.EnhancedSearch
|
||||
* restriction: INTERNAL, PREVIEW
|
||||
* Removing INTERNAL from this restriction will break clients that rely on
|
||||
* this method and only had access to it through INTERNAL.
|
||||
*
|
||||
* Generated from protobuf field <code>string restriction = 2;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setRestriction($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->restriction = $var;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
146
vendor/Gcp/google/common-protos/src/Cloud/Iam/V1/AuditConfig.php
vendored
Normal file
146
vendor/Gcp/google/common-protos/src/Cloud/Iam/V1/AuditConfig.php
vendored
Normal file
@@ -0,0 +1,146 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/iam/v1/policy.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Cloud\Iam\V1;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* Specifies the audit configuration for a service.
|
||||
* The configuration determines which permission types are logged, and what
|
||||
* identities, if any, are exempted from logging.
|
||||
* An AuditConfig must have one or more AuditLogConfigs.
|
||||
* If there are AuditConfigs for both `allServices` and a specific service,
|
||||
* the union of the two AuditConfigs is used for that service: the log_types
|
||||
* specified in each AuditConfig are enabled, and the exempted_members in each
|
||||
* AuditLogConfig are exempted.
|
||||
* Example Policy with multiple AuditConfigs:
|
||||
* {
|
||||
* "audit_configs": [
|
||||
* {
|
||||
* "service": "allServices",
|
||||
* "audit_log_configs": [
|
||||
* {
|
||||
* "log_type": "DATA_READ",
|
||||
* "exempted_members": [
|
||||
* "user:jose@example.com"
|
||||
* ]
|
||||
* },
|
||||
* {
|
||||
* "log_type": "DATA_WRITE"
|
||||
* },
|
||||
* {
|
||||
* "log_type": "ADMIN_READ"
|
||||
* }
|
||||
* ]
|
||||
* },
|
||||
* {
|
||||
* "service": "sampleservice.googleapis.com",
|
||||
* "audit_log_configs": [
|
||||
* {
|
||||
* "log_type": "DATA_READ"
|
||||
* },
|
||||
* {
|
||||
* "log_type": "DATA_WRITE",
|
||||
* "exempted_members": [
|
||||
* "user:aliya@example.com"
|
||||
* ]
|
||||
* }
|
||||
* ]
|
||||
* }
|
||||
* ]
|
||||
* }
|
||||
* For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
|
||||
* logging. It also exempts `jose@example.com` from DATA_READ logging, and
|
||||
* `aliya@example.com` from DATA_WRITE logging.
|
||||
*
|
||||
* Generated from protobuf message <code>google.iam.v1.AuditConfig</code>
|
||||
*/
|
||||
class AuditConfig extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* Specifies a service that will be enabled for audit logging.
|
||||
* For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
|
||||
* `allServices` is a special value that covers all services.
|
||||
*
|
||||
* Generated from protobuf field <code>string service = 1;</code>
|
||||
*/
|
||||
protected $service = '';
|
||||
/**
|
||||
* The configuration for logging of each type of permission.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3;</code>
|
||||
*/
|
||||
private $audit_log_configs;
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type string $service
|
||||
* Specifies a service that will be enabled for audit logging.
|
||||
* For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
|
||||
* `allServices` is a special value that covers all services.
|
||||
* @type array<\Google\Cloud\Iam\V1\AuditLogConfig>|\Google\Protobuf\Internal\RepeatedField $audit_log_configs
|
||||
* The configuration for logging of each type of permission.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Iam\V1\Policy::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* Specifies a service that will be enabled for audit logging.
|
||||
* For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
|
||||
* `allServices` is a special value that covers all services.
|
||||
*
|
||||
* Generated from protobuf field <code>string service = 1;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getService()
|
||||
{
|
||||
return $this->service;
|
||||
}
|
||||
/**
|
||||
* Specifies a service that will be enabled for audit logging.
|
||||
* For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
|
||||
* `allServices` is a special value that covers all services.
|
||||
*
|
||||
* Generated from protobuf field <code>string service = 1;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setService($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->service = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* The configuration for logging of each type of permission.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3;</code>
|
||||
* @return \Google\Protobuf\Internal\RepeatedField
|
||||
*/
|
||||
public function getAuditLogConfigs()
|
||||
{
|
||||
return $this->audit_log_configs;
|
||||
}
|
||||
/**
|
||||
* The configuration for logging of each type of permission.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated .google.iam.v1.AuditLogConfig audit_log_configs = 3;</code>
|
||||
* @param array<\Google\Cloud\Iam\V1\AuditLogConfig>|\Google\Protobuf\Internal\RepeatedField $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setAuditLogConfigs($var)
|
||||
{
|
||||
$arr = GPBUtil::checkRepeatedField($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::MESSAGE, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Cloud\Iam\V1\AuditLogConfig::class);
|
||||
$this->audit_log_configs = $arr;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
187
vendor/Gcp/google/common-protos/src/Cloud/Iam/V1/AuditConfigDelta.php
vendored
Normal file
187
vendor/Gcp/google/common-protos/src/Cloud/Iam/V1/AuditConfigDelta.php
vendored
Normal file
@@ -0,0 +1,187 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/iam/v1/policy.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Cloud\Iam\V1;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* One delta entry for AuditConfig. Each individual change (only one
|
||||
* exempted_member in each entry) to a AuditConfig will be a separate entry.
|
||||
*
|
||||
* Generated from protobuf message <code>google.iam.v1.AuditConfigDelta</code>
|
||||
*/
|
||||
class AuditConfigDelta extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* The action that was performed on an audit configuration in a policy.
|
||||
* Required
|
||||
*
|
||||
* Generated from protobuf field <code>.google.iam.v1.AuditConfigDelta.Action action = 1;</code>
|
||||
*/
|
||||
protected $action = 0;
|
||||
/**
|
||||
* Specifies a service that was configured for Cloud Audit Logging.
|
||||
* For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
|
||||
* `allServices` is a special value that covers all services.
|
||||
* Required
|
||||
*
|
||||
* Generated from protobuf field <code>string service = 2;</code>
|
||||
*/
|
||||
protected $service = '';
|
||||
/**
|
||||
* A single identity that is exempted from "data access" audit
|
||||
* logging for the `service` specified above.
|
||||
* Follows the same format of Binding.members.
|
||||
*
|
||||
* Generated from protobuf field <code>string exempted_member = 3;</code>
|
||||
*/
|
||||
protected $exempted_member = '';
|
||||
/**
|
||||
* Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always
|
||||
* enabled, and cannot be configured.
|
||||
* Required
|
||||
*
|
||||
* Generated from protobuf field <code>string log_type = 4;</code>
|
||||
*/
|
||||
protected $log_type = '';
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type int $action
|
||||
* The action that was performed on an audit configuration in a policy.
|
||||
* Required
|
||||
* @type string $service
|
||||
* Specifies a service that was configured for Cloud Audit Logging.
|
||||
* For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
|
||||
* `allServices` is a special value that covers all services.
|
||||
* Required
|
||||
* @type string $exempted_member
|
||||
* A single identity that is exempted from "data access" audit
|
||||
* logging for the `service` specified above.
|
||||
* Follows the same format of Binding.members.
|
||||
* @type string $log_type
|
||||
* Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always
|
||||
* enabled, and cannot be configured.
|
||||
* Required
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Iam\V1\Policy::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* The action that was performed on an audit configuration in a policy.
|
||||
* Required
|
||||
*
|
||||
* Generated from protobuf field <code>.google.iam.v1.AuditConfigDelta.Action action = 1;</code>
|
||||
* @return int
|
||||
*/
|
||||
public function getAction()
|
||||
{
|
||||
return $this->action;
|
||||
}
|
||||
/**
|
||||
* The action that was performed on an audit configuration in a policy.
|
||||
* Required
|
||||
*
|
||||
* Generated from protobuf field <code>.google.iam.v1.AuditConfigDelta.Action action = 1;</code>
|
||||
* @param int $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setAction($var)
|
||||
{
|
||||
GPBUtil::checkEnum($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Cloud\Iam\V1\AuditConfigDelta\Action::class);
|
||||
$this->action = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Specifies a service that was configured for Cloud Audit Logging.
|
||||
* For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
|
||||
* `allServices` is a special value that covers all services.
|
||||
* Required
|
||||
*
|
||||
* Generated from protobuf field <code>string service = 2;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getService()
|
||||
{
|
||||
return $this->service;
|
||||
}
|
||||
/**
|
||||
* Specifies a service that was configured for Cloud Audit Logging.
|
||||
* For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
|
||||
* `allServices` is a special value that covers all services.
|
||||
* Required
|
||||
*
|
||||
* Generated from protobuf field <code>string service = 2;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setService($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->service = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* A single identity that is exempted from "data access" audit
|
||||
* logging for the `service` specified above.
|
||||
* Follows the same format of Binding.members.
|
||||
*
|
||||
* Generated from protobuf field <code>string exempted_member = 3;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getExemptedMember()
|
||||
{
|
||||
return $this->exempted_member;
|
||||
}
|
||||
/**
|
||||
* A single identity that is exempted from "data access" audit
|
||||
* logging for the `service` specified above.
|
||||
* Follows the same format of Binding.members.
|
||||
*
|
||||
* Generated from protobuf field <code>string exempted_member = 3;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setExemptedMember($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->exempted_member = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always
|
||||
* enabled, and cannot be configured.
|
||||
* Required
|
||||
*
|
||||
* Generated from protobuf field <code>string log_type = 4;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getLogType()
|
||||
{
|
||||
return $this->log_type;
|
||||
}
|
||||
/**
|
||||
* Specifies the log_type that was be enabled. ADMIN_ACTIVITY is always
|
||||
* enabled, and cannot be configured.
|
||||
* Required
|
||||
*
|
||||
* Generated from protobuf field <code>string log_type = 4;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setLogType($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->log_type = $var;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
49
vendor/Gcp/google/common-protos/src/Cloud/Iam/V1/AuditConfigDelta/Action.php
vendored
Normal file
49
vendor/Gcp/google/common-protos/src/Cloud/Iam/V1/AuditConfigDelta/Action.php
vendored
Normal file
@@ -0,0 +1,49 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/iam/v1/policy.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Cloud\Iam\V1\AuditConfigDelta;
|
||||
|
||||
use UnexpectedValueException;
|
||||
/**
|
||||
* The type of action performed on an audit configuration in a policy.
|
||||
*
|
||||
* Protobuf type <code>google.iam.v1.AuditConfigDelta.Action</code>
|
||||
*/
|
||||
class Action
|
||||
{
|
||||
/**
|
||||
* Unspecified.
|
||||
*
|
||||
* Generated from protobuf enum <code>ACTION_UNSPECIFIED = 0;</code>
|
||||
*/
|
||||
const ACTION_UNSPECIFIED = 0;
|
||||
/**
|
||||
* Addition of an audit configuration.
|
||||
*
|
||||
* Generated from protobuf enum <code>ADD = 1;</code>
|
||||
*/
|
||||
const ADD = 1;
|
||||
/**
|
||||
* Removal of an audit configuration.
|
||||
*
|
||||
* Generated from protobuf enum <code>REMOVE = 2;</code>
|
||||
*/
|
||||
const REMOVE = 2;
|
||||
private static $valueToName = [self::ACTION_UNSPECIFIED => 'ACTION_UNSPECIFIED', self::ADD => 'ADD', self::REMOVE => 'REMOVE'];
|
||||
public static function name($value)
|
||||
{
|
||||
if (!isset(self::$valueToName[$value])) {
|
||||
throw new UnexpectedValueException(\sprintf('Enum %s has no name defined for value %s', __CLASS__, $value));
|
||||
}
|
||||
return self::$valueToName[$value];
|
||||
}
|
||||
public static function value($name)
|
||||
{
|
||||
$const = __CLASS__ . '::' . \strtoupper($name);
|
||||
if (!\defined($const)) {
|
||||
throw new UnexpectedValueException(\sprintf('Enum %s has no value defined for name %s', __CLASS__, $name));
|
||||
}
|
||||
return \constant($const);
|
||||
}
|
||||
}
|
||||
120
vendor/Gcp/google/common-protos/src/Cloud/Iam/V1/AuditLogConfig.php
vendored
Normal file
120
vendor/Gcp/google/common-protos/src/Cloud/Iam/V1/AuditLogConfig.php
vendored
Normal file
@@ -0,0 +1,120 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/iam/v1/policy.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Cloud\Iam\V1;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* Provides the configuration for logging a type of permissions.
|
||||
* Example:
|
||||
* {
|
||||
* "audit_log_configs": [
|
||||
* {
|
||||
* "log_type": "DATA_READ",
|
||||
* "exempted_members": [
|
||||
* "user:jose@example.com"
|
||||
* ]
|
||||
* },
|
||||
* {
|
||||
* "log_type": "DATA_WRITE"
|
||||
* }
|
||||
* ]
|
||||
* }
|
||||
* This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting
|
||||
* jose@example.com from DATA_READ logging.
|
||||
*
|
||||
* Generated from protobuf message <code>google.iam.v1.AuditLogConfig</code>
|
||||
*/
|
||||
class AuditLogConfig extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* The log type that this config enables.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.iam.v1.AuditLogConfig.LogType log_type = 1;</code>
|
||||
*/
|
||||
protected $log_type = 0;
|
||||
/**
|
||||
* Specifies the identities that do not cause logging for this type of
|
||||
* permission.
|
||||
* Follows the same format of
|
||||
* [Binding.members][google.iam.v1.Binding.members].
|
||||
*
|
||||
* Generated from protobuf field <code>repeated string exempted_members = 2;</code>
|
||||
*/
|
||||
private $exempted_members;
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type int $log_type
|
||||
* The log type that this config enables.
|
||||
* @type array<string>|\Google\Protobuf\Internal\RepeatedField $exempted_members
|
||||
* Specifies the identities that do not cause logging for this type of
|
||||
* permission.
|
||||
* Follows the same format of
|
||||
* [Binding.members][google.iam.v1.Binding.members].
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Iam\V1\Policy::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* The log type that this config enables.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.iam.v1.AuditLogConfig.LogType log_type = 1;</code>
|
||||
* @return int
|
||||
*/
|
||||
public function getLogType()
|
||||
{
|
||||
return $this->log_type;
|
||||
}
|
||||
/**
|
||||
* The log type that this config enables.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.iam.v1.AuditLogConfig.LogType log_type = 1;</code>
|
||||
* @param int $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setLogType($var)
|
||||
{
|
||||
GPBUtil::checkEnum($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Cloud\Iam\V1\AuditLogConfig\LogType::class);
|
||||
$this->log_type = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Specifies the identities that do not cause logging for this type of
|
||||
* permission.
|
||||
* Follows the same format of
|
||||
* [Binding.members][google.iam.v1.Binding.members].
|
||||
*
|
||||
* Generated from protobuf field <code>repeated string exempted_members = 2;</code>
|
||||
* @return \Google\Protobuf\Internal\RepeatedField
|
||||
*/
|
||||
public function getExemptedMembers()
|
||||
{
|
||||
return $this->exempted_members;
|
||||
}
|
||||
/**
|
||||
* Specifies the identities that do not cause logging for this type of
|
||||
* permission.
|
||||
* Follows the same format of
|
||||
* [Binding.members][google.iam.v1.Binding.members].
|
||||
*
|
||||
* Generated from protobuf field <code>repeated string exempted_members = 2;</code>
|
||||
* @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setExemptedMembers($var)
|
||||
{
|
||||
$arr = GPBUtil::checkRepeatedField($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::STRING);
|
||||
$this->exempted_members = $arr;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
56
vendor/Gcp/google/common-protos/src/Cloud/Iam/V1/AuditLogConfig/LogType.php
vendored
Normal file
56
vendor/Gcp/google/common-protos/src/Cloud/Iam/V1/AuditLogConfig/LogType.php
vendored
Normal file
@@ -0,0 +1,56 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/iam/v1/policy.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Cloud\Iam\V1\AuditLogConfig;
|
||||
|
||||
use UnexpectedValueException;
|
||||
/**
|
||||
* The list of valid permission types for which logging can be configured.
|
||||
* Admin writes are always logged, and are not configurable.
|
||||
*
|
||||
* Protobuf type <code>google.iam.v1.AuditLogConfig.LogType</code>
|
||||
*/
|
||||
class LogType
|
||||
{
|
||||
/**
|
||||
* Default case. Should never be this.
|
||||
*
|
||||
* Generated from protobuf enum <code>LOG_TYPE_UNSPECIFIED = 0;</code>
|
||||
*/
|
||||
const LOG_TYPE_UNSPECIFIED = 0;
|
||||
/**
|
||||
* Admin reads. Example: CloudIAM getIamPolicy
|
||||
*
|
||||
* Generated from protobuf enum <code>ADMIN_READ = 1;</code>
|
||||
*/
|
||||
const ADMIN_READ = 1;
|
||||
/**
|
||||
* Data writes. Example: CloudSQL Users create
|
||||
*
|
||||
* Generated from protobuf enum <code>DATA_WRITE = 2;</code>
|
||||
*/
|
||||
const DATA_WRITE = 2;
|
||||
/**
|
||||
* Data reads. Example: CloudSQL Users list
|
||||
*
|
||||
* Generated from protobuf enum <code>DATA_READ = 3;</code>
|
||||
*/
|
||||
const DATA_READ = 3;
|
||||
private static $valueToName = [self::LOG_TYPE_UNSPECIFIED => 'LOG_TYPE_UNSPECIFIED', self::ADMIN_READ => 'ADMIN_READ', self::DATA_WRITE => 'DATA_WRITE', self::DATA_READ => 'DATA_READ'];
|
||||
public static function name($value)
|
||||
{
|
||||
if (!isset(self::$valueToName[$value])) {
|
||||
throw new UnexpectedValueException(\sprintf('Enum %s has no name defined for value %s', __CLASS__, $value));
|
||||
}
|
||||
return self::$valueToName[$value];
|
||||
}
|
||||
public static function value($name)
|
||||
{
|
||||
$const = __CLASS__ . '::' . \strtoupper($name);
|
||||
if (!\defined($const)) {
|
||||
throw new UnexpectedValueException(\sprintf('Enum %s has no value defined for name %s', __CLASS__, $name));
|
||||
}
|
||||
return \constant($const);
|
||||
}
|
||||
}
|
||||
287
vendor/Gcp/google/common-protos/src/Cloud/Iam/V1/Binding.php
vendored
Normal file
287
vendor/Gcp/google/common-protos/src/Cloud/Iam/V1/Binding.php
vendored
Normal file
@@ -0,0 +1,287 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/iam/v1/policy.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Cloud\Iam\V1;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* Associates `members`, or principals, with a `role`.
|
||||
*
|
||||
* Generated from protobuf message <code>google.iam.v1.Binding</code>
|
||||
*/
|
||||
class Binding extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* Role that is assigned to the list of `members`, or principals.
|
||||
* For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
|
||||
*
|
||||
* Generated from protobuf field <code>string role = 1;</code>
|
||||
*/
|
||||
protected $role = '';
|
||||
/**
|
||||
* Specifies the principals requesting access for a Google Cloud resource.
|
||||
* `members` can have the following values:
|
||||
* * `allUsers`: A special identifier that represents anyone who is
|
||||
* on the internet; with or without a Google account.
|
||||
* * `allAuthenticatedUsers`: A special identifier that represents anyone
|
||||
* who is authenticated with a Google account or a service account.
|
||||
* * `user:{emailid}`: An email address that represents a specific Google
|
||||
* account. For example, `alice@example.com` .
|
||||
* * `serviceAccount:{emailid}`: An email address that represents a service
|
||||
* account. For example, `my-other-app@appspot.gserviceaccount.com`.
|
||||
* * `group:{emailid}`: An email address that represents a Google group.
|
||||
* For example, `admins@example.com`.
|
||||
* * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
|
||||
* identifier) representing a user that has been recently deleted. For
|
||||
* example, `alice@example.com?uid=123456789012345678901`. If the user is
|
||||
* recovered, this value reverts to `user:{emailid}` and the recovered user
|
||||
* retains the role in the binding.
|
||||
* * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
|
||||
* unique identifier) representing a service account that has been recently
|
||||
* deleted. For example,
|
||||
* `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
|
||||
* If the service account is undeleted, this value reverts to
|
||||
* `serviceAccount:{emailid}` and the undeleted service account retains the
|
||||
* role in the binding.
|
||||
* * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
|
||||
* identifier) representing a Google group that has been recently
|
||||
* deleted. For example, `admins@example.com?uid=123456789012345678901`. If
|
||||
* the group is recovered, this value reverts to `group:{emailid}` and the
|
||||
* recovered group retains the role in the binding.
|
||||
* * `domain:{domain}`: The G Suite domain (primary) that represents all the
|
||||
* users of that domain. For example, `google.com` or `example.com`.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated string members = 2;</code>
|
||||
*/
|
||||
private $members;
|
||||
/**
|
||||
* The condition that is associated with this binding.
|
||||
* If the condition evaluates to `true`, then this binding applies to the
|
||||
* current request.
|
||||
* If the condition evaluates to `false`, then this binding does not apply to
|
||||
* the current request. However, a different role binding might grant the same
|
||||
* role to one or more of the principals in this binding.
|
||||
* To learn which resources support conditions in their IAM policies, see the
|
||||
* [IAM
|
||||
* documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
||||
*
|
||||
* Generated from protobuf field <code>.google.type.Expr condition = 3;</code>
|
||||
*/
|
||||
protected $condition = null;
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type string $role
|
||||
* Role that is assigned to the list of `members`, or principals.
|
||||
* For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
|
||||
* @type array<string>|\Google\Protobuf\Internal\RepeatedField $members
|
||||
* Specifies the principals requesting access for a Google Cloud resource.
|
||||
* `members` can have the following values:
|
||||
* * `allUsers`: A special identifier that represents anyone who is
|
||||
* on the internet; with or without a Google account.
|
||||
* * `allAuthenticatedUsers`: A special identifier that represents anyone
|
||||
* who is authenticated with a Google account or a service account.
|
||||
* * `user:{emailid}`: An email address that represents a specific Google
|
||||
* account. For example, `alice@example.com` .
|
||||
* * `serviceAccount:{emailid}`: An email address that represents a service
|
||||
* account. For example, `my-other-app@appspot.gserviceaccount.com`.
|
||||
* * `group:{emailid}`: An email address that represents a Google group.
|
||||
* For example, `admins@example.com`.
|
||||
* * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
|
||||
* identifier) representing a user that has been recently deleted. For
|
||||
* example, `alice@example.com?uid=123456789012345678901`. If the user is
|
||||
* recovered, this value reverts to `user:{emailid}` and the recovered user
|
||||
* retains the role in the binding.
|
||||
* * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
|
||||
* unique identifier) representing a service account that has been recently
|
||||
* deleted. For example,
|
||||
* `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
|
||||
* If the service account is undeleted, this value reverts to
|
||||
* `serviceAccount:{emailid}` and the undeleted service account retains the
|
||||
* role in the binding.
|
||||
* * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
|
||||
* identifier) representing a Google group that has been recently
|
||||
* deleted. For example, `admins@example.com?uid=123456789012345678901`. If
|
||||
* the group is recovered, this value reverts to `group:{emailid}` and the
|
||||
* recovered group retains the role in the binding.
|
||||
* * `domain:{domain}`: The G Suite domain (primary) that represents all the
|
||||
* users of that domain. For example, `google.com` or `example.com`.
|
||||
* @type \Google\Type\Expr $condition
|
||||
* The condition that is associated with this binding.
|
||||
* If the condition evaluates to `true`, then this binding applies to the
|
||||
* current request.
|
||||
* If the condition evaluates to `false`, then this binding does not apply to
|
||||
* the current request. However, a different role binding might grant the same
|
||||
* role to one or more of the principals in this binding.
|
||||
* To learn which resources support conditions in their IAM policies, see the
|
||||
* [IAM
|
||||
* documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Iam\V1\Policy::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* Role that is assigned to the list of `members`, or principals.
|
||||
* For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
|
||||
*
|
||||
* Generated from protobuf field <code>string role = 1;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getRole()
|
||||
{
|
||||
return $this->role;
|
||||
}
|
||||
/**
|
||||
* Role that is assigned to the list of `members`, or principals.
|
||||
* For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
|
||||
*
|
||||
* Generated from protobuf field <code>string role = 1;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setRole($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->role = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Specifies the principals requesting access for a Google Cloud resource.
|
||||
* `members` can have the following values:
|
||||
* * `allUsers`: A special identifier that represents anyone who is
|
||||
* on the internet; with or without a Google account.
|
||||
* * `allAuthenticatedUsers`: A special identifier that represents anyone
|
||||
* who is authenticated with a Google account or a service account.
|
||||
* * `user:{emailid}`: An email address that represents a specific Google
|
||||
* account. For example, `alice@example.com` .
|
||||
* * `serviceAccount:{emailid}`: An email address that represents a service
|
||||
* account. For example, `my-other-app@appspot.gserviceaccount.com`.
|
||||
* * `group:{emailid}`: An email address that represents a Google group.
|
||||
* For example, `admins@example.com`.
|
||||
* * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
|
||||
* identifier) representing a user that has been recently deleted. For
|
||||
* example, `alice@example.com?uid=123456789012345678901`. If the user is
|
||||
* recovered, this value reverts to `user:{emailid}` and the recovered user
|
||||
* retains the role in the binding.
|
||||
* * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
|
||||
* unique identifier) representing a service account that has been recently
|
||||
* deleted. For example,
|
||||
* `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
|
||||
* If the service account is undeleted, this value reverts to
|
||||
* `serviceAccount:{emailid}` and the undeleted service account retains the
|
||||
* role in the binding.
|
||||
* * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
|
||||
* identifier) representing a Google group that has been recently
|
||||
* deleted. For example, `admins@example.com?uid=123456789012345678901`. If
|
||||
* the group is recovered, this value reverts to `group:{emailid}` and the
|
||||
* recovered group retains the role in the binding.
|
||||
* * `domain:{domain}`: The G Suite domain (primary) that represents all the
|
||||
* users of that domain. For example, `google.com` or `example.com`.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated string members = 2;</code>
|
||||
* @return \Google\Protobuf\Internal\RepeatedField
|
||||
*/
|
||||
public function getMembers()
|
||||
{
|
||||
return $this->members;
|
||||
}
|
||||
/**
|
||||
* Specifies the principals requesting access for a Google Cloud resource.
|
||||
* `members` can have the following values:
|
||||
* * `allUsers`: A special identifier that represents anyone who is
|
||||
* on the internet; with or without a Google account.
|
||||
* * `allAuthenticatedUsers`: A special identifier that represents anyone
|
||||
* who is authenticated with a Google account or a service account.
|
||||
* * `user:{emailid}`: An email address that represents a specific Google
|
||||
* account. For example, `alice@example.com` .
|
||||
* * `serviceAccount:{emailid}`: An email address that represents a service
|
||||
* account. For example, `my-other-app@appspot.gserviceaccount.com`.
|
||||
* * `group:{emailid}`: An email address that represents a Google group.
|
||||
* For example, `admins@example.com`.
|
||||
* * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
|
||||
* identifier) representing a user that has been recently deleted. For
|
||||
* example, `alice@example.com?uid=123456789012345678901`. If the user is
|
||||
* recovered, this value reverts to `user:{emailid}` and the recovered user
|
||||
* retains the role in the binding.
|
||||
* * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
|
||||
* unique identifier) representing a service account that has been recently
|
||||
* deleted. For example,
|
||||
* `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
|
||||
* If the service account is undeleted, this value reverts to
|
||||
* `serviceAccount:{emailid}` and the undeleted service account retains the
|
||||
* role in the binding.
|
||||
* * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
|
||||
* identifier) representing a Google group that has been recently
|
||||
* deleted. For example, `admins@example.com?uid=123456789012345678901`. If
|
||||
* the group is recovered, this value reverts to `group:{emailid}` and the
|
||||
* recovered group retains the role in the binding.
|
||||
* * `domain:{domain}`: The G Suite domain (primary) that represents all the
|
||||
* users of that domain. For example, `google.com` or `example.com`.
|
||||
*
|
||||
* Generated from protobuf field <code>repeated string members = 2;</code>
|
||||
* @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setMembers($var)
|
||||
{
|
||||
$arr = GPBUtil::checkRepeatedField($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType::STRING);
|
||||
$this->members = $arr;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* The condition that is associated with this binding.
|
||||
* If the condition evaluates to `true`, then this binding applies to the
|
||||
* current request.
|
||||
* If the condition evaluates to `false`, then this binding does not apply to
|
||||
* the current request. However, a different role binding might grant the same
|
||||
* role to one or more of the principals in this binding.
|
||||
* To learn which resources support conditions in their IAM policies, see the
|
||||
* [IAM
|
||||
* documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
||||
*
|
||||
* Generated from protobuf field <code>.google.type.Expr condition = 3;</code>
|
||||
* @return \Google\Type\Expr|null
|
||||
*/
|
||||
public function getCondition()
|
||||
{
|
||||
return $this->condition;
|
||||
}
|
||||
public function hasCondition()
|
||||
{
|
||||
return isset($this->condition);
|
||||
}
|
||||
public function clearCondition()
|
||||
{
|
||||
unset($this->condition);
|
||||
}
|
||||
/**
|
||||
* The condition that is associated with this binding.
|
||||
* If the condition evaluates to `true`, then this binding applies to the
|
||||
* current request.
|
||||
* If the condition evaluates to `false`, then this binding does not apply to
|
||||
* the current request. However, a different role binding might grant the same
|
||||
* role to one or more of the principals in this binding.
|
||||
* To learn which resources support conditions in their IAM policies, see the
|
||||
* [IAM
|
||||
* documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
||||
*
|
||||
* Generated from protobuf field <code>.google.type.Expr condition = 3;</code>
|
||||
* @param \Google\Type\Expr $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setCondition($var)
|
||||
{
|
||||
GPBUtil::checkMessage($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Type\Expr::class);
|
||||
$this->condition = $var;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
183
vendor/Gcp/google/common-protos/src/Cloud/Iam/V1/BindingDelta.php
vendored
Normal file
183
vendor/Gcp/google/common-protos/src/Cloud/Iam/V1/BindingDelta.php
vendored
Normal file
@@ -0,0 +1,183 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/iam/v1/policy.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Cloud\Iam\V1;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* One delta entry for Binding. Each individual change (only one member in each
|
||||
* entry) to a binding will be a separate entry.
|
||||
*
|
||||
* Generated from protobuf message <code>google.iam.v1.BindingDelta</code>
|
||||
*/
|
||||
class BindingDelta extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* The action that was performed on a Binding.
|
||||
* Required
|
||||
*
|
||||
* Generated from protobuf field <code>.google.iam.v1.BindingDelta.Action action = 1;</code>
|
||||
*/
|
||||
protected $action = 0;
|
||||
/**
|
||||
* Role that is assigned to `members`.
|
||||
* For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
|
||||
* Required
|
||||
*
|
||||
* Generated from protobuf field <code>string role = 2;</code>
|
||||
*/
|
||||
protected $role = '';
|
||||
/**
|
||||
* A single identity requesting access for a Google Cloud resource.
|
||||
* Follows the same format of Binding.members.
|
||||
* Required
|
||||
*
|
||||
* Generated from protobuf field <code>string member = 3;</code>
|
||||
*/
|
||||
protected $member = '';
|
||||
/**
|
||||
* The condition that is associated with this binding.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.type.Expr condition = 4;</code>
|
||||
*/
|
||||
protected $condition = null;
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type int $action
|
||||
* The action that was performed on a Binding.
|
||||
* Required
|
||||
* @type string $role
|
||||
* Role that is assigned to `members`.
|
||||
* For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
|
||||
* Required
|
||||
* @type string $member
|
||||
* A single identity requesting access for a Google Cloud resource.
|
||||
* Follows the same format of Binding.members.
|
||||
* Required
|
||||
* @type \Google\Type\Expr $condition
|
||||
* The condition that is associated with this binding.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Iam\V1\Policy::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* The action that was performed on a Binding.
|
||||
* Required
|
||||
*
|
||||
* Generated from protobuf field <code>.google.iam.v1.BindingDelta.Action action = 1;</code>
|
||||
* @return int
|
||||
*/
|
||||
public function getAction()
|
||||
{
|
||||
return $this->action;
|
||||
}
|
||||
/**
|
||||
* The action that was performed on a Binding.
|
||||
* Required
|
||||
*
|
||||
* Generated from protobuf field <code>.google.iam.v1.BindingDelta.Action action = 1;</code>
|
||||
* @param int $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setAction($var)
|
||||
{
|
||||
GPBUtil::checkEnum($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Cloud\Iam\V1\BindingDelta\Action::class);
|
||||
$this->action = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Role that is assigned to `members`.
|
||||
* For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
|
||||
* Required
|
||||
*
|
||||
* Generated from protobuf field <code>string role = 2;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getRole()
|
||||
{
|
||||
return $this->role;
|
||||
}
|
||||
/**
|
||||
* Role that is assigned to `members`.
|
||||
* For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
|
||||
* Required
|
||||
*
|
||||
* Generated from protobuf field <code>string role = 2;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setRole($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->role = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* A single identity requesting access for a Google Cloud resource.
|
||||
* Follows the same format of Binding.members.
|
||||
* Required
|
||||
*
|
||||
* Generated from protobuf field <code>string member = 3;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getMember()
|
||||
{
|
||||
return $this->member;
|
||||
}
|
||||
/**
|
||||
* A single identity requesting access for a Google Cloud resource.
|
||||
* Follows the same format of Binding.members.
|
||||
* Required
|
||||
*
|
||||
* Generated from protobuf field <code>string member = 3;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setMember($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->member = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* The condition that is associated with this binding.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.type.Expr condition = 4;</code>
|
||||
* @return \Google\Type\Expr|null
|
||||
*/
|
||||
public function getCondition()
|
||||
{
|
||||
return $this->condition;
|
||||
}
|
||||
public function hasCondition()
|
||||
{
|
||||
return isset($this->condition);
|
||||
}
|
||||
public function clearCondition()
|
||||
{
|
||||
unset($this->condition);
|
||||
}
|
||||
/**
|
||||
* The condition that is associated with this binding.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.type.Expr condition = 4;</code>
|
||||
* @param \Google\Type\Expr $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setCondition($var)
|
||||
{
|
||||
GPBUtil::checkMessage($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Type\Expr::class);
|
||||
$this->condition = $var;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
49
vendor/Gcp/google/common-protos/src/Cloud/Iam/V1/BindingDelta/Action.php
vendored
Normal file
49
vendor/Gcp/google/common-protos/src/Cloud/Iam/V1/BindingDelta/Action.php
vendored
Normal file
@@ -0,0 +1,49 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/iam/v1/policy.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Cloud\Iam\V1\BindingDelta;
|
||||
|
||||
use UnexpectedValueException;
|
||||
/**
|
||||
* The type of action performed on a Binding in a policy.
|
||||
*
|
||||
* Protobuf type <code>google.iam.v1.BindingDelta.Action</code>
|
||||
*/
|
||||
class Action
|
||||
{
|
||||
/**
|
||||
* Unspecified.
|
||||
*
|
||||
* Generated from protobuf enum <code>ACTION_UNSPECIFIED = 0;</code>
|
||||
*/
|
||||
const ACTION_UNSPECIFIED = 0;
|
||||
/**
|
||||
* Addition of a Binding.
|
||||
*
|
||||
* Generated from protobuf enum <code>ADD = 1;</code>
|
||||
*/
|
||||
const ADD = 1;
|
||||
/**
|
||||
* Removal of a Binding.
|
||||
*
|
||||
* Generated from protobuf enum <code>REMOVE = 2;</code>
|
||||
*/
|
||||
const REMOVE = 2;
|
||||
private static $valueToName = [self::ACTION_UNSPECIFIED => 'ACTION_UNSPECIFIED', self::ADD => 'ADD', self::REMOVE => 'REMOVE'];
|
||||
public static function name($value)
|
||||
{
|
||||
if (!isset(self::$valueToName[$value])) {
|
||||
throw new UnexpectedValueException(\sprintf('Enum %s has no name defined for value %s', __CLASS__, $value));
|
||||
}
|
||||
return self::$valueToName[$value];
|
||||
}
|
||||
public static function value($name)
|
||||
{
|
||||
$const = __CLASS__ . '::' . \strtoupper($name);
|
||||
if (!\defined($const)) {
|
||||
throw new UnexpectedValueException(\sprintf('Enum %s has no value defined for name %s', __CLASS__, $name));
|
||||
}
|
||||
return \constant($const);
|
||||
}
|
||||
}
|
||||
108
vendor/Gcp/google/common-protos/src/Cloud/Iam/V1/GetIamPolicyRequest.php
vendored
Normal file
108
vendor/Gcp/google/common-protos/src/Cloud/Iam/V1/GetIamPolicyRequest.php
vendored
Normal file
@@ -0,0 +1,108 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/iam/v1/iam_policy.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Cloud\Iam\V1;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* Request message for `GetIamPolicy` method.
|
||||
*
|
||||
* Generated from protobuf message <code>google.iam.v1.GetIamPolicyRequest</code>
|
||||
*/
|
||||
class GetIamPolicyRequest extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* REQUIRED: The resource for which the policy is being requested.
|
||||
* See the operation documentation for the appropriate value for this field.
|
||||
*
|
||||
* Generated from protobuf field <code>string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
|
||||
*/
|
||||
protected $resource = '';
|
||||
/**
|
||||
* OPTIONAL: A `GetPolicyOptions` object for specifying options to
|
||||
* `GetIamPolicy`.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.iam.v1.GetPolicyOptions options = 2;</code>
|
||||
*/
|
||||
protected $options = null;
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type string $resource
|
||||
* REQUIRED: The resource for which the policy is being requested.
|
||||
* See the operation documentation for the appropriate value for this field.
|
||||
* @type \Google\Cloud\Iam\V1\GetPolicyOptions $options
|
||||
* OPTIONAL: A `GetPolicyOptions` object for specifying options to
|
||||
* `GetIamPolicy`.
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Iam\V1\IamPolicy::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* REQUIRED: The resource for which the policy is being requested.
|
||||
* See the operation documentation for the appropriate value for this field.
|
||||
*
|
||||
* Generated from protobuf field <code>string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getResource()
|
||||
{
|
||||
return $this->resource;
|
||||
}
|
||||
/**
|
||||
* REQUIRED: The resource for which the policy is being requested.
|
||||
* See the operation documentation for the appropriate value for this field.
|
||||
*
|
||||
* Generated from protobuf field <code>string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setResource($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->resource = $var;
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* OPTIONAL: A `GetPolicyOptions` object for specifying options to
|
||||
* `GetIamPolicy`.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.iam.v1.GetPolicyOptions options = 2;</code>
|
||||
* @return \Google\Cloud\Iam\V1\GetPolicyOptions|null
|
||||
*/
|
||||
public function getOptions()
|
||||
{
|
||||
return $this->options;
|
||||
}
|
||||
public function hasOptions()
|
||||
{
|
||||
return isset($this->options);
|
||||
}
|
||||
public function clearOptions()
|
||||
{
|
||||
unset($this->options);
|
||||
}
|
||||
/**
|
||||
* OPTIONAL: A `GetPolicyOptions` object for specifying options to
|
||||
* `GetIamPolicy`.
|
||||
*
|
||||
* Generated from protobuf field <code>.google.iam.v1.GetPolicyOptions options = 2;</code>
|
||||
* @param \Google\Cloud\Iam\V1\GetPolicyOptions $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setOptions($var)
|
||||
{
|
||||
GPBUtil::checkMessage($var, \DeliciousBrains\WP_Offload_Media\Gcp\Google\Cloud\Iam\V1\GetPolicyOptions::class);
|
||||
$this->options = $var;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
113
vendor/Gcp/google/common-protos/src/Cloud/Iam/V1/GetPolicyOptions.php
vendored
Normal file
113
vendor/Gcp/google/common-protos/src/Cloud/Iam/V1/GetPolicyOptions.php
vendored
Normal file
@@ -0,0 +1,113 @@
|
||||
<?php
|
||||
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: google/iam/v1/options.proto
|
||||
namespace DeliciousBrains\WP_Offload_Media\Gcp\Google\Cloud\Iam\V1;
|
||||
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBType;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\RepeatedField;
|
||||
use DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\GPBUtil;
|
||||
/**
|
||||
* Encapsulates settings provided to GetIamPolicy.
|
||||
*
|
||||
* Generated from protobuf message <code>google.iam.v1.GetPolicyOptions</code>
|
||||
*/
|
||||
class GetPolicyOptions extends \DeliciousBrains\WP_Offload_Media\Gcp\Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* Optional. The maximum policy version that will be used to format the
|
||||
* policy.
|
||||
* Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
||||
* rejected.
|
||||
* Requests for policies with any conditional role bindings must specify
|
||||
* version 3. Policies with no conditional role bindings may specify any valid
|
||||
* value or leave the field unset.
|
||||
* The policy in the response might use the policy version that you specified,
|
||||
* or it might use a lower policy version. For example, if you specify version
|
||||
* 3, but the policy has no conditional role bindings, the response uses
|
||||
* version 1.
|
||||
* To learn which resources support conditions in their IAM policies, see the
|
||||
* [IAM
|
||||
* documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
||||
*
|
||||
* Generated from protobuf field <code>int32 requested_policy_version = 1;</code>
|
||||
*/
|
||||
protected $requested_policy_version = 0;
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type int $requested_policy_version
|
||||
* Optional. The maximum policy version that will be used to format the
|
||||
* policy.
|
||||
* Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
||||
* rejected.
|
||||
* Requests for policies with any conditional role bindings must specify
|
||||
* version 3. Policies with no conditional role bindings may specify any valid
|
||||
* value or leave the field unset.
|
||||
* The policy in the response might use the policy version that you specified,
|
||||
* or it might use a lower policy version. For example, if you specify version
|
||||
* 3, but the policy has no conditional role bindings, the response uses
|
||||
* version 1.
|
||||
* To learn which resources support conditions in their IAM policies, see the
|
||||
* [IAM
|
||||
* documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL)
|
||||
{
|
||||
\DeliciousBrains\WP_Offload_Media\Gcp\GPBMetadata\Google\Iam\V1\Options::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
/**
|
||||
* Optional. The maximum policy version that will be used to format the
|
||||
* policy.
|
||||
* Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
||||
* rejected.
|
||||
* Requests for policies with any conditional role bindings must specify
|
||||
* version 3. Policies with no conditional role bindings may specify any valid
|
||||
* value or leave the field unset.
|
||||
* The policy in the response might use the policy version that you specified,
|
||||
* or it might use a lower policy version. For example, if you specify version
|
||||
* 3, but the policy has no conditional role bindings, the response uses
|
||||
* version 1.
|
||||
* To learn which resources support conditions in their IAM policies, see the
|
||||
* [IAM
|
||||
* documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
||||
*
|
||||
* Generated from protobuf field <code>int32 requested_policy_version = 1;</code>
|
||||
* @return int
|
||||
*/
|
||||
public function getRequestedPolicyVersion()
|
||||
{
|
||||
return $this->requested_policy_version;
|
||||
}
|
||||
/**
|
||||
* Optional. The maximum policy version that will be used to format the
|
||||
* policy.
|
||||
* Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
||||
* rejected.
|
||||
* Requests for policies with any conditional role bindings must specify
|
||||
* version 3. Policies with no conditional role bindings may specify any valid
|
||||
* value or leave the field unset.
|
||||
* The policy in the response might use the policy version that you specified,
|
||||
* or it might use a lower policy version. For example, if you specify version
|
||||
* 3, but the policy has no conditional role bindings, the response uses
|
||||
* version 1.
|
||||
* To learn which resources support conditions in their IAM policies, see the
|
||||
* [IAM
|
||||
* documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
||||
*
|
||||
* Generated from protobuf field <code>int32 requested_policy_version = 1;</code>
|
||||
* @param int $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setRequestedPolicyVersion($var)
|
||||
{
|
||||
GPBUtil::checkInt32($var);
|
||||
$this->requested_policy_version = $var;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user