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

feat: add the AcknowledgeUserDataCollection operation which acknowledges the terms of user data collection for the specified property #323

Merged
merged 6 commits into from
Jan 14, 2022
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions google-analytics-admin/clirr-ignored-differences.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,14 @@
<className>com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceStub*</className>
<method>* *FirebaseLink*(*)</method>
</difference>
<difference>
<differenceType>7002</differenceType>
<className>com/google/analytics/admin/v1alpha/AnalyticsAdminService*</className>
<method>* *EnhancedMeasurementSettings*(*)</method>
</difference>
<difference>
<differenceType>7002</differenceType>
<className>com/google/analytics/admin/v1alpha/stub/*AnalyticsAdminServiceStub*</className>
<method>* *EnhancedMeasurementSettings*(*)</method>
</difference>
</differences>

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListConversionEventsPagedResponse;
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListCustomDimensionsPagedResponse;
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListCustomMetricsPagedResponse;
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDataStreamsPagedResponse;
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinkProposalsPagedResponse;
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinksPagedResponse;
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListFirebaseLinksPagedResponse;
Expand Down Expand Up @@ -294,20 +295,6 @@ public UnaryCallSettings<DeleteIosAppDataStreamRequest, Empty> deleteIosAppDataS
.listAndroidAppDataStreamsSettings();
}

/** Returns the object with the settings used for calls to getEnhancedMeasurementSettings. */
public UnaryCallSettings<GetEnhancedMeasurementSettingsRequest, EnhancedMeasurementSettings>
getEnhancedMeasurementSettingsSettings() {
return ((AnalyticsAdminServiceStubSettings) getStubSettings())
.getEnhancedMeasurementSettingsSettings();
}

/** Returns the object with the settings used for calls to updateEnhancedMeasurementSettings. */
public UnaryCallSettings<UpdateEnhancedMeasurementSettingsRequest, EnhancedMeasurementSettings>
updateEnhancedMeasurementSettingsSettings() {
return ((AnalyticsAdminServiceStubSettings) getStubSettings())
.updateEnhancedMeasurementSettingsSettings();
}

/** Returns the object with the settings used for calls to createFirebaseLink. */
public UnaryCallSettings<CreateFirebaseLinkRequest, FirebaseLink> createFirebaseLinkSettings() {
return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createFirebaseLinkSettings();
Expand Down Expand Up @@ -398,6 +385,14 @@ public UnaryCallSettings<DeleteGoogleAdsLinkRequest, Empty> deleteGoogleAdsLinkS
.updateMeasurementProtocolSecretSettings();
}

/** Returns the object with the settings used for calls to acknowledgeUserDataCollection. */
public UnaryCallSettings<
AcknowledgeUserDataCollectionRequest, AcknowledgeUserDataCollectionResponse>
acknowledgeUserDataCollectionSettings() {
return ((AnalyticsAdminServiceStubSettings) getStubSettings())
.acknowledgeUserDataCollectionSettings();
}

/** Returns the object with the settings used for calls to searchChangeHistoryEvents. */
public PagedCallSettings<
SearchChangeHistoryEventsRequest,
Expand Down Expand Up @@ -629,6 +624,33 @@ public UnaryCallSettings<GetCustomMetricRequest, CustomMetric> getCustomMetricSe
.updateDataRetentionSettingsSettings();
}

/** Returns the object with the settings used for calls to createDataStream. */
public UnaryCallSettings<CreateDataStreamRequest, DataStream> createDataStreamSettings() {
return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createDataStreamSettings();
}

/** Returns the object with the settings used for calls to deleteDataStream. */
public UnaryCallSettings<DeleteDataStreamRequest, Empty> deleteDataStreamSettings() {
return ((AnalyticsAdminServiceStubSettings) getStubSettings()).deleteDataStreamSettings();
}

/** Returns the object with the settings used for calls to updateDataStream. */
public UnaryCallSettings<UpdateDataStreamRequest, DataStream> updateDataStreamSettings() {
return ((AnalyticsAdminServiceStubSettings) getStubSettings()).updateDataStreamSettings();
}

/** Returns the object with the settings used for calls to listDataStreams. */
public PagedCallSettings<
ListDataStreamsRequest, ListDataStreamsResponse, ListDataStreamsPagedResponse>
listDataStreamsSettings() {
return ((AnalyticsAdminServiceStubSettings) getStubSettings()).listDataStreamsSettings();
}

/** Returns the object with the settings used for calls to getDataStream. */
public UnaryCallSettings<GetDataStreamRequest, DataStream> getDataStreamSettings() {
return ((AnalyticsAdminServiceStubSettings) getStubSettings()).getDataStreamSettings();
}

public static final AnalyticsAdminServiceSettings create(AnalyticsAdminServiceStubSettings stub)
throws IOException {
return new AnalyticsAdminServiceSettings.Builder(stub.toBuilder()).build();
Expand Down Expand Up @@ -934,20 +956,6 @@ public UnaryCallSettings.Builder<DeleteUserLinkRequest, Empty> deleteUserLinkSet
return getStubSettingsBuilder().listAndroidAppDataStreamsSettings();
}

/** Returns the builder for the settings used for calls to getEnhancedMeasurementSettings. */
public UnaryCallSettings.Builder<
GetEnhancedMeasurementSettingsRequest, EnhancedMeasurementSettings>
getEnhancedMeasurementSettingsSettings() {
return getStubSettingsBuilder().getEnhancedMeasurementSettingsSettings();
}

/** Returns the builder for the settings used for calls to updateEnhancedMeasurementSettings. */
public UnaryCallSettings.Builder<
UpdateEnhancedMeasurementSettingsRequest, EnhancedMeasurementSettings>
updateEnhancedMeasurementSettingsSettings() {
return getStubSettingsBuilder().updateEnhancedMeasurementSettingsSettings();
}

/** Returns the builder for the settings used for calls to createFirebaseLink. */
public UnaryCallSettings.Builder<CreateFirebaseLinkRequest, FirebaseLink>
createFirebaseLinkSettings() {
Expand Down Expand Up @@ -1039,6 +1047,13 @@ public UnaryCallSettings.Builder<DeleteUserLinkRequest, Empty> deleteUserLinkSet
return getStubSettingsBuilder().updateMeasurementProtocolSecretSettings();
}

/** Returns the builder for the settings used for calls to acknowledgeUserDataCollection. */
public UnaryCallSettings.Builder<
AcknowledgeUserDataCollectionRequest, AcknowledgeUserDataCollectionResponse>
acknowledgeUserDataCollectionSettings() {
return getStubSettingsBuilder().acknowledgeUserDataCollectionSettings();
}

/** Returns the builder for the settings used for calls to searchChangeHistoryEvents. */
public PagedCallSettings.Builder<
SearchChangeHistoryEventsRequest,
Expand Down Expand Up @@ -1271,6 +1286,35 @@ public UnaryCallSettings.Builder<DeleteUserLinkRequest, Empty> deleteUserLinkSet
return getStubSettingsBuilder().updateDataRetentionSettingsSettings();
}

/** Returns the builder for the settings used for calls to createDataStream. */
public UnaryCallSettings.Builder<CreateDataStreamRequest, DataStream>
createDataStreamSettings() {
return getStubSettingsBuilder().createDataStreamSettings();
}

/** Returns the builder for the settings used for calls to deleteDataStream. */
public UnaryCallSettings.Builder<DeleteDataStreamRequest, Empty> deleteDataStreamSettings() {
return getStubSettingsBuilder().deleteDataStreamSettings();
}

/** Returns the builder for the settings used for calls to updateDataStream. */
public UnaryCallSettings.Builder<UpdateDataStreamRequest, DataStream>
updateDataStreamSettings() {
return getStubSettingsBuilder().updateDataStreamSettings();
}

/** Returns the builder for the settings used for calls to listDataStreams. */
public PagedCallSettings.Builder<
ListDataStreamsRequest, ListDataStreamsResponse, ListDataStreamsPagedResponse>
listDataStreamsSettings() {
return getStubSettingsBuilder().listDataStreamsSettings();
}

/** Returns the builder for the settings used for calls to getDataStream. */
public UnaryCallSettings.Builder<GetDataStreamRequest, DataStream> getDataStreamSettings() {
return getStubSettingsBuilder().getDataStreamSettings();
}

@Override
public AnalyticsAdminServiceSettings build() throws IOException {
return new AnalyticsAdminServiceSettings(this);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
"grpc": {
"libraryClient": "AnalyticsAdminServiceClient",
"rpcs": {
"AcknowledgeUserDataCollection": {
"methods": ["acknowledgeUserDataCollection", "acknowledgeUserDataCollectionCallable"]
},
"ApproveDisplayVideo360AdvertiserLinkProposal": {
"methods": ["approveDisplayVideo360AdvertiserLinkProposal", "approveDisplayVideo360AdvertiserLinkProposalCallable"]
},
Expand Down Expand Up @@ -46,6 +49,9 @@
"CreateCustomMetric": {
"methods": ["createCustomMetric", "createCustomMetric", "createCustomMetric", "createCustomMetricCallable"]
},
"CreateDataStream": {
"methods": ["createDataStream", "createDataStream", "createDataStream", "createDataStreamCallable"]
},
"CreateDisplayVideo360AdvertiserLink": {
"methods": ["createDisplayVideo360AdvertiserLink", "createDisplayVideo360AdvertiserLink", "createDisplayVideo360AdvertiserLink", "createDisplayVideo360AdvertiserLinkCallable"]
},
Expand Down Expand Up @@ -79,6 +85,9 @@
"DeleteConversionEvent": {
"methods": ["deleteConversionEvent", "deleteConversionEvent", "deleteConversionEvent", "deleteConversionEventCallable"]
},
"DeleteDataStream": {
"methods": ["deleteDataStream", "deleteDataStream", "deleteDataStream", "deleteDataStreamCallable"]
},
"DeleteDisplayVideo360AdvertiserLink": {
"methods": ["deleteDisplayVideo360AdvertiserLink", "deleteDisplayVideo360AdvertiserLink", "deleteDisplayVideo360AdvertiserLink", "deleteDisplayVideo360AdvertiserLinkCallable"]
},
Expand Down Expand Up @@ -127,15 +136,15 @@
"GetDataSharingSettings": {
"methods": ["getDataSharingSettings", "getDataSharingSettings", "getDataSharingSettings", "getDataSharingSettingsCallable"]
},
"GetDataStream": {
"methods": ["getDataStream", "getDataStream", "getDataStream", "getDataStreamCallable"]
},
"GetDisplayVideo360AdvertiserLink": {
"methods": ["getDisplayVideo360AdvertiserLink", "getDisplayVideo360AdvertiserLink", "getDisplayVideo360AdvertiserLink", "getDisplayVideo360AdvertiserLinkCallable"]
},
"GetDisplayVideo360AdvertiserLinkProposal": {
"methods": ["getDisplayVideo360AdvertiserLinkProposal", "getDisplayVideo360AdvertiserLinkProposal", "getDisplayVideo360AdvertiserLinkProposal", "getDisplayVideo360AdvertiserLinkProposalCallable"]
},
"GetEnhancedMeasurementSettings": {
"methods": ["getEnhancedMeasurementSettings", "getEnhancedMeasurementSettings", "getEnhancedMeasurementSettings", "getEnhancedMeasurementSettingsCallable"]
},
"GetGlobalSiteTag": {
"methods": ["getGlobalSiteTag", "getGlobalSiteTag", "getGlobalSiteTag", "getGlobalSiteTagCallable"]
},
Expand Down Expand Up @@ -175,6 +184,9 @@
"ListCustomMetrics": {
"methods": ["listCustomMetrics", "listCustomMetrics", "listCustomMetrics", "listCustomMetricsPagedCallable", "listCustomMetricsCallable"]
},
"ListDataStreams": {
"methods": ["listDataStreams", "listDataStreams", "listDataStreams", "listDataStreamsPagedCallable", "listDataStreamsCallable"]
},
"ListDisplayVideo360AdvertiserLinkProposals": {
"methods": ["listDisplayVideo360AdvertiserLinkProposals", "listDisplayVideo360AdvertiserLinkProposals", "listDisplayVideo360AdvertiserLinkProposals", "listDisplayVideo360AdvertiserLinkProposalsPagedCallable", "listDisplayVideo360AdvertiserLinkProposalsCallable"]
},
Expand Down Expand Up @@ -223,12 +235,12 @@
"UpdateDataRetentionSettings": {
"methods": ["updateDataRetentionSettings", "updateDataRetentionSettings", "updateDataRetentionSettingsCallable"]
},
"UpdateDataStream": {
"methods": ["updateDataStream", "updateDataStream", "updateDataStreamCallable"]
},
"UpdateDisplayVideo360AdvertiserLink": {
"methods": ["updateDisplayVideo360AdvertiserLink", "updateDisplayVideo360AdvertiserLink", "updateDisplayVideo360AdvertiserLinkCallable"]
},
"UpdateEnhancedMeasurementSettings": {
"methods": ["updateEnhancedMeasurementSettings", "updateEnhancedMeasurementSettings", "updateEnhancedMeasurementSettingsCallable"]
},
"UpdateGoogleAdsLink": {
"methods": ["updateGoogleAdsLink", "updateGoogleAdsLink", "updateGoogleAdsLinkCallable"]
},
Expand Down
Loading