diff --git a/.github/generated-files-bot.yml b/.github/generated-files-bot.yml
index 47c2ba13..c644a24e 100644
--- a/.github/generated-files-bot.yml
+++ b/.github/generated-files-bot.yml
@@ -9,3 +9,4 @@ ignoreAuthors:
- 'renovate-bot'
- 'yoshi-automation'
- 'release-please[bot]'
+- 'gcf-owl-bot[bot]'
diff --git a/.kokoro/build.sh b/.kokoro/build.sh
index 4d93f976..6774be95 100755
--- a/.kokoro/build.sh
+++ b/.kokoro/build.sh
@@ -23,8 +23,8 @@ cd ${scriptDir}/..
# include common functions
source ${scriptDir}/common.sh
-# Print out Java version
-java -version
+# Print out Maven & Java version
+mvn -version
echo ${JOB_TYPE}
# attempt to install 3 times with exponential backoff (starting with 10 seconds)
diff --git a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClient.java b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClient.java
index 95c10d12..67308dde 100644
--- a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClient.java
+++ b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClient.java
@@ -4840,6 +4840,698 @@ public final DataSharingSettings getDataSharingSettings(GetDataSharingSettingsRe
return stub.getDataSharingSettingsCallable();
}
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lookup for a single "GA4" MeasurementProtocolSecret.
+ *
+ *
+ getMeasurementProtocolSecretCallable() {
+ return stub.getMeasurementProtocolSecretCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns child MeasurementProtocolSecrets under the specified parent Property.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * WebDataStreamName parent = WebDataStreamName.of("[PROPERTY]", "[WEB_DATA_STREAM]");
+ * for (MeasurementProtocolSecret element :
+ * analyticsAdminServiceClient.listMeasurementProtocolSecrets(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the parent stream. Any type of stream
+ * (WebDataStream, IosAppDataStream, AndroidAppDataStream) may be a parent. Format:
+ * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListMeasurementProtocolSecretsPagedResponse listMeasurementProtocolSecrets(
+ WebDataStreamName parent) {
+ ListMeasurementProtocolSecretsRequest request =
+ ListMeasurementProtocolSecretsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listMeasurementProtocolSecrets(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns child MeasurementProtocolSecrets under the specified parent Property.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * String parent =
+ * MeasurementProtocolSecretName.of(
+ * "[PROPERTY]", "[WEB_DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]")
+ * .toString();
+ * for (MeasurementProtocolSecret element :
+ * analyticsAdminServiceClient.listMeasurementProtocolSecrets(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the parent stream. Any type of stream
+ * (WebDataStream, IosAppDataStream, AndroidAppDataStream) may be a parent. Format:
+ * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListMeasurementProtocolSecretsPagedResponse listMeasurementProtocolSecrets(
+ String parent) {
+ ListMeasurementProtocolSecretsRequest request =
+ ListMeasurementProtocolSecretsRequest.newBuilder().setParent(parent).build();
+ return listMeasurementProtocolSecrets(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns child MeasurementProtocolSecrets under the specified parent Property.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * ListMeasurementProtocolSecretsRequest request =
+ * ListMeasurementProtocolSecretsRequest.newBuilder()
+ * .setParent(
+ * MeasurementProtocolSecretName.of(
+ * "[PROPERTY]", "[WEB_DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]")
+ * .toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * for (MeasurementProtocolSecret element :
+ * analyticsAdminServiceClient.listMeasurementProtocolSecrets(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListMeasurementProtocolSecretsPagedResponse listMeasurementProtocolSecrets(
+ ListMeasurementProtocolSecretsRequest request) {
+ return listMeasurementProtocolSecretsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns child MeasurementProtocolSecrets under the specified parent Property.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * ListMeasurementProtocolSecretsRequest request =
+ * ListMeasurementProtocolSecretsRequest.newBuilder()
+ * .setParent(
+ * MeasurementProtocolSecretName.of(
+ * "[PROPERTY]", "[WEB_DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]")
+ * .toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * ApiFuture future =
+ * analyticsAdminServiceClient
+ * .listMeasurementProtocolSecretsPagedCallable()
+ * .futureCall(request);
+ * // Do something.
+ * for (MeasurementProtocolSecret element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable<
+ ListMeasurementProtocolSecretsRequest, ListMeasurementProtocolSecretsPagedResponse>
+ listMeasurementProtocolSecretsPagedCallable() {
+ return stub.listMeasurementProtocolSecretsPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns child MeasurementProtocolSecrets under the specified parent Property.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * ListMeasurementProtocolSecretsRequest request =
+ * ListMeasurementProtocolSecretsRequest.newBuilder()
+ * .setParent(
+ * MeasurementProtocolSecretName.of(
+ * "[PROPERTY]", "[WEB_DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]")
+ * .toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * while (true) {
+ * ListMeasurementProtocolSecretsResponse response =
+ * analyticsAdminServiceClient.listMeasurementProtocolSecretsCallable().call(request);
+ * for (MeasurementProtocolSecret element : response.getResponsesList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable<
+ ListMeasurementProtocolSecretsRequest, ListMeasurementProtocolSecretsResponse>
+ listMeasurementProtocolSecretsCallable() {
+ return stub.listMeasurementProtocolSecretsCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a measurement protocol secret.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * WebDataStreamName parent = WebDataStreamName.of("[PROPERTY]", "[WEB_DATA_STREAM]");
+ * MeasurementProtocolSecret measurementProtocolSecret =
+ * MeasurementProtocolSecret.newBuilder().build();
+ * MeasurementProtocolSecret response =
+ * analyticsAdminServiceClient.createMeasurementProtocolSecret(
+ * parent, measurementProtocolSecret);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where this secret will be created. Any type of
+ * stream (WebDataStream, IosAppDataStream, AndroidAppDataStream) may be a parent. Format:
+ * properties/{property}/webDataStreams/{webDataStream}
+ * @param measurementProtocolSecret Required. The measurement protocol secret to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final MeasurementProtocolSecret createMeasurementProtocolSecret(
+ WebDataStreamName parent, MeasurementProtocolSecret measurementProtocolSecret) {
+ CreateMeasurementProtocolSecretRequest request =
+ CreateMeasurementProtocolSecretRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setMeasurementProtocolSecret(measurementProtocolSecret)
+ .build();
+ return createMeasurementProtocolSecret(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a measurement protocol secret.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * String parent =
+ * MeasurementProtocolSecretName.of(
+ * "[PROPERTY]", "[WEB_DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]")
+ * .toString();
+ * MeasurementProtocolSecret measurementProtocolSecret =
+ * MeasurementProtocolSecret.newBuilder().build();
+ * MeasurementProtocolSecret response =
+ * analyticsAdminServiceClient.createMeasurementProtocolSecret(
+ * parent, measurementProtocolSecret);
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource where this secret will be created. Any type of
+ * stream (WebDataStream, IosAppDataStream, AndroidAppDataStream) may be a parent. Format:
+ * properties/{property}/webDataStreams/{webDataStream}
+ * @param measurementProtocolSecret Required. The measurement protocol secret to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final MeasurementProtocolSecret createMeasurementProtocolSecret(
+ String parent, MeasurementProtocolSecret measurementProtocolSecret) {
+ CreateMeasurementProtocolSecretRequest request =
+ CreateMeasurementProtocolSecretRequest.newBuilder()
+ .setParent(parent)
+ .setMeasurementProtocolSecret(measurementProtocolSecret)
+ .build();
+ return createMeasurementProtocolSecret(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a measurement protocol secret.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * CreateMeasurementProtocolSecretRequest request =
+ * CreateMeasurementProtocolSecretRequest.newBuilder()
+ * .setParent(
+ * MeasurementProtocolSecretName.of(
+ * "[PROPERTY]", "[WEB_DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]")
+ * .toString())
+ * .setMeasurementProtocolSecret(MeasurementProtocolSecret.newBuilder().build())
+ * .build();
+ * MeasurementProtocolSecret response =
+ * analyticsAdminServiceClient.createMeasurementProtocolSecret(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final MeasurementProtocolSecret createMeasurementProtocolSecret(
+ CreateMeasurementProtocolSecretRequest request) {
+ return createMeasurementProtocolSecretCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a measurement protocol secret.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * CreateMeasurementProtocolSecretRequest request =
+ * CreateMeasurementProtocolSecretRequest.newBuilder()
+ * .setParent(
+ * MeasurementProtocolSecretName.of(
+ * "[PROPERTY]", "[WEB_DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]")
+ * .toString())
+ * .setMeasurementProtocolSecret(MeasurementProtocolSecret.newBuilder().build())
+ * .build();
+ * ApiFuture future =
+ * analyticsAdminServiceClient.createMeasurementProtocolSecretCallable().futureCall(request);
+ * // Do something.
+ * MeasurementProtocolSecret response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ createMeasurementProtocolSecretCallable() {
+ return stub.createMeasurementProtocolSecretCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes target MeasurementProtocolSecret.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * MeasurementProtocolSecretName name =
+ * MeasurementProtocolSecretName.of(
+ * "[PROPERTY]", "[WEB_DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]");
+ * analyticsAdminServiceClient.deleteMeasurementProtocolSecret(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the MeasurementProtocolSecret to delete. Format:
+ * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+ * Note: Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream) may be a
+ * parent.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void deleteMeasurementProtocolSecret(MeasurementProtocolSecretName name) {
+ DeleteMeasurementProtocolSecretRequest request =
+ DeleteMeasurementProtocolSecretRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ deleteMeasurementProtocolSecret(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes target MeasurementProtocolSecret.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * String name =
+ * MeasurementProtocolSecretName.of(
+ * "[PROPERTY]", "[WEB_DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]")
+ * .toString();
+ * analyticsAdminServiceClient.deleteMeasurementProtocolSecret(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the MeasurementProtocolSecret to delete. Format:
+ * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+ * Note: Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream) may be a
+ * parent.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void deleteMeasurementProtocolSecret(String name) {
+ DeleteMeasurementProtocolSecretRequest request =
+ DeleteMeasurementProtocolSecretRequest.newBuilder().setName(name).build();
+ deleteMeasurementProtocolSecret(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes target MeasurementProtocolSecret.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * DeleteMeasurementProtocolSecretRequest request =
+ * DeleteMeasurementProtocolSecretRequest.newBuilder()
+ * .setName(
+ * MeasurementProtocolSecretName.of(
+ * "[PROPERTY]", "[WEB_DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]")
+ * .toString())
+ * .build();
+ * analyticsAdminServiceClient.deleteMeasurementProtocolSecret(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void deleteMeasurementProtocolSecret(
+ DeleteMeasurementProtocolSecretRequest request) {
+ deleteMeasurementProtocolSecretCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes target MeasurementProtocolSecret.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * DeleteMeasurementProtocolSecretRequest request =
+ * DeleteMeasurementProtocolSecretRequest.newBuilder()
+ * .setName(
+ * MeasurementProtocolSecretName.of(
+ * "[PROPERTY]", "[WEB_DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]")
+ * .toString())
+ * .build();
+ * ApiFuture future =
+ * analyticsAdminServiceClient.deleteMeasurementProtocolSecretCallable().futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ deleteMeasurementProtocolSecretCallable() {
+ return stub.deleteMeasurementProtocolSecretCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a measurement protocol secret.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * MeasurementProtocolSecret measurementProtocolSecret =
+ * MeasurementProtocolSecret.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * MeasurementProtocolSecret response =
+ * analyticsAdminServiceClient.updateMeasurementProtocolSecret(
+ * measurementProtocolSecret, updateMask);
+ * }
+ * }
+ *
+ * @param measurementProtocolSecret Required. The measurement protocol secret to update.
+ * @param updateMask The list of fields to be updated. Omitted fields will not be updated.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final MeasurementProtocolSecret updateMeasurementProtocolSecret(
+ MeasurementProtocolSecret measurementProtocolSecret, FieldMask updateMask) {
+ UpdateMeasurementProtocolSecretRequest request =
+ UpdateMeasurementProtocolSecretRequest.newBuilder()
+ .setMeasurementProtocolSecret(measurementProtocolSecret)
+ .setUpdateMask(updateMask)
+ .build();
+ return updateMeasurementProtocolSecret(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a measurement protocol secret.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * UpdateMeasurementProtocolSecretRequest request =
+ * UpdateMeasurementProtocolSecretRequest.newBuilder()
+ * .setMeasurementProtocolSecret(MeasurementProtocolSecret.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * MeasurementProtocolSecret response =
+ * analyticsAdminServiceClient.updateMeasurementProtocolSecret(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final MeasurementProtocolSecret updateMeasurementProtocolSecret(
+ UpdateMeasurementProtocolSecretRequest request) {
+ return updateMeasurementProtocolSecretCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a measurement protocol secret.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * UpdateMeasurementProtocolSecretRequest request =
+ * UpdateMeasurementProtocolSecretRequest.newBuilder()
+ * .setMeasurementProtocolSecret(MeasurementProtocolSecret.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * ApiFuture future =
+ * analyticsAdminServiceClient.updateMeasurementProtocolSecretCallable().futureCall(request);
+ * // Do something.
+ * MeasurementProtocolSecret response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ updateMeasurementProtocolSecretCallable() {
+ return stub.updateMeasurementProtocolSecretCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Searches through all changes to an account or its children given the specified set of filters.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * SearchChangeHistoryEventsRequest request =
+ * SearchChangeHistoryEventsRequest.newBuilder()
+ * .setAccount(AccountName.of("[ACCOUNT]").toString())
+ * .setProperty(PropertyName.of("[PROPERTY]").toString())
+ * .addAllResourceType(new ArrayList())
+ * .addAllAction(new ArrayList())
+ * .addAllActorEmail(new ArrayList())
+ * .setEarliestChangeTime(Timestamp.newBuilder().build())
+ * .setLatestChangeTime(Timestamp.newBuilder().build())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * for (ChangeHistoryEvent element :
+ * analyticsAdminServiceClient.searchChangeHistoryEvents(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final SearchChangeHistoryEventsPagedResponse searchChangeHistoryEvents(
+ SearchChangeHistoryEventsRequest request) {
+ return searchChangeHistoryEventsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Searches through all changes to an account or its children given the specified set of filters.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * SearchChangeHistoryEventsRequest request =
+ * SearchChangeHistoryEventsRequest.newBuilder()
+ * .setAccount(AccountName.of("[ACCOUNT]").toString())
+ * .setProperty(PropertyName.of("[PROPERTY]").toString())
+ * .addAllResourceType(new ArrayList())
+ * .addAllAction(new ArrayList())
+ * .addAllActorEmail(new ArrayList())
+ * .setEarliestChangeTime(Timestamp.newBuilder().build())
+ * .setLatestChangeTime(Timestamp.newBuilder().build())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * ApiFuture future =
+ * analyticsAdminServiceClient.searchChangeHistoryEventsPagedCallable().futureCall(request);
+ * // Do something.
+ * for (ChangeHistoryEvent element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable<
+ SearchChangeHistoryEventsRequest, SearchChangeHistoryEventsPagedResponse>
+ searchChangeHistoryEventsPagedCallable() {
+ return stub.searchChangeHistoryEventsPagedCallable();
+ }
+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Searches through all changes to an account or its children given the specified set of filters.
@@ -4849,109 +5541,1767 @@ public final DataSharingSettings getDataSharingSettings(GetDataSharingSettingsRe
* {@code
* try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
* AnalyticsAdminServiceClient.create()) {
- * SearchChangeHistoryEventsRequest request =
- * SearchChangeHistoryEventsRequest.newBuilder()
- * .setAccount(AccountName.of("[ACCOUNT]").toString())
- * .setProperty(PropertyName.of("[PROPERTY]").toString())
- * .addAllResourceType(new ArrayList())
- * .addAllAction(new ArrayList())
- * .addAllActorEmail(new ArrayList())
- * .setEarliestChangeTime(Timestamp.newBuilder().build())
- * .setLatestChangeTime(Timestamp.newBuilder().build())
- * .setPageSize(883849137)
- * .setPageToken("pageToken873572522")
- * .build();
- * for (ChangeHistoryEvent element :
- * analyticsAdminServiceClient.searchChangeHistoryEvents(request).iterateAll()) {
- * // doThingsWith(element);
- * }
+ * SearchChangeHistoryEventsRequest request =
+ * SearchChangeHistoryEventsRequest.newBuilder()
+ * .setAccount(AccountName.of("[ACCOUNT]").toString())
+ * .setProperty(PropertyName.of("[PROPERTY]").toString())
+ * .addAllResourceType(new ArrayList())
+ * .addAllAction(new ArrayList())
+ * .addAllActorEmail(new ArrayList())
+ * .setEarliestChangeTime(Timestamp.newBuilder().build())
+ * .setLatestChangeTime(Timestamp.newBuilder().build())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * while (true) {
+ * SearchChangeHistoryEventsResponse response =
+ * analyticsAdminServiceClient.searchChangeHistoryEventsCallable().call(request);
+ * for (ChangeHistoryEvent element : response.getResponsesList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ searchChangeHistoryEventsCallable() {
+ return stub.searchChangeHistoryEventsCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lookup for Google Signals settings for a property.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * GoogleSignalsSettingsName name = GoogleSignalsSettingsName.of("[PROPERTY]");
+ * GoogleSignalsSettings response = analyticsAdminServiceClient.getGoogleSignalsSettings(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the google signals settings to retrieve. Format:
+ * properties/{property}/googleSignalsSettings
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final GoogleSignalsSettings getGoogleSignalsSettings(GoogleSignalsSettingsName name) {
+ GetGoogleSignalsSettingsRequest request =
+ GetGoogleSignalsSettingsRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return getGoogleSignalsSettings(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lookup for Google Signals settings for a property.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * String name = GoogleSignalsSettingsName.of("[PROPERTY]").toString();
+ * GoogleSignalsSettings response = analyticsAdminServiceClient.getGoogleSignalsSettings(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the google signals settings to retrieve. Format:
+ * properties/{property}/googleSignalsSettings
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final GoogleSignalsSettings getGoogleSignalsSettings(String name) {
+ GetGoogleSignalsSettingsRequest request =
+ GetGoogleSignalsSettingsRequest.newBuilder().setName(name).build();
+ return getGoogleSignalsSettings(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lookup for Google Signals settings for a property.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * GetGoogleSignalsSettingsRequest request =
+ * GetGoogleSignalsSettingsRequest.newBuilder()
+ * .setName(GoogleSignalsSettingsName.of("[PROPERTY]").toString())
+ * .build();
+ * GoogleSignalsSettings response =
+ * analyticsAdminServiceClient.getGoogleSignalsSettings(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final GoogleSignalsSettings getGoogleSignalsSettings(
+ GetGoogleSignalsSettingsRequest request) {
+ return getGoogleSignalsSettingsCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lookup for Google Signals settings for a property.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * GetGoogleSignalsSettingsRequest request =
+ * GetGoogleSignalsSettingsRequest.newBuilder()
+ * .setName(GoogleSignalsSettingsName.of("[PROPERTY]").toString())
+ * .build();
+ * ApiFuture future =
+ * analyticsAdminServiceClient.getGoogleSignalsSettingsCallable().futureCall(request);
+ * // Do something.
+ * GoogleSignalsSettings response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ getGoogleSignalsSettingsCallable() {
+ return stub.getGoogleSignalsSettingsCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates Google Signals settings for a property.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * GoogleSignalsSettings googleSignalsSettings = GoogleSignalsSettings.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * GoogleSignalsSettings response =
+ * analyticsAdminServiceClient.updateGoogleSignalsSettings(
+ * googleSignalsSettings, updateMask);
+ * }
+ * }
+ *
+ * @param googleSignalsSettings Required. The settings to update. The `name` field is used to
+ * identify the settings to be updated.
+ * @param updateMask Required. The list of fields to be updated. Field names must be in snake case
+ * (e.g., "field_to_update"). Omitted fields will not be updated. To replace the entire
+ * entity, use one path with the string "*" to match all fields.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final GoogleSignalsSettings updateGoogleSignalsSettings(
+ GoogleSignalsSettings googleSignalsSettings, FieldMask updateMask) {
+ UpdateGoogleSignalsSettingsRequest request =
+ UpdateGoogleSignalsSettingsRequest.newBuilder()
+ .setGoogleSignalsSettings(googleSignalsSettings)
+ .setUpdateMask(updateMask)
+ .build();
+ return updateGoogleSignalsSettings(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates Google Signals settings for a property.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * UpdateGoogleSignalsSettingsRequest request =
+ * UpdateGoogleSignalsSettingsRequest.newBuilder()
+ * .setGoogleSignalsSettings(GoogleSignalsSettings.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * GoogleSignalsSettings response =
+ * analyticsAdminServiceClient.updateGoogleSignalsSettings(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final GoogleSignalsSettings updateGoogleSignalsSettings(
+ UpdateGoogleSignalsSettingsRequest request) {
+ return updateGoogleSignalsSettingsCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates Google Signals settings for a property.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * UpdateGoogleSignalsSettingsRequest request =
+ * UpdateGoogleSignalsSettingsRequest.newBuilder()
+ * .setGoogleSignalsSettings(GoogleSignalsSettings.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * ApiFuture future =
+ * analyticsAdminServiceClient.updateGoogleSignalsSettingsCallable().futureCall(request);
+ * // Do something.
+ * GoogleSignalsSettings response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ updateGoogleSignalsSettingsCallable() {
+ return stub.updateGoogleSignalsSettingsCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a conversion event with the specified attributes.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * PropertyName parent = PropertyName.of("[PROPERTY]");
+ * ConversionEvent conversionEvent = ConversionEvent.newBuilder().build();
+ * ConversionEvent response =
+ * analyticsAdminServiceClient.createConversionEvent(parent, conversionEvent);
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the parent property where this conversion event
+ * will be created. Format: properties/123
+ * @param conversionEvent Required. The conversion event to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ConversionEvent createConversionEvent(
+ PropertyName parent, ConversionEvent conversionEvent) {
+ CreateConversionEventRequest request =
+ CreateConversionEventRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setConversionEvent(conversionEvent)
+ .build();
+ return createConversionEvent(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a conversion event with the specified attributes.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * String parent = ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString();
+ * ConversionEvent conversionEvent = ConversionEvent.newBuilder().build();
+ * ConversionEvent response =
+ * analyticsAdminServiceClient.createConversionEvent(parent, conversionEvent);
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the parent property where this conversion event
+ * will be created. Format: properties/123
+ * @param conversionEvent Required. The conversion event to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ConversionEvent createConversionEvent(
+ String parent, ConversionEvent conversionEvent) {
+ CreateConversionEventRequest request =
+ CreateConversionEventRequest.newBuilder()
+ .setParent(parent)
+ .setConversionEvent(conversionEvent)
+ .build();
+ return createConversionEvent(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a conversion event with the specified attributes.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * CreateConversionEventRequest request =
+ * CreateConversionEventRequest.newBuilder()
+ * .setConversionEvent(ConversionEvent.newBuilder().build())
+ * .setParent(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString())
+ * .build();
+ * ConversionEvent response = analyticsAdminServiceClient.createConversionEvent(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ConversionEvent createConversionEvent(CreateConversionEventRequest request) {
+ return createConversionEventCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a conversion event with the specified attributes.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * CreateConversionEventRequest request =
+ * CreateConversionEventRequest.newBuilder()
+ * .setConversionEvent(ConversionEvent.newBuilder().build())
+ * .setParent(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString())
+ * .build();
+ * ApiFuture future =
+ * analyticsAdminServiceClient.createConversionEventCallable().futureCall(request);
+ * // Do something.
+ * ConversionEvent response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ createConversionEventCallable() {
+ return stub.createConversionEventCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieve a single conversion event.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * ConversionEventName name = ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]");
+ * ConversionEvent response = analyticsAdminServiceClient.getConversionEvent(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the conversion event to retrieve. Format:
+ * properties/{property}/conversionEvents/{conversion_event} Example:
+ * "properties/123/conversionEvents/456"
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ConversionEvent getConversionEvent(ConversionEventName name) {
+ GetConversionEventRequest request =
+ GetConversionEventRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return getConversionEvent(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieve a single conversion event.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * String name = ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString();
+ * ConversionEvent response = analyticsAdminServiceClient.getConversionEvent(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the conversion event to retrieve. Format:
+ * properties/{property}/conversionEvents/{conversion_event} Example:
+ * "properties/123/conversionEvents/456"
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ConversionEvent getConversionEvent(String name) {
+ GetConversionEventRequest request =
+ GetConversionEventRequest.newBuilder().setName(name).build();
+ return getConversionEvent(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieve a single conversion event.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * GetConversionEventRequest request =
+ * GetConversionEventRequest.newBuilder()
+ * .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString())
+ * .build();
+ * ConversionEvent response = analyticsAdminServiceClient.getConversionEvent(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ConversionEvent getConversionEvent(GetConversionEventRequest request) {
+ return getConversionEventCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieve a single conversion event.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * GetConversionEventRequest request =
+ * GetConversionEventRequest.newBuilder()
+ * .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString())
+ * .build();
+ * ApiFuture future =
+ * analyticsAdminServiceClient.getConversionEventCallable().futureCall(request);
+ * // Do something.
+ * ConversionEvent response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ getConversionEventCallable() {
+ return stub.getConversionEventCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a conversion event in a property.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * ConversionEventName name = ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]");
+ * analyticsAdminServiceClient.deleteConversionEvent(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the conversion event to delete. Format:
+ * properties/{property}/conversionEvents/{conversion_event} Example:
+ * "properties/123/conversionEvents/456"
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void deleteConversionEvent(ConversionEventName name) {
+ DeleteConversionEventRequest request =
+ DeleteConversionEventRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ deleteConversionEvent(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a conversion event in a property.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * String name = ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString();
+ * analyticsAdminServiceClient.deleteConversionEvent(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the conversion event to delete. Format:
+ * properties/{property}/conversionEvents/{conversion_event} Example:
+ * "properties/123/conversionEvents/456"
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void deleteConversionEvent(String name) {
+ DeleteConversionEventRequest request =
+ DeleteConversionEventRequest.newBuilder().setName(name).build();
+ deleteConversionEvent(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a conversion event in a property.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * DeleteConversionEventRequest request =
+ * DeleteConversionEventRequest.newBuilder()
+ * .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString())
+ * .build();
+ * analyticsAdminServiceClient.deleteConversionEvent(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void deleteConversionEvent(DeleteConversionEventRequest request) {
+ deleteConversionEventCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a conversion event in a property.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * DeleteConversionEventRequest request =
+ * DeleteConversionEventRequest.newBuilder()
+ * .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString())
+ * .build();
+ * ApiFuture future =
+ * analyticsAdminServiceClient.deleteConversionEventCallable().futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable deleteConversionEventCallable() {
+ return stub.deleteConversionEventCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns a list of conversion events in the specified parent property.
+ *
+ * Returns an empty list if no conversion events are found.
+ *
+ *
Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * PropertyName parent = PropertyName.of("[PROPERTY]");
+ * for (ConversionEvent element :
+ * analyticsAdminServiceClient.listConversionEvents(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the parent property. Example: 'properties/123'
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListConversionEventsPagedResponse listConversionEvents(PropertyName parent) {
+ ListConversionEventsRequest request =
+ ListConversionEventsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listConversionEvents(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns a list of conversion events in the specified parent property.
+ *
+ * Returns an empty list if no conversion events are found.
+ *
+ *
Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * String parent = ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString();
+ * for (ConversionEvent element :
+ * analyticsAdminServiceClient.listConversionEvents(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the parent property. Example: 'properties/123'
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListConversionEventsPagedResponse listConversionEvents(String parent) {
+ ListConversionEventsRequest request =
+ ListConversionEventsRequest.newBuilder().setParent(parent).build();
+ return listConversionEvents(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns a list of conversion events in the specified parent property.
+ *
+ * Returns an empty list if no conversion events are found.
+ *
+ *
Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * ListConversionEventsRequest request =
+ * ListConversionEventsRequest.newBuilder()
+ * .setParent(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * for (ConversionEvent element :
+ * analyticsAdminServiceClient.listConversionEvents(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListConversionEventsPagedResponse listConversionEvents(
+ ListConversionEventsRequest request) {
+ return listConversionEventsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns a list of conversion events in the specified parent property.
+ *
+ * Returns an empty list if no conversion events are found.
+ *
+ *
Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * ListConversionEventsRequest request =
+ * ListConversionEventsRequest.newBuilder()
+ * .setParent(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * ApiFuture future =
+ * analyticsAdminServiceClient.listConversionEventsPagedCallable().futureCall(request);
+ * // Do something.
+ * for (ConversionEvent element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listConversionEventsPagedCallable() {
+ return stub.listConversionEventsPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns a list of conversion events in the specified parent property.
+ *
+ * Returns an empty list if no conversion events are found.
+ *
+ *
Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * ListConversionEventsRequest request =
+ * ListConversionEventsRequest.newBuilder()
+ * .setParent(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * while (true) {
+ * ListConversionEventsResponse response =
+ * analyticsAdminServiceClient.listConversionEventsCallable().call(request);
+ * for (ConversionEvent element : response.getResponsesList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listConversionEventsCallable() {
+ return stub.listConversionEventsCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a CustomDimension.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * PropertyName parent = PropertyName.of("[PROPERTY]");
+ * CustomDimension customDimension = CustomDimension.newBuilder().build();
+ * CustomDimension response =
+ * analyticsAdminServiceClient.createCustomDimension(parent, customDimension);
+ * }
+ * }
+ *
+ * @param parent Required. Example format: properties/1234
+ * @param customDimension Required. The CustomDimension to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final CustomDimension createCustomDimension(
+ PropertyName parent, CustomDimension customDimension) {
+ CreateCustomDimensionRequest request =
+ CreateCustomDimensionRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setCustomDimension(customDimension)
+ .build();
+ return createCustomDimension(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a CustomDimension.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * String parent = CustomDimensionName.of("[PROPERTY]").toString();
+ * CustomDimension customDimension = CustomDimension.newBuilder().build();
+ * CustomDimension response =
+ * analyticsAdminServiceClient.createCustomDimension(parent, customDimension);
+ * }
+ * }
+ *
+ * @param parent Required. Example format: properties/1234
+ * @param customDimension Required. The CustomDimension to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final CustomDimension createCustomDimension(
+ String parent, CustomDimension customDimension) {
+ CreateCustomDimensionRequest request =
+ CreateCustomDimensionRequest.newBuilder()
+ .setParent(parent)
+ .setCustomDimension(customDimension)
+ .build();
+ return createCustomDimension(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a CustomDimension.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * CreateCustomDimensionRequest request =
+ * CreateCustomDimensionRequest.newBuilder()
+ * .setParent(CustomDimensionName.of("[PROPERTY]").toString())
+ * .setCustomDimension(CustomDimension.newBuilder().build())
+ * .build();
+ * CustomDimension response = analyticsAdminServiceClient.createCustomDimension(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final CustomDimension createCustomDimension(CreateCustomDimensionRequest request) {
+ return createCustomDimensionCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a CustomDimension.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * CreateCustomDimensionRequest request =
+ * CreateCustomDimensionRequest.newBuilder()
+ * .setParent(CustomDimensionName.of("[PROPERTY]").toString())
+ * .setCustomDimension(CustomDimension.newBuilder().build())
+ * .build();
+ * ApiFuture future =
+ * analyticsAdminServiceClient.createCustomDimensionCallable().futureCall(request);
+ * // Do something.
+ * CustomDimension response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ createCustomDimensionCallable() {
+ return stub.createCustomDimensionCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a CustomDimension on a property.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * CustomDimension customDimension = CustomDimension.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * CustomDimension response =
+ * analyticsAdminServiceClient.updateCustomDimension(customDimension, updateMask);
+ * }
+ * }
+ *
+ * @param customDimension The CustomDimension to update
+ * @param updateMask Required. The list of fields to be updated. Omitted fields will not be
+ * updated. To replace the entire entity, use one path with the string "*" to match all
+ * fields.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final CustomDimension updateCustomDimension(
+ CustomDimension customDimension, FieldMask updateMask) {
+ UpdateCustomDimensionRequest request =
+ UpdateCustomDimensionRequest.newBuilder()
+ .setCustomDimension(customDimension)
+ .setUpdateMask(updateMask)
+ .build();
+ return updateCustomDimension(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a CustomDimension on a property.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * UpdateCustomDimensionRequest request =
+ * UpdateCustomDimensionRequest.newBuilder()
+ * .setCustomDimension(CustomDimension.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * CustomDimension response = analyticsAdminServiceClient.updateCustomDimension(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final CustomDimension updateCustomDimension(UpdateCustomDimensionRequest request) {
+ return updateCustomDimensionCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a CustomDimension on a property.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * UpdateCustomDimensionRequest request =
+ * UpdateCustomDimensionRequest.newBuilder()
+ * .setCustomDimension(CustomDimension.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * ApiFuture future =
+ * analyticsAdminServiceClient.updateCustomDimensionCallable().futureCall(request);
+ * // Do something.
+ * CustomDimension response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ updateCustomDimensionCallable() {
+ return stub.updateCustomDimensionCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists CustomDimensions on a property.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * PropertyName parent = PropertyName.of("[PROPERTY]");
+ * for (CustomDimension element :
+ * analyticsAdminServiceClient.listCustomDimensions(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. Example format: properties/1234
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListCustomDimensionsPagedResponse listCustomDimensions(PropertyName parent) {
+ ListCustomDimensionsRequest request =
+ ListCustomDimensionsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listCustomDimensions(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists CustomDimensions on a property.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * String parent = CustomDimensionName.of("[PROPERTY]").toString();
+ * for (CustomDimension element :
+ * analyticsAdminServiceClient.listCustomDimensions(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. Example format: properties/1234
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListCustomDimensionsPagedResponse listCustomDimensions(String parent) {
+ ListCustomDimensionsRequest request =
+ ListCustomDimensionsRequest.newBuilder().setParent(parent).build();
+ return listCustomDimensions(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists CustomDimensions on a property.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * ListCustomDimensionsRequest request =
+ * ListCustomDimensionsRequest.newBuilder()
+ * .setParent(CustomDimensionName.of("[PROPERTY]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * for (CustomDimension element :
+ * analyticsAdminServiceClient.listCustomDimensions(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListCustomDimensionsPagedResponse listCustomDimensions(
+ ListCustomDimensionsRequest request) {
+ return listCustomDimensionsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists CustomDimensions on a property.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * ListCustomDimensionsRequest request =
+ * ListCustomDimensionsRequest.newBuilder()
+ * .setParent(CustomDimensionName.of("[PROPERTY]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * ApiFuture future =
+ * analyticsAdminServiceClient.listCustomDimensionsPagedCallable().futureCall(request);
+ * // Do something.
+ * for (CustomDimension element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listCustomDimensionsPagedCallable() {
+ return stub.listCustomDimensionsPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists CustomDimensions on a property.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * ListCustomDimensionsRequest request =
+ * ListCustomDimensionsRequest.newBuilder()
+ * .setParent(CustomDimensionName.of("[PROPERTY]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * while (true) {
+ * ListCustomDimensionsResponse response =
+ * analyticsAdminServiceClient.listCustomDimensionsCallable().call(request);
+ * for (CustomDimension element : response.getResponsesList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listCustomDimensionsCallable() {
+ return stub.listCustomDimensionsCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Archives a CustomDimension on a property.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * CustomDimensionName name = CustomDimensionName.of("[PROPERTY]");
+ * analyticsAdminServiceClient.archiveCustomDimension(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the CustomDimension to archive. Example format:
+ * properties/1234/customDimensions/5678
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void archiveCustomDimension(CustomDimensionName name) {
+ ArchiveCustomDimensionRequest request =
+ ArchiveCustomDimensionRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ archiveCustomDimension(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Archives a CustomDimension on a property.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * String name = CustomDimensionName.of("[PROPERTY]").toString();
+ * analyticsAdminServiceClient.archiveCustomDimension(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the CustomDimension to archive. Example format:
+ * properties/1234/customDimensions/5678
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void archiveCustomDimension(String name) {
+ ArchiveCustomDimensionRequest request =
+ ArchiveCustomDimensionRequest.newBuilder().setName(name).build();
+ archiveCustomDimension(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Archives a CustomDimension on a property.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * ArchiveCustomDimensionRequest request =
+ * ArchiveCustomDimensionRequest.newBuilder()
+ * .setName(CustomDimensionName.of("[PROPERTY]").toString())
+ * .build();
+ * analyticsAdminServiceClient.archiveCustomDimension(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void archiveCustomDimension(ArchiveCustomDimensionRequest request) {
+ archiveCustomDimensionCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Archives a CustomDimension on a property.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * ArchiveCustomDimensionRequest request =
+ * ArchiveCustomDimensionRequest.newBuilder()
+ * .setName(CustomDimensionName.of("[PROPERTY]").toString())
+ * .build();
+ * ApiFuture future =
+ * analyticsAdminServiceClient.archiveCustomDimensionCallable().futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ archiveCustomDimensionCallable() {
+ return stub.archiveCustomDimensionCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lookup for a single CustomDimension.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * CustomDimensionName name = CustomDimensionName.of("[PROPERTY]");
+ * CustomDimension response = analyticsAdminServiceClient.getCustomDimension(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the CustomDimension to get. Example format:
+ * properties/1234/customDimensions/5678
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final CustomDimension getCustomDimension(CustomDimensionName name) {
+ GetCustomDimensionRequest request =
+ GetCustomDimensionRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return getCustomDimension(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lookup for a single CustomDimension.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * String name = CustomDimensionName.of("[PROPERTY]").toString();
+ * CustomDimension response = analyticsAdminServiceClient.getCustomDimension(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the CustomDimension to get. Example format:
+ * properties/1234/customDimensions/5678
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final CustomDimension getCustomDimension(String name) {
+ GetCustomDimensionRequest request =
+ GetCustomDimensionRequest.newBuilder().setName(name).build();
+ return getCustomDimension(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lookup for a single CustomDimension.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * GetCustomDimensionRequest request =
+ * GetCustomDimensionRequest.newBuilder()
+ * .setName(CustomDimensionName.of("[PROPERTY]").toString())
+ * .build();
+ * CustomDimension response = analyticsAdminServiceClient.getCustomDimension(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final CustomDimension getCustomDimension(GetCustomDimensionRequest request) {
+ return getCustomDimensionCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lookup for a single CustomDimension.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * GetCustomDimensionRequest request =
+ * GetCustomDimensionRequest.newBuilder()
+ * .setName(CustomDimensionName.of("[PROPERTY]").toString())
+ * .build();
+ * ApiFuture future =
+ * analyticsAdminServiceClient.getCustomDimensionCallable().futureCall(request);
+ * // Do something.
+ * CustomDimension response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ getCustomDimensionCallable() {
+ return stub.getCustomDimensionCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a CustomMetric.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * PropertyName parent = PropertyName.of("[PROPERTY]");
+ * CustomMetric customMetric = CustomMetric.newBuilder().build();
+ * CustomMetric response = analyticsAdminServiceClient.createCustomMetric(parent, customMetric);
+ * }
+ * }
+ *
+ * @param parent Required. Example format: properties/1234
+ * @param customMetric Required. The CustomMetric to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final CustomMetric createCustomMetric(PropertyName parent, CustomMetric customMetric) {
+ CreateCustomMetricRequest request =
+ CreateCustomMetricRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setCustomMetric(customMetric)
+ .build();
+ return createCustomMetric(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a CustomMetric.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * String parent = CustomMetricName.of("[PROPERTY]").toString();
+ * CustomMetric customMetric = CustomMetric.newBuilder().build();
+ * CustomMetric response = analyticsAdminServiceClient.createCustomMetric(parent, customMetric);
+ * }
+ * }
+ *
+ * @param parent Required. Example format: properties/1234
+ * @param customMetric Required. The CustomMetric to create.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final CustomMetric createCustomMetric(String parent, CustomMetric customMetric) {
+ CreateCustomMetricRequest request =
+ CreateCustomMetricRequest.newBuilder()
+ .setParent(parent)
+ .setCustomMetric(customMetric)
+ .build();
+ return createCustomMetric(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a CustomMetric.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * CreateCustomMetricRequest request =
+ * CreateCustomMetricRequest.newBuilder()
+ * .setParent(CustomMetricName.of("[PROPERTY]").toString())
+ * .setCustomMetric(CustomMetric.newBuilder().build())
+ * .build();
+ * CustomMetric response = analyticsAdminServiceClient.createCustomMetric(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final CustomMetric createCustomMetric(CreateCustomMetricRequest request) {
+ return createCustomMetricCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a CustomMetric.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * CreateCustomMetricRequest request =
+ * CreateCustomMetricRequest.newBuilder()
+ * .setParent(CustomMetricName.of("[PROPERTY]").toString())
+ * .setCustomMetric(CustomMetric.newBuilder().build())
+ * .build();
+ * ApiFuture future =
+ * analyticsAdminServiceClient.createCustomMetricCallable().futureCall(request);
+ * // Do something.
+ * CustomMetric response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable createCustomMetricCallable() {
+ return stub.createCustomMetricCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a CustomMetric on a property.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * CustomMetric customMetric = CustomMetric.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * CustomMetric response =
+ * analyticsAdminServiceClient.updateCustomMetric(customMetric, updateMask);
+ * }
+ * }
+ *
+ * @param customMetric The CustomMetric to update
+ * @param updateMask Required. The list of fields to be updated. Omitted fields will not be
+ * updated. To replace the entire entity, use one path with the string "*" to match all
+ * fields.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final CustomMetric updateCustomMetric(CustomMetric customMetric, FieldMask updateMask) {
+ UpdateCustomMetricRequest request =
+ UpdateCustomMetricRequest.newBuilder()
+ .setCustomMetric(customMetric)
+ .setUpdateMask(updateMask)
+ .build();
+ return updateCustomMetric(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a CustomMetric on a property.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * UpdateCustomMetricRequest request =
+ * UpdateCustomMetricRequest.newBuilder()
+ * .setCustomMetric(CustomMetric.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * CustomMetric response = analyticsAdminServiceClient.updateCustomMetric(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final CustomMetric updateCustomMetric(UpdateCustomMetricRequest request) {
+ return updateCustomMetricCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates a CustomMetric on a property.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * UpdateCustomMetricRequest request =
+ * UpdateCustomMetricRequest.newBuilder()
+ * .setCustomMetric(CustomMetric.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * ApiFuture future =
+ * analyticsAdminServiceClient.updateCustomMetricCallable().futureCall(request);
+ * // Do something.
+ * CustomMetric response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable updateCustomMetricCallable() {
+ return stub.updateCustomMetricCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists CustomMetrics on a property.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * PropertyName parent = PropertyName.of("[PROPERTY]");
+ * for (CustomMetric element :
+ * analyticsAdminServiceClient.listCustomMetrics(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. Example format: properties/1234
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListCustomMetricsPagedResponse listCustomMetrics(PropertyName parent) {
+ ListCustomMetricsRequest request =
+ ListCustomMetricsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listCustomMetrics(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists CustomMetrics on a property.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * String parent = CustomMetricName.of("[PROPERTY]").toString();
+ * for (CustomMetric element :
+ * analyticsAdminServiceClient.listCustomMetrics(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. Example format: properties/1234
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListCustomMetricsPagedResponse listCustomMetrics(String parent) {
+ ListCustomMetricsRequest request =
+ ListCustomMetricsRequest.newBuilder().setParent(parent).build();
+ return listCustomMetrics(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists CustomMetrics on a property.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * ListCustomMetricsRequest request =
+ * ListCustomMetricsRequest.newBuilder()
+ * .setParent(CustomMetricName.of("[PROPERTY]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * for (CustomMetric element :
+ * analyticsAdminServiceClient.listCustomMetrics(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListCustomMetricsPagedResponse listCustomMetrics(ListCustomMetricsRequest request) {
+ return listCustomMetricsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists CustomMetrics on a property.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * ListCustomMetricsRequest request =
+ * ListCustomMetricsRequest.newBuilder()
+ * .setParent(CustomMetricName.of("[PROPERTY]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * ApiFuture future =
+ * analyticsAdminServiceClient.listCustomMetricsPagedCallable().futureCall(request);
+ * // Do something.
+ * for (CustomMetric element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listCustomMetricsPagedCallable() {
+ return stub.listCustomMetricsPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists CustomMetrics on a property.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * ListCustomMetricsRequest request =
+ * ListCustomMetricsRequest.newBuilder()
+ * .setParent(CustomMetricName.of("[PROPERTY]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * while (true) {
+ * ListCustomMetricsResponse response =
+ * analyticsAdminServiceClient.listCustomMetricsCallable().call(request);
+ * for (CustomMetric element : response.getResponsesList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listCustomMetricsCallable() {
+ return stub.listCustomMetricsCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Archives a CustomMetric on a property.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * CustomMetricName name = CustomMetricName.of("[PROPERTY]");
+ * analyticsAdminServiceClient.archiveCustomMetric(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the CustomMetric to archive. Example format:
+ * properties/1234/customMetrics/5678
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void archiveCustomMetric(CustomMetricName name) {
+ ArchiveCustomMetricRequest request =
+ ArchiveCustomMetricRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ archiveCustomMetric(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Archives a CustomMetric on a property.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * String name = CustomMetricName.of("[PROPERTY]").toString();
+ * analyticsAdminServiceClient.archiveCustomMetric(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the CustomMetric to archive. Example format:
+ * properties/1234/customMetrics/5678
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void archiveCustomMetric(String name) {
+ ArchiveCustomMetricRequest request =
+ ArchiveCustomMetricRequest.newBuilder().setName(name).build();
+ archiveCustomMetric(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Archives a CustomMetric on a property.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * ArchiveCustomMetricRequest request =
+ * ArchiveCustomMetricRequest.newBuilder()
+ * .setName(CustomMetricName.of("[PROPERTY]").toString())
+ * .build();
+ * analyticsAdminServiceClient.archiveCustomMetric(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void archiveCustomMetric(ArchiveCustomMetricRequest request) {
+ archiveCustomMetricCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Archives a CustomMetric on a property.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * ArchiveCustomMetricRequest request =
+ * ArchiveCustomMetricRequest.newBuilder()
+ * .setName(CustomMetricName.of("[PROPERTY]").toString())
+ * .build();
+ * ApiFuture future =
+ * analyticsAdminServiceClient.archiveCustomMetricCallable().futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable archiveCustomMetricCallable() {
+ return stub.archiveCustomMetricCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lookup for a single CustomMetric.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * CustomMetricName name = CustomMetricName.of("[PROPERTY]");
+ * CustomMetric response = analyticsAdminServiceClient.getCustomMetric(name);
* }
* }
*
- * @param request The request object containing all of the parameters for the API call.
+ * @param name Required. The name of the CustomMetric to get. Example format:
+ * properties/1234/customMetrics/5678
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final SearchChangeHistoryEventsPagedResponse searchChangeHistoryEvents(
- SearchChangeHistoryEventsRequest request) {
- return searchChangeHistoryEventsPagedCallable().call(request);
+ public final CustomMetric getCustomMetric(CustomMetricName name) {
+ GetCustomMetricRequest request =
+ GetCustomMetricRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return getCustomMetric(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Searches through all changes to an account or its children given the specified set of filters.
+ * Lookup for a single CustomMetric.
*
* Sample code:
*
*
{@code
* try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
* AnalyticsAdminServiceClient.create()) {
- * SearchChangeHistoryEventsRequest request =
- * SearchChangeHistoryEventsRequest.newBuilder()
- * .setAccount(AccountName.of("[ACCOUNT]").toString())
- * .setProperty(PropertyName.of("[PROPERTY]").toString())
- * .addAllResourceType(new ArrayList())
- * .addAllAction(new ArrayList())
- * .addAllActorEmail(new ArrayList())
- * .setEarliestChangeTime(Timestamp.newBuilder().build())
- * .setLatestChangeTime(Timestamp.newBuilder().build())
- * .setPageSize(883849137)
- * .setPageToken("pageToken873572522")
+ * String name = CustomMetricName.of("[PROPERTY]").toString();
+ * CustomMetric response = analyticsAdminServiceClient.getCustomMetric(name);
+ * }
+ * }
+ *
+ * @param name Required. The name of the CustomMetric to get. Example format:
+ * properties/1234/customMetrics/5678
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final CustomMetric getCustomMetric(String name) {
+ GetCustomMetricRequest request = GetCustomMetricRequest.newBuilder().setName(name).build();
+ return getCustomMetric(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lookup for a single CustomMetric.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+ * AnalyticsAdminServiceClient.create()) {
+ * GetCustomMetricRequest request =
+ * GetCustomMetricRequest.newBuilder()
+ * .setName(CustomMetricName.of("[PROPERTY]").toString())
* .build();
- * ApiFuture future =
- * analyticsAdminServiceClient.searchChangeHistoryEventsPagedCallable().futureCall(request);
- * // Do something.
- * for (ChangeHistoryEvent element : future.get().iterateAll()) {
- * // doThingsWith(element);
- * }
+ * CustomMetric response = analyticsAdminServiceClient.getCustomMetric(request);
* }
* }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final UnaryCallable<
- SearchChangeHistoryEventsRequest, SearchChangeHistoryEventsPagedResponse>
- searchChangeHistoryEventsPagedCallable() {
- return stub.searchChangeHistoryEventsPagedCallable();
+ public final CustomMetric getCustomMetric(GetCustomMetricRequest request) {
+ return getCustomMetricCallable().call(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Searches through all changes to an account or its children given the specified set of filters.
+ * Lookup for a single CustomMetric.
*
* Sample code:
*
*
{@code
* try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
* AnalyticsAdminServiceClient.create()) {
- * SearchChangeHistoryEventsRequest request =
- * SearchChangeHistoryEventsRequest.newBuilder()
- * .setAccount(AccountName.of("[ACCOUNT]").toString())
- * .setProperty(PropertyName.of("[PROPERTY]").toString())
- * .addAllResourceType(new ArrayList())
- * .addAllAction(new ArrayList())
- * .addAllActorEmail(new ArrayList())
- * .setEarliestChangeTime(Timestamp.newBuilder().build())
- * .setLatestChangeTime(Timestamp.newBuilder().build())
- * .setPageSize(883849137)
- * .setPageToken("pageToken873572522")
+ * GetCustomMetricRequest request =
+ * GetCustomMetricRequest.newBuilder()
+ * .setName(CustomMetricName.of("[PROPERTY]").toString())
* .build();
- * while (true) {
- * SearchChangeHistoryEventsResponse response =
- * analyticsAdminServiceClient.searchChangeHistoryEventsCallable().call(request);
- * for (ChangeHistoryEvent element : response.getResponsesList()) {
- * // doThingsWith(element);
- * }
- * String nextPageToken = response.getNextPageToken();
- * if (!Strings.isNullOrEmpty(nextPageToken)) {
- * request = request.toBuilder().setPageToken(nextPageToken).build();
- * } else {
- * break;
- * }
- * }
+ * ApiFuture future =
+ * analyticsAdminServiceClient.getCustomMetricCallable().futureCall(request);
+ * // Do something.
+ * CustomMetric response = future.get();
* }
* }
*/
- public final UnaryCallable
- searchChangeHistoryEventsCallable() {
- return stub.searchChangeHistoryEventsCallable();
+ public final UnaryCallable getCustomMetricCallable() {
+ return stub.getCustomMetricCallable();
}
@Override
@@ -5842,6 +8192,110 @@ protected ListGoogleAdsLinksFixedSizeCollection createCollection(
}
}
+ public static class ListMeasurementProtocolSecretsPagedResponse
+ extends AbstractPagedListResponse<
+ ListMeasurementProtocolSecretsRequest,
+ ListMeasurementProtocolSecretsResponse,
+ MeasurementProtocolSecret,
+ ListMeasurementProtocolSecretsPage,
+ ListMeasurementProtocolSecretsFixedSizeCollection> {
+
+ public static ApiFuture createAsync(
+ PageContext<
+ ListMeasurementProtocolSecretsRequest,
+ ListMeasurementProtocolSecretsResponse,
+ MeasurementProtocolSecret>
+ context,
+ ApiFuture futureResponse) {
+ ApiFuture futurePage =
+ ListMeasurementProtocolSecretsPage.createEmptyPage()
+ .createPageAsync(context, futureResponse);
+ return ApiFutures.transform(
+ futurePage,
+ new ApiFunction<
+ ListMeasurementProtocolSecretsPage, ListMeasurementProtocolSecretsPagedResponse>() {
+ @Override
+ public ListMeasurementProtocolSecretsPagedResponse apply(
+ ListMeasurementProtocolSecretsPage input) {
+ return new ListMeasurementProtocolSecretsPagedResponse(input);
+ }
+ },
+ MoreExecutors.directExecutor());
+ }
+
+ private ListMeasurementProtocolSecretsPagedResponse(ListMeasurementProtocolSecretsPage page) {
+ super(page, ListMeasurementProtocolSecretsFixedSizeCollection.createEmptyCollection());
+ }
+ }
+
+ public static class ListMeasurementProtocolSecretsPage
+ extends AbstractPage<
+ ListMeasurementProtocolSecretsRequest,
+ ListMeasurementProtocolSecretsResponse,
+ MeasurementProtocolSecret,
+ ListMeasurementProtocolSecretsPage> {
+
+ private ListMeasurementProtocolSecretsPage(
+ PageContext<
+ ListMeasurementProtocolSecretsRequest,
+ ListMeasurementProtocolSecretsResponse,
+ MeasurementProtocolSecret>
+ context,
+ ListMeasurementProtocolSecretsResponse response) {
+ super(context, response);
+ }
+
+ private static ListMeasurementProtocolSecretsPage createEmptyPage() {
+ return new ListMeasurementProtocolSecretsPage(null, null);
+ }
+
+ @Override
+ protected ListMeasurementProtocolSecretsPage createPage(
+ PageContext<
+ ListMeasurementProtocolSecretsRequest,
+ ListMeasurementProtocolSecretsResponse,
+ MeasurementProtocolSecret>
+ context,
+ ListMeasurementProtocolSecretsResponse response) {
+ return new ListMeasurementProtocolSecretsPage(context, response);
+ }
+
+ @Override
+ public ApiFuture createPageAsync(
+ PageContext<
+ ListMeasurementProtocolSecretsRequest,
+ ListMeasurementProtocolSecretsResponse,
+ MeasurementProtocolSecret>
+ context,
+ ApiFuture futureResponse) {
+ return super.createPageAsync(context, futureResponse);
+ }
+ }
+
+ public static class ListMeasurementProtocolSecretsFixedSizeCollection
+ extends AbstractFixedSizeCollection<
+ ListMeasurementProtocolSecretsRequest,
+ ListMeasurementProtocolSecretsResponse,
+ MeasurementProtocolSecret,
+ ListMeasurementProtocolSecretsPage,
+ ListMeasurementProtocolSecretsFixedSizeCollection> {
+
+ private ListMeasurementProtocolSecretsFixedSizeCollection(
+ List pages, int collectionSize) {
+ super(pages, collectionSize);
+ }
+
+ private static ListMeasurementProtocolSecretsFixedSizeCollection createEmptyCollection() {
+ return new ListMeasurementProtocolSecretsFixedSizeCollection(null, 0);
+ }
+
+ @Override
+ protected ListMeasurementProtocolSecretsFixedSizeCollection createCollection(
+ List pages, int collectionSize) {
+ return new ListMeasurementProtocolSecretsFixedSizeCollection(pages, collectionSize);
+ }
+ }
+
public static class SearchChangeHistoryEventsPagedResponse
extends AbstractPagedListResponse<
SearchChangeHistoryEventsRequest,
@@ -5943,4 +8397,267 @@ protected SearchChangeHistoryEventsFixedSizeCollection createCollection(
return new SearchChangeHistoryEventsFixedSizeCollection(pages, collectionSize);
}
}
+
+ public static class ListConversionEventsPagedResponse
+ extends AbstractPagedListResponse<
+ ListConversionEventsRequest,
+ ListConversionEventsResponse,
+ ConversionEvent,
+ ListConversionEventsPage,
+ ListConversionEventsFixedSizeCollection> {
+
+ public static ApiFuture createAsync(
+ PageContext
+ context,
+ ApiFuture futureResponse) {
+ ApiFuture futurePage =
+ ListConversionEventsPage.createEmptyPage().createPageAsync(context, futureResponse);
+ return ApiFutures.transform(
+ futurePage,
+ new ApiFunction() {
+ @Override
+ public ListConversionEventsPagedResponse apply(ListConversionEventsPage input) {
+ return new ListConversionEventsPagedResponse(input);
+ }
+ },
+ MoreExecutors.directExecutor());
+ }
+
+ private ListConversionEventsPagedResponse(ListConversionEventsPage page) {
+ super(page, ListConversionEventsFixedSizeCollection.createEmptyCollection());
+ }
+ }
+
+ public static class ListConversionEventsPage
+ extends AbstractPage<
+ ListConversionEventsRequest,
+ ListConversionEventsResponse,
+ ConversionEvent,
+ ListConversionEventsPage> {
+
+ private ListConversionEventsPage(
+ PageContext
+ context,
+ ListConversionEventsResponse response) {
+ super(context, response);
+ }
+
+ private static ListConversionEventsPage createEmptyPage() {
+ return new ListConversionEventsPage(null, null);
+ }
+
+ @Override
+ protected ListConversionEventsPage createPage(
+ PageContext
+ context,
+ ListConversionEventsResponse response) {
+ return new ListConversionEventsPage(context, response);
+ }
+
+ @Override
+ public ApiFuture createPageAsync(
+ PageContext
+ context,
+ ApiFuture futureResponse) {
+ return super.createPageAsync(context, futureResponse);
+ }
+ }
+
+ public static class ListConversionEventsFixedSizeCollection
+ extends AbstractFixedSizeCollection<
+ ListConversionEventsRequest,
+ ListConversionEventsResponse,
+ ConversionEvent,
+ ListConversionEventsPage,
+ ListConversionEventsFixedSizeCollection> {
+
+ private ListConversionEventsFixedSizeCollection(
+ List pages, int collectionSize) {
+ super(pages, collectionSize);
+ }
+
+ private static ListConversionEventsFixedSizeCollection createEmptyCollection() {
+ return new ListConversionEventsFixedSizeCollection(null, 0);
+ }
+
+ @Override
+ protected ListConversionEventsFixedSizeCollection createCollection(
+ List pages, int collectionSize) {
+ return new ListConversionEventsFixedSizeCollection(pages, collectionSize);
+ }
+ }
+
+ public static class ListCustomDimensionsPagedResponse
+ extends AbstractPagedListResponse<
+ ListCustomDimensionsRequest,
+ ListCustomDimensionsResponse,
+ CustomDimension,
+ ListCustomDimensionsPage,
+ ListCustomDimensionsFixedSizeCollection> {
+
+ public static ApiFuture createAsync(
+ PageContext
+ context,
+ ApiFuture futureResponse) {
+ ApiFuture futurePage =
+ ListCustomDimensionsPage.createEmptyPage().createPageAsync(context, futureResponse);
+ return ApiFutures.transform(
+ futurePage,
+ new ApiFunction() {
+ @Override
+ public ListCustomDimensionsPagedResponse apply(ListCustomDimensionsPage input) {
+ return new ListCustomDimensionsPagedResponse(input);
+ }
+ },
+ MoreExecutors.directExecutor());
+ }
+
+ private ListCustomDimensionsPagedResponse(ListCustomDimensionsPage page) {
+ super(page, ListCustomDimensionsFixedSizeCollection.createEmptyCollection());
+ }
+ }
+
+ public static class ListCustomDimensionsPage
+ extends AbstractPage<
+ ListCustomDimensionsRequest,
+ ListCustomDimensionsResponse,
+ CustomDimension,
+ ListCustomDimensionsPage> {
+
+ private ListCustomDimensionsPage(
+ PageContext
+ context,
+ ListCustomDimensionsResponse response) {
+ super(context, response);
+ }
+
+ private static ListCustomDimensionsPage createEmptyPage() {
+ return new ListCustomDimensionsPage(null, null);
+ }
+
+ @Override
+ protected ListCustomDimensionsPage createPage(
+ PageContext
+ context,
+ ListCustomDimensionsResponse response) {
+ return new ListCustomDimensionsPage(context, response);
+ }
+
+ @Override
+ public ApiFuture createPageAsync(
+ PageContext
+ context,
+ ApiFuture futureResponse) {
+ return super.createPageAsync(context, futureResponse);
+ }
+ }
+
+ public static class ListCustomDimensionsFixedSizeCollection
+ extends AbstractFixedSizeCollection<
+ ListCustomDimensionsRequest,
+ ListCustomDimensionsResponse,
+ CustomDimension,
+ ListCustomDimensionsPage,
+ ListCustomDimensionsFixedSizeCollection> {
+
+ private ListCustomDimensionsFixedSizeCollection(
+ List pages, int collectionSize) {
+ super(pages, collectionSize);
+ }
+
+ private static ListCustomDimensionsFixedSizeCollection createEmptyCollection() {
+ return new ListCustomDimensionsFixedSizeCollection(null, 0);
+ }
+
+ @Override
+ protected ListCustomDimensionsFixedSizeCollection createCollection(
+ List pages, int collectionSize) {
+ return new ListCustomDimensionsFixedSizeCollection(pages, collectionSize);
+ }
+ }
+
+ public static class ListCustomMetricsPagedResponse
+ extends AbstractPagedListResponse<
+ ListCustomMetricsRequest,
+ ListCustomMetricsResponse,
+ CustomMetric,
+ ListCustomMetricsPage,
+ ListCustomMetricsFixedSizeCollection> {
+
+ public static ApiFuture createAsync(
+ PageContext context,
+ ApiFuture futureResponse) {
+ ApiFuture futurePage =
+ ListCustomMetricsPage.createEmptyPage().createPageAsync(context, futureResponse);
+ return ApiFutures.transform(
+ futurePage,
+ new ApiFunction() {
+ @Override
+ public ListCustomMetricsPagedResponse apply(ListCustomMetricsPage input) {
+ return new ListCustomMetricsPagedResponse(input);
+ }
+ },
+ MoreExecutors.directExecutor());
+ }
+
+ private ListCustomMetricsPagedResponse(ListCustomMetricsPage page) {
+ super(page, ListCustomMetricsFixedSizeCollection.createEmptyCollection());
+ }
+ }
+
+ public static class ListCustomMetricsPage
+ extends AbstractPage<
+ ListCustomMetricsRequest,
+ ListCustomMetricsResponse,
+ CustomMetric,
+ ListCustomMetricsPage> {
+
+ private ListCustomMetricsPage(
+ PageContext context,
+ ListCustomMetricsResponse response) {
+ super(context, response);
+ }
+
+ private static ListCustomMetricsPage createEmptyPage() {
+ return new ListCustomMetricsPage(null, null);
+ }
+
+ @Override
+ protected ListCustomMetricsPage createPage(
+ PageContext context,
+ ListCustomMetricsResponse response) {
+ return new ListCustomMetricsPage(context, response);
+ }
+
+ @Override
+ public ApiFuture createPageAsync(
+ PageContext context,
+ ApiFuture futureResponse) {
+ return super.createPageAsync(context, futureResponse);
+ }
+ }
+
+ public static class ListCustomMetricsFixedSizeCollection
+ extends AbstractFixedSizeCollection<
+ ListCustomMetricsRequest,
+ ListCustomMetricsResponse,
+ CustomMetric,
+ ListCustomMetricsPage,
+ ListCustomMetricsFixedSizeCollection> {
+
+ private ListCustomMetricsFixedSizeCollection(
+ List pages, int collectionSize) {
+ super(pages, collectionSize);
+ }
+
+ private static ListCustomMetricsFixedSizeCollection createEmptyCollection() {
+ return new ListCustomMetricsFixedSizeCollection(null, 0);
+ }
+
+ @Override
+ protected ListCustomMetricsFixedSizeCollection createCollection(
+ List pages, int collectionSize) {
+ return new ListCustomMetricsFixedSizeCollection(pages, collectionSize);
+ }
+ }
}
diff --git a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings.java b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings.java
index 338d76cb..e1c8d581 100644
--- a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings.java
+++ b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings.java
@@ -20,9 +20,13 @@
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccountSummariesPagedResponse;
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccountsPagedResponse;
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAndroidAppDataStreamsPagedResponse;
+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.ListFirebaseLinksPagedResponse;
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListGoogleAdsLinksPagedResponse;
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListIosAppDataStreamsPagedResponse;
+import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListMeasurementProtocolSecretsPagedResponse;
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListPropertiesPagedResponse;
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListUserLinksPagedResponse;
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListWebDataStreamsPagedResponse;
@@ -359,6 +363,44 @@ public UnaryCallSettings deleteGoogleAdsLinkS
return ((AnalyticsAdminServiceStubSettings) getStubSettings()).getDataSharingSettingsSettings();
}
+ /** Returns the object with the settings used for calls to getMeasurementProtocolSecret. */
+ public UnaryCallSettings
+ getMeasurementProtocolSecretSettings() {
+ return ((AnalyticsAdminServiceStubSettings) getStubSettings())
+ .getMeasurementProtocolSecretSettings();
+ }
+
+ /** Returns the object with the settings used for calls to listMeasurementProtocolSecrets. */
+ public PagedCallSettings<
+ ListMeasurementProtocolSecretsRequest,
+ ListMeasurementProtocolSecretsResponse,
+ ListMeasurementProtocolSecretsPagedResponse>
+ listMeasurementProtocolSecretsSettings() {
+ return ((AnalyticsAdminServiceStubSettings) getStubSettings())
+ .listMeasurementProtocolSecretsSettings();
+ }
+
+ /** Returns the object with the settings used for calls to createMeasurementProtocolSecret. */
+ public UnaryCallSettings
+ createMeasurementProtocolSecretSettings() {
+ return ((AnalyticsAdminServiceStubSettings) getStubSettings())
+ .createMeasurementProtocolSecretSettings();
+ }
+
+ /** Returns the object with the settings used for calls to deleteMeasurementProtocolSecret. */
+ public UnaryCallSettings
+ deleteMeasurementProtocolSecretSettings() {
+ return ((AnalyticsAdminServiceStubSettings) getStubSettings())
+ .deleteMeasurementProtocolSecretSettings();
+ }
+
+ /** Returns the object with the settings used for calls to updateMeasurementProtocolSecret. */
+ public UnaryCallSettings
+ updateMeasurementProtocolSecretSettings() {
+ return ((AnalyticsAdminServiceStubSettings) getStubSettings())
+ .updateMeasurementProtocolSecretSettings();
+ }
+
/** Returns the object with the settings used for calls to searchChangeHistoryEvents. */
public PagedCallSettings<
SearchChangeHistoryEventsRequest,
@@ -369,6 +411,105 @@ public UnaryCallSettings deleteGoogleAdsLinkS
.searchChangeHistoryEventsSettings();
}
+ /** Returns the object with the settings used for calls to getGoogleSignalsSettings. */
+ public UnaryCallSettings
+ getGoogleSignalsSettingsSettings() {
+ return ((AnalyticsAdminServiceStubSettings) getStubSettings())
+ .getGoogleSignalsSettingsSettings();
+ }
+
+ /** Returns the object with the settings used for calls to updateGoogleSignalsSettings. */
+ public UnaryCallSettings
+ updateGoogleSignalsSettingsSettings() {
+ return ((AnalyticsAdminServiceStubSettings) getStubSettings())
+ .updateGoogleSignalsSettingsSettings();
+ }
+
+ /** Returns the object with the settings used for calls to createConversionEvent. */
+ public UnaryCallSettings
+ createConversionEventSettings() {
+ return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createConversionEventSettings();
+ }
+
+ /** Returns the object with the settings used for calls to getConversionEvent. */
+ public UnaryCallSettings
+ getConversionEventSettings() {
+ return ((AnalyticsAdminServiceStubSettings) getStubSettings()).getConversionEventSettings();
+ }
+
+ /** Returns the object with the settings used for calls to deleteConversionEvent. */
+ public UnaryCallSettings deleteConversionEventSettings() {
+ return ((AnalyticsAdminServiceStubSettings) getStubSettings()).deleteConversionEventSettings();
+ }
+
+ /** Returns the object with the settings used for calls to listConversionEvents. */
+ public PagedCallSettings<
+ ListConversionEventsRequest,
+ ListConversionEventsResponse,
+ ListConversionEventsPagedResponse>
+ listConversionEventsSettings() {
+ return ((AnalyticsAdminServiceStubSettings) getStubSettings()).listConversionEventsSettings();
+ }
+
+ /** Returns the object with the settings used for calls to createCustomDimension. */
+ public UnaryCallSettings
+ createCustomDimensionSettings() {
+ return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createCustomDimensionSettings();
+ }
+
+ /** Returns the object with the settings used for calls to updateCustomDimension. */
+ public UnaryCallSettings
+ updateCustomDimensionSettings() {
+ return ((AnalyticsAdminServiceStubSettings) getStubSettings()).updateCustomDimensionSettings();
+ }
+
+ /** Returns the object with the settings used for calls to listCustomDimensions. */
+ public PagedCallSettings<
+ ListCustomDimensionsRequest,
+ ListCustomDimensionsResponse,
+ ListCustomDimensionsPagedResponse>
+ listCustomDimensionsSettings() {
+ return ((AnalyticsAdminServiceStubSettings) getStubSettings()).listCustomDimensionsSettings();
+ }
+
+ /** Returns the object with the settings used for calls to archiveCustomDimension. */
+ public UnaryCallSettings archiveCustomDimensionSettings() {
+ return ((AnalyticsAdminServiceStubSettings) getStubSettings()).archiveCustomDimensionSettings();
+ }
+
+ /** Returns the object with the settings used for calls to getCustomDimension. */
+ public UnaryCallSettings
+ getCustomDimensionSettings() {
+ return ((AnalyticsAdminServiceStubSettings) getStubSettings()).getCustomDimensionSettings();
+ }
+
+ /** Returns the object with the settings used for calls to createCustomMetric. */
+ public UnaryCallSettings createCustomMetricSettings() {
+ return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createCustomMetricSettings();
+ }
+
+ /** Returns the object with the settings used for calls to updateCustomMetric. */
+ public UnaryCallSettings updateCustomMetricSettings() {
+ return ((AnalyticsAdminServiceStubSettings) getStubSettings()).updateCustomMetricSettings();
+ }
+
+ /** Returns the object with the settings used for calls to listCustomMetrics. */
+ public PagedCallSettings<
+ ListCustomMetricsRequest, ListCustomMetricsResponse, ListCustomMetricsPagedResponse>
+ listCustomMetricsSettings() {
+ return ((AnalyticsAdminServiceStubSettings) getStubSettings()).listCustomMetricsSettings();
+ }
+
+ /** Returns the object with the settings used for calls to archiveCustomMetric. */
+ public UnaryCallSettings archiveCustomMetricSettings() {
+ return ((AnalyticsAdminServiceStubSettings) getStubSettings()).archiveCustomMetricSettings();
+ }
+
+ /** Returns the object with the settings used for calls to getCustomMetric. */
+ public UnaryCallSettings getCustomMetricSettings() {
+ return ((AnalyticsAdminServiceStubSettings) getStubSettings()).getCustomMetricSettings();
+ }
+
public static final AnalyticsAdminServiceSettings create(AnalyticsAdminServiceStubSettings stub)
throws IOException {
return new AnalyticsAdminServiceSettings.Builder(stub.toBuilder()).build();
@@ -751,6 +892,41 @@ public UnaryCallSettings.Builder deleteUserLinkSet
return getStubSettingsBuilder().getDataSharingSettingsSettings();
}
+ /** Returns the builder for the settings used for calls to getMeasurementProtocolSecret. */
+ public UnaryCallSettings.Builder
+ getMeasurementProtocolSecretSettings() {
+ return getStubSettingsBuilder().getMeasurementProtocolSecretSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to listMeasurementProtocolSecrets. */
+ public PagedCallSettings.Builder<
+ ListMeasurementProtocolSecretsRequest,
+ ListMeasurementProtocolSecretsResponse,
+ ListMeasurementProtocolSecretsPagedResponse>
+ listMeasurementProtocolSecretsSettings() {
+ return getStubSettingsBuilder().listMeasurementProtocolSecretsSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to createMeasurementProtocolSecret. */
+ public UnaryCallSettings.Builder<
+ CreateMeasurementProtocolSecretRequest, MeasurementProtocolSecret>
+ createMeasurementProtocolSecretSettings() {
+ return getStubSettingsBuilder().createMeasurementProtocolSecretSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to deleteMeasurementProtocolSecret. */
+ public UnaryCallSettings.Builder
+ deleteMeasurementProtocolSecretSettings() {
+ return getStubSettingsBuilder().deleteMeasurementProtocolSecretSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to updateMeasurementProtocolSecret. */
+ public UnaryCallSettings.Builder<
+ UpdateMeasurementProtocolSecretRequest, MeasurementProtocolSecret>
+ updateMeasurementProtocolSecretSettings() {
+ return getStubSettingsBuilder().updateMeasurementProtocolSecretSettings();
+ }
+
/** Returns the builder for the settings used for calls to searchChangeHistoryEvents. */
public PagedCallSettings.Builder<
SearchChangeHistoryEventsRequest,
@@ -760,6 +936,109 @@ public UnaryCallSettings.Builder deleteUserLinkSet
return getStubSettingsBuilder().searchChangeHistoryEventsSettings();
}
+ /** Returns the builder for the settings used for calls to getGoogleSignalsSettings. */
+ public UnaryCallSettings.Builder
+ getGoogleSignalsSettingsSettings() {
+ return getStubSettingsBuilder().getGoogleSignalsSettingsSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to updateGoogleSignalsSettings. */
+ public UnaryCallSettings.Builder
+ updateGoogleSignalsSettingsSettings() {
+ return getStubSettingsBuilder().updateGoogleSignalsSettingsSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to createConversionEvent. */
+ public UnaryCallSettings.Builder
+ createConversionEventSettings() {
+ return getStubSettingsBuilder().createConversionEventSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to getConversionEvent. */
+ public UnaryCallSettings.Builder
+ getConversionEventSettings() {
+ return getStubSettingsBuilder().getConversionEventSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to deleteConversionEvent. */
+ public UnaryCallSettings.Builder
+ deleteConversionEventSettings() {
+ return getStubSettingsBuilder().deleteConversionEventSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to listConversionEvents. */
+ public PagedCallSettings.Builder<
+ ListConversionEventsRequest,
+ ListConversionEventsResponse,
+ ListConversionEventsPagedResponse>
+ listConversionEventsSettings() {
+ return getStubSettingsBuilder().listConversionEventsSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to createCustomDimension. */
+ public UnaryCallSettings.Builder
+ createCustomDimensionSettings() {
+ return getStubSettingsBuilder().createCustomDimensionSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to updateCustomDimension. */
+ public UnaryCallSettings.Builder
+ updateCustomDimensionSettings() {
+ return getStubSettingsBuilder().updateCustomDimensionSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to listCustomDimensions. */
+ public PagedCallSettings.Builder<
+ ListCustomDimensionsRequest,
+ ListCustomDimensionsResponse,
+ ListCustomDimensionsPagedResponse>
+ listCustomDimensionsSettings() {
+ return getStubSettingsBuilder().listCustomDimensionsSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to archiveCustomDimension. */
+ public UnaryCallSettings.Builder
+ archiveCustomDimensionSettings() {
+ return getStubSettingsBuilder().archiveCustomDimensionSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to getCustomDimension. */
+ public UnaryCallSettings.Builder
+ getCustomDimensionSettings() {
+ return getStubSettingsBuilder().getCustomDimensionSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to createCustomMetric. */
+ public UnaryCallSettings.Builder
+ createCustomMetricSettings() {
+ return getStubSettingsBuilder().createCustomMetricSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to updateCustomMetric. */
+ public UnaryCallSettings.Builder
+ updateCustomMetricSettings() {
+ return getStubSettingsBuilder().updateCustomMetricSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to listCustomMetrics. */
+ public PagedCallSettings.Builder<
+ ListCustomMetricsRequest, ListCustomMetricsResponse, ListCustomMetricsPagedResponse>
+ listCustomMetricsSettings() {
+ return getStubSettingsBuilder().listCustomMetricsSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to archiveCustomMetric. */
+ public UnaryCallSettings.Builder
+ archiveCustomMetricSettings() {
+ return getStubSettingsBuilder().archiveCustomMetricSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to getCustomMetric. */
+ public UnaryCallSettings.Builder
+ getCustomMetricSettings() {
+ return getStubSettingsBuilder().getCustomMetricSettings();
+ }
+
@Override
public AnalyticsAdminServiceSettings build() throws IOException {
return new AnalyticsAdminServiceSettings(this);
diff --git a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/gapic_metadata.json b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/gapic_metadata.json
index 88ed5eb4..fe921e8b 100644
--- a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/gapic_metadata.json
+++ b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/gapic_metadata.json
@@ -10,6 +10,12 @@
"grpc": {
"libraryClient": "AnalyticsAdminServiceClient",
"rpcs": {
+ "ArchiveCustomDimension": {
+ "methods": ["archiveCustomDimension", "archiveCustomDimension", "archiveCustomDimension", "archiveCustomDimensionCallable"]
+ },
+ "ArchiveCustomMetric": {
+ "methods": ["archiveCustomMetric", "archiveCustomMetric", "archiveCustomMetric", "archiveCustomMetricCallable"]
+ },
"AuditUserLinks": {
"methods": ["auditUserLinks", "auditUserLinksPagedCallable", "auditUserLinksCallable"]
},
@@ -25,12 +31,24 @@
"BatchUpdateUserLinks": {
"methods": ["batchUpdateUserLinks", "batchUpdateUserLinksCallable"]
},
+ "CreateConversionEvent": {
+ "methods": ["createConversionEvent", "createConversionEvent", "createConversionEvent", "createConversionEventCallable"]
+ },
+ "CreateCustomDimension": {
+ "methods": ["createCustomDimension", "createCustomDimension", "createCustomDimension", "createCustomDimensionCallable"]
+ },
+ "CreateCustomMetric": {
+ "methods": ["createCustomMetric", "createCustomMetric", "createCustomMetric", "createCustomMetricCallable"]
+ },
"CreateFirebaseLink": {
"methods": ["createFirebaseLink", "createFirebaseLink", "createFirebaseLink", "createFirebaseLinkCallable"]
},
"CreateGoogleAdsLink": {
"methods": ["createGoogleAdsLink", "createGoogleAdsLink", "createGoogleAdsLink", "createGoogleAdsLinkCallable"]
},
+ "CreateMeasurementProtocolSecret": {
+ "methods": ["createMeasurementProtocolSecret", "createMeasurementProtocolSecret", "createMeasurementProtocolSecret", "createMeasurementProtocolSecretCallable"]
+ },
"CreateProperty": {
"methods": ["createProperty", "createProperty", "createPropertyCallable"]
},
@@ -46,6 +64,9 @@
"DeleteAndroidAppDataStream": {
"methods": ["deleteAndroidAppDataStream", "deleteAndroidAppDataStream", "deleteAndroidAppDataStream", "deleteAndroidAppDataStreamCallable"]
},
+ "DeleteConversionEvent": {
+ "methods": ["deleteConversionEvent", "deleteConversionEvent", "deleteConversionEvent", "deleteConversionEventCallable"]
+ },
"DeleteFirebaseLink": {
"methods": ["deleteFirebaseLink", "deleteFirebaseLink", "deleteFirebaseLink", "deleteFirebaseLinkCallable"]
},
@@ -55,6 +76,9 @@
"DeleteIosAppDataStream": {
"methods": ["deleteIosAppDataStream", "deleteIosAppDataStream", "deleteIosAppDataStream", "deleteIosAppDataStreamCallable"]
},
+ "DeleteMeasurementProtocolSecret": {
+ "methods": ["deleteMeasurementProtocolSecret", "deleteMeasurementProtocolSecret", "deleteMeasurementProtocolSecret", "deleteMeasurementProtocolSecretCallable"]
+ },
"DeleteProperty": {
"methods": ["deleteProperty", "deleteProperty", "deleteProperty", "deletePropertyCallable"]
},
@@ -70,6 +94,15 @@
"GetAndroidAppDataStream": {
"methods": ["getAndroidAppDataStream", "getAndroidAppDataStream", "getAndroidAppDataStream", "getAndroidAppDataStreamCallable"]
},
+ "GetConversionEvent": {
+ "methods": ["getConversionEvent", "getConversionEvent", "getConversionEvent", "getConversionEventCallable"]
+ },
+ "GetCustomDimension": {
+ "methods": ["getCustomDimension", "getCustomDimension", "getCustomDimension", "getCustomDimensionCallable"]
+ },
+ "GetCustomMetric": {
+ "methods": ["getCustomMetric", "getCustomMetric", "getCustomMetric", "getCustomMetricCallable"]
+ },
"GetDataSharingSettings": {
"methods": ["getDataSharingSettings", "getDataSharingSettings", "getDataSharingSettings", "getDataSharingSettingsCallable"]
},
@@ -79,9 +112,15 @@
"GetGlobalSiteTag": {
"methods": ["getGlobalSiteTag", "getGlobalSiteTag", "getGlobalSiteTag", "getGlobalSiteTagCallable"]
},
+ "GetGoogleSignalsSettings": {
+ "methods": ["getGoogleSignalsSettings", "getGoogleSignalsSettings", "getGoogleSignalsSettings", "getGoogleSignalsSettingsCallable"]
+ },
"GetIosAppDataStream": {
"methods": ["getIosAppDataStream", "getIosAppDataStream", "getIosAppDataStream", "getIosAppDataStreamCallable"]
},
+ "GetMeasurementProtocolSecret": {
+ "methods": ["getMeasurementProtocolSecret", "getMeasurementProtocolSecret", "getMeasurementProtocolSecret", "getMeasurementProtocolSecretCallable"]
+ },
"GetProperty": {
"methods": ["getProperty", "getProperty", "getProperty", "getPropertyCallable"]
},
@@ -100,6 +139,15 @@
"ListAndroidAppDataStreams": {
"methods": ["listAndroidAppDataStreams", "listAndroidAppDataStreams", "listAndroidAppDataStreams", "listAndroidAppDataStreamsPagedCallable", "listAndroidAppDataStreamsCallable"]
},
+ "ListConversionEvents": {
+ "methods": ["listConversionEvents", "listConversionEvents", "listConversionEvents", "listConversionEventsPagedCallable", "listConversionEventsCallable"]
+ },
+ "ListCustomDimensions": {
+ "methods": ["listCustomDimensions", "listCustomDimensions", "listCustomDimensions", "listCustomDimensionsPagedCallable", "listCustomDimensionsCallable"]
+ },
+ "ListCustomMetrics": {
+ "methods": ["listCustomMetrics", "listCustomMetrics", "listCustomMetrics", "listCustomMetricsPagedCallable", "listCustomMetricsCallable"]
+ },
"ListFirebaseLinks": {
"methods": ["listFirebaseLinks", "listFirebaseLinks", "listFirebaseLinks", "listFirebaseLinksPagedCallable", "listFirebaseLinksCallable"]
},
@@ -109,6 +157,9 @@
"ListIosAppDataStreams": {
"methods": ["listIosAppDataStreams", "listIosAppDataStreams", "listIosAppDataStreams", "listIosAppDataStreamsPagedCallable", "listIosAppDataStreamsCallable"]
},
+ "ListMeasurementProtocolSecrets": {
+ "methods": ["listMeasurementProtocolSecrets", "listMeasurementProtocolSecrets", "listMeasurementProtocolSecrets", "listMeasurementProtocolSecretsPagedCallable", "listMeasurementProtocolSecretsCallable"]
+ },
"ListProperties": {
"methods": ["listProperties", "listPropertiesPagedCallable", "listPropertiesCallable"]
},
@@ -130,6 +181,12 @@
"UpdateAndroidAppDataStream": {
"methods": ["updateAndroidAppDataStream", "updateAndroidAppDataStream", "updateAndroidAppDataStreamCallable"]
},
+ "UpdateCustomDimension": {
+ "methods": ["updateCustomDimension", "updateCustomDimension", "updateCustomDimensionCallable"]
+ },
+ "UpdateCustomMetric": {
+ "methods": ["updateCustomMetric", "updateCustomMetric", "updateCustomMetricCallable"]
+ },
"UpdateEnhancedMeasurementSettings": {
"methods": ["updateEnhancedMeasurementSettings", "updateEnhancedMeasurementSettings", "updateEnhancedMeasurementSettingsCallable"]
},
@@ -139,9 +196,15 @@
"UpdateGoogleAdsLink": {
"methods": ["updateGoogleAdsLink", "updateGoogleAdsLink", "updateGoogleAdsLinkCallable"]
},
+ "UpdateGoogleSignalsSettings": {
+ "methods": ["updateGoogleSignalsSettings", "updateGoogleSignalsSettings", "updateGoogleSignalsSettingsCallable"]
+ },
"UpdateIosAppDataStream": {
"methods": ["updateIosAppDataStream", "updateIosAppDataStream", "updateIosAppDataStreamCallable"]
},
+ "UpdateMeasurementProtocolSecret": {
+ "methods": ["updateMeasurementProtocolSecret", "updateMeasurementProtocolSecret", "updateMeasurementProtocolSecretCallable"]
+ },
"UpdateProperty": {
"methods": ["updateProperty", "updateProperty", "updatePropertyCallable"]
},
diff --git a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStub.java b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStub.java
index 6cbc9925..84390ca3 100644
--- a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStub.java
+++ b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStub.java
@@ -20,9 +20,13 @@
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccountSummariesPagedResponse;
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccountsPagedResponse;
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAndroidAppDataStreamsPagedResponse;
+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.ListFirebaseLinksPagedResponse;
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListGoogleAdsLinksPagedResponse;
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListIosAppDataStreamsPagedResponse;
+import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListMeasurementProtocolSecretsPagedResponse;
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListPropertiesPagedResponse;
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListUserLinksPagedResponse;
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListWebDataStreamsPagedResponse;
@@ -30,6 +34,8 @@
import com.google.analytics.admin.v1alpha.Account;
import com.google.analytics.admin.v1alpha.AndroidAppDataStream;
+import com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest;
+import com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest;
import com.google.analytics.admin.v1alpha.AuditUserLinksRequest;
import com.google.analytics.admin.v1alpha.AuditUserLinksResponse;
import com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest;
@@ -39,17 +45,26 @@
import com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse;
import com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest;
import com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse;
+import com.google.analytics.admin.v1alpha.ConversionEvent;
+import com.google.analytics.admin.v1alpha.CreateConversionEventRequest;
+import com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest;
+import com.google.analytics.admin.v1alpha.CreateCustomMetricRequest;
import com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest;
import com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest;
+import com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest;
import com.google.analytics.admin.v1alpha.CreatePropertyRequest;
import com.google.analytics.admin.v1alpha.CreateUserLinkRequest;
import com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest;
+import com.google.analytics.admin.v1alpha.CustomDimension;
+import com.google.analytics.admin.v1alpha.CustomMetric;
import com.google.analytics.admin.v1alpha.DataSharingSettings;
import com.google.analytics.admin.v1alpha.DeleteAccountRequest;
import com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest;
+import com.google.analytics.admin.v1alpha.DeleteConversionEventRequest;
import com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest;
import com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest;
import com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest;
+import com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest;
import com.google.analytics.admin.v1alpha.DeletePropertyRequest;
import com.google.analytics.admin.v1alpha.DeleteUserLinkRequest;
import com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest;
@@ -57,15 +72,21 @@
import com.google.analytics.admin.v1alpha.FirebaseLink;
import com.google.analytics.admin.v1alpha.GetAccountRequest;
import com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest;
+import com.google.analytics.admin.v1alpha.GetConversionEventRequest;
+import com.google.analytics.admin.v1alpha.GetCustomDimensionRequest;
+import com.google.analytics.admin.v1alpha.GetCustomMetricRequest;
import com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest;
import com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest;
import com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest;
+import com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest;
import com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest;
+import com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest;
import com.google.analytics.admin.v1alpha.GetPropertyRequest;
import com.google.analytics.admin.v1alpha.GetUserLinkRequest;
import com.google.analytics.admin.v1alpha.GetWebDataStreamRequest;
import com.google.analytics.admin.v1alpha.GlobalSiteTag;
import com.google.analytics.admin.v1alpha.GoogleAdsLink;
+import com.google.analytics.admin.v1alpha.GoogleSignalsSettings;
import com.google.analytics.admin.v1alpha.IosAppDataStream;
import com.google.analytics.admin.v1alpha.ListAccountSummariesRequest;
import com.google.analytics.admin.v1alpha.ListAccountSummariesResponse;
@@ -73,18 +94,27 @@
import com.google.analytics.admin.v1alpha.ListAccountsResponse;
import com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest;
import com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse;
+import com.google.analytics.admin.v1alpha.ListConversionEventsRequest;
+import com.google.analytics.admin.v1alpha.ListConversionEventsResponse;
+import com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest;
+import com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse;
+import com.google.analytics.admin.v1alpha.ListCustomMetricsRequest;
+import com.google.analytics.admin.v1alpha.ListCustomMetricsResponse;
import com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest;
import com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse;
import com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest;
import com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse;
import com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest;
import com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse;
+import com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest;
+import com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse;
import com.google.analytics.admin.v1alpha.ListPropertiesRequest;
import com.google.analytics.admin.v1alpha.ListPropertiesResponse;
import com.google.analytics.admin.v1alpha.ListUserLinksRequest;
import com.google.analytics.admin.v1alpha.ListUserLinksResponse;
import com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest;
import com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse;
+import com.google.analytics.admin.v1alpha.MeasurementProtocolSecret;
import com.google.analytics.admin.v1alpha.Property;
import com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest;
import com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse;
@@ -92,10 +122,14 @@
import com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse;
import com.google.analytics.admin.v1alpha.UpdateAccountRequest;
import com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest;
+import com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest;
+import com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest;
import com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest;
import com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest;
import com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest;
+import com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest;
import com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest;
+import com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest;
import com.google.analytics.admin.v1alpha.UpdatePropertyRequest;
import com.google.analytics.admin.v1alpha.UpdateUserLinkRequest;
import com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest;
@@ -373,6 +407,44 @@ public UnaryCallable deleteGoogleAdsLinkCalla
throw new UnsupportedOperationException("Not implemented: getDataSharingSettingsCallable()");
}
+ public UnaryCallable
+ getMeasurementProtocolSecretCallable() {
+ throw new UnsupportedOperationException(
+ "Not implemented: getMeasurementProtocolSecretCallable()");
+ }
+
+ public UnaryCallable<
+ ListMeasurementProtocolSecretsRequest, ListMeasurementProtocolSecretsPagedResponse>
+ listMeasurementProtocolSecretsPagedCallable() {
+ throw new UnsupportedOperationException(
+ "Not implemented: listMeasurementProtocolSecretsPagedCallable()");
+ }
+
+ public UnaryCallable<
+ ListMeasurementProtocolSecretsRequest, ListMeasurementProtocolSecretsResponse>
+ listMeasurementProtocolSecretsCallable() {
+ throw new UnsupportedOperationException(
+ "Not implemented: listMeasurementProtocolSecretsCallable()");
+ }
+
+ public UnaryCallable
+ createMeasurementProtocolSecretCallable() {
+ throw new UnsupportedOperationException(
+ "Not implemented: createMeasurementProtocolSecretCallable()");
+ }
+
+ public UnaryCallable
+ deleteMeasurementProtocolSecretCallable() {
+ throw new UnsupportedOperationException(
+ "Not implemented: deleteMeasurementProtocolSecretCallable()");
+ }
+
+ public UnaryCallable
+ updateMeasurementProtocolSecretCallable() {
+ throw new UnsupportedOperationException(
+ "Not implemented: updateMeasurementProtocolSecretCallable()");
+ }
+
public UnaryCallable
searchChangeHistoryEventsPagedCallable() {
throw new UnsupportedOperationException(
@@ -384,6 +456,94 @@ public UnaryCallable deleteGoogleAdsLinkCalla
throw new UnsupportedOperationException("Not implemented: searchChangeHistoryEventsCallable()");
}
+ public UnaryCallable
+ getGoogleSignalsSettingsCallable() {
+ throw new UnsupportedOperationException("Not implemented: getGoogleSignalsSettingsCallable()");
+ }
+
+ public UnaryCallable
+ updateGoogleSignalsSettingsCallable() {
+ throw new UnsupportedOperationException(
+ "Not implemented: updateGoogleSignalsSettingsCallable()");
+ }
+
+ public UnaryCallable
+ createConversionEventCallable() {
+ throw new UnsupportedOperationException("Not implemented: createConversionEventCallable()");
+ }
+
+ public UnaryCallable getConversionEventCallable() {
+ throw new UnsupportedOperationException("Not implemented: getConversionEventCallable()");
+ }
+
+ public UnaryCallable deleteConversionEventCallable() {
+ throw new UnsupportedOperationException("Not implemented: deleteConversionEventCallable()");
+ }
+
+ public UnaryCallable
+ listConversionEventsPagedCallable() {
+ throw new UnsupportedOperationException("Not implemented: listConversionEventsPagedCallable()");
+ }
+
+ public UnaryCallable
+ listConversionEventsCallable() {
+ throw new UnsupportedOperationException("Not implemented: listConversionEventsCallable()");
+ }
+
+ public UnaryCallable
+ createCustomDimensionCallable() {
+ throw new UnsupportedOperationException("Not implemented: createCustomDimensionCallable()");
+ }
+
+ public UnaryCallable
+ updateCustomDimensionCallable() {
+ throw new UnsupportedOperationException("Not implemented: updateCustomDimensionCallable()");
+ }
+
+ public UnaryCallable
+ listCustomDimensionsPagedCallable() {
+ throw new UnsupportedOperationException("Not implemented: listCustomDimensionsPagedCallable()");
+ }
+
+ public UnaryCallable
+ listCustomDimensionsCallable() {
+ throw new UnsupportedOperationException("Not implemented: listCustomDimensionsCallable()");
+ }
+
+ public UnaryCallable archiveCustomDimensionCallable() {
+ throw new UnsupportedOperationException("Not implemented: archiveCustomDimensionCallable()");
+ }
+
+ public UnaryCallable getCustomDimensionCallable() {
+ throw new UnsupportedOperationException("Not implemented: getCustomDimensionCallable()");
+ }
+
+ public UnaryCallable createCustomMetricCallable() {
+ throw new UnsupportedOperationException("Not implemented: createCustomMetricCallable()");
+ }
+
+ public UnaryCallable updateCustomMetricCallable() {
+ throw new UnsupportedOperationException("Not implemented: updateCustomMetricCallable()");
+ }
+
+ public UnaryCallable
+ listCustomMetricsPagedCallable() {
+ throw new UnsupportedOperationException("Not implemented: listCustomMetricsPagedCallable()");
+ }
+
+ public UnaryCallable
+ listCustomMetricsCallable() {
+ throw new UnsupportedOperationException("Not implemented: listCustomMetricsCallable()");
+ }
+
+ public UnaryCallable archiveCustomMetricCallable() {
+ throw new UnsupportedOperationException("Not implemented: archiveCustomMetricCallable()");
+ }
+
+ public UnaryCallable getCustomMetricCallable() {
+ throw new UnsupportedOperationException("Not implemented: getCustomMetricCallable()");
+ }
+
@Override
public abstract void close();
}
diff --git a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStubSettings.java b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStubSettings.java
index 9b332f58..47306a1c 100644
--- a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStubSettings.java
+++ b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStubSettings.java
@@ -20,9 +20,13 @@
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccountSummariesPagedResponse;
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccountsPagedResponse;
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAndroidAppDataStreamsPagedResponse;
+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.ListFirebaseLinksPagedResponse;
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListGoogleAdsLinksPagedResponse;
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListIosAppDataStreamsPagedResponse;
+import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListMeasurementProtocolSecretsPagedResponse;
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListPropertiesPagedResponse;
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListUserLinksPagedResponse;
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListWebDataStreamsPagedResponse;
@@ -31,6 +35,8 @@
import com.google.analytics.admin.v1alpha.Account;
import com.google.analytics.admin.v1alpha.AccountSummary;
import com.google.analytics.admin.v1alpha.AndroidAppDataStream;
+import com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest;
+import com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest;
import com.google.analytics.admin.v1alpha.AuditUserLink;
import com.google.analytics.admin.v1alpha.AuditUserLinksRequest;
import com.google.analytics.admin.v1alpha.AuditUserLinksResponse;
@@ -42,17 +48,26 @@
import com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest;
import com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse;
import com.google.analytics.admin.v1alpha.ChangeHistoryEvent;
+import com.google.analytics.admin.v1alpha.ConversionEvent;
+import com.google.analytics.admin.v1alpha.CreateConversionEventRequest;
+import com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest;
+import com.google.analytics.admin.v1alpha.CreateCustomMetricRequest;
import com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest;
import com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest;
+import com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest;
import com.google.analytics.admin.v1alpha.CreatePropertyRequest;
import com.google.analytics.admin.v1alpha.CreateUserLinkRequest;
import com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest;
+import com.google.analytics.admin.v1alpha.CustomDimension;
+import com.google.analytics.admin.v1alpha.CustomMetric;
import com.google.analytics.admin.v1alpha.DataSharingSettings;
import com.google.analytics.admin.v1alpha.DeleteAccountRequest;
import com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest;
+import com.google.analytics.admin.v1alpha.DeleteConversionEventRequest;
import com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest;
import com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest;
import com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest;
+import com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest;
import com.google.analytics.admin.v1alpha.DeletePropertyRequest;
import com.google.analytics.admin.v1alpha.DeleteUserLinkRequest;
import com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest;
@@ -60,15 +75,21 @@
import com.google.analytics.admin.v1alpha.FirebaseLink;
import com.google.analytics.admin.v1alpha.GetAccountRequest;
import com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest;
+import com.google.analytics.admin.v1alpha.GetConversionEventRequest;
+import com.google.analytics.admin.v1alpha.GetCustomDimensionRequest;
+import com.google.analytics.admin.v1alpha.GetCustomMetricRequest;
import com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest;
import com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest;
import com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest;
+import com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest;
import com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest;
+import com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest;
import com.google.analytics.admin.v1alpha.GetPropertyRequest;
import com.google.analytics.admin.v1alpha.GetUserLinkRequest;
import com.google.analytics.admin.v1alpha.GetWebDataStreamRequest;
import com.google.analytics.admin.v1alpha.GlobalSiteTag;
import com.google.analytics.admin.v1alpha.GoogleAdsLink;
+import com.google.analytics.admin.v1alpha.GoogleSignalsSettings;
import com.google.analytics.admin.v1alpha.IosAppDataStream;
import com.google.analytics.admin.v1alpha.ListAccountSummariesRequest;
import com.google.analytics.admin.v1alpha.ListAccountSummariesResponse;
@@ -76,18 +97,27 @@
import com.google.analytics.admin.v1alpha.ListAccountsResponse;
import com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest;
import com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse;
+import com.google.analytics.admin.v1alpha.ListConversionEventsRequest;
+import com.google.analytics.admin.v1alpha.ListConversionEventsResponse;
+import com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest;
+import com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse;
+import com.google.analytics.admin.v1alpha.ListCustomMetricsRequest;
+import com.google.analytics.admin.v1alpha.ListCustomMetricsResponse;
import com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest;
import com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse;
import com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest;
import com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse;
import com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest;
import com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse;
+import com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest;
+import com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse;
import com.google.analytics.admin.v1alpha.ListPropertiesRequest;
import com.google.analytics.admin.v1alpha.ListPropertiesResponse;
import com.google.analytics.admin.v1alpha.ListUserLinksRequest;
import com.google.analytics.admin.v1alpha.ListUserLinksResponse;
import com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest;
import com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse;
+import com.google.analytics.admin.v1alpha.MeasurementProtocolSecret;
import com.google.analytics.admin.v1alpha.Property;
import com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest;
import com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse;
@@ -95,10 +125,14 @@
import com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse;
import com.google.analytics.admin.v1alpha.UpdateAccountRequest;
import com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest;
+import com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest;
+import com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest;
import com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest;
import com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest;
import com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest;
+import com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest;
import com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest;
+import com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest;
import com.google.analytics.admin.v1alpha.UpdatePropertyRequest;
import com.google.analytics.admin.v1alpha.UpdateUserLinkRequest;
import com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest;
@@ -276,11 +310,61 @@ public class AnalyticsAdminServiceStubSettings
listGoogleAdsLinksSettings;
private final UnaryCallSettings
getDataSharingSettingsSettings;
+ private final UnaryCallSettings
+ getMeasurementProtocolSecretSettings;
+ private final PagedCallSettings<
+ ListMeasurementProtocolSecretsRequest,
+ ListMeasurementProtocolSecretsResponse,
+ ListMeasurementProtocolSecretsPagedResponse>
+ listMeasurementProtocolSecretsSettings;
+ private final UnaryCallSettings
+ createMeasurementProtocolSecretSettings;
+ private final UnaryCallSettings
+ deleteMeasurementProtocolSecretSettings;
+ private final UnaryCallSettings
+ updateMeasurementProtocolSecretSettings;
private final PagedCallSettings<
SearchChangeHistoryEventsRequest,
SearchChangeHistoryEventsResponse,
SearchChangeHistoryEventsPagedResponse>
searchChangeHistoryEventsSettings;
+ private final UnaryCallSettings
+ getGoogleSignalsSettingsSettings;
+ private final UnaryCallSettings
+ updateGoogleSignalsSettingsSettings;
+ private final UnaryCallSettings
+ createConversionEventSettings;
+ private final UnaryCallSettings
+ getConversionEventSettings;
+ private final UnaryCallSettings
+ deleteConversionEventSettings;
+ private final PagedCallSettings<
+ ListConversionEventsRequest,
+ ListConversionEventsResponse,
+ ListConversionEventsPagedResponse>
+ listConversionEventsSettings;
+ private final UnaryCallSettings
+ createCustomDimensionSettings;
+ private final UnaryCallSettings
+ updateCustomDimensionSettings;
+ private final PagedCallSettings<
+ ListCustomDimensionsRequest,
+ ListCustomDimensionsResponse,
+ ListCustomDimensionsPagedResponse>
+ listCustomDimensionsSettings;
+ private final UnaryCallSettings
+ archiveCustomDimensionSettings;
+ private final UnaryCallSettings
+ getCustomDimensionSettings;
+ private final UnaryCallSettings
+ createCustomMetricSettings;
+ private final UnaryCallSettings
+ updateCustomMetricSettings;
+ private final PagedCallSettings<
+ ListCustomMetricsRequest, ListCustomMetricsResponse, ListCustomMetricsPagedResponse>
+ listCustomMetricsSettings;
+ private final UnaryCallSettings archiveCustomMetricSettings;
+ private final UnaryCallSettings getCustomMetricSettings;
private static final PagedListDescriptor
LIST_ACCOUNTS_PAGE_STR_DESC =
@@ -677,6 +761,55 @@ public Iterable extractResources(ListGoogleAdsLinksResponse paylo
}
};
+ private static final PagedListDescriptor<
+ ListMeasurementProtocolSecretsRequest,
+ ListMeasurementProtocolSecretsResponse,
+ MeasurementProtocolSecret>
+ LIST_MEASUREMENT_PROTOCOL_SECRETS_PAGE_STR_DESC =
+ new PagedListDescriptor<
+ ListMeasurementProtocolSecretsRequest,
+ ListMeasurementProtocolSecretsResponse,
+ MeasurementProtocolSecret>() {
+ @Override
+ public String emptyToken() {
+ return "";
+ }
+
+ @Override
+ public ListMeasurementProtocolSecretsRequest injectToken(
+ ListMeasurementProtocolSecretsRequest payload, String token) {
+ return ListMeasurementProtocolSecretsRequest.newBuilder(payload)
+ .setPageToken(token)
+ .build();
+ }
+
+ @Override
+ public ListMeasurementProtocolSecretsRequest injectPageSize(
+ ListMeasurementProtocolSecretsRequest payload, int pageSize) {
+ return ListMeasurementProtocolSecretsRequest.newBuilder(payload)
+ .setPageSize(pageSize)
+ .build();
+ }
+
+ @Override
+ public Integer extractPageSize(ListMeasurementProtocolSecretsRequest payload) {
+ return payload.getPageSize();
+ }
+
+ @Override
+ public String extractNextToken(ListMeasurementProtocolSecretsResponse payload) {
+ return payload.getNextPageToken();
+ }
+
+ @Override
+ public Iterable extractResources(
+ ListMeasurementProtocolSecretsResponse payload) {
+ return payload.getMeasurementProtocolSecretsList() == null
+ ? ImmutableList.of()
+ : payload.getMeasurementProtocolSecretsList();
+ }
+ };
+
private static final PagedListDescriptor<
SearchChangeHistoryEventsRequest, SearchChangeHistoryEventsResponse, ChangeHistoryEvent>
SEARCH_CHANGE_HISTORY_EVENTS_PAGE_STR_DESC =
@@ -724,6 +857,128 @@ public Iterable extractResources(
}
};
+ private static final PagedListDescriptor<
+ ListConversionEventsRequest, ListConversionEventsResponse, ConversionEvent>
+ LIST_CONVERSION_EVENTS_PAGE_STR_DESC =
+ new PagedListDescriptor<
+ ListConversionEventsRequest, ListConversionEventsResponse, ConversionEvent>() {
+ @Override
+ public String emptyToken() {
+ return "";
+ }
+
+ @Override
+ public ListConversionEventsRequest injectToken(
+ ListConversionEventsRequest payload, String token) {
+ return ListConversionEventsRequest.newBuilder(payload).setPageToken(token).build();
+ }
+
+ @Override
+ public ListConversionEventsRequest injectPageSize(
+ ListConversionEventsRequest payload, int pageSize) {
+ return ListConversionEventsRequest.newBuilder(payload).setPageSize(pageSize).build();
+ }
+
+ @Override
+ public Integer extractPageSize(ListConversionEventsRequest payload) {
+ return payload.getPageSize();
+ }
+
+ @Override
+ public String extractNextToken(ListConversionEventsResponse payload) {
+ return payload.getNextPageToken();
+ }
+
+ @Override
+ public Iterable extractResources(
+ ListConversionEventsResponse payload) {
+ return payload.getConversionEventsList() == null
+ ? ImmutableList.of()
+ : payload.getConversionEventsList();
+ }
+ };
+
+ private static final PagedListDescriptor<
+ ListCustomDimensionsRequest, ListCustomDimensionsResponse, CustomDimension>
+ LIST_CUSTOM_DIMENSIONS_PAGE_STR_DESC =
+ new PagedListDescriptor<
+ ListCustomDimensionsRequest, ListCustomDimensionsResponse, CustomDimension>() {
+ @Override
+ public String emptyToken() {
+ return "";
+ }
+
+ @Override
+ public ListCustomDimensionsRequest injectToken(
+ ListCustomDimensionsRequest payload, String token) {
+ return ListCustomDimensionsRequest.newBuilder(payload).setPageToken(token).build();
+ }
+
+ @Override
+ public ListCustomDimensionsRequest injectPageSize(
+ ListCustomDimensionsRequest payload, int pageSize) {
+ return ListCustomDimensionsRequest.newBuilder(payload).setPageSize(pageSize).build();
+ }
+
+ @Override
+ public Integer extractPageSize(ListCustomDimensionsRequest payload) {
+ return payload.getPageSize();
+ }
+
+ @Override
+ public String extractNextToken(ListCustomDimensionsResponse payload) {
+ return payload.getNextPageToken();
+ }
+
+ @Override
+ public Iterable extractResources(
+ ListCustomDimensionsResponse payload) {
+ return payload.getCustomDimensionsList() == null
+ ? ImmutableList.of()
+ : payload.getCustomDimensionsList();
+ }
+ };
+
+ private static final PagedListDescriptor<
+ ListCustomMetricsRequest, ListCustomMetricsResponse, CustomMetric>
+ LIST_CUSTOM_METRICS_PAGE_STR_DESC =
+ new PagedListDescriptor<
+ ListCustomMetricsRequest, ListCustomMetricsResponse, CustomMetric>() {
+ @Override
+ public String emptyToken() {
+ return "";
+ }
+
+ @Override
+ public ListCustomMetricsRequest injectToken(
+ ListCustomMetricsRequest payload, String token) {
+ return ListCustomMetricsRequest.newBuilder(payload).setPageToken(token).build();
+ }
+
+ @Override
+ public ListCustomMetricsRequest injectPageSize(
+ ListCustomMetricsRequest payload, int pageSize) {
+ return ListCustomMetricsRequest.newBuilder(payload).setPageSize(pageSize).build();
+ }
+
+ @Override
+ public Integer extractPageSize(ListCustomMetricsRequest payload) {
+ return payload.getPageSize();
+ }
+
+ @Override
+ public String extractNextToken(ListCustomMetricsResponse payload) {
+ return payload.getNextPageToken();
+ }
+
+ @Override
+ public Iterable extractResources(ListCustomMetricsResponse payload) {
+ return payload.getCustomMetricsList() == null
+ ? ImmutableList.of()
+ : payload.getCustomMetricsList();
+ }
+ };
+
private static final PagedListResponseFactory<
ListAccountsRequest, ListAccountsResponse, ListAccountsPagedResponse>
LIST_ACCOUNTS_PAGE_STR_FACT =
@@ -932,6 +1187,39 @@ public ApiFuture getFuturePagedResponse(
}
};
+ private static final PagedListResponseFactory<
+ ListMeasurementProtocolSecretsRequest,
+ ListMeasurementProtocolSecretsResponse,
+ ListMeasurementProtocolSecretsPagedResponse>
+ LIST_MEASUREMENT_PROTOCOL_SECRETS_PAGE_STR_FACT =
+ new PagedListResponseFactory<
+ ListMeasurementProtocolSecretsRequest,
+ ListMeasurementProtocolSecretsResponse,
+ ListMeasurementProtocolSecretsPagedResponse>() {
+ @Override
+ public ApiFuture getFuturePagedResponse(
+ UnaryCallable<
+ ListMeasurementProtocolSecretsRequest,
+ ListMeasurementProtocolSecretsResponse>
+ callable,
+ ListMeasurementProtocolSecretsRequest request,
+ ApiCallContext context,
+ ApiFuture futureResponse) {
+ PageContext<
+ ListMeasurementProtocolSecretsRequest,
+ ListMeasurementProtocolSecretsResponse,
+ MeasurementProtocolSecret>
+ pageContext =
+ PageContext.create(
+ callable,
+ LIST_MEASUREMENT_PROTOCOL_SECRETS_PAGE_STR_DESC,
+ request,
+ context);
+ return ListMeasurementProtocolSecretsPagedResponse.createAsync(
+ pageContext, futureResponse);
+ }
+ };
+
private static final PagedListResponseFactory<
SearchChangeHistoryEventsRequest,
SearchChangeHistoryEventsResponse,
@@ -960,6 +1248,75 @@ public ApiFuture getFuturePagedResponse(
}
};
+ private static final PagedListResponseFactory<
+ ListConversionEventsRequest,
+ ListConversionEventsResponse,
+ ListConversionEventsPagedResponse>
+ LIST_CONVERSION_EVENTS_PAGE_STR_FACT =
+ new PagedListResponseFactory<
+ ListConversionEventsRequest,
+ ListConversionEventsResponse,
+ ListConversionEventsPagedResponse>() {
+ @Override
+ public ApiFuture getFuturePagedResponse(
+ UnaryCallable callable,
+ ListConversionEventsRequest request,
+ ApiCallContext context,
+ ApiFuture futureResponse) {
+ PageContext<
+ ListConversionEventsRequest, ListConversionEventsResponse, ConversionEvent>
+ pageContext =
+ PageContext.create(
+ callable, LIST_CONVERSION_EVENTS_PAGE_STR_DESC, request, context);
+ return ListConversionEventsPagedResponse.createAsync(pageContext, futureResponse);
+ }
+ };
+
+ private static final PagedListResponseFactory<
+ ListCustomDimensionsRequest,
+ ListCustomDimensionsResponse,
+ ListCustomDimensionsPagedResponse>
+ LIST_CUSTOM_DIMENSIONS_PAGE_STR_FACT =
+ new PagedListResponseFactory<
+ ListCustomDimensionsRequest,
+ ListCustomDimensionsResponse,
+ ListCustomDimensionsPagedResponse>() {
+ @Override
+ public ApiFuture getFuturePagedResponse(
+ UnaryCallable callable,
+ ListCustomDimensionsRequest request,
+ ApiCallContext context,
+ ApiFuture futureResponse) {
+ PageContext<
+ ListCustomDimensionsRequest, ListCustomDimensionsResponse, CustomDimension>
+ pageContext =
+ PageContext.create(
+ callable, LIST_CUSTOM_DIMENSIONS_PAGE_STR_DESC, request, context);
+ return ListCustomDimensionsPagedResponse.createAsync(pageContext, futureResponse);
+ }
+ };
+
+ private static final PagedListResponseFactory<
+ ListCustomMetricsRequest, ListCustomMetricsResponse, ListCustomMetricsPagedResponse>
+ LIST_CUSTOM_METRICS_PAGE_STR_FACT =
+ new PagedListResponseFactory<
+ ListCustomMetricsRequest,
+ ListCustomMetricsResponse,
+ ListCustomMetricsPagedResponse>() {
+ @Override
+ public ApiFuture getFuturePagedResponse(
+ UnaryCallable callable,
+ ListCustomMetricsRequest request,
+ ApiCallContext context,
+ ApiFuture futureResponse) {
+ PageContext
+ pageContext =
+ PageContext.create(
+ callable, LIST_CUSTOM_METRICS_PAGE_STR_DESC, request, context);
+ return ListCustomMetricsPagedResponse.createAsync(pageContext, futureResponse);
+ }
+ };
+
/** Returns the object with the settings used for calls to getAccount. */
public UnaryCallSettings getAccountSettings() {
return getAccountSettings;
@@ -1230,6 +1587,39 @@ public UnaryCallSettings deleteGoogleAdsLinkS
return getDataSharingSettingsSettings;
}
+ /** Returns the object with the settings used for calls to getMeasurementProtocolSecret. */
+ public UnaryCallSettings
+ getMeasurementProtocolSecretSettings() {
+ return getMeasurementProtocolSecretSettings;
+ }
+
+ /** Returns the object with the settings used for calls to listMeasurementProtocolSecrets. */
+ public PagedCallSettings<
+ ListMeasurementProtocolSecretsRequest,
+ ListMeasurementProtocolSecretsResponse,
+ ListMeasurementProtocolSecretsPagedResponse>
+ listMeasurementProtocolSecretsSettings() {
+ return listMeasurementProtocolSecretsSettings;
+ }
+
+ /** Returns the object with the settings used for calls to createMeasurementProtocolSecret. */
+ public UnaryCallSettings
+ createMeasurementProtocolSecretSettings() {
+ return createMeasurementProtocolSecretSettings;
+ }
+
+ /** Returns the object with the settings used for calls to deleteMeasurementProtocolSecret. */
+ public UnaryCallSettings
+ deleteMeasurementProtocolSecretSettings() {
+ return deleteMeasurementProtocolSecretSettings;
+ }
+
+ /** Returns the object with the settings used for calls to updateMeasurementProtocolSecret. */
+ public UnaryCallSettings
+ updateMeasurementProtocolSecretSettings() {
+ return updateMeasurementProtocolSecretSettings;
+ }
+
/** Returns the object with the settings used for calls to searchChangeHistoryEvents. */
public PagedCallSettings<
SearchChangeHistoryEventsRequest,
@@ -1239,6 +1629,103 @@ public UnaryCallSettings deleteGoogleAdsLinkS
return searchChangeHistoryEventsSettings;
}
+ /** Returns the object with the settings used for calls to getGoogleSignalsSettings. */
+ public UnaryCallSettings
+ getGoogleSignalsSettingsSettings() {
+ return getGoogleSignalsSettingsSettings;
+ }
+
+ /** Returns the object with the settings used for calls to updateGoogleSignalsSettings. */
+ public UnaryCallSettings
+ updateGoogleSignalsSettingsSettings() {
+ return updateGoogleSignalsSettingsSettings;
+ }
+
+ /** Returns the object with the settings used for calls to createConversionEvent. */
+ public UnaryCallSettings
+ createConversionEventSettings() {
+ return createConversionEventSettings;
+ }
+
+ /** Returns the object with the settings used for calls to getConversionEvent. */
+ public UnaryCallSettings
+ getConversionEventSettings() {
+ return getConversionEventSettings;
+ }
+
+ /** Returns the object with the settings used for calls to deleteConversionEvent. */
+ public UnaryCallSettings deleteConversionEventSettings() {
+ return deleteConversionEventSettings;
+ }
+
+ /** Returns the object with the settings used for calls to listConversionEvents. */
+ public PagedCallSettings<
+ ListConversionEventsRequest,
+ ListConversionEventsResponse,
+ ListConversionEventsPagedResponse>
+ listConversionEventsSettings() {
+ return listConversionEventsSettings;
+ }
+
+ /** Returns the object with the settings used for calls to createCustomDimension. */
+ public UnaryCallSettings
+ createCustomDimensionSettings() {
+ return createCustomDimensionSettings;
+ }
+
+ /** Returns the object with the settings used for calls to updateCustomDimension. */
+ public UnaryCallSettings
+ updateCustomDimensionSettings() {
+ return updateCustomDimensionSettings;
+ }
+
+ /** Returns the object with the settings used for calls to listCustomDimensions. */
+ public PagedCallSettings<
+ ListCustomDimensionsRequest,
+ ListCustomDimensionsResponse,
+ ListCustomDimensionsPagedResponse>
+ listCustomDimensionsSettings() {
+ return listCustomDimensionsSettings;
+ }
+
+ /** Returns the object with the settings used for calls to archiveCustomDimension. */
+ public UnaryCallSettings archiveCustomDimensionSettings() {
+ return archiveCustomDimensionSettings;
+ }
+
+ /** Returns the object with the settings used for calls to getCustomDimension. */
+ public UnaryCallSettings
+ getCustomDimensionSettings() {
+ return getCustomDimensionSettings;
+ }
+
+ /** Returns the object with the settings used for calls to createCustomMetric. */
+ public UnaryCallSettings createCustomMetricSettings() {
+ return createCustomMetricSettings;
+ }
+
+ /** Returns the object with the settings used for calls to updateCustomMetric. */
+ public UnaryCallSettings updateCustomMetricSettings() {
+ return updateCustomMetricSettings;
+ }
+
+ /** Returns the object with the settings used for calls to listCustomMetrics. */
+ public PagedCallSettings<
+ ListCustomMetricsRequest, ListCustomMetricsResponse, ListCustomMetricsPagedResponse>
+ listCustomMetricsSettings() {
+ return listCustomMetricsSettings;
+ }
+
+ /** Returns the object with the settings used for calls to archiveCustomMetric. */
+ public UnaryCallSettings archiveCustomMetricSettings() {
+ return archiveCustomMetricSettings;
+ }
+
+ /** Returns the object with the settings used for calls to getCustomMetric. */
+ public UnaryCallSettings getCustomMetricSettings() {
+ return getCustomMetricSettings;
+ }
+
@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public AnalyticsAdminServiceStub createStub() throws IOException {
if (getTransportChannelProvider()
@@ -1358,7 +1845,34 @@ protected AnalyticsAdminServiceStubSettings(Builder settingsBuilder) throws IOEx
deleteGoogleAdsLinkSettings = settingsBuilder.deleteGoogleAdsLinkSettings().build();
listGoogleAdsLinksSettings = settingsBuilder.listGoogleAdsLinksSettings().build();
getDataSharingSettingsSettings = settingsBuilder.getDataSharingSettingsSettings().build();
+ getMeasurementProtocolSecretSettings =
+ settingsBuilder.getMeasurementProtocolSecretSettings().build();
+ listMeasurementProtocolSecretsSettings =
+ settingsBuilder.listMeasurementProtocolSecretsSettings().build();
+ createMeasurementProtocolSecretSettings =
+ settingsBuilder.createMeasurementProtocolSecretSettings().build();
+ deleteMeasurementProtocolSecretSettings =
+ settingsBuilder.deleteMeasurementProtocolSecretSettings().build();
+ updateMeasurementProtocolSecretSettings =
+ settingsBuilder.updateMeasurementProtocolSecretSettings().build();
searchChangeHistoryEventsSettings = settingsBuilder.searchChangeHistoryEventsSettings().build();
+ getGoogleSignalsSettingsSettings = settingsBuilder.getGoogleSignalsSettingsSettings().build();
+ updateGoogleSignalsSettingsSettings =
+ settingsBuilder.updateGoogleSignalsSettingsSettings().build();
+ createConversionEventSettings = settingsBuilder.createConversionEventSettings().build();
+ getConversionEventSettings = settingsBuilder.getConversionEventSettings().build();
+ deleteConversionEventSettings = settingsBuilder.deleteConversionEventSettings().build();
+ listConversionEventsSettings = settingsBuilder.listConversionEventsSettings().build();
+ createCustomDimensionSettings = settingsBuilder.createCustomDimensionSettings().build();
+ updateCustomDimensionSettings = settingsBuilder.updateCustomDimensionSettings().build();
+ listCustomDimensionsSettings = settingsBuilder.listCustomDimensionsSettings().build();
+ archiveCustomDimensionSettings = settingsBuilder.archiveCustomDimensionSettings().build();
+ getCustomDimensionSettings = settingsBuilder.getCustomDimensionSettings().build();
+ createCustomMetricSettings = settingsBuilder.createCustomMetricSettings().build();
+ updateCustomMetricSettings = settingsBuilder.updateCustomMetricSettings().build();
+ listCustomMetricsSettings = settingsBuilder.listCustomMetricsSettings().build();
+ archiveCustomMetricSettings = settingsBuilder.archiveCustomMetricSettings().build();
+ getCustomMetricSettings = settingsBuilder.getCustomMetricSettings().build();
}
/** Builder for AnalyticsAdminServiceStubSettings. */
@@ -1467,11 +1981,67 @@ public static class Builder
listGoogleAdsLinksSettings;
private final UnaryCallSettings.Builder
getDataSharingSettingsSettings;
+ private final UnaryCallSettings.Builder<
+ GetMeasurementProtocolSecretRequest, MeasurementProtocolSecret>
+ getMeasurementProtocolSecretSettings;
+ private final PagedCallSettings.Builder<
+ ListMeasurementProtocolSecretsRequest,
+ ListMeasurementProtocolSecretsResponse,
+ ListMeasurementProtocolSecretsPagedResponse>
+ listMeasurementProtocolSecretsSettings;
+ private final UnaryCallSettings.Builder<
+ CreateMeasurementProtocolSecretRequest, MeasurementProtocolSecret>
+ createMeasurementProtocolSecretSettings;
+ private final UnaryCallSettings.Builder
+ deleteMeasurementProtocolSecretSettings;
+ private final UnaryCallSettings.Builder<
+ UpdateMeasurementProtocolSecretRequest, MeasurementProtocolSecret>
+ updateMeasurementProtocolSecretSettings;
private final PagedCallSettings.Builder<
SearchChangeHistoryEventsRequest,
SearchChangeHistoryEventsResponse,
SearchChangeHistoryEventsPagedResponse>
searchChangeHistoryEventsSettings;
+ private final UnaryCallSettings.Builder
+ getGoogleSignalsSettingsSettings;
+ private final UnaryCallSettings.Builder<
+ UpdateGoogleSignalsSettingsRequest, GoogleSignalsSettings>
+ updateGoogleSignalsSettingsSettings;
+ private final UnaryCallSettings.Builder
+ createConversionEventSettings;
+ private final UnaryCallSettings.Builder
+ getConversionEventSettings;
+ private final UnaryCallSettings.Builder
+ deleteConversionEventSettings;
+ private final PagedCallSettings.Builder<
+ ListConversionEventsRequest,
+ ListConversionEventsResponse,
+ ListConversionEventsPagedResponse>
+ listConversionEventsSettings;
+ private final UnaryCallSettings.Builder
+ createCustomDimensionSettings;
+ private final UnaryCallSettings.Builder
+ updateCustomDimensionSettings;
+ private final PagedCallSettings.Builder<
+ ListCustomDimensionsRequest,
+ ListCustomDimensionsResponse,
+ ListCustomDimensionsPagedResponse>
+ listCustomDimensionsSettings;
+ private final UnaryCallSettings.Builder
+ archiveCustomDimensionSettings;
+ private final UnaryCallSettings.Builder
+ getCustomDimensionSettings;
+ private final UnaryCallSettings.Builder
+ createCustomMetricSettings;
+ private final UnaryCallSettings.Builder
+ updateCustomMetricSettings;
+ private final PagedCallSettings.Builder<
+ ListCustomMetricsRequest, ListCustomMetricsResponse, ListCustomMetricsPagedResponse>
+ listCustomMetricsSettings;
+ private final UnaryCallSettings.Builder
+ archiveCustomMetricSettings;
+ private final UnaryCallSettings.Builder
+ getCustomMetricSettings;
private static final ImmutableMap>
RETRYABLE_CODE_DEFINITIONS;
@@ -1573,8 +2143,32 @@ protected Builder(ClientContext clientContext) {
listGoogleAdsLinksSettings =
PagedCallSettings.newBuilder(LIST_GOOGLE_ADS_LINKS_PAGE_STR_FACT);
getDataSharingSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+ getMeasurementProtocolSecretSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+ listMeasurementProtocolSecretsSettings =
+ PagedCallSettings.newBuilder(LIST_MEASUREMENT_PROTOCOL_SECRETS_PAGE_STR_FACT);
+ createMeasurementProtocolSecretSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+ deleteMeasurementProtocolSecretSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+ updateMeasurementProtocolSecretSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
searchChangeHistoryEventsSettings =
PagedCallSettings.newBuilder(SEARCH_CHANGE_HISTORY_EVENTS_PAGE_STR_FACT);
+ getGoogleSignalsSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+ updateGoogleSignalsSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+ createConversionEventSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+ getConversionEventSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+ deleteConversionEventSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+ listConversionEventsSettings =
+ PagedCallSettings.newBuilder(LIST_CONVERSION_EVENTS_PAGE_STR_FACT);
+ createCustomDimensionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+ updateCustomDimensionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+ listCustomDimensionsSettings =
+ PagedCallSettings.newBuilder(LIST_CUSTOM_DIMENSIONS_PAGE_STR_FACT);
+ archiveCustomDimensionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+ getCustomDimensionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+ createCustomMetricSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+ updateCustomMetricSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+ listCustomMetricsSettings = PagedCallSettings.newBuilder(LIST_CUSTOM_METRICS_PAGE_STR_FACT);
+ archiveCustomMetricSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+ getCustomMetricSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
unaryMethodSettingsBuilders =
ImmutableList.>of(
@@ -1624,7 +2218,28 @@ protected Builder(ClientContext clientContext) {
deleteGoogleAdsLinkSettings,
listGoogleAdsLinksSettings,
getDataSharingSettingsSettings,
- searchChangeHistoryEventsSettings);
+ getMeasurementProtocolSecretSettings,
+ listMeasurementProtocolSecretsSettings,
+ createMeasurementProtocolSecretSettings,
+ deleteMeasurementProtocolSecretSettings,
+ updateMeasurementProtocolSecretSettings,
+ searchChangeHistoryEventsSettings,
+ getGoogleSignalsSettingsSettings,
+ updateGoogleSignalsSettingsSettings,
+ createConversionEventSettings,
+ getConversionEventSettings,
+ deleteConversionEventSettings,
+ listConversionEventsSettings,
+ createCustomDimensionSettings,
+ updateCustomDimensionSettings,
+ listCustomDimensionsSettings,
+ archiveCustomDimensionSettings,
+ getCustomDimensionSettings,
+ createCustomMetricSettings,
+ updateCustomMetricSettings,
+ listCustomMetricsSettings,
+ archiveCustomMetricSettings,
+ getCustomMetricSettings);
initDefaults(this);
}
@@ -1679,7 +2294,34 @@ protected Builder(AnalyticsAdminServiceStubSettings settings) {
deleteGoogleAdsLinkSettings = settings.deleteGoogleAdsLinkSettings.toBuilder();
listGoogleAdsLinksSettings = settings.listGoogleAdsLinksSettings.toBuilder();
getDataSharingSettingsSettings = settings.getDataSharingSettingsSettings.toBuilder();
+ getMeasurementProtocolSecretSettings =
+ settings.getMeasurementProtocolSecretSettings.toBuilder();
+ listMeasurementProtocolSecretsSettings =
+ settings.listMeasurementProtocolSecretsSettings.toBuilder();
+ createMeasurementProtocolSecretSettings =
+ settings.createMeasurementProtocolSecretSettings.toBuilder();
+ deleteMeasurementProtocolSecretSettings =
+ settings.deleteMeasurementProtocolSecretSettings.toBuilder();
+ updateMeasurementProtocolSecretSettings =
+ settings.updateMeasurementProtocolSecretSettings.toBuilder();
searchChangeHistoryEventsSettings = settings.searchChangeHistoryEventsSettings.toBuilder();
+ getGoogleSignalsSettingsSettings = settings.getGoogleSignalsSettingsSettings.toBuilder();
+ updateGoogleSignalsSettingsSettings =
+ settings.updateGoogleSignalsSettingsSettings.toBuilder();
+ createConversionEventSettings = settings.createConversionEventSettings.toBuilder();
+ getConversionEventSettings = settings.getConversionEventSettings.toBuilder();
+ deleteConversionEventSettings = settings.deleteConversionEventSettings.toBuilder();
+ listConversionEventsSettings = settings.listConversionEventsSettings.toBuilder();
+ createCustomDimensionSettings = settings.createCustomDimensionSettings.toBuilder();
+ updateCustomDimensionSettings = settings.updateCustomDimensionSettings.toBuilder();
+ listCustomDimensionsSettings = settings.listCustomDimensionsSettings.toBuilder();
+ archiveCustomDimensionSettings = settings.archiveCustomDimensionSettings.toBuilder();
+ getCustomDimensionSettings = settings.getCustomDimensionSettings.toBuilder();
+ createCustomMetricSettings = settings.createCustomMetricSettings.toBuilder();
+ updateCustomMetricSettings = settings.updateCustomMetricSettings.toBuilder();
+ listCustomMetricsSettings = settings.listCustomMetricsSettings.toBuilder();
+ archiveCustomMetricSettings = settings.archiveCustomMetricSettings.toBuilder();
+ getCustomMetricSettings = settings.getCustomMetricSettings.toBuilder();
unaryMethodSettingsBuilders =
ImmutableList.>of(
@@ -1729,7 +2371,28 @@ protected Builder(AnalyticsAdminServiceStubSettings settings) {
deleteGoogleAdsLinkSettings,
listGoogleAdsLinksSettings,
getDataSharingSettingsSettings,
- searchChangeHistoryEventsSettings);
+ getMeasurementProtocolSecretSettings,
+ listMeasurementProtocolSecretsSettings,
+ createMeasurementProtocolSecretSettings,
+ deleteMeasurementProtocolSecretSettings,
+ updateMeasurementProtocolSecretSettings,
+ searchChangeHistoryEventsSettings,
+ getGoogleSignalsSettingsSettings,
+ updateGoogleSignalsSettingsSettings,
+ createConversionEventSettings,
+ getConversionEventSettings,
+ deleteConversionEventSettings,
+ listConversionEventsSettings,
+ createCustomDimensionSettings,
+ updateCustomDimensionSettings,
+ listCustomDimensionsSettings,
+ archiveCustomDimensionSettings,
+ getCustomDimensionSettings,
+ createCustomMetricSettings,
+ updateCustomMetricSettings,
+ listCustomMetricsSettings,
+ archiveCustomMetricSettings,
+ getCustomMetricSettings);
}
private static Builder createDefault() {
@@ -1974,11 +2637,116 @@ private static Builder initDefaults(Builder builder) {
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
+ builder
+ .getMeasurementProtocolSecretSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
+
+ builder
+ .listMeasurementProtocolSecretsSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
+
+ builder
+ .createMeasurementProtocolSecretSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
+
+ builder
+ .deleteMeasurementProtocolSecretSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
+
+ builder
+ .updateMeasurementProtocolSecretSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
+
builder
.searchChangeHistoryEventsSettings()
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
+ builder
+ .getGoogleSignalsSettingsSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
+
+ builder
+ .updateGoogleSignalsSettingsSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
+
+ builder
+ .createConversionEventSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
+
+ builder
+ .getConversionEventSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
+
+ builder
+ .deleteConversionEventSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
+
+ builder
+ .listConversionEventsSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
+
+ builder
+ .createCustomDimensionSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
+
+ builder
+ .updateCustomDimensionSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
+
+ builder
+ .listCustomDimensionsSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
+
+ builder
+ .archiveCustomDimensionSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
+
+ builder
+ .getCustomDimensionSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
+
+ builder
+ .createCustomMetricSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
+
+ builder
+ .updateCustomMetricSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
+
+ builder
+ .listCustomMetricsSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
+
+ builder
+ .archiveCustomMetricSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
+
+ builder
+ .getCustomMetricSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
+
return builder;
}
@@ -2281,6 +3049,41 @@ public UnaryCallSettings.Builder deleteUserLinkSet
return getDataSharingSettingsSettings;
}
+ /** Returns the builder for the settings used for calls to getMeasurementProtocolSecret. */
+ public UnaryCallSettings.Builder
+ getMeasurementProtocolSecretSettings() {
+ return getMeasurementProtocolSecretSettings;
+ }
+
+ /** Returns the builder for the settings used for calls to listMeasurementProtocolSecrets. */
+ public PagedCallSettings.Builder<
+ ListMeasurementProtocolSecretsRequest,
+ ListMeasurementProtocolSecretsResponse,
+ ListMeasurementProtocolSecretsPagedResponse>
+ listMeasurementProtocolSecretsSettings() {
+ return listMeasurementProtocolSecretsSettings;
+ }
+
+ /** Returns the builder for the settings used for calls to createMeasurementProtocolSecret. */
+ public UnaryCallSettings.Builder<
+ CreateMeasurementProtocolSecretRequest, MeasurementProtocolSecret>
+ createMeasurementProtocolSecretSettings() {
+ return createMeasurementProtocolSecretSettings;
+ }
+
+ /** Returns the builder for the settings used for calls to deleteMeasurementProtocolSecret. */
+ public UnaryCallSettings.Builder
+ deleteMeasurementProtocolSecretSettings() {
+ return deleteMeasurementProtocolSecretSettings;
+ }
+
+ /** Returns the builder for the settings used for calls to updateMeasurementProtocolSecret. */
+ public UnaryCallSettings.Builder<
+ UpdateMeasurementProtocolSecretRequest, MeasurementProtocolSecret>
+ updateMeasurementProtocolSecretSettings() {
+ return updateMeasurementProtocolSecretSettings;
+ }
+
/** Returns the builder for the settings used for calls to searchChangeHistoryEvents. */
public PagedCallSettings.Builder<
SearchChangeHistoryEventsRequest,
@@ -2290,6 +3093,109 @@ public UnaryCallSettings.Builder deleteUserLinkSet
return searchChangeHistoryEventsSettings;
}
+ /** Returns the builder for the settings used for calls to getGoogleSignalsSettings. */
+ public UnaryCallSettings.Builder
+ getGoogleSignalsSettingsSettings() {
+ return getGoogleSignalsSettingsSettings;
+ }
+
+ /** Returns the builder for the settings used for calls to updateGoogleSignalsSettings. */
+ public UnaryCallSettings.Builder
+ updateGoogleSignalsSettingsSettings() {
+ return updateGoogleSignalsSettingsSettings;
+ }
+
+ /** Returns the builder for the settings used for calls to createConversionEvent. */
+ public UnaryCallSettings.Builder
+ createConversionEventSettings() {
+ return createConversionEventSettings;
+ }
+
+ /** Returns the builder for the settings used for calls to getConversionEvent. */
+ public UnaryCallSettings.Builder
+ getConversionEventSettings() {
+ return getConversionEventSettings;
+ }
+
+ /** Returns the builder for the settings used for calls to deleteConversionEvent. */
+ public UnaryCallSettings.Builder
+ deleteConversionEventSettings() {
+ return deleteConversionEventSettings;
+ }
+
+ /** Returns the builder for the settings used for calls to listConversionEvents. */
+ public PagedCallSettings.Builder<
+ ListConversionEventsRequest,
+ ListConversionEventsResponse,
+ ListConversionEventsPagedResponse>
+ listConversionEventsSettings() {
+ return listConversionEventsSettings;
+ }
+
+ /** Returns the builder for the settings used for calls to createCustomDimension. */
+ public UnaryCallSettings.Builder
+ createCustomDimensionSettings() {
+ return createCustomDimensionSettings;
+ }
+
+ /** Returns the builder for the settings used for calls to updateCustomDimension. */
+ public UnaryCallSettings.Builder
+ updateCustomDimensionSettings() {
+ return updateCustomDimensionSettings;
+ }
+
+ /** Returns the builder for the settings used for calls to listCustomDimensions. */
+ public PagedCallSettings.Builder<
+ ListCustomDimensionsRequest,
+ ListCustomDimensionsResponse,
+ ListCustomDimensionsPagedResponse>
+ listCustomDimensionsSettings() {
+ return listCustomDimensionsSettings;
+ }
+
+ /** Returns the builder for the settings used for calls to archiveCustomDimension. */
+ public UnaryCallSettings.Builder
+ archiveCustomDimensionSettings() {
+ return archiveCustomDimensionSettings;
+ }
+
+ /** Returns the builder for the settings used for calls to getCustomDimension. */
+ public UnaryCallSettings.Builder
+ getCustomDimensionSettings() {
+ return getCustomDimensionSettings;
+ }
+
+ /** Returns the builder for the settings used for calls to createCustomMetric. */
+ public UnaryCallSettings.Builder
+ createCustomMetricSettings() {
+ return createCustomMetricSettings;
+ }
+
+ /** Returns the builder for the settings used for calls to updateCustomMetric. */
+ public UnaryCallSettings.Builder
+ updateCustomMetricSettings() {
+ return updateCustomMetricSettings;
+ }
+
+ /** Returns the builder for the settings used for calls to listCustomMetrics. */
+ public PagedCallSettings.Builder<
+ ListCustomMetricsRequest, ListCustomMetricsResponse, ListCustomMetricsPagedResponse>
+ listCustomMetricsSettings() {
+ return listCustomMetricsSettings;
+ }
+
+ /** Returns the builder for the settings used for calls to archiveCustomMetric. */
+ public UnaryCallSettings.Builder
+ archiveCustomMetricSettings() {
+ return archiveCustomMetricSettings;
+ }
+
+ /** Returns the builder for the settings used for calls to getCustomMetric. */
+ public UnaryCallSettings.Builder
+ getCustomMetricSettings() {
+ return getCustomMetricSettings;
+ }
+
@Override
public AnalyticsAdminServiceStubSettings build() throws IOException {
return new AnalyticsAdminServiceStubSettings(this);
diff --git a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceStub.java b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceStub.java
index e45350d0..15e4c2d0 100644
--- a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceStub.java
+++ b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceStub.java
@@ -20,9 +20,13 @@
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccountSummariesPagedResponse;
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccountsPagedResponse;
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAndroidAppDataStreamsPagedResponse;
+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.ListFirebaseLinksPagedResponse;
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListGoogleAdsLinksPagedResponse;
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListIosAppDataStreamsPagedResponse;
+import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListMeasurementProtocolSecretsPagedResponse;
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListPropertiesPagedResponse;
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListUserLinksPagedResponse;
import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListWebDataStreamsPagedResponse;
@@ -30,6 +34,8 @@
import com.google.analytics.admin.v1alpha.Account;
import com.google.analytics.admin.v1alpha.AndroidAppDataStream;
+import com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest;
+import com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest;
import com.google.analytics.admin.v1alpha.AuditUserLinksRequest;
import com.google.analytics.admin.v1alpha.AuditUserLinksResponse;
import com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest;
@@ -39,17 +45,26 @@
import com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse;
import com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest;
import com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse;
+import com.google.analytics.admin.v1alpha.ConversionEvent;
+import com.google.analytics.admin.v1alpha.CreateConversionEventRequest;
+import com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest;
+import com.google.analytics.admin.v1alpha.CreateCustomMetricRequest;
import com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest;
import com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest;
+import com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest;
import com.google.analytics.admin.v1alpha.CreatePropertyRequest;
import com.google.analytics.admin.v1alpha.CreateUserLinkRequest;
import com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest;
+import com.google.analytics.admin.v1alpha.CustomDimension;
+import com.google.analytics.admin.v1alpha.CustomMetric;
import com.google.analytics.admin.v1alpha.DataSharingSettings;
import com.google.analytics.admin.v1alpha.DeleteAccountRequest;
import com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest;
+import com.google.analytics.admin.v1alpha.DeleteConversionEventRequest;
import com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest;
import com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest;
import com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest;
+import com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest;
import com.google.analytics.admin.v1alpha.DeletePropertyRequest;
import com.google.analytics.admin.v1alpha.DeleteUserLinkRequest;
import com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest;
@@ -57,15 +72,21 @@
import com.google.analytics.admin.v1alpha.FirebaseLink;
import com.google.analytics.admin.v1alpha.GetAccountRequest;
import com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest;
+import com.google.analytics.admin.v1alpha.GetConversionEventRequest;
+import com.google.analytics.admin.v1alpha.GetCustomDimensionRequest;
+import com.google.analytics.admin.v1alpha.GetCustomMetricRequest;
import com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest;
import com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest;
import com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest;
+import com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest;
import com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest;
+import com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest;
import com.google.analytics.admin.v1alpha.GetPropertyRequest;
import com.google.analytics.admin.v1alpha.GetUserLinkRequest;
import com.google.analytics.admin.v1alpha.GetWebDataStreamRequest;
import com.google.analytics.admin.v1alpha.GlobalSiteTag;
import com.google.analytics.admin.v1alpha.GoogleAdsLink;
+import com.google.analytics.admin.v1alpha.GoogleSignalsSettings;
import com.google.analytics.admin.v1alpha.IosAppDataStream;
import com.google.analytics.admin.v1alpha.ListAccountSummariesRequest;
import com.google.analytics.admin.v1alpha.ListAccountSummariesResponse;
@@ -73,18 +94,27 @@
import com.google.analytics.admin.v1alpha.ListAccountsResponse;
import com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest;
import com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse;
+import com.google.analytics.admin.v1alpha.ListConversionEventsRequest;
+import com.google.analytics.admin.v1alpha.ListConversionEventsResponse;
+import com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest;
+import com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse;
+import com.google.analytics.admin.v1alpha.ListCustomMetricsRequest;
+import com.google.analytics.admin.v1alpha.ListCustomMetricsResponse;
import com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest;
import com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse;
import com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest;
import com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse;
import com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest;
import com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse;
+import com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest;
+import com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse;
import com.google.analytics.admin.v1alpha.ListPropertiesRequest;
import com.google.analytics.admin.v1alpha.ListPropertiesResponse;
import com.google.analytics.admin.v1alpha.ListUserLinksRequest;
import com.google.analytics.admin.v1alpha.ListUserLinksResponse;
import com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest;
import com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse;
+import com.google.analytics.admin.v1alpha.MeasurementProtocolSecret;
import com.google.analytics.admin.v1alpha.Property;
import com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest;
import com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse;
@@ -92,10 +122,14 @@
import com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse;
import com.google.analytics.admin.v1alpha.UpdateAccountRequest;
import com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest;
+import com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest;
+import com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest;
import com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest;
import com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest;
import com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest;
+import com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest;
import com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest;
+import com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest;
import com.google.analytics.admin.v1alpha.UpdatePropertyRequest;
import com.google.analytics.admin.v1alpha.UpdateUserLinkRequest;
import com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest;
@@ -649,6 +683,78 @@ public class GrpcAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub {
ProtoUtils.marshaller(DataSharingSettings.getDefaultInstance()))
.build();
+ private static final MethodDescriptor<
+ GetMeasurementProtocolSecretRequest, MeasurementProtocolSecret>
+ getMeasurementProtocolSecretMethodDescriptor =
+ MethodDescriptor
+ .newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.analytics.admin.v1alpha.AnalyticsAdminService/GetMeasurementProtocolSecret")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(GetMeasurementProtocolSecretRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ ProtoUtils.marshaller(MeasurementProtocolSecret.getDefaultInstance()))
+ .build();
+
+ private static final MethodDescriptor<
+ ListMeasurementProtocolSecretsRequest, ListMeasurementProtocolSecretsResponse>
+ listMeasurementProtocolSecretsMethodDescriptor =
+ MethodDescriptor
+ .
+ newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.analytics.admin.v1alpha.AnalyticsAdminService/ListMeasurementProtocolSecrets")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(ListMeasurementProtocolSecretsRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ ProtoUtils.marshaller(
+ ListMeasurementProtocolSecretsResponse.getDefaultInstance()))
+ .build();
+
+ private static final MethodDescriptor<
+ CreateMeasurementProtocolSecretRequest, MeasurementProtocolSecret>
+ createMeasurementProtocolSecretMethodDescriptor =
+ MethodDescriptor
+ .newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateMeasurementProtocolSecret")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(
+ CreateMeasurementProtocolSecretRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ ProtoUtils.marshaller(MeasurementProtocolSecret.getDefaultInstance()))
+ .build();
+
+ private static final MethodDescriptor
+ deleteMeasurementProtocolSecretMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteMeasurementProtocolSecret")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(
+ DeleteMeasurementProtocolSecretRequest.getDefaultInstance()))
+ .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance()))
+ .build();
+
+ private static final MethodDescriptor<
+ UpdateMeasurementProtocolSecretRequest, MeasurementProtocolSecret>
+ updateMeasurementProtocolSecretMethodDescriptor =
+ MethodDescriptor
+ .newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateMeasurementProtocolSecret")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(
+ UpdateMeasurementProtocolSecretRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ ProtoUtils.marshaller(MeasurementProtocolSecret.getDefaultInstance()))
+ .build();
+
private static final MethodDescriptor<
SearchChangeHistoryEventsRequest, SearchChangeHistoryEventsResponse>
searchChangeHistoryEventsMethodDescriptor =
@@ -663,6 +769,187 @@ public class GrpcAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub {
ProtoUtils.marshaller(SearchChangeHistoryEventsResponse.getDefaultInstance()))
.build();
+ private static final MethodDescriptor
+ getGoogleSignalsSettingsMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.analytics.admin.v1alpha.AnalyticsAdminService/GetGoogleSignalsSettings")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(GetGoogleSignalsSettingsRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ ProtoUtils.marshaller(GoogleSignalsSettings.getDefaultInstance()))
+ .build();
+
+ private static final MethodDescriptor
+ updateGoogleSignalsSettingsMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateGoogleSignalsSettings")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(UpdateGoogleSignalsSettingsRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ ProtoUtils.marshaller(GoogleSignalsSettings.getDefaultInstance()))
+ .build();
+
+ private static final MethodDescriptor
+ createConversionEventMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateConversionEvent")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(CreateConversionEventRequest.getDefaultInstance()))
+ .setResponseMarshaller(ProtoUtils.marshaller(ConversionEvent.getDefaultInstance()))
+ .build();
+
+ private static final MethodDescriptor
+ getConversionEventMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.analytics.admin.v1alpha.AnalyticsAdminService/GetConversionEvent")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(GetConversionEventRequest.getDefaultInstance()))
+ .setResponseMarshaller(ProtoUtils.marshaller(ConversionEvent.getDefaultInstance()))
+ .build();
+
+ private static final MethodDescriptor
+ deleteConversionEventMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteConversionEvent")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(DeleteConversionEventRequest.getDefaultInstance()))
+ .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance()))
+ .build();
+
+ private static final MethodDescriptor
+ listConversionEventsMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.analytics.admin.v1alpha.AnalyticsAdminService/ListConversionEvents")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(ListConversionEventsRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ ProtoUtils.marshaller(ListConversionEventsResponse.getDefaultInstance()))
+ .build();
+
+ private static final MethodDescriptor
+ createCustomDimensionMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateCustomDimension")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(CreateCustomDimensionRequest.getDefaultInstance()))
+ .setResponseMarshaller(ProtoUtils.marshaller(CustomDimension.getDefaultInstance()))
+ .build();
+
+ private static final MethodDescriptor
+ updateCustomDimensionMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateCustomDimension")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(UpdateCustomDimensionRequest.getDefaultInstance()))
+ .setResponseMarshaller(ProtoUtils.marshaller(CustomDimension.getDefaultInstance()))
+ .build();
+
+ private static final MethodDescriptor
+ listCustomDimensionsMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.analytics.admin.v1alpha.AnalyticsAdminService/ListCustomDimensions")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(ListCustomDimensionsRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ ProtoUtils.marshaller(ListCustomDimensionsResponse.getDefaultInstance()))
+ .build();
+
+ private static final MethodDescriptor
+ archiveCustomDimensionMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.analytics.admin.v1alpha.AnalyticsAdminService/ArchiveCustomDimension")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(ArchiveCustomDimensionRequest.getDefaultInstance()))
+ .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance()))
+ .build();
+
+ private static final MethodDescriptor
+ getCustomDimensionMethodDescriptor =
+ MethodDescriptor.