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 / cloud / AnalyticsAdmin / src / V1alpha / CustomMetric.php
googleanalytics / lib / analytics-admin / vendor / google / cloud / AnalyticsAdmin / src / V1alpha Last commit date
ChangeHistoryChange 3 years ago CustomDimension 3 years ago CustomMetric 3 years ago DataRetentionSettings 3 years ago DataStream 3 years ago Gapic 3 years ago resources 3 years ago Account.php 3 years ago AccountSummary.php 3 years ago AcknowledgeUserDataCollectionRequest.php 3 years ago AcknowledgeUserDataCollectionResponse.php 3 years ago ActionType.php 3 years ago ActorType.php 3 years ago AnalyticsAdminServiceClient.php 3 years ago AnalyticsAdminServiceGrpcClient.php 3 years ago AndroidAppDataStream.php 3 years ago ApproveDisplayVideo360AdvertiserLinkProposalRequest.php 3 years ago ApproveDisplayVideo360AdvertiserLinkProposalResponse.php 3 years ago ArchiveCustomDimensionRequest.php 3 years ago ArchiveCustomMetricRequest.php 3 years ago AuditUserLink.php 3 years ago AuditUserLinksRequest.php 3 years ago AuditUserLinksResponse.php 3 years ago BatchCreateUserLinksRequest.php 3 years ago BatchCreateUserLinksResponse.php 3 years ago BatchDeleteUserLinksRequest.php 3 years ago BatchGetUserLinksRequest.php 3 years ago BatchGetUserLinksResponse.php 3 years ago BatchUpdateUserLinksRequest.php 3 years ago BatchUpdateUserLinksResponse.php 3 years ago CancelDisplayVideo360AdvertiserLinkProposalRequest.php 3 years ago ChangeHistoryChange.php 3 years ago ChangeHistoryChange_ChangeHistoryResource.php 3 years ago ChangeHistoryEvent.php 3 years ago ChangeHistoryResourceType.php 3 years ago ConversionEvent.php 3 years ago CreateAndroidAppDataStreamRequest.php 3 years ago CreateConversionEventRequest.php 3 years ago CreateCustomDimensionRequest.php 3 years ago CreateCustomMetricRequest.php 3 years ago CreateDataStreamRequest.php 3 years ago CreateDisplayVideo360AdvertiserLinkProposalRequest.php 3 years ago CreateDisplayVideo360AdvertiserLinkRequest.php 3 years ago CreateFirebaseLinkRequest.php 3 years ago CreateGoogleAdsLinkRequest.php 3 years ago CreateIosAppDataStreamRequest.php 3 years ago CreateMeasurementProtocolSecretRequest.php 3 years ago CreatePropertyRequest.php 3 years ago CreateUserLinkRequest.php 3 years ago CreateWebDataStreamRequest.php 3 years ago CustomDimension.php 3 years ago CustomDimension_DimensionScope.php 3 years ago CustomMetric.php 3 years ago CustomMetric_MeasurementUnit.php 3 years ago CustomMetric_MetricScope.php 3 years ago CustomMetric_RestrictedMetricType.php 3 years ago DataRetentionSettings.php 3 years ago DataRetentionSettings_RetentionDuration.php 3 years ago DataSharingSettings.php 3 years ago DataStream.php 3 years ago DataStream_AndroidAppStreamData.php 3 years ago DataStream_DataStreamType.php 3 years ago DataStream_IosAppStreamData.php 3 years ago DataStream_WebStreamData.php 3 years ago DeleteAccountRequest.php 3 years ago DeleteAndroidAppDataStreamRequest.php 3 years ago DeleteConversionEventRequest.php 3 years ago DeleteDataStreamRequest.php 3 years ago DeleteDisplayVideo360AdvertiserLinkProposalRequest.php 3 years ago DeleteDisplayVideo360AdvertiserLinkRequest.php 3 years ago DeleteFirebaseLinkRequest.php 3 years ago DeleteGoogleAdsLinkRequest.php 3 years ago DeleteIosAppDataStreamRequest.php 3 years ago DeleteMeasurementProtocolSecretRequest.php 3 years ago DeletePropertyRequest.php 3 years ago DeleteUserLinkRequest.php 3 years ago DeleteWebDataStreamRequest.php 3 years ago DisplayVideo360AdvertiserLink.php 3 years ago DisplayVideo360AdvertiserLinkProposal.php 3 years ago EnhancedMeasurementSettings.php 3 years ago FirebaseLink.php 3 years ago GetAccountRequest.php 3 years ago GetAndroidAppDataStreamRequest.php 3 years ago GetConversionEventRequest.php 3 years ago GetCustomDimensionRequest.php 3 years ago GetCustomMetricRequest.php 3 years ago GetDataRetentionSettingsRequest.php 3 years ago GetDataSharingSettingsRequest.php 3 years ago GetDataStreamRequest.php 3 years ago GetDisplayVideo360AdvertiserLinkProposalRequest.php 3 years ago GetDisplayVideo360AdvertiserLinkRequest.php 3 years ago GetEnhancedMeasurementSettingsRequest.php 3 years ago GetGlobalSiteTagRequest.php 3 years ago GetGoogleSignalsSettingsRequest.php 3 years ago GetIosAppDataStreamRequest.php 3 years ago GetMeasurementProtocolSecretRequest.php 3 years ago GetPropertyRequest.php 3 years ago GetUserLinkRequest.php 3 years ago GetWebDataStreamRequest.php 3 years ago GlobalSiteTag.php 3 years ago GoogleAdsLink.php 3 years ago GoogleSignalsConsent.php 3 years ago GoogleSignalsSettings.php 3 years ago GoogleSignalsState.php 3 years ago IndustryCategory.php 3 years ago IosAppDataStream.php 3 years ago LinkProposalInitiatingProduct.php 3 years ago LinkProposalState.php 3 years ago LinkProposalStatusDetails.php 3 years ago ListAccountSummariesRequest.php 3 years ago ListAccountSummariesResponse.php 3 years ago ListAccountsRequest.php 3 years ago ListAccountsResponse.php 3 years ago ListAndroidAppDataStreamsRequest.php 3 years ago ListAndroidAppDataStreamsResponse.php 3 years ago ListConversionEventsRequest.php 3 years ago ListConversionEventsResponse.php 3 years ago ListCustomDimensionsRequest.php 3 years ago ListCustomDimensionsResponse.php 3 years ago ListCustomMetricsRequest.php 3 years ago ListCustomMetricsResponse.php 3 years ago ListDataStreamsRequest.php 3 years ago ListDataStreamsResponse.php 3 years ago ListDisplayVideo360AdvertiserLinkProposalsRequest.php 3 years ago ListDisplayVideo360AdvertiserLinkProposalsResponse.php 3 years ago ListDisplayVideo360AdvertiserLinksRequest.php 3 years ago ListDisplayVideo360AdvertiserLinksResponse.php 3 years ago ListFirebaseLinksRequest.php 3 years ago ListFirebaseLinksResponse.php 3 years ago ListGoogleAdsLinksRequest.php 3 years ago ListGoogleAdsLinksResponse.php 3 years ago ListIosAppDataStreamsRequest.php 3 years ago ListIosAppDataStreamsResponse.php 3 years ago ListMeasurementProtocolSecretsRequest.php 3 years ago ListMeasurementProtocolSecretsResponse.php 3 years ago ListPropertiesRequest.php 3 years ago ListPropertiesResponse.php 3 years ago ListUserLinksRequest.php 3 years ago ListUserLinksResponse.php 3 years ago ListWebDataStreamsRequest.php 3 years ago ListWebDataStreamsResponse.php 3 years ago MaximumUserAccess.php 3 years ago MeasurementProtocolSecret.php 3 years ago Property.php 3 years ago PropertySummary.php 3 years ago ProvisionAccountTicketRequest.php 3 years ago ProvisionAccountTicketResponse.php 3 years ago SearchChangeHistoryEventsRequest.php 3 years ago SearchChangeHistoryEventsResponse.php 3 years ago ServiceLevel.php 3 years ago UpdateAccountRequest.php 3 years ago UpdateAndroidAppDataStreamRequest.php 3 years ago UpdateCustomDimensionRequest.php 3 years ago UpdateCustomMetricRequest.php 3 years ago UpdateDataRetentionSettingsRequest.php 3 years ago UpdateDataStreamRequest.php 3 years ago UpdateDisplayVideo360AdvertiserLinkRequest.php 3 years ago UpdateEnhancedMeasurementSettingsRequest.php 3 years ago UpdateFirebaseLinkRequest.php 3 years ago UpdateGoogleAdsLinkRequest.php 3 years ago UpdateGoogleSignalsSettingsRequest.php 3 years ago UpdateIosAppDataStreamRequest.php 3 years ago UpdateMeasurementProtocolSecretRequest.php 3 years ago UpdatePropertyRequest.php 3 years ago UpdateUserLinkRequest.php 3 years ago UpdateWebDataStreamRequest.php 3 years ago UserLink.php 3 years ago WebDataStream.php 3 years ago gapic_metadata.json 3 years ago
CustomMetric.php
320 lines
1 <?php
2 # Generated by the protocol buffer compiler. DO NOT EDIT!
3 # source: google/analytics/admin/v1alpha/resources.proto
4
5 namespace Google\Analytics\Admin\V1alpha;
6
7 use Google\Protobuf\Internal\GPBType;
8 use Google\Protobuf\Internal\RepeatedField;
9 use Google\Protobuf\Internal\GPBUtil;
10
11 /**
12 * A definition for a custom metric.
13 *
14 * Generated from protobuf message <code>google.analytics.admin.v1alpha.CustomMetric</code>
15 */
16 class CustomMetric extends \Google\Protobuf\Internal\Message
17 {
18 /**
19 * Output only. Resource name for this CustomMetric resource.
20 * Format: properties/{property}/customMetrics/{customMetric}
21 *
22 * Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
23 */
24 private $name = '';
25 /**
26 * Required. Immutable. Tagging name for this custom metric.
27 * If this is an event-scoped metric, then this is the event parameter
28 * name.
29 * May only contain alphanumeric and underscore charactes, starting with a
30 * letter. Max length of 40 characters for event-scoped metrics.
31 *
32 * Generated from protobuf field <code>string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];</code>
33 */
34 private $parameter_name = '';
35 /**
36 * Required. Display name for this custom metric as shown in the Analytics UI.
37 * Max length of 82 characters, alphanumeric plus space and underscore
38 * starting with a letter. Legacy system-generated display names may contain
39 * square brackets, but updates to this field will never permit square
40 * brackets.
41 *
42 * Generated from protobuf field <code>string display_name = 3 [(.google.api.field_behavior) = REQUIRED];</code>
43 */
44 private $display_name = '';
45 /**
46 * Optional. Description for this custom dimension.
47 * Max length of 150 characters.
48 *
49 * Generated from protobuf field <code>string description = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
50 */
51 private $description = '';
52 /**
53 * Required. The type for the custom metric's value.
54 *
55 * Generated from protobuf field <code>.google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED];</code>
56 */
57 private $measurement_unit = 0;
58 /**
59 * Required. Immutable. The scope of this custom metric.
60 *
61 * Generated from protobuf field <code>.google.analytics.admin.v1alpha.CustomMetric.MetricScope scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];</code>
62 */
63 private $scope = 0;
64 /**
65 * Optional. Types of restricted data that this metric may contain. Required for metrics
66 * with CURRENCY measurement unit. Must be empty for metrics with a
67 * non-CURRENCY measurement unit.
68 *
69 * Generated from protobuf field <code>repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL];</code>
70 */
71 private $restricted_metric_type;
72
73 /**
74 * Constructor.
75 *
76 * @param array $data {
77 * Optional. Data for populating the Message object.
78 *
79 * @type string $name
80 * Output only. Resource name for this CustomMetric resource.
81 * Format: properties/{property}/customMetrics/{customMetric}
82 * @type string $parameter_name
83 * Required. Immutable. Tagging name for this custom metric.
84 * If this is an event-scoped metric, then this is the event parameter
85 * name.
86 * May only contain alphanumeric and underscore charactes, starting with a
87 * letter. Max length of 40 characters for event-scoped metrics.
88 * @type string $display_name
89 * Required. Display name for this custom metric as shown in the Analytics UI.
90 * Max length of 82 characters, alphanumeric plus space and underscore
91 * starting with a letter. Legacy system-generated display names may contain
92 * square brackets, but updates to this field will never permit square
93 * brackets.
94 * @type string $description
95 * Optional. Description for this custom dimension.
96 * Max length of 150 characters.
97 * @type int $measurement_unit
98 * Required. The type for the custom metric's value.
99 * @type int $scope
100 * Required. Immutable. The scope of this custom metric.
101 * @type int[]|\Google\Protobuf\Internal\RepeatedField $restricted_metric_type
102 * Optional. Types of restricted data that this metric may contain. Required for metrics
103 * with CURRENCY measurement unit. Must be empty for metrics with a
104 * non-CURRENCY measurement unit.
105 * }
106 */
107 public function __construct($data = NULL) {
108 \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce();
109 parent::__construct($data);
110 }
111
112 /**
113 * Output only. Resource name for this CustomMetric resource.
114 * Format: properties/{property}/customMetrics/{customMetric}
115 *
116 * Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
117 * @return string
118 */
119 public function getName()
120 {
121 return $this->name;
122 }
123
124 /**
125 * Output only. Resource name for this CustomMetric resource.
126 * Format: properties/{property}/customMetrics/{customMetric}
127 *
128 * Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
129 * @param string $var
130 * @return $this
131 */
132 public function setName($var)
133 {
134 GPBUtil::checkString($var, True);
135 $this->name = $var;
136
137 return $this;
138 }
139
140 /**
141 * Required. Immutable. Tagging name for this custom metric.
142 * If this is an event-scoped metric, then this is the event parameter
143 * name.
144 * May only contain alphanumeric and underscore charactes, starting with a
145 * letter. Max length of 40 characters for event-scoped metrics.
146 *
147 * Generated from protobuf field <code>string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];</code>
148 * @return string
149 */
150 public function getParameterName()
151 {
152 return $this->parameter_name;
153 }
154
155 /**
156 * Required. Immutable. Tagging name for this custom metric.
157 * If this is an event-scoped metric, then this is the event parameter
158 * name.
159 * May only contain alphanumeric and underscore charactes, starting with a
160 * letter. Max length of 40 characters for event-scoped metrics.
161 *
162 * Generated from protobuf field <code>string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];</code>
163 * @param string $var
164 * @return $this
165 */
166 public function setParameterName($var)
167 {
168 GPBUtil::checkString($var, True);
169 $this->parameter_name = $var;
170
171 return $this;
172 }
173
174 /**
175 * Required. Display name for this custom metric as shown in the Analytics UI.
176 * Max length of 82 characters, alphanumeric plus space and underscore
177 * starting with a letter. Legacy system-generated display names may contain
178 * square brackets, but updates to this field will never permit square
179 * brackets.
180 *
181 * Generated from protobuf field <code>string display_name = 3 [(.google.api.field_behavior) = REQUIRED];</code>
182 * @return string
183 */
184 public function getDisplayName()
185 {
186 return $this->display_name;
187 }
188
189 /**
190 * Required. Display name for this custom metric as shown in the Analytics UI.
191 * Max length of 82 characters, alphanumeric plus space and underscore
192 * starting with a letter. Legacy system-generated display names may contain
193 * square brackets, but updates to this field will never permit square
194 * brackets.
195 *
196 * Generated from protobuf field <code>string display_name = 3 [(.google.api.field_behavior) = REQUIRED];</code>
197 * @param string $var
198 * @return $this
199 */
200 public function setDisplayName($var)
201 {
202 GPBUtil::checkString($var, True);
203 $this->display_name = $var;
204
205 return $this;
206 }
207
208 /**
209 * Optional. Description for this custom dimension.
210 * Max length of 150 characters.
211 *
212 * Generated from protobuf field <code>string description = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
213 * @return string
214 */
215 public function getDescription()
216 {
217 return $this->description;
218 }
219
220 /**
221 * Optional. Description for this custom dimension.
222 * Max length of 150 characters.
223 *
224 * Generated from protobuf field <code>string description = 4 [(.google.api.field_behavior) = OPTIONAL];</code>
225 * @param string $var
226 * @return $this
227 */
228 public function setDescription($var)
229 {
230 GPBUtil::checkString($var, True);
231 $this->description = $var;
232
233 return $this;
234 }
235
236 /**
237 * Required. The type for the custom metric's value.
238 *
239 * Generated from protobuf field <code>.google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED];</code>
240 * @return int
241 */
242 public function getMeasurementUnit()
243 {
244 return $this->measurement_unit;
245 }
246
247 /**
248 * Required. The type for the custom metric's value.
249 *
250 * Generated from protobuf field <code>.google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED];</code>
251 * @param int $var
252 * @return $this
253 */
254 public function setMeasurementUnit($var)
255 {
256 GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\CustomMetric\MeasurementUnit::class);
257 $this->measurement_unit = $var;
258
259 return $this;
260 }
261
262 /**
263 * Required. Immutable. The scope of this custom metric.
264 *
265 * Generated from protobuf field <code>.google.analytics.admin.v1alpha.CustomMetric.MetricScope scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];</code>
266 * @return int
267 */
268 public function getScope()
269 {
270 return $this->scope;
271 }
272
273 /**
274 * Required. Immutable. The scope of this custom metric.
275 *
276 * Generated from protobuf field <code>.google.analytics.admin.v1alpha.CustomMetric.MetricScope scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];</code>
277 * @param int $var
278 * @return $this
279 */
280 public function setScope($var)
281 {
282 GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\CustomMetric\MetricScope::class);
283 $this->scope = $var;
284
285 return $this;
286 }
287
288 /**
289 * Optional. Types of restricted data that this metric may contain. Required for metrics
290 * with CURRENCY measurement unit. Must be empty for metrics with a
291 * non-CURRENCY measurement unit.
292 *
293 * Generated from protobuf field <code>repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL];</code>
294 * @return \Google\Protobuf\Internal\RepeatedField
295 */
296 public function getRestrictedMetricType()
297 {
298 return $this->restricted_metric_type;
299 }
300
301 /**
302 * Optional. Types of restricted data that this metric may contain. Required for metrics
303 * with CURRENCY measurement unit. Must be empty for metrics with a
304 * non-CURRENCY measurement unit.
305 *
306 * Generated from protobuf field <code>repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL];</code>
307 * @param int[]|\Google\Protobuf\Internal\RepeatedField $var
308 * @return $this
309 */
310 public function setRestrictedMetricType($var)
311 {
312 $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Analytics\Admin\V1alpha\CustomMetric\RestrictedMetricType::class);
313 $this->restricted_metric_type = $arr;
314
315 return $this;
316 }
317
318 }
319
320