google.api.ClientLibraryOrganization
*/
class ClientLibraryOrganization
{
/**
* Not useful.
*
* Generated from protobuf enum CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 0;
*/
const CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 0;
/**
* Google Cloud Platform Org.
*
* Generated from protobuf enum CLOUD = 1;
*/
const CLOUD = 1;
/**
* Ads (Advertising) Org.
*
* Generated from protobuf enum ADS = 2;
*/
const ADS = 2;
/**
* Photos Org.
*
* Generated from protobuf enum PHOTOS = 3;
*/
const PHOTOS = 3;
/**
* Street View Org.
*
* Generated from protobuf enum STREET_VIEW = 4;
*/
const STREET_VIEW = 4;
/**
* Shopping Org.
*
* Generated from protobuf enum SHOPPING = 5;
*/
const SHOPPING = 5;
/**
* Geo Org.
*
* Generated from protobuf enum GEO = 6;
*/
const GEO = 6;
/**
* Generative AI - https://developers.generativeai.google
*
* Generated from protobuf enum GENERATIVE_AI = 7;
*/
const GENERATIVE_AI = 7;
private static $valueToName = [self::CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED => 'CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED', self::CLOUD => 'CLOUD', self::ADS => 'ADS', self::PHOTOS => 'PHOTOS', self::STREET_VIEW => 'STREET_VIEW', self::SHOPPING => 'SHOPPING', self::GEO => 'GEO', self::GENERATIVE_AI => 'GENERATIVE_AI'];
public static function name($value)
{
if (!isset(self::$valueToName[$value])) {
throw new UnexpectedValueException(\sprintf('Enum %s has no name defined for value %s', __CLASS__, $value));
}
return self::$valueToName[$value];
}
public static function value($name)
{
$const = __CLASS__ . '::' . \strtoupper($name);
if (!\defined($const)) {
throw new UnexpectedValueException(\sprintf('Enum %s has no value defined for name %s', __CLASS__, $name));
}
return \constant($const);
}
}