Skip to content
This repository was archived by the owner on Sep 9, 2023. It is now read-only.

Commit e9fd55a

Browse files
feat: add the AcknowledgeUserDataCollection operation which acknowledges the terms of user data collection for the specified property (#323)
feat: add the new resource type `DataStream`, which is planned to eventually replace `WebDataStream`, `IosAppDataStream`, `AndroidAppDataStream` resources fix!: remove `GetEnhancedMeasurementSettings`, `UpdateEnhancedMeasurementSettingsRequest`, `UpdateEnhancedMeasurementSettingsRequest` operations from the API feat: add `CreateDataStream`, `DeleteDataStream`, `UpdateDataStream`, `ListDataStreams` operations to support the new `DataStream` resource feat: add `DISPLAY_VIDEO_360_ADVERTISER_LINK`, `DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL` fields to `ChangeHistoryResourceType` enum feat: add the `account` field to the `Property` type docs: update the documentation with a new list of valid values for `UserLink.direct_roles` field - [ ] Regenerate this pull request now. PiperOrigin-RevId: 416888961 Source-Link: googleapis/googleapis@54861b4 Source-Link: https://github.com/googleapis/googleapis-gen/commit/0f16b9ae48611d9836acdb37e9f167419a8ef096 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMGYxNmI5YWU0ODYxMWQ5ODM2YWNkYjM3ZTlmMTY3NDE5YThlZjA5NiJ9
1 parent bd3bbac commit e9fd55a

File tree

56 files changed

+17473
-5818
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+17473
-5818
lines changed

google-analytics-admin/clirr-ignored-differences.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,14 @@
1616
<className>com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceStub*</className>
1717
<method>* *FirebaseLink*(*)</method>
1818
</difference>
19+
<difference>
20+
<differenceType>7002</differenceType>
21+
<className>com/google/analytics/admin/v1alpha/AnalyticsAdminService*</className>
22+
<method>* *EnhancedMeasurementSettings*(*)</method>
23+
</difference>
24+
<difference>
25+
<differenceType>7002</differenceType>
26+
<className>com/google/analytics/admin/v1alpha/stub/*AnalyticsAdminServiceStub*</className>
27+
<method>* *EnhancedMeasurementSettings*(*)</method>
28+
</difference>
1929
</differences>

google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClient.java

Lines changed: 672 additions & 225 deletions
Large diffs are not rendered by default.

google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings.java

Lines changed: 72 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListConversionEventsPagedResponse;
2424
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListCustomDimensionsPagedResponse;
2525
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListCustomMetricsPagedResponse;
26+
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDataStreamsPagedResponse;
2627
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinkProposalsPagedResponse;
2728
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinksPagedResponse;
2829
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListFirebaseLinksPagedResponse;
@@ -294,20 +295,6 @@ public UnaryCallSettings<DeleteIosAppDataStreamRequest, Empty> deleteIosAppDataS
294295
.listAndroidAppDataStreamsSettings();
295296
}
296297

297-
/** Returns the object with the settings used for calls to getEnhancedMeasurementSettings. */
298-
public UnaryCallSettings<GetEnhancedMeasurementSettingsRequest, EnhancedMeasurementSettings>
299-
getEnhancedMeasurementSettingsSettings() {
300-
return ((AnalyticsAdminServiceStubSettings) getStubSettings())
301-
.getEnhancedMeasurementSettingsSettings();
302-
}
303-
304-
/** Returns the object with the settings used for calls to updateEnhancedMeasurementSettings. */
305-
public UnaryCallSettings<UpdateEnhancedMeasurementSettingsRequest, EnhancedMeasurementSettings>
306-
updateEnhancedMeasurementSettingsSettings() {
307-
return ((AnalyticsAdminServiceStubSettings) getStubSettings())
308-
.updateEnhancedMeasurementSettingsSettings();
309-
}
310-
311298
/** Returns the object with the settings used for calls to createFirebaseLink. */
312299
public UnaryCallSettings<CreateFirebaseLinkRequest, FirebaseLink> createFirebaseLinkSettings() {
313300
return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createFirebaseLinkSettings();
@@ -398,6 +385,14 @@ public UnaryCallSettings<DeleteGoogleAdsLinkRequest, Empty> deleteGoogleAdsLinkS
398385
.updateMeasurementProtocolSecretSettings();
399386
}
400387

388+
/** Returns the object with the settings used for calls to acknowledgeUserDataCollection. */
389+
public UnaryCallSettings<
390+
AcknowledgeUserDataCollectionRequest, AcknowledgeUserDataCollectionResponse>
391+
acknowledgeUserDataCollectionSettings() {
392+
return ((AnalyticsAdminServiceStubSettings) getStubSettings())
393+
.acknowledgeUserDataCollectionSettings();
394+
}
395+
401396
/** Returns the object with the settings used for calls to searchChangeHistoryEvents. */
402397
public PagedCallSettings<
403398
SearchChangeHistoryEventsRequest,
@@ -629,6 +624,33 @@ public UnaryCallSettings<GetCustomMetricRequest, CustomMetric> getCustomMetricSe
629624
.updateDataRetentionSettingsSettings();
630625
}
631626

627+
/** Returns the object with the settings used for calls to createDataStream. */
628+
public UnaryCallSettings<CreateDataStreamRequest, DataStream> createDataStreamSettings() {
629+
return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createDataStreamSettings();
630+
}
631+
632+
/** Returns the object with the settings used for calls to deleteDataStream. */
633+
public UnaryCallSettings<DeleteDataStreamRequest, Empty> deleteDataStreamSettings() {
634+
return ((AnalyticsAdminServiceStubSettings) getStubSettings()).deleteDataStreamSettings();
635+
}
636+
637+
/** Returns the object with the settings used for calls to updateDataStream. */
638+
public UnaryCallSettings<UpdateDataStreamRequest, DataStream> updateDataStreamSettings() {
639+
return ((AnalyticsAdminServiceStubSettings) getStubSettings()).updateDataStreamSettings();
640+
}
641+
642+
/** Returns the object with the settings used for calls to listDataStreams. */
643+
public PagedCallSettings<
644+
ListDataStreamsRequest, ListDataStreamsResponse, ListDataStreamsPagedResponse>
645+
listDataStreamsSettings() {
646+
return ((AnalyticsAdminServiceStubSettings) getStubSettings()).listDataStreamsSettings();
647+
}
648+
649+
/** Returns the object with the settings used for calls to getDataStream. */
650+
public UnaryCallSettings<GetDataStreamRequest, DataStream> getDataStreamSettings() {
651+
return ((AnalyticsAdminServiceStubSettings) getStubSettings()).getDataStreamSettings();
652+
}
653+
632654
public static final AnalyticsAdminServiceSettings create(AnalyticsAdminServiceStubSettings stub)
633655
throws IOException {
634656
return new AnalyticsAdminServiceSettings.Builder(stub.toBuilder()).build();
@@ -934,20 +956,6 @@ public UnaryCallSettings.Builder<DeleteUserLinkRequest, Empty> deleteUserLinkSet
934956
return getStubSettingsBuilder().listAndroidAppDataStreamsSettings();
935957
}
936958

937-
/** Returns the builder for the settings used for calls to getEnhancedMeasurementSettings. */
938-
public UnaryCallSettings.Builder<
939-
GetEnhancedMeasurementSettingsRequest, EnhancedMeasurementSettings>
940-
getEnhancedMeasurementSettingsSettings() {
941-
return getStubSettingsBuilder().getEnhancedMeasurementSettingsSettings();
942-
}
943-
944-
/** Returns the builder for the settings used for calls to updateEnhancedMeasurementSettings. */
945-
public UnaryCallSettings.Builder<
946-
UpdateEnhancedMeasurementSettingsRequest, EnhancedMeasurementSettings>
947-
updateEnhancedMeasurementSettingsSettings() {
948-
return getStubSettingsBuilder().updateEnhancedMeasurementSettingsSettings();
949-
}
950-
951959
/** Returns the builder for the settings used for calls to createFirebaseLink. */
952960
public UnaryCallSettings.Builder<CreateFirebaseLinkRequest, FirebaseLink>
953961
createFirebaseLinkSettings() {
@@ -1039,6 +1047,13 @@ public UnaryCallSettings.Builder<DeleteUserLinkRequest, Empty> deleteUserLinkSet
10391047
return getStubSettingsBuilder().updateMeasurementProtocolSecretSettings();
10401048
}
10411049

1050+
/** Returns the builder for the settings used for calls to acknowledgeUserDataCollection. */
1051+
public UnaryCallSettings.Builder<
1052+
AcknowledgeUserDataCollectionRequest, AcknowledgeUserDataCollectionResponse>
1053+
acknowledgeUserDataCollectionSettings() {
1054+
return getStubSettingsBuilder().acknowledgeUserDataCollectionSettings();
1055+
}
1056+
10421057
/** Returns the builder for the settings used for calls to searchChangeHistoryEvents. */
10431058
public PagedCallSettings.Builder<
10441059
SearchChangeHistoryEventsRequest,
@@ -1271,6 +1286,35 @@ public UnaryCallSettings.Builder<DeleteUserLinkRequest, Empty> deleteUserLinkSet
12711286
return getStubSettingsBuilder().updateDataRetentionSettingsSettings();
12721287
}
12731288

1289+
/** Returns the builder for the settings used for calls to createDataStream. */
1290+
public UnaryCallSettings.Builder<CreateDataStreamRequest, DataStream>
1291+
createDataStreamSettings() {
1292+
return getStubSettingsBuilder().createDataStreamSettings();
1293+
}
1294+
1295+
/** Returns the builder for the settings used for calls to deleteDataStream. */
1296+
public UnaryCallSettings.Builder<DeleteDataStreamRequest, Empty> deleteDataStreamSettings() {
1297+
return getStubSettingsBuilder().deleteDataStreamSettings();
1298+
}
1299+
1300+
/** Returns the builder for the settings used for calls to updateDataStream. */
1301+
public UnaryCallSettings.Builder<UpdateDataStreamRequest, DataStream>
1302+
updateDataStreamSettings() {
1303+
return getStubSettingsBuilder().updateDataStreamSettings();
1304+
}
1305+
1306+
/** Returns the builder for the settings used for calls to listDataStreams. */
1307+
public PagedCallSettings.Builder<
1308+
ListDataStreamsRequest, ListDataStreamsResponse, ListDataStreamsPagedResponse>
1309+
listDataStreamsSettings() {
1310+
return getStubSettingsBuilder().listDataStreamsSettings();
1311+
}
1312+
1313+
/** Returns the builder for the settings used for calls to getDataStream. */
1314+
public UnaryCallSettings.Builder<GetDataStreamRequest, DataStream> getDataStreamSettings() {
1315+
return getStubSettingsBuilder().getDataStreamSettings();
1316+
}
1317+
12741318
@Override
12751319
public AnalyticsAdminServiceSettings build() throws IOException {
12761320
return new AnalyticsAdminServiceSettings(this);

google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/gapic_metadata.json

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
"grpc": {
1111
"libraryClient": "AnalyticsAdminServiceClient",
1212
"rpcs": {
13+
"AcknowledgeUserDataCollection": {
14+
"methods": ["acknowledgeUserDataCollection", "acknowledgeUserDataCollectionCallable"]
15+
},
1316
"ApproveDisplayVideo360AdvertiserLinkProposal": {
1417
"methods": ["approveDisplayVideo360AdvertiserLinkProposal", "approveDisplayVideo360AdvertiserLinkProposalCallable"]
1518
},
@@ -46,6 +49,9 @@
4649
"CreateCustomMetric": {
4750
"methods": ["createCustomMetric", "createCustomMetric", "createCustomMetric", "createCustomMetricCallable"]
4851
},
52+
"CreateDataStream": {
53+
"methods": ["createDataStream", "createDataStream", "createDataStream", "createDataStreamCallable"]
54+
},
4955
"CreateDisplayVideo360AdvertiserLink": {
5056
"methods": ["createDisplayVideo360AdvertiserLink", "createDisplayVideo360AdvertiserLink", "createDisplayVideo360AdvertiserLink", "createDisplayVideo360AdvertiserLinkCallable"]
5157
},
@@ -79,6 +85,9 @@
7985
"DeleteConversionEvent": {
8086
"methods": ["deleteConversionEvent", "deleteConversionEvent", "deleteConversionEvent", "deleteConversionEventCallable"]
8187
},
88+
"DeleteDataStream": {
89+
"methods": ["deleteDataStream", "deleteDataStream", "deleteDataStream", "deleteDataStreamCallable"]
90+
},
8291
"DeleteDisplayVideo360AdvertiserLink": {
8392
"methods": ["deleteDisplayVideo360AdvertiserLink", "deleteDisplayVideo360AdvertiserLink", "deleteDisplayVideo360AdvertiserLink", "deleteDisplayVideo360AdvertiserLinkCallable"]
8493
},
@@ -127,15 +136,15 @@
127136
"GetDataSharingSettings": {
128137
"methods": ["getDataSharingSettings", "getDataSharingSettings", "getDataSharingSettings", "getDataSharingSettingsCallable"]
129138
},
139+
"GetDataStream": {
140+
"methods": ["getDataStream", "getDataStream", "getDataStream", "getDataStreamCallable"]
141+
},
130142
"GetDisplayVideo360AdvertiserLink": {
131143
"methods": ["getDisplayVideo360AdvertiserLink", "getDisplayVideo360AdvertiserLink", "getDisplayVideo360AdvertiserLink", "getDisplayVideo360AdvertiserLinkCallable"]
132144
},
133145
"GetDisplayVideo360AdvertiserLinkProposal": {
134146
"methods": ["getDisplayVideo360AdvertiserLinkProposal", "getDisplayVideo360AdvertiserLinkProposal", "getDisplayVideo360AdvertiserLinkProposal", "getDisplayVideo360AdvertiserLinkProposalCallable"]
135147
},
136-
"GetEnhancedMeasurementSettings": {
137-
"methods": ["getEnhancedMeasurementSettings", "getEnhancedMeasurementSettings", "getEnhancedMeasurementSettings", "getEnhancedMeasurementSettingsCallable"]
138-
},
139148
"GetGlobalSiteTag": {
140149
"methods": ["getGlobalSiteTag", "getGlobalSiteTag", "getGlobalSiteTag", "getGlobalSiteTagCallable"]
141150
},
@@ -175,6 +184,9 @@
175184
"ListCustomMetrics": {
176185
"methods": ["listCustomMetrics", "listCustomMetrics", "listCustomMetrics", "listCustomMetricsPagedCallable", "listCustomMetricsCallable"]
177186
},
187+
"ListDataStreams": {
188+
"methods": ["listDataStreams", "listDataStreams", "listDataStreams", "listDataStreamsPagedCallable", "listDataStreamsCallable"]
189+
},
178190
"ListDisplayVideo360AdvertiserLinkProposals": {
179191
"methods": ["listDisplayVideo360AdvertiserLinkProposals", "listDisplayVideo360AdvertiserLinkProposals", "listDisplayVideo360AdvertiserLinkProposals", "listDisplayVideo360AdvertiserLinkProposalsPagedCallable", "listDisplayVideo360AdvertiserLinkProposalsCallable"]
180192
},
@@ -223,12 +235,12 @@
223235
"UpdateDataRetentionSettings": {
224236
"methods": ["updateDataRetentionSettings", "updateDataRetentionSettings", "updateDataRetentionSettingsCallable"]
225237
},
238+
"UpdateDataStream": {
239+
"methods": ["updateDataStream", "updateDataStream", "updateDataStreamCallable"]
240+
},
226241
"UpdateDisplayVideo360AdvertiserLink": {
227242
"methods": ["updateDisplayVideo360AdvertiserLink", "updateDisplayVideo360AdvertiserLink", "updateDisplayVideo360AdvertiserLinkCallable"]
228243
},
229-
"UpdateEnhancedMeasurementSettings": {
230-
"methods": ["updateEnhancedMeasurementSettings", "updateEnhancedMeasurementSettings", "updateEnhancedMeasurementSettingsCallable"]
231-
},
232244
"UpdateGoogleAdsLink": {
233245
"methods": ["updateGoogleAdsLink", "updateGoogleAdsLink", "updateGoogleAdsLinkCallable"]
234246
},

0 commit comments

Comments
 (0)