PluginProbe
Media Cloud Sync / 1.2.0
Media Cloud Sync v1.2.0
1.4.2 1.4.1 1.4.0 1.3.12 1.3.11 1.3.10 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.2.0 1.2.10 1.2.11 1.2.12 1.2.13 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 All 36 releases
media-cloud-sync / includes / sdk / google / google / common-protos / src / Api / ClientLibraryDestination.php

ClientLibraryDestination.php in Media Cloud Sync 1.2.0, at includes/sdk/google/google/common-protos/src/Api/ClientLibraryDestination.php

52 lines 1.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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 * To where should client libraries be published?
10 *
11 * Protobuf type <code>google.api.ClientLibraryDestination</code>
12 */
13 class ClientLibraryDestination
14 {
15 /**
16 * Client libraries will neither be generated nor published to package
17 * managers.
18 *
19 * Generated from protobuf enum <code>CLIENT_LIBRARY_DESTINATION_UNSPECIFIED = 0;</code>
20 */
21 const CLIENT_LIBRARY_DESTINATION_UNSPECIFIED = 0;
22 /**
23 * Generate the client library in a repo under github.com/googleapis,
24 * but don't publish it to package managers.
25 *
26 * Generated from protobuf enum <code>GITHUB = 10;</code>
27 */
28 const GITHUB = 10;
29 /**
30 * Publish the library to package managers like nuget.org and npmjs.com.
31 *
32 * Generated from protobuf enum <code>PACKAGE_MANAGER = 20;</code>
33 */
34 const PACKAGE_MANAGER = 20;
35 private static $valueToName = [self::CLIENT_LIBRARY_DESTINATION_UNSPECIFIED => 'CLIENT_LIBRARY_DESTINATION_UNSPECIFIED', self::GITHUB => 'GITHUB', self::PACKAGE_MANAGER => 'PACKAGE_MANAGER'];
36 public static function name($value)
37 {
38 if (!isset(self::$valueToName[$value])) {
39 throw new UnexpectedValueException(sprintf('Enum %s has no name defined for value %s', __CLASS__, $value));
40 }
41 return self::$valueToName[$value];
42 }
43 public static function value($name)
44 {
45 $const = __CLASS__ . '::' . strtoupper($name);
46 if (!defined($const)) {
47 throw new UnexpectedValueException(sprintf('Enum %s has no value defined for name %s', __CLASS__, $name));
48 }
49 return constant($const);
50 }
51 }
52