googleanalytics
/
lib
/
analytics-admin
/
vendor
/
google
/
common-protos
/
src
/
Api
/
Property.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
Property.php
143 lines
| 1 | <?php |
| 2 | # Generated by the protocol buffer compiler. DO NOT EDIT! |
| 3 | # source: google/api/consumer.proto |
| 4 | |
| 5 | namespace Google\Api; |
| 6 | |
| 7 | use Google\Protobuf\Internal\GPBType; |
| 8 | use Google\Protobuf\Internal\RepeatedField; |
| 9 | use Google\Protobuf\Internal\GPBUtil; |
| 10 | |
| 11 | /** |
| 12 | * Defines project properties. |
| 13 | * API services can define properties that can be assigned to consumer projects |
| 14 | * so that backends can perform response customization without having to make |
| 15 | * additional calls or maintain additional storage. For example, Maps API |
| 16 | * defines properties that controls map tile cache period, or whether to embed a |
| 17 | * watermark in a result. |
| 18 | * These values can be set via API producer console. Only API providers can |
| 19 | * define and set these properties. |
| 20 | * |
| 21 | * Generated from protobuf message <code>google.api.Property</code> |
| 22 | */ |
| 23 | class Property extends \Google\Protobuf\Internal\Message |
| 24 | { |
| 25 | /** |
| 26 | * The name of the property (a.k.a key). |
| 27 | * |
| 28 | * Generated from protobuf field <code>string name = 1;</code> |
| 29 | */ |
| 30 | private $name = ''; |
| 31 | /** |
| 32 | * The type of this property. |
| 33 | * |
| 34 | * Generated from protobuf field <code>.google.api.Property.PropertyType type = 2;</code> |
| 35 | */ |
| 36 | private $type = 0; |
| 37 | /** |
| 38 | * The description of the property |
| 39 | * |
| 40 | * Generated from protobuf field <code>string description = 3;</code> |
| 41 | */ |
| 42 | private $description = ''; |
| 43 | |
| 44 | /** |
| 45 | * Constructor. |
| 46 | * |
| 47 | * @param array $data { |
| 48 | * Optional. Data for populating the Message object. |
| 49 | * |
| 50 | * @type string $name |
| 51 | * The name of the property (a.k.a key). |
| 52 | * @type int $type |
| 53 | * The type of this property. |
| 54 | * @type string $description |
| 55 | * The description of the property |
| 56 | * } |
| 57 | */ |
| 58 | public function __construct($data = NULL) { |
| 59 | \GPBMetadata\Google\Api\Consumer::initOnce(); |
| 60 | parent::__construct($data); |
| 61 | } |
| 62 | |
| 63 | /** |
| 64 | * The name of the property (a.k.a key). |
| 65 | * |
| 66 | * Generated from protobuf field <code>string name = 1;</code> |
| 67 | * @return string |
| 68 | */ |
| 69 | public function getName() |
| 70 | { |
| 71 | return $this->name; |
| 72 | } |
| 73 | |
| 74 | /** |
| 75 | * The name of the property (a.k.a key). |
| 76 | * |
| 77 | * Generated from protobuf field <code>string name = 1;</code> |
| 78 | * @param string $var |
| 79 | * @return $this |
| 80 | */ |
| 81 | public function setName($var) |
| 82 | { |
| 83 | GPBUtil::checkString($var, True); |
| 84 | $this->name = $var; |
| 85 | |
| 86 | return $this; |
| 87 | } |
| 88 | |
| 89 | /** |
| 90 | * The type of this property. |
| 91 | * |
| 92 | * Generated from protobuf field <code>.google.api.Property.PropertyType type = 2;</code> |
| 93 | * @return int |
| 94 | */ |
| 95 | public function getType() |
| 96 | { |
| 97 | return $this->type; |
| 98 | } |
| 99 | |
| 100 | /** |
| 101 | * The type of this property. |
| 102 | * |
| 103 | * Generated from protobuf field <code>.google.api.Property.PropertyType type = 2;</code> |
| 104 | * @param int $var |
| 105 | * @return $this |
| 106 | */ |
| 107 | public function setType($var) |
| 108 | { |
| 109 | GPBUtil::checkEnum($var, \Google\Api\Property_PropertyType::class); |
| 110 | $this->type = $var; |
| 111 | |
| 112 | return $this; |
| 113 | } |
| 114 | |
| 115 | /** |
| 116 | * The description of the property |
| 117 | * |
| 118 | * Generated from protobuf field <code>string description = 3;</code> |
| 119 | * @return string |
| 120 | */ |
| 121 | public function getDescription() |
| 122 | { |
| 123 | return $this->description; |
| 124 | } |
| 125 | |
| 126 | /** |
| 127 | * The description of the property |
| 128 | * |
| 129 | * Generated from protobuf field <code>string description = 3;</code> |
| 130 | * @param string $var |
| 131 | * @return $this |
| 132 | */ |
| 133 | public function setDescription($var) |
| 134 | { |
| 135 | GPBUtil::checkString($var, True); |
| 136 | $this->description = $var; |
| 137 | |
| 138 | return $this; |
| 139 | } |
| 140 | |
| 141 | } |
| 142 | |
| 143 |