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 / common-protos / src / Api / FieldBehavior.php
googleanalytics / lib / analytics-admin / vendor / google / common-protos / src / Api Last commit date
BackendRule 3 years ago Billing 3 years ago Distribution 3 years ago Expr 3 years ago LabelDescriptor 3 years ago Logging 3 years ago MetricDescriptor 3 years ago Monitoring 3 years ago Property 3 years ago ResourceDescriptor 3 years ago Advice.php 3 years ago AuthProvider.php 3 years ago AuthRequirement.php 3 years ago Authentication.php 3 years ago AuthenticationRule.php 3 years ago Backend.php 3 years ago BackendRule.php 3 years ago BackendRule_PathTranslation.php 3 years ago Billing.php 3 years ago Billing_BillingDestination.php 3 years ago ChangeType.php 3 years ago ConfigChange.php 3 years ago Context.php 3 years ago ContextRule.php 3 years ago Control.php 3 years ago CustomHttpPattern.php 3 years ago Distribution.php 3 years ago Distribution_BucketOptions.php 3 years ago Distribution_BucketOptions_Explicit.php 3 years ago Distribution_BucketOptions_Exponential.php 3 years ago Distribution_BucketOptions_Linear.php 3 years ago Distribution_Exemplar.php 3 years ago Distribution_Range.php 3 years ago Documentation.php 3 years ago DocumentationRule.php 3 years ago Endpoint.php 3 years ago FieldBehavior.php 3 years ago Http.php 3 years ago HttpBody.php 3 years ago HttpRule.php 3 years ago LabelDescriptor.php 3 years ago LabelDescriptor_ValueType.php 3 years ago LaunchStage.php 3 years ago LogDescriptor.php 3 years ago Logging.php 3 years ago Logging_LoggingDestination.php 3 years ago Metric.php 3 years ago MetricDescriptor.php 3 years ago MetricDescriptor_MetricDescriptorMetadata.php 3 years ago MetricDescriptor_MetricKind.php 3 years ago MetricDescriptor_ValueType.php 3 years ago MetricRule.php 3 years ago MonitoredResource.php 3 years ago MonitoredResourceDescriptor.php 3 years ago MonitoredResourceMetadata.php 3 years ago Monitoring.php 3 years ago Monitoring_MonitoringDestination.php 3 years ago OAuthRequirements.php 3 years ago Page.php 3 years ago ProjectProperties.php 3 years ago Property.php 3 years ago Property_PropertyType.php 3 years ago Quota.php 3 years ago QuotaLimit.php 3 years ago ResourceDescriptor.php 3 years ago ResourceDescriptor_History.php 3 years ago ResourceReference.php 3 years ago RoutingParameter.php 3 years ago RoutingRule.php 3 years ago Service.php 3 years ago SourceInfo.php 3 years ago SystemParameter.php 3 years ago SystemParameterRule.php 3 years ago SystemParameters.php 3 years ago Usage.php 3 years ago UsageRule.php 3 years ago
FieldBehavior.php
98 lines
1 <?php
2 # Generated by the protocol buffer compiler. DO NOT EDIT!
3 # source: google/api/field_behavior.proto
4
5 namespace Google\Api;
6
7 use UnexpectedValueException;
8
9 /**
10 * An indicator of the behavior of a given field (for example, that a field
11 * is required in requests, or given as output but ignored as input).
12 * This **does not** change the behavior in protocol buffers itself; it only
13 * denotes the behavior and may affect how API tooling handles the field.
14 * Note: This enum **may** receive new values in the future.
15 *
16 * Protobuf type <code>google.api.FieldBehavior</code>
17 */
18 class FieldBehavior
19 {
20 /**
21 * Conventional default for enums. Do not use this.
22 *
23 * Generated from protobuf enum <code>FIELD_BEHAVIOR_UNSPECIFIED = 0;</code>
24 */
25 const FIELD_BEHAVIOR_UNSPECIFIED = 0;
26 /**
27 * Specifically denotes a field as optional.
28 * While all fields in protocol buffers are optional, this may be specified
29 * for emphasis if appropriate.
30 *
31 * Generated from protobuf enum <code>OPTIONAL = 1;</code>
32 */
33 const OPTIONAL = 1;
34 /**
35 * Denotes a field as required.
36 * This indicates that the field **must** be provided as part of the request,
37 * and failure to do so will cause an error (usually `INVALID_ARGUMENT`).
38 *
39 * Generated from protobuf enum <code>REQUIRED = 2;</code>
40 */
41 const REQUIRED = 2;
42 /**
43 * Denotes a field as output only.
44 * This indicates that the field is provided in responses, but including the
45 * field in a request does nothing (the server *must* ignore it and
46 * *must not* throw an error as a result of the field's presence).
47 *
48 * Generated from protobuf enum <code>OUTPUT_ONLY = 3;</code>
49 */
50 const OUTPUT_ONLY = 3;
51 /**
52 * Denotes a field as input only.
53 * This indicates that the field is provided in requests, and the
54 * corresponding field is not included in output.
55 *
56 * Generated from protobuf enum <code>INPUT_ONLY = 4;</code>
57 */
58 const INPUT_ONLY = 4;
59 /**
60 * Denotes a field as immutable.
61 * This indicates that the field may be set once in a request to create a
62 * resource, but may not be changed thereafter.
63 *
64 * Generated from protobuf enum <code>IMMUTABLE = 5;</code>
65 */
66 const IMMUTABLE = 5;
67
68 private static $valueToName = [
69 self::FIELD_BEHAVIOR_UNSPECIFIED => 'FIELD_BEHAVIOR_UNSPECIFIED',
70 self::OPTIONAL => 'OPTIONAL',
71 self::REQUIRED => 'REQUIRED',
72 self::OUTPUT_ONLY => 'OUTPUT_ONLY',
73 self::INPUT_ONLY => 'INPUT_ONLY',
74 self::IMMUTABLE => 'IMMUTABLE',
75 ];
76
77 public static function name($value)
78 {
79 if (!isset(self::$valueToName[$value])) {
80 throw new UnexpectedValueException(sprintf(
81 'Enum %s has no name defined for value %s', __CLASS__, $value));
82 }
83 return self::$valueToName[$value];
84 }
85
86
87 public static function value($name)
88 {
89 $const = __CLASS__ . '::' . strtoupper($name);
90 if (!defined($const)) {
91 throw new UnexpectedValueException(sprintf(
92 'Enum %s has no value defined for name %s', __CLASS__, $name));
93 }
94 return constant($const);
95 }
96 }
97
98