Skip to content

Commit 07014d1

Browse files
feat!: remove WebDataStream, IosAppDataStream, AndroidAppDataStream resources (#187)
* feat!: remove `WebDataStream`, `IosAppDataStream`, `AndroidAppDataStream` resources and corresponding operations, as they are replaced by the `DataStream` resource feat: add `restricted_metric_type` field to the `CustomMetric` resource feat!: move the `GlobalSiteTag` resource from the property level to the data stream level PiperOrigin-RevId: 432342398 Source-Link: googleapis/googleapis@a079cb0 Source-Link: googleapis/googleapis-gen@2f29c5a Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMmYyOWM1YWYzMDU0YTZlMzhkZjIxNThmMDliNzZlYzJmYWZkMGIyZiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 014b9b9 commit 07014d1

16 files changed

+9963
-23157
lines changed

packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/analytics_admin.proto

+18-407
Large diffs are not rendered by default.

packages/google-analytics-admin/protos/google/analytics/admin/v1alpha/resources.proto

+30-126
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2021 Google LLC
1+
// Copyright 2022 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -164,15 +164,6 @@ enum ChangeHistoryResourceType {
164164
// Property resource
165165
PROPERTY = 2;
166166

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-
176167
// FirebaseLink resource
177168
FIREBASE_LINK = 6;
178169

@@ -202,6 +193,9 @@ enum ChangeHistoryResourceType {
202193

203194
// DisplayVideo360AdvertiserLinkProposal resource
204195
DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL = 15;
196+
197+
// DataStream resource
198+
DATA_STREAM = 18;
205199
}
206200

207201
// Status of the Google Signals settings (i.e., whether this feature has been
@@ -382,109 +376,6 @@ message Property {
382376
];
383377
}
384378

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-
488379
// A resource message representing a data stream.
489380
message DataStream {
490381
option (google.api.resource) = {
@@ -668,15 +559,16 @@ message FirebaseLink {
668559
}
669560

670561
// Read-only resource with the tag for sending data from a website to a
671-
// WebDataStream.
562+
// DataStream. Only present for web DataStream resources.
672563
message GlobalSiteTag {
673564
option (google.api.resource) = {
674565
type: "analyticsadmin.googleapis.com/GlobalSiteTag"
675-
pattern: "properties/{property}/globalSiteTag"
566+
pattern: "properties/{property}/dataStreams/{data_stream}/globalSiteTag"
676567
};
677568

678569
// 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"
680572
string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
681573

682574
// Immutable. JavaScript code snippet to be pasted as the first item into the head tag of
@@ -796,7 +688,7 @@ message PropertySummary {
796688
message MeasurementProtocolSecret {
797689
option (google.api.resource) = {
798690
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}"
800692
};
801693

802694
// Output only. Resource name of this secret. This secret may be a child of any type of
@@ -854,15 +746,6 @@ message ChangeHistoryChange {
854746
// A snapshot of a Property resource in change history.
855747
Property property = 2;
856748

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-
866749
// A snapshot of a FirebaseLink resource in change history.
867750
FirebaseLink firebase_link = 6;
868751

@@ -894,6 +777,9 @@ message ChangeHistoryChange {
894777

895778
// A snapshot of a data retention settings resource in change history.
896779
DataRetentionSettings data_retention_settings = 15;
780+
781+
// A snapshot of a DataStream resource in change history.
782+
DataStream data_stream = 18;
897783
}
898784
}
899785

@@ -1176,6 +1062,19 @@ message CustomMetric {
11761062
EVENT = 1;
11771063
}
11781064

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+
11791078
// Output only. Resource name for this CustomMetric resource.
11801079
// Format: properties/{property}/customMetrics/{customMetric}
11811080
string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
@@ -1211,6 +1110,11 @@ message CustomMetric {
12111110
(google.api.field_behavior) = REQUIRED,
12121111
(google.api.field_behavior) = IMMUTABLE
12131112
];
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];
12141118
}
12151119

12161120
// Settings values for data retention. This is a singleton resource.

0 commit comments

Comments
 (0)