media-cloud-sync
/
includes
/
sdk
/
google
/
google
/
common-protos
/
src
/
Api
/
ClientLibraryOrganization.php
ClientLibraryOrganization.php in Media Cloud Sync 1.1.0, at includes/sdk/google/google/common-protos/src/Api/ClientLibraryOrganization.php
| 1 | <?php |
| 2 | |
| 3 | # Generated by the protocol buffer compiler. DO NOT EDIT! |
| 4 | # source: google/api/client.proto |
| 5 | namespace Dudlewebs\WPMCS\Google\Api; |
| 6 | |
| 7 | use UnexpectedValueException; |
| 8 | /** |
| 9 | * The organization for which the client libraries are being published. |
| 10 | * Affects the url where generated docs are published, etc. |
| 11 | * |
| 12 | * Protobuf type <code>google.api.ClientLibraryOrganization</code> |
| 13 | */ |
| 14 | class ClientLibraryOrganization |
| 15 | { |
| 16 | /** |
| 17 | * Not useful. |
| 18 | * |
| 19 | * Generated from protobuf enum <code>CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 0;</code> |
| 20 | */ |
| 21 | const CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 0; |
| 22 | /** |
| 23 | * Google Cloud Platform Org. |
| 24 | * |
| 25 | * Generated from protobuf enum <code>CLOUD = 1;</code> |
| 26 | */ |
| 27 | const CLOUD = 1; |
| 28 | /** |
| 29 | * Ads (Advertising) Org. |
| 30 | * |
| 31 | * Generated from protobuf enum <code>ADS = 2;</code> |
| 32 | */ |
| 33 | const ADS = 2; |
| 34 | /** |
| 35 | * Photos Org. |
| 36 | * |
| 37 | * Generated from protobuf enum <code>PHOTOS = 3;</code> |
| 38 | */ |
| 39 | const PHOTOS = 3; |
| 40 | /** |
| 41 | * Street View Org. |
| 42 | * |
| 43 | * Generated from protobuf enum <code>STREET_VIEW = 4;</code> |
| 44 | */ |
| 45 | const STREET_VIEW = 4; |
| 46 | /** |
| 47 | * Shopping Org. |
| 48 | * |
| 49 | * Generated from protobuf enum <code>SHOPPING = 5;</code> |
| 50 | */ |
| 51 | const SHOPPING = 5; |
| 52 | /** |
| 53 | * Geo Org. |
| 54 | * |
| 55 | * Generated from protobuf enum <code>GEO = 6;</code> |
| 56 | */ |
| 57 | const GEO = 6; |
| 58 | /** |
| 59 | * Generative AI - https://developers.generativeai.google |
| 60 | * |
| 61 | * Generated from protobuf enum <code>GENERATIVE_AI = 7;</code> |
| 62 | */ |
| 63 | const GENERATIVE_AI = 7; |
| 64 | 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']; |
| 65 | public static function name($value) |
| 66 | { |
| 67 | if (!isset(self::$valueToName[$value])) { |
| 68 | throw new UnexpectedValueException(sprintf('Enum %s has no name defined for value %s', __CLASS__, $value)); |
| 69 | } |
| 70 | return self::$valueToName[$value]; |
| 71 | } |
| 72 | public static function value($name) |
| 73 | { |
| 74 | $const = __CLASS__ . '::' . strtoupper($name); |
| 75 | if (!defined($const)) { |
| 76 | throw new UnexpectedValueException(sprintf('Enum %s has no value defined for name %s', __CLASS__, $name)); |
| 77 | } |
| 78 | return constant($const); |
| 79 | } |
| 80 | } |
| 81 |