googleanalytics
/
lib
/
analytics-admin
/
vendor
/
google
/
cloud
/
AnalyticsData
/
src
/
V1beta
/
Compatibility.php
googleanalytics
/
lib
/
analytics-admin
/
vendor
/
google
/
cloud
/
AnalyticsData
/
src
/
V1beta
Last commit date
CohortsRange
3 years ago
DimensionExpression
3 years ago
Filter
3 years ago
Gapic
3 years ago
MetricMetadata
3 years ago
OrderBy
3 years ago
ResponseMetaData
3 years ago
resources
3 years ago
BatchRunPivotReportsRequest.php
3 years ago
BatchRunPivotReportsResponse.php
3 years ago
BatchRunReportsRequest.php
3 years ago
BatchRunReportsResponse.php
3 years ago
BetaAnalyticsDataClient.php
3 years ago
BetaAnalyticsDataGrpcClient.php
3 years ago
CheckCompatibilityRequest.php
3 years ago
CheckCompatibilityResponse.php
3 years ago
Cohort.php
3 years ago
CohortReportSettings.php
3 years ago
CohortSpec.php
3 years ago
CohortsRange.php
3 years ago
Compatibility.php
3 years ago
DateRange.php
3 years ago
Dimension.php
3 years ago
DimensionCompatibility.php
3 years ago
DimensionExpression.php
3 years ago
DimensionHeader.php
3 years ago
DimensionMetadata.php
3 years ago
DimensionValue.php
3 years ago
Filter.php
3 years ago
FilterExpression.php
3 years ago
FilterExpressionList.php
3 years ago
GetMetadataRequest.php
3 years ago
Metadata.php
3 years ago
Metric.php
3 years ago
MetricAggregation.php
3 years ago
MetricCompatibility.php
3 years ago
MetricHeader.php
3 years ago
MetricMetadata.php
3 years ago
MetricType.php
3 years ago
MetricValue.php
3 years ago
MinuteRange.php
3 years ago
NumericValue.php
3 years ago
OrderBy.php
3 years ago
Pivot.php
3 years ago
PivotDimensionHeader.php
3 years ago
PivotHeader.php
3 years ago
PropertyQuota.php
3 years ago
QuotaStatus.php
3 years ago
ResponseMetaData.php
3 years ago
RestrictedMetricType.php
3 years ago
Row.php
3 years ago
RunPivotReportRequest.php
3 years ago
RunPivotReportResponse.php
3 years ago
RunRealtimeReportRequest.php
3 years ago
RunRealtimeReportResponse.php
3 years ago
RunReportRequest.php
3 years ago
RunReportResponse.php
3 years ago
gapic_metadata.json
3 years ago
Compatibility.php
64 lines
| 1 | <?php |
| 2 | # Generated by the protocol buffer compiler. DO NOT EDIT! |
| 3 | # source: google/analytics/data/v1beta/data.proto |
| 4 | |
| 5 | namespace Google\Analytics\Data\V1beta; |
| 6 | |
| 7 | use UnexpectedValueException; |
| 8 | |
| 9 | /** |
| 10 | * The compatibility types for a single dimension or metric. |
| 11 | * |
| 12 | * Protobuf type <code>google.analytics.data.v1beta.Compatibility</code> |
| 13 | */ |
| 14 | class Compatibility |
| 15 | { |
| 16 | /** |
| 17 | * Unspecified compatibility. |
| 18 | * |
| 19 | * Generated from protobuf enum <code>COMPATIBILITY_UNSPECIFIED = 0;</code> |
| 20 | */ |
| 21 | const COMPATIBILITY_UNSPECIFIED = 0; |
| 22 | /** |
| 23 | * The dimension or metric is compatible. This dimension or metric can be |
| 24 | * successfully added to a report. |
| 25 | * |
| 26 | * Generated from protobuf enum <code>COMPATIBLE = 1;</code> |
| 27 | */ |
| 28 | const COMPATIBLE = 1; |
| 29 | /** |
| 30 | * The dimension or metric is incompatible. This dimension or metric cannot be |
| 31 | * successfully added to a report. |
| 32 | * |
| 33 | * Generated from protobuf enum <code>INCOMPATIBLE = 2;</code> |
| 34 | */ |
| 35 | const INCOMPATIBLE = 2; |
| 36 | |
| 37 | private static $valueToName = [ |
| 38 | self::COMPATIBILITY_UNSPECIFIED => 'COMPATIBILITY_UNSPECIFIED', |
| 39 | self::COMPATIBLE => 'COMPATIBLE', |
| 40 | self::INCOMPATIBLE => 'INCOMPATIBLE', |
| 41 | ]; |
| 42 | |
| 43 | public static function name($value) |
| 44 | { |
| 45 | if (!isset(self::$valueToName[$value])) { |
| 46 | throw new UnexpectedValueException(sprintf( |
| 47 | 'Enum %s has no name defined for value %s', __CLASS__, $value)); |
| 48 | } |
| 49 | return self::$valueToName[$value]; |
| 50 | } |
| 51 | |
| 52 | |
| 53 | public static function value($name) |
| 54 | { |
| 55 | $const = __CLASS__ . '::' . strtoupper($name); |
| 56 | if (!defined($const)) { |
| 57 | throw new UnexpectedValueException(sprintf( |
| 58 | 'Enum %s has no value defined for name %s', __CLASS__, $name)); |
| 59 | } |
| 60 | return constant($const); |
| 61 | } |
| 62 | } |
| 63 | |
| 64 |