|
1 | | -// Copyright 2021 Google LLC |
| 1 | +// Copyright 2022 Google LLC |
2 | 2 | // |
3 | 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
4 | 4 | // you may not use this file except in compliance with the License. |
@@ -164,15 +164,6 @@ enum ChangeHistoryResourceType { |
164 | 164 | // Property resource |
165 | 165 | PROPERTY = 2; |
166 | 166 |
|
167 | | - // WebDataStream resource |
168 | | - WEB_DATA_STREAM = 3; |
169 | | - |
170 | | - // AndroidAppDataStream resource |
171 | | - ANDROID_APP_DATA_STREAM = 4; |
172 | | - |
173 | | - // IosAppDataStream resource |
174 | | - IOS_APP_DATA_STREAM = 5; |
175 | | - |
176 | 167 | // FirebaseLink resource |
177 | 168 | FIREBASE_LINK = 6; |
178 | 169 |
|
@@ -202,6 +193,9 @@ enum ChangeHistoryResourceType { |
202 | 193 |
|
203 | 194 | // DisplayVideo360AdvertiserLinkProposal resource |
204 | 195 | DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL = 15; |
| 196 | + |
| 197 | + // DataStream resource |
| 198 | + DATA_STREAM = 18; |
205 | 199 | } |
206 | 200 |
|
207 | 201 | // Status of the Google Signals settings (i.e., whether this feature has been |
@@ -382,109 +376,6 @@ message Property { |
382 | 376 | ]; |
383 | 377 | } |
384 | 378 |
|
385 | | -// A resource message representing a Google Analytics Android app stream. |
386 | | -message AndroidAppDataStream { |
387 | | - option (google.api.resource) = { |
388 | | - type: "analyticsadmin.googleapis.com/AndroidAppDataStream" |
389 | | - pattern: "properties/{property}/androidAppDataStreams/{android_app_data_stream}" |
390 | | - }; |
391 | | - |
392 | | - // Output only. Resource name of this Data Stream. |
393 | | - // Format: properties/{property_id}/androidAppDataStreams/{stream_id} |
394 | | - // Example: "properties/1000/androidAppDataStreams/2000" |
395 | | - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; |
396 | | - |
397 | | - // Output only. ID of the corresponding Android app in Firebase, if any. |
398 | | - // This ID can change if the Android app is deleted and recreated. |
399 | | - string firebase_app_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; |
400 | | - |
401 | | - // Output only. Time when this stream was originally created. |
402 | | - google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; |
403 | | - |
404 | | - // Output only. Time when stream payload fields were last updated. |
405 | | - google.protobuf.Timestamp update_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; |
406 | | - |
407 | | - // Immutable. The package name for the app being measured. |
408 | | - // Example: "com.example.myandroidapp" |
409 | | - string package_name = 5 [(google.api.field_behavior) = IMMUTABLE]; |
410 | | - |
411 | | - // Human-readable display name for the Data Stream. |
412 | | - // |
413 | | - // The max allowed display name length is 255 UTF-16 code units. |
414 | | - string display_name = 6; |
415 | | -} |
416 | | - |
417 | | -// A resource message representing a Google Analytics IOS app stream. |
418 | | -message IosAppDataStream { |
419 | | - option (google.api.resource) = { |
420 | | - type: "analyticsadmin.googleapis.com/IosAppDataStream" |
421 | | - pattern: "properties/{property}/iosAppDataStreams/{ios_app_data_stream}" |
422 | | - }; |
423 | | - |
424 | | - // Output only. Resource name of this Data Stream. |
425 | | - // Format: properties/{property_id}/iosAppDataStreams/{stream_id} |
426 | | - // Example: "properties/1000/iosAppDataStreams/2000" |
427 | | - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; |
428 | | - |
429 | | - // Output only. ID of the corresponding iOS app in Firebase, if any. |
430 | | - // This ID can change if the iOS app is deleted and recreated. |
431 | | - string firebase_app_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; |
432 | | - |
433 | | - // Output only. Time when this stream was originally created. |
434 | | - google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; |
435 | | - |
436 | | - // Output only. Time when stream payload fields were last updated. |
437 | | - google.protobuf.Timestamp update_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; |
438 | | - |
439 | | - // Required. Immutable. The Apple App Store Bundle ID for the app |
440 | | - // Example: "com.example.myiosapp" |
441 | | - string bundle_id = 5 [ |
442 | | - (google.api.field_behavior) = IMMUTABLE, |
443 | | - (google.api.field_behavior) = REQUIRED |
444 | | - ]; |
445 | | - |
446 | | - // Human-readable display name for the Data Stream. |
447 | | - // |
448 | | - // The max allowed display name length is 255 UTF-16 code units. |
449 | | - string display_name = 6; |
450 | | -} |
451 | | - |
452 | | -// A resource message representing a Google Analytics web stream. |
453 | | -message WebDataStream { |
454 | | - option (google.api.resource) = { |
455 | | - type: "analyticsadmin.googleapis.com/WebDataStream" |
456 | | - pattern: "properties/{property}/webDataStreams/{web_data_stream}" |
457 | | - }; |
458 | | - |
459 | | - // Output only. Resource name of this Data Stream. |
460 | | - // Format: properties/{property_id}/webDataStreams/{stream_id} |
461 | | - // Example: "properties/1000/webDataStreams/2000" |
462 | | - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; |
463 | | - |
464 | | - // Output only. Analytics "Measurement ID", without the "G-" prefix. |
465 | | - // Example: "G-1A2BCD345E" would just be "1A2BCD345E" |
466 | | - string measurement_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; |
467 | | - |
468 | | - // Output only. ID of the corresponding web app in Firebase, if any. |
469 | | - // This ID can change if the web app is deleted and recreated. |
470 | | - string firebase_app_id = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; |
471 | | - |
472 | | - // Output only. Time when this stream was originally created. |
473 | | - google.protobuf.Timestamp create_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; |
474 | | - |
475 | | - // Output only. Time when stream payload fields were last updated. |
476 | | - google.protobuf.Timestamp update_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; |
477 | | - |
478 | | - // Immutable. Domain name of the web app being measured, or empty. |
479 | | - // Example: "http://www.google.com", "https://www.google.com" |
480 | | - string default_uri = 6 [(google.api.field_behavior) = IMMUTABLE]; |
481 | | - |
482 | | - // Required. Human-readable display name for the Data Stream. |
483 | | - // |
484 | | - // The max allowed display name length is 255 UTF-16 code units. |
485 | | - string display_name = 7 [(google.api.field_behavior) = REQUIRED]; |
486 | | -} |
487 | | - |
488 | 379 | // A resource message representing a data stream. |
489 | 380 | message DataStream { |
490 | 381 | option (google.api.resource) = { |
@@ -668,15 +559,16 @@ message FirebaseLink { |
668 | 559 | } |
669 | 560 |
|
670 | 561 | // Read-only resource with the tag for sending data from a website to a |
671 | | -// WebDataStream. |
| 562 | +// DataStream. Only present for web DataStream resources. |
672 | 563 | message GlobalSiteTag { |
673 | 564 | option (google.api.resource) = { |
674 | 565 | type: "analyticsadmin.googleapis.com/GlobalSiteTag" |
675 | | - pattern: "properties/{property}/globalSiteTag" |
| 566 | + pattern: "properties/{property}/dataStreams/{data_stream}/globalSiteTag" |
676 | 567 | }; |
677 | 568 |
|
678 | 569 | // Output only. Resource name for this GlobalSiteTag resource. |
679 | | - // Format: properties/{propertyId}/globalSiteTag |
| 570 | + // Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag |
| 571 | + // Example: "properties/123/dataStreams/456/globalSiteTag" |
680 | 572 | string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; |
681 | 573 |
|
682 | 574 | // Immutable. JavaScript code snippet to be pasted as the first item into the head tag of |
@@ -796,7 +688,7 @@ message PropertySummary { |
796 | 688 | message MeasurementProtocolSecret { |
797 | 689 | option (google.api.resource) = { |
798 | 690 | type: "analyticsadmin.googleapis.com/MeasurementProtocolSecret" |
799 | | - pattern: "properties/{property}/webDataStreams/{web_data_stream}/measurementProtocolSecrets/{measurement_protocol_secret}" |
| 691 | + pattern: "properties/{property}/dataStreams/{data_stream}/measurementProtocolSecrets/{measurement_protocol_secret}" |
800 | 692 | }; |
801 | 693 |
|
802 | 694 | // Output only. Resource name of this secret. This secret may be a child of any type of |
@@ -854,15 +746,6 @@ message ChangeHistoryChange { |
854 | 746 | // A snapshot of a Property resource in change history. |
855 | 747 | Property property = 2; |
856 | 748 |
|
857 | | - // A snapshot of a WebDataStream resource in change history. |
858 | | - WebDataStream web_data_stream = 3; |
859 | | - |
860 | | - // A snapshot of an AndroidAppDataStream resource in change history. |
861 | | - AndroidAppDataStream android_app_data_stream = 4; |
862 | | - |
863 | | - // A snapshot of an IosAppDataStream resource in change history. |
864 | | - IosAppDataStream ios_app_data_stream = 5; |
865 | | - |
866 | 749 | // A snapshot of a FirebaseLink resource in change history. |
867 | 750 | FirebaseLink firebase_link = 6; |
868 | 751 |
|
@@ -894,6 +777,9 @@ message ChangeHistoryChange { |
894 | 777 |
|
895 | 778 | // A snapshot of a data retention settings resource in change history. |
896 | 779 | DataRetentionSettings data_retention_settings = 15; |
| 780 | + |
| 781 | + // A snapshot of a DataStream resource in change history. |
| 782 | + DataStream data_stream = 18; |
897 | 783 | } |
898 | 784 | } |
899 | 785 |
|
@@ -1176,6 +1062,19 @@ message CustomMetric { |
1176 | 1062 | EVENT = 1; |
1177 | 1063 | } |
1178 | 1064 |
|
| 1065 | + // Labels that mark the data in this custom metric as data that should be |
| 1066 | + // restricted to specific users. |
| 1067 | + enum RestrictedMetricType { |
| 1068 | + // Type unknown or unspecified. |
| 1069 | + RESTRICTED_METRIC_TYPE_UNSPECIFIED = 0; |
| 1070 | + |
| 1071 | + // Metric reports cost data. |
| 1072 | + COST_DATA = 1; |
| 1073 | + |
| 1074 | + // Metric reports revenue data. |
| 1075 | + REVENUE_DATA = 2; |
| 1076 | + } |
| 1077 | + |
1179 | 1078 | // Output only. Resource name for this CustomMetric resource. |
1180 | 1079 | // Format: properties/{property}/customMetrics/{customMetric} |
1181 | 1080 | string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; |
@@ -1211,6 +1110,11 @@ message CustomMetric { |
1211 | 1110 | (google.api.field_behavior) = REQUIRED, |
1212 | 1111 | (google.api.field_behavior) = IMMUTABLE |
1213 | 1112 | ]; |
| 1113 | + |
| 1114 | + // Optional. Types of restricted data that this metric may contain. Required for metrics |
| 1115 | + // with CURRENCY measurement unit. Must be empty for metrics with a |
| 1116 | + // non-CURRENCY measurement unit. |
| 1117 | + repeated RestrictedMetricType restricted_metric_type = 8 [(google.api.field_behavior) = OPTIONAL]; |
1214 | 1118 | } |
1215 | 1119 |
|
1216 | 1120 | // Settings values for data retention. This is a singleton resource. |
|
0 commit comments