PluginProbe ʕ •ᴥ•ʔ
ShareThis Dashboard for Google Analytics / trunk
ShareThis Dashboard for Google Analytics vtrunk
3.3.2 trunk 1.0.7 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.1 2.1.2 2.1.3 2.1.4 2.1.5 2.2.5 2.3.5 2.3.6 2.3.7 2.3.8 2.4.0 2.4.1 2.5.0 2.5.1 2.5.2 2.5.3 2.5.4 2.5.5 3.0.0 3.1.0 3.1.1 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 3.1.7 3.2.0 3.2.1 3.2.2 3.2.3 3.2.4 3.3.0 3.3.1
googleanalytics / lib / analytics-admin / vendor / google / protobuf / src / Google / Protobuf / Syntax.php
googleanalytics / lib / analytics-admin / vendor / google / protobuf / src / Google / Protobuf Last commit date
Field 3 years ago Internal 2 years ago Any.php 2 years ago Api.php 3 years ago BoolValue.php 3 years ago BytesValue.php 3 years ago Descriptor.php 2 years ago DescriptorPool.php 2 years ago DoubleValue.php 3 years ago Duration.php 3 years ago Enum.php 3 years ago EnumDescriptor.php 2 years ago EnumValue.php 3 years ago EnumValueDescriptor.php 2 years ago Field.php 3 years ago FieldDescriptor.php 2 years ago FieldMask.php 3 years ago Field_Cardinality.php 3 years ago Field_Kind.php 3 years ago FloatValue.php 3 years ago GPBEmpty.php 3 years ago Int32Value.php 3 years ago Int64Value.php 3 years ago ListValue.php 3 years ago Method.php 3 years ago Mixin.php 3 years ago NullValue.php 3 years ago OneofDescriptor.php 2 years ago Option.php 3 years ago SourceContext.php 3 years ago StringValue.php 3 years ago Struct.php 3 years ago Syntax.php 3 years ago Timestamp.php 3 years ago Type.php 3 years ago UInt32Value.php 3 years ago UInt64Value.php 3 years ago Value.php 3 years ago
Syntax.php
55 lines
1 <?php
2 # Generated by the protocol buffer compiler. DO NOT EDIT!
3 # source: google/protobuf/type.proto
4
5 namespace Google\Protobuf;
6
7 use UnexpectedValueException;
8
9 /**
10 * The syntax in which a protocol buffer element is defined.
11 *
12 * Protobuf type <code>google.protobuf.Syntax</code>
13 */
14 class Syntax
15 {
16 /**
17 * Syntax `proto2`.
18 *
19 * Generated from protobuf enum <code>SYNTAX_PROTO2 = 0;</code>
20 */
21 const SYNTAX_PROTO2 = 0;
22 /**
23 * Syntax `proto3`.
24 *
25 * Generated from protobuf enum <code>SYNTAX_PROTO3 = 1;</code>
26 */
27 const SYNTAX_PROTO3 = 1;
28
29 private static $valueToName = [
30 self::SYNTAX_PROTO2 => 'SYNTAX_PROTO2',
31 self::SYNTAX_PROTO3 => 'SYNTAX_PROTO3',
32 ];
33
34 public static function name($value)
35 {
36 if (!isset(self::$valueToName[$value])) {
37 throw new UnexpectedValueException(sprintf(
38 'Enum %s has no name defined for value %s', __CLASS__, $value));
39 }
40 return self::$valueToName[$value];
41 }
42
43
44 public static function value($name)
45 {
46 $const = __CLASS__ . '::' . strtoupper($name);
47 if (!defined($const)) {
48 throw new UnexpectedValueException(sprintf(
49 'Enum %s has no value defined for name %s', __CLASS__, $name));
50 }
51 return constant($const);
52 }
53 }
54
55